-/* 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. */
#include "src/mc/mc_private.hpp"
#include "src/mc/transition/TransitionAny.hpp"
#include "src/mc/transition/TransitionComm.hpp"
+#include "xbt/string.hpp"
#include <cstdint>
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 *****");
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);
}
}
}
auto pattern = std::make_unique<PatternCommunication>();
pattern->index = initial_pattern.index_comm + incomplete_pattern.size();
- if (transition->type_ == Transition::Type::COMM_SEND) {
+ if (transition->type_ == Transition::Type::COMM_ASYNC_SEND) {
auto* send = static_cast<const CommSendTransition*>(transition);
pattern->type = PatternCommunicationType::send;
// FIXME: Detached sends should be enforced when the receive is waited
- } else if (transition->type_ == Transition::Type::COMM_RECV) {
+ } else if (transition->type_ == Transition::Type::COMM_ASYNC_RECV) {
auto* recv = static_cast<const CommRecvTransition*>(transition);
pattern->type = PatternCommunicationType::receive;
return;
switch (transition->type_) {
- case Transition::Type::COMM_SEND:
- case Transition::Type::COMM_RECV:
+ case Transition::Type::COMM_ASYNC_SEND:
+ case Transition::Type::COMM_ASYNC_RECV:
get_comm_pattern(transition);
break;
case Transition::Type::COMM_WAIT:
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&) {