Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SMPI_is_inited() and smpi_enabled() have the same purpose. Keep only the former.
[simgrid.git] / src / mc / mc_base.cpp
index dbebae2..fe612c9 100644 (file)
@@ -18,8 +18,6 @@
 #include "src/mc/ModelChecker.hpp"
 #include "src/mc/Session.hpp"
 #include "src/mc/remote/RemoteProcess.hpp"
-
-using simgrid::mc::remote;
 #endif
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(mc, "All MC categories");
@@ -37,8 +35,7 @@ int MC_random(int min, int max)
   return simgrid::kernel::actor::simcall_answered([&observer] { return observer.get_value(); }, &observer);
 }
 
-namespace simgrid {
-namespace mc {
+namespace simgrid::mc {
 
 void execute_actors()
 {
@@ -56,8 +53,7 @@ void execute_actors()
   }
 #if SIMGRID_HAVE_MC
   engine->reset_actor_dynar();
-  for (auto const& kv : engine->get_actor_list()) {
-    auto actor = kv.second;
+  for (auto const& [_, actor] : engine->get_actor_list()) {
     // Only visible requests remain at this point, and they all have an observer
     actor->simcall_.mc_max_consider_ = actor->simcall_.observer_->get_max_consider();
 
@@ -111,5 +107,4 @@ bool request_is_visible(const kernel::actor::Simcall* req)
     return false;
 }
 
-} // namespace mc
-} // namespace simgrid
+} // namespace simgrid::mc