public HashMap<ConditionalInterface, HashSet<ConditionalInterface>> getHBConditions() {
return this.hbConditions;
}
+
+ /**
+ * Check if the conditional interface is in the HB checking list
+ * @param condInterface
+ * @return
+ */
+ public boolean containsConditionalInterface(ConditionalInterface condInterface) {
+ if (hbConditions.containsKey(condInterface))
+ return true;
+ for (ConditionalInterface key : hbConditions.keySet()) {
+ if (hbConditions.get(key).contains(condInterface))
+ return true;
+ }
+ return false;
+ }
public String getOption(String key) {
return options.get(key);
+ label + "!");
}
- // No HB condition label can duplicate!
- if (hbLabel2Num.containsKey(label)) {
- throw new SemanticsCheckerException("Happens-before label: "
- + label + " duplicates!");
- }
-
// Number the HB-condition label
hbLabel2Num.put(label, _hbLabelNum++);
}