add src/doc in gitignore
[nit.git] / c_src / standard___exec._sep.c
1 /* This C file is generated by NIT to compile module standard___exec. */
2 #include "standard___exec._sep.h"
3 val_t standard___exec___Process___id(val_t p0){
4 struct {struct stack_frame_t me;} fra;
5 val_t REGB0;
6 val_t tmp;
7 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
8 fra.me.file = LOCATE_standard___exec;
9 fra.me.line = 23;
10 fra.me.meth = LOCATE_standard___exec___Process___id;
11 fra.me.has_broke = 0;
12 fra.me.REG_size = 1;
13 fra.me.REG[0] = NIT_NULL;
14 fra.me.REG[0] = p0;
15 /* ./../lib/standard//exec.nit:24 */
16 REGB0 = TAG_Bool(ATTR_standard___exec___Process____data(fra.me.REG[0])!=NIT_NULL);
17 if (UNTAG_Bool(REGB0)) {
18 } else {
19 nit_abort("Uninitialized attribute %s", "_data", LOCATE_standard___exec, 24);
20 }
21 fra.me.REG[0] = ATTR_standard___exec___Process____data(fra.me.REG[0]);
22 REGB0 = CALL_standard___exec___NativeProcess___id(fra.me.REG[0])(fra.me.REG[0]);
23 goto label1;
24 label1: while(0);
25 stack_frame_head = fra.me.prev;
26 return REGB0;
27 }
28 val_t standard___exec___Process___is_finished(val_t p0){
29 struct {struct stack_frame_t me;} fra;
30 val_t REGB0;
31 val_t tmp;
32 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
33 fra.me.file = LOCATE_standard___exec;
34 fra.me.line = 26;
35 fra.me.meth = LOCATE_standard___exec___Process___is_finished;
36 fra.me.has_broke = 0;
37 fra.me.REG_size = 1;
38 fra.me.REG[0] = NIT_NULL;
39 fra.me.REG[0] = p0;
40 /* ./../lib/standard//exec.nit:27 */
41 REGB0 = TAG_Bool(ATTR_standard___exec___Process____data(fra.me.REG[0])!=NIT_NULL);
42 if (UNTAG_Bool(REGB0)) {
43 } else {
44 nit_abort("Uninitialized attribute %s", "_data", LOCATE_standard___exec, 27);
45 }
46 fra.me.REG[0] = ATTR_standard___exec___Process____data(fra.me.REG[0]);
47 REGB0 = CALL_standard___exec___NativeProcess___is_finished(fra.me.REG[0])(fra.me.REG[0]);
48 goto label1;
49 label1: while(0);
50 stack_frame_head = fra.me.prev;
51 return REGB0;
52 }
53 void standard___exec___Process___wait(val_t p0){
54 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
55 val_t REGB0;
56 val_t tmp;
57 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
58 fra.me.file = LOCATE_standard___exec;
59 fra.me.line = 29;
60 fra.me.meth = LOCATE_standard___exec___Process___wait;
61 fra.me.has_broke = 0;
62 fra.me.REG_size = 2;
63 fra.me.REG[0] = NIT_NULL;
64 fra.me.REG[1] = NIT_NULL;
65 fra.me.REG[0] = p0;
66 /* ./../lib/standard//exec.nit:32 */
67 REGB0 = TAG_Bool(ATTR_standard___exec___Process____data(fra.me.REG[0])!=NIT_NULL);
68 if (UNTAG_Bool(REGB0)) {
69 } else {
70 nit_abort("Uninitialized attribute %s", "_data", LOCATE_standard___exec, 32);
71 }
72 fra.me.REG[1] = ATTR_standard___exec___Process____data(fra.me.REG[0]);
73 CALL_standard___exec___NativeProcess___wait(fra.me.REG[1])(fra.me.REG[1]);
74 /* ./../lib/standard//exec.nit:33 */
75 REGB0 = CALL_standard___exec___Process___is_finished(fra.me.REG[0])(fra.me.REG[0]);
76 if (UNTAG_Bool(REGB0)) {
77 } else {
78 nit_abort("Assert failed", NULL, LOCATE_standard___exec, 33);
79 }
80 stack_frame_head = fra.me.prev;
81 return;
82 }
83 val_t standard___exec___Process___status(val_t p0){
84 struct {struct stack_frame_t me;} fra;
85 val_t REGB0;
86 val_t tmp;
87 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
88 fra.me.file = LOCATE_standard___exec;
89 fra.me.line = 36;
90 fra.me.meth = LOCATE_standard___exec___Process___status;
91 fra.me.has_broke = 0;
92 fra.me.REG_size = 1;
93 fra.me.REG[0] = NIT_NULL;
94 fra.me.REG[0] = p0;
95 /* ./../lib/standard//exec.nit:39 */
96 REGB0 = CALL_standard___exec___Process___is_finished(fra.me.REG[0])(fra.me.REG[0]);
97 if (UNTAG_Bool(REGB0)) {
98 } else {
99 nit_abort("Assert failed", NULL, LOCATE_standard___exec, 39);
100 }
101 /* ./../lib/standard//exec.nit:40 */
102 REGB0 = TAG_Bool(ATTR_standard___exec___Process____data(fra.me.REG[0])!=NIT_NULL);
103 if (UNTAG_Bool(REGB0)) {
104 } else {
105 nit_abort("Uninitialized attribute %s", "_data", LOCATE_standard___exec, 40);
106 }
107 fra.me.REG[0] = ATTR_standard___exec___Process____data(fra.me.REG[0]);
108 REGB0 = CALL_standard___exec___NativeProcess___status(fra.me.REG[0])(fra.me.REG[0]);
109 goto label1;
110 label1: while(0);
111 stack_frame_head = fra.me.prev;
112 return REGB0;
113 }
114 void standard___exec___Process___init(val_t p0, val_t p1, val_t p2, int* init_table){
115 int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___Process].i;
116 struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
117 val_t REGB0;
118 val_t tmp;
119 if (init_table[itpos0]) return;
120 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
121 fra.me.file = LOCATE_standard___exec;
122 fra.me.line = 43;
123 fra.me.meth = LOCATE_standard___exec___Process___init;
124 fra.me.has_broke = 0;
125 fra.me.REG_size = 4;
126 fra.me.REG[0] = NIT_NULL;
127 fra.me.REG[1] = NIT_NULL;
128 fra.me.REG[2] = NIT_NULL;
129 fra.me.REG[3] = NIT_NULL;
130 fra.me.REG[0] = p0;
131 fra.me.REG[1] = p1;
132 fra.me.REG[2] = p2;
133 /* ./../lib/standard//exec.nit:43 */
134 fra.me.REG[3] = fra.me.REG[0];
135 REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[2], COLOR_standard___collection___array___Array, ID_standard___collection___array___Array)) /*cast Array[String]*/;
136 if (UNTAG_Bool(REGB0)) {
137 } else {
138 nit_abort("Cast failed", NULL, LOCATE_standard___exec, 43);
139 }
140 /* ./../lib/standard//exec.nit:46 */
141 REGB0 = TAG_Int(0);
142 CALL_standard___exec___Process___execute(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1], fra.me.REG[2], REGB0, init_table);
143 stack_frame_head = fra.me.prev;
144 init_table[itpos0] = 1;
145 return;
146 }
147 void standard___exec___Process___init_(val_t p0, val_t p1, int* init_table){
148 int itpos1 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___Process].i;
149 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
150 val_t REGB0;
151 val_t tmp;
152 if (init_table[itpos1]) return;
153 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
154 fra.me.file = LOCATE_standard___exec;
155 fra.me.line = 49;
156 fra.me.meth = LOCATE_standard___exec___Process___init_;
157 fra.me.has_broke = 0;
158 fra.me.REG_size = 2;
159 fra.me.REG[0] = NIT_NULL;
160 fra.me.REG[1] = NIT_NULL;
161 fra.me.REG[0] = p0;
162 fra.me.REG[1] = p1;
163 /* ./../lib/standard//exec.nit:52 */
164 REGB0 = TAG_Int(0);
165 CALL_standard___exec___Process___execute(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], NIT_NULL, REGB0, init_table);
166 stack_frame_head = fra.me.prev;
167 init_table[itpos1] = 1;
168 return;
169 }
170 void standard___exec___Process___execute(val_t p0, val_t p1, val_t p2, val_t p3, int* init_table){
171 int itpos2 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___Process].i;
172 struct {struct stack_frame_t me; val_t MORE_REG[6];} fra;
173 val_t REGB0;
174 val_t REGB1;
175 val_t REGB2;
176 val_t REGB3;
177 val_t REGB4;
178 val_t tmp;
179 if (init_table[itpos2]) return;
180 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
181 fra.me.file = LOCATE_standard___exec;
182 fra.me.line = 55;
183 fra.me.meth = LOCATE_standard___exec___Process___execute;
184 fra.me.has_broke = 0;
185 fra.me.REG_size = 7;
186 fra.me.REG[0] = NIT_NULL;
187 fra.me.REG[1] = NIT_NULL;
188 fra.me.REG[2] = NIT_NULL;
189 fra.me.REG[3] = NIT_NULL;
190 fra.me.REG[4] = NIT_NULL;
191 fra.me.REG[5] = NIT_NULL;
192 fra.me.REG[6] = NIT_NULL;
193 fra.me.REG[0] = p0;
194 fra.me.REG[1] = p1;
195 fra.me.REG[2] = p2;
196 REGB0 = p3;
197 /* ./../lib/standard//exec.nit:58 */
198 fra.me.REG[3] = NEW_Buffer_standard___string___Buffer___init();
199 /* ./../lib/standard//exec.nit:59 */
200 REGB1 = TAG_Int(1);
201 /* ./../lib/standard//exec.nit:60 */
202 CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1]);
203 /* ./../lib/standard//exec.nit:61 */
204 REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
205 if (UNTAG_Bool(REGB2)) {
206 } else {
207 REGB3 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
208 if (UNTAG_Bool(REGB3)) {
209 REGB3 = TAG_Bool(false);
210 REGB2 = REGB3;
211 } else {
212 REGB3 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
213 REGB2 = REGB3;
214 }
215 }
216 REGB2 = TAG_Bool(!UNTAG_Bool(REGB2));
217 if (UNTAG_Bool(REGB2)) {
218 /* ./../lib/standard//exec.nit:62 */
219 REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
220 if (UNTAG_Bool(REGB2)) {
221 nit_abort("Reciever is null", NULL, LOCATE_standard___exec, 62);
222 }
223 /* ./../lib/standard//collection//array.nit:266 */
224 fra.me.REG[4] = fra.me.REG[2];
225 /* ./../lib/standard//collection//array.nit:269 */
226 REGB2 = TAG_Int(0);
227 /* ./../lib/standard//collection//array.nit:270 */
228 REGB3 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL);
229 if (UNTAG_Bool(REGB3)) {
230 } else {
231 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 270);
232 }
233 REGB3 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4]);
234 /* ./../lib/standard//collection//array.nit:271 */
235 fra.me.REG[5] = ATTR_standard___collection___array___Array____items(fra.me.REG[4]);
236 /* ./../lib/standard//collection//array.nit:272 */
237 while(1) {
238 /* ./../lib/standard//collection//array.nit:24 */
239 REGB3 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL);
240 if (UNTAG_Bool(REGB3)) {
241 } else {
242 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
243 }
244 REGB3 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4]);
245 REGB4 = TAG_Bool(VAL_ISA(REGB3, VTCOLOR_standard___kernel___Comparable___OTHER(REGB2), VTID_standard___kernel___Comparable___OTHER(REGB2))) /*cast OTHER*/;
246 if (UNTAG_Bool(REGB4)) {
247 } else {
248 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
249 }
250 /* ./../lib/standard//kernel.nit:232 */
251 REGB3 = TAG_Bool(UNTAG_Int(REGB2)<UNTAG_Int(REGB3));
252 /* ./../lib/standard//collection//array.nit:272 */
253 if (UNTAG_Bool(REGB3)) {
254 /* ./../lib/standard//collection//array.nit:273 */
255 REGB3 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
256 if (UNTAG_Bool(REGB3)) {
257 nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 273);
258 }
259 /* ./../lib/standard//collection//array.nit:718 */
260 fra.me.REG[6] = ((Nit_NativeArray)fra.me.REG[5])->val[UNTAG_Int(REGB2)];
261 /* ./../lib/standard//exec.nit:63 */
262 REGB3 = TAG_Char('\0');
263 CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], REGB3);
264 /* ./../lib/standard//exec.nit:64 */
265 CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[6]);
266 /* ./../lib/standard//collection//array.nit:274 */
267 REGB3 = TAG_Int(1);
268 /* ./../lib/standard//kernel.nit:235 */
269 REGB3 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB3));
270 /* ./../lib/standard//collection//array.nit:274 */
271 REGB2 = REGB3;
272 } else {
273 /* ./../lib/standard//collection//array.nit:272 */
274 goto label1;
275 }
276 }
277 label1: while(0);
278 /* ./../lib/standard//exec.nit:66 */
279 REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
280 if (UNTAG_Bool(REGB2)) {
281 nit_abort("Reciever is null", NULL, LOCATE_standard___exec, 66);
282 }
283 /* ./../lib/standard//collection//array.nit:24 */
284 REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL);
285 if (UNTAG_Bool(REGB2)) {
286 } else {
287 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
288 }
289 REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
290 /* ./../lib/standard//kernel.nit:235 */
291 REGB2 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB2));
292 /* ./../lib/standard//exec.nit:66 */
293 REGB1 = REGB2;
294 }
295 /* ./../lib/standard//exec.nit:68 */
296 fra.me.REG[1] = CALL_standard___string___String___to_cstring(fra.me.REG[1])(fra.me.REG[1]);
297 fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
298 fra.me.REG[3] = CALL_standard___string___String___to_cstring(fra.me.REG[3])(fra.me.REG[3]);
299 fra.me.REG[3] = CALL_standard___exec___Process___basic_exec_execute(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[3], REGB1, REGB0);
300 ATTR_standard___exec___Process____data(fra.me.REG[0]) = fra.me.REG[3];
301 stack_frame_head = fra.me.prev;
302 init_table[itpos2] = 1;
303 return;
304 }
305 val_t standard___exec___Process___basic_exec_execute(val_t p0, val_t p1, val_t p2, val_t p3, val_t p4){
306 struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
307 val_t REGB0;
308 val_t REGB1;
309 val_t tmp;
310 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
311 fra.me.file = LOCATE_standard___exec;
312 fra.me.line = 72;
313 fra.me.meth = LOCATE_standard___exec___Process___basic_exec_execute;
314 fra.me.has_broke = 0;
315 fra.me.REG_size = 3;
316 fra.me.REG[0] = NIT_NULL;
317 fra.me.REG[1] = NIT_NULL;
318 fra.me.REG[2] = NIT_NULL;
319 fra.me.REG[0] = p0;
320 fra.me.REG[1] = p1;
321 fra.me.REG[2] = p2;
322 REGB0 = p3;
323 REGB1 = p4;
324 /* ./../lib/standard//exec.nit:72 */
325 fra.me.REG[2] = Process_basic_exec_execute___out(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2], REGB0, REGB1);
326 stack_frame_head = fra.me.prev;
327 return fra.me.REG[2];
328 }
329 void standard___exec___IProcess___close(val_t p0){
330 struct {struct stack_frame_t me;} fra;
331 val_t REGB0;
332 val_t tmp;
333 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
334 fra.me.file = LOCATE_standard___exec;
335 fra.me.line = 81;
336 fra.me.meth = LOCATE_standard___exec___IProcess___close;
337 fra.me.has_broke = 0;
338 fra.me.REG_size = 1;
339 fra.me.REG[0] = NIT_NULL;
340 fra.me.REG[0] = p0;
341 /* ./../lib/standard//exec.nit:81 */
342 REGB0 = TAG_Bool(ATTR_standard___exec___IProcess____in(fra.me.REG[0])!=NIT_NULL);
343 if (UNTAG_Bool(REGB0)) {
344 } else {
345 nit_abort("Uninitialized attribute %s", "_in", LOCATE_standard___exec, 81);
346 }
347 fra.me.REG[0] = ATTR_standard___exec___IProcess____in(fra.me.REG[0]);
348 CALL_standard___stream___IOS___close(fra.me.REG[0])(fra.me.REG[0]);
349 stack_frame_head = fra.me.prev;
350 return;
351 }
352 val_t standard___exec___IProcess___read_char(val_t p0){
353 struct {struct stack_frame_t me;} fra;
354 val_t REGB0;
355 val_t tmp;
356 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
357 fra.me.file = LOCATE_standard___exec;
358 fra.me.line = 83;
359 fra.me.meth = LOCATE_standard___exec___IProcess___read_char;
360 fra.me.has_broke = 0;
361 fra.me.REG_size = 1;
362 fra.me.REG[0] = NIT_NULL;
363 fra.me.REG[0] = p0;
364 /* ./../lib/standard//exec.nit:83 */
365 REGB0 = TAG_Bool(ATTR_standard___exec___IProcess____in(fra.me.REG[0])!=NIT_NULL);
366 if (UNTAG_Bool(REGB0)) {
367 } else {
368 nit_abort("Uninitialized attribute %s", "_in", LOCATE_standard___exec, 83);
369 }
370 fra.me.REG[0] = ATTR_standard___exec___IProcess____in(fra.me.REG[0]);
371 REGB0 = CALL_standard___stream___IStream___read_char(fra.me.REG[0])(fra.me.REG[0]);
372 goto label1;
373 label1: while(0);
374 stack_frame_head = fra.me.prev;
375 return REGB0;
376 }
377 val_t standard___exec___IProcess___eof(val_t p0){
378 struct {struct stack_frame_t me;} fra;
379 val_t REGB0;
380 val_t tmp;
381 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
382 fra.me.file = LOCATE_standard___exec;
383 fra.me.line = 85;
384 fra.me.meth = LOCATE_standard___exec___IProcess___eof;
385 fra.me.has_broke = 0;
386 fra.me.REG_size = 1;
387 fra.me.REG[0] = NIT_NULL;
388 fra.me.REG[0] = p0;
389 /* ./../lib/standard//exec.nit:85 */
390 REGB0 = TAG_Bool(ATTR_standard___exec___IProcess____in(fra.me.REG[0])!=NIT_NULL);
391 if (UNTAG_Bool(REGB0)) {
392 } else {
393 nit_abort("Uninitialized attribute %s", "_in", LOCATE_standard___exec, 85);
394 }
395 fra.me.REG[0] = ATTR_standard___exec___IProcess____in(fra.me.REG[0]);
396 REGB0 = CALL_standard___stream___IStream___eof(fra.me.REG[0])(fra.me.REG[0]);
397 goto label1;
398 label1: while(0);
399 stack_frame_head = fra.me.prev;
400 return REGB0;
401 }
402 void standard___exec___IProcess___init(val_t p0, val_t p1, val_t p2, int* init_table){
403 int itpos3 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___IProcess].i;
404 struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
405 val_t REGB0;
406 val_t tmp;
407 if (init_table[itpos3]) return;
408 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
409 fra.me.file = LOCATE_standard___exec;
410 fra.me.line = 87;
411 fra.me.meth = LOCATE_standard___exec___IProcess___init;
412 fra.me.has_broke = 0;
413 fra.me.REG_size = 4;
414 fra.me.REG[0] = NIT_NULL;
415 fra.me.REG[1] = NIT_NULL;
416 fra.me.REG[2] = NIT_NULL;
417 fra.me.REG[3] = NIT_NULL;
418 fra.me.REG[0] = p0;
419 fra.me.REG[1] = p1;
420 fra.me.REG[2] = p2;
421 /* ./../lib/standard//exec.nit:87 */
422 fra.me.REG[3] = fra.me.REG[0];
423 REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[2], COLOR_standard___collection___array___Array, ID_standard___collection___array___Array)) /*cast Array[String]*/;
424 if (UNTAG_Bool(REGB0)) {
425 } else {
426 nit_abort("Cast failed", NULL, LOCATE_standard___exec, 87);
427 }
428 /* ./../lib/standard//exec.nit:89 */
429 REGB0 = TAG_Int(2);
430 CALL_standard___exec___Process___execute(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1], fra.me.REG[2], REGB0, init_table);
431 /* ./../lib/standard//exec.nit:90 */
432 REGB0 = TAG_Bool(ATTR_standard___exec___Process____data(fra.me.REG[3])!=NIT_NULL);
433 if (UNTAG_Bool(REGB0)) {
434 } else {
435 nit_abort("Uninitialized attribute %s", "_data", LOCATE_standard___exec, 90);
436 }
437 fra.me.REG[2] = ATTR_standard___exec___Process____data(fra.me.REG[3]);
438 REGB0 = CALL_standard___exec___NativeProcess___out_fd(fra.me.REG[2])(fra.me.REG[2]);
439 fra.me.REG[2] = NEW_FDIStream_standard___stream___FDIStream___init(REGB0);
440 ATTR_standard___exec___IProcess____in(fra.me.REG[3]) = fra.me.REG[2];
441 stack_frame_head = fra.me.prev;
442 init_table[itpos3] = 1;
443 return;
444 }
445 void standard___exec___IProcess___init_(val_t p0, val_t p1, int* init_table){
446 int itpos4 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___IProcess].i;
447 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
448 val_t REGB0;
449 val_t tmp;
450 if (init_table[itpos4]) return;
451 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
452 fra.me.file = LOCATE_standard___exec;
453 fra.me.line = 93;
454 fra.me.meth = LOCATE_standard___exec___IProcess___init_;
455 fra.me.has_broke = 0;
456 fra.me.REG_size = 2;
457 fra.me.REG[0] = NIT_NULL;
458 fra.me.REG[1] = NIT_NULL;
459 fra.me.REG[0] = p0;
460 fra.me.REG[1] = p1;
461 /* ./../lib/standard//exec.nit:95 */
462 REGB0 = TAG_Int(2);
463 CALL_standard___exec___Process___execute(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], NIT_NULL, REGB0, init_table);
464 /* ./../lib/standard//exec.nit:96 */
465 REGB0 = TAG_Bool(ATTR_standard___exec___Process____data(fra.me.REG[0])!=NIT_NULL);
466 if (UNTAG_Bool(REGB0)) {
467 } else {
468 nit_abort("Uninitialized attribute %s", "_data", LOCATE_standard___exec, 96);
469 }
470 fra.me.REG[1] = ATTR_standard___exec___Process____data(fra.me.REG[0]);
471 REGB0 = CALL_standard___exec___NativeProcess___out_fd(fra.me.REG[1])(fra.me.REG[1]);
472 fra.me.REG[1] = NEW_FDIStream_standard___stream___FDIStream___init(REGB0);
473 ATTR_standard___exec___IProcess____in(fra.me.REG[0]) = fra.me.REG[1];
474 stack_frame_head = fra.me.prev;
475 init_table[itpos4] = 1;
476 return;
477 }
478 void standard___exec___OProcess___close(val_t p0){
479 struct {struct stack_frame_t me;} fra;
480 val_t REGB0;
481 val_t tmp;
482 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
483 fra.me.file = LOCATE_standard___exec;
484 fra.me.line = 106;
485 fra.me.meth = LOCATE_standard___exec___OProcess___close;
486 fra.me.has_broke = 0;
487 fra.me.REG_size = 1;
488 fra.me.REG[0] = NIT_NULL;
489 fra.me.REG[0] = p0;
490 /* ./../lib/standard//exec.nit:106 */
491 REGB0 = TAG_Bool(ATTR_standard___exec___OProcess____out(fra.me.REG[0])!=NIT_NULL);
492 if (UNTAG_Bool(REGB0)) {
493 } else {
494 nit_abort("Uninitialized attribute %s", "_out", LOCATE_standard___exec, 106);
495 }
496 fra.me.REG[0] = ATTR_standard___exec___OProcess____out(fra.me.REG[0]);
497 CALL_standard___stream___IOS___close(fra.me.REG[0])(fra.me.REG[0]);
498 stack_frame_head = fra.me.prev;
499 return;
500 }
501 val_t standard___exec___OProcess___is_writable(val_t p0){
502 struct {struct stack_frame_t me;} fra;
503 val_t REGB0;
504 val_t tmp;
505 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
506 fra.me.file = LOCATE_standard___exec;
507 fra.me.line = 108;
508 fra.me.meth = LOCATE_standard___exec___OProcess___is_writable;
509 fra.me.has_broke = 0;
510 fra.me.REG_size = 1;
511 fra.me.REG[0] = NIT_NULL;
512 fra.me.REG[0] = p0;
513 /* ./../lib/standard//exec.nit:108 */
514 REGB0 = TAG_Bool(ATTR_standard___exec___OProcess____out(fra.me.REG[0])!=NIT_NULL);
515 if (UNTAG_Bool(REGB0)) {
516 } else {
517 nit_abort("Uninitialized attribute %s", "_out", LOCATE_standard___exec, 108);
518 }
519 fra.me.REG[0] = ATTR_standard___exec___OProcess____out(fra.me.REG[0]);
520 REGB0 = CALL_standard___stream___OStream___is_writable(fra.me.REG[0])(fra.me.REG[0]);
521 goto label1;
522 label1: while(0);
523 stack_frame_head = fra.me.prev;
524 return REGB0;
525 }
526 void standard___exec___OProcess___write(val_t p0, val_t p1){
527 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
528 val_t REGB0;
529 val_t tmp;
530 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
531 fra.me.file = LOCATE_standard___exec;
532 fra.me.line = 110;
533 fra.me.meth = LOCATE_standard___exec___OProcess___write;
534 fra.me.has_broke = 0;
535 fra.me.REG_size = 2;
536 fra.me.REG[0] = NIT_NULL;
537 fra.me.REG[1] = NIT_NULL;
538 fra.me.REG[0] = p0;
539 fra.me.REG[1] = p1;
540 /* ./../lib/standard//exec.nit:110 */
541 REGB0 = TAG_Bool(ATTR_standard___exec___OProcess____out(fra.me.REG[0])!=NIT_NULL);
542 if (UNTAG_Bool(REGB0)) {
543 } else {
544 nit_abort("Uninitialized attribute %s", "_out", LOCATE_standard___exec, 110);
545 }
546 fra.me.REG[0] = ATTR_standard___exec___OProcess____out(fra.me.REG[0]);
547 CALL_standard___stream___OStream___write(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
548 stack_frame_head = fra.me.prev;
549 return;
550 }
551 void standard___exec___OProcess___init(val_t p0, val_t p1, val_t p2, int* init_table){
552 int itpos5 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___OProcess].i;
553 struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
554 val_t REGB0;
555 val_t tmp;
556 if (init_table[itpos5]) return;
557 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
558 fra.me.file = LOCATE_standard___exec;
559 fra.me.line = 112;
560 fra.me.meth = LOCATE_standard___exec___OProcess___init;
561 fra.me.has_broke = 0;
562 fra.me.REG_size = 4;
563 fra.me.REG[0] = NIT_NULL;
564 fra.me.REG[1] = NIT_NULL;
565 fra.me.REG[2] = NIT_NULL;
566 fra.me.REG[3] = NIT_NULL;
567 fra.me.REG[0] = p0;
568 fra.me.REG[1] = p1;
569 fra.me.REG[2] = p2;
570 /* ./../lib/standard//exec.nit:112 */
571 fra.me.REG[3] = fra.me.REG[0];
572 REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[2], COLOR_standard___collection___array___Array, ID_standard___collection___array___Array)) /*cast Array[String]*/;
573 if (UNTAG_Bool(REGB0)) {
574 } else {
575 nit_abort("Cast failed", NULL, LOCATE_standard___exec, 112);
576 }
577 /* ./../lib/standard//exec.nit:114 */
578 REGB0 = TAG_Int(1);
579 CALL_standard___exec___Process___execute(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1], fra.me.REG[2], REGB0, init_table);
580 /* ./../lib/standard//exec.nit:115 */
581 REGB0 = TAG_Bool(ATTR_standard___exec___Process____data(fra.me.REG[3])!=NIT_NULL);
582 if (UNTAG_Bool(REGB0)) {
583 } else {
584 nit_abort("Uninitialized attribute %s", "_data", LOCATE_standard___exec, 115);
585 }
586 fra.me.REG[2] = ATTR_standard___exec___Process____data(fra.me.REG[3]);
587 REGB0 = CALL_standard___exec___NativeProcess___in_fd(fra.me.REG[2])(fra.me.REG[2]);
588 fra.me.REG[2] = NEW_FDOStream_standard___stream___FDOStream___init(REGB0);
589 ATTR_standard___exec___OProcess____out(fra.me.REG[3]) = fra.me.REG[2];
590 stack_frame_head = fra.me.prev;
591 init_table[itpos5] = 1;
592 return;
593 }
594 void standard___exec___OProcess___init_(val_t p0, val_t p1, int* init_table){
595 int itpos6 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___OProcess].i;
596 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
597 val_t REGB0;
598 val_t tmp;
599 if (init_table[itpos6]) return;
600 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
601 fra.me.file = LOCATE_standard___exec;
602 fra.me.line = 118;
603 fra.me.meth = LOCATE_standard___exec___OProcess___init_;
604 fra.me.has_broke = 0;
605 fra.me.REG_size = 2;
606 fra.me.REG[0] = NIT_NULL;
607 fra.me.REG[1] = NIT_NULL;
608 fra.me.REG[0] = p0;
609 fra.me.REG[1] = p1;
610 /* ./../lib/standard//exec.nit:120 */
611 REGB0 = TAG_Int(1);
612 CALL_standard___exec___Process___execute(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], NIT_NULL, REGB0, init_table);
613 /* ./../lib/standard//exec.nit:121 */
614 REGB0 = TAG_Bool(ATTR_standard___exec___Process____data(fra.me.REG[0])!=NIT_NULL);
615 if (UNTAG_Bool(REGB0)) {
616 } else {
617 nit_abort("Uninitialized attribute %s", "_data", LOCATE_standard___exec, 121);
618 }
619 fra.me.REG[1] = ATTR_standard___exec___Process____data(fra.me.REG[0]);
620 REGB0 = CALL_standard___exec___NativeProcess___in_fd(fra.me.REG[1])(fra.me.REG[1]);
621 fra.me.REG[1] = NEW_FDOStream_standard___stream___FDOStream___init(REGB0);
622 ATTR_standard___exec___OProcess____out(fra.me.REG[0]) = fra.me.REG[1];
623 stack_frame_head = fra.me.prev;
624 init_table[itpos6] = 1;
625 return;
626 }
627 void standard___exec___IOProcess___close(val_t p0){
628 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
629 val_t REGB0;
630 val_t tmp;
631 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
632 fra.me.file = LOCATE_standard___exec;
633 fra.me.line = 131;
634 fra.me.meth = LOCATE_standard___exec___IOProcess___close;
635 fra.me.has_broke = 0;
636 fra.me.REG_size = 2;
637 fra.me.REG[0] = NIT_NULL;
638 fra.me.REG[1] = NIT_NULL;
639 fra.me.REG[0] = p0;
640 /* ./../lib/standard//exec.nit:133 */
641 REGB0 = TAG_Bool(ATTR_standard___exec___IProcess____in(fra.me.REG[0])!=NIT_NULL);
642 if (UNTAG_Bool(REGB0)) {
643 } else {
644 nit_abort("Uninitialized attribute %s", "_in", LOCATE_standard___exec, 133);
645 }
646 fra.me.REG[1] = ATTR_standard___exec___IProcess____in(fra.me.REG[0]);
647 CALL_standard___stream___IOS___close(fra.me.REG[1])(fra.me.REG[1]);
648 /* ./../lib/standard//exec.nit:134 */
649 REGB0 = TAG_Bool(ATTR_standard___exec___OProcess____out(fra.me.REG[0])!=NIT_NULL);
650 if (UNTAG_Bool(REGB0)) {
651 } else {
652 nit_abort("Uninitialized attribute %s", "_out", LOCATE_standard___exec, 134);
653 }
654 fra.me.REG[0] = ATTR_standard___exec___OProcess____out(fra.me.REG[0]);
655 CALL_standard___stream___IOS___close(fra.me.REG[0])(fra.me.REG[0]);
656 stack_frame_head = fra.me.prev;
657 return;
658 }
659 void standard___exec___IOProcess___init(val_t p0, val_t p1, val_t p2, int* init_table){
660 int itpos7 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___IOProcess].i;
661 struct {struct stack_frame_t me; val_t MORE_REG[5];} fra;
662 val_t REGB0;
663 val_t tmp;
664 if (init_table[itpos7]) return;
665 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
666 fra.me.file = LOCATE_standard___exec;
667 fra.me.line = 137;
668 fra.me.meth = LOCATE_standard___exec___IOProcess___init;
669 fra.me.has_broke = 0;
670 fra.me.REG_size = 6;
671 fra.me.REG[0] = NIT_NULL;
672 fra.me.REG[1] = NIT_NULL;
673 fra.me.REG[2] = NIT_NULL;
674 fra.me.REG[3] = NIT_NULL;
675 fra.me.REG[4] = NIT_NULL;
676 fra.me.REG[5] = NIT_NULL;
677 fra.me.REG[0] = p0;
678 fra.me.REG[1] = p1;
679 fra.me.REG[2] = p2;
680 /* ./../lib/standard//exec.nit:137 */
681 fra.me.REG[3] = fra.me.REG[0];
682 fra.me.REG[4] = fra.me.REG[1];
683 REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[2], COLOR_standard___collection___array___Array, ID_standard___collection___array___Array)) /*cast Array[String]*/;
684 if (UNTAG_Bool(REGB0)) {
685 } else {
686 nit_abort("Cast failed", NULL, LOCATE_standard___exec, 137);
687 }
688 fra.me.REG[5] = fra.me.REG[2];
689 /* ./../lib/standard//exec.nit:139 */
690 REGB0 = TAG_Int(3);
691 CALL_standard___exec___Process___execute(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4], fra.me.REG[5], REGB0, init_table);
692 CALL_standard___exec___IProcess___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2], init_table);
693 CALL_standard___exec___OProcess___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2], init_table);
694 /* ./../lib/standard//exec.nit:140 */
695 REGB0 = TAG_Bool(ATTR_standard___exec___Process____data(fra.me.REG[3])!=NIT_NULL);
696 if (UNTAG_Bool(REGB0)) {
697 } else {
698 nit_abort("Uninitialized attribute %s", "_data", LOCATE_standard___exec, 140);
699 }
700 fra.me.REG[2] = ATTR_standard___exec___Process____data(fra.me.REG[3]);
701 REGB0 = CALL_standard___exec___NativeProcess___out_fd(fra.me.REG[2])(fra.me.REG[2]);
702 fra.me.REG[2] = NEW_FDIStream_standard___stream___FDIStream___init(REGB0);
703 ATTR_standard___exec___IProcess____in(fra.me.REG[3]) = fra.me.REG[2];
704 /* ./../lib/standard//exec.nit:141 */
705 REGB0 = TAG_Bool(ATTR_standard___exec___Process____data(fra.me.REG[3])!=NIT_NULL);
706 if (UNTAG_Bool(REGB0)) {
707 } else {
708 nit_abort("Uninitialized attribute %s", "_data", LOCATE_standard___exec, 141);
709 }
710 fra.me.REG[2] = ATTR_standard___exec___Process____data(fra.me.REG[3]);
711 REGB0 = CALL_standard___exec___NativeProcess___in_fd(fra.me.REG[2])(fra.me.REG[2]);
712 fra.me.REG[2] = NEW_FDOStream_standard___stream___FDOStream___init(REGB0);
713 ATTR_standard___exec___OProcess____out(fra.me.REG[3]) = fra.me.REG[2];
714 stack_frame_head = fra.me.prev;
715 init_table[itpos7] = 1;
716 return;
717 }
718 void standard___exec___IOProcess___init_(val_t p0, val_t p1, int* init_table){
719 int itpos8 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___exec___IOProcess].i;
720 struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
721 val_t REGB0;
722 val_t tmp;
723 if (init_table[itpos8]) return;
724 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
725 fra.me.file = LOCATE_standard___exec;
726 fra.me.line = 144;
727 fra.me.meth = LOCATE_standard___exec___IOProcess___init_;
728 fra.me.has_broke = 0;
729 fra.me.REG_size = 4;
730 fra.me.REG[0] = NIT_NULL;
731 fra.me.REG[1] = NIT_NULL;
732 fra.me.REG[2] = NIT_NULL;
733 fra.me.REG[3] = NIT_NULL;
734 fra.me.REG[0] = p0;
735 fra.me.REG[1] = p1;
736 /* ./../lib/standard//exec.nit:144 */
737 fra.me.REG[2] = fra.me.REG[0];
738 fra.me.REG[3] = fra.me.REG[1];
739 /* ./../lib/standard//exec.nit:146 */
740 REGB0 = TAG_Int(3);
741 CALL_standard___exec___Process___execute(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3], NIT_NULL, REGB0, init_table);
742 CALL_standard___exec___IProcess___init_(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], init_table);
743 CALL_standard___exec___OProcess___init_(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], init_table);
744 /* ./../lib/standard//exec.nit:147 */
745 REGB0 = TAG_Bool(ATTR_standard___exec___Process____data(fra.me.REG[2])!=NIT_NULL);
746 if (UNTAG_Bool(REGB0)) {
747 } else {
748 nit_abort("Uninitialized attribute %s", "_data", LOCATE_standard___exec, 147);
749 }
750 fra.me.REG[1] = ATTR_standard___exec___Process____data(fra.me.REG[2]);
751 REGB0 = CALL_standard___exec___NativeProcess___out_fd(fra.me.REG[1])(fra.me.REG[1]);
752 fra.me.REG[1] = NEW_FDIStream_standard___stream___FDIStream___init(REGB0);
753 ATTR_standard___exec___IProcess____in(fra.me.REG[2]) = fra.me.REG[1];
754 /* ./../lib/standard//exec.nit:148 */
755 REGB0 = TAG_Bool(ATTR_standard___exec___Process____data(fra.me.REG[2])!=NIT_NULL);
756 if (UNTAG_Bool(REGB0)) {
757 } else {
758 nit_abort("Uninitialized attribute %s", "_data", LOCATE_standard___exec, 148);
759 }
760 fra.me.REG[1] = ATTR_standard___exec___Process____data(fra.me.REG[2]);
761 REGB0 = CALL_standard___exec___NativeProcess___in_fd(fra.me.REG[1])(fra.me.REG[1]);
762 fra.me.REG[1] = NEW_FDOStream_standard___stream___FDOStream___init(REGB0);
763 ATTR_standard___exec___OProcess____out(fra.me.REG[2]) = fra.me.REG[1];
764 stack_frame_head = fra.me.prev;
765 init_table[itpos8] = 1;
766 return;
767 }
768 val_t standard___exec___Sys___system(val_t p0, val_t p1){
769 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
770 val_t REGB0;
771 val_t tmp;
772 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
773 fra.me.file = LOCATE_standard___exec;
774 fra.me.line = 153;
775 fra.me.meth = LOCATE_standard___exec___Sys___system;
776 fra.me.has_broke = 0;
777 fra.me.REG_size = 2;
778 fra.me.REG[0] = NIT_NULL;
779 fra.me.REG[1] = NIT_NULL;
780 fra.me.REG[0] = p0;
781 fra.me.REG[1] = p1;
782 /* ./../lib/standard//exec.nit:156 */
783 fra.me.REG[1] = CALL_standard___string___String___to_cstring(fra.me.REG[1])(fra.me.REG[1]);
784 REGB0 = CALL_standard___exec___NativeString___system(fra.me.REG[1])(fra.me.REG[1]);
785 goto label1;
786 label1: while(0);
787 stack_frame_head = fra.me.prev;
788 return REGB0;
789 }
790 val_t standard___exec___NativeString___system(val_t p0){
791 struct {struct stack_frame_t me;} fra;
792 val_t REGB0;
793 val_t tmp;
794 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
795 fra.me.file = LOCATE_standard___exec;
796 fra.me.line = 161;
797 fra.me.meth = LOCATE_standard___exec___NativeString___system;
798 fra.me.has_broke = 0;
799 fra.me.REG_size = 1;
800 fra.me.REG[0] = NIT_NULL;
801 fra.me.REG[0] = p0;
802 /* ./../lib/standard//exec.nit:161 */
803 REGB0 = NativeString_system___out(fra.me.REG[0]);
804 stack_frame_head = fra.me.prev;
805 return REGB0;
806 }
807 val_t standard___exec___NativeProcess___id(val_t p0){
808 struct {struct stack_frame_t me;} fra;
809 val_t REGB0;
810 val_t tmp;
811 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
812 fra.me.file = LOCATE_standard___exec;
813 fra.me.line = 165;
814 fra.me.meth = LOCATE_standard___exec___NativeProcess___id;
815 fra.me.has_broke = 0;
816 fra.me.REG_size = 1;
817 fra.me.REG[0] = NIT_NULL;
818 fra.me.REG[0] = p0;
819 /* ./../lib/standard//exec.nit:165 */
820 REGB0 = NativeProcess_id___out(fra.me.REG[0]);
821 stack_frame_head = fra.me.prev;
822 return REGB0;
823 }
824 val_t standard___exec___NativeProcess___is_finished(val_t p0){
825 struct {struct stack_frame_t me;} fra;
826 val_t REGB0;
827 val_t tmp;
828 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
829 fra.me.file = LOCATE_standard___exec;
830 fra.me.line = 166;
831 fra.me.meth = LOCATE_standard___exec___NativeProcess___is_finished;
832 fra.me.has_broke = 0;
833 fra.me.REG_size = 1;
834 fra.me.REG[0] = NIT_NULL;
835 fra.me.REG[0] = p0;
836 /* ./../lib/standard//exec.nit:166 */
837 REGB0 = NativeProcess_is_finished___out(fra.me.REG[0]);
838 stack_frame_head = fra.me.prev;
839 return REGB0;
840 }
841 val_t standard___exec___NativeProcess___status(val_t p0){
842 struct {struct stack_frame_t me;} fra;
843 val_t REGB0;
844 val_t tmp;
845 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
846 fra.me.file = LOCATE_standard___exec;
847 fra.me.line = 167;
848 fra.me.meth = LOCATE_standard___exec___NativeProcess___status;
849 fra.me.has_broke = 0;
850 fra.me.REG_size = 1;
851 fra.me.REG[0] = NIT_NULL;
852 fra.me.REG[0] = p0;
853 /* ./../lib/standard//exec.nit:167 */
854 REGB0 = NativeProcess_status___out(fra.me.REG[0]);
855 stack_frame_head = fra.me.prev;
856 return REGB0;
857 }
858 void standard___exec___NativeProcess___wait(val_t p0){
859 struct {struct stack_frame_t me;} fra;
860 val_t tmp;
861 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
862 fra.me.file = LOCATE_standard___exec;
863 fra.me.line = 168;
864 fra.me.meth = LOCATE_standard___exec___NativeProcess___wait;
865 fra.me.has_broke = 0;
866 fra.me.REG_size = 1;
867 fra.me.REG[0] = NIT_NULL;
868 fra.me.REG[0] = p0;
869 /* ./../lib/standard//exec.nit:168 */
870 NativeProcess_wait___out(fra.me.REG[0]);
871 stack_frame_head = fra.me.prev;
872 return;
873 }
874 val_t standard___exec___NativeProcess___in_fd(val_t p0){
875 struct {struct stack_frame_t me;} fra;
876 val_t REGB0;
877 val_t tmp;
878 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
879 fra.me.file = LOCATE_standard___exec;
880 fra.me.line = 170;
881 fra.me.meth = LOCATE_standard___exec___NativeProcess___in_fd;
882 fra.me.has_broke = 0;
883 fra.me.REG_size = 1;
884 fra.me.REG[0] = NIT_NULL;
885 fra.me.REG[0] = p0;
886 /* ./../lib/standard//exec.nit:170 */
887 REGB0 = NativeProcess_in_fd___out(fra.me.REG[0]);
888 stack_frame_head = fra.me.prev;
889 return REGB0;
890 }
891 val_t standard___exec___NativeProcess___out_fd(val_t p0){
892 struct {struct stack_frame_t me;} fra;
893 val_t REGB0;
894 val_t tmp;
895 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
896 fra.me.file = LOCATE_standard___exec;
897 fra.me.line = 171;
898 fra.me.meth = LOCATE_standard___exec___NativeProcess___out_fd;
899 fra.me.has_broke = 0;
900 fra.me.REG_size = 1;
901 fra.me.REG[0] = NIT_NULL;
902 fra.me.REG[0] = p0;
903 /* ./../lib/standard//exec.nit:171 */
904 REGB0 = NativeProcess_out_fd___out(fra.me.REG[0]);
905 stack_frame_head = fra.me.prev;
906 return REGB0;
907 }
908 val_t standard___exec___NativeProcess___err_fd(val_t p0){
909 struct {struct stack_frame_t me;} fra;
910 val_t REGB0;
911 val_t tmp;
912 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
913 fra.me.file = LOCATE_standard___exec;
914 fra.me.line = 172;
915 fra.me.meth = LOCATE_standard___exec___NativeProcess___err_fd;
916 fra.me.has_broke = 0;
917 fra.me.REG_size = 1;
918 fra.me.REG[0] = NIT_NULL;
919 fra.me.REG[0] = p0;
920 /* ./../lib/standard//exec.nit:172 */
921 REGB0 = NativeProcess_err_fd___out(fra.me.REG[0]);
922 stack_frame_head = fra.me.prev;
923 return REGB0;
924 }