Logo AND Algorithmique Numérique Distribuée

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