DataflowAnalysis<Fact>, Debugpublic class LiveLocalStoreAnalysis extends BackwardDataflowAnalysis<java.util.BitSet> implements Debug
This analysis also computes which stores that were killed by a subsequent store on any subsequent reachable path. (The FindDeadLocalStores detector uses this information to reduce false positives.)
VERIFY_INTEGRITY| Constructor | Description |
|---|---|
LiveLocalStoreAnalysis(org.apache.bcel.generic.MethodGen methodGen,
ReverseDepthFirstSearch rdfs,
DepthFirstSearch dfs) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
copy(java.util.BitSet source,
java.util.BitSet dest) |
Copy dataflow facts.
|
java.util.BitSet |
createFact() |
Create empty (uninitialized) dataflow facts for one program point.
|
java.lang.String |
factToString(java.util.BitSet fact) |
Return a String representation of given Fact.
|
void |
initEntryFact(java.util.BitSet result) |
Initialize the "entry" fact for the graph.
|
boolean |
isFactValid(java.util.BitSet fact) |
Determine whether the given fact is valid (neither top nor
bottom).
|
boolean |
isStoreAlive(java.util.BitSet fact,
int local) |
Return whether or not a store of given local is alive.
|
boolean |
isTop(java.util.BitSet fact) |
Return whether or not given fact is the special TOP value.
|
boolean |
killedByStore(java.util.BitSet fact,
int local) |
Return whether or not a store of given local was killed by a subsequent
(dominated) store.
|
void |
makeFactTop(java.util.BitSet fact) |
Make given fact the top value.
|
void |
meetInto(java.util.BitSet fact,
Edge edge,
java.util.BitSet result) |
Meet a dataflow fact associated with an incoming edge into another fact.
|
boolean |
same(java.util.BitSet fact1,
java.util.BitSet fact2) |
Are given dataflow facts the same?
|
void |
transferInstruction(org.apache.bcel.generic.InstructionHandle handle,
BasicBlock basicBlock,
java.util.BitSet fact) |
Transfer function for a single instruction.
|
getFactAfterLocation, getFactAtLocation, transfergetBlockOrder, getReverseDepthFirstSearch, isForwardsedgeTransfer, finishIteration, getFactOnEdge, getLastUpdateTimestamp, getResultFact, getStartFact, resultFactIterator, setLastUpdateTimestamp, startIterationpublic LiveLocalStoreAnalysis(org.apache.bcel.generic.MethodGen methodGen,
ReverseDepthFirstSearch rdfs,
DepthFirstSearch dfs)
public java.util.BitSet createFact()
DataflowAnalysiscreateFact in interface DataflowAnalysis<Fact>public void copy(java.util.BitSet source,
java.util.BitSet dest)
DataflowAnalysiscopy in interface DataflowAnalysis<Fact>public void initEntryFact(java.util.BitSet result)
throws DataflowAnalysisException
DataflowAnalysisinitEntryFact in interface DataflowAnalysis<Fact>DataflowAnalysisExceptionpublic void makeFactTop(java.util.BitSet fact)
DataflowAnalysismakeFactTop in interface DataflowAnalysis<Fact>public boolean same(java.util.BitSet fact1,
java.util.BitSet fact2)
DataflowAnalysissame in interface DataflowAnalysis<Fact>public void meetInto(java.util.BitSet fact,
Edge edge,
java.util.BitSet result)
throws DataflowAnalysisException
DataflowAnalysismeetInto in interface DataflowAnalysis<Fact>fact - the predecessor fact (incoming edge)edge - the edge from the predecessorresult - the result factDataflowAnalysisExceptionpublic void transferInstruction(org.apache.bcel.generic.InstructionHandle handle,
BasicBlock basicBlock,
java.util.BitSet fact)
throws DataflowAnalysisException
AbstractDataflowAnalysistransferInstruction in class AbstractDataflowAnalysis<java.util.BitSet>handle - the instructionbasicBlock - the BasicBlock containing the instruction; needed to
disambiguate instructions in inlined JSR subroutinesfact - which should be modified based on the instructionDataflowAnalysisExceptionpublic boolean isFactValid(java.util.BitSet fact)
AbstractDataflowAnalysisisFactValid in class AbstractDataflowAnalysis<java.util.BitSet>public java.lang.String factToString(java.util.BitSet fact)
DataflowAnalysisfactToString in interface DataflowAnalysis<Fact>factToString in class BasicAbstractDataflowAnalysis<java.util.BitSet>fact - a dataflow factpublic boolean isTop(java.util.BitSet fact)
isTop in interface DataflowAnalysis<Fact>public boolean isStoreAlive(java.util.BitSet fact,
int local)
fact - a dataflow fact created by this analysislocal - the localpublic boolean killedByStore(java.util.BitSet fact,
int local)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.