Packages

  • package root
    Definition Classes
    root
  • package ap

    Package object making available some of the objects in sub-packages

    Package object making available some of the objects in sub-packages

    Definition Classes
    root
  • package theories

    Package object making available some of the objects in sub-packages

    Package object making available some of the objects in sub-packages

    Definition Classes
    ap
  • package heaps
    Definition Classes
    theories
  • ArrayHeap
  • Heap
  • NativeHeap

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NativeHeap
  2. Heap
  3. SMTLinearisableTheory
  4. Theory
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new NativeHeap(heapSortName: String, addressSortName: String, rangeSortName: String, objectSort: ADTSort, sortNames: Seq[String], ctorSignatures: Seq[(String, CtorSignature)], defaultObjectCtor: (Seq[MonoSortedIFunction]) => ITerm)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. implicit def HeapADTSortIdToInt(id: HeapADTSortId): Int
  5. val HeapAddressPairSort: ADTProxySort

    Result sort of the allocation function.

    Result sort of the allocation function.

    Definition Classes
    NativeHeapHeap
  6. val HeapRangePairSort: ADTProxySort

    Result sort of the range allocation function.

    Result sort of the range allocation function.

    Definition Classes
    NativeHeapHeap
  7. 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
    NativeHeapHeap
  8. val RangeSort: ADTProxySort

    Sort of address ranges in this heap theory.

    Sort of address ranges in this heap theory.

    Definition Classes
    NativeHeapHeap
  9. 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
    HeapSMTLinearisableTheory
  10. 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 to alloc, addr(2) the second address, etc. Applying the function to zero or to negative values should be treated as a synonym for nullAddr.

    Definition Classes
    NativeHeapHeap
  11. val adtCtorSignatures: Seq[(String, CtorSignature)]
  12. val adtDependencies: Seq[Theory]
  13. 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
    NativeHeapHeap
  14. 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
    NativeHeapHeap
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. 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
    NativeHeapTheory
  17. val axioms1: Formula
  18. val axioms2: Formula
  19. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  20. 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
    NativeHeapHeap
  21. val dependencies: Iterable[Theory]

    Optionally, other theories that this theory depends on.

    Optionally, other theories that this theory depends on.

    Definition Classes
    NativeHeapTheory
  22. val emptyHeap: MonoSortedIFunction

    Constant representing empty heaps.

    Constant representing empty heaps.

    Definition Classes
    NativeHeapHeap
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  25. 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
  26. 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
  27. def evaluatingSimplifier(t: IExpression): IExpression

    A simplification function that applies the methods evalFun and evalPred to some given expression (but not recursively).

    A simplification function that applies the methods evalFun and evalPred to some given expression (but not recursively). This is used in the Theory.postSimplifiers methods.

    Definition Classes
    Theory
  28. 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
  29. 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
  30. val funPredicates: Seq[Predicate]
  31. 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
    NativeHeapTheory
  32. val functionTranslation: Map[IFunction, Predicate]
  33. 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
    NativeHeapTheory
  34. val functions: List[MonoSortedIFunction]

    Interpreted functions of the theory

    Interpreted functions of the theory

    Definition Classes
    NativeHeapTheory
  35. 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
  36. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  37. 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
    NativeHeapHeap
  38. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  39. val heapADTDefinitions: Map[HeapADTSortId, (String, CtorSignature)]
  40. val heapADTs: ADT
  41. val heapAddrPair_1: MonoSortedIFunction

    Function to obtain the new heap after allocation.

    Function to obtain the new heap after allocation.

    Definition Classes
    NativeHeapHeap
  42. val heapAddrPair_2: MonoSortedIFunction

    Function to obtain the new address after allocation.

    Function to obtain the new address after allocation.

    Definition Classes
    NativeHeapHeap
  43. val heapRangePair_1: MonoSortedIFunction

    Function to obtain the new heap after range allocation.

    Function to obtain the new heap after range allocation.

    Definition Classes
    NativeHeapHeap
  44. 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
    NativeHeapHeap
  45. 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
    NativeHeapHeap
  46. val heapSize: MonoSortedIFunction
  47. 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
  48. 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
    NativeHeapTheory
  49. val inductionAxioms: IFormula
  50. 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
  51. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  52. 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
    NativeHeapTheory
  53. 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 atom p(x), for p in this set, then the PresburgerModelFinder will ignore x when assigning concrete values to symbols.

    Definition Classes
    Theory
  54. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  55. val nextAddr: MonoSortedIFunction

    A function to enumerate the next addresses that will be returned by the alloc function.

    A function to enumerate the next addresses that will be returned by the alloc function. The next address that can be allocated is nextAddr(h, 0), then nextAddr(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 on h, nextAddr(h, -2) the address before that, etc. Since a heap only has finitely many allocated addresses, for two small n, the result of nextAddr(h, n) is nullAddr.

    addr(k) is a synonym for nextAddr(emptyHeap, k - 1).

    Definition Classes
    NativeHeapHeap
  56. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  57. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  58. val nullAddr: MonoSortedIFunction

    Constant representing the null address.

    Constant representing the null address.

    Definition Classes
    NativeHeapHeap
  59. val objectSortId: Int
  60. lazy val objectSortIndex: Int

    The index of the ObjectSort among the userHeapSorts.

    The index of the ObjectSort among the userHeapSorts.

    Definition Classes
    Heap
  61. val order: TermOrder
  62. def plugin: Option[Plugin]

    Optionally, a plug-in implementing reasoning in this theory

    Optionally, a plug-in implementing reasoning in this theory

    Definition Classes
    NativeHeapTheory
  63. 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 the evaluatingSimplifier.

    Definition Classes
    NativeHeapTheory
  64. 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
  65. 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
  66. val predefPredicates: List[MonoSortedPredicate]
  67. 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
    NativeHeapTheory
  68. val predicates: List[Predicate]

    Interpreted predicates of the theory

    Interpreted predicates of the theory

    Definition Classes
    NativeHeapTheory
  69. 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
  70. def printSMTDeclaration: Unit

    Overrides to make Heap SMT-linearisable

    Overrides to make Heap SMT-linearisable

    Definition Classes
    HeapSMTLinearisableTheory
  71. 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 address addr(1) of size n. 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
    NativeHeapHeap
  72. 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
    NativeHeapHeap
  73. 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
    NativeHeapHeap
  74. 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
    NativeHeapHeap
  75. val read: MonoSortedIFunction

    Function to read from the heap.

    Function to read from the heap.

    Definition Classes
    NativeHeapHeap
  76. 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
  77. def rewriter(expr: IExpression): IExpression
  78. val singleInstantiationPredicates: Set[Predicate]

    When instantiating existentially quantifier formulas, EX phi, at most one instantiation is necessary provided that all predicates in phi are contained in this set.

    When instantiating existentially quantifier formulas, EX phi, at most one instantiation is necessary provided that all predicates in phi are contained in this set.

    Definition Classes
    Theory
  79. 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
  80. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  81. val theoryAxioms: IFormula
  82. def toString(): String
    Definition Classes
    NativeHeap → AnyRef → Any
  83. val totalityAxioms: Conjunction

    Additional axioms that are included if the option +genTotalityAxioms is given to Princess.

    Additional axioms that are included if the option +genTotalityAxioms is given to Princess.

    Definition Classes
    NativeHeapTheory
  84. 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
  85. 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
    NativeHeapTheory
  86. val triggeredAxioms: IFormula
  87. val userADTCtors: Seq[MonoSortedIFunction]
  88. val userADTSels: Seq[Seq[MonoSortedIFunction]]
  89. val userADTSorts: IndexedSeq[ADTProxySort]
  90. val userCtorSignatures: Seq[(String, CtorSignature)]
  91. val userHeapConstructors: IndexedSeq[MonoSortedIFunction]

    Constructors declared as part of the heap ADT.

    Constructors declared as part of the heap ADT.

    Definition Classes
    NativeHeapHeap
  92. val userHeapCtorSignatures: Seq[(String, CtorSignature)]

    User-specified constructor declarations.

    User-specified constructor declarations.

    Definition Classes
    NativeHeapHeap
  93. val userHeapSelectors: IndexedSeq[Seq[MonoSortedIFunction]]

    Selectors declared as part of the heap ADT.

    Selectors declared as part of the heap ADT.

    Definition Classes
    NativeHeapHeap
  94. val userHeapSorts: IndexedSeq[ADTProxySort]

    Sorts declared as part of the heap ADT.

    Sorts declared as part of the heap ADT.

    Definition Classes
    NativeHeapHeap
  95. val userHeapUpdators: IndexedSeq[Seq[MonoSortedIFunction]]

    Updators declared as part of the heap ADT.

    Updators declared as part of the heap ADT.

    Definition Classes
    NativeHeapHeap
  96. val userSortNames: Seq[String]
  97. 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
    NativeHeapHeap
  98. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  99. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  100. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  101. val write: MonoSortedIFunction

    Function to write to the heap.

    Function to write to the heap.

    Definition Classes
    NativeHeapHeap
  102. 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

  103. val writeRange: MonoSortedIFunction

    Function to overwrite objects within an address range.

    Function to overwrite objects within an address range.

    Definition Classes
    NativeHeapHeap
  104. object AddressSort extends ProxySort with TheorySort

    Sort of addresses in this heap theory.

    Sort of addresses in this heap theory.

    Definition Classes
    NativeHeapHeap
  105. object HeapADTSortId extends Enumeration
  106. object HeapSort extends ProxySort with TheorySort

    Sort of heaps in this heap theory.

    Sort of heaps in this heap theory.

    Definition Classes
    NativeHeapHeap

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Heap

Inherited from SMTLinearisableTheory

Inherited from Theory

Inherited from AnyRef

Inherited from Any

Ungrouped