class NativeHeap extends Heap
defaultObjectCtor is called from the theory (before it is completely initialised), and it passes back the theory ADTs for adding to environment (e.g. as done in SMTParser2InputAbsy), and also the actual constructors for the ctorSignatures, so the defObj term can be built using those.
- Alphabetic
- By Inheritance
- NativeHeap
- Heap
- SMTLinearisableTheory
- Theory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new NativeHeap(heapSortName: String, addressSortName: String, rangeSortName: String, objectSort: ADTSort, sortNames: Seq[String], ctorSignatures: Seq[(String, CtorSignature)], defaultObjectCtor: (Seq[MonoSortedIFunction]) => 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
- implicit def HeapADTSortIdToInt(id: HeapADTSortId): Int
- val HeapAddressPairSort: ADTProxySort
Result sort of the allocation function.
Result sort of the allocation function.
- Definition Classes
- NativeHeap → Heap
- val HeapRangePairSort: ADTProxySort
Result sort of the range allocation function.
Result sort of the range allocation function.
- Definition Classes
- NativeHeap → Heap
- 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.- Definition Classes
- NativeHeap → Heap
- val RangeSort: ADTProxySort
Sort of address ranges in this heap theory.
Sort of address ranges in this heap theory.
- Definition Classes
- NativeHeap → Heap
- 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 addr: MonoSortedIFunction
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.- Definition Classes
- NativeHeap → Heap
- val adtCtorSignatures: Seq[(String, CtorSignature)]
- val adtDependencies: Seq[Theory]
- val alloc: MonoSortedIFunction
See the Heap trait for functions and predicates of the theory writeADT : Obj x Obj --> Heap * Updates the ADT's field (described by a read to 0) using value (1) *************************************************************************** Private functions and predicates *************************************************************************** heapSize : Heap --> Nat
See the Heap trait for functions and predicates of the theory writeADT : Obj x Obj --> Heap * Updates the ADT's field (described by a read to 0) using value (1) *************************************************************************** Private functions and predicates *************************************************************************** heapSize : Heap --> Nat
* Below two functions are shorthand functions to get rid of HeapAddrPair. * 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. allocHeap : Heap x Obj --> Heap allocAddr : Heap x Obj --> Address
* Below two functions are shorthand functions to get rid of HeapRangePair. * They return a single value instead of the pair <Heap x Range>. * This also removes some quantifiers related to the ADT in the generated * interpolants. batchAllocHeap : Heap x Obj x Nat --> Heap batchAllocRange : Heap x Obj x Nat --> Range * ***************************************************************************
- Definition Classes
- NativeHeap → Heap
- val allocRange: MonoSortedIFunction
Function to allocate a sequence of objects on the heap.
Function to allocate a sequence of objects on the heap.
- Definition Classes
- NativeHeap → Heap
- 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).
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
- NativeHeap → Theory
- val axioms1: Formula
- val axioms2: Formula
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- val defaultObject: ITerm
The object stored on the heap at not yet allocated locations.
The object stored on the heap at not yet allocated locations.
- Definition Classes
- NativeHeap → Heap
- val dependencies: Iterable[Theory]
Optionally, other theories that this theory depends on.
Optionally, other theories that this theory depends on.
- Definition Classes
- NativeHeap → Theory
- val emptyHeap: MonoSortedIFunction
Constant representing empty heaps.
Constant representing empty heaps.
- Definition Classes
- NativeHeap → Heap
- 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
- 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).
Mapping of interpreted functions to interpreted predicates, used translating input ASTs to internal ASTs (the latter only containing predicates).
- Definition Classes
- NativeHeap → Theory
- 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
Information which of the predicates satisfy the functionality axiom; at some internal points, such predicates can be handled more efficiently
- Definition Classes
- NativeHeap → Theory
- val functions: List[MonoSortedIFunction]
Interpreted functions of the theory
Interpreted functions of the theory
- Definition Classes
- NativeHeap → 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 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.- Definition Classes
- NativeHeap → Heap
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val heapADTDefinitions: Map[HeapADTSortId, (String, CtorSignature)]
- val heapADTs: ADT
- val heapAddrPair_1: MonoSortedIFunction
Function to obtain the new heap after allocation.
Function to obtain the new heap after allocation.
- Definition Classes
- NativeHeap → Heap
- val heapAddrPair_2: MonoSortedIFunction
Function to obtain the new address after allocation.
Function to obtain the new address after allocation.
- Definition Classes
- NativeHeap → Heap
- val heapRangePair_1: MonoSortedIFunction
Function to obtain the new heap after range allocation.
Function to obtain the new heap after range allocation.
- Definition Classes
- NativeHeap → Heap
- val heapRangePair_2: MonoSortedIFunction
Function to obtain the new address range after range allocation.
Function to obtain the new address range after range allocation.
- Definition Classes
- NativeHeap → Heap
- lazy val 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.
Method to query all functions and predicates of the theory, including API, internal symbols, and symbols of the constituent theories.
- Definition Classes
- NativeHeap → Heap
- val heapSize: MonoSortedIFunction
- 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
- NativeHeap → Theory
- val inductionAxioms: IFormula
- 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.- Definition Classes
- Heap
- 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
- NativeHeap → 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
- val nextAddr: MonoSortedIFunction
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).- Definition Classes
- NativeHeap → Heap
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val nullAddr: MonoSortedIFunction
Constant representing the null address.
Constant representing the null address.
- Definition Classes
- NativeHeap → Heap
- val objectSortId: Int
- lazy val objectSortIndex: Int
The index of the
ObjectSortamong theuserHeapSorts.The index of the
ObjectSortamong theuserHeapSorts.- Definition Classes
- Heap
- val order: TermOrder
- def plugin: Option[Plugin]
Optionally, a plug-in implementing reasoning in this theory
Optionally, a plug-in implementing reasoning in this theory
- Definition Classes
- NativeHeap → 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.
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
- NativeHeap → 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
- val predefPredicates: List[MonoSortedPredicate]
- 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
- NativeHeap → Theory
- val predicates: List[Predicate]
Interpreted predicates of the theory
Interpreted predicates of the theory
- Definition Classes
- NativeHeap → Theory
- 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 range: MonoSortedIFunction
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.- Definition Classes
- NativeHeap → Heap
- val rangeNth: MonoSortedIFunction
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.- Definition Classes
- NativeHeap → Heap
- val rangeSize: MonoSortedIFunction
Function to obtain the number of addresses in an address range.
Function to obtain the number of addresses in an address range.
- Definition Classes
- NativeHeap → Heap
- val rangeWithin: MonoSortedPredicate
Predicate to test whether an address belongs to an address range.
Predicate to test whether an address belongs to an address range.
- Definition Classes
- NativeHeap → Heap
- val read: MonoSortedIFunction
Function to read from the heap.
Function to read from the heap.
- Definition Classes
- NativeHeap → Heap
- 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 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
- val theoryAxioms: IFormula
- def toString(): String
- Definition Classes
- NativeHeap → AnyRef → Any
- val totalityAxioms: Conjunction
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
- NativeHeap → Theory
- 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
A list of functions that should be considered in automatic trigger generation
- Definition Classes
- NativeHeap → Theory
- val triggeredAxioms: IFormula
- val userADTCtors: Seq[MonoSortedIFunction]
- val userADTSels: Seq[Seq[MonoSortedIFunction]]
- val userADTSorts: IndexedSeq[ADTProxySort]
- val userCtorSignatures: Seq[(String, CtorSignature)]
- val userHeapConstructors: IndexedSeq[MonoSortedIFunction]
Constructors declared as part of the heap ADT.
Constructors declared as part of the heap ADT.
- Definition Classes
- NativeHeap → Heap
- val userHeapCtorSignatures: Seq[(String, CtorSignature)]
User-specified constructor declarations.
User-specified constructor declarations.
- Definition Classes
- NativeHeap → Heap
- val userHeapSelectors: IndexedSeq[Seq[MonoSortedIFunction]]
Selectors declared as part of the heap ADT.
Selectors declared as part of the heap ADT.
- Definition Classes
- NativeHeap → Heap
- val userHeapSorts: IndexedSeq[ADTProxySort]
Sorts declared as part of the heap ADT.
Sorts declared as part of the heap ADT.
- Definition Classes
- NativeHeap → Heap
- val userHeapUpdators: IndexedSeq[Seq[MonoSortedIFunction]]
Updators declared as part of the heap ADT.
Updators declared as part of the heap ADT.
- Definition Classes
- NativeHeap → Heap
- val userSortNames: Seq[String]
- val valid: MonoSortedPredicate
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.
- Definition Classes
- NativeHeap → Heap
- 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 write: MonoSortedIFunction
Function to write to the heap.
Function to write to the heap.
- Definition Classes
- NativeHeap → Heap
- 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
- val writeRange: MonoSortedIFunction
Function to overwrite objects within an address range.
Function to overwrite objects within an address range.
- Definition Classes
- NativeHeap → Heap
- object AddressSort extends ProxySort with TheorySort
Sort of addresses in this heap theory.
Sort of addresses in this heap theory.
- Definition Classes
- NativeHeap → Heap
- object HeapADTSortId extends Enumeration
- object HeapSort extends ProxySort with TheorySort
Sort of heaps in this heap theory.
Sort of heaps in this heap theory.
- Definition Classes
- NativeHeap → Heap
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)