Add a few changes

arbitrary_storage
Nikhil 5 years ago
parent 1a6f7ed923
commit 3e771350f2
  1. 4
      mythril/laser/smt/bitvecfunc.py

@ -34,7 +34,7 @@ def _arithmetic_helper(
return BitVecFunc( return BitVecFunc(
raw=raw, raw=raw,
func_name=a.func_name + "_hybrid", func_name=a.func_name,
input_=a.input_, input_=a.input_,
annotations=union, annotations=union,
nested_functions=a.nested_functions + [a], nested_functions=a.nested_functions + [a],
@ -67,6 +67,8 @@ def _comparison_helper(
if operation == z3.ULT: if operation == z3.ULT:
operation = operator.lt operation = operator.lt
return Bool(z3.BoolVal(operation(a.value, b.value)), annotations=union) return Bool(z3.BoolVal(operation(a.value, b.value)), annotations=union)
# This function and bvfs should be changed in the coming future
if not isinstance(b, BitVecFunc) and "KECCAK" not in str(a): if not isinstance(b, BitVecFunc) and "KECCAK" not in str(a):
return Bool(operation(a.raw, b.raw)) return Bool(operation(a.raw, b.raw))
if ( if (

Loading…
Cancel
Save