|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soot.toolkits.scalar.AbstractFlowAnalysis<N,A> soot.toolkits.scalar.BranchedFlowAnalysis<Unit,A> soot.toolkits.scalar.ForwardBranchedFlowAnalysis soot.jimple.toolkits.pointer.CastCheckEliminator
public class CastCheckEliminator
A flow analysis that detects redundant cast checks.
Field Summary |
---|
Fields inherited from class soot.toolkits.scalar.BranchedFlowAnalysis |
---|
unitToAfterBranchFlow, unitToAfterFallFlow |
Fields inherited from class soot.toolkits.scalar.AbstractFlowAnalysis |
---|
filterUnitToBeforeFlow, graph, unitToBeforeFlow |
Constructor Summary | |
---|---|
CastCheckEliminator(BriefUnitGraph cfg)
|
Method Summary | |
---|---|
protected void |
copy(Object source,
Object dest)
Creates a copy of the source flow object in dest . |
protected Object |
entryInitialFlow()
Returns a new, aggressive (local,type) set. |
protected void |
flowThrough(Object inValue,
Unit unit,
List outFallValues,
List outBranchValues)
This is the flow function as described in the assignment write-up. |
protected void |
makeInitialSet()
Find all the locals of reference type and all the types used in casts to initialize the mapping from locals and types to bits in the bit vector in LocalTypeSet. |
protected void |
merge(Object in1,
Object in2,
Object out)
Compute the merge of the in1 and in2 sets, putting the result into out . |
protected Object |
newInitialFlow()
Returns a new, aggressive (local,type) set. |
protected void |
tagCasts()
Put the results of the analysis into tags in cast statements. |
Methods inherited from class soot.toolkits.scalar.ForwardBranchedFlowAnalysis |
---|
doAnalysis, isForward |
Methods inherited from class soot.toolkits.scalar.BranchedFlowAnalysis |
---|
getBranchFlowAfter, getFallFlowAfter, getFlowBefore |
Methods inherited from class soot.toolkits.scalar.AbstractFlowAnalysis |
---|
merge, mergeInto, treatTrapHandlersAsEntries |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CastCheckEliminator(BriefUnitGraph cfg)
Method Detail |
---|
protected void tagCasts()
protected void makeInitialSet()
protected Object newInitialFlow()
newInitialFlow
in class AbstractFlowAnalysis
protected void flowThrough(Object inValue, Unit unit, List outFallValues, List outBranchValues)
flowThrough
in class BranchedFlowAnalysis
protected void copy(Object source, Object dest)
AbstractFlowAnalysis
source
flow object in dest
.
copy
in class AbstractFlowAnalysis
protected void merge(Object in1, Object in2, Object out)
AbstractFlowAnalysis
in1
and in2
sets, putting the result into out
.
The behavior of this function depends on the implementation ( it may be necessary to check whether
in1
and in2
are equal or aliased ).
Used by the doAnalysis method.
merge
in class AbstractFlowAnalysis
protected Object entryInitialFlow()
entryInitialFlow
in class AbstractFlowAnalysis
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |