Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add monotonically-increasing IDs for UnfoldingEvent
[simgrid.git] / src / mc / explo / udpor / ExtensionSetCalculator.cpp
index 6a1a8ca..dfbe926 100644 (file)
@@ -65,8 +65,8 @@ EventSet ExtensionSetCalculator::partially_extend_CommSend(const Configuration&
   }
 
   // 2. foreach e ∈ C s.t. λ(e) ∈ {AsyncSend(m, _), TestAny(Com)} where
-  // Com contains a matching c' = AsyncReceive(m, _) with a
-  for (const auto* e : C) {
+  // Com contains a matching c' = AsyncReceive(m, _) with `action`
+  for (const auto e : C) {
     const bool transition_type_check = [&]() {
       if (const auto* async_send = dynamic_cast<const CommSendTransition*>(e->get_transition());
           async_send != nullptr) {
@@ -111,7 +111,7 @@ EventSet ExtensionSetCalculator::partially_extend_CommRecv(const Configuration&
 
   // 2. foreach e ∈ C s.t. λ(e) ∈ {AsyncSend(m, _), TestAny(Com)} where
   // Com contains a matching c' = AsyncReceive(m, _) with a
-  for (const auto* e : C) {
+  for (const auto e : C) {
     const bool transition_type_check = [&]() {
       if (const auto* async_recv = dynamic_cast<const CommRecvTransition*>(e->get_transition());
           async_recv != nullptr && async_recv->get_mailbox() == recv_mailbox) {
@@ -288,8 +288,6 @@ EventSet ExtensionSetCalculator::partially_extend_CommWait(const Configuration&
         continue;
       }
 
-      // TODO: Compute the send and receive positions
-
       // What send # is the issuer
       const unsigned send_position = std::count_if(e_issuer_history.begin(), e_issuer_history.end(), [=](const auto e) {
         const CommSendTransition* e_send = dynamic_cast<const CommSendTransition*>(e->get_transition());