class Heap extends SMTLinearisableTheory
- Alphabetic
- By Inheritance
- Heap
- SMTLinearisableTheory
- Theory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Heap(heapSortName: String, addressSortName: String, objectSort: ADTSort, sortNames: Seq[String], ctorSignatures: Seq[(String, CtorSignature)], defaultObjectCtor: (Seq[MonoSortedIFunction], ADT) => ITerm)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val AddressSort: AddressSort
- implicit def HeapADTSortIdToInt(id: HeapADTSortId): Int
- val HeapSort: HeapSort
- val ObjectSort: Sort
- def SMTDeclarationSideEffects: Seq[Theory]
A list of (other) theories that are implicitly declared as a side-effect of declaring this theory.
A list of (other) theories that are implicitly declared as a side-effect of declaring this theory. We assume that theories can implicitly define some of their dependencies, but not vice versa.
- Definition Classes
- Heap → SMTLinearisableTheory
- val _defObj: ITerm
- val addrRangeSize: MonoSortedIFunction
- val addrRangeStart: MonoSortedIFunction
- val addressRangeCtor: MonoSortedIFunction
- val addressRangeSort: ADTProxySort
- val adtCtorSignatures: Seq[(String, CtorSignature)]
- val adtDependencies: Seq[Theory]
- val alloc: MonoSortedIFunction
Functions and predicates of the theory Assuming Address as address sort name, Heap as heap sort name, and Obj as the selected object sort.
Functions and predicates of the theory Assuming Address as address sort name, Heap as heap sort name, and Obj as the selected object sort. Some function / predicate names incorporate the defined / selected names. *************************************************************************** Public functions and predicates *************************************************************************** emptyHeap : () --> Heap alloc : Heap x Obj --> Heap x Address (allocResHeap) read : Heap x Address --> Obj write : Heap x Address x Obj --> Heap valid (isAlloc) : Heap x Address --> Bool deAlloc : Heap --> Heap nthAddress : Nat --> Address
batchAlloc : Heap x Obj x Nat --> Heap x AddressRange (batchAllocResHeap) batchWrite : Heap x AddressRange x Obj --> Heap nth : AddressRange x Nat --> Address within : AddressRange x Address --> Bool
0 1 writeADT : Obj x Obj --> Heap * Updates the ADT's field (described by a read to 0) using value (1) *************************************************************************** Private functions and predicates *************************************************************************** counter : Heap --> Nat
* Below two functions are shorthand functions to get rid of allocRes ADT. * They return a single value instead of the pair <Heap x Addr>. * This also removes some quantifiers related to the ADT in the generated * interpolants. alloc<heapSortName> : Heap x Obj --> Heap alloc<addressSortName> : Heap x Obj --> Address
* Below two functions are shorthand functions to get rid of batchAllocRes ADT. * They return a single value instead of the pair <Heap x AddressRange>. * This also removes some quantifiers related to the ADT in the generated * interpolants. batchAlloc<heapSortName> : Heap x Obj x Nat --> Heap batchAlloc<addressSortName>Range : Heap x Obj x Nat --> AddressRange * ***************************************************************************
- val allocAddr: MonoSortedIFunction
- val allocHeap: MonoSortedIFunction
- val allocResCtor: MonoSortedIFunction
- val allocResSort: ADTProxySort
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val axioms: Conjunction
Axioms defining the theory; such axioms are simply added as formulae to the problem to be proven, and thus handled using the standard reasoning techniques (including e-matching).
- val axioms1: Formula
- val axioms2: Formula
- val batchAlloc: MonoSortedIFunction
- val batchAllocAddrRange: MonoSortedIFunction
- val batchAllocHeap: MonoSortedIFunction
- val batchAllocResCtor: MonoSortedIFunction
- val batchAllocResSort: ADTProxySort
- val batchWrite: MonoSortedIFunction
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def containsADTSort(sort: Sort): Boolean
Returns whether (an ADT) sort is declared as part of this theory.
- val counter: MonoSortedIFunction
- val deAlloc: MonoSortedIFunction
- val dependencies: Iterable[Theory]
Optionally, other theories that this theory depends on.
- val emptyHeap: MonoSortedIFunction
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def evalFun(f: IFunApp): Option[ITerm]
Optionally, a function evaluating theory functions applied to concrete arguments, represented as constructor terms.
Optionally, a function evaluating theory functions applied to concrete arguments, represented as constructor terms.
- Definition Classes
- Theory
- def evalPred(p: IAtom): Option[Boolean]
Optionally, a function evaluating theory predicates applied to concrete arguments, represented as constructor terms.
Optionally, a function evaluating theory predicates applied to concrete arguments, represented as constructor terms.
- Definition Classes
- Theory
- def evaluatingSimplifier(t: IExpression): IExpression
A simplification function that applies the methods
evalFun
andevalPred
to some given expression (but not recursively).A simplification function that applies the methods
evalFun
andevalPred
to some given expression (but not recursively). This is used in theTheory.postSimplifiers
methods.- Definition Classes
- Theory
- def extend(order: TermOrder): TermOrder
Add the symbols defined by this theory to the
order
Add the symbols defined by this theory to the
order
- Definition Classes
- Theory
- def fun2SMTString(f: IFunction): Option[String]
Translate a function belonging to this theory to an SMT-LIB identifier.
Translate a function belonging to this theory to an SMT-LIB identifier.
- Definition Classes
- SMTLinearisableTheory
- val funPredicates: Seq[Predicate]
- val functionPredicateMapping: List[(MonoSortedIFunction, Predicate)]
Mapping of interpreted functions to interpreted predicates, used translating input ASTs to internal ASTs (the latter only containing predicates).
- val functionTranslation: Map[IFunction, Predicate]
- val functionalPredicates: Set[Predicate]
Information which of the predicates satisfy the functionality axiom; at some internal points, such predicates can be handled more efficiently
- val functions: List[MonoSortedIFunction]
Interpreted functions of the theory
- def generateDecoderData(model: Conjunction): Option[TheoryDecoderData]
If this theory defines any
Theory.Decoder
, which can translate model data into some theory-specific representation, this function can be overridden to pre-compute required data from a model.If this theory defines any
Theory.Decoder
, which can translate model data into some theory-specific representation, this function can be overridden to pre-compute required data from a model.- Definition Classes
- Theory
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val heapADTDefinitions: Map[HeapADTSortId, (String, CtorSignature)]
- val heapADTs: ADT
- def iPostprocess(f: IFormula, signature: Signature): IFormula
Optionally, a post-processor that is applied to formulas output by the prover, for instance to interpolants or the result of quantifier elimination.
Optionally, a post-processor that is applied to formulas output by the prover, for instance to interpolants or the result of quantifier elimination. This method will be applied to the formula after calling
Internal2Inputabsy
.- Definition Classes
- Theory
- def iPreprocess(f: IFormula, signature: Signature): (IFormula, Signature)
Optionally, a pre-processor that is applied to formulas over this theory, prior to sending the formula to a prover.
- val inductionAxioms: IFormula
- val isAlloc: MonoSortedPredicate
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isSoundForSat(theories: Seq[Theory], config: Theory.SatSoundnessConfig.Value): Boolean
Check whether we can tell that the given combination of theories is sound for checking satisfiability of a problem, i.e., if proof construction ends up in a dead end, can it be concluded that a problem is satisfiable.
- val modelGenPredicates: Set[Predicate]
Optionally, a set of predicates used by the theory to tell the
PresburgerModelFinder
about terms that will be handled exclusively by this theory.Optionally, a set of predicates used by the theory to tell the
PresburgerModelFinder
about terms that will be handled exclusively by this theory. If a proof goal in model generation mode contains an atomp(x)
, forp
in this set, then thePresburgerModelFinder
will ignorex
when assigning concrete values to symbols.- Definition Classes
- Theory
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val newAddr: MonoSortedIFunction
- val newAddrRange: MonoSortedIFunction
- val newBatchHeap: MonoSortedIFunction
- val newHeap: MonoSortedIFunction
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val nth: MonoSortedIFunction
- val nthAddr: MonoSortedIFunction
- val nullAddr: MonoSortedIFunction
- val objectSortId: Int
- val order: TermOrder
- def plugin: Option[Plugin]
Optionally, a plug-in implementing reasoning in this theory
- val postSimplifiers: Seq[(IExpression) => IExpression]
Optionally, simplifiers that are applied to formulas output by the prover, for instance to interpolants or the result of quantifier.
- def postprocess(f: Conjunction, order: TermOrder): Conjunction
Optionally, a post-processor that is applied to formulas output by the prover, for instance to interpolants or the result of quantifier elimination.
Optionally, a post-processor that is applied to formulas output by the prover, for instance to interpolants or the result of quantifier elimination. This method will be applied to the raw formulas, before calling
Internal2Inputabsy
.- Definition Classes
- Theory
- def pred2SMTString(p: Predicate): Option[String]
Translate a predicate belonging to this theory to an SMT-LIB identifier.
Translate a predicate belonging to this theory to an SMT-LIB identifier.
- Definition Classes
- SMTLinearisableTheory
- val predefPredicates: List[MonoSortedPredicate]
- val predicateMatchConfig: PredicateMatchConfig
Information how interpreted predicates should be handled for e-matching.
- val predicates: List[Predicate]
Interpreted predicates of the theory
- def preprocess(f: Conjunction, order: TermOrder): Conjunction
Optionally, a pre-processor that is applied to formulas over this theory, prior to sending the formula to a prover.
Optionally, a pre-processor that is applied to formulas over this theory, prior to sending the formula to a prover.
- Definition Classes
- Theory
- def printSMTDeclaration: Unit
Print an SMT-LIB declaration of this theory; do not output anything if the theory does not need to be declared.
Print an SMT-LIB declaration of this theory; do not output anything if the theory does not need to be declared.
- Definition Classes
- Heap → SMTLinearisableTheory
- val read: MonoSortedIFunction
- val reducerPlugin: ReducerPluginFactory
Optionally, a plugin for the reducer applied to formulas both before and during proving.
Optionally, a plugin for the reducer applied to formulas both before and during proving.
- Definition Classes
- Theory
- def rewriter(expr: IExpression): IExpression
- val singleInstantiationPredicates: Set[Predicate]
When instantiating existentially quantifier formulas,
EX phi
, at most one instantiation is necessary provided that all predicates inphi
are contained in this set.When instantiating existentially quantifier formulas,
EX phi
, at most one instantiation is necessary provided that all predicates inphi
are contained in this set.- Definition Classes
- Theory
- def sort2SMTType(s: Sort): Option[SMTType]
Translate a sort belonging to this theory to an SMT type.
Translate a sort belonging to this theory to an SMT type.
- Definition Classes
- SMTLinearisableTheory
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val theoryAxioms: IFormula
- def toString(): String
- Definition Classes
- Heap → AnyRef → Any
- val totalityAxioms: Conjunction
Additional axioms that are included if the option
+genTotalityAxioms
is given to Princess. - lazy val transitiveDependencies: Iterable[Theory]
Dependencies closed under transitivity, i.e., also including the dependencies of dependencies.
Dependencies closed under transitivity, i.e., also including the dependencies of dependencies.
- Definition Classes
- Theory
- val triggerRelevantFunctions: Set[IFunction]
A list of functions that should be considered in automatic trigger generation
- val triggeredAxioms: IFormula
- val userADTCtors: Seq[MonoSortedIFunction]
- val userADTSels: Seq[Seq[MonoSortedIFunction]]
- val userADTSorts: IndexedSeq[ADTProxySort]
- val userCtorSignatures: Seq[(String, CtorSignature)]
- val userSortNames: Seq[String]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val within: MonoSortedPredicate
- val write: MonoSortedIFunction
- def writeADT(lhs: IFunApp, rhs: ITerm): ITerm
Helper function to write to ADT fields.
Helper function to write to ADT fields.
- lhs
: the ADT field term to be written to. This should be an IFunApp, where the outermost function is a selector of the ADT, the innermost function is a heap read to the ADT on the heap, the innermost+1 function is the getter of the ADT, and any intermediate functions are other selectors e.g. x(getS(read(h, p))) or (in C: p->x) x(s(getS(read(h, p)))) (in C: p->s.x) note that this method works for writing to non-ADTs as well, if lhs is provided as a read Object (e.g. getInt(read(h,p))).
- rhs
: the new value for the field, e.g. 42 this would return a new term, such as: S(42, y(s))
- returns
: the new ADT term
- object HeapADTSortId extends Enumeration
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)