Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill redundand blank lines.
[simgrid.git] / src / mc / checker / LivenessChecker.cpp
index 0a5e5d9..d455340 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2011-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -48,7 +48,7 @@ static bool evaluate_label(const xbt_automaton_exp_label* l, std::vector<int> co
   case xbt_automaton_exp_label::AUT_NOT:
     return not evaluate_label(l->u.exp_not, values);
   case xbt_automaton_exp_label::AUT_PREDICAT:{
-      auto cursor = mcapi::get().compare_automaton_exp_lable(l, values);
+      auto cursor = mcapi::get().compare_automaton_exp_label(l);
       if(cursor >= 0)
         return values[cursor] != 0;
       xbt_die("Missing predicate");
@@ -312,10 +312,10 @@ void LivenessChecker::run()
   // For each initial state of the property automaton, push a
   // (application_state, automaton_state) pair to the exploration stack:
   auto automaton_stack = mcapi::get().get_automaton_state();
-  std::for_each(automaton_stack.begin(), automaton_stack.end(), [&](xbt_automaton_state_t const& automaton_state) {
+  for (auto* automaton_state : automaton_stack) {
     if (automaton_state->type == -1)
       exploration_stack_.push_back(this->create_pair(nullptr, automaton_state, propos));
-  });
+  }
 
   /* Actually run the double DFS search for counter-examples */
   while (not exploration_stack_.empty()) {