- smx_actor_t process = SIMIX_process_from_PID(transition.pid);
- if (not process)
- xbt_die("Unexpected process (pid:%d).", transition.pid);
- smx_simcall_t simcall = &(process->simcall);
- if (not simcall || simcall->call == 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::actor::ActorImpl::by_pid(transition->aid_);
+ xbt_assert(actor != nullptr, "Unexpected actor (id:%ld).", transition->aid_);
+ const s_smx_simcall* simcall = &(actor->simcall_);
+ xbt_assert(simcall->call_ != simix::Simcall::NONE, "No simcall for process %ld.", transition->aid_);
+ xbt_assert(simgrid::mc::request_is_visible(simcall) && simgrid::mc::actor_is_enabled(actor), "Unexpected simcall.");