Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
match previous merge updates
authormlaurent <mathieu.laurent@ens-rennes.fr>
Fri, 17 Feb 2023 08:06:04 +0000 (09:06 +0100)
committermlaurent <mathieu.laurent@ens-rennes.fr>
Fri, 17 Feb 2023 08:06:04 +0000 (09:06 +0100)
src/mc/api/State.cpp

index 2e4fa07..36535b1 100644 (file)
@@ -26,11 +26,14 @@ State::State(const RemoteApp& remote_app) : default_transition(std::make_unique<
   }
 }
 
-State::State(const RemoteApp& remote_app, const State* previous_state) : num_(++expended_states_)
+State::State(const RemoteApp& remote_app, const State* previous_state)
+    : default_transition(std::make_unique<Transition>()), num_(++expended_states_)
 {
 
   remote_app.get_actors_status(actors_to_run_);
 
+  transition_ = default_transition.get();
+
   /* Stateful model checking */
   if ((_sg_mc_checkpoint > 0 && (num_ % _sg_mc_checkpoint == 0)) || _sg_mc_termination) {
     system_state_ = std::make_shared<simgrid::mc::Snapshot>(num_);