Class InitializedBitVectorSolver
java.lang.Object
com.ibm.wala.fixedpoint.impl.AbstractFixedPointSolver<BitVectorVariable>
com.ibm.wala.fixedpoint.impl.DefaultFixedPointSolver<BitVectorVariable>
com.ibm.wala.dataflow.graph.DataflowSolver<CGNode, BitVectorVariable>
com.ibm.wala.dataflow.graph.BitVectorSolver<CGNode>
com.ibm.wala.analysis.exceptionanalysis.InitializedBitVectorSolver
- All Implemented Interfaces:
FixedPointConstants, IFixedPointSolver<BitVectorVariable>, VerboseAction
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractFixedPointSolver
AbstractFixedPointSolver.Statement -
Field Summary
Fields inherited from class AbstractFixedPointSolver
DEFAULT_PERIODIC_MAINTENANCE_INTERVAL, DEFAULT_VERBOSE_INTERVAL, verbose, workListModifier and TypeFieldDescriptionstatic final intstatic final intstatic final booleanprotected Worklistworklist for the iterative solverFields inherited from interface FixedPointConstants
CHANGED, CHANGED_AND_FIXED, CHANGED_MASK, FIXED_MASK, NOT_CHANGED, NOT_CHANGED_AND_FIXED, SIDE_EFFECT_MASKModifier and TypeFieldDescriptionstatic final byteA return value which indicates that a lhs has changed, and the statement might need to be evaluated again.static final byteA return value which indicates that lhs has changed, and the statement need not be evaluated again.static final intThe bit-mask which defines the "CHANGED" flagstatic final intThe bit-mask which defines the "FIXED" flagstatic final byteA return value which indicates that lhs has not changed, and the statement might need to be evaluated again.static final byteA return value which indicates that lhs has not changed, and the statement need not be evaluated again.static final intThe bit-mask which defines the "SIDE EFFECT" flag -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected BitVectorVariablemakeEdgeVariable(CGNode src, CGNode dst) protected BitVectorVariablemakeNodeVariable(CGNode n, boolean IN) Methods inherited from class BitVectorSolver
makeStmtRHSMethods inherited from class DataflowSolver
buildEquations, getEdge, getEdge, getIn, getOut, getProblem, initializeVariables, initializeWorkListModifier and TypeMethodDescriptionprotected voidbuildEquations(boolean toWorkList, boolean eager) protected voidInitialize all lattice vars in the system.protected voidInitialize the work list for iteration.jMethods inherited from class DefaultFixedPointSolver
getFixedPointSystemMethods inherited from class AbstractFixedPointSolver
addAllStatementsToWorkList, addToWorkList, changedVariable, emptyWorkList, getMaxEvalBetweenTopo, getMinSizeForTopSort, getNumberOfEvaluations, getPeriodicMaintainInterval, getStatements, getTopologicalGrowthFactor, getVerboseInterval, incNumberOfEvaluations, initForFirstSolve, isChanged, isFixed, isSideEffect, lineBreak, newStatement, newStatement, newStatement, newStatement, newStatement, orderStatements, performVerboseAction, periodicMaintenance, removeStatement, setMaxEvalBetweenTopo, setMinEquationsForTopSort, setTopologicalGrowthFactor, solve, toStringModifier and TypeMethodDescriptionvoidAdd all to the work list.voidAdd a step to the work list.voidCall this method when the contents of a variable changes.booleanintintintprotected intsubclasses should override as desired.Iterator<? extends INodeWithNumber> doubleprotected intsubclasses should override as desired.voidvoidSome setup which occurs only before the first solvestatic booleanisChanged(byte code) static booleanisFixed(byte code) static booleanisSideEffect(byte code) static StringbooleannewStatement(BitVectorVariable lhs, NullaryOperator<BitVectorVariable> operator, boolean toWorkList, boolean eager) Add a step with zero operands on the right-hand side.booleannewStatement(BitVectorVariable lhs, AbstractOperator<BitVectorVariable> operator, BitVectorVariable[] rhs, boolean toWorkList, boolean eager) Add a step to the system with an arbitrary number of operands on the right-hand side.booleannewStatement(BitVectorVariable lhs, AbstractOperator<BitVectorVariable> operator, BitVectorVariable op1, BitVectorVariable op2, boolean toWorkList, boolean eager) Add an equation with two operands on the right-hand side.booleannewStatement(BitVectorVariable lhs, AbstractOperator<BitVectorVariable> operator, BitVectorVariable op1, BitVectorVariable op2, BitVectorVariable op3, boolean toWorkList, boolean eager) Add a step with three operands on the right-hand side.booleannewStatement(BitVectorVariable lhs, UnaryOperator<BitVectorVariable> operator, BitVectorVariable rhs, boolean toWorkList, boolean eager) Add a step with one operand on the right-hand side.voidvoidoptional method used for performance debuggingprotected voida method that will be called every N evaluations.voidvoidsetMaxEvalBetweenTopo(int i) voidsetMinEquationsForTopSort(int i) voidsetTopologicalGrowthFactor(double d) booleansolve(MonitorUtil.IProgressMonitor monitor) Solve the set of dataflow graph.toString()
-
Constructor Details
-
InitializedBitVectorSolver
-
-
Method Details
-
makeNodeVariable
- Overrides:
makeNodeVariablein classBitVectorSolver<CGNode>- Parameters:
n- a node- Returns:
- a fresh variable to represent the lattice value at the IN or OUT of n
-
makeEdgeVariable
- Overrides:
makeEdgeVariablein classBitVectorSolver<CGNode>
-