maintain record of execution info in Mythril

pull/1411/head
Joran Honig 4 years ago
parent 8a7c43d038
commit 19069c0b63
  1. 4
      mythril/laser/ethereum/svm.py

@ -7,6 +7,7 @@ from typing import Callable, Dict, DefaultDict, List, Tuple, Optional
from mythril.support.opcodes import opcodes as OPCODES from mythril.support.opcodes import opcodes as OPCODES
from mythril.analysis.potential_issues import check_potential_issues from mythril.analysis.potential_issues import check_potential_issues
from mythril.laser.execution_info import ExecutionInfo
from mythril.laser.ethereum.cfg import NodeFlags, Node, Edge, JumpType from mythril.laser.ethereum.cfg import NodeFlags, Node, Edge, JumpType
from mythril.laser.ethereum.evm_exceptions import StackUnderflowException from mythril.laser.ethereum.evm_exceptions import StackUnderflowException
from mythril.laser.ethereum.evm_exceptions import VmException from mythril.laser.ethereum.evm_exceptions import VmException
@ -72,8 +73,9 @@ class LaserEVM:
:param requires_statespace: Variable indicating whether the statespace should be recorded :param requires_statespace: Variable indicating whether the statespace should be recorded
:param iprof: Instruction Profiler :param iprof: Instruction Profiler
""" """
self.open_states = [] # type: List[WorldState] self.execution_info = [] # type: List[ExecutionInfo]
self.open_states = [] # type: List[WorldState]
self.total_states = 0 self.total_states = 0
self.dynamic_loader = dynamic_loader self.dynamic_loader = dynamic_loader

Loading…
Cancel
Save