1 /* Copyright (c) 2015-2022. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #include "src/mc/Transition.hpp"
7 #include "src/mc/TransitionComm.hpp"
8 #include "xbt/asserts.h"
9 #include <simgrid/config.h>
11 #include "src/mc/ModelChecker.hpp"
16 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_transition, mc, "Logging specific to MC transitions");
20 unsigned long Transition::executed_transitions_ = 0;
21 unsigned long Transition::replayed_transitions_ = 0;
23 Transition::~Transition() {
24 } // Make sure that we have a vtable for Transition by putting this virtual function out of the header
26 std::string Transition::to_string(bool verbose)
30 const char* Transition::to_cstring(bool verbose)
33 return textual_.c_str();
35 void Transition::init(aid_t aid, int times_considered)
38 times_considered_ = times_considered;
40 void Transition::replay() const
42 replayed_transitions_++;
45 mc_model_checker->handle_simcall(*this, false);
46 mc_model_checker->wait_for_requests();
51 } // namespace simgrid