+void Session::restoreInitialState()
+{
+ simgrid::mc::restore_snapshot(this->initialSnapshot_);
+}
+
+void Session::logState()
+{
+ mc_model_checker->getChecker()->logState();
+
+ if (not _sg_mc_dot_output_file.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);
+ }
+}
+