public class BlockTypeAnalysis extends BasicAbstractDataflowAnalysis<BlockType>
BlockType
Constructor and Description |
---|
BlockTypeAnalysis(DepthFirstSearch dfs)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
copy(BlockType source,
BlockType dest)
Copy dataflow facts.
|
BlockType |
createFact()
Create empty (uninitialized) dataflow facts for one program point.
|
BlockOrder |
getBlockOrder(CFG cfg)
Return the BlockOrder specifying the order in which BasicBlocks should be
visited in the main dataflow loop.
|
void |
initEntryFact(BlockType result)
Initialize the "entry" fact for the graph.
|
boolean |
isForwards()
Returns true if the analysis is forwards, false if backwards.
|
boolean |
isTop(BlockType fact)
Is the given fact the top value.
|
void |
makeFactTop(BlockType fact)
Make given fact the top value.
|
void |
meetInto(BlockType fact,
Edge edge,
BlockType result)
Meet a dataflow fact associated with an incoming edge into another fact.
|
boolean |
same(BlockType fact1,
BlockType fact2)
Are given dataflow facts the same?
|
void |
transfer(BasicBlock basicBlock,
org.apache.bcel.generic.InstructionHandle end,
BlockType start,
BlockType result)
Transfer function for the analysis.
|
edgeTransfer, factToString, finishIteration, getFactAfterLocation, getFactAtLocation, getFactOnEdge, getLastUpdateTimestamp, getResultFact, getStartFact, resultFactIterator, setLastUpdateTimestamp, startIteration
public BlockTypeAnalysis(DepthFirstSearch dfs)
dfs
- a DepthFirstSearch for the method to be analyzedpublic BlockType createFact()
DataflowAnalysis
public void copy(BlockType source, BlockType dest)
DataflowAnalysis
public void initEntryFact(BlockType result) throws DataflowAnalysisException
DataflowAnalysis
DataflowAnalysisException
public void makeFactTop(BlockType fact)
DataflowAnalysis
public boolean isTop(BlockType fact)
DataflowAnalysis
public boolean isForwards()
DataflowAnalysis
public BlockOrder getBlockOrder(CFG cfg)
DataflowAnalysis
cfg
- the CFG upon which we're performing dataflow analysispublic boolean same(BlockType fact1, BlockType fact2)
DataflowAnalysis
public void transfer(BasicBlock basicBlock, @CheckForNull org.apache.bcel.generic.InstructionHandle end, BlockType start, BlockType result) throws DataflowAnalysisException
DataflowAnalysis
basicBlock
- the basic blockend
- if nonnull, stop before considering this instruction;
otherwise, consider all of the instructions in the basic blockstart
- dataflow facts at beginning of block (if forward analysis) or
end of block (if backwards analysis)result
- resulting dataflow facts at other end of blockDataflowAnalysisException
public void meetInto(BlockType fact, Edge edge, BlockType result) throws DataflowAnalysisException
DataflowAnalysis
fact
- the predecessor fact (incoming edge)edge
- the edge from the predecessorresult
- the result factDataflowAnalysisException
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.