Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Convert Api::get_maxpid() into RemoteApp::get_maxpid()
[simgrid.git] / src / mc / explo / DFSExplorer.cpp
index 1d429a2..9a61e12 100644 (file)
@@ -266,7 +266,7 @@ void DFSExplorer::restore_state()
   }
 }
 
-DFSExplorer::DFSExplorer(RemoteApp* remote_app) : Exploration(remote_app)
+DFSExplorer::DFSExplorer(RemoteApp& remote_app) : Exploration(remote_app)
 {
   reductionMode_ = reduction_mode;
   if (_sg_mc_termination)
@@ -281,8 +281,6 @@ DFSExplorer::DFSExplorer(RemoteApp* remote_app) : Exploration(remote_app)
              (reductionMode_ == ReductionMode::none ? "none"
                                                     : (reductionMode_ == ReductionMode::dpor ? "dpor" : "unknown")));
 
-  get_remote_app().take_initial_snapshot();
-
   XBT_DEBUG("Starting the DFS exploration");
 
   auto initial_state = std::make_unique<State>(get_remote_app());
@@ -305,7 +303,7 @@ DFSExplorer::DFSExplorer(RemoteApp* remote_app) : Exploration(remote_app)
   stack_.push_back(std::move(initial_state));
 }
 
-Exploration* create_dfs_exploration(RemoteApp* remote_app)
+Exploration* create_dfs_exploration(RemoteApp& remote_app)
 {
   return new DFSExplorer(remote_app);
 }