Package soot.jimple.toolkits.callgraph
Class ClinitElimAnalysis
- java.lang.Object
-
- soot.toolkits.scalar.AbstractFlowAnalysis<N,A>
-
- soot.toolkits.scalar.FlowAnalysis<N,A>
-
- soot.toolkits.scalar.ForwardFlowAnalysis<Unit,FlowSet<SootMethod>>
-
- soot.jimple.toolkits.callgraph.ClinitElimAnalysis
-
public class ClinitElimAnalysis extends ForwardFlowAnalysis<Unit,FlowSet<SootMethod>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class soot.toolkits.scalar.FlowAnalysis
FlowAnalysis.Flow
-
-
Field Summary
-
Fields inherited from class soot.toolkits.scalar.FlowAnalysis
filterUnitToAfterFlow, unitToAfterFlow
-
Fields inherited from class soot.toolkits.scalar.AbstractFlowAnalysis
filterUnitToBeforeFlow, graph, unitToBeforeFlow
-
-
Constructor Summary
Constructors Constructor Description ClinitElimAnalysis(UnitGraph g)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FlowSet<SootMethod>calculateInitialFlow()voidcopy(FlowSet<SootMethod> src, FlowSet<SootMethod> dest)Creates a copy of thesourceflow object indest.protected voidcopyFreshToExisting(FlowSet<SootMethod> in, FlowSet<SootMethod> dest)Copies a *fresh* copy of in to dest.protected FlowSet<SootMethod>entryInitialFlow()Returns the initial flow value for entry/exit graph nodes.protected voidflowThrough(FlowSet<SootMethod> inVal, Unit stmt, FlowSet<SootMethod> outVal)Given the merge of theoutsets, compute theinset fors(or in to out, depending on direction).voidmerge(FlowSet<SootMethod> in1, FlowSet<SootMethod> in2, FlowSet<SootMethod> out)Compute the merge of thein1andin2sets, putting the result intoout.protected FlowSet<SootMethod>newInitialFlow()Returns the flow object corresponding to the initial values for each graph node.-
Methods inherited from class soot.toolkits.scalar.ForwardFlowAnalysis
doAnalysis, isForward
-
Methods inherited from class soot.toolkits.scalar.FlowAnalysis
getFlow, getFlowAfter, getFlowBefore, omissible
-
Methods inherited from class soot.toolkits.scalar.AbstractFlowAnalysis
merge, mergeInto, treatTrapHandlersAsEntries
-
-
-
-
Constructor Detail
-
ClinitElimAnalysis
public ClinitElimAnalysis(UnitGraph g)
-
-
Method Detail
-
merge
public void merge(FlowSet<SootMethod> in1, FlowSet<SootMethod> in2, FlowSet<SootMethod> out)
Description copied from class:AbstractFlowAnalysisCompute the merge of thein1andin2sets, putting the result intoout. The behavior of this function depends on the implementation ( it may be necessary to check whetherin1andin2are equal or aliased ). Used by the doAnalysis method.- Specified by:
mergein classAbstractFlowAnalysis<Unit,FlowSet<SootMethod>>
-
copy
public void copy(FlowSet<SootMethod> src, FlowSet<SootMethod> dest)
Description copied from class:AbstractFlowAnalysisCreates a copy of thesourceflow object indest.- Specified by:
copyin classAbstractFlowAnalysis<Unit,FlowSet<SootMethod>>
-
copyFreshToExisting
protected void copyFreshToExisting(FlowSet<SootMethod> in, FlowSet<SootMethod> dest)
Description copied from class:FlowAnalysisCopies a *fresh* copy of in to dest. The input is not referenced somewhere else. This allows subclasses for a smarter and faster copying.- Overrides:
copyFreshToExistingin classFlowAnalysis<Unit,FlowSet<SootMethod>>
-
flowThrough
protected void flowThrough(FlowSet<SootMethod> inVal, Unit stmt, FlowSet<SootMethod> outVal)
Description copied from class:FlowAnalysisGiven the merge of theoutsets, compute theinset fors(or in to out, depending on direction). This function often causes confusion, because the same interface is used for both forward and backward flow analyses. The first parameter is always the argument to the flow function (i.e. it is the "in" set in a forward analysis and the "out" set in a backward analysis), and the third parameter is always the result of the flow function (i.e. it is the "out" set in a forward analysis and the "in" set in a backward analysis).- Specified by:
flowThroughin classFlowAnalysis<Unit,FlowSet<SootMethod>>- Parameters:
inVal- the input flowstmt- the current nodeoutVal- the returned flow
-
entryInitialFlow
protected FlowSet<SootMethod> entryInitialFlow()
Description copied from class:AbstractFlowAnalysisReturns the initial flow value for entry/exit graph nodes. This is equal toAbstractFlowAnalysis.newInitialFlow()- Overrides:
entryInitialFlowin classAbstractFlowAnalysis<Unit,FlowSet<SootMethod>>
-
newInitialFlow
protected FlowSet<SootMethod> newInitialFlow()
Description copied from class:AbstractFlowAnalysisReturns the flow object corresponding to the initial values for each graph node.- Specified by:
newInitialFlowin classAbstractFlowAnalysis<Unit,FlowSet<SootMethod>>
-
calculateInitialFlow
protected FlowSet<SootMethod> calculateInitialFlow()
-
-