Skip to content

Commit

Permalink
Fixing tiny issue in unary propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
ckirsch committed Jan 16, 2025
1 parent 79b6880 commit d3e419e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/bitme.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ def get_values(self, step):
if Instance.PROPAGATE_UNARY and isinstance(arg1_value, Values):
if self.op == OP_SEXT:
self.cache_values[step] = self.propagate(arg1_value,
lambda x: arg1_value.sid_line.get_signed_value(x) % 2**self.sid_line)
lambda x: arg1_value.sid_line.get_signed_value(x) % 2**self.sid_line.size)
else:
assert self.op == OP_UEXT
self.cache_values[step] = self.propagate(arg1_value, lambda x: x)
Expand Down

0 comments on commit d3e419e

Please sign in to comment.