Package pascal.taie.analysis.graph.cfg
Interface CFG<N>
- Type Parameters:
N
- type of CFG nodes.
- All Superinterfaces:
Graph<N>
,Iterable<N>
,Serializable
Representation of a control-flow graph of a method.
-
Method Summary
Methods inherited from interface pascal.taie.util.graph.Graph
getInDegreeOf, getNodes, getNumberOfNodes, getOutDegreeOf, getPredsOf, getSuccsOf, hasEdge, hasEdge, hasNode, iterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getIR
IR getIR()- Returns:
- the IR of the method this CFG represents.
-
getMethod
JMethod getMethod()- Returns:
- the method this CFG represents.
-
getEntry
N getEntry()- Returns:
- the entry node of this CFG.
-
getExit
N getExit()- Returns:
- the exit node of this CFG.
-
isEntry
- Returns:
- true if the given node is the entry of this CFG, otherwise false.
-
isExit
- Returns:
- true if the given node is the exit of this CFG, otherwise false.
-
getIndex
- Returns:
- a unique index for given node in this CFG.
-
getNode
- Returns:
- the corresponding node specified by the given index.
-
getInEdgesOf
- Specified by:
getInEdgesOf
in interfaceGraph<N>
- Returns:
- incoming edges of the given node.
-
getOutEdgesOf
- Specified by:
getOutEdgesOf
in interfaceGraph<N>
- Returns:
- outgoing edges of the given node.
-