Skip to content

Commit

Permalink
VEXConverter: Differentiate between NotN and BitwiseNeg. (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltfish authored Oct 4, 2023
1 parent cf113d3 commit 372462d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ailment/converter_vex.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ def Unop(expr, manager):
vex_stmt_idx=manager.vex_stmt_idx,
)
raise NotImplementedError("Unsupported operation")
elif op_name == "Not" and expr.op != "Iop_Not1":
# NotN (N != 1) is equivalent to bitwise negation
op_name = "BitwiseNeg"

return UnaryOp(
manager.next_atom(),
Expand Down

0 comments on commit 372462d

Please sign in to comment.