Class/Object

ap.theories.heaps

ArrayHeap

Related Docs: object ArrayHeap | package heaps

Permalink

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. All

Instance Constructors

  1. new ArrayHeap(heapSortName: String, addressSortName: String, rangeSortName: String, objectSort: ADTSort, userSortNames: Seq[String], ctorSignatures: Seq[(String, CtorSignature)], defaultObjectCtor: (Seq[MonoSortedIFunction]) ⇒ ITerm)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val AddressSort: ADTProxySort

    Permalink

    Sort of addresses in this heap theory.

    Sort of addresses in this heap theory.

    Definition Classes
    ArrayHeapHeap
  5. val ArraySort: ArraySort

    Permalink
  6. val HeapAddressPairSort: ADTProxySort

    Permalink

    Result sort of the allocation function.

    Result sort of the allocation function.

    Definition Classes
    ArrayHeapHeap
  7. val HeapRangePairSort: ADTProxySort

    Permalink

    Result sort of the range allocation function.

    Result sort of the range allocation function.

    Definition Classes
    ArrayHeapHeap
  8. object HeapSort extends ProxySort with TheorySort

    Permalink

    The sort of heaps.

    The sort of heaps.

    Definition Classes
    ArrayHeapHeap
  9. val ObjectSort: ADTProxySort

    Permalink

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

    Permalink

    Sort of address ranges in this heap theory.

    Sort of address ranges in this heap theory.

    Definition Classes
    ArrayHeapHeap
  11. def SMTDeclarationSideEffects: Seq[Theory]

    Permalink

    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
  12. val addr: MonoSortedIFunction

    Permalink

    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
  13. val addrCtorId: Int

    Permalink
  14. val addrOrd: MonoSortedIFunction

    Permalink
  15. val addressSortId: Int

    Permalink
  16. val allAxioms: IFormula

    Permalink
  17. val alloc: MonoSortedIFunction

    Permalink

    Function to allocate new objects on the heap.

    Function to allocate new objects on the heap.

    Definition Classes
    ArrayHeapHeap
  18. val allocRange: MonoSortedIFunction

    Permalink

    Function to allocate a sequence of objects on the heap.

    Function to allocate a sequence of objects on the heap.

    Definition Classes
    ArrayHeapHeap
  19. val arrayTheory: ExtArray

    Permalink

    Arrays used to represent heap contents.

  20. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  21. val axioms: Formula

    Permalink

    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
  22. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  23. val defaultObject: ITerm

    Permalink

    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
  24. val dependencies: List[Theory { val totalityAxioms: ap.terfor.conjunctions.Conjunction }]

    Permalink

    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
  25. val distinctHeaps: MonoSortedPredicate

    Permalink
  26. val emptyHeap: MonoSortedIFunction

    Permalink

    Constant representing empty heaps.

    Constant representing empty heaps.

    Definition Classes
    ArrayHeapHeap
  27. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  29. def evalFun(f: IFunApp): Option[ITerm]

    Permalink

    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
  30. def evalPred(p: IAtom): Option[Boolean]

    Permalink

    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
  31. def evaluatingSimplifier(t: IExpression): IExpression

    Permalink

    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
  32. def expandFormula(f: IFormula): IFormula

    Permalink

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

  33. def expandTerm(f: ITerm): ITerm

    Permalink

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

  34. def extend(order: TermOrder): TermOrder

    Permalink

    Add the symbols defined by this theory to the order

    Add the symbols defined by this theory to the order

    Definition Classes
    Theory
  35. def fun2SMTString(f: IFunction): Option[String]

    Permalink

    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
  36. val funPredMap: Map[IFunction, Predicate]

    Permalink
  37. val functionPredicateMapping: List[(MonoSortedIFunction, Predicate)]

    Permalink

    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
  38. val functionalPredicates: Set[Predicate]

    Permalink

    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
  39. val functions: List[MonoSortedIFunction]

    Permalink

    Interpreted functions of the theory

    Interpreted functions of the theory

    Definition Classes
    ArrayHeapTheory
  40. def generateDecoderData(model: Conjunction): Option[TheoryDecoderData]

    Permalink

    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
  41. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  42. def hasUserHeapCtor(t: ITerm, id: Int): IFormula

    Permalink

    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
  43. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  44. val heapAddrPair: MonoSortedIFunction

    Permalink
  45. val heapAddrPair_1: MonoSortedIFunction

    Permalink

    Function to obtain the new heap after allocation.

    Function to obtain the new heap after allocation.

    Definition Classes
    ArrayHeapHeap
  46. val heapAddrPair_2: MonoSortedIFunction

    Permalink

    Function to obtain the new address after allocation.

    Function to obtain the new address after allocation.

    Definition Classes
    ArrayHeapHeap
  47. val heapConstant: Predicate

    Permalink
  48. val heapContents: MonoSortedIFunction

    Permalink
  49. val heapPair: MonoSortedIFunction

    Permalink
  50. val heapRangePair: MonoSortedIFunction

    Permalink
  51. val heapRangePair_1: MonoSortedIFunction

    Permalink

    Function to obtain the new heap after range allocation.

    Function to obtain the new heap after range allocation.

    Definition Classes
    ArrayHeapHeap
  52. val heapRangePair_2: MonoSortedIFunction

    Permalink

    Function to obtain the new address range after range allocation.

    Function to obtain the new address range after range allocation.

    Definition Classes
    ArrayHeapHeap
  53. lazy val heapRelatedSymbols: (Set[IFunction], Set[Predicate])

    Permalink

    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
  54. val heapSize: MonoSortedIFunction

    Permalink
  55. val heapSizeADT: ADT

    Permalink

    ADT for the heap contents array and its size.

  56. def iPostprocess(f: IFormula, signature: Signature): IFormula

    Permalink

    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
  57. def iPreprocess(f: IFormula, signature: Signature): (IFormula, Signature)

    Permalink

    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
  58. def isAlloc: Predicate

    Permalink

    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
  59. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  60. def isSoundForSat(theories: Seq[Theory], config: Theory.SatSoundnessConfig.Value): Boolean

    Permalink

    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
  61. val modelGenPredicates: Set[Predicate]

    Permalink

    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
  62. val name: String

    Permalink
  63. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  64. val nextAddr: MonoSortedIFunction

    Permalink

    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
  65. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  66. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  67. val nullAddr: MonoSortedIFunction

    Permalink

    Constant representing the null address.

    Constant representing the null address.

    Definition Classes
    ArrayHeapHeap
  68. val nullAddrCtorId: Int

    Permalink
  69. lazy val objectSortIndex: Int

    Permalink

    The index of the ObjectSort among the userHeapSorts.

    The index of the ObjectSort among the userHeapSorts.

    Definition Classes
    Heap
  70. val offHeapADT: ADT

    Permalink

    ADT for all things that cannot be on the heap.

  71. val onHeapADT: ADT

    Permalink

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

  72. def plugin: Some[Plugin]

    Permalink

    Optionally, a plug-in implementing reasoning in this theory

    Optionally, a plug-in implementing reasoning in this theory

    Definition Classes
    ArrayHeapTheory
  73. def postSimplifiers: Seq[(IExpression) ⇒ IExpression]

    Permalink

    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
  74. def postprocess(f: Conjunction, signature: Signature): Conjunction

    Permalink

    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
  75. def pred2SMTString(p: Predicate): Option[String]

    Permalink

    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
  76. val predefPredicates: List[Predicate]

    Permalink
  77. val predicateMatchConfig: PredicateMatchConfig

    Permalink

    Information how interpreted predicates should be handled for e-matching.

    Information how interpreted predicates should be handled for e-matching.

    Definition Classes
    ArrayHeapTheory
  78. val predicates: Seq[Predicate]

    Permalink

    Interpreted predicates of the theory

    Interpreted predicates of the theory

    Definition Classes
    ArrayHeapTheory
  79. def preprocess(f: Conjunction, signature: Signature): Conjunction

    Permalink

    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
  80. def printSMTDeclaration: Unit

    Permalink

    Overrides to make Heap SMT-linearisable

    Overrides to make Heap SMT-linearisable

    Definition Classes
    HeapSMTLinearisableTheory
  81. val range: MonoSortedIFunction

    Permalink

    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
  82. val rangeCtorId: Int

    Permalink
  83. val rangeNth: MonoSortedIFunction

    Permalink

    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
  84. val rangeSize: MonoSortedIFunction

    Permalink

    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
  85. val rangeSortId: Int

    Permalink
  86. val rangeStart: MonoSortedIFunction

    Permalink
  87. val rangeWithin: MonoSortedPredicate

    Permalink

    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
  88. val rawHeapSort: ADTProxySort

    Permalink
  89. val read: MonoSortedIFunction

    Permalink

    Function to read from the heap.

    Function to read from the heap.

    Definition Classes
    ArrayHeapHeap
  90. val readUnsafe: MonoSortedIFunction

    Permalink
  91. val reducerPlugin: ReducerPluginFactory

    Permalink

    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
  92. val singleInstantiationPredicates: Set[Predicate]

    Permalink

    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
  93. def sort2SMTType(s: Sort): Option[SMTType]

    Permalink

    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
  94. val storeRange: MonoSortedIFunction

    Permalink
  95. val storeRange2: MonoSortedIFunction

    Permalink
  96. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  97. def toString(): String

    Permalink
    Definition Classes
    ArrayHeap → AnyRef → Any
  98. val totalityAxioms: Conjunction

    Permalink

    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
  99. lazy val transitiveDependencies: Iterable[Theory]

    Permalink

    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
  100. val triggerRelevantFunctions: Set[IFunction]

    Permalink

    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
  101. val userHeapConstructors: IndexedSeq[MonoSortedIFunction]

    Permalink

    Constructors declared as part of the heap ADT.

    Constructors declared as part of the heap ADT.

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

    Permalink

    User-specified constructor declarations.

    User-specified constructor declarations.

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

    Permalink

    Selectors declared as part of the heap ADT.

    Selectors declared as part of the heap ADT.

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

    Permalink

    Sorts declared as part of the heap ADT.

    Sorts declared as part of the heap ADT.

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

    Permalink

    Updators declared as part of the heap ADT.

    Updators declared as part of the heap ADT.

    Definition Classes
    ArrayHeapHeap
  106. val userSortNum: Int

    Permalink
  107. val valid: MonoSortedPredicate

    Permalink

    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
  108. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  109. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  110. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  111. val write: MonoSortedIFunction

    Permalink

    Function to write to the heap.

    Function to write to the heap.

    Definition Classes
    ArrayHeapHeap
  112. val writeRange: MonoSortedIFunction

    Permalink

    Function to overwrite objects within an address range.

    Function to overwrite objects within an address range.

    Definition Classes
    ArrayHeapHeap

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Heap

Inherited from SMTLinearisableTheory

Inherited from Theory

Inherited from AnyRef

Inherited from Any

Ungrouped