Merge pull request #178 from joewww/master

adding exception in _can_change()
pull/181/head
Bernhard Mueller 7 years ago committed by GitHub
commit e7c1d49e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      mythril/analysis/modules/transaction_order_independence.py
  2. 1
      setup.py

@ -79,9 +79,11 @@ def _can_change(constraints, variable):
model = solver.get_model(_constraints)
except UnsatError:
return False
try:
initial_value = int(str(model.eval(variable, model_completion=True)))
return _try_constraints(constraints, [variable != initial_value]) is not None
except AttributeError:
return False
def _get_influencing_storages(call):
""" Examines a Call object and returns an iterator of all storages that influence the call value or direction"""

@ -4,6 +4,7 @@ import os
# Package version (vX.Y.Z). It must match git tag being used for CircleCI
# deployment; otherwise the build will failed.
VERSION = "v0.17.0"
class VerifyVersionCommand(install):

Loading…
Cancel
Save