Class PointerFlowGraph
java.lang.Object
pascal.taie.analysis.pta.core.solver.PointerFlowGraph
- All Implemented Interfaces:
Serializable
,Iterable<Pointer>
,Graph<Pointer>
Represents pointer flow graph in context-sensitive pointer analysis.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddEdge
(PointerFlowEdge edge) Adds a pointer flow edge and returns the edge in the PFG.getInEdgesOf
(Pointer node) getNodes()
getOutEdgesOf
(Pointer pointer) getPredsOf
(Pointer node) getSuccsOf
(Pointer node) pointers()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface pascal.taie.util.graph.Graph
getInDegreeOf, getNumberOfNodes, getOutDegreeOf, hasEdge, hasEdge, hasNode, iterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
addEdge
Adds a pointer flow edge and returns the edge in the PFG. If the edge to add already exists, then- if the edge is of
FlowKind.OTHER
, returns the existing edge; - otherwise, returns
null
, meaning that the edge does not need to be processed again.
- if the edge is of
-
getInEdgesOf
- Specified by:
getInEdgesOf
in interfaceGraph<Pointer>
- Returns:
- incoming edges of the given node.
-
getOutEdgesOf
- Specified by:
getOutEdgesOf
in interfaceGraph<Pointer>
- Returns:
- outgoing edges of the given node.
-
pointers
-
getPredsOf
- Specified by:
getPredsOf
in interfaceGraph<Pointer>
- Returns:
- the predecessors of given node in this graph.
-
getSuccsOf
- Specified by:
getSuccsOf
in interfaceGraph<Pointer>
- Returns:
- the successors of given node in this graph.
-
getNodes
-