Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar
[simgrid.git] / src / simix / popping_accessors.h
1 /**********************************************************************/
2 /* File generated by src/simix/simcalls.py from src/simix/simcalls.in */
3 /*                                                                    */
4 /*                    DO NOT EVER CHANGE THIS FILE                    */
5 /*                                                                    */
6 /* change simcalls specification in src/simix/simcalls.in             */
7 /**********************************************************************/
8
9 /*
10  * Note that the name comes from http://en.wikipedia.org/wiki/Popping
11  * Indeed, the control flow is doing a strange dance in there.
12  *
13  * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :)
14  */
15
16 #include "src/simix/popping_private.h"
17 static inline smx_actor_t simcall_process_kill__get__process(smx_simcall_t simcall) {
18   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
19 }
20 static inline void simcall_process_kill__set__process(smx_simcall_t simcall, smx_actor_t arg) {
21     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
22 }
23
24 static inline int simcall_process_killall__get__reset_pid(smx_simcall_t simcall) {
25   return simgrid::simix::unmarshal<int>(simcall->args[0]);
26 }
27 static inline void simcall_process_killall__set__reset_pid(smx_simcall_t simcall, int arg) {
28     simgrid::simix::marshal<int>(simcall->args[0], arg);
29 }
30
31 static inline smx_actor_t simcall_process_cleanup__get__process(smx_simcall_t simcall) {
32   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
33 }
34 static inline void simcall_process_cleanup__set__process(smx_simcall_t simcall, smx_actor_t arg) {
35     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
36 }
37
38 static inline smx_actor_t simcall_process_suspend__get__process(smx_simcall_t simcall) {
39   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
40 }
41 static inline void simcall_process_suspend__set__process(smx_simcall_t simcall, smx_actor_t arg) {
42     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
43 }
44
45 static inline smx_actor_t simcall_process_resume__get__process(smx_simcall_t simcall) {
46   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
47 }
48 static inline void simcall_process_resume__set__process(smx_simcall_t simcall, smx_actor_t arg) {
49     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
50 }
51
52 static inline smx_actor_t simcall_process_set_host__get__process(smx_simcall_t simcall) {
53   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
54 }
55 static inline void simcall_process_set_host__set__process(smx_simcall_t simcall, smx_actor_t arg) {
56     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
57 }
58 static inline sg_host_t simcall_process_set_host__get__dest(smx_simcall_t simcall) {
59   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
60 }
61 static inline void simcall_process_set_host__set__dest(smx_simcall_t simcall, sg_host_t arg) {
62     simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
63 }
64
65 static inline smx_actor_t simcall_process_is_suspended__get__process(smx_simcall_t simcall) {
66   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
67 }
68 static inline void simcall_process_is_suspended__set__process(smx_simcall_t simcall, smx_actor_t arg) {
69     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
70 }
71 static inline int simcall_process_is_suspended__get__result(smx_simcall_t simcall){
72     return simgrid::simix::unmarshal<int>(simcall->result);
73 }
74 static inline void simcall_process_is_suspended__set__result(smx_simcall_t simcall, int result){
75     simgrid::simix::marshal<int>(simcall->result, result);
76 }
77
78 static inline smx_actor_t simcall_process_join__get__process(smx_simcall_t simcall) {
79   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
80 }
81 static inline void simcall_process_join__set__process(smx_simcall_t simcall, smx_actor_t arg) {
82     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
83 }
84 static inline double simcall_process_join__get__timeout(smx_simcall_t simcall) {
85   return simgrid::simix::unmarshal<double>(simcall->args[1]);
86 }
87 static inline void simcall_process_join__set__timeout(smx_simcall_t simcall, double arg) {
88     simgrid::simix::marshal<double>(simcall->args[1], arg);
89 }
90 static inline int simcall_process_join__get__result(smx_simcall_t simcall){
91     return simgrid::simix::unmarshal<int>(simcall->result);
92 }
93 static inline void simcall_process_join__set__result(smx_simcall_t simcall, int result){
94     simgrid::simix::marshal<int>(simcall->result, result);
95 }
96
97 static inline double simcall_process_sleep__get__duration(smx_simcall_t simcall) {
98   return simgrid::simix::unmarshal<double>(simcall->args[0]);
99 }
100 static inline void simcall_process_sleep__set__duration(smx_simcall_t simcall, double arg) {
101     simgrid::simix::marshal<double>(simcall->args[0], arg);
102 }
103 static inline int simcall_process_sleep__get__result(smx_simcall_t simcall){
104     return simgrid::simix::unmarshal<int>(simcall->result);
105 }
106 static inline void simcall_process_sleep__set__result(smx_simcall_t simcall, int result){
107     simgrid::simix::marshal<int>(simcall->result, result);
108 }
109
110 static inline const char* simcall_execution_start__get__name(smx_simcall_t simcall) {
111   return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
112 }
113 static inline void simcall_execution_start__set__name(smx_simcall_t simcall, const char* arg) {
114     simgrid::simix::marshal<const char*>(simcall->args[0], arg);
115 }
116 static inline double simcall_execution_start__get__flops_amount(smx_simcall_t simcall) {
117   return simgrid::simix::unmarshal<double>(simcall->args[1]);
118 }
119 static inline void simcall_execution_start__set__flops_amount(smx_simcall_t simcall, double arg) {
120     simgrid::simix::marshal<double>(simcall->args[1], arg);
121 }
122 static inline double simcall_execution_start__get__priority(smx_simcall_t simcall) {
123   return simgrid::simix::unmarshal<double>(simcall->args[2]);
124 }
125 static inline void simcall_execution_start__set__priority(smx_simcall_t simcall, double arg) {
126     simgrid::simix::marshal<double>(simcall->args[2], arg);
127 }
128 static inline double simcall_execution_start__get__bound(smx_simcall_t simcall) {
129   return simgrid::simix::unmarshal<double>(simcall->args[3]);
130 }
131 static inline void simcall_execution_start__set__bound(smx_simcall_t simcall, double arg) {
132     simgrid::simix::marshal<double>(simcall->args[3], arg);
133 }
134 static inline smx_activity_t simcall_execution_start__get__result(smx_simcall_t simcall){
135     return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
136 }
137 static inline void simcall_execution_start__set__result(smx_simcall_t simcall, smx_activity_t result){
138     simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
139 }
140
141 static inline const char* simcall_execution_parallel_start__get__name(smx_simcall_t simcall) {
142   return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
143 }
144 static inline void simcall_execution_parallel_start__set__name(smx_simcall_t simcall, const char* arg) {
145     simgrid::simix::marshal<const char*>(simcall->args[0], arg);
146 }
147 static inline int simcall_execution_parallel_start__get__host_nb(smx_simcall_t simcall) {
148   return simgrid::simix::unmarshal<int>(simcall->args[1]);
149 }
150 static inline void simcall_execution_parallel_start__set__host_nb(smx_simcall_t simcall, int arg) {
151     simgrid::simix::marshal<int>(simcall->args[1], arg);
152 }
153 static inline sg_host_t* simcall_execution_parallel_start__get__host_list(smx_simcall_t simcall) {
154   return simgrid::simix::unmarshal<sg_host_t*>(simcall->args[2]);
155 }
156 static inline void simcall_execution_parallel_start__set__host_list(smx_simcall_t simcall, sg_host_t* arg) {
157     simgrid::simix::marshal<sg_host_t*>(simcall->args[2], arg);
158 }
159 static inline double* simcall_execution_parallel_start__get__flops_amount(smx_simcall_t simcall) {
160   return simgrid::simix::unmarshal<double*>(simcall->args[3]);
161 }
162 static inline void simcall_execution_parallel_start__set__flops_amount(smx_simcall_t simcall, double* arg) {
163     simgrid::simix::marshal<double*>(simcall->args[3], arg);
164 }
165 static inline double* simcall_execution_parallel_start__get__bytes_amount(smx_simcall_t simcall) {
166   return simgrid::simix::unmarshal<double*>(simcall->args[4]);
167 }
168 static inline void simcall_execution_parallel_start__set__bytes_amount(smx_simcall_t simcall, double* arg) {
169     simgrid::simix::marshal<double*>(simcall->args[4], arg);
170 }
171 static inline double simcall_execution_parallel_start__get__amount(smx_simcall_t simcall) {
172   return simgrid::simix::unmarshal<double>(simcall->args[5]);
173 }
174 static inline void simcall_execution_parallel_start__set__amount(smx_simcall_t simcall, double arg) {
175     simgrid::simix::marshal<double>(simcall->args[5], arg);
176 }
177 static inline double simcall_execution_parallel_start__get__rate(smx_simcall_t simcall) {
178   return simgrid::simix::unmarshal<double>(simcall->args[6]);
179 }
180 static inline void simcall_execution_parallel_start__set__rate(smx_simcall_t simcall, double arg) {
181     simgrid::simix::marshal<double>(simcall->args[6], arg);
182 }
183 static inline double simcall_execution_parallel_start__get__timeout(smx_simcall_t simcall) {
184   return simgrid::simix::unmarshal<double>(simcall->args[7]);
185 }
186 static inline void simcall_execution_parallel_start__set__timeout(smx_simcall_t simcall, double arg) {
187     simgrid::simix::marshal<double>(simcall->args[7], arg);
188 }
189 static inline smx_activity_t simcall_execution_parallel_start__get__result(smx_simcall_t simcall){
190     return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
191 }
192 static inline void simcall_execution_parallel_start__set__result(smx_simcall_t simcall, smx_activity_t result){
193     simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
194 }
195
196 static inline smx_activity_t simcall_execution_cancel__get__execution(smx_simcall_t simcall) {
197   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
198 }
199 static inline void simcall_execution_cancel__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
200     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
201 }
202
203 static inline smx_activity_t simcall_execution_set_priority__get__execution(smx_simcall_t simcall) {
204   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
205 }
206 static inline void simcall_execution_set_priority__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
207     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
208 }
209 static inline double simcall_execution_set_priority__get__priority(smx_simcall_t simcall) {
210   return simgrid::simix::unmarshal<double>(simcall->args[1]);
211 }
212 static inline void simcall_execution_set_priority__set__priority(smx_simcall_t simcall, double arg) {
213     simgrid::simix::marshal<double>(simcall->args[1], arg);
214 }
215
216 static inline smx_activity_t simcall_execution_set_bound__get__execution(smx_simcall_t simcall) {
217   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
218 }
219 static inline void simcall_execution_set_bound__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
220     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
221 }
222 static inline double simcall_execution_set_bound__get__bound(smx_simcall_t simcall) {
223   return simgrid::simix::unmarshal<double>(simcall->args[1]);
224 }
225 static inline void simcall_execution_set_bound__set__bound(smx_simcall_t simcall, double arg) {
226     simgrid::simix::marshal<double>(simcall->args[1], arg);
227 }
228
229 static inline smx_activity_t simcall_execution_wait__get__execution(smx_simcall_t simcall) {
230   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
231 }
232 static inline void simcall_execution_wait__set__execution(smx_simcall_t simcall, smx_activity_t arg) {
233     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
234 }
235 static inline int simcall_execution_wait__get__result(smx_simcall_t simcall){
236     return simgrid::simix::unmarshal<int>(simcall->result);
237 }
238 static inline void simcall_execution_wait__set__result(smx_simcall_t simcall, int result){
239     simgrid::simix::marshal<int>(simcall->result, result);
240 }
241
242 static inline smx_actor_t simcall_process_on_exit__get__process(smx_simcall_t simcall) {
243   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
244 }
245 static inline void simcall_process_on_exit__set__process(smx_simcall_t simcall, smx_actor_t arg) {
246     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
247 }
248 static inline int_f_pvoid_pvoid_t simcall_process_on_exit__get__fun(smx_simcall_t simcall) {
249   return simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]);
250 }
251 static inline void simcall_process_on_exit__set__fun(smx_simcall_t simcall, int_f_pvoid_pvoid_t arg) {
252     simgrid::simix::marshal<int_f_pvoid_pvoid_t>(simcall->args[1], arg);
253 }
254 static inline void* simcall_process_on_exit__get__data(smx_simcall_t simcall) {
255   return simgrid::simix::unmarshal<void*>(simcall->args[2]);
256 }
257 static inline void simcall_process_on_exit__set__data(smx_simcall_t simcall, void* arg) {
258     simgrid::simix::marshal<void*>(simcall->args[2], arg);
259 }
260
261 static inline smx_actor_t simcall_process_auto_restart_set__get__process(smx_simcall_t simcall) {
262   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
263 }
264 static inline void simcall_process_auto_restart_set__set__process(smx_simcall_t simcall, smx_actor_t arg) {
265     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
266 }
267 static inline int simcall_process_auto_restart_set__get__auto_restart(smx_simcall_t simcall) {
268   return simgrid::simix::unmarshal<int>(simcall->args[1]);
269 }
270 static inline void simcall_process_auto_restart_set__set__auto_restart(smx_simcall_t simcall, int arg) {
271     simgrid::simix::marshal<int>(simcall->args[1], arg);
272 }
273
274 static inline smx_actor_t simcall_process_restart__get__process(smx_simcall_t simcall) {
275   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
276 }
277 static inline void simcall_process_restart__set__process(smx_simcall_t simcall, smx_actor_t arg) {
278     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
279 }
280 static inline smx_actor_t simcall_process_restart__get__result(smx_simcall_t simcall){
281     return simgrid::simix::unmarshal<smx_actor_t>(simcall->result);
282 }
283 static inline void simcall_process_restart__set__result(smx_simcall_t simcall, smx_actor_t result){
284     simgrid::simix::marshal<smx_actor_t>(simcall->result, result);
285 }
286
287 static inline const char* simcall_mbox_create__get__name(smx_simcall_t simcall) {
288   return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
289 }
290 static inline void simcall_mbox_create__set__name(smx_simcall_t simcall, const char* arg) {
291     simgrid::simix::marshal<const char*>(simcall->args[0], arg);
292 }
293 static inline smx_mailbox_t simcall_mbox_create__get__result(smx_simcall_t simcall){
294     return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->result);
295 }
296 static inline void simcall_mbox_create__set__result(smx_simcall_t simcall, smx_mailbox_t result){
297     simgrid::simix::marshal<smx_mailbox_t>(simcall->result, result);
298 }
299
300 static inline smx_mailbox_t simcall_mbox_set_receiver__get__mbox(smx_simcall_t simcall) {
301   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
302 }
303 static inline void simcall_mbox_set_receiver__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
304     simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
305 }
306 static inline smx_actor_t simcall_mbox_set_receiver__get__receiver(smx_simcall_t simcall) {
307   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[1]);
308 }
309 static inline void simcall_mbox_set_receiver__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
310     simgrid::simix::marshal<smx_actor_t>(simcall->args[1], arg);
311 }
312
313 static inline smx_mailbox_t simcall_comm_iprobe__get__mbox(smx_simcall_t simcall) {
314   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]);
315 }
316 static inline void simcall_comm_iprobe__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
317     simgrid::simix::marshal<smx_mailbox_t>(simcall->args[0], arg);
318 }
319 static inline int simcall_comm_iprobe__get__type(smx_simcall_t simcall) {
320   return simgrid::simix::unmarshal<int>(simcall->args[1]);
321 }
322 static inline void simcall_comm_iprobe__set__type(smx_simcall_t simcall, int arg) {
323     simgrid::simix::marshal<int>(simcall->args[1], arg);
324 }
325 static inline int simcall_comm_iprobe__get__src(smx_simcall_t simcall) {
326   return simgrid::simix::unmarshal<int>(simcall->args[2]);
327 }
328 static inline void simcall_comm_iprobe__set__src(smx_simcall_t simcall, int arg) {
329     simgrid::simix::marshal<int>(simcall->args[2], arg);
330 }
331 static inline int simcall_comm_iprobe__get__tag(smx_simcall_t simcall) {
332   return simgrid::simix::unmarshal<int>(simcall->args[3]);
333 }
334 static inline void simcall_comm_iprobe__set__tag(smx_simcall_t simcall, int arg) {
335     simgrid::simix::marshal<int>(simcall->args[3], arg);
336 }
337 static inline simix_match_func_t simcall_comm_iprobe__get__match_fun(smx_simcall_t simcall) {
338   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
339 }
340 static inline void simcall_comm_iprobe__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
341     simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
342 }
343 static inline void* simcall_comm_iprobe__get__data(smx_simcall_t simcall) {
344   return simgrid::simix::unmarshal<void*>(simcall->args[5]);
345 }
346 static inline void simcall_comm_iprobe__set__data(smx_simcall_t simcall, void* arg) {
347     simgrid::simix::marshal<void*>(simcall->args[5], arg);
348 }
349 static inline smx_activity_t simcall_comm_iprobe__get__result(smx_simcall_t simcall){
350     return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
351 }
352 static inline void simcall_comm_iprobe__set__result(smx_simcall_t simcall, smx_activity_t result){
353     simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
354 }
355
356 static inline smx_actor_t simcall_comm_send__get__sender(smx_simcall_t simcall) {
357   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
358 }
359 static inline void simcall_comm_send__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
360     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
361 }
362 static inline smx_mailbox_t simcall_comm_send__get__mbox(smx_simcall_t simcall) {
363   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
364 }
365 static inline void simcall_comm_send__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
366     simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
367 }
368 static inline double simcall_comm_send__get__task_size(smx_simcall_t simcall) {
369   return simgrid::simix::unmarshal<double>(simcall->args[2]);
370 }
371 static inline void simcall_comm_send__set__task_size(smx_simcall_t simcall, double arg) {
372     simgrid::simix::marshal<double>(simcall->args[2], arg);
373 }
374 static inline double simcall_comm_send__get__rate(smx_simcall_t simcall) {
375   return simgrid::simix::unmarshal<double>(simcall->args[3]);
376 }
377 static inline void simcall_comm_send__set__rate(smx_simcall_t simcall, double arg) {
378     simgrid::simix::marshal<double>(simcall->args[3], arg);
379 }
380 static inline void* simcall_comm_send__get__src_buff(smx_simcall_t simcall) {
381   return simgrid::simix::unmarshal<void*>(simcall->args[4]);
382 }
383 static inline void simcall_comm_send__set__src_buff(smx_simcall_t simcall, void* arg) {
384     simgrid::simix::marshal<void*>(simcall->args[4], arg);
385 }
386 static inline size_t simcall_comm_send__get__src_buff_size(smx_simcall_t simcall) {
387   return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
388 }
389 static inline void simcall_comm_send__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
390     simgrid::simix::marshal<size_t>(simcall->args[5], arg);
391 }
392 static inline simix_match_func_t simcall_comm_send__get__match_fun(smx_simcall_t simcall) {
393   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
394 }
395 static inline void simcall_comm_send__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
396     simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
397 }
398 static inline simix_copy_data_func_t simcall_comm_send__get__copy_data_fun(smx_simcall_t simcall) {
399   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]);
400 }
401 static inline void simcall_comm_send__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
402     simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[7], arg);
403 }
404 static inline void* simcall_comm_send__get__data(smx_simcall_t simcall) {
405   return simgrid::simix::unmarshal<void*>(simcall->args[8]);
406 }
407 static inline void simcall_comm_send__set__data(smx_simcall_t simcall, void* arg) {
408     simgrid::simix::marshal<void*>(simcall->args[8], arg);
409 }
410 static inline double simcall_comm_send__get__timeout(smx_simcall_t simcall) {
411   return simgrid::simix::unmarshal<double>(simcall->args[9]);
412 }
413 static inline void simcall_comm_send__set__timeout(smx_simcall_t simcall, double arg) {
414     simgrid::simix::marshal<double>(simcall->args[9], arg);
415 }
416
417 static inline smx_actor_t simcall_comm_isend__get__sender(smx_simcall_t simcall) {
418   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
419 }
420 static inline void simcall_comm_isend__set__sender(smx_simcall_t simcall, smx_actor_t arg) {
421     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
422 }
423 static inline smx_mailbox_t simcall_comm_isend__get__mbox(smx_simcall_t simcall) {
424   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
425 }
426 static inline void simcall_comm_isend__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
427     simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
428 }
429 static inline double simcall_comm_isend__get__task_size(smx_simcall_t simcall) {
430   return simgrid::simix::unmarshal<double>(simcall->args[2]);
431 }
432 static inline void simcall_comm_isend__set__task_size(smx_simcall_t simcall, double arg) {
433     simgrid::simix::marshal<double>(simcall->args[2], arg);
434 }
435 static inline double simcall_comm_isend__get__rate(smx_simcall_t simcall) {
436   return simgrid::simix::unmarshal<double>(simcall->args[3]);
437 }
438 static inline void simcall_comm_isend__set__rate(smx_simcall_t simcall, double arg) {
439     simgrid::simix::marshal<double>(simcall->args[3], arg);
440 }
441 static inline void* simcall_comm_isend__get__src_buff(smx_simcall_t simcall) {
442   return simgrid::simix::unmarshal<void*>(simcall->args[4]);
443 }
444 static inline void simcall_comm_isend__set__src_buff(smx_simcall_t simcall, void* arg) {
445     simgrid::simix::marshal<void*>(simcall->args[4], arg);
446 }
447 static inline size_t simcall_comm_isend__get__src_buff_size(smx_simcall_t simcall) {
448   return simgrid::simix::unmarshal<size_t>(simcall->args[5]);
449 }
450 static inline void simcall_comm_isend__set__src_buff_size(smx_simcall_t simcall, size_t arg) {
451     simgrid::simix::marshal<size_t>(simcall->args[5], arg);
452 }
453 static inline simix_match_func_t simcall_comm_isend__get__match_fun(smx_simcall_t simcall) {
454   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]);
455 }
456 static inline void simcall_comm_isend__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
457     simgrid::simix::marshal<simix_match_func_t>(simcall->args[6], arg);
458 }
459 static inline simix_clean_func_t simcall_comm_isend__get__clean_fun(smx_simcall_t simcall) {
460   return simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]);
461 }
462 static inline void simcall_comm_isend__set__clean_fun(smx_simcall_t simcall, simix_clean_func_t arg) {
463     simgrid::simix::marshal<simix_clean_func_t>(simcall->args[7], arg);
464 }
465 static inline simix_copy_data_func_t simcall_comm_isend__get__copy_data_fun(smx_simcall_t simcall) {
466   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]);
467 }
468 static inline void simcall_comm_isend__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
469     simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[8], arg);
470 }
471 static inline void* simcall_comm_isend__get__data(smx_simcall_t simcall) {
472   return simgrid::simix::unmarshal<void*>(simcall->args[9]);
473 }
474 static inline void simcall_comm_isend__set__data(smx_simcall_t simcall, void* arg) {
475     simgrid::simix::marshal<void*>(simcall->args[9], arg);
476 }
477 static inline int simcall_comm_isend__get__detached(smx_simcall_t simcall) {
478   return simgrid::simix::unmarshal<int>(simcall->args[10]);
479 }
480 static inline void simcall_comm_isend__set__detached(smx_simcall_t simcall, int arg) {
481     simgrid::simix::marshal<int>(simcall->args[10], arg);
482 }
483 static inline smx_activity_t simcall_comm_isend__get__result(smx_simcall_t simcall){
484     return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
485 }
486 static inline void simcall_comm_isend__set__result(smx_simcall_t simcall, smx_activity_t result){
487     simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
488 }
489
490 static inline smx_actor_t simcall_comm_recv__get__receiver(smx_simcall_t simcall) {
491   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
492 }
493 static inline void simcall_comm_recv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
494     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
495 }
496 static inline smx_mailbox_t simcall_comm_recv__get__mbox(smx_simcall_t simcall) {
497   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
498 }
499 static inline void simcall_comm_recv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
500     simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
501 }
502 static inline void* simcall_comm_recv__get__dst_buff(smx_simcall_t simcall) {
503   return simgrid::simix::unmarshal<void*>(simcall->args[2]);
504 }
505 static inline void simcall_comm_recv__set__dst_buff(smx_simcall_t simcall, void* arg) {
506     simgrid::simix::marshal<void*>(simcall->args[2], arg);
507 }
508 static inline size_t* simcall_comm_recv__get__dst_buff_size(smx_simcall_t simcall) {
509   return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
510 }
511 static inline void simcall_comm_recv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
512     simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
513 }
514 static inline simix_match_func_t simcall_comm_recv__get__match_fun(smx_simcall_t simcall) {
515   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
516 }
517 static inline void simcall_comm_recv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
518     simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
519 }
520 static inline simix_copy_data_func_t simcall_comm_recv__get__copy_data_fun(smx_simcall_t simcall) {
521   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
522 }
523 static inline void simcall_comm_recv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
524     simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
525 }
526 static inline void* simcall_comm_recv__get__data(smx_simcall_t simcall) {
527   return simgrid::simix::unmarshal<void*>(simcall->args[6]);
528 }
529 static inline void simcall_comm_recv__set__data(smx_simcall_t simcall, void* arg) {
530     simgrid::simix::marshal<void*>(simcall->args[6], arg);
531 }
532 static inline double simcall_comm_recv__get__timeout(smx_simcall_t simcall) {
533   return simgrid::simix::unmarshal<double>(simcall->args[7]);
534 }
535 static inline void simcall_comm_recv__set__timeout(smx_simcall_t simcall, double arg) {
536     simgrid::simix::marshal<double>(simcall->args[7], arg);
537 }
538 static inline double simcall_comm_recv__get__rate(smx_simcall_t simcall) {
539   return simgrid::simix::unmarshal<double>(simcall->args[8]);
540 }
541 static inline void simcall_comm_recv__set__rate(smx_simcall_t simcall, double arg) {
542     simgrid::simix::marshal<double>(simcall->args[8], arg);
543 }
544
545 static inline smx_actor_t simcall_comm_irecv__get__receiver(smx_simcall_t simcall) {
546   return simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]);
547 }
548 static inline void simcall_comm_irecv__set__receiver(smx_simcall_t simcall, smx_actor_t arg) {
549     simgrid::simix::marshal<smx_actor_t>(simcall->args[0], arg);
550 }
551 static inline smx_mailbox_t simcall_comm_irecv__get__mbox(smx_simcall_t simcall) {
552   return simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]);
553 }
554 static inline void simcall_comm_irecv__set__mbox(smx_simcall_t simcall, smx_mailbox_t arg) {
555     simgrid::simix::marshal<smx_mailbox_t>(simcall->args[1], arg);
556 }
557 static inline void* simcall_comm_irecv__get__dst_buff(smx_simcall_t simcall) {
558   return simgrid::simix::unmarshal<void*>(simcall->args[2]);
559 }
560 static inline void simcall_comm_irecv__set__dst_buff(smx_simcall_t simcall, void* arg) {
561     simgrid::simix::marshal<void*>(simcall->args[2], arg);
562 }
563 static inline size_t* simcall_comm_irecv__get__dst_buff_size(smx_simcall_t simcall) {
564   return simgrid::simix::unmarshal<size_t*>(simcall->args[3]);
565 }
566 static inline void simcall_comm_irecv__set__dst_buff_size(smx_simcall_t simcall, size_t* arg) {
567     simgrid::simix::marshal<size_t*>(simcall->args[3], arg);
568 }
569 static inline simix_match_func_t simcall_comm_irecv__get__match_fun(smx_simcall_t simcall) {
570   return simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]);
571 }
572 static inline void simcall_comm_irecv__set__match_fun(smx_simcall_t simcall, simix_match_func_t arg) {
573     simgrid::simix::marshal<simix_match_func_t>(simcall->args[4], arg);
574 }
575 static inline simix_copy_data_func_t simcall_comm_irecv__get__copy_data_fun(smx_simcall_t simcall) {
576   return simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]);
577 }
578 static inline void simcall_comm_irecv__set__copy_data_fun(smx_simcall_t simcall, simix_copy_data_func_t arg) {
579     simgrid::simix::marshal<simix_copy_data_func_t>(simcall->args[5], arg);
580 }
581 static inline void* simcall_comm_irecv__get__data(smx_simcall_t simcall) {
582   return simgrid::simix::unmarshal<void*>(simcall->args[6]);
583 }
584 static inline void simcall_comm_irecv__set__data(smx_simcall_t simcall, void* arg) {
585     simgrid::simix::marshal<void*>(simcall->args[6], arg);
586 }
587 static inline double simcall_comm_irecv__get__rate(smx_simcall_t simcall) {
588   return simgrid::simix::unmarshal<double>(simcall->args[7]);
589 }
590 static inline void simcall_comm_irecv__set__rate(smx_simcall_t simcall, double arg) {
591     simgrid::simix::marshal<double>(simcall->args[7], arg);
592 }
593 static inline smx_activity_t simcall_comm_irecv__get__result(smx_simcall_t simcall){
594     return simgrid::simix::unmarshal<smx_activity_t>(simcall->result);
595 }
596 static inline void simcall_comm_irecv__set__result(smx_simcall_t simcall, smx_activity_t result){
597     simgrid::simix::marshal<smx_activity_t>(simcall->result, result);
598 }
599
600 static inline xbt_dynar_t simcall_comm_waitany__get__comms(smx_simcall_t simcall) {
601   return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]);
602 }
603 static inline void simcall_comm_waitany__set__comms(smx_simcall_t simcall, xbt_dynar_t arg) {
604     simgrid::simix::marshal<xbt_dynar_t>(simcall->args[0], arg);
605 }
606 static inline double simcall_comm_waitany__get__timeout(smx_simcall_t simcall) {
607   return simgrid::simix::unmarshal<double>(simcall->args[1]);
608 }
609 static inline void simcall_comm_waitany__set__timeout(smx_simcall_t simcall, double arg) {
610     simgrid::simix::marshal<double>(simcall->args[1], arg);
611 }
612 static inline int simcall_comm_waitany__get__result(smx_simcall_t simcall){
613     return simgrid::simix::unmarshal<int>(simcall->result);
614 }
615 static inline void simcall_comm_waitany__set__result(smx_simcall_t simcall, int result){
616     simgrid::simix::marshal<int>(simcall->result, result);
617 }
618
619 static inline smx_activity_t simcall_comm_wait__get__comm(smx_simcall_t simcall) {
620   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
621 }
622 static inline void simcall_comm_wait__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
623     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
624 }
625 static inline double simcall_comm_wait__get__timeout(smx_simcall_t simcall) {
626   return simgrid::simix::unmarshal<double>(simcall->args[1]);
627 }
628 static inline void simcall_comm_wait__set__timeout(smx_simcall_t simcall, double arg) {
629     simgrid::simix::marshal<double>(simcall->args[1], arg);
630 }
631
632 static inline smx_activity_t simcall_comm_test__get__comm(smx_simcall_t simcall) {
633   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
634 }
635 static inline void simcall_comm_test__set__comm(smx_simcall_t simcall, smx_activity_t arg) {
636     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
637 }
638 static inline int simcall_comm_test__get__result(smx_simcall_t simcall){
639     return simgrid::simix::unmarshal<int>(simcall->result);
640 }
641 static inline void simcall_comm_test__set__result(smx_simcall_t simcall, int result){
642     simgrid::simix::marshal<int>(simcall->result, result);
643 }
644
645 static inline smx_activity_t* simcall_comm_testany__get__comms(smx_simcall_t simcall) {
646   return simgrid::simix::unmarshal<smx_activity_t*>(simcall->args[0]);
647 }
648 static inline void simcall_comm_testany__set__comms(smx_simcall_t simcall, smx_activity_t* arg) {
649     simgrid::simix::marshal<smx_activity_t*>(simcall->args[0], arg);
650 }
651 static inline size_t simcall_comm_testany__get__count(smx_simcall_t simcall) {
652   return simgrid::simix::unmarshal<size_t>(simcall->args[1]);
653 }
654 static inline void simcall_comm_testany__set__count(smx_simcall_t simcall, size_t arg) {
655     simgrid::simix::marshal<size_t>(simcall->args[1], arg);
656 }
657 static inline int simcall_comm_testany__get__result(smx_simcall_t simcall){
658     return simgrid::simix::unmarshal<int>(simcall->result);
659 }
660 static inline void simcall_comm_testany__set__result(smx_simcall_t simcall, int result){
661     simgrid::simix::marshal<int>(simcall->result, result);
662 }
663
664 static inline smx_mutex_t simcall_mutex_init__get__result(smx_simcall_t simcall){
665     return simgrid::simix::unmarshal<smx_mutex_t>(simcall->result);
666 }
667 static inline void simcall_mutex_init__set__result(smx_simcall_t simcall, smx_mutex_t result){
668     simgrid::simix::marshal<smx_mutex_t>(simcall->result, result);
669 }
670
671 static inline smx_mutex_t simcall_mutex_lock__get__mutex(smx_simcall_t simcall) {
672   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
673 }
674 static inline void simcall_mutex_lock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
675     simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
676 }
677
678 static inline smx_mutex_t simcall_mutex_trylock__get__mutex(smx_simcall_t simcall) {
679   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
680 }
681 static inline void simcall_mutex_trylock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
682     simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
683 }
684 static inline int simcall_mutex_trylock__get__result(smx_simcall_t simcall){
685     return simgrid::simix::unmarshal<int>(simcall->result);
686 }
687 static inline void simcall_mutex_trylock__set__result(smx_simcall_t simcall, int result){
688     simgrid::simix::marshal<int>(simcall->result, result);
689 }
690
691 static inline smx_mutex_t simcall_mutex_unlock__get__mutex(smx_simcall_t simcall) {
692   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]);
693 }
694 static inline void simcall_mutex_unlock__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
695     simgrid::simix::marshal<smx_mutex_t>(simcall->args[0], arg);
696 }
697
698 static inline smx_cond_t simcall_cond_init__get__result(smx_simcall_t simcall){
699     return simgrid::simix::unmarshal<smx_cond_t>(simcall->result);
700 }
701 static inline void simcall_cond_init__set__result(smx_simcall_t simcall, smx_cond_t result){
702     simgrid::simix::marshal<smx_cond_t>(simcall->result, result);
703 }
704
705 static inline smx_cond_t simcall_cond_signal__get__cond(smx_simcall_t simcall) {
706   return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
707 }
708 static inline void simcall_cond_signal__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
709     simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
710 }
711
712 static inline smx_cond_t simcall_cond_wait__get__cond(smx_simcall_t simcall) {
713   return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
714 }
715 static inline void simcall_cond_wait__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
716     simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
717 }
718 static inline smx_mutex_t simcall_cond_wait__get__mutex(smx_simcall_t simcall) {
719   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
720 }
721 static inline void simcall_cond_wait__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
722     simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
723 }
724
725 static inline smx_cond_t simcall_cond_wait_timeout__get__cond(smx_simcall_t simcall) {
726   return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
727 }
728 static inline void simcall_cond_wait_timeout__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
729     simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
730 }
731 static inline smx_mutex_t simcall_cond_wait_timeout__get__mutex(smx_simcall_t simcall) {
732   return simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]);
733 }
734 static inline void simcall_cond_wait_timeout__set__mutex(smx_simcall_t simcall, smx_mutex_t arg) {
735     simgrid::simix::marshal<smx_mutex_t>(simcall->args[1], arg);
736 }
737 static inline double simcall_cond_wait_timeout__get__timeout(smx_simcall_t simcall) {
738   return simgrid::simix::unmarshal<double>(simcall->args[2]);
739 }
740 static inline void simcall_cond_wait_timeout__set__timeout(smx_simcall_t simcall, double arg) {
741     simgrid::simix::marshal<double>(simcall->args[2], arg);
742 }
743
744 static inline smx_cond_t simcall_cond_broadcast__get__cond(smx_simcall_t simcall) {
745   return simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]);
746 }
747 static inline void simcall_cond_broadcast__set__cond(smx_simcall_t simcall, smx_cond_t arg) {
748     simgrid::simix::marshal<smx_cond_t>(simcall->args[0], arg);
749 }
750
751 static inline unsigned int simcall_sem_init__get__capacity(smx_simcall_t simcall) {
752   return simgrid::simix::unmarshal<unsigned int>(simcall->args[0]);
753 }
754 static inline void simcall_sem_init__set__capacity(smx_simcall_t simcall, unsigned int arg) {
755     simgrid::simix::marshal<unsigned int>(simcall->args[0], arg);
756 }
757 static inline smx_sem_t simcall_sem_init__get__result(smx_simcall_t simcall){
758     return simgrid::simix::unmarshal<smx_sem_t>(simcall->result);
759 }
760 static inline void simcall_sem_init__set__result(smx_simcall_t simcall, smx_sem_t result){
761     simgrid::simix::marshal<smx_sem_t>(simcall->result, result);
762 }
763
764 static inline smx_sem_t simcall_sem_release__get__sem(smx_simcall_t simcall) {
765   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
766 }
767 static inline void simcall_sem_release__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
768     simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
769 }
770
771 static inline smx_sem_t simcall_sem_would_block__get__sem(smx_simcall_t simcall) {
772   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
773 }
774 static inline void simcall_sem_would_block__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
775     simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
776 }
777 static inline int simcall_sem_would_block__get__result(smx_simcall_t simcall){
778     return simgrid::simix::unmarshal<int>(simcall->result);
779 }
780 static inline void simcall_sem_would_block__set__result(smx_simcall_t simcall, int result){
781     simgrid::simix::marshal<int>(simcall->result, result);
782 }
783
784 static inline smx_sem_t simcall_sem_acquire__get__sem(smx_simcall_t simcall) {
785   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
786 }
787 static inline void simcall_sem_acquire__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
788     simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
789 }
790
791 static inline smx_sem_t simcall_sem_acquire_timeout__get__sem(smx_simcall_t simcall) {
792   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
793 }
794 static inline void simcall_sem_acquire_timeout__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
795     simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
796 }
797 static inline double simcall_sem_acquire_timeout__get__timeout(smx_simcall_t simcall) {
798   return simgrid::simix::unmarshal<double>(simcall->args[1]);
799 }
800 static inline void simcall_sem_acquire_timeout__set__timeout(smx_simcall_t simcall, double arg) {
801     simgrid::simix::marshal<double>(simcall->args[1], arg);
802 }
803
804 static inline smx_sem_t simcall_sem_get_capacity__get__sem(smx_simcall_t simcall) {
805   return simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]);
806 }
807 static inline void simcall_sem_get_capacity__set__sem(smx_simcall_t simcall, smx_sem_t arg) {
808     simgrid::simix::marshal<smx_sem_t>(simcall->args[0], arg);
809 }
810 static inline int simcall_sem_get_capacity__get__result(smx_simcall_t simcall){
811     return simgrid::simix::unmarshal<int>(simcall->result);
812 }
813 static inline void simcall_sem_get_capacity__set__result(smx_simcall_t simcall, int result){
814     simgrid::simix::marshal<int>(simcall->result, result);
815 }
816
817 static inline smx_file_t simcall_file_read__get__fd(smx_simcall_t simcall) {
818   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
819 }
820 static inline void simcall_file_read__set__fd(smx_simcall_t simcall, smx_file_t arg) {
821     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
822 }
823 static inline sg_size_t simcall_file_read__get__size(smx_simcall_t simcall) {
824   return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
825 }
826 static inline void simcall_file_read__set__size(smx_simcall_t simcall, sg_size_t arg) {
827     simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
828 }
829 static inline sg_host_t simcall_file_read__get__host(smx_simcall_t simcall) {
830   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
831 }
832 static inline void simcall_file_read__set__host(smx_simcall_t simcall, sg_host_t arg) {
833     simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
834 }
835 static inline sg_size_t simcall_file_read__get__result(smx_simcall_t simcall){
836     return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
837 }
838 static inline void simcall_file_read__set__result(smx_simcall_t simcall, sg_size_t result){
839     simgrid::simix::marshal<sg_size_t>(simcall->result, result);
840 }
841
842 static inline smx_file_t simcall_file_write__get__fd(smx_simcall_t simcall) {
843   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
844 }
845 static inline void simcall_file_write__set__fd(smx_simcall_t simcall, smx_file_t arg) {
846     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
847 }
848 static inline sg_size_t simcall_file_write__get__size(smx_simcall_t simcall) {
849   return simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]);
850 }
851 static inline void simcall_file_write__set__size(smx_simcall_t simcall, sg_size_t arg) {
852     simgrid::simix::marshal<sg_size_t>(simcall->args[1], arg);
853 }
854 static inline sg_host_t simcall_file_write__get__host(smx_simcall_t simcall) {
855   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]);
856 }
857 static inline void simcall_file_write__set__host(smx_simcall_t simcall, sg_host_t arg) {
858     simgrid::simix::marshal<sg_host_t>(simcall->args[2], arg);
859 }
860 static inline sg_size_t simcall_file_write__get__result(smx_simcall_t simcall){
861     return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
862 }
863 static inline void simcall_file_write__set__result(smx_simcall_t simcall, sg_size_t result){
864     simgrid::simix::marshal<sg_size_t>(simcall->result, result);
865 }
866
867 static inline const char* simcall_file_open__get__fullpath(smx_simcall_t simcall) {
868   return simgrid::simix::unmarshal<const char*>(simcall->args[0]);
869 }
870 static inline void simcall_file_open__set__fullpath(smx_simcall_t simcall, const char* arg) {
871     simgrid::simix::marshal<const char*>(simcall->args[0], arg);
872 }
873 static inline sg_host_t simcall_file_open__get__host(smx_simcall_t simcall) {
874   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
875 }
876 static inline void simcall_file_open__set__host(smx_simcall_t simcall, sg_host_t arg) {
877     simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
878 }
879 static inline smx_file_t simcall_file_open__get__result(smx_simcall_t simcall){
880     return simgrid::simix::unmarshal<smx_file_t>(simcall->result);
881 }
882 static inline void simcall_file_open__set__result(smx_simcall_t simcall, smx_file_t result){
883     simgrid::simix::marshal<smx_file_t>(simcall->result, result);
884 }
885
886 static inline smx_file_t simcall_file_close__get__fd(smx_simcall_t simcall) {
887   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
888 }
889 static inline void simcall_file_close__set__fd(smx_simcall_t simcall, smx_file_t arg) {
890     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
891 }
892 static inline sg_host_t simcall_file_close__get__host(smx_simcall_t simcall) {
893   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
894 }
895 static inline void simcall_file_close__set__host(smx_simcall_t simcall, sg_host_t arg) {
896     simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
897 }
898 static inline int simcall_file_close__get__result(smx_simcall_t simcall){
899     return simgrid::simix::unmarshal<int>(simcall->result);
900 }
901 static inline void simcall_file_close__set__result(smx_simcall_t simcall, int result){
902     simgrid::simix::marshal<int>(simcall->result, result);
903 }
904
905 static inline smx_file_t simcall_file_unlink__get__fd(smx_simcall_t simcall) {
906   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
907 }
908 static inline void simcall_file_unlink__set__fd(smx_simcall_t simcall, smx_file_t arg) {
909     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
910 }
911 static inline sg_host_t simcall_file_unlink__get__host(smx_simcall_t simcall) {
912   return simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]);
913 }
914 static inline void simcall_file_unlink__set__host(smx_simcall_t simcall, sg_host_t arg) {
915     simgrid::simix::marshal<sg_host_t>(simcall->args[1], arg);
916 }
917 static inline int simcall_file_unlink__get__result(smx_simcall_t simcall){
918     return simgrid::simix::unmarshal<int>(simcall->result);
919 }
920 static inline void simcall_file_unlink__set__result(smx_simcall_t simcall, int result){
921     simgrid::simix::marshal<int>(simcall->result, result);
922 }
923
924 static inline smx_file_t simcall_file_get_size__get__fd(smx_simcall_t simcall) {
925   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
926 }
927 static inline void simcall_file_get_size__set__fd(smx_simcall_t simcall, smx_file_t arg) {
928     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
929 }
930 static inline sg_size_t simcall_file_get_size__get__result(smx_simcall_t simcall){
931     return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
932 }
933 static inline void simcall_file_get_size__set__result(smx_simcall_t simcall, sg_size_t result){
934     simgrid::simix::marshal<sg_size_t>(simcall->result, result);
935 }
936
937 static inline smx_file_t simcall_file_tell__get__fd(smx_simcall_t simcall) {
938   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
939 }
940 static inline void simcall_file_tell__set__fd(smx_simcall_t simcall, smx_file_t arg) {
941     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
942 }
943 static inline sg_size_t simcall_file_tell__get__result(smx_simcall_t simcall){
944     return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
945 }
946 static inline void simcall_file_tell__set__result(smx_simcall_t simcall, sg_size_t result){
947     simgrid::simix::marshal<sg_size_t>(simcall->result, result);
948 }
949
950 static inline smx_file_t simcall_file_seek__get__fd(smx_simcall_t simcall) {
951   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
952 }
953 static inline void simcall_file_seek__set__fd(smx_simcall_t simcall, smx_file_t arg) {
954     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
955 }
956 static inline sg_offset_t simcall_file_seek__get__offset(smx_simcall_t simcall) {
957   return simgrid::simix::unmarshal<sg_offset_t>(simcall->args[1]);
958 }
959 static inline void simcall_file_seek__set__offset(smx_simcall_t simcall, sg_offset_t arg) {
960     simgrid::simix::marshal<sg_offset_t>(simcall->args[1], arg);
961 }
962 static inline int simcall_file_seek__get__origin(smx_simcall_t simcall) {
963   return simgrid::simix::unmarshal<int>(simcall->args[2]);
964 }
965 static inline void simcall_file_seek__set__origin(smx_simcall_t simcall, int arg) {
966     simgrid::simix::marshal<int>(simcall->args[2], arg);
967 }
968 static inline int simcall_file_seek__get__result(smx_simcall_t simcall){
969     return simgrid::simix::unmarshal<int>(simcall->result);
970 }
971 static inline void simcall_file_seek__set__result(smx_simcall_t simcall, int result){
972     simgrid::simix::marshal<int>(simcall->result, result);
973 }
974
975 static inline smx_file_t simcall_file_get_info__get__fd(smx_simcall_t simcall) {
976   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
977 }
978 static inline void simcall_file_get_info__set__fd(smx_simcall_t simcall, smx_file_t arg) {
979     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
980 }
981 static inline xbt_dynar_t simcall_file_get_info__get__result(smx_simcall_t simcall){
982     return simgrid::simix::unmarshal<xbt_dynar_t>(simcall->result);
983 }
984 static inline void simcall_file_get_info__set__result(smx_simcall_t simcall, xbt_dynar_t result){
985     simgrid::simix::marshal<xbt_dynar_t>(simcall->result, result);
986 }
987
988 static inline smx_file_t simcall_file_move__get__fd(smx_simcall_t simcall) {
989   return simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]);
990 }
991 static inline void simcall_file_move__set__fd(smx_simcall_t simcall, smx_file_t arg) {
992     simgrid::simix::marshal<smx_file_t>(simcall->args[0], arg);
993 }
994 static inline const char* simcall_file_move__get__fullpath(smx_simcall_t simcall) {
995   return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
996 }
997 static inline void simcall_file_move__set__fullpath(smx_simcall_t simcall, const char* arg) {
998     simgrid::simix::marshal<const char*>(simcall->args[1], arg);
999 }
1000 static inline int simcall_file_move__get__result(smx_simcall_t simcall){
1001     return simgrid::simix::unmarshal<int>(simcall->result);
1002 }
1003 static inline void simcall_file_move__set__result(smx_simcall_t simcall, int result){
1004     simgrid::simix::marshal<int>(simcall->result, result);
1005 }
1006
1007 static inline smx_storage_t simcall_storage_get_free_size__get__storage(smx_simcall_t simcall) {
1008   return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1009 }
1010 static inline void simcall_storage_get_free_size__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1011     simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1012 }
1013 static inline sg_size_t simcall_storage_get_free_size__get__result(smx_simcall_t simcall){
1014     return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1015 }
1016 static inline void simcall_storage_get_free_size__set__result(smx_simcall_t simcall, sg_size_t result){
1017     simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1018 }
1019
1020 static inline smx_storage_t simcall_storage_get_used_size__get__name(smx_simcall_t simcall) {
1021   return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1022 }
1023 static inline void simcall_storage_get_used_size__set__name(smx_simcall_t simcall, smx_storage_t arg) {
1024     simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1025 }
1026 static inline sg_size_t simcall_storage_get_used_size__get__result(smx_simcall_t simcall){
1027     return simgrid::simix::unmarshal<sg_size_t>(simcall->result);
1028 }
1029 static inline void simcall_storage_get_used_size__set__result(smx_simcall_t simcall, sg_size_t result){
1030     simgrid::simix::marshal<sg_size_t>(simcall->result, result);
1031 }
1032
1033 static inline smx_storage_t simcall_storage_get_properties__get__storage(smx_simcall_t simcall) {
1034   return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1035 }
1036 static inline void simcall_storage_get_properties__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1037     simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1038 }
1039 static inline xbt_dict_t simcall_storage_get_properties__get__result(smx_simcall_t simcall){
1040     return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1041 }
1042 static inline void simcall_storage_get_properties__set__result(smx_simcall_t simcall, xbt_dict_t result){
1043     simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1044 }
1045
1046 static inline smx_storage_t simcall_storage_get_content__get__storage(smx_simcall_t simcall) {
1047   return simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0]);
1048 }
1049 static inline void simcall_storage_get_content__set__storage(smx_simcall_t simcall, smx_storage_t arg) {
1050     simgrid::simix::marshal<smx_storage_t>(simcall->args[0], arg);
1051 }
1052 static inline xbt_dict_t simcall_storage_get_content__get__result(smx_simcall_t simcall){
1053     return simgrid::simix::unmarshal<xbt_dict_t>(simcall->result);
1054 }
1055 static inline void simcall_storage_get_content__set__result(smx_simcall_t simcall, xbt_dict_t result){
1056     simgrid::simix::marshal<xbt_dict_t>(simcall->result, result);
1057 }
1058
1059 static inline int simcall_mc_random__get__min(smx_simcall_t simcall) {
1060   return simgrid::simix::unmarshal<int>(simcall->args[0]);
1061 }
1062 static inline void simcall_mc_random__set__min(smx_simcall_t simcall, int arg) {
1063     simgrid::simix::marshal<int>(simcall->args[0], arg);
1064 }
1065 static inline int simcall_mc_random__get__max(smx_simcall_t simcall) {
1066   return simgrid::simix::unmarshal<int>(simcall->args[1]);
1067 }
1068 static inline void simcall_mc_random__set__max(smx_simcall_t simcall, int arg) {
1069     simgrid::simix::marshal<int>(simcall->args[1], arg);
1070 }
1071 static inline int simcall_mc_random__get__result(smx_simcall_t simcall){
1072     return simgrid::simix::unmarshal<int>(simcall->result);
1073 }
1074 static inline void simcall_mc_random__set__result(smx_simcall_t simcall, int result){
1075     simgrid::simix::marshal<int>(simcall->result, result);
1076 }
1077
1078 static inline smx_activity_t simcall_set_category__get__synchro(smx_simcall_t simcall) {
1079   return simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]);
1080 }
1081 static inline void simcall_set_category__set__synchro(smx_simcall_t simcall, smx_activity_t arg) {
1082     simgrid::simix::marshal<smx_activity_t>(simcall->args[0], arg);
1083 }
1084 static inline const char* simcall_set_category__get__category(smx_simcall_t simcall) {
1085   return simgrid::simix::unmarshal<const char*>(simcall->args[1]);
1086 }
1087 static inline void simcall_set_category__set__category(smx_simcall_t simcall, const char* arg) {
1088     simgrid::simix::marshal<const char*>(simcall->args[1], arg);
1089 }
1090
1091 static inline std::function<void()> const* simcall_run_kernel__get__code(smx_simcall_t simcall) {
1092   return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1093 }
1094 static inline void simcall_run_kernel__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1095     simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1096 }
1097
1098 static inline std::function<void()> const* simcall_run_blocking__get__code(smx_simcall_t simcall) {
1099   return simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]);
1100 }
1101 static inline void simcall_run_blocking__set__code(smx_simcall_t simcall, std::function<void()> const* arg) {
1102     simgrid::simix::marshal<std::function<void()> const*>(simcall->args[0], arg);
1103 }
1104
1105 /* The prototype of all simcall handlers, automatically generated for you */
1106
1107 XBT_PRIVATE void simcall_HANDLER_process_kill(smx_simcall_t simcall, smx_actor_t process);
1108 XBT_PRIVATE void simcall_HANDLER_process_killall(smx_simcall_t simcall, int reset_pid);
1109 XBT_PRIVATE void simcall_HANDLER_process_suspend(smx_simcall_t simcall, smx_actor_t process);
1110 XBT_PRIVATE void simcall_HANDLER_process_set_host(smx_simcall_t simcall, smx_actor_t process, sg_host_t dest);
1111 XBT_PRIVATE void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_actor_t process, double timeout);
1112 XBT_PRIVATE void simcall_HANDLER_process_sleep(smx_simcall_t simcall, double duration);
1113 XBT_PRIVATE smx_activity_t simcall_HANDLER_execution_start(smx_simcall_t simcall, const char* name, double flops_amount, double priority, double bound);
1114 XBT_PRIVATE void simcall_HANDLER_execution_wait(smx_simcall_t simcall, smx_activity_t execution);
1115 XBT_PRIVATE smx_actor_t simcall_HANDLER_process_restart(smx_simcall_t simcall, smx_actor_t process);
1116 XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_iprobe(smx_simcall_t simcall, smx_mailbox_t mbox, int type, int src, int tag, simix_match_func_t match_fun, void* data);
1117 XBT_PRIVATE void simcall_HANDLER_comm_send(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate, void* src_buff, size_t src_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double timeout);
1118 XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_isend(smx_simcall_t simcall, smx_actor_t sender, smx_mailbox_t mbox, double task_size, double rate, void* src_buff, size_t src_buff_size, simix_match_func_t match_fun, simix_clean_func_t clean_fun, simix_copy_data_func_t copy_data_fun, void* data, int detached);
1119 XBT_PRIVATE void simcall_HANDLER_comm_recv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, void* dst_buff, size_t* dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double timeout, double rate);
1120 XBT_PRIVATE smx_activity_t simcall_HANDLER_comm_irecv(smx_simcall_t simcall, smx_actor_t receiver, smx_mailbox_t mbox, void* dst_buff, size_t* dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void* data, double rate);
1121 XBT_PRIVATE void simcall_HANDLER_comm_waitany(smx_simcall_t simcall, xbt_dynar_t comms, double timeout);
1122 XBT_PRIVATE void simcall_HANDLER_comm_wait(smx_simcall_t simcall, smx_activity_t comm, double timeout);
1123 XBT_PRIVATE void simcall_HANDLER_comm_test(smx_simcall_t simcall, smx_activity_t comm);
1124 XBT_PRIVATE void simcall_HANDLER_comm_testany(smx_simcall_t simcall, smx_activity_t* comms, size_t count);
1125 XBT_PRIVATE smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall);
1126 XBT_PRIVATE void simcall_HANDLER_mutex_lock(smx_simcall_t simcall, smx_mutex_t mutex);
1127 XBT_PRIVATE int simcall_HANDLER_mutex_trylock(smx_simcall_t simcall, smx_mutex_t mutex);
1128 XBT_PRIVATE void simcall_HANDLER_mutex_unlock(smx_simcall_t simcall, smx_mutex_t mutex);
1129 XBT_PRIVATE void simcall_HANDLER_cond_wait(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex);
1130 XBT_PRIVATE void simcall_HANDLER_cond_wait_timeout(smx_simcall_t simcall, smx_cond_t cond, smx_mutex_t mutex, double timeout);
1131 XBT_PRIVATE void simcall_HANDLER_sem_release(smx_simcall_t simcall, smx_sem_t sem);
1132 XBT_PRIVATE int simcall_HANDLER_sem_would_block(smx_simcall_t simcall, smx_sem_t sem);
1133 XBT_PRIVATE void simcall_HANDLER_sem_acquire(smx_simcall_t simcall, smx_sem_t sem);
1134 XBT_PRIVATE void simcall_HANDLER_sem_acquire_timeout(smx_simcall_t simcall, smx_sem_t sem, double timeout);
1135 XBT_PRIVATE int simcall_HANDLER_sem_get_capacity(smx_simcall_t simcall, smx_sem_t sem);
1136 XBT_PRIVATE void simcall_HANDLER_file_read(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1137 XBT_PRIVATE void simcall_HANDLER_file_write(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, sg_host_t host);
1138 XBT_PRIVATE void simcall_HANDLER_file_open(smx_simcall_t simcall, const char* fullpath, sg_host_t host);
1139 XBT_PRIVATE void simcall_HANDLER_file_close(smx_simcall_t simcall, smx_file_t fd, sg_host_t host);
1140 XBT_PRIVATE sg_size_t simcall_HANDLER_file_get_size(smx_simcall_t simcall, smx_file_t fd);
1141 XBT_PRIVATE sg_size_t simcall_HANDLER_file_tell(smx_simcall_t simcall, smx_file_t fd);
1142 XBT_PRIVATE int simcall_HANDLER_file_seek(smx_simcall_t simcall, smx_file_t fd, sg_offset_t offset, int origin);
1143 XBT_PRIVATE xbt_dynar_t simcall_HANDLER_file_get_info(smx_simcall_t simcall, smx_file_t fd);
1144 XBT_PRIVATE int simcall_HANDLER_file_move(smx_simcall_t simcall, smx_file_t fd, const char* fullpath);
1145 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_free_size(smx_simcall_t simcall, smx_storage_t storage);
1146 XBT_PRIVATE sg_size_t simcall_HANDLER_storage_get_used_size(smx_simcall_t simcall, smx_storage_t name);
1147 XBT_PRIVATE int simcall_HANDLER_mc_random(smx_simcall_t simcall, int min, int max);