Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Rename a checkNonDeterminism() to checkNonTermination()
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 5 Apr 2016 08:18:45 +0000 (10:18 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 5 Apr 2016 14:32:44 +0000 (16:32 +0200)
because this is what we're doing.

src/mc/SafetyChecker.cpp
src/mc/SafetyChecker.hpp

index 0a05e4a..389f638 100644 (file)
@@ -51,7 +51,7 @@ static int snapshot_compare(simgrid::mc::State* state1, simgrid::mc::State* stat
   return snapshot_compare(num1, s1, num2, s2);
 }
 
-bool SafetyChecker::checkNonDeterminism(simgrid::mc::State* current_state)
+bool SafetyChecker::checkNonTermination(simgrid::mc::State* current_state)
 {
   for (auto i = stack_.rbegin(); i != stack_.rend(); ++i)
     if (snapshot_compare(i->get(), current_state) == 0){
@@ -139,7 +139,7 @@ int SafetyChecker::run()
       std::unique_ptr<simgrid::mc::State> next_state =
         std::unique_ptr<simgrid::mc::State>(MC_state_new());
 
-      if (_sg_mc_termination && this->checkNonDeterminism(next_state.get())){
+      if (_sg_mc_termination && this->checkNonTermination(next_state.get())) {
           MC_show_non_termination();
           return SIMGRID_MC_EXIT_NON_TERMINATION;
       }
index 9694a93..c1896ee 100644 (file)
@@ -30,7 +30,7 @@ public:
 private:
   // Temp
   void init();
-  bool checkNonDeterminism(simgrid::mc::State* current_state);
+  bool checkNonTermination(simgrid::mc::State* current_state);
 private:
   /** Stack representing the position in the exploration graph */
   std::list<std::unique_ptr<simgrid::mc::State>> stack_;