Revert the minimize transaction count

pull/819/head
Nikhil Parasaram 6 years ago
parent d66ff00240
commit 0991f9d95c
  1. 7
      mythril/analysis/solver.py

@ -76,7 +76,6 @@ def get_transaction_sequence(global_state, constraints):
minimize = [] minimize = []
transactions = [] transactions = []
model = None
for transaction in transaction_sequence: for transaction in transaction_sequence:
tx_id = str(transaction.id) tx_id = str(transaction.id)
if not isinstance(transaction, ContractCreationTransaction): if not isinstance(transaction, ContractCreationTransaction):
@ -92,15 +91,9 @@ def get_transaction_sequence(global_state, constraints):
concrete_transactions[tx_id] = tx_template.copy() concrete_transactions[tx_id] = tx_template.copy()
try:
model = get_model(tx_constraints, minimize=minimize)
break
except UnsatError:
continue
else: else:
creation_tx_ids.append(tx_id) creation_tx_ids.append(tx_id)
if model is None:
model = get_model(tx_constraints, minimize=minimize) model = get_model(tx_constraints, minimize=minimize)
for transaction in transactions: for transaction in transactions:

Loading…
Cancel
Save