adding exception in _can_change()

pull/178/head
Joe 7 years ago
parent 2b89856d2a
commit 5fe1b5149d
  1. 4
      mythril/analysis/modules/transaction_order_independence.py
  2. 2
      setup.py

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

@ -4,7 +4,7 @@ import os
# Package version (vX.Y.Z). It must match git tag being used for CircleCI # Package version (vX.Y.Z). It must match git tag being used for CircleCI
# deployment; otherwise the build will failed. # deployment; otherwise the build will failed.
VERSION = "v0.16.31" VERSION = "v0.16.32"
class VerifyVersionCommand(install): class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version""" """Custom command to verify that the git tag matches our version"""

Loading…
Cancel
Save