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