-/* 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>
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:
state->extension_set(new StateCommDet(*extension, remote_app));
});
- DFSExplorer::on_restore_system_state([extension](State* state, RemoteApp const& remote_app) {
+ DFSExplorer::on_restore_system_state([extension](State const* state, RemoteApp const& remote_app) {
extension->restore_communications_pattern(state, remote_app);
});
});
DFSExplorer::on_transition_replay(
- [extension](Transition* t, RemoteApp const&) { extension->handle_comm_pattern(t); });
+ [extension](Transition const* t, RemoteApp const&) { extension->handle_comm_pattern(t); });
DFSExplorer::on_transition_execute(
- [extension](Transition* t, RemoteApp const&) { extension->handle_comm_pattern(t); });
+ [extension](Transition const* t, RemoteApp const&) { extension->handle_comm_pattern(t); });
DFSExplorer::on_log_state([extension](RemoteApp const&) {
if (_sg_mc_comms_determinism) {