package solver
Type Members
- trait ICFG[Statement, Callable <: Entity] extends AnyRef
Interface representing the interprocedural control flow graph.
- class IDEAnalysis[Fact <: IDEFact, Value <: IDEValue, Statement, Callable <: Entity] extends FPCFAnalysis
This is a solver for IDE problems.
This is a solver for IDE problems. It is based on the exhaustive algorithm that was presented in the original IDE paper from 1996 as base. The paper can be found here. Naming of methods and variables follows the naming used in the original paper as far as possible. The original solver is enhanced with several extensions/features as part of the master thesis of Robin Körkemeier. The most important enhancements are:
- The possibility to specify additional analysis seeds (allowing for more precise analysis results).
- The possibility to provide custom summaries for arbitrary call statements (allowing to retain precision in presence of unavailable code as well as to improve performance).
- On-demand solver execution, to fully integrate into OPAL as a lazy analysis (improves performance especially in interacting analysis scenarios; does not affect how IDE problems are specified).
- The possibility to define interacting IDE analysis (resp. IDE problems that make use of analysis interaction) using the blackboard architecture provided by OPAL.
For a simple example IDE problem definition have a look at
LinearConstantPropagationProblemin the TAC module of this project. It implements a basic linear constant propagation as described in the original IDE paper. For an example of interacting IDE problems have a look atLCPOnFieldsProblemandLinearConstantPropagationProblemExtended. These are an extension of the basic linear constant propagation and capable of detecting and tracking constants in fields. They also are an example for cyclic analysis interaction. - class IDEAnalysisProxy[Fact <: IDEFact, Value <: IDEValue, Statement, Callable <: Entity] extends FPCFAnalysis
A proxy for IDE analyses that accepts analysis requests for callables as well as statement-callable combinations.
A proxy for IDE analyses that accepts analysis requests for callables as well as statement-callable combinations. The IDEAnalysis solver runs on callables only and additionally produces results for each statement of that callable. This proxy analysis reduces all analysis requests to the callable and then forwards them to the actual IDE solver.