Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename mc::Session into mc::api::RemoteApp
[simgrid.git] / src / mc / ModelChecker.cpp
index fe5d743..9a22666 100644 (file)
@@ -141,7 +141,7 @@ static void MC_report_crash(int status)
     for (auto const& s : mc_model_checker->get_exploration()->get_textual_trace())
       XBT_INFO("  %s", s.c_str());
     XBT_INFO("Path = %s", mc_model_checker->get_exploration()->get_record_trace().to_string().c_str());
-    Api::get().get_session().log_state();
+    Api::get().get_remote_app().log_state();
     if (xbt_log_no_loc) {
       XBT_INFO("Stack trace not displayed because you passed --log=no_loc");
     } else {
@@ -233,7 +233,7 @@ bool ModelChecker::handle_message(const char* buffer, ssize_t size)
       for (auto const& s : get_exploration()->get_textual_trace())
         XBT_INFO("  %s", s.c_str());
       XBT_INFO("Path = %s", get_exploration()->get_record_trace().to_string().c_str());
-      Api::get().get_session().log_state();
+      Api::get().get_remote_app().log_state();
 
       this->exit(SIMGRID_MC_EXIT_SAFETY);