Logo AND Algorithmique Numérique Distribuée

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