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 ArrayHeap extends Heap

A theory of heaps implemented using arrays.

At the moment, extensionality and the range operations are not fully implemented yet.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ArrayHeap
  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 ArrayHeap(heapSortName: String, addressSortName: String, rangeSortName: String, objectSort: ADTSort, userSortNames: 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. val AddressSort: ADTProxySort

    Sort of addresses in this heap theory.

    Sort of addresses in this heap theory.

    Definition Classes
    ArrayHeapHeap
  5. val ArraySort: ArraySort
  6. val HeapAddressPairSort: ADTProxySort

    Result sort of the allocation function.

    Result sort of the allocation function.

    Definition Classes
    ArrayHeapHeap
  7. val HeapRangePairSort: ADTProxySort

    Result sort of the range allocation function.

    Result sort of the range allocation function.

    Definition Classes
    ArrayHeapHeap
  8. val ObjectSort: ADTProxySort

    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
    ArrayHeapHeap
  9. val RangeSort: ADTProxySort

    Sort of address ranges in this heap theory.

    Sort of address ranges in this heap theory.

    Definition Classes
    ArrayHeapHeap
  10. 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
  11. 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
    ArrayHeapHeap
  12. val addrCtorId: Int
  13. val addrOrd: MonoSortedIFunction
  14. val addressSortId: Int
  15. val allAxioms: IFormula
  16. val alloc: MonoSortedIFunction

    Function to allocate new objects on the heap.

    Function to allocate new objects on the heap.

    Definition Classes
    ArrayHeapHeap
  17. 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
    ArrayHeapHeap
  18. val arrayTheory: ExtArray

    Arrays used to represent heap contents.

  19. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  20. 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
    ArrayHeapTheory
  21. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  22. 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
    ArrayHeapHeap
  23. val dependencies: List[Theory { val totalityAxioms: ap.terfor.conjunctions.Conjunction }]

    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
    ArrayHeapTheory
  24. val distinctHeaps: MonoSortedPredicate
  25. val emptyHeap: MonoSortedIFunction

    Constant representing empty heaps.

    Constant representing empty heaps.

    Definition Classes
    ArrayHeapHeap
  26. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  28. 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
  29. 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
  30. 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
  31. def expandFormula(f: IFormula): IFormula

    Translate a formula to its internal presentation in terms of arrays and ADTs.

  32. def expandTerm(f: ITerm): ITerm

    Translate a term to its internal presentation in terms of arrays and ADTs.

  33. 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
  34. 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
  35. val funPredMap: Map[IFunction, Predicate]
  36. 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
    ArrayHeapTheory
  37. 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
    ArrayHeapTheory
  38. val functions: List[MonoSortedIFunction]

    Interpreted functions of the theory

    Interpreted functions of the theory

    Definition Classes
    ArrayHeapTheory
  39. 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
  40. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  41. 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
    ArrayHeapHeap
  42. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  43. val heapAddrPair: MonoSortedIFunction
  44. val heapAddrPair_1: MonoSortedIFunction

    Function to obtain the new heap after allocation.

    Function to obtain the new heap after allocation.

    Definition Classes
    ArrayHeapHeap
  45. val heapAddrPair_2: MonoSortedIFunction

    Function to obtain the new address after allocation.

    Function to obtain the new address after allocation.

    Definition Classes
    ArrayHeapHeap
  46. val heapConstant: Predicate
  47. val heapContents: MonoSortedIFunction
  48. val heapPair: MonoSortedIFunction
  49. val heapRangePair: MonoSortedIFunction
  50. val heapRangePair_1: MonoSortedIFunction

    Function to obtain the new heap after range allocation.

    Function to obtain the new heap after range allocation.

    Definition Classes
    ArrayHeapHeap
  51. 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
    ArrayHeapHeap
  52. 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
    ArrayHeapHeap
  53. val heapSize: MonoSortedIFunction
  54. val heapSizeADT: ADT

    ADT for the heap contents array and its size.

  55. 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
    ArrayHeapTheory
  56. 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
    ArrayHeapTheory
  57. 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
  58. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  59. 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
    ArrayHeapTheory
  60. 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
    ArrayHeapTheory
  61. val name: String
  62. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  63. 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
    ArrayHeapHeap
  64. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  65. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  66. val nullAddr: MonoSortedIFunction

    Constant representing the null address.

    Constant representing the null address.

    Definition Classes
    ArrayHeapHeap
  67. val nullAddrCtorId: Int
  68. lazy val objectSortIndex: Int

    The index of the ObjectSort among the userHeapSorts.

    The index of the ObjectSort among the userHeapSorts.

    Definition Classes
    Heap
  69. val offHeapADT: ADT

    ADT for all things that cannot be on the heap.

  70. val onHeapADT: ADT

    ADT for all objects that can potentially be stored on the heap.

  71. def plugin: Some[Plugin]

    Optionally, a plug-in implementing reasoning in this theory

    Optionally, a plug-in implementing reasoning in this theory

    Definition Classes
    ArrayHeapTheory
  72. 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 the evaluatingSimplifier.

    Definition Classes
    Theory
  73. 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
  74. 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
  75. val predefPredicates: List[Predicate]
  76. 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
    ArrayHeapTheory
  77. val predicates: Seq[Predicate]

    Interpreted predicates of the theory

    Interpreted predicates of the theory

    Definition Classes
    ArrayHeapTheory
  78. 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
  79. def printSMTDeclaration: Unit

    Overrides to make Heap SMT-linearisable

    Overrides to make Heap SMT-linearisable

    Definition Classes
    HeapSMTLinearisableTheory
  80. 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
    ArrayHeapHeap
  81. val rangeCtorId: Int
  82. 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
    ArrayHeapHeap
  83. 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
    ArrayHeapHeap
  84. val rangeSortId: Int
  85. val rangeStart: MonoSortedIFunction
  86. 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
    ArrayHeapHeap
  87. val rawHeapSort: ADTProxySort
  88. val read: MonoSortedIFunction

    Function to read from the heap.

    Function to read from the heap.

    Definition Classes
    ArrayHeapHeap
  89. val readUnsafe: MonoSortedIFunction
  90. 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
  91. 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
  92. 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
  93. val storeRange: MonoSortedIFunction
  94. val storeRange2: MonoSortedIFunction
  95. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  96. def toString(): String
    Definition Classes
    ArrayHeap → AnyRef → Any
  97. 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
    ArrayHeapTheory
  98. 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
  99. 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
    ArrayHeapTheory
  100. val userHeapConstructors: IndexedSeq[MonoSortedIFunction]

    Constructors declared as part of the heap ADT.

    Constructors declared as part of the heap ADT.

    Definition Classes
    ArrayHeapHeap
  101. val userHeapCtorSignatures: Seq[(String, CtorSignature)]

    User-specified constructor declarations.

    User-specified constructor declarations.

    Definition Classes
    ArrayHeapHeap
  102. val userHeapSelectors: IndexedSeq[Seq[MonoSortedIFunction]]

    Selectors declared as part of the heap ADT.

    Selectors declared as part of the heap ADT.

    Definition Classes
    ArrayHeapHeap
  103. val userHeapSorts: IndexedSeq[ADTProxySort]

    Sorts declared as part of the heap ADT.

    Sorts declared as part of the heap ADT.

    Definition Classes
    ArrayHeapHeap
  104. val userHeapUpdators: IndexedSeq[Seq[MonoSortedIFunction]]

    Updators declared as part of the heap ADT.

    Updators declared as part of the heap ADT.

    Definition Classes
    ArrayHeapHeap
  105. val userSortNum: Int
  106. 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
    ArrayHeapHeap
  107. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  108. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  109. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  110. val write: MonoSortedIFunction

    Function to write to the heap.

    Function to write to the heap.

    Definition Classes
    ArrayHeapHeap
  111. val writeRange: MonoSortedIFunction

    Function to overwrite objects within an address range.

    Function to overwrite objects within an address range.

    Definition Classes
    ArrayHeapHeap
  112. object HeapSort extends ProxySort with TheorySort

    The sort of heaps.

    The sort of heaps.

    Definition Classes
    ArrayHeapHeap

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