Add Joran's suggestion of lowercase keccak comparision

Co-Authored-By: JoranHonig <JoranHonig@users.noreply.github.com>
arbitrary_storage
Nikhil Parasaram 5 years ago committed by GitHub
parent 879dcbff69
commit 7de3adf6d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      mythril/laser/smt/bitvecfunc.py

@ -69,7 +69,7 @@ def _comparison_helper(
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).lower():
return Bool(operation(a.raw, b.raw))
if (
not isinstance(b, BitVecFunc)

Loading…
Cancel
Save