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() |
Collection<T> |
getExceptionalPredecessors(T b)
The order of blocks returned should be arbitrary but deterministic.
|
List<T> |
getExceptionalSuccessors(T b)
The order of blocks returned must indicate the exception-handling scope.
|
X[] |
getInstructions() |
IMethod |
getMethod() |
Collection<T> |
getNormalPredecessors(T b)
The order of blocks returned should be arbitrary but deterministic.
|
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, getNumberOfNodes, getPredNodeCount, getPredNodes, getSuccNodeCount, getSuccNodes, hasEdge, iterator, removeAllIncidentEdges, removeEdge, removeIncomingEdges, removeNode, removeNodeAndEdges, removeOutgoingEdges, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMaxNumber, getNode, getNumber, iterateNodesaddNode, containsNode, getNumberOfNodes, iterator, removeNodepublic static <I,T extends IBasicBlock<I>> MutableCFG<I,T> copyFrom(ControlFlowGraph<I,T> cfg)
public T entry()
ControlFlowGraphentry in interface ControlFlowGraph<X,T extends IBasicBlock<X>>public T exit()
exit in interface ControlFlowGraph<X,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 List<T> getExceptionalSuccessors(T b)
ControlFlowGraphgetExceptionalSuccessors in interface ControlFlowGraph<X,T extends IBasicBlock<X>>public Collection<T> getNormalSuccessors(T b)
ControlFlowGraphgetNormalSuccessors in interface ControlFlowGraph<X,T extends IBasicBlock<X>>public Collection<T> getExceptionalPredecessors(T b)
ControlFlowGraphgetExceptionalPredecessors in interface ControlFlowGraph<X,T extends IBasicBlock<X>>public Collection<T> getNormalPredecessors(T b)
ControlFlowGraphgetNormalPredecessors in interface ControlFlowGraph<X,T extends IBasicBlock<X>>Copyright © 2015. All rights reserved.