Trait

org.opalj.ai.domain.l1

LongSetValues

Related Doc: package l1

Permalink

trait LongSetValues extends LongValuesDomain with ConcreteLongValues

This domain enables the tracking of long values using sets. The cardinality of the set can be configured to facilitate different needs with regard to the desired precision.

This domain supports constraint propagation as every two values that are not guaranteed to have the same value at runtime are always represented using a unique instance of LongValue.

Self Type
LongSetValues with IntegerRangeValuesFactory with CorrelationalDomain with Configuration with ExceptionsFactory
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LongSetValues
  2. ConcreteLongValues
  3. LongValuesDomain
  4. LongValuesFactory
  5. ValuesDomain
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait ALongValue extends (LongSetValues.this)#LongValue

    Permalink

    Represents a specific, but unknown long value.

    Represents a specific, but unknown long value. Two values that are both unknown and which may be different at runtime are always represented using two different instances of ALongValue.

    Models the top value of this domain's lattice.

  2. abstract type DomainIllegalValue <: (LongSetValues.this)#IllegalValue with (LongSetValues.this)#DomainValue

    Permalink

    Abstracts over the concrete type of IllegalValue.

    Abstracts over the concrete type of IllegalValue.

    This type needs to be refined whenever the class IllegalValue is refined or the type DomainValue is refined.

    Definition Classes
    ValuesDomain
  3. abstract type DomainReferenceValue >: Null <: (LongSetValues.this)#ReferenceValue with (LongSetValues.this)#DomainTypedValue[ReferenceType]

    Permalink
    Definition Classes
    ValuesDomain
  4. abstract type DomainReturnAddressValue <: (LongSetValues.this)#ReturnAddressValue with (LongSetValues.this)#DomainValue

    Permalink

    Abstracts over the concrete type of ReturnAddressValue.

    Abstracts over the concrete type of ReturnAddressValue. Needs to be fixed by some sub-trait/sub-class. In the simplest case (i.e., when neither the Value trait nor the ReturnAddressValue trait was refined) it is sufficient to write:

    type DomainReturnAddressValue = ReturnAddressValue
    Definition Classes
    ValuesDomain
  5. abstract type DomainReturnAddressValues <: (LongSetValues.this)#ReturnAddressValues with (LongSetValues.this)#DomainValue

    Permalink
    Definition Classes
    ValuesDomain
  6. abstract type DomainTypedValue[+T <: Type] >: Null <: (LongSetValues.this)#DomainValue

    Permalink
    Definition Classes
    ValuesDomain
  7. abstract type DomainValue >: Null <: (LongSetValues.this)#Value

    Permalink

    Abstracts over the concrete type of Value.

    Abstracts over the concrete type of Value. Needs to be refined by traits that inherit from Domain and which extend Domain's Value trait.

    Definition Classes
    ValuesDomain
  8. type ExceptionValue = (LongSetValues.this)#DomainReferenceValue

    Permalink

    A simple type alias of the type DomainValue; used to facilitate comprehension.

    A simple type alias of the type DomainValue; used to facilitate comprehension.

    Definition Classes
    ValuesDomain
  9. type ExceptionValues = Iterable[(LongSetValues.this)#ExceptionValue]

    Permalink

    A type alias for Iterables of ExceptionValues; used to facilitate comprehension.

    A type alias for Iterables of ExceptionValues; used to facilitate comprehension.

    Definition Classes
    ValuesDomain
  10. class IllegalValue extends Value

    Permalink

    Represents a value that has no well defined state/type.

    Represents a value that has no well defined state/type. Such values are the result of a join of two incompatible values and are generally only found in registers (in the locals) and then identify a value that is dead.

    Attributes
    protected
    Definition Classes
    ValuesDomain
    See also

    org.opalj.ai.Domain.Value for further details.

  11. type Locals = collection.mutable.Locals[(LongSetValues.this)#DomainValue]

    Permalink

    An instruction's current register values/locals are represented using an array.

    An instruction's current register values/locals are represented using an array.

    Definition Classes
    ValuesDomain
  12. type LocalsArray = Array[(LongSetValues.this)#Locals]

    Permalink
    Definition Classes
    ValuesDomain
  13. abstract class LongSet extends (LongSetValues.this)#LongValue

    Permalink

    Represents a set of long values.

  14. sealed trait LongValue extends (LongSetValues.this)#TypedValue[LongType] with IsLongValue[(LongSetValues.this)#LongValue]

    Permalink

    Abstracts over all values with computational type long.

  15. type LongValueOrArithmeticException = Computation[(LongSetValues.this)#DomainValue, (LongSetValues.this)#ExceptionValue]

    Permalink
    Definition Classes
    LongValuesDomain
  16. type Operands = Chain[(LongSetValues.this)#DomainValue]

    Permalink

    An instruction's operands are represented using a list where the first element of the list represents the top level operand stack value.

    An instruction's operands are represented using a list where the first element of the list represents the top level operand stack value.

    Definition Classes
    ValuesDomain
  17. type OperandsArray = Array[(LongSetValues.this)#Operands]

    Permalink
    Definition Classes
    ValuesDomain
  18. trait RETValue extends Value

    Permalink
    Definition Classes
    ValuesDomain
  19. trait ReferenceValue extends TypedValue[ReferenceType] with IsReferenceValue[DomainReferenceValue]

    Permalink
    Definition Classes
    ValuesDomain
  20. class ReturnAddressValue extends RETValue

    Permalink

    Stores a single return address (i.e., a program counter/index into the code array).

    Stores a single return address (i.e., a program counter/index into the code array).

    Definition Classes
    ValuesDomain
    Note

    Though the framework completely handles all aspects related to return address values, it is nevertheless necessary that this class inherits from Value as return addresses are stored on the stack/in the registers. However, if the Value trait should be refined, all additional methods may – from the point-of-view of OPAL-AI - just throw an OperationNotSupportedException as these additional methods will never be called by OPAL-AI.

  21. class ReturnAddressValues extends RETValue

    Permalink

    A collection of (not furhter stored) return address values.

    A collection of (not furhter stored) return address values. Primarily used when we join the executions of subroutines.

    Definition Classes
    ValuesDomain
  22. trait TypedValue[+T <: Type] extends Value with KnownType

    Permalink
    Definition Classes
    ValuesDomain
  23. trait Value extends AnyRef

    Permalink

    Abstracts over a concrete operand stack value or a value stored in one of the local variables/registers.

    Abstracts over a concrete operand stack value or a value stored in one of the local variables/registers.

    Use Of Value/Dependencies On Value

    In general, subclasses and users of a Domain should not have/declare a direct dependency on Value. Instead they should use DomainValue as otherwise extensibility of a Domain may be hampered or even be impossible. The only exceptions are, of course, classes that directly inherit from this class.

    Refining Value

    If you directly extend/refine this trait (i.e., in a subclass of the Domain trait you write something like trait Value extends super.Value), make sure that you also extend all classes/traits that inherit from this type (this may require a deep mixin composition and that you refine the type DomainType accordingly). However, OPAL was designed such that extending this class should – in general – not be necessary. It may also be easier to encode the desired semantics – as far as possible – as part of the domain.

    Implementing Value

    Standard inheritance from this trait is always supported and is the primary mechanism to model an abstract domain's lattice w.r.t. some special type of value. In general, the implementation should try to avoid creating new instances of values unless strictly required to model the domain's semantics. This will greatly improve the overall performance as this framework heavily uses reference-based equality checks to speed up the evaluation.

    Definition Classes
    ValuesDomain
    Note

    OPAL does not rely on any special equality semantics w.r.t. values and never directly or indirectly calls a Value's equals or eq method. Hence, a domain can encode equality such that it best fits its need. However, some of the provided domains rely on the following semantics for equals: Two domain values have to be equal (==) iff they represent the same information. This includes additional information, such as, the value of the origin. E.g., a value (AnIntegerValue) that represents an arbitrary Integer value has to return true if the domain value with which it is compared also represents an arbitrary Integer value (AnIntegerValue). However, it may still be necessary to use multiple objects to represent an arbitrary integer value if, e.g., constraints should be attached to specific values. For example, after a comparison of an integer value with a predefined value (e.g., AnIntegerValue < 4) it is possible to constrain the respective value on the subsequent paths (< 4 on one path and >= 4 on the other path). To make that possible, it is however necessary to distinguish the AnIntegervalue from some other AnIntegerValue to avoid constraining unrelated values.

    public void foo(int a,int b) {
        if(a < 4) {
            z = a - 2 // here a is constrained (< 4), b and z are unconstrained
        }
        else {
            z = a + 2 // here a is constrained (>= 4), b and z are unconstrained
        }
    }

    In general, equals is only defined for values belonging to the same domain. If values need to be compared across domains, they need to be adapted to a target domain first.

Abstract Value Members

  1. abstract val DomainReferenceValue: ClassTag[(LongSetValues.this)#DomainReferenceValue]

    Permalink

    The class tag can be used to create type safe arrays or to extract the concrete type of the domain value.

    The class tag can be used to create type safe arrays or to extract the concrete type of the domain value.

    val DomainReferenceValue(v) = value // of type "DomainValue"
    // v is now of the type DomainReferenceValue
    Definition Classes
    ValuesDomain
  2. implicit abstract val DomainValue: ClassTag[(LongSetValues.this)#DomainValue]

    Permalink

    The class tag for the type DomainValue.

    The class tag for the type DomainValue.

    Required to generate instances of arrays in which values of type DomainValue can be stored in a type-safe manner.

    Initialization

    In the sub-trait or class that fixes the type of DomainValue it is necessary to implement this abstract val using:

    val DomainValueTag : ClassTag[DomainValue] = implicitly

    (As of Scala 2.10 it is necessary that you do not use implicit in the subclass - it will compile, but fail at runtime.)

    Definition Classes
    ValuesDomain
  3. abstract def LongSet(values: SortedSet[Long]): (LongSetValues.this)#DomainTypedValue[LongType]

    Permalink

    Factory method to create a new LongSet value using the given set.

  4. abstract def LongValue(origin: ValueOrigin, value: Long): (LongSetValues.this)#DomainTypedValue[LongType]

    Permalink

    Factory method to create a DomainValue that represents the given long value and that was created (explicitly or implicitly) by the instruction with the specified program counter.

    Factory method to create a DomainValue that represents the given long value and that was created (explicitly or implicitly) by the instruction with the specified program counter.

    The domain may ignore the information about the value and the origin (vo).

    Definition Classes
    LongValuesFactory
  5. abstract def LongValue(origin: ValueOrigin): (LongSetValues.this)#DomainTypedValue[LongType]

    Permalink

    Factory method to create a DomainValue that was created (explicitly or implicitly) by the instruction with the specified program counter.

    Factory method to create a DomainValue that was created (explicitly or implicitly) by the instruction with the specified program counter.

    The domain may ignore the information about the origin (vo).

    Definition Classes
    LongValuesFactory
  6. abstract def MetaInformationUpdateIllegalValue: MetaInformationUpdate[(LongSetValues.this)#DomainIllegalValue]

    Permalink

    The result of the merge of two incompatible values has to be reported as a MetaInformationUpdate[DomainIllegalValue].

    The result of the merge of two incompatible values has to be reported as a MetaInformationUpdate[DomainIllegalValue].

    Definition Classes
    ValuesDomain
  7. abstract def ReturnAddressValue(address: PC): (LongSetValues.this)#DomainReturnAddressValue

    Permalink

    Factory method to create an instance of a ReturnAddressValue.

    Factory method to create an instance of a ReturnAddressValue.

    Definition Classes
    ValuesDomain
  8. abstract val TheIllegalValue: (LongSetValues.this)#DomainIllegalValue

    Permalink

    The singleton instance of the IllegalValue.

    The singleton instance of the IllegalValue.

    Definition Classes
    ValuesDomain
  9. abstract val TheReturnAddressValues: (LongSetValues.this)#DomainReturnAddressValues

    Permalink

    The singleton instance of ReturnAddressValues

    The singleton instance of ReturnAddressValues

    Definition Classes
    ValuesDomain
  10. abstract def lshl(pc: PC, value1: (LongSetValues.this)#DomainValue, value2: (LongSetValues.this)#DomainValue): (LongSetValues.this)#DomainValue

    Permalink

    Shift left of a long value.

    Shift left of a long value.

    pc

    The pc of the "shift left" instruction.

    value1

    A long value (guaranteed by the JVM's semantics).

    value2

    A int value (guaranteed by the JVM's semantics) that determines the number of bits to shift.

    Definition Classes
    LongValuesDomain
  11. abstract def lshr(pc: PC, value1: (LongSetValues.this)#DomainValue, value2: (LongSetValues.this)#DomainValue): (LongSetValues.this)#DomainValue

    Permalink

    Shift right of a long value.

    Shift right of a long value.

    pc

    The pc of the "shift right" instruction.

    value1

    A long value (guaranteed by the JVM's semantics).

    value2

    An int value (guaranteed by the JVM's semantics) that determines the number of bits to shift.

    Definition Classes
    LongValuesDomain
  12. abstract def lushr(pc: PC, value1: (LongSetValues.this)#DomainValue, value2: (LongSetValues.this)#DomainValue): (LongSetValues.this)#DomainValue

    Permalink

    Unsigned shift right of a long value.

    Unsigned shift right of a long value.

    pc

    The pc of the "unsigned shift right" instruction.

    value1

    A long value (guaranteed by the JVM's semantics).

    value2

    A int value (guaranteed by the JVM's semantics) that determines the number of bits to shift.

    Definition Classes
    LongValuesDomain

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from LongSetValues to any2stringadd[LongSetValues] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (LongSetValues, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from LongSetValues to ArrowAssoc[LongSetValues] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. object ConcreteLongValue

    Permalink
    Definition Classes
    ConcreteLongValues
  7. def LongSet(value: Long): (LongSetValues.this)#DomainTypedValue[LongType]

    Permalink

    Factory method to create a new LongSet value containing just the given value.

  8. object LongSet

    Permalink

    Extractor for LongSet values.

  9. final def StructuralUpdateIllegalValue: StructuralUpdate[Nothing]

    Permalink

    The result of merging two values should never be reported as a StructuralUpdate if the computed value is an IllegalValue.

    The result of merging two values should never be reported as a StructuralUpdate if the computed value is an IllegalValue. The JVM semantics guarantee that the value will not be used and, hence, continuing the interpretation is meaningless.

    Definition Classes
    ValuesDomain
    Note

    This method is solely defined for documentation purposes and to catch implementation errors early on.

  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def createLongValueOrArithmeticException(pc: br.PC, exception: Boolean, results: SortedSet[Long]): (LongSetValues.this)#LongValueOrArithmeticException

    Permalink
    Attributes
    protected[this]
  13. def ensuring(cond: (LongSetValues) ⇒ Boolean, msg: ⇒ Any): LongSetValues

    Permalink
    Implicit information
    This member is added by an implicit conversion from LongSetValues to Ensuring[LongSetValues] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (LongSetValues) ⇒ Boolean): LongSetValues

    Permalink
    Implicit information
    This member is added by an implicit conversion from LongSetValues to Ensuring[LongSetValues] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): LongSetValues

    Permalink
    Implicit information
    This member is added by an implicit conversion from LongSetValues to Ensuring[LongSetValues] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): LongSetValues

    Permalink
    Implicit information
    This member is added by an implicit conversion from LongSetValues to Ensuring[LongSetValues] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from LongSetValues to StringFormat[LongSetValues] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def ladd(pc: br.PC, value1: (LongSetValues.this)#DomainValue, value2: (LongSetValues.this)#DomainValue): (LongSetValues.this)#DomainValue

    Permalink

    Add of two long values.

    Add of two long values.

    pc

    The pc of the add(+) instruction.

    value1

    A long value (guaranteed by the JVM's semantics).

    value2

    A long value (guaranteed by the JVM's semantics).

    Definition Classes
    LongSetValuesLongValuesDomain
  25. def land(pc: br.PC, value1: (LongSetValues.this)#DomainValue, value2: (LongSetValues.this)#DomainValue): (LongSetValues.this)#DomainValue

    Permalink

    Boolean and of two long values.

    Boolean and of two long values.

    pc

    The pc of the "&" instruction.

    value1

    A long value (guaranteed by the JVM's semantics).

    value2

    A long value (guaranteed by the JVM's semantics).

    Definition Classes
    LongSetValuesLongValuesDomain
  26. def lcmp(pc: br.PC, left: (LongSetValues.this)#DomainValue, right: (LongSetValues.this)#DomainValue): (LongSetValues.this)#DomainValue

    Permalink

    Comparison (==) of two long values.

    Comparison (==) of two long values.

    pc

    The pc of the comparison instruction.

    returns

    A domain value that encapsulates an integer value with the value -1,0 or 1.

    Definition Classes
    LongSetValuesLongValuesDomain
  27. def ldiv(pc: br.PC, numerator: (LongSetValues.this)#DomainValue, denominator: (LongSetValues.this)#DomainValue): (LongSetValues.this)#LongValueOrArithmeticException

    Permalink

    Division of two long values.

    Division of two long values.

    pc

    The pc of the div (/) instruction.

    returns

    The return value is the calculated value and/or (depending on the domain) an ArithmeticException if value2 is 0.

    Definition Classes
    LongSetValuesLongValuesDomain
  28. def lmul(pc: br.PC, value1: (LongSetValues.this)#DomainValue, value2: (LongSetValues.this)#DomainValue): (LongSetValues.this)#DomainValue

    Permalink

    Multiplication of two long values.

    Multiplication of two long values.

    pc

    The pc of the mul (/) instruction.

    value1

    A long value (guaranteed by the JVM's semantics).

    value2

    A long value (guaranteed by the JVM's semantics).

    Definition Classes
    LongSetValuesLongValuesDomain
  29. def lneg(pc: br.PC, value: (LongSetValues.this)#DomainValue): (LongSetValues.this)#DomainValue

    Permalink

    Negation of a long value.

    Negation of a long value.

    pc

    The pc of the neg instruction.

    value

    A long value (guaranteed by the JVM's semantics).

    Definition Classes
    LongSetValuesLongValuesDomain
  30. final def longValue[T](value: (LongSetValues.this)#DomainValue)(f: (Long) ⇒ T)(orElse: ⇒ T): T

    Permalink

    If the given value represents one specific long value then the function ifThen is called with the respective value otherwise orElse is called.

    If the given value represents one specific long value then the function ifThen is called with the respective value otherwise orElse is called.

    Definition Classes
    LongSetValuesConcreteLongValues
    Annotations
    @inline()
  31. final def longValueOption(value: (LongSetValues.this)#DomainValue): Option[Long]

    Permalink

    Returns the current Long value represented by the domain value if it exists.

    Returns the current Long value represented by the domain value if it exists.

    Definition Classes
    LongSetValuesConcreteLongValues
    Annotations
    @inline()
    Note

    This method returns None if the DomainValue does not represent a Long value or the precise value is not known. I.e., this method never fails.

  32. def lor(pc: br.PC, value1: (LongSetValues.this)#DomainValue, value2: (LongSetValues.this)#DomainValue): (LongSetValues.this)#DomainValue

    Permalink

    Boolean or of two long values.

    Boolean or of two long values.

    pc

    The pc of the "boolean or" (|) instruction.

    value1

    A long value (guaranteed by the JVM's semantics).

    value2

    A long value (guaranteed by the JVM's semantics).

    Definition Classes
    LongSetValuesLongValuesDomain
  33. def lrem(pc: br.PC, left: (LongSetValues.this)#DomainValue, right: (LongSetValues.this)#DomainValue): (LongSetValues.this)#LongValueOrArithmeticException

    Permalink

    Remainder of two long values.

    Remainder of two long values.

    pc

    The pc of the div (/) instruction.

    returns

    The return value is the calculated value and/or (depending on the domain) an ArithmeticException if value2 is 0.

    Definition Classes
    LongSetValuesLongValuesDomain
  34. def lsub(pc: br.PC, left: (LongSetValues.this)#DomainValue, right: (LongSetValues.this)#DomainValue): (LongSetValues.this)#DomainValue

    Permalink

    Subtraction of two long values.

    Subtraction of two long values.

    pc

    The pc of the sub(-) instruction.

    Definition Classes
    LongSetValuesLongValuesDomain
  35. def lxor(pc: br.PC, value1: (LongSetValues.this)#DomainValue, value2: (LongSetValues.this)#DomainValue): (LongSetValues.this)#DomainValue

    Permalink

    xor of two long values.

    xor of two long values.

    pc

    The pc of the "xor" instruction.

    value1

    A long value (guaranteed by the JVM's semantics).

    value2

    A long value (guaranteed by the JVM's semantics).

    Definition Classes
    LongSetValuesLongValuesDomain
  36. def maxCardinalityOfLongSets: Int

    Permalink

    Determines the maximum number of values captured by a set of Long values.

    Determines the maximum number of values captured by a set of Long values.

    Often, a very small cardinality (e.g., 2 or 8) may be completely sufficient and a large cardinality does not significantly add to the overall precision.

    Attributes
    protected
  37. def mergeDomainValues(pc: PC, v1: (LongSetValues.this)#DomainValue, v2: (LongSetValues.this)#DomainValue): (LongSetValues.this)#DomainValue

    Permalink

    Merges the given domain value v1 with the domain value v2 and returns the merged value which is v1 if v1 is an abstraction of v2, v2 if v2 is an abstraction of v1 or some other value if a new value is computed that abstracts over both values.

    Merges the given domain value v1 with the domain value v2 and returns the merged value which is v1 if v1 is an abstraction of v2, v2 if v2 is an abstraction of v1 or some other value if a new value is computed that abstracts over both values.

    This operation is commutative.

    Definition Classes
    ValuesDomain
  38. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  39. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  40. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  41. def properties(pc: PC, propertyToString: (AnyRef) ⇒ String = (v) ⇒ v.toString): Option[String]

    Permalink

    Returns a string representation of the properties associated with the instruction with the respective program counter.

    Returns a string representation of the properties associated with the instruction with the respective program counter.

    Associating properties with an instruction and maintaining those properties is, however, at the sole responsibility of the Domain.

    This method is predefined to facilitate the development of support tools and is not used by the abstract interpretation framework.

    Domains that define (additional) properties should (abstract) override this method and should return a textual representation of the property.

    Definition Classes
    ValuesDomain
  42. def summarize(pc: PC, values: Iterable[(LongSetValues.this)#DomainValue]): (LongSetValues.this)#DomainValue

    Permalink

    Creates a summary of the given domain values by summarizing and joining the given values.

    Creates a summary of the given domain values by summarizing and joining the given values. For the precise details regarding the calculation of a summary see Value.summarize(...).

    pc

    The program counter that will be used for the summary value if a new value is returned that abstracts over/summarizes the given values.

    values

    An Iterable over one or more values.

    Definition Classes
    ValuesDomain
    Note

    The current algorithm is generic and should satisfy most needs, but it is not very efficient. However, it should be easy to tailor it for a specific domain/domain values, if need be.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  45. def typeOfValue(value: (LongSetValues.this)#DomainValue): TypeInformation

    Permalink

    Returns the type(type bounds) of the given value.

    Returns the type(type bounds) of the given value.

    In general a single value can have multiple type bounds which depend on the control flow. However, all types that the value represents must belong to the same computational type category. I.e., it is possible that the value either has the type "NullPointerException or IllegalArgumentException", but it will never have – at the same time – the (Java) types int and long. Furthermore, it is possible that the returned type(s) is(are) only an upper bound of the real type unless the type is a primitive type.

    This default implementation always returns org.opalj.ai.UnknownType.

    Implementing typeOfValue

    This method is typically not implemented by a single Domain trait/object, but is instead implemented collaboratively by all domains that implement the semantics of certain values. To achieve that, other Domain traits that implement a concrete domain's semantics have to abstract override this method and only return the value's type if the domain knows anything about the type. If a method that overrides this method has no knowledge about the given value, it should delegate this call to its super method.

    Example

    trait FloatValues extends Domain[...] {
      ...
        abstract override def typeOfValue(value: DomainValue): TypesAnswer =
        value match {
          case r: FloatValue ⇒ IsFloatValue
          case _             ⇒ super.typeOfValue(value)
        }
    }
    Definition Classes
    ValuesDomain
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def withLongValuesOrElse[T](value1: (LongSetValues.this)#DomainValue, value2: (LongSetValues.this)#DomainValue)(f: (Long, Long) ⇒ T)(orElse: ⇒ T): T

    Permalink
    Attributes
    protected
    Annotations
    @inline()
  50. def [B](y: B): (LongSetValues, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from LongSetValues to ArrowAssoc[LongSetValues] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from ConcreteLongValues

Inherited from LongValuesDomain

Inherited from LongValuesFactory

Inherited from ValuesDomain

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from LongSetValues to any2stringadd[LongSetValues]

Inherited by implicit conversion StringFormat from LongSetValues to StringFormat[LongSetValues]

Inherited by implicit conversion Ensuring from LongSetValues to Ensuring[LongSetValues]

Inherited by implicit conversion ArrowAssoc from LongSetValues to ArrowAssoc[LongSetValues]

Ungrouped