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. 1
      mythril/support/model.py

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

Loading…
Cancel
Save