Fix issue with get_constraints (#1549)

pull/1550/head
Nikhil Parasaram 3 years ago committed by GitHub
parent 1a5f28332a
commit 53f90cfb5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      mythril/support/model.py

@ -32,7 +32,8 @@ def get_model(constraints, minimize=(), maximize=(), enforce_execution_time=True
for constraint in constraints:
if type(constraint) == bool and not constraint:
raise UnsatError
constraints = constraints.get_all_constraints()
if type(constraints) != tuple:
constraints = constraints.get_all_constraints()
constraints = [constraint for constraint in constraints if type(constraint) != bool]
for constraint in constraints:

Loading…
Cancel
Save