Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move SDPOR core computation into a method
[simgrid.git] / src / mc / api / State.cpp
index aa315cf..8430f52 100644 (file)
@@ -162,11 +162,11 @@ std::shared_ptr<Transition> State::execute_next(aid_t next, RemoteApp& app)
   return outgoing_transition_;
 }
 
-std::unordered_set<aid_t> State::get_todo_actors() const
+std::unordered_set<aid_t> State::get_backtrack_set() const
 {
   std::unordered_set<aid_t> actors;
   for (const auto& [aid, state] : get_actors_list()) {
-    if (state.is_todo()) {
+    if (state.is_todo() or state.is_done()) {
       actors.insert(aid);
     }
   }