- smx_actor_t process = SIMIX_process_from_PID(transition.pid_);
- if (not process)
- xbt_die("Unexpected process (pid:%d).", transition.pid_);
- const s_smx_simcall* simcall = &(process->simcall_);
- if (simcall == nullptr || simcall->call_ == simix::Simcall::NONE)
- xbt_die("No simcall for process %d.", transition.pid_);
- if (not simgrid::mc::request_is_visible(simcall) || not simgrid::mc::actor_is_enabled(process))
- xbt_die("Unexpected simcall.");
+ kernel::actor::ActorImpl* actor = kernel::EngineImpl::get_instance()->get_actor_by_pid(transition->aid_);
+ xbt_assert(actor != nullptr, "Unexpected actor (id:%ld).", transition->aid_);
+ const kernel::actor::Simcall* simcall = &(actor->simcall_);
+ xbt_assert(simcall->call_ != kernel::actor::Simcall::Type::NONE, "No simcall for process %ld.", transition->aid_);
+ xbt_assert(simgrid::mc::request_is_visible(simcall) && simgrid::mc::actor_is_enabled(actor), "Unexpected simcall.");