s_mc_message_simcall_handle_t m;
memset(&m, 0, sizeof(m));
m.type = MessageType::SIMCALL_HANDLE;
- m.pid_ = transition.pid_;
+ m.aid_ = transition.aid_;
m.times_considered_ = transition.times_considered_;
checker_side_.get_channel().send(m);
this->remote_process_->clear_cache();
{
/* reset the outgoing transition */
simgrid::mc::ActorState* procstate = &state->actor_states_[actor->get_pid()];
- state->transition_.pid_ = -1;
+ state->transition_.aid_ = -1;
state->transition_.times_considered_ = -1;
state->transition_.textual[0] = '\0';
state->executed_req_.call_ = Simcall::NONE;
if (not req)
return nullptr;
- state->transition_.pid_ = actor->get_pid();
+ state->transition_.aid_ = actor->get_pid();
state->executed_req_ = *req;
// Fetch the data of the request and translate it:
simgrid::mc::execute_actors();
for (simgrid::mc::Transition const& transition : trace) {
- XBT_DEBUG("Executing %i$%i", transition.pid_, transition.times_considered_);
+ XBT_DEBUG("Executing %ld$%i", transition.aid_, transition.times_considered_);
// Choose a request:
- kernel::actor::ActorImpl* actor = kernel::actor::ActorImpl::by_pid(transition.pid_);
+ kernel::actor::ActorImpl* actor = kernel::actor::ActorImpl::by_pid(transition.aid_);
if (actor == nullptr)
- xbt_die("Unexpected actor (id:%d).", transition.pid_);
+ xbt_die("Unexpected actor (id:%ld).", transition.aid_);
const s_smx_simcall* simcall = &(actor->simcall_);
if (simcall->call_ == simix::Simcall::NONE)
- xbt_die("No simcall for process %d.", transition.pid_);
+ xbt_die("No simcall for process %ld.", transition.aid_);
if (not simgrid::mc::request_is_visible(simcall) || not simgrid::mc::actor_is_enabled(actor))
xbt_die("Unexpected simcall.");
const char* current = data;
while (*current) {
simgrid::mc::Transition item;
- int count = sscanf(current, "%d/%d", &item.pid_, &item.times_considered_);
+ int count = sscanf(current, "%ld/%d", &item.aid_, &item.times_considered_);
if(count != 2 && count != 1)
throw std::invalid_argument("Could not parse record path");
for (auto i = trace.begin(); i != trace.end(); ++i) {
if (i != trace.begin())
stream << ';';
- stream << i->pid_;
+ stream << i->aid_;
if (i->times_considered_)
stream << '/' << i->times_considered_;
}
}
void AppSide::handle_simcall_execute(const s_mc_message_simcall_handle_t* message) const
{
- kernel::actor::ActorImpl* process = kernel::actor::ActorImpl::by_pid(message->pid_);
- xbt_assert(process != nullptr, "Invalid pid %lu", message->pid_);
+ kernel::actor::ActorImpl* process = kernel::actor::ActorImpl::by_pid(message->aid_);
+ xbt_assert(process != nullptr, "Invalid pid %lu", message->aid_);
process->simcall_handle(message->times_considered_);
if (channel_.send(MessageType::WAITING))
xbt_die("Could not send MESSAGE_WAITING to model-checker");