Logo AND Algorithmique Numérique Distribuée

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