Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix bug with immediate conflict detection
[simgrid.git] / src / mc / explo / udpor / EventSet.cpp
index 2bfea8ec80581b490b17e183298f6cac5b01b744..b644448a84ef5fe9109e45409f248b16c69e332c 100644 (file)
@@ -142,6 +142,11 @@ bool EventSet::intersects(const History& history) const
   return std::any_of(history.begin(), history.end(), [=](const UnfoldingEvent* e) { return this->contains(e); });
 }
 
+bool EventSet::intersects(const EventSet& other) const
+{
+  return std::any_of(other.begin(), other.end(), [=](const UnfoldingEvent* e) { return this->contains(e); });
+}
+
 EventSet EventSet::get_largest_maximal_subset() const
 {
   const History history(*this);