ida_idp.info.is_32bit()
Out[14]: True
ida_idp.info.is_64bit()
Out[15]: True
For 64-bit programs, ida's two judgments both return true, so Yagi will judge the 64-bit program as 32-bit, which does not meet expectations。
auto mode = yagi::Compiler::Mode::M24;
if (inf_is_64bit())
{
mode = yagi::Compiler::Mode::M64;
}
if (inf_is_16bit())
{
mode = yagi::Compiler::Mode::M16;
}
if (inf_is_32bit_exactly())
{
mode = yagi::Compiler::Mode::M32;
}