/* 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/api/Transition.hpp"
+#include "src/mc/transition/TransitionRandom.hpp"
#include "xbt/asserts.h"
#include "xbt/string.hpp"
-#include <simgrid/config.h>
-
-#if SIMGRID_HAVE_MC
-#include "src/mc/ModelChecker.hpp"
-#endif
#include <sstream>
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_transition, mc, "Logging specific to MC transitions");
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_trans_rand, mc_transition, "Logging specific to MC Random transitions");
namespace simgrid {
namespace mc {
-unsigned long Transition::executed_transitions_ = 0;
-unsigned long Transition::replayed_transitions_ = 0;
-
-// Do not move this to the header, to ensure that we have a vtable for Transition
-Transition::~Transition() = default;
-
-std::string Transition::to_string(bool) const
-{
- return "";
-}
-std::string Transition::dot_label() const
-{
- return xbt::string_printf("[(%ld)] %s", aid_, Transition::to_c_str(type_));
-}
-void Transition::replay() const
-{
- replayed_transitions_++;
-
-#if SIMGRID_HAVE_MC
- mc_model_checker->handle_simcall(aid_, times_considered_, false);
- mc_model_checker->wait_for_requests();
-#endif
-}
std::string RandomTransition::to_string(bool verbose) const
{
return xbt::string_printf("Random([%d;%d] ~> %d)", min_, max_, times_considered_);