- xbt_assert0(rdv, "No rendez-vous point defined for send");
-
- if (MC_IS_ENABLED) {
- /* the model-checker wants two separate requests */
- smx_action_t comm = SIMIX_req_comm_isend(rdv, task_size, rate,
- src_buff, src_buff_size, match_fun, data, 0);
- SIMIX_req_comm_wait(comm, timeout);
+ /* checking for infinite values */
+ xbt_assert(isfinite(task_size), "task_size is not finite!");
+ xbt_assert(isfinite(rate), "rate is not finite!");
+ xbt_assert(isfinite(timeout), "timeout is not finite!");
+
+ xbt_assert(rdv, "No rendez-vous point defined for send");
+
+ if (MC_is_active()) {
+ /* the model-checker wants two separate simcalls */
+ smx_action_t comm = simcall_comm_isend(rdv, task_size, rate,
+ src_buff, src_buff_size, match_fun, NULL, data, 0);
+ simcall_comm_wait(comm, timeout);