Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Remove Snapshot::is_important_snapshot()
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 29 Mar 2016 09:46:03 +0000 (11:46 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 29 Mar 2016 10:58:51 +0000 (12:58 +0200)
It was only used in order to manage the lifetime of snapshot instances.

src/mc/LivenessChecker.cpp
src/mc/ModelChecker.hpp

index e982672..c9be6e9 100644 (file)
@@ -376,8 +376,7 @@ int LivenessChecker::insertVisitedPair(simgrid::mc::VisitedPair* visited_pair, s
     unsigned int index2 = 0;
     for (std::size_t i = 0; i != (std::size_t) visited_pairs.size(); ++i) {
       simgrid::mc::VisitedPair* pair_test = visited_pairs[i];
-      if (!mc_model_checker->is_important_snapshot(*pair_test->graph_state->system_state)
-          && pair_test->num < min2) {
+      if (pair_test->num < min2) {
         index2 = i;
         min2 = pair_test->num;
       }
index 274ace7..2c1abd2 100644 (file)
@@ -55,11 +55,6 @@ public:
   }
   const char* get_host_name(const char* name);
 
-  bool is_important_snapshot(Snapshot const& snapshot) const
-  {
-    return &snapshot == this->parent_snapshot_.get();
-  }
-
   void start();
   void shutdown();
   void resume(simgrid::mc::Process& process);