Struct StateTransition<TInstruction>
- Namespace
- Echo.DataFlow.Construction
- Assembly
- Echo.DataFlow.dll
Represents an object that encodes the transition from one program state to another after an instruction was executed.
public readonly struct StateTransition<TInstruction> where TInstruction : notnull
Type Parameters
TInstructionThe type of instruction that was executed.
- Inherited Members
Constructors
StateTransition(SymbolicProgramState<TInstruction>, ControlFlowEdgeType)
Creates a new program state transition.
public StateTransition(SymbolicProgramState<TInstruction> nextState, ControlFlowEdgeType edgeType)
Parameters
nextStateSymbolicProgramState<TInstruction>The new program state.
edgeTypeControlFlowEdgeTypeThe type of edge that was taken.
Properties
EdgeType
Gets the type of edge that was taken by the instruction.
public ControlFlowEdgeType EdgeType { get; }
Property Value
IsRealEdge
Gets whether the edge is a real edge (not None).
public bool IsRealEdge { get; }
Property Value
NextState
Gets the new program state after the instruction was executed.
public SymbolicProgramState<TInstruction> NextState { get; }
Property Value
- SymbolicProgramState<TInstruction>
Methods
ToString()
public override string ToString()