const char* type = nullptr;
char *args = nullptr;
- smx_process_t issuer = MC_smx_simcall_get_issuer(req);
+ smx_actor_t issuer = MC_smx_simcall_get_issuer(req);
switch (req->call) {
} else
act = remote_act;
- smx_process_t src_proc = mc_model_checker->process().resolveProcess(
+ smx_actor_t src_proc = mc_model_checker->process().resolveProcess(
simgrid::mc::remote(act->src_proc));
- smx_process_t dst_proc = mc_model_checker->process().resolveProcess(
+ smx_actor_t dst_proc = mc_model_checker->process().resolveProcess(
simgrid::mc::remote(act->dst_proc));
args = bprintf("comm=%s [(%lu)%s (%s)-> (%lu)%s (%s)]", p,
src_proc ? src_proc->pid : 0,
type = "Test TRUE";
p = pointer_to_string(remote_act);
- smx_process_t src_proc = mc_model_checker->process().resolveProcess(
+ smx_actor_t src_proc = mc_model_checker->process().resolveProcess(
simgrid::mc::remote(act->src_proc));
- smx_process_t dst_proc = mc_model_checker->process().resolveProcess(
+ smx_actor_t dst_proc = mc_model_checker->process().resolveProcess(
simgrid::mc::remote(act->dst_proc));
args = bprintf("comm=%s [(%lu)%s (%s) -> (%lu)%s (%s)]", p,
src_proc->pid,
mc_model_checker->process().read_bytes(
&comms, sizeof(comms), remote(simcall_comm_waitany__get__comms(req)));
if (!xbt_dynar_is_empty(&comms)) {
- smx_synchro_t remote_sync;
+ smx_activity_t remote_sync;
read_element(mc_model_checker->process(),
&remote_sync, remote(simcall_comm_waitany__get__comms(req)), value,
sizeof(remote_sync));
bool request_is_enabled_by_idx(smx_simcall_t req, unsigned int idx)
{
- smx_synchro_t remote_act = nullptr;
+ smx_activity_t remote_act = nullptr;
switch (req->call) {
case SIMCALL_COMM_WAIT:
return comm->src_proc && comm->dst_proc;
}
-bool process_is_enabled(smx_process_t process)
+bool process_is_enabled(smx_actor_t process)
{
return simgrid::mc::request_is_enabled(&process->simcall);
}
{
std::string label;
- const smx_process_t issuer = MC_smx_simcall_get_issuer(req);
+ const smx_actor_t issuer = MC_smx_simcall_get_issuer(req);
switch (req->call) {
case SIMCALL_COMM_ISEND:
else
label = simgrid::xbt::string_printf("[(%lu)] WaitTimeout", issuer->pid);
} else {
- smx_synchro_t remote_act = simcall_comm_wait__get__comm(req);
+ smx_activity_t remote_act = simcall_comm_wait__get__comm(req);
simgrid::mc::Remote<simgrid::kernel::activity::Comm> temp_comm;
mc_model_checker->process().read(temp_comm, remote(
static_cast<simgrid::kernel::activity::Comm*>(remote_act)));
simgrid::kernel::activity::Comm* comm = temp_comm.getBuffer();
- smx_process_t src_proc = mc_model_checker->process().resolveProcess(
+ smx_actor_t src_proc = mc_model_checker->process().resolveProcess(
simgrid::mc::remote(comm->src_proc));
- smx_process_t dst_proc = mc_model_checker->process().resolveProcess(
+ smx_actor_t dst_proc = mc_model_checker->process().resolveProcess(
simgrid::mc::remote(comm->dst_proc));
if (issuer->host)
label = simgrid::xbt::string_printf("[(%lu)%s] Wait [(%lu)->(%lu)]",
}
case SIMCALL_COMM_TEST: {
- smx_synchro_t remote_act = simcall_comm_test__get__comm(req);
+ smx_activity_t remote_act = simcall_comm_test__get__comm(req);
simgrid::mc::Remote<simgrid::kernel::activity::Comm> temp_comm;
mc_model_checker->process().read(temp_comm, remote(
static_cast<simgrid::kernel::activity::Comm*>(remote_act)));