Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
mcapi.actor_is_enabled() is called in LivenessChecker::create_pair()
authorEhsan Azimi <eazimi@ehsan.irisa.fr>
Fri, 4 Dec 2020 16:48:53 +0000 (17:48 +0100)
committerEhsan Azimi <eazimi@ehsan.irisa.fr>
Fri, 4 Dec 2020 16:48:53 +0000 (17:48 +0100)
src/mc/checker/LivenessChecker.cpp

index b14a94d..c47ae66 100644 (file)
@@ -270,9 +270,9 @@ std::shared_ptr<Pair> LivenessChecker::create_pair(const Pair* current_pair, xbt
   else
     next_pair->depth = 1;
   /* Get enabled actors and insert them in the interleave set of the next graph_state */
-    if (mc::actor_is_enabled(actor.copy.get_buffer()))
   auto actors = mcapi::get().get_actors();
   for (auto& actor : actors)
+    if (mcapi::get().actor_is_enabled(actor.copy.get_buffer()->get_pid()))
       next_pair->graph_state->add_interleaving_set(actor.copy.get_buffer());
   next_pair->requests = next_pair->graph_state->interleave_size();
   /* FIXME : get search_cycle value for each accepting state */