#include "mc_comm_pattern.h"
#include "mc_smx.h"
+using simgrid::mc::remote;
+
extern "C" {
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_state, mc,
case SIMCALL_COMM_WAIT:
state->internal_req = *req;
- MC_process_read_simple(&mc_model_checker->process(), &state->internal_comm ,
- simcall_comm_wait__get__comm(req), sizeof(state->internal_comm));
+ mc_model_checker->process().read_bytes(&state->internal_comm ,
+ sizeof(state->internal_comm), remote(simcall_comm_wait__get__comm(req)));
simcall_comm_wait__set__comm(&state->executed_req, &state->internal_comm);
simcall_comm_wait__set__comm(&state->internal_req, &state->internal_comm);
break;
case SIMCALL_COMM_TEST:
state->internal_req = *req;
- MC_process_read_simple(&mc_model_checker->process(), &state->internal_comm,
- simcall_comm_test__get__comm(req), sizeof(state->internal_comm));
+ mc_model_checker->process().read_bytes(&state->internal_comm,
+ sizeof(state->internal_comm), remote(simcall_comm_test__get__comm(req)));
simcall_comm_test__set__comm(&state->executed_req, &state->internal_comm);
simcall_comm_test__set__comm(&state->internal_req, &state->internal_comm);
break;
case SIMCALL_COMM_WAIT: {
smx_synchro_t remote_act = simcall_comm_wait__get__comm(&process->simcall);
s_smx_synchro_t act;
- MC_process_read_simple(&mc_model_checker->process(),
- &act, remote_act, sizeof(act));
+ mc_model_checker->process().read_bytes(
+ &act, sizeof(act), remote(remote_act));
if (act.comm.src_proc && act.comm.dst_proc) {
*value = 0;
} else {