trait Heap extends Theory with SMTLinearisableTheory
Trait implemented by the different heap theories.
- Alphabetic
- By Inheritance
- Heap
- SMTLinearisableTheory
- Theory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract val AddressSort: Sort
Sort of addresses in this heap theory.
- abstract val HeapAddressPairSort: Sort
Result sort of the allocation function.
- abstract val HeapRangePairSort: Sort
Result sort of the range allocation function.
- abstract val HeapSort: Sort
Sort of heaps in this heap theory.
- abstract val ObjectSort: Sort
Sort of objects stored on the heap.
Sort of objects stored on the heap. This sort is one of the elements of
userHeapSorts. - abstract val RangeSort: Sort
Sort of address ranges in this heap theory.
- abstract val addr: IFunction
A function to enumerate the addresses that can be used on this heap.
A function to enumerate the addresses that can be used on this heap.
addr(1)is the address returned by the first call toalloc,addr(2)the second address, etc. Applying the function to zero or to negative values should be treated as a synonym fornullAddr. - abstract val alloc: IFunction
Function to allocate new objects on the heap.
- abstract val allocRange: IFunction
Function to allocate a sequence of objects on the heap.
- abstract val axioms: Formula
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).
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).
- Definition Classes
- Theory
- abstract val defaultObject: ITerm
The object stored on the heap at not yet allocated locations.
- abstract val emptyHeap: IFunction
Constant representing empty heaps.
- abstract val functionPredicateMapping: Seq[(IFunction, Predicate)]
Mapping of interpreted functions to interpreted predicates, used translating input ASTs to internal ASTs (the latter only containing predicates).
Mapping of interpreted functions to interpreted predicates, used translating input ASTs to internal ASTs (the latter only containing predicates).
- Definition Classes
- Theory
- abstract val functionalPredicates: Set[Predicate]
Information which of the predicates satisfy the functionality axiom; at some internal points, such predicates can be handled more efficiently
Information which of the predicates satisfy the functionality axiom; at some internal points, such predicates can be handled more efficiently
- Definition Classes
- Theory
- abstract val functions: Seq[IFunction]
Interpreted functions of the theory
Interpreted functions of the theory
- Definition Classes
- Theory
- abstract def hasUserHeapCtor(t: ITerm, id: Int): IFormula
Tester for the user-declared heap constructors.
Tester for the user-declared heap constructors. The ids expected by the tester coincide with the positions in the sequence
userHeapCtors. - abstract val heapAddrPair_1: IFunction
Function to obtain the new heap after allocation.
- abstract val heapAddrPair_2: IFunction
Function to obtain the new address after allocation.
- abstract val heapRangePair_1: IFunction
Function to obtain the new heap after range allocation.
- abstract val heapRangePair_2: IFunction
Function to obtain the new address range after range allocation.
- abstract def heapRelatedSymbols: (Set[IFunction], Set[Predicate])
Method to query all functions and predicates of the theory, including API, internal symbols, and symbols of the constituent theories.
- abstract val nextAddr: IFunction
A function to enumerate the next addresses that will be returned by the
allocfunction.A function to enumerate the next addresses that will be returned by the
allocfunction. The next address that can be allocated isnextAddr(h, 0), thennextAddr(h, 1), etc. Applying the function to negative integers returns the last addresses that have been allocated:nextAddr(h, -1)is the last address that has been allocated onh,nextAddr(h, -2)the address before that, etc. Since a heap only has finitely many allocated addresses, for two smalln, the result ofnextAddr(h, n)isnullAddr.addr(k)is a synonym fornextAddr(emptyHeap, k - 1). - abstract val nullAddr: IFunction
Constant representing the null address.
- abstract def plugin: Option[Plugin]
Optionally, a plug-in implementing reasoning in this theory
Optionally, a plug-in implementing reasoning in this theory
- Definition Classes
- Theory
- abstract val predicateMatchConfig: PredicateMatchConfig
Information how interpreted predicates should be handled for e-matching.
Information how interpreted predicates should be handled for e-matching.
- Definition Classes
- Theory
- abstract val predicates: Seq[Predicate]
Interpreted predicates of the theory
Interpreted predicates of the theory
- Definition Classes
- Theory
- abstract val range: IFunction
A function to enumerate range of the addresses that can be used on this heap.
A function to enumerate range of the addresses that can be used on this heap.
range(1, n)is a range of addresses starting at the addressaddr(1)of sizen. Applying the function to a start address that is not positive or size that is not non-negative should be interpreted as an empty address range. - abstract val rangeNth: IFunction
Function to obtain the n'th address in an address range.
Function to obtain the n'th address in an address range. Accessing addresses outside of the range will return
nullAddr. - abstract val rangeSize: IFunction
Function to obtain the number of addresses in an address range.
- abstract val rangeWithin: Predicate
Predicate to test whether an address belongs to an address range.
- abstract val read: IFunction
Function to read from the heap.
- abstract val totalityAxioms: Formula
Additional axioms that are included if the option
+genTotalityAxiomsis given to Princess.Additional axioms that are included if the option
+genTotalityAxiomsis given to Princess.- Definition Classes
- Theory
- abstract val triggerRelevantFunctions: Set[IFunction]
A list of functions that should be considered in automatic trigger generation
A list of functions that should be considered in automatic trigger generation
- Definition Classes
- Theory
- abstract val userHeapConstructors: IndexedSeq[MonoSortedIFunction]
Constructors declared as part of the heap ADT.
- abstract val userHeapCtorSignatures: Seq[(String, CtorSignature)]
User-specified constructor declarations.
- abstract val userHeapSelectors: IndexedSeq[Seq[MonoSortedIFunction]]
Selectors declared as part of the heap ADT.
- abstract val userHeapSorts: IndexedSeq[Sort]
Sorts declared as part of the heap ADT.
- abstract val userHeapUpdators: IndexedSeq[Seq[MonoSortedIFunction]]
Updators declared as part of the heap ADT.
- abstract val valid: Predicate
Predicate to test whether an address is valid (allocated and non-null) in a given heap.
- abstract val write: IFunction
Function to write to the heap.
- abstract val writeRange: IFunction
Function to overwrite objects within an address range.
Concrete 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
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- val dependencies: Iterable[Theory]
Optionally, other theories that this theory depends on.
Optionally, other theories that this theory depends on. Specified dependencies will be loaded before this theory, but the preprocessors of the dependencies will be called after the preprocessor of this theory.
- Definition Classes
- Theory
- 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
evalFunandevalPredto some given expression (but not recursively).A simplification function that applies the methods
evalFunandevalPredto some given expression (but not recursively). This is used in theTheory.postSimplifiersmethods.- Definition Classes
- Theory
- def extend(order: TermOrder): TermOrder
Add the symbols defined by this theory to the
orderAdd 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
- 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()
- 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.
Optionally, a pre-processor that is applied to formulas over this theory, prior to sending the formula to a prover. This method will be applied very early in the translation process.
- Definition Classes
- Theory
- def isAlloc: Predicate
Predicate to test whether an address is valid (allocated and non-null) in a given heap.
Predicate to test whether an address is valid (allocated and non-null) in a given heap. Synonym for
valid. - 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.
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.
- Definition Classes
- Theory
- val modelGenPredicates: Set[Predicate]
Optionally, a set of predicates used by the theory to tell the
PresburgerModelFinderabout terms that will be handled exclusively by this theory.Optionally, a set of predicates used by the theory to tell the
PresburgerModelFinderabout terms that will be handled exclusively by this theory. If a proof goal in model generation mode contains an atomp(x), forpin this set, then thePresburgerModelFinderwill ignorexwhen assigning concrete values to symbols.- Definition Classes
- Theory
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- lazy val objectSortIndex: Int
The index of the
ObjectSortamong theuserHeapSorts. - def postSimplifiers: Seq[(IExpression) => IExpression]
Optionally, simplifiers that are applied to formulas output by the prover, for instance to interpolants or the result of quantifier.
Optionally, simplifiers that are applied to formulas output by the prover, for instance to interpolants or the result of quantifier. Such simplifiers are invoked by
ap.parser.Simplifier. By default, this list will only include theevaluatingSimplifier.- Definition Classes
- Theory
- def postprocess(f: Conjunction, signature: Signature): 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
- def preprocess(f: Conjunction, signature: Signature): 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
Overrides to make Heap SMT-linearisable
Overrides to make Heap SMT-linearisable
- Definition Classes
- Heap → SMTLinearisableTheory
- 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
- val singleInstantiationPredicates: Set[Predicate]
When instantiating existentially quantifier formulas,
EX phi, at most one instantiation is necessary provided that all predicates inphiare contained in this set.When instantiating existentially quantifier formulas,
EX phi, at most one instantiation is necessary provided that all predicates inphiare 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
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)