public abstract class HeapGraphImpl<T extends InstanceKey> extends Object implements HeapGraph<T>
Graph
view of a pointer analysis solution.
Nodes in the Graph are PointerKey
s and InstanceKey
s.
There is an edge from a PointerKey P to an InstanceKey I iff the PointerAnalysis indicates that P may point to I.
There is an edge from an InstanceKey I to a PointerKey P iff - P represents a field of an object instance modeled by I, or - P
represents the array contents of array instance I.Modifier | Constructor and Description |
---|---|
protected |
HeapGraphImpl(PointerAnalysis<T> pa) |
Modifier and Type | Method and Description |
---|---|
HeapModel |
getHeapModel() |
PointerAnalysis<T> |
getPointerAnalysis() |
Collection<Object> |
getReachableInstances(Set<Object> roots) |
Iterator<Object> |
iterateNodes(com.ibm.wala.util.intset.IntSet s) |
void |
removeNodeAndEdges(Object N) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMaxNumber, getNode, getNumber
addNode, containsNode, getNumberOfNodes, iterator, removeNode
forEach, spliterator
protected HeapGraphImpl(PointerAnalysis<T> pa)
public Iterator<Object> iterateNodes(com.ibm.wala.util.intset.IntSet s)
iterateNodes
in interface com.ibm.wala.util.graph.NumberedNodeManager<Object>
public Collection<Object> getReachableInstances(Set<Object> roots)
getReachableInstances
in interface HeapGraph<T extends InstanceKey>
public void removeNodeAndEdges(Object N) throws UnsupportedOperationException
removeNodeAndEdges
in interface com.ibm.wala.util.graph.Graph<Object>
UnsupportedOperationException
public HeapModel getHeapModel()
getHeapModel
in interface HeapGraph<T extends InstanceKey>
public PointerAnalysis<T> getPointerAnalysis()
getPointerAnalysis
in interface HeapGraph<T extends InstanceKey>
Copyright © 2018. All rights reserved.