/* Add all enabled actors to the interleave set of the initial state */
for (auto& act : api::get().get_actors()) {
auto actor = act.copy.get_buffer();
- if (api::get().actor_is_enabled(actor->get_pid()))
+ if (get_session().actor_is_enabled(actor->get_pid()))
initial_state->mark_todo(actor);
}
return;
}
- session->restore_initial_state();
+ get_session().restore_initial_state();
const unsigned long maxpid = api::get().get_maxpid();
assert(maxpid == incomplete_communications_pattern.size());
/* Add all enabled actors to the interleave set of the next state */
for (auto& act : api::get().get_actors()) {
auto actor = act.copy.get_buffer();
- if (api::get().actor_is_enabled(actor->get_pid()))
+ if (get_session().actor_is_enabled(actor->get_pid()))
next_state->mark_todo(actor);
}
void CommunicationDeterminismChecker::run()
{
XBT_INFO("Check communication determinism");
- get_session()->take_initial_snapshot();
+ get_session().take_initial_snapshot();
this->prepare();
this->real_run();
}
-Checker* createCommunicationDeterminismChecker(Session* session)
+Checker* create_communication_determinism_checker(Session* session)
{
return new CommunicationDeterminismChecker(session);
}