+void Session::initialize()
+{
+ xbt_assert(initialSnapshot_ == nullptr);
+ mc_model_checker->wait_for_requests();
+ initialSnapshot_ = simgrid::mc::take_snapshot(0);
+}
+
+void Session::execute(Transition const& transition)
+{
+ modelChecker_->handle_simcall(transition);
+ modelChecker_->wait_for_requests();
+}
+
+void Session::restoreInitialState()
+{
+ simgrid::mc::restore_snapshot(this->initialSnapshot_);
+}
+
+void Session::logState()
+{
+ mc_model_checker->getChecker()->logState();
+
+ if (not _sg_mc_dot_output_file.get().empty()) {
+ fprintf(dot_output, "}\n");
+ fclose(dot_output);
+ }
+ if (getenv("SIMGRID_MC_SYSTEM_STATISTICS")){
+ int ret=system("free");
+ if(ret!=0)XBT_WARN("system call did not return 0, but %d",ret);
+ }
+}
+