-/* 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. */
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");
// 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()) {