#ifndef SIMGRID_MC_TRANSITION_HPP
#define SIMGRID_MC_TRANSITION_HPP
+#include <string>
+
namespace simgrid {
namespace mc {
int times_considered_ = 0;
/* Textual representation of the transition, to display backtraces */
- char textual[200];
+ std::string textual;
};
} // namespace mc
void Api::execute(Transition& transition, smx_simcall_t simcall) const
{
/* FIXME: once all simcalls have observers, kill the simcall parameter and use mc_model_checker->simcall_to_string() */
- auto textual =
- simgrid::mc::Api::get().request_to_string(simcall, transition.times_considered_, RequestType::executed);
- strcpy((char*)transition.textual, textual.c_str());
-
+ transition.textual = request_to_string(simcall, transition.times_considered_, RequestType::executed);
session->execute(transition);
}