Packages

class Heap extends SMTLinearisableTheory

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

Instance Constructors

  1. new Heap(heapSortName: String, addressSortName: String, objectSort: ADTSort, sortNames: Seq[String], ctorSignatures: Seq[(String, CtorSignature)], defaultObjectCtor: (Seq[MonoSortedIFunction], ADT) => 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: AddressSort
  5. implicit def HeapADTSortIdToInt(id: HeapADTSortId): Int
  6. val HeapSort: HeapSort
  7. val ObjectSort: Sort
  8. 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
  9. val _defObj: ITerm
  10. val addrRangeSize: MonoSortedIFunction
  11. val addrRangeStart: MonoSortedIFunction
  12. val addressRangeCtor: MonoSortedIFunction
  13. val addressRangeSort: ADTProxySort
  14. val adtCtorSignatures: Seq[(String, CtorSignature)]
  15. val adtDependencies: Seq[Theory]
  16. val alloc: MonoSortedIFunction

    Functions and predicates of the theory Assuming Address as address sort name, Heap as heap sort name, and Obj as the selected object sort.

    Functions and predicates of the theory Assuming Address as address sort name, Heap as heap sort name, and Obj as the selected object sort. Some function / predicate names incorporate the defined / selected names. *************************************************************************** Public functions and predicates *************************************************************************** emptyHeap : () --> Heap alloc : Heap x Obj --> Heap x Address (allocResHeap) read : Heap x Address --> Obj write : Heap x Address x Obj --> Heap valid (isAlloc) : Heap x Address --> Bool deAlloc : Heap --> Heap nthAddress : Nat --> Address

    batchAlloc : Heap x Obj x Nat --> Heap x AddressRange (batchAllocResHeap) batchWrite : Heap x AddressRange x Obj --> Heap nth : AddressRange x Nat --> Address within : AddressRange x Address --> Bool

    0 1 writeADT : Obj x Obj --> Heap * Updates the ADT's field (described by a read to 0) using value (1) *************************************************************************** Private functions and predicates *************************************************************************** counter : Heap --> Nat

    * Below two functions are shorthand functions to get rid of allocRes ADT. * 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. alloc<heapSortName> : Heap x Obj --> Heap alloc<addressSortName> : Heap x Obj --> Address

    * Below two functions are shorthand functions to get rid of batchAllocRes ADT. * They return a single value instead of the pair <Heap x AddressRange>. * This also removes some quantifiers related to the ADT in the generated * interpolants. batchAlloc<heapSortName> : Heap x Obj x Nat --> Heap batchAlloc<addressSortName>Range : Heap x Obj x Nat --> AddressRange * ***************************************************************************

  17. val allocAddr: MonoSortedIFunction
  18. val allocHeap: MonoSortedIFunction
  19. val allocResCtor: MonoSortedIFunction
  20. val allocResSort: ADTProxySort
  21. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  22. 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
    HeapTheory
  23. val axioms1: Formula
  24. val axioms2: Formula
  25. val batchAlloc: MonoSortedIFunction
  26. val batchAllocAddrRange: MonoSortedIFunction
  27. val batchAllocHeap: MonoSortedIFunction
  28. val batchAllocResCtor: MonoSortedIFunction
  29. val batchAllocResSort: ADTProxySort
  30. val batchWrite: MonoSortedIFunction
  31. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  32. def containsADTSort(sort: Sort): Boolean

    Returns whether (an ADT) sort is declared as part of this theory.

  33. val counter: MonoSortedIFunction
  34. val deAlloc: MonoSortedIFunction
  35. val dependencies: Iterable[Theory]

    Optionally, other theories that this theory depends on.

    Optionally, other theories that this theory depends on.

    Definition Classes
    HeapTheory
  36. val emptyHeap: MonoSortedIFunction
  37. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. val funPredicates: Seq[Predicate]
  45. 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
    HeapTheory
  46. val functionTranslation: Map[IFunction, Predicate]
  47. 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
    HeapTheory
  48. val functions: List[MonoSortedIFunction]

    Interpreted functions of the theory

    Interpreted functions of the theory

    Definition Classes
    HeapTheory
  49. 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
  50. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  51. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  52. val heapADTDefinitions: Map[HeapADTSortId, (String, CtorSignature)]
  53. val heapADTs: ADT
  54. 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
  55. 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
    HeapTheory
  56. val inductionAxioms: IFormula
  57. val isAlloc: MonoSortedPredicate
  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
    HeapTheory
  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
    Theory
  61. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  62. val newAddr: MonoSortedIFunction
  63. val newAddrRange: MonoSortedIFunction
  64. val newBatchHeap: MonoSortedIFunction
  65. val newHeap: MonoSortedIFunction
  66. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  67. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  68. val nth: MonoSortedIFunction
  69. val nthAddr: MonoSortedIFunction
  70. val nullAddr: MonoSortedIFunction
  71. val objectSortId: Int
  72. val order: TermOrder
  73. def plugin: Option[Plugin]

    Optionally, a plug-in implementing reasoning in this theory

    Optionally, a plug-in implementing reasoning in this theory

    Definition Classes
    HeapTheory
  74. 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
    HeapTheory
  75. def postprocess(f: Conjunction, order: TermOrder): 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
  76. 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
  77. val predefPredicates: List[MonoSortedPredicate]
  78. 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
    HeapTheory
  79. val predicates: List[Predicate]

    Interpreted predicates of the theory

    Interpreted predicates of the theory

    Definition Classes
    HeapTheory
  80. def preprocess(f: Conjunction, order: TermOrder): 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
  81. def printSMTDeclaration: Unit

    Print an SMT-LIB declaration of this theory; do not output anything if the theory does not need to be declared.

    Print an SMT-LIB declaration of this theory; do not output anything if the theory does not need to be declared.

    Definition Classes
    HeapSMTLinearisableTheory
  82. val read: MonoSortedIFunction
  83. 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
  84. def rewriter(expr: IExpression): IExpression
  85. 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
  86. 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
  87. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  88. val theoryAxioms: IFormula
  89. def toString(): String
    Definition Classes
    Heap → AnyRef → Any
  90. 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
    HeapTheory
  91. 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
  92. 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
    HeapTheory
  93. val triggeredAxioms: IFormula
  94. val userADTCtors: Seq[MonoSortedIFunction]
  95. val userADTSels: Seq[Seq[MonoSortedIFunction]]
  96. val userADTSorts: IndexedSeq[ADTProxySort]
  97. val userCtorSignatures: Seq[(String, CtorSignature)]
  98. val userSortNames: Seq[String]
  99. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  100. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  101. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  102. val within: MonoSortedPredicate
  103. val write: MonoSortedIFunction
  104. 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

  105. object HeapADTSortId extends Enumeration

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 SMTLinearisableTheory

Inherited from Theory

Inherited from AnyRef

Inherited from Any

Ungrouped