Skip to content

Commit

Permalink
Handle case where EXP's exponent is a symbolic constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Jun 12, 2020
1 parent f257ec8 commit 399dd08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manticore/platforms/evm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,8 @@ def EXP(self, base, exponent):
:param exponent: exponent value, concretized with sampled values
:return: BitVec* EXP result
"""
if isinstance(exponent, Constant):
exponent = exponent.value
if exponent == 0:
return 1

Expand Down

0 comments on commit 399dd08

Please sign in to comment.