A complete domain that performs all computations at the type level.
Configuration of a domain that uses the l0
domains and
which also records the abstract-interpretation time control flow graph and def/use
information.
Default implementation for handling reference values.
Base implementation of the TypeLevelDoubleValues
trait that requires that
the domain's Value
trait is not extended.
Base implementation of the TypeLevelDoubleValues
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.
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.
Provides default implementations for a Domain
's return methods that always throw
an IllegalMonitorStateExceptoin
.
Provides default implementations for a Domain
's return methods that always throw
an IllegalMonitorStateExceptoin
.
You can mix in this trait if you are not interested in a method's return values or if you need some default implementations.
Basic implementation of a Domain
's abruptMethodExecution
method that does
nothing.
A Domain
that does nothing if a method returns ab-/normally.
A Domain
that does nothing if a method returns ab-/normally.
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.
Basic implementation of a Domain
s returnVoid
method that does nothing.
Base implementation of the TypeLevelIntegerValues
trait that requires that
the domain's Value trait 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 Value trait 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.
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.
Base implementation of the TypeLevelLongValues
trait that requires that
the domain's Value
trait is not extended.
Base implementation of the TypeLevelLongValues
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.
Default implementation for handling reference values.
This is the most primitive domain that can be used to transform the bytecode to the three address representation which is build upon the result of an abstract interpretation.
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.)
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.
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.
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.
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.)
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.
Domain that performs computations related to integer values at the type level.
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.)
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.
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.
Implementation of all primitive values conversion instructions that just use the default factory methods.
Implements the foundations for performing computations related to reference values.
Implements the foundations for performing computations related to reference values.
The following implementation decisions need to be taken into account when inheriting from this trait:
DomainValue
s that represent reference values is
reference based. I.e., two instances of DomainValue
s that represent
reference values are never equal. However, subclasses may implement their
own strategy.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.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.
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.
class ZDomain extends { // we need the "early initializer" val project: SomeProject = theProject val code: Code = body } with ZeroDomain with ThrowNoPotentialExceptionsConfiguration
Demonstrates how to use OPAL's FieldTypesAnalysis.
Simple analysis that identifies unused and passed through parameters; i.e., those that are directly returned by the given method.
A complete domain that performs all computations at the type level.
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.