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, startIterationpublic BlockTypeAnalysis(DepthFirstSearch dfs)
dfs - a DepthFirstSearch for the method to be analyzedpublic BlockType createFact()
DataflowAnalysispublic void copy(BlockType source, BlockType dest)
DataflowAnalysispublic void initEntryFact(BlockType result) throws DataflowAnalysisException
DataflowAnalysisDataflowAnalysisExceptionpublic void makeFactTop(BlockType fact)
DataflowAnalysispublic boolean isTop(BlockType fact)
DataflowAnalysispublic boolean isForwards()
DataflowAnalysispublic BlockOrder getBlockOrder(CFG cfg)
DataflowAnalysiscfg - the CFG upon which we're performing dataflow analysispublic boolean same(BlockType fact1, BlockType fact2)
DataflowAnalysispublic void transfer(BasicBlock basicBlock, @CheckForNull org.apache.bcel.generic.InstructionHandle end, BlockType start, BlockType result) throws DataflowAnalysisException
DataflowAnalysisbasicBlock - 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 blockDataflowAnalysisExceptionpublic void meetInto(BlockType fact, Edge edge, BlockType result) throws DataflowAnalysisException
DataflowAnalysisfact - the predecessor fact (incoming edge)edge - the edge from the predecessorresult - the result factDataflowAnalysisExceptionFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.