Class/Object

ap.theories

Heap

Related Docs: object Heap | package theories

Permalink

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

Instance Constructors

  1. new Heap(heapSortName: String, addressSortName: String, objectSort: ADTSort, sortNames: Seq[String], ctorSignatures: Seq[(String, CtorSignature)], defaultObjectCtor: (Seq[MonoSortedIFunction], ADT) ⇒ 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: AddressSort

    Permalink
  5. object HeapADTSortId extends Enumeration

    Permalink
  6. implicit def HeapADTSortIdToInt(id: HeapADTSortId): Int

    Permalink
  7. val HeapSort: HeapSort

    Permalink
  8. val ObjectSort: Sort

    Permalink
  9. 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
  10. val _defObj: ITerm

    Permalink
  11. val addrRangeSize: MonoSortedIFunction

    Permalink
  12. val addrRangeStart: MonoSortedIFunction

    Permalink
  13. val addressRangeCtor: MonoSortedIFunction

    Permalink
  14. val addressRangeSort: ADTProxySort

    Permalink
  15. val adtCtorSignatures: Seq[(String, CtorSignature)]

    Permalink
  16. val adtDependencies: Seq[Theory]

    Permalink
  17. val alloc: MonoSortedIFunction

    Permalink

    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 * ***************************************************************************

  18. val allocAddr: MonoSortedIFunction

    Permalink
  19. val allocHeap: MonoSortedIFunction

    Permalink
  20. val allocResCtor: MonoSortedIFunction

    Permalink
  21. val allocResSort: ADTProxySort

    Permalink
  22. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  23. val axioms: Conjunction

    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
    HeapTheory
  24. val axioms1: Formula

    Permalink
  25. val axioms2: Formula

    Permalink
  26. val batchAlloc: MonoSortedIFunction

    Permalink
  27. val batchAllocAddrRange: MonoSortedIFunction

    Permalink
  28. val batchAllocHeap: MonoSortedIFunction

    Permalink
  29. val batchAllocResCtor: MonoSortedIFunction

    Permalink
  30. val batchAllocResSort: ADTProxySort

    Permalink
  31. val batchWrite: MonoSortedIFunction

    Permalink
  32. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  33. def containsADTSort(sort: Sort): Boolean

    Permalink

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

  34. val counter: MonoSortedIFunction

    Permalink
  35. val deAlloc: MonoSortedIFunction

    Permalink
  36. val dependencies: Iterable[Theory]

    Permalink

    Optionally, other theories that this theory depends on.

    Optionally, other theories that this theory depends on.

    Definition Classes
    HeapTheory
  37. val emptyHeap: MonoSortedIFunction

    Permalink
  38. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. val funPredicates: Seq[Predicate]

    Permalink
  46. 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
    HeapTheory
  47. val functionTranslation: Map[IFunction, Predicate]

    Permalink
  48. 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
    HeapTheory
  49. val functions: List[MonoSortedIFunction]

    Permalink

    Interpreted functions of the theory

    Interpreted functions of the theory

    Definition Classes
    HeapTheory
  50. 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
  51. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  52. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  53. val heapADTDefinitions: Map[HeapADTSortId, (String, CtorSignature)]

    Permalink
  54. val heapADTs: ADT

    Permalink
  55. 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
    Theory
  56. 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
    HeapTheory
  57. val inductionAxioms: IFormula

    Permalink
  58. val isAlloc: MonoSortedPredicate

    Permalink
  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
    HeapTheory
  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
    Theory
  62. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  63. val newAddr: MonoSortedIFunction

    Permalink
  64. val newAddrRange: MonoSortedIFunction

    Permalink
  65. val newBatchHeap: MonoSortedIFunction

    Permalink
  66. val newHeap: MonoSortedIFunction

    Permalink
  67. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  69. val nth: MonoSortedIFunction

    Permalink
  70. val nthAddr: MonoSortedIFunction

    Permalink
  71. val nullAddr: MonoSortedIFunction

    Permalink
  72. val objectSortId: Int

    Permalink
  73. val order: TermOrder

    Permalink
  74. def plugin: Option[Plugin]

    Permalink

    Optionally, a plug-in implementing reasoning in this theory

    Optionally, a plug-in implementing reasoning in this theory

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

    Permalink
  79. 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
    HeapTheory
  80. val predicates: List[Predicate]

    Permalink

    Interpreted predicates of the theory

    Interpreted predicates of the theory

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

    Permalink

    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
  83. val read: MonoSortedIFunction

    Permalink
  84. 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
  85. def rewriter(expr: IExpression): IExpression

    Permalink
  86. 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
  87. 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
  88. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  89. val theoryAxioms: IFormula

    Permalink
  90. def toString(): String

    Permalink
    Definition Classes
    Heap → AnyRef → Any
  91. 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
    HeapTheory
  92. 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
  93. 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
    HeapTheory
  94. val triggeredAxioms: IFormula

    Permalink
  95. val userADTCtors: Seq[MonoSortedIFunction]

    Permalink
  96. val userADTSels: Seq[Seq[MonoSortedIFunction]]

    Permalink
  97. val userADTSorts: IndexedSeq[ADTProxySort]

    Permalink
  98. val userCtorSignatures: Seq[(String, CtorSignature)]

    Permalink
  99. val userSortNames: Seq[String]

    Permalink
  100. final def wait(arg0: Long, arg1: Int): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  103. val within: MonoSortedPredicate

    Permalink
  104. val write: MonoSortedIFunction

    Permalink
  105. def writeADT(lhs: IFunApp, rhs: ITerm): ITerm

    Permalink

    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

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 SMTLinearisableTheory

Inherited from Theory

Inherited from AnyRef

Inherited from Any

Ungrouped