Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use an exception on Exploration::system_exit().
[simgrid.git] / src / mc / explo / CommunicationDeterminismChecker.cpp
index cc76198e5374a3d3a6bef904191c662fe98d021d..5e57a9b4f49cb44bb55234524405811f414a73de 100644 (file)
@@ -209,7 +209,7 @@ void CommDetExtension::enforce_deterministic_pattern(aid_t actor, const PatternC
       XBT_INFO("*********************************************************");
       XBT_INFO("%s", send_diff.c_str());
       exploration_.log_state();
-      exploration_.system_exit(SIMGRID_MC_EXIT_NON_DETERMINISM);
+      exploration_.system_exit(ExitStatus::NON_DETERMINISM);
     } else if (_sg_mc_comms_determinism && (not send_deterministic && not recv_deterministic)) {
       XBT_INFO("****************************************************");
       XBT_INFO("***** Non-deterministic communications pattern *****");
@@ -219,7 +219,7 @@ void CommDetExtension::enforce_deterministic_pattern(aid_t actor, const PatternC
       if (not recv_diff.empty())
         XBT_INFO("%s", recv_diff.c_str());
       exploration_.log_state();
-      exploration_.system_exit(SIMGRID_MC_EXIT_NON_DETERMINISM);
+      exploration_.system_exit(ExitStatus::NON_DETERMINISM);
     }
   }
 }
@@ -327,7 +327,7 @@ Exploration* create_communication_determinism_checker(const std::vector<char*>&
 
   XBT_DEBUG("********* Start communication determinism verification *********");
 
-  auto base      = new DFSExplorer(args, with_dpor);
+  auto base      = new DFSExplorer(args, with_dpor, true);
   auto extension = new CommDetExtension(*base);
 
   DFSExplorer::on_exploration_start([extension](RemoteApp const&) {