module greed.state
class SymbolicEVMState
This class represents a symbolic EVM state (SimState).
method __init__
__init__(
xid,
project,
partial_init=False,
init_ctx=None,
options=None,
max_calldatasize=None,
partial_concrete_storage=False
)
Args:
xid
: The execution idproject
: the greed projectpartial_init
: Whether to partially initialize the object or notinit_ctx
: The initial context of the state (e.g., CALLER, ADDRESS, BALANCE, etc.)options
: The options for this statemax_calldatasize
: The maximum size of the calldatapartial_concrete_storage
: Whether to use the partial concrete storage or not
property constraints
property curr_stmt
property pc
method add_constraint
This method adds a constraint to the state.
method copy
Deep copy of the SimState.
method get_fallthrough_pc
This method returns the fallthrough pc of the current state
method get_non_fallthrough_pc
This method returns the non fallthrough pc of the current state.
method register_plugin
This method registers a plugin to the state.
method reset
This method resets the state.
method set_init_ctx
This method applies the initial context to the state.
Args:
init_ctx
: A dict storing the initial context of the state (e.g., CALLER, ADDRESS, BALANCE, etc.)
method set_next_pc
This method sets the next pc to the state.
Raises:
VMNoSuccessors
: If there are no successorsVMUnexpectedSuccessors
: If the successor does not match any of the expected successors
This file was automatically generated via lazydocs.