From: Gabriel Corona Date: Mon, 4 Apr 2016 13:44:50 +0000 (+0200) Subject: [mc] Rename SafetyChecker::is_exploration_stack_state() into checkNonDeterminism() X-Git-Tag: v3_13~187^2~7 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/df016dbb4c27e8824d3f108cec36e76cf35eeb06?hp=2376a01092173679830310f4d57b267445959f97 [mc] Rename SafetyChecker::is_exploration_stack_state() into checkNonDeterminism() --- diff --git a/src/mc/SafetyChecker.cpp b/src/mc/SafetyChecker.cpp index 98596c26fc..5dd75dcc1f 100644 --- a/src/mc/SafetyChecker.cpp +++ b/src/mc/SafetyChecker.cpp @@ -53,7 +53,7 @@ static int snapshot_compare(simgrid::mc::State* state1, simgrid::mc::State* stat return snapshot_compare(num1, s1, num2, s2); } -bool SafetyChecker::is_exploration_stack_state(simgrid::mc::State* current_state) +bool SafetyChecker::checkNonDeterminism(simgrid::mc::State* current_state) { for (auto i = stack_.rbegin(); i != stack_.rend(); ++i) if(snapshot_compare(*i, current_state) == 0){ @@ -144,7 +144,7 @@ int SafetyChecker::run() /* Create the new expanded state */ next_state = MC_state_new(); - if(_sg_mc_termination && this->is_exploration_stack_state(next_state)){ + if (_sg_mc_termination && this->checkNonDeterminism(next_state)){ MC_show_non_termination(); return SIMGRID_MC_EXIT_NON_TERMINATION; } diff --git a/src/mc/SafetyChecker.hpp b/src/mc/SafetyChecker.hpp index b2aa1387cc..0bc502d20b 100644 --- a/src/mc/SafetyChecker.hpp +++ b/src/mc/SafetyChecker.hpp @@ -26,7 +26,7 @@ public: private: // Temp void init(); - bool is_exploration_stack_state(simgrid::mc::State* current_state); + bool checkNonDeterminism(simgrid::mc::State* current_state); private: /** Stack representing the position in the exploration graph */ std::list stack_;