public class PointsToMap extends Object
Constructor and Description |
---|
PointsToMap() |
Modifier and Type | Method and Description |
---|---|
int |
getIndex(PointerKey p) |
protected int |
getNumberOfPointerKeys() |
PointsToSetVariable |
getPointsToSet(int id) |
PointsToSetVariable |
getPointsToSet(PointerKey p)
If p is unified, returns the representative for p.
|
int |
getRepresentative(int i) |
Iterator<PointerKey> |
getTransitiveRoots() |
boolean |
isImplicit(PointerKey p) |
boolean |
isUnified(PointerKey p) |
Iterator<PointerKey> |
iterateKeys() |
void |
put(PointerKey key,
PointsToSetVariable v) |
void |
recordImplicit(PointerKey key)
record that a particular points-to-set is represented implicitly
|
void |
recordTransitiveRoot(PointerKey key)
record points-to-sets that are "roots" of the transitive closure.
|
void |
recordUnified(PointerKey key)
record that a particular points-to-set has been unioned with another
|
void |
revertToPreTransitive()
Wipe out the cached transitive closure information
|
void |
unify(int i,
int j)
Unify the points-to-sets for the variables with numbers i and j
|
void |
unify(com.ibm.wala.util.intset.IntSet s)
Unify the points-to-sets for the variables identified by the set s
|
public Iterator<PointerKey> iterateKeys()
public PointsToSetVariable getPointsToSet(PointerKey p)
public PointsToSetVariable getPointsToSet(int id)
PointsToSetVariable
recorded for a particular idpublic void recordImplicit(PointerKey key)
public void put(PointerKey key, PointsToSetVariable v)
public void recordUnified(PointerKey key)
public void recordTransitiveRoot(PointerKey key)
public boolean isUnified(PointerKey p)
public boolean isImplicit(PointerKey p)
protected int getNumberOfPointerKeys()
public void revertToPreTransitive()
public Iterator<PointerKey> getTransitiveRoots()
Iterator
<PointerKey
>public void unify(com.ibm.wala.util.intset.IntSet s) throws IllegalArgumentException
s
- numbers of points-to-set variablesIllegalArgumentException
- if s is nullpublic void unify(int i, int j)
public int getIndex(PointerKey p)
public int getRepresentative(int i)
Copyright © 2019. All rights reserved.