X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f242db7697124c32d3dc646961e4aac666239854..3fb28e990d3e18eef76fa5d21a134f0bd4e2fbaa:/src/mc/explo/CommunicationDeterminismChecker.cpp?ds=sidebyside diff --git a/src/mc/explo/CommunicationDeterminismChecker.cpp b/src/mc/explo/CommunicationDeterminismChecker.cpp index a1a51ce080..a340c2cf94 100644 --- a/src/mc/explo/CommunicationDeterminismChecker.cpp +++ b/src/mc/explo/CommunicationDeterminismChecker.cpp @@ -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); + throw McError(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); + throw McError(ExitStatus::NON_DETERMINISM); } } } @@ -320,14 +320,14 @@ void CommDetExtension::handle_comm_pattern(const Transition* transition) } */ -Exploration* create_communication_determinism_checker(const std::vector& args, bool with_dpor) +Exploration* create_communication_determinism_checker(const std::vector& args, ReductionMode mode) { CommDetExtension::EXTENSION_ID = simgrid::mc::Exploration::extension_create(); StateCommDet::EXTENSION_ID = simgrid::mc::State::extension_create(); XBT_DEBUG("********* Start communication determinism verification *********"); - auto base = new DFSExplorer(args, with_dpor, true); + auto base = new DFSExplorer(args, mode, true); auto extension = new CommDetExtension(*base); DFSExplorer::on_exploration_start([extension](RemoteApp const&) {