public class ExecutionBlockContract extends AbstractExecutionNode<SourceElement> implements IExecutionBlockContract
IExecutionBlockContract.INTERNAL_NODE_NAME_END, INTERNAL_NODE_NAME_START| Constructor and Description |
|---|
ExecutionBlockContract(ITreeSettings settings,
Node proofNode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectRemembranceVariables(Term term,
Map<LocationVariable,Term> remembranceHeaps,
Map<LocationVariable,Term> remembranceLocalVariables)
Collects recursive all remembrance variables.
|
protected Term |
declaredVariableAsTerm(StatementBlock sb,
int statementIndex)
Returns the variable declared by the statement at the given index as
Term. |
StatementBlock |
getBlock()
Returns the
StatementBlock at which the BlockContract is applied. |
BlockContract |
getContract()
Returns the applied
BlockContract. |
String |
getElementType()
Returns a human readable element type name.
|
boolean |
isPreconditionComplied()
Checks if the precondition is complied.
|
protected IExecutionConstraint[] |
lazyComputeConstraints()
Computes the constraints lazily when
AbstractExecutionNode.getConstraints() is
called the first time. |
protected String |
lazyComputeName()
Computes the name of this node lazily when
AbstractExecutionElement.getName()
is called the first time. |
addChild, addCompletedBlock, getActivePositionInfo, getActiveStatement, getBlockCompletionCondition, getCallStack, getChildren, getCompletedBlocks, getConstraints, getCurrentLayout, getFormatedBlockCompletionCondition, getFormatedPathCondition, getInitialLayout, getLayoutExtractor, getLayoutsCount, getLayoutsEquivalenceClasses, getModalityPIO, getParent, getPathCondition, getVariables, getVariables, isPathConditionChanged, lazyComputeBlockCompletionCondition, lazyComputeLayoutExtractor, lazyComputeModalityPIO, lazyComputeVariables, lazyComputeVariables, removeChild, removeCompletedBlock, setCallStack, setParentformatTerm, getAppliedRuleApp, getInitConfig, getName, getProof, getProofNode, getProofNodeInfo, getServices, getSettings, isDisposed, isNameComputed, setName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetActivePositionInfo, getActiveStatement, getBlockCompletionCondition, getCallStack, getChildren, getCompletedBlocks, getConstraints, getCurrentLayout, getFormatedBlockCompletionCondition, getFormatedPathCondition, getInitialLayout, getLayoutsCount, getLayoutsEquivalenceClasses, getParent, getPathCondition, getVariables, getVariables, isPathConditionChangedgetAppliedRuleApp, getInitConfig, getModalityPIO, getName, getProof, getProofNode, getProofNodeInfo, getServices, getSettings, isDisposedpublic ExecutionBlockContract(ITreeSettings settings, Node proofNode)
settings - The ITreeSettings to use.proofNode - The Node of KeY's proof tree which is represented by this IExecutionNode.public String getElementType()
getElementType in interface IExecutionElementprotected IExecutionConstraint[] lazyComputeConstraints()
AbstractExecutionNode.getConstraints() is
called the first time.lazyComputeConstraints in class AbstractExecutionNode<SourceElement>IExecutionConstraints of the current state.protected String lazyComputeName() throws ProofInputException
AbstractExecutionElement.getName()
is called the first time.lazyComputeName in class AbstractExecutionElementIExecutionNode.ProofInputExceptionprotected Term declaredVariableAsTerm(StatementBlock sb, int statementIndex)
Term.sb - The StatementBlock which contains all variable declarations.statementIndex - The index in the StatementBlock with the variable declaration of interest.Term.protected void collectRemembranceVariables(Term term, Map<LocationVariable,Term> remembranceHeaps, Map<LocationVariable,Term> remembranceLocalVariables)
public boolean isPreconditionComplied()
isPreconditionComplied in interface IExecutionBlockContracttrue precondition complied, false precondition not complied.public BlockContract getContract()
BlockContract.getContract in interface IExecutionBlockContractBlockContract.public StatementBlock getBlock()
StatementBlock at which the BlockContract is applied.getBlock in interface IExecutionBlockContractStatementBlock at which the BlockContract is applied.