X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/87ab6a5d123f0032675234e655f79dac2bc78beb..3b2c64cc73b0f7d5fb8e4dc842eaa243a4aad5d2:/src/mc/explo/CommunicationDeterminismChecker.cpp diff --git a/src/mc/explo/CommunicationDeterminismChecker.cpp b/src/mc/explo/CommunicationDeterminismChecker.cpp index 031416a2ad..a1a51ce080 100644 --- a/src/mc/explo/CommunicationDeterminismChecker.cpp +++ b/src/mc/explo/CommunicationDeterminismChecker.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2008-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -11,6 +11,7 @@ #include "src/mc/mc_private.hpp" #include "src/mc/transition/TransitionAny.hpp" #include "src/mc/transition/TransitionComm.hpp" +#include "xbt/string.hpp" #include @@ -208,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(); - mc_model_checker->exit(SIMGRID_MC_EXIT_NON_DETERMINISM); + exploration_.system_exit(SIMGRID_MC_EXIT_NON_DETERMINISM); } else if (_sg_mc_comms_determinism && (not send_deterministic && not recv_deterministic)) { XBT_INFO("****************************************************"); XBT_INFO("***** Non-deterministic communications pattern *****"); @@ -218,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(); - mc_model_checker->exit(SIMGRID_MC_EXIT_NON_DETERMINISM); + exploration_.system_exit(SIMGRID_MC_EXIT_NON_DETERMINISM); } } } @@ -326,7 +327,7 @@ Exploration* create_communication_determinism_checker(const std::vector& 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&) {