Skip to content

Commit a96a127

Browse files
authored
Use execution time for concolic execution (#1709)
* Add transaction plugins for summary search strategy * Add set tx counter and fix balances for summaries * Reformat * Use exec time for concolic execution
1 parent 50480a8 commit a96a127

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

mythril/concolic/concolic_execution.py

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def concolic_execution(
7474
:param solver_timeout: Solver timeout
7575
7676
"""
77+
7778
init_state, trace = concrete_execution(concrete_data)
7879
args.solver_timeout = solver_timeout
7980
output_list = flip_branches(

mythril/concolic/find_trace.py

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from mythril.laser.ethereum.svm import LaserEVM
1212
from mythril.laser.ethereum.state.world_state import WorldState
1313
from mythril.laser.ethereum.state.account import Account
14+
from mythril.laser.ethereum.time_handler import time_handler
1415
from mythril.laser.ethereum.transaction.concolic import execute_transaction
1516
from mythril.laser.plugin.loader import LaserPluginLoader
1617
from mythril.laser.smt import Expression, BitVec, symbol_factory
@@ -53,6 +54,7 @@ def concrete_execution(concrete_data: ConcreteData) -> Tuple[WorldState, List]:
5354
plugin_loader = LaserPluginLoader()
5455
assert PluginDiscovery().is_installed("myth_concolic_execution")
5556
trace_plugin = PluginDiscovery().installed_plugins["myth_concolic_execution"]()
57+
time_handler.start_execution(laser_evm.execution_timeout)
5658

5759
plugin_loader.load(trace_plugin)
5860
laser_evm.time = datetime.now()

0 commit comments

Comments
 (0)