action, clockvector: add 'has_synchronized_with()' functions
[model-checker.git] / action.cc
index b435524d6d4a423405e221724794e8fcfeae4f84..a321a85edede7f0b12a47142f61e44a33f561cbd 100644 (file)
--- a/action.cc
+++ b/action.cc
@@ -186,6 +186,11 @@ void ModelAction::synchronize_with(const ModelAction *act) {
        cv->merge(act->cv);
 }
 
+bool ModelAction::has_synchronized_with(const ModelAction *act) const
+{
+       return cv->has_synchronized_with(act->cv);
+}
+
 /**
  * Check whether 'this' happens before act, according to the memory-model's
  * happens before relation. This is checked via the ClockVector constructs.