package l0
- Alphabetic
- Public
- Protected
Type Members
- class BaseDomain[Source] extends TypeLevelDomain with ThrowAllPotentialExceptionsConfiguration with IgnoreSynchronization with DefaultTypeLevelHandlingOfMethodResults with TheProject with TheMethod
A complete domain that performs all computations at the type level.
A complete domain that performs all computations at the type level.
- Note
This domain is intended to be used for demo purposes only. Tests should create their own domains to make sure that the test results remain stable. The configuration of this domain just reflects a reasonable configuration that may change without further notice.
- class BaseDomainWithDefUse[Source] extends BaseDomain[Source] with RecordDefUse
Configuration of a domain that uses the
l0
domains and which also records the abstract-interpretation time control flow graph and def/use information.Configuration of a domain that uses the
l0
domains and which also records the abstract-interpretation time control flow graph and def/use information.- Source
The source file's type.
- trait DefaultReferenceValuesBinding extends DefaultTypeLevelReferenceValues with DefaultExceptionsFactory
Default implementation for handling reference values.
- trait DefaultTypeLevelDoubleValues extends DefaultSpecialDomainValuesBinding with TypeLevelDoubleValues
Base implementation of the
TypeLevelDoubleValues
trait that requires that the domain'sValue
trait is not extended.Base implementation of the
TypeLevelDoubleValues
trait that requires that the domain'sValue
trait is not extended. This implementation just satisfies the basic requirements of OPAL w.r.t. the domain's computational type. - trait DefaultTypeLevelFloatValues extends DefaultSpecialDomainValuesBinding with TypeLevelFloatValues
Base implementation of the
TypeLevelFloatValues
trait that requires that the domain's Value trait is not extended.Base implementation of the
TypeLevelFloatValues
trait that requires that the domain's Value trait is not extended. This implementation just satisfies the basic requirements of OPAL w.r.t. the domain's computational type. - trait DefaultTypeLevelHandlingForReturnInstructions extends ReturnInstructionsDomain
Provides default implementations for a
Domain
's return methods that always throw anIllegalMonitorStateExceptoin
.Provides default implementations for a
Domain
's return methods that always throw anIllegalMonitorStateExceptoin
.You can mix in this trait if you are not interested in a method's return values or if you need some default implementations.
- trait DefaultTypeLevelHandlingForThrownExceptions extends ReturnInstructionsDomain
Basic implementation of a
Domain
'sabruptMethodExecution
method that does nothing. - trait DefaultTypeLevelHandlingOfMethodResults extends DefaultTypeLevelHandlingForThrownExceptions with DefaultTypeLevelHandlingOfVoidReturns with DefaultTypeLevelHandlingForReturnInstructions
A
Domain
that does nothing if a method returns ab-/normally.A
Domain
that does nothing if a method returns ab-/normally.- Note
This trait's methods are generally not intended to be overridden. If you need to do some special processing just directly implement the respective method and mixin the traits that ignore the rest.
- trait DefaultTypeLevelHandlingOfVoidReturns extends ReturnInstructionsDomain
Basic implementation of a
Domain
sreturnVoid
method that does nothing. - trait DefaultTypeLevelIntegerValues extends DefaultSpecialDomainValuesBinding with TypeLevelIntegerValues
Base implementation of the
TypeLevelIntegerValues
trait that requires that the domain's Valuetrait is not extended. This implementation satisfies the requirements of OPAL w.r.t. the domain's computational type. Additionally, it collects information about a value's range, if possible.
Base implementation of the
TypeLevelIntegerValues
trait that requires that the domain's Valuetrait is not extended. This implementation satisfies the requirements of OPAL w.r.t. the domain's computational type. Additionally, it collects information about a value's range, if possible.
This domain is highly efficient as it uses a single value domain value to represents all values of the same primitive type.
Adaptation/Reusability
This domain does not support constraint propagation – due to its reuse of the the same instance of a DomainValue across all potential instantiations of such values – and should not be used to implement such a domain as this requires the reimplementation of basically all methods.
- trait DefaultTypeLevelLongValues extends DefaultSpecialDomainValuesBinding with TypeLevelLongValues
Base implementation of the
TypeLevelLongValues
trait that requires that the domain'sValue
trait is not extended.Base implementation of the
TypeLevelLongValues
trait that requires that the domain'sValue
trait is not extended. This implementation just satisfies the basic requirements of OPAL w.r.t. the domain's computational type. - trait DefaultTypeLevelReferenceValues extends DefaultSpecialDomainValuesBinding with TypeLevelReferenceValues
Default implementation for handling reference values.
- class PrimitiveTACAIDomain extends TypeLevelDomain with ThrowAllPotentialExceptionsConfiguration with IgnoreSynchronization with DefaultTypeLevelHandlingOfMethodResults with TheMethod with RecordDefUse
This is the most primitive domain that can be used to transform Java bytecode to the three address representation offered by OPAL, which is build upon the result of a lightweight abstract interpretation.
- trait ReturnInstructionsDomain extends ai.ReturnInstructionsDomain with MonitorInstructionsTracker
- trait SimpleTypeLevelInvokeInstructions extends MethodCallsDomain
Most basic handling of method invocations that determines the value that is put onto the operand stack/returned by a method call based on the called method's return type.
Most basic handling of method invocations that determines the value that is put onto the operand stack/returned by a method call based on the called method's return type.
This implementation completely ignores exceptions and/or errors thrown by the method.
(Linkage related exceptions are currently generally ignored.)
- Note
By ignoring potentially thrown exceptions it may be the case that not all possible paths in a program are explored and that the overall analysis may not be sound.
- final class TypeCheckingDomain extends Domain with DefaultSpecialDomainValuesBinding with DefaultTypeLevelIntegerValues with DefaultTypeLevelLongValues with TypeLevelLongValuesShiftOperators with TypeLevelPrimitiveValuesConversions with DefaultTypeLevelFloatValues with DefaultTypeLevelDoubleValues with TypeLevelFieldAccessInstructions with TypeLevelInvokeInstructions with TypeLevelDynamicLoads with ThrowAllPotentialExceptionsConfiguration with IgnoreSynchronization with DefaultTypeLevelHandlingOfMethodResults with DefaultTypeLevelReferenceValues with PostEvaluationMemoryManagement with DefaultExceptionsFactory with TheMethod
Concrete domain that can be used to compute the information required to compute the org.opalj.br.StackMapTable; that is, we precisely track the information regarding the initialization status of references.
Concrete domain that can be used to compute the information required to compute the org.opalj.br.StackMapTable; that is, we precisely track the information regarding the initialization status of references. (This is generally not necessary for the other domains because we make the correct bytecode assumption over there and, therefore, never see an invalid usage of an uninitialized object reference.)
- trait TypeLevelDomain extends Domain with DefaultSpecialDomainValuesBinding with DefaultReferenceValuesBinding with DefaultTypeLevelIntegerValues with DefaultTypeLevelLongValues with TypeLevelLongValuesShiftOperators with TypeLevelPrimitiveValuesConversions with DefaultTypeLevelFloatValues with DefaultTypeLevelDoubleValues with TypeLevelFieldAccessInstructions with TypeLevelInvokeInstructions with TypeLevelDynamicLoads
This domain performs all computations at the type level and does not track the flow of concrete values.
This domain performs all computations at the type level and does not track the flow of concrete values. Given the very high level of abstraction, an abstract interpretation using this domain terminates quickly.
This domain can be used as a foundation/as an inspiration for building specialized Domains. For example, it is useful to, e.g., track which types of values are actually created to calculate a more precise call graph.
- trait TypeLevelDoubleValues extends DoubleValuesDomain
This partial
Domain
performs all computations related to primitive double values at the type level.This partial
Domain
performs all computations related to primitive double values at the type level.This domain can be used as a foundation to build more complex domains.
- trait TypeLevelDynamicLoads extends DynamicLoadsDomain
Implements the handling of dynamic ldc/ldc_w/ldc2_w instructions at the type level.
Implements the handling of dynamic ldc/ldc_w/ldc2_w instructions at the type level.
(Linkage related exceptions are currently generally ignored.)
- trait TypeLevelFieldAccessInstructions extends FieldAccessesDomain
Implements the handling of field access instructions at the type level.
Implements the handling of field access instructions at the type level.
(Linkage related exceptions are currently generally ignored.)
- trait TypeLevelFloatValues extends FloatValuesDomain
This partial
Domain
performs all computations related to primitive float values at the type level.This partial
Domain
performs all computations related to primitive float values at the type level.This domain can be used as a foundation to build more complex domains.
- trait TypeLevelIntegerValues extends Domain
Domain that performs computations related to integer values at the type level.
- trait TypeLevelInvokeInstructions extends MethodCallsHandling
Most basic handling of method invocations that determines the value that is put onto the operand stack/returned by a method call based on the called method's signature.
Most basic handling of method invocations that determines the value that is put onto the operand stack/returned by a method call based on the called method's signature.
(Linkage related exceptions are currently generally ignored.)
- trait TypeLevelLongValues extends LongValuesDomain
This partial
Domain
performs all computations related to primitive long values at the type level.This partial
Domain
performs all computations related to primitive long values at the type level.This domain can be used as a foundation for building more complex domains.
- trait TypeLevelLongValuesShiftOperators extends LongValuesDomain
This partial
Domain
performs all computations related to primitive long values at the type level.This partial
Domain
performs all computations related to primitive long values at the type level.This domain can be used as a foundation for building more complex domains.
- trait TypeLevelPrimitiveValuesConversions extends PrimitiveValuesConversionsDomain
Implementation of all primitive values conversion instructions that just use the default factory methods.
- trait TypeLevelReferenceValues extends GeneralizedArrayHandling with AsJavaObject
Implements the foundations for performing computations related to reference values.
Implements the foundations for performing computations related to reference values.
Extending/Implementing This Domain
The following implementation decisions need to be taken into account when inheriting from this trait:
- By default equality of
DomainValue
s that represent reference values is reference based. I.e., two instances ofDomainValue
s that represent reference values are never equal. However, subclasses may implement their own strategy. - Instances of
DomainValue
s are always immutable or are at least considered and treated as immutable. Every update of a value's properties creates a new value. This is a general design decision underlying OPAL and should not be changed. - A new instance of a
DomainValue
is always exclusively created by one of the factory methods. (The factory methods generally start with a capital letter and are correspondingly documented.) This greatly facilitates domain adaptability and selective customizations.
- By default equality of
- trait ZeroDomain extends TypeLevelDomain with DefaultHandlingOfMethodResults with IgnoreSynchronization with TheProject with TheCode
A complete domain that performs all computations at the type level.
A complete domain that performs all computations at the type level.
This domain is called the zero domain as it represents the most basic configuration that is useful for performing data-flow analyses.
Example Usage
class ZDomain extends { // we need the "early initializer" val project: SomeProject = theProject val code: Code = body } with ZeroDomain with ThrowNoPotentialExceptionsConfiguration
Value Members
- object BaseDomain