Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git] / src / mc / api / strategy / MaxMatchComm.hpp
index ec279d0..77dadd1 100644 (file)
@@ -51,19 +51,19 @@ public:
       const Transition* transition = actor.get_transition(actor.get_times_considered()).get();
 
       if (auto const* cast_recv = dynamic_cast<CommRecvTransition const*>(transition)) {
-        if (mailbox_.count(cast_recv->get_mailbox()) > 0 && mailbox_.at(cast_recv->get_mailbox()) > 0) {
-          aid_value--; // This means we have waiting recv corresponding to this recv
-        } else {
-          aid_value++;
-        }
+            if (mailbox_.count(cast_recv->get_mailbox()) > 0 && mailbox_.at(cast_recv->get_mailbox()) > 0) {
+              aid_value--; // This means we have waiting recv corresponding to this recv
+            } else {
+              aid_value++;
+            }
       }
 
       if (auto const* cast_send = dynamic_cast<CommSendTransition const*>(transition)) {
-        if (mailbox_.count(cast_send->get_mailbox()) > 0 && mailbox_.at(cast_send->get_mailbox()) < 0) {
-          aid_value--; // This means we have waiting recv corresponding to this send
-        } else {
-          aid_value++;
-        }
+            if (mailbox_.count(cast_send->get_mailbox()) > 0 && mailbox_.at(cast_send->get_mailbox()) < 0) {
+              aid_value--; // This means we have waiting recv corresponding to this send
+            } else {
+              aid_value++;
+            }
       }
 
       if (aid_value < min_found.second)