Class ToppedSetFact<E>
java.lang.Object
pascal.taie.analysis.dataflow.fact.SetFact<E>
pascal.taie.analysis.dataflow.fact.ToppedSetFact<E>
- Type Parameters:
E
- type of elements
Represents set-like data-flow facts.
This fact can represent a top element in the lattice, i.e., Universe.
Note that the top element is conceptual, i.e., it is mock and does not
really contain all elements in the domain, thus remove and iteration
operations on the top element are unsupported.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds an element to this fact.void
clear()
Clears all content in this fact.boolean
copy()
Creates and returns a copy of this fact.boolean
int
hashCode()
boolean
Intersects this fact with other fact.boolean
isEmpty()
boolean
isTop()
boolean
Removes an element from this fact.boolean
Removes all the elements of this fact that satisfy the given predicate.void
Sets the content of this set to the same as other set.void
setTop
(boolean top) int
size()
stream()
toString()
boolean
Unions other fact into this fact.Methods inherited from class pascal.taie.analysis.dataflow.fact.SetFact
forEach, intersectWith, iterator, removeAll, unionWith
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
spliterator
-
Constructor Details
-
ToppedSetFact
public ToppedSetFact(boolean isTop) -
ToppedSetFact
-
-
Method Details
-
isTop
public boolean isTop() -
setTop
public void setTop(boolean top) -
contains
-
add
Description copied from class:SetFact
Adds an element to this fact. -
remove
Description copied from class:SetFact
Removes an element from this fact. -
removeIf
Description copied from class:SetFact
Removes all the elements of this fact that satisfy the given predicate. -
union
Description copied from class:SetFact
Unions other fact into this fact. -
intersect
Description copied from class:SetFact
Intersects this fact with other fact. -
set
Description copied from class:SetFact
Sets the content of this set to the same as other set. -
copy
Description copied from class:SetFact
Creates and returns a copy of this fact. -
clear
public void clear()Description copied from class:SetFact
Clears all content in this fact. -
isEmpty
public boolean isEmpty() -
stream
-
size
public int size() -
equals
-
hashCode
public int hashCode() -
toString
-