public class DefaultProgramState extends GeneralProgramState
heap, programCounterINVALID_STATE_SPACE_ID| Modifier | Constructor and Description |
|---|---|
protected |
DefaultProgramState(DefaultProgramState state)
Creates a copy of the state.
|
|
DefaultProgramState(HeapConfiguration heap)
Initializes a program state.
|
| Modifier and Type | Method and Description |
|---|---|
DefaultProgramState |
clone() |
boolean |
equals(Object other) |
protected SelectorLabel |
getNewSelector(SelectorLabel oldSelectorLabel) |
protected int |
getSelectorTargetOf(int sourceNode,
SelectorLabel selectorLabel) |
protected void |
removeSelector(int sourceNode,
SelectorLabel selectorLabel) |
ProgramState |
shallowCopy()
Creates a shallow copy of this program state in which the underlying heap configuration
is the same as in the copied object.
|
ProgramState |
shallowCopyUpdatePC(int newPC)
Creates a shallow copy of this program state in which the underlying heap configuration is the same as in the
copied object.
|
addAP, flagAsContinueState, getAPs, getConstant, getContainingStateSpace, getHeap, getProgramCounter, getSelectorTarget, getStateSpaceId, getUndefined, getVariableTarget, hashCode, insertNewElement, isContinueState, isFromTopLevelStateSpace, prepareHeap, removeIntermediate, removeVariable, satisfiesAP, setContainingStateSpace, setIntermediate, setProgramCounter, setSelector, setStateSpaceId, setVariable, shallowCopyWithUpdateHeap, size, toString, unflagContinueStatepublic DefaultProgramState(HeapConfiguration heap)
heap - The underlying heap configuration.protected DefaultProgramState(DefaultProgramState state)
state - The state to be copied.public ProgramState shallowCopy()
ProgramStatepublic ProgramState shallowCopyUpdatePC(int newPC)
ProgramStatenewPC - The value of the program counter of the copy.protected int getSelectorTargetOf(int sourceNode,
SelectorLabel selectorLabel)
getSelectorTargetOf in class GeneralProgramStateprotected void removeSelector(int sourceNode,
SelectorLabel selectorLabel)
removeSelector in class GeneralProgramStateprotected SelectorLabel getNewSelector(SelectorLabel oldSelectorLabel)
getNewSelector in class GeneralProgramStatepublic DefaultProgramState clone()
clone in interface ProgramStateclone in class GeneralProgramStateCopyright © 2018. All rights reserved.