private static final class BlockContractRule.ConditionsAndClausesBuilder extends TermBuilder
Modifier and Type | Field and Description |
---|---|
private BlockContract |
contract |
private List<LocationVariable> |
heaps |
private BlockContract.Terms |
terms |
private BlockContract.Variables |
variables |
services, WD_ANY, WD_FORMULA
Constructor and Description |
---|
BlockContractRule.ConditionsAndClausesBuilder(BlockContract contract,
List<LocationVariable> heaps,
BlockContract.Variables variables,
Term self,
Services services) |
Modifier and Type | Method and Description |
---|---|
Term |
buildAtMostOneFlagSetCondition() |
private Term |
buildFlagNotSetCondition(ProgramVariable flag) |
private List<Term> |
buildFlagsNotSetConditions(Collection<ProgramVariable> flags) |
Term |
buildFrameCondition(Map<LocationVariable,Term> modifiesClauses) |
Map<LocationVariable,Term> |
buildModifiesClauses() |
Term |
buildPostcondition() |
Term |
buildPrecondition() |
Term |
buildReachableCondition(ImmutableSet<ProgramVariable> variables) |
Term |
buildReachableInCondition(ImmutableSet<ProgramVariable> localInVariables) |
Term |
buildReachableOutCondition(ImmutableSet<ProgramVariable> localOutVariables) |
Term |
buildWellFormedAnonymisationHeapsCondition(Map<LocationVariable,Function> anonymisationHeaps) |
Term |
buildWellFormedHeapsCondition() |
private Map<LocationVariable,Map<Term,Term>> |
constructRemembranceVariables() |
private LocationVariable |
getBaseHeapFunction() |
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 final BlockContract contract
private final List<LocationVariable> heaps
private final BlockContract.Variables variables
private final BlockContract.Terms terms
public BlockContractRule.ConditionsAndClausesBuilder(BlockContract contract, List<LocationVariable> heaps, BlockContract.Variables variables, Term self, Services services)
public Term buildPrecondition()
public Term buildWellFormedHeapsCondition()
public Term buildReachableInCondition(ImmutableSet<ProgramVariable> localInVariables)
public Term buildReachableOutCondition(ImmutableSet<ProgramVariable> localOutVariables)
public Term buildReachableCondition(ImmutableSet<ProgramVariable> variables)
public Map<LocationVariable,Term> buildModifiesClauses()
public Term buildPostcondition()
public Term buildFrameCondition(Map<LocationVariable,Term> modifiesClauses)
private Map<LocationVariable,Map<Term,Term>> constructRemembranceVariables()
private LocationVariable getBaseHeapFunction()
public Term buildWellFormedAnonymisationHeapsCondition(Map<LocationVariable,Function> anonymisationHeaps)
public Term buildAtMostOneFlagSetCondition()
private List<Term> buildFlagsNotSetConditions(Collection<ProgramVariable> flags)
private Term buildFlagNotSetCondition(ProgramVariable flag)