]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/explo/UdporChecker.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add detailed stress test for WakeupTree
[simgrid.git] / src / mc / explo / UdporChecker.cpp
index f62abea903f77620643dbb38e96771932ac5f72d..e367890ea9ebee1f105e802e33721de0b02ebde0 100644 (file)
@@ -214,7 +214,7 @@ void UdporChecker::restore_program_state_with_current_stack()
   for (const std::unique_ptr<State>& state : state_stack) {
     if (state == state_stack.back()) /* If we are arrived on the target state, don't replay the outgoing transition */
       break;
-    state->get_transition()->replay(get_remote_app());
+    state->get_transition_out()->replay(get_remote_app());
   }
 }
 
@@ -314,27 +314,17 @@ void UdporChecker::clean_up_explore(const UnfoldingEvent* e, const Configuration
   // that UDPOR has marked as no longer being important)
   // For now, there appear to be no "obvious" issues (although
   // UDPOR's behavior is often far from obvious...)
-  this->unfolding.remove(clean_up_set);
+  this->unfolding.mark_finished(clean_up_set);
 }
 
 RecordTrace UdporChecker::get_record_trace()
 {
   RecordTrace res;
   for (auto const& state : state_stack)
-    res.push_back(state->get_transition());
+    res.push_back(state->get_transition_out().get());
   return res;
 }
 
-std::vector<std::string> UdporChecker::get_textual_trace()
-{
-  std::vector<std::string> trace;
-  for (auto const& state : state_stack) {
-    const auto* t = state->get_transition();
-    trace.push_back(xbt::string_printf("%ld: %s", t->aid_, t->to_string().c_str()));
-  }
-  return trace;
-}
-
 } // namespace simgrid::mc::udpor
 
 namespace simgrid::mc {