public class MutableCFG<X,T extends IBasicBlock<X>> extends com.ibm.wala.util.graph.impl.SparseNumberedGraph<T> implements ControlFlowGraph<X,T>
| Modifier and Type | Method and Description |
|---|---|
static <I,T extends IBasicBlock<I>> |
copyFrom(ControlFlowGraph<I,T> cfg) |
T |
entry()
Return the entry basic block in the CFG
|
T |
exit() |
T |
getBlockForInstruction(int index) |
com.ibm.wala.util.intset.BitVector |
getCatchBlocks() |
java.util.Collection<T> |
getExceptionalPredecessors(T b)
The order of blocks returned should be arbitrary but deterministic.
|
java.util.List<T> |
getExceptionalSuccessors(T b)
The order of blocks returned must indicate the exception-handling scope.
|
X[] |
getInstructions() |
IMethod |
getMethod() |
java.util.Collection<T> |
getNormalPredecessors(T b)
The order of blocks returned should be arbitrary but deterministic.
|
java.util.Collection<T> |
getNormalSuccessors(T b)
The order of blocks returned should be arbitrary but deterministic.
|
int |
getProgramCounter(int index)
TODO: move this into IR?
|
getEdgeManager, getNodeManagergetMaxNumber, getNode, getNumber, getPredNodeNumbers, getSuccNodeNumbers, iterateNodesaddEdge, addNode, containsNode, edgeString, getNumberOfNodes, getPredNodeCount, getPredNodes, getSuccNodeCount, getSuccNodes, hasEdge, iterator, removeAllIncidentEdges, removeEdge, removeIncomingEdges, removeNode, removeNodeAndEdges, removeOutgoingEdges, stream, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMaxNumber, getNode, getNumber, iterateNodesaddNode, containsNode, getNumberOfNodes, iterator, removeNode, streampublic static <I,T extends IBasicBlock<I>> MutableCFG<I,T> copyFrom(ControlFlowGraph<I,T> cfg)
public T entry()
MinimalCFGentry in interface MinimalCFG<T extends IBasicBlock<X>>public T exit()
exit in interface MinimalCFG<T extends IBasicBlock<X>>public com.ibm.wala.util.intset.BitVector getCatchBlocks()
getCatchBlocks in interface ControlFlowGraph<X,T extends IBasicBlock<X>>public T getBlockForInstruction(int index)
getBlockForInstruction in interface ControlFlowGraph<X,T extends IBasicBlock<X>>index - an instruction indexpublic X[] getInstructions()
getInstructions in interface ControlFlowGraph<X,T extends IBasicBlock<X>>public int getProgramCounter(int index)
ControlFlowGraphgetProgramCounter in interface ControlFlowGraph<X,T extends IBasicBlock<X>>index - an instruction indexpublic IMethod getMethod()
getMethod in interface ControlFlowGraph<X,T extends IBasicBlock<X>>public java.util.List<T> getExceptionalSuccessors(T b)
MinimalCFGgetExceptionalSuccessors in interface MinimalCFG<T extends IBasicBlock<X>>public java.util.Collection<T> getNormalSuccessors(T b)
MinimalCFGgetNormalSuccessors in interface MinimalCFG<T extends IBasicBlock<X>>public java.util.Collection<T> getExceptionalPredecessors(T b)
MinimalCFGgetExceptionalPredecessors in interface MinimalCFG<T extends IBasicBlock<X>>public java.util.Collection<T> getNormalPredecessors(T b)
MinimalCFGgetNormalPredecessors in interface MinimalCFG<T extends IBasicBlock<X>>