Package pascal.taie.analysis.pta.pts
Interface PointsToSet
- All Superinterfaces:
Copyable<PointsToSet>
,Iterable<CSObj>
Representation of points-to sets that consist of
CSObj
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
addAll
(PointsToSet pts) Adds all objects in given pts to this set.addAllDiff
(PointsToSet pts) Adds all objects in given pts to this set.boolean
Adds an object to this set.boolean
boolean
isEmpty()
iterator()
objects()
void
Removes objects from this set if they satisfy the filter.int
size()
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
addObject
Adds an object to this set.- Returns:
- true if this points-to set changed as a result of the call, otherwise false.
-
addAll
Adds all objects in given pts to this set.- Returns:
- true if this points-to set changed as a result of the call, otherwise false.
-
addAllDiff
Adds all objects in given pts to this set.- Returns:
- the difference between
pts
and this set.
-
removeIf
Removes objects from this set if they satisfy the filter.Note: This method should not be called outside of
Plugin.onPhaseFinish()
, otherwise it may break the monotonicity of pointer analysis. -
contains
- Returns:
- true if this set contains given object, otherwise false.
-
isEmpty
boolean isEmpty()- Returns:
- whether this set if empty.
-
size
int size()- Returns:
- the number of objects in this set.
-
getObjects
- Returns:
- all objects in this set.
-
objects
- Returns:
- all objects in this set.
-
iterator
-