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