public static class BlockContract.VariablesCreator extends TermBuilder
Modifier and Type | Field and Description |
---|---|
private StatementBlock |
block |
private static String |
BREAK_FLAG_BASE_NAME |
private Map<Label,ProgramVariable> |
breakFlags |
private static String |
CONTINUE_FLAG_BASE_NAME |
private Map<Label,ProgramVariable> |
continueFlags |
private static String |
FLAG_INFIX |
private List<Label> |
labels |
private IProgramMethod |
method |
private static String |
REMEMBRANCE_SUFFIX |
private static String |
RETURN_FLAG_NAME |
private ProgramVariable |
returnFlag |
services, WD_ANY, WD_FORMULA
Constructor and Description |
---|
BlockContract.VariablesCreator(StatementBlock block,
List<Label> labels,
IProgramMethod method,
Services services) |
Modifier and Type | Method and Description |
---|---|
private Set<Label> |
collectLabels(List<? extends LabelJumpStatement> jumps) |
BlockContract.Variables |
create() |
private void |
createAndStoreFlags() |
private ProgramVariable |
createFlag(String name) |
private Map<Label,ProgramVariable> |
createFlags(Set<Label> labels,
String baseName) |
private Map<LocationVariable,LocationVariable> |
createRemembranceHeaps() |
private Map<LocationVariable,LocationVariable> |
createRemembranceLocalVariables() |
private LocationVariable |
createVariable(String name,
KeYJavaType type) |
acc, add, addLabel, addLabel, all, all, allClose, allFields, allLocs, allObjects, and, and, and, andPreserveLabels, andPreserveLabels, andSC, andSC, andSC, anon, anonUpd, apply, apply, apply, applyElementary, applyElementary, applyElementary, applyParallel, applyParallel, applyParallel, applySequential, applySequential, applyUpdatePairsSequential, arr, arrayRange, arrayStore, box, bprod, bsum, cast, classErroneous, classInitializationInProgress, classInitialized, classPrepared, convertToBoolean, convertToFormula, create, created, created, createdInHeap, createdLocs, deepNonNull, dia, disjoint, dot, dot, dot, dotArr, dotLength, elementary, elementary, elementOf, empty, eqAtLocs, eqAtLocsPost, equals, ex, ex, exactInstance, excVar, excVar, FALSE, ff, fieldStore, forallHeaps, frame, frameStrictlyEmpty, freshLocs, func, func, func, func, func, func, geq, getBaseHeap, getMeasuredByEmpty, getSorts, goBelowUpdates, goBelowUpdates2, gt, heapAtPreVar, heapAtPreVar, ife, ifEx, ifEx, imp, imp, impPreserveLabels, inByte, inChar, index, indexOf, infiniteUnion, infiniteUnion, inInt, initialized, inLong, inShort, instance, intersect, intersect, intersect, inv, inv, label, label, leq, lt, max, measuredBy, measuredByCheck, measuredByEmpty, min, newName, newName, not, notPreserveLabels, NULL, one, open, or, or, or, orPreserveLabels, orPreserveLabels, orSC, orSC, orSC, pair, parallel, parallel, parallel, parallel, parallel, paramVars, paramVars, parseTerm, parseTerm, permissionsFor, permissionsFor, prec, prod, prog, prog, reach, reachableValue, reachableValue, reachableValue, resultVar, resultVar, select, select, selfVar, selfVar, selfVar, selfVar, seq, seq, seqConcat, seqDef, seqEmpty, seqGet, seqLen, seqReverse, seqSingleton, seqSub, sequential, sequential, sequential, setComprehension, setComprehension, setMinus, shortBaseName, shortcut, singleton, skip, staticDot, staticDot, staticFieldStore, staticInv, staticInv, store, strictlyNothing, subset, subst, subst, sum, tf, TRUE, tt, union, union, union, unionToSet, unlabel, unlabelRecursive, values, var, var, var, var, var, var, wd, wd, wd, wellFormed, wellFormed, zero, zTerm, zTerm
private static final String BREAK_FLAG_BASE_NAME
private static final String CONTINUE_FLAG_BASE_NAME
private static final String RETURN_FLAG_NAME
private static final String FLAG_INFIX
private static final String REMEMBRANCE_SUFFIX
private final StatementBlock block
private final IProgramMethod method
private Map<Label,ProgramVariable> breakFlags
private Map<Label,ProgramVariable> continueFlags
private ProgramVariable returnFlag
public BlockContract.VariablesCreator(StatementBlock block, List<Label> labels, IProgramMethod method, Services services)
public BlockContract.Variables create()
private void createAndStoreFlags()
private Set<Label> collectLabels(List<? extends LabelJumpStatement> jumps)
private ProgramVariable createFlag(String name)
private Map<LocationVariable,LocationVariable> createRemembranceHeaps()
private Map<LocationVariable,LocationVariable> createRemembranceLocalVariables()
private LocationVariable createVariable(String name, KeYJavaType type)