Class SSAInference<T extends IVariable<T>>
java.lang.Object
com.ibm.wala.fixedpoint.impl.AbstractFixedPointSolver<T>
com.ibm.wala.fixedpoint.impl.DefaultFixedPointSolver<T>
com.ibm.wala.dataflow.ssa.SSAInference<T>
- All Implemented Interfaces:
FixedPointConstants, IFixedPointSolver<T>, VerboseAction
- Direct Known Subclasses:
TypeInference
This class performs intra-procedural propagation over an SSA form.
A client will subclass an SSAInference by providing factories that generate IVariables corresponding to SSA value numbers, and AbstractOperators corresponding to
SSA instructions. This class will set up a dataflow system induced by the SSA def-use graph, and
solve the system by iterating to a fixed point.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSSAInference.OperatorFactory<T extends IVariable<T>>static interfaceSSAInference.VariableFactory<T extends IVariable<T>>Nested classes/interfaces inherited from class AbstractFixedPointSolver
AbstractFixedPointSolver.Statement -
Field Summary
Fields inherited from class AbstractFixedPointSolver
DEFAULT_PERIODIC_MAINTENANCE_INTERVAL, DEFAULT_VERBOSE_INTERVAL, verbose, workListFields inherited from interface FixedPointConstants
CHANGED, CHANGED_AND_FIXED, CHANGED_MASK, FIXED_MASK, NOT_CHANGED, NOT_CHANGED_AND_FIXED, SIDE_EFFECT_MASK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TgetVariable(int valueNumber) protected voidinit(IR ir, SSAInference.VariableFactory<T> varFactory, SSAInference.OperatorFactory<T> opFactory) initializer for SSA Inference equations.toString()Return a string representation of the systemMethods inherited from class DefaultFixedPointSolver
getFixedPointSystemMethods inherited from class AbstractFixedPointSolver
addAllStatementsToWorkList, addToWorkList, changedVariable, emptyWorkList, getMaxEvalBetweenTopo, getMinSizeForTopSort, getNumberOfEvaluations, getPeriodicMaintainInterval, getStatements, getTopologicalGrowthFactor, getVerboseInterval, incNumberOfEvaluations, initForFirstSolve, initializeVariables, initializeWorkList, isChanged, isFixed, isSideEffect, lineBreak, makeStmtRHS, newStatement, newStatement, newStatement, newStatement, newStatement, orderStatements, performVerboseAction, periodicMaintenance, removeStatement, setMaxEvalBetweenTopo, setMinEquationsForTopSort, setTopologicalGrowthFactor, solve
-
Constructor Details
-
SSAInference
public SSAInference()
-
-
Method Details
-
init
protected void init(IR ir, SSAInference.VariableFactory<T> varFactory, SSAInference.OperatorFactory<T> opFactory) initializer for SSA Inference equations. -
getVariable
- Returns:
- the dataflow variable representing the value number, or null if none found.
-
toString
-