Remove ambiguity in exp

pull/475/head
Nikhil Parasaram 6 years ago
parent 452c135e07
commit 2eafa1309e
  1. 2
      mythril/laser/ethereum/instructions.py

@ -233,7 +233,7 @@ class Instruction:
base, exponent = util.pop_bitvec(state), util.pop_bitvec(state)
if (type(base) != BitVecNumRef) or (type(exponent) != BitVecNumRef):
state.stack.append(BitVec("(" + str(simplify(base)) + ")^(" + str(simplify(exponent)) + ")", 256))
state.stack.append(BitVec("(" + str(simplify(base)) + ")**(" + str(simplify(exponent)) + ")", 256))
elif base.as_long() == 2:
if exponent.as_long() == 0:
state.stack.append(BitVecVal(1, 256))

Loading…
Cancel
Save