java.lang.Object
dev.civl.gmc.dpor.DporHbSet
Maintains a set of stack entries which are downward closed wrt to the
happens-before relation. Meaning: if e is in our set and e' happens
before e then e' is also in our set.
This class is the foundation for building the full happens-before
relation. Essentially, each entry on the stack has an HbSet which represents the set
of entries that happen-before it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntry(DporStackEntry<?, ?> entry) booleancontains(DporStackEntry<?, ?> entry) intlastEntryPos(int pid) procSet()
-
Constructor Details
-
DporHbSet
public DporHbSet()
-
-
Method Details
-
addEntry
-
contains
- Parameters:
index- of stack entry- Returns:
- whether the entry is in this set
-
lastEntryPos
public int lastEntryPos(int pid) - Parameters:
process- id- Returns:
- the last stack entry of pid that is in this set if it exists; -1 if it does not
-
procSet
- Returns:
- the set of process ids that have stack entries in this set
-