Skip to content

Commit

Permalink
fix not semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark committed Sep 20, 2023
1 parent b92172d commit 773000a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/halmos/sevm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2489,7 +2489,7 @@ def run(self, ex0: Exec) -> Tuple[List[Exec], Steps]:
elif opcode in [EVM.AND, EVM.OR, EVM.XOR]:
ex.st.push(lop(opcode, ex.st.pop(), ex.st.pop()))
elif opcode == EVM.NOT:
ex.st.push(~ex.st.pop()) # bvnot
ex.st.push(~b2i(ex.st.pop())) # bvnot
elif opcode == EVM.SHL:
w = ex.st.pop()
ex.st.push(b2i(ex.st.pop()) << b2i(w)) # bvshl
Expand Down

0 comments on commit 773000a

Please sign in to comment.