You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The BvsmodNode is used to produce the semantics for an x86 IDIV instruction but it doesn't always give the same results.
This was changed from the basic modulus in 52aae9e but I couldn't see why.
Maybe the solution is replacing the bvsmod node with bvsrem in idiv_s semantics
I see now you changed from bvsrem to bvsmod in a1ea273 but there wasn't a referenced issue.
Triton/src/libtriton/ast/ast.cpp
Line 1561 in 2ea88a6
The BvsmodNode is used to produce the semantics for an x86 IDIV instruction but it doesn't always give the same results.
This was changed from the basic modulus in 52aae9e but I couldn't see why.
Example:
Emulating in triton produces a remainder
EDX = 0x2c9
Running locally produces
EDX = 0xfffffee1
Changing back to
produces the correct remainder.
The text was updated successfully, but these errors were encountered: