c_src: fix last update, _nitni.h s were referring to _nit.h from Nit src
[nit.git] / c_src / standard___stream._sep.c
1 /* This C file is generated by NIT to compile module standard___stream. */
2 #include "standard___stream._sep.h"
3 void standard___stream___IOS___close(val_t p0){
4 struct {struct stack_frame_t me;} fra;
5 val_t tmp;
6 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
7 fra.me.file = LOCATE_standard___stream;
8 fra.me.line = 20;
9 fra.me.meth = LOCATE_standard___stream___IOS___close;
10 fra.me.has_broke = 0;
11 fra.me.REG_size = 0;
12 /* ./../lib/standard//stream.nit:20 */
13 nit_abort("Deferred method called", NULL, LOCATE_standard___stream, 20);
14 stack_frame_head = fra.me.prev;
15 return;
16 }
17 void standard___stream___IOS___init(val_t p0, int* init_table){
18 int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___stream___IOS].i;
19 struct {struct stack_frame_t me;} fra;
20 val_t tmp;
21 if (init_table[itpos0]) return;
22 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
23 fra.me.file = LOCATE_standard___stream;
24 fra.me.line = 0;
25 fra.me.meth = LOCATE_standard___stream___IOS___init;
26 fra.me.has_broke = 0;
27 fra.me.REG_size = 0;
28 stack_frame_head = fra.me.prev;
29 init_table[itpos0] = 1;
30 return;
31 }
32 val_t standard___stream___IStream___read_char(val_t p0){
33 struct {struct stack_frame_t me;} fra;
34 val_t tmp;
35 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
36 fra.me.file = LOCATE_standard___stream;
37 fra.me.line = 27;
38 fra.me.meth = LOCATE_standard___stream___IStream___read_char;
39 fra.me.has_broke = 0;
40 fra.me.REG_size = 0;
41 /* ./../lib/standard//stream.nit:27 */
42 nit_abort("Deferred method called", NULL, LOCATE_standard___stream, 27);
43 stack_frame_head = fra.me.prev;
44 return NIT_NULL;
45 }
46 val_t standard___stream___IStream___read(val_t p0, val_t p1){
47 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
48 val_t REGB0;
49 val_t REGB1;
50 val_t REGB2;
51 val_t REGB3;
52 val_t tmp;
53 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
54 fra.me.file = LOCATE_standard___stream;
55 fra.me.line = 30;
56 fra.me.meth = LOCATE_standard___stream___IStream___read;
57 fra.me.has_broke = 0;
58 fra.me.REG_size = 2;
59 fra.me.REG[0] = NIT_NULL;
60 fra.me.REG[1] = NIT_NULL;
61 fra.me.REG[0] = p0;
62 REGB0 = p1;
63 /* ./../lib/standard//stream.nit:33 */
64 fra.me.REG[1] = NEW_Buffer_standard___string___Buffer___with_capacity(REGB0);
65 /* ./../lib/standard//stream.nit:34 */
66 while(1) {
67 REGB1 = TAG_Int(0);
68 REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
69 if (UNTAG_Bool(REGB2)) {
70 } else {
71 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
72 }
73 /* ./../lib/standard//kernel.nit:234 */
74 REGB1 = TAG_Bool(UNTAG_Int(REGB0)>UNTAG_Int(REGB1));
75 /* ./../lib/standard//stream.nit:34 */
76 if (UNTAG_Bool(REGB1)) {
77 REGB1 = CALL_standard___stream___IStream___eof(fra.me.REG[0])(fra.me.REG[0]);
78 REGB1 = TAG_Bool(!UNTAG_Bool(REGB1));
79 } else {
80 REGB2 = TAG_Bool(false);
81 REGB1 = REGB2;
82 }
83 if (UNTAG_Bool(REGB1)) {
84 /* ./../lib/standard//stream.nit:35 */
85 REGB1 = CALL_standard___stream___IStream___read_char(fra.me.REG[0])(fra.me.REG[0]);
86 /* ./../lib/standard//stream.nit:36 */
87 REGB2 = TAG_Int(0);
88 REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
89 if (UNTAG_Bool(REGB3)) {
90 } else {
91 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
92 }
93 /* ./../lib/standard//kernel.nit:233 */
94 REGB2 = TAG_Bool(UNTAG_Int(REGB1)>=UNTAG_Int(REGB2));
95 /* ./../lib/standard//stream.nit:36 */
96 if (UNTAG_Bool(REGB2)) {
97 /* ./../lib/standard//kernel.nit:297 */
98 REGB1 = TAG_Char(UNTAG_Int(REGB1));
99 /* ./../lib/standard//stream.nit:37 */
100 CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], REGB1);
101 /* ./../lib/standard//stream.nit:38 */
102 REGB1 = TAG_Int(1);
103 /* ./../lib/standard//kernel.nit:237 */
104 REGB1 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB1));
105 /* ./../lib/standard//stream.nit:38 */
106 REGB0 = REGB1;
107 }
108 } else {
109 /* ./../lib/standard//stream.nit:34 */
110 goto label1;
111 }
112 }
113 label1: while(0);
114 /* ./../lib/standard//stream.nit:41 */
115 fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
116 goto label2;
117 label2: while(0);
118 stack_frame_head = fra.me.prev;
119 return fra.me.REG[1];
120 }
121 val_t standard___stream___IStream___read_line(val_t p0){
122 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
123 val_t REGB0;
124 val_t tmp;
125 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
126 fra.me.file = LOCATE_standard___stream;
127 fra.me.line = 44;
128 fra.me.meth = LOCATE_standard___stream___IStream___read_line;
129 fra.me.has_broke = 0;
130 fra.me.REG_size = 2;
131 fra.me.REG[0] = NIT_NULL;
132 fra.me.REG[1] = NIT_NULL;
133 fra.me.REG[0] = p0;
134 /* ./../lib/standard//stream.nit:47 */
135 REGB0 = CALL_standard___stream___IStream___eof(fra.me.REG[0])(fra.me.REG[0]);
136 REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
137 if (UNTAG_Bool(REGB0)) {
138 } else {
139 nit_abort("Assert failed", NULL, LOCATE_standard___stream, 47);
140 }
141 /* ./../lib/standard//stream.nit:48 */
142 fra.me.REG[1] = NEW_Buffer_standard___string___Buffer___init();
143 /* ./../lib/standard//stream.nit:49 */
144 CALL_standard___stream___IStream___append_line_to(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
145 /* ./../lib/standard//stream.nit:50 */
146 fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
147 goto label1;
148 label1: while(0);
149 stack_frame_head = fra.me.prev;
150 return fra.me.REG[1];
151 }
152 val_t standard___stream___IStream___read_all(val_t p0){
153 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
154 val_t REGB0;
155 val_t REGB1;
156 val_t REGB2;
157 val_t tmp;
158 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
159 fra.me.file = LOCATE_standard___stream;
160 fra.me.line = 53;
161 fra.me.meth = LOCATE_standard___stream___IStream___read_all;
162 fra.me.has_broke = 0;
163 fra.me.REG_size = 2;
164 fra.me.REG[0] = NIT_NULL;
165 fra.me.REG[1] = NIT_NULL;
166 fra.me.REG[0] = p0;
167 /* ./../lib/standard//stream.nit:56 */
168 fra.me.REG[1] = NEW_Buffer_standard___string___Buffer___init();
169 /* ./../lib/standard//stream.nit:57 */
170 while(1) {
171 REGB0 = CALL_standard___stream___IStream___eof(fra.me.REG[0])(fra.me.REG[0]);
172 REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
173 if (UNTAG_Bool(REGB0)) {
174 /* ./../lib/standard//stream.nit:58 */
175 REGB0 = CALL_standard___stream___IStream___read_char(fra.me.REG[0])(fra.me.REG[0]);
176 /* ./../lib/standard//stream.nit:59 */
177 REGB1 = TAG_Int(0);
178 REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
179 if (UNTAG_Bool(REGB2)) {
180 } else {
181 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
182 }
183 /* ./../lib/standard//kernel.nit:233 */
184 REGB1 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB1));
185 /* ./../lib/standard//stream.nit:59 */
186 if (UNTAG_Bool(REGB1)) {
187 /* ./../lib/standard//kernel.nit:297 */
188 REGB0 = TAG_Char(UNTAG_Int(REGB0));
189 /* ./../lib/standard//stream.nit:59 */
190 CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], REGB0);
191 }
192 } else {
193 /* ./../lib/standard//stream.nit:57 */
194 goto label1;
195 }
196 }
197 label1: while(0);
198 /* ./../lib/standard//stream.nit:61 */
199 fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
200 goto label2;
201 label2: while(0);
202 stack_frame_head = fra.me.prev;
203 return fra.me.REG[1];
204 }
205 void standard___stream___IStream___append_line_to(val_t p0, val_t p1){
206 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
207 val_t REGB0;
208 val_t REGB1;
209 val_t REGB2;
210 val_t tmp;
211 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
212 fra.me.file = LOCATE_standard___stream;
213 fra.me.line = 64;
214 fra.me.meth = LOCATE_standard___stream___IStream___append_line_to;
215 fra.me.has_broke = 0;
216 fra.me.REG_size = 2;
217 fra.me.REG[0] = NIT_NULL;
218 fra.me.REG[1] = NIT_NULL;
219 fra.me.REG[0] = p0;
220 fra.me.REG[1] = p1;
221 /* ./../lib/standard//stream.nit:67 */
222 while(1) {
223 /* ./../lib/standard//stream.nit:68 */
224 REGB0 = CALL_standard___stream___IStream___read_char(fra.me.REG[0])(fra.me.REG[0]);
225 /* ./../lib/standard//stream.nit:69 */
226 REGB1 = TAG_Int(1);
227 /* ./../lib/standard//kernel.nit:236 */
228 REGB1 = TAG_Int(-UNTAG_Int(REGB1));
229 /* ./../lib/standard//stream.nit:69 */
230 REGB2 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB1));
231 if (UNTAG_Bool(REGB2)) {
232 } else {
233 /* ./../lib/standard//kernel.nit:227 */
234 REGB1 = TAG_Bool((REGB0)==(REGB1));
235 /* ./../lib/standard//stream.nit:69 */
236 REGB2 = REGB1;
237 }
238 if (UNTAG_Bool(REGB2)) {
239 /* ./../lib/standard//stream.nit:70 */
240 REGB2 = CALL_standard___stream___IStream___eof(fra.me.REG[0])(fra.me.REG[0]);
241 if (UNTAG_Bool(REGB2)) {
242 goto label1;
243 }
244 } else {
245 /* ./../lib/standard//kernel.nit:297 */
246 REGB0 = TAG_Char(UNTAG_Int(REGB0));
247 /* ./../lib/standard//stream.nit:73 */
248 CALL_standard___collection___abstract_collection___Sequence___push(fra.me.REG[1])(fra.me.REG[1], REGB0);
249 /* ./../lib/standard//stream.nit:74 */
250 REGB2 = TAG_Char('\n');
251 REGB1 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB2));
252 if (UNTAG_Bool(REGB1)) {
253 } else {
254 /* ./../lib/standard//kernel.nit:378 */
255 REGB2 = TAG_Bool((REGB0)==(REGB2));
256 /* ./../lib/standard//stream.nit:74 */
257 REGB1 = REGB2;
258 }
259 if (UNTAG_Bool(REGB1)) {
260 goto label1;
261 }
262 }
263 }
264 label1: while(0);
265 stack_frame_head = fra.me.prev;
266 return;
267 }
268 val_t standard___stream___IStream___eof(val_t p0){
269 struct {struct stack_frame_t me;} fra;
270 val_t tmp;
271 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
272 fra.me.file = LOCATE_standard___stream;
273 fra.me.line = 79;
274 fra.me.meth = LOCATE_standard___stream___IStream___eof;
275 fra.me.has_broke = 0;
276 fra.me.REG_size = 0;
277 /* ./../lib/standard//stream.nit:79 */
278 nit_abort("Deferred method called", NULL, LOCATE_standard___stream, 79);
279 stack_frame_head = fra.me.prev;
280 return NIT_NULL;
281 }
282 void standard___stream___OStream___write(val_t p0, val_t p1){
283 struct {struct stack_frame_t me;} fra;
284 val_t tmp;
285 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
286 fra.me.file = LOCATE_standard___stream;
287 fra.me.line = 86;
288 fra.me.meth = LOCATE_standard___stream___OStream___write;
289 fra.me.has_broke = 0;
290 fra.me.REG_size = 0;
291 /* ./../lib/standard//stream.nit:86 */
292 nit_abort("Deferred method called", NULL, LOCATE_standard___stream, 86);
293 stack_frame_head = fra.me.prev;
294 return;
295 }
296 val_t standard___stream___OStream___is_writable(val_t p0){
297 struct {struct stack_frame_t me;} fra;
298 val_t tmp;
299 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
300 fra.me.file = LOCATE_standard___stream;
301 fra.me.line = 89;
302 fra.me.meth = LOCATE_standard___stream___OStream___is_writable;
303 fra.me.has_broke = 0;
304 fra.me.REG_size = 0;
305 /* ./../lib/standard//stream.nit:89 */
306 nit_abort("Deferred method called", NULL, LOCATE_standard___stream, 89);
307 stack_frame_head = fra.me.prev;
308 return NIT_NULL;
309 }
310 val_t standard___stream___BufferedIStream___read_char(val_t p0){
311 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
312 val_t REGB0;
313 val_t REGB1;
314 val_t REGB2;
315 val_t REGB3;
316 val_t tmp;
317 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
318 fra.me.file = LOCATE_standard___stream;
319 fra.me.line = 96;
320 fra.me.meth = LOCATE_standard___stream___BufferedIStream___read_char;
321 fra.me.has_broke = 0;
322 fra.me.REG_size = 2;
323 fra.me.REG[0] = NIT_NULL;
324 fra.me.REG[1] = NIT_NULL;
325 fra.me.REG[0] = p0;
326 /* ./../lib/standard//stream.nit:98 */
327 REGB0 = CALL_standard___stream___IStream___eof(fra.me.REG[0])(fra.me.REG[0]);
328 REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
329 if (UNTAG_Bool(REGB0)) {
330 } else {
331 nit_abort("Assert failed", NULL, LOCATE_standard___stream, 98);
332 }
333 /* ./../lib/standard//stream.nit:99 */
334 REGB0 = TAG_Bool(ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0])!=NIT_NULL);
335 if (UNTAG_Bool(REGB0)) {
336 } else {
337 nit_abort("Uninitialized attribute %s", "_buffer_pos", LOCATE_standard___stream, 99);
338 }
339 REGB0 = ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]);
340 fra.me.REG[1] = ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]);
341 REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
342 if (UNTAG_Bool(REGB1)) {
343 nit_abort("Reciever is null", NULL, LOCATE_standard___stream, 99);
344 }
345 /* ./../lib/standard//collection//array.nit:24 */
346 REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL);
347 if (UNTAG_Bool(REGB1)) {
348 } else {
349 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
350 }
351 REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]);
352 REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
353 if (UNTAG_Bool(REGB2)) {
354 } else {
355 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
356 }
357 /* ./../lib/standard//kernel.nit:233 */
358 REGB1 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB1));
359 /* ./../lib/standard//stream.nit:99 */
360 if (UNTAG_Bool(REGB1)) {
361 /* ./../lib/standard//stream.nit:100 */
362 CALL_standard___stream___BufferedIStream___fill_buffer(fra.me.REG[0])(fra.me.REG[0]);
363 }
364 /* ./../lib/standard//stream.nit:102 */
365 REGB1 = TAG_Bool(ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0])!=NIT_NULL);
366 if (UNTAG_Bool(REGB1)) {
367 } else {
368 nit_abort("Uninitialized attribute %s", "_buffer_pos", LOCATE_standard___stream, 102);
369 }
370 REGB1 = ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]);
371 fra.me.REG[1] = ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]);
372 REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
373 if (UNTAG_Bool(REGB0)) {
374 nit_abort("Reciever is null", NULL, LOCATE_standard___stream, 102);
375 }
376 /* ./../lib/standard//collection//array.nit:24 */
377 REGB0 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL);
378 if (UNTAG_Bool(REGB0)) {
379 } else {
380 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
381 }
382 REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]);
383 REGB2 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
384 if (UNTAG_Bool(REGB2)) {
385 } else {
386 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
387 }
388 /* ./../lib/standard//kernel.nit:233 */
389 REGB0 = TAG_Bool(UNTAG_Int(REGB1)>=UNTAG_Int(REGB0));
390 /* ./../lib/standard//stream.nit:102 */
391 if (UNTAG_Bool(REGB0)) {
392 /* ./../lib/standard//stream.nit:103 */
393 REGB0 = TAG_Int(1);
394 /* ./../lib/standard//kernel.nit:236 */
395 REGB0 = TAG_Int(-UNTAG_Int(REGB0));
396 /* ./../lib/standard//stream.nit:103 */
397 goto label1;
398 }
399 /* ./../lib/standard//stream.nit:105 */
400 fra.me.REG[1] = ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]);
401 REGB1 = TAG_Bool(ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0])!=NIT_NULL);
402 if (UNTAG_Bool(REGB1)) {
403 } else {
404 nit_abort("Uninitialized attribute %s", "_buffer_pos", LOCATE_standard___stream, 105);
405 }
406 REGB1 = ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]);
407 REGB2 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
408 if (UNTAG_Bool(REGB2)) {
409 nit_abort("Reciever is null", NULL, LOCATE_standard___stream, 105);
410 }
411 REGB1 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[1])(fra.me.REG[1], REGB1);
412 /* ./../lib/standard//stream.nit:106 */
413 REGB2 = ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]);
414 REGB3 = TAG_Int(1);
415 /* ./../lib/standard//kernel.nit:235 */
416 REGB3 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB3));
417 /* ./../lib/standard//stream.nit:106 */
418 ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]) = REGB3;
419 /* ./../lib/standard//kernel.nit:413 */
420 REGB1 = TAG_Int((unsigned char)UNTAG_Char(REGB1));
421 /* ./../lib/standard//stream.nit:107 */
422 REGB0 = REGB1;
423 goto label1;
424 label1: while(0);
425 stack_frame_head = fra.me.prev;
426 return REGB0;
427 }
428 val_t standard___stream___BufferedIStream___read(val_t p0, val_t p1){
429 struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
430 val_t REGB0;
431 val_t REGB1;
432 val_t REGB2;
433 val_t REGB3;
434 val_t REGB4;
435 val_t tmp;
436 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
437 fra.me.file = LOCATE_standard___stream;
438 fra.me.line = 110;
439 fra.me.meth = LOCATE_standard___stream___BufferedIStream___read;
440 fra.me.has_broke = 0;
441 fra.me.REG_size = 4;
442 fra.me.REG[0] = NIT_NULL;
443 fra.me.REG[1] = NIT_NULL;
444 fra.me.REG[2] = NIT_NULL;
445 fra.me.REG[3] = NIT_NULL;
446 fra.me.REG[0] = p0;
447 REGB0 = p1;
448 /* ./../lib/standard//stream.nit:112 */
449 fra.me.REG[1] = NEW_Buffer_standard___string___Buffer___with_capacity(REGB0);
450 /* ./../lib/standard//stream.nit:113 */
451 REGB1 = TAG_Bool(ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0])!=NIT_NULL);
452 if (UNTAG_Bool(REGB1)) {
453 } else {
454 nit_abort("Uninitialized attribute %s", "_buffer_pos", LOCATE_standard___stream, 113);
455 }
456 REGB1 = ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]);
457 /* ./../lib/standard//stream.nit:114 */
458 fra.me.REG[2] = ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]);
459 REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
460 if (UNTAG_Bool(REGB2)) {
461 nit_abort("Reciever is null", NULL, LOCATE_standard___stream, 114);
462 }
463 /* ./../lib/standard//collection//array.nit:24 */
464 REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL);
465 if (UNTAG_Bool(REGB2)) {
466 } else {
467 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
468 }
469 REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
470 /* ./../lib/standard//stream.nit:115 */
471 while(1) {
472 REGB3 = TAG_Int(0);
473 REGB4 = TAG_Bool(VAL_ISA(REGB3, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
474 if (UNTAG_Bool(REGB4)) {
475 } else {
476 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
477 }
478 /* ./../lib/standard//kernel.nit:234 */
479 REGB3 = TAG_Bool(UNTAG_Int(REGB0)>UNTAG_Int(REGB3));
480 /* ./../lib/standard//stream.nit:115 */
481 if (UNTAG_Bool(REGB3)) {
482 REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
483 if (UNTAG_Bool(REGB3)) {
484 } else {
485 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
486 }
487 /* ./../lib/standard//kernel.nit:233 */
488 REGB3 = TAG_Bool(UNTAG_Int(REGB1)>=UNTAG_Int(REGB2));
489 /* ./../lib/standard//stream.nit:116 */
490 if (UNTAG_Bool(REGB3)) {
491 /* ./../lib/standard//stream.nit:117 */
492 CALL_standard___stream___BufferedIStream___fill_buffer(fra.me.REG[0])(fra.me.REG[0]);
493 /* ./../lib/standard//stream.nit:118 */
494 REGB3 = CALL_standard___stream___IStream___eof(fra.me.REG[0])(fra.me.REG[0]);
495 if (UNTAG_Bool(REGB3)) {
496 fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
497 goto label1;
498 }
499 /* ./../lib/standard//stream.nit:119 */
500 REGB3 = TAG_Bool(ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0])!=NIT_NULL);
501 if (UNTAG_Bool(REGB3)) {
502 } else {
503 nit_abort("Uninitialized attribute %s", "_buffer_pos", LOCATE_standard___stream, 119);
504 }
505 REGB3 = ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]);
506 REGB1 = REGB3;
507 /* ./../lib/standard//stream.nit:120 */
508 fra.me.REG[3] = ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]);
509 REGB3 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
510 if (UNTAG_Bool(REGB3)) {
511 nit_abort("Reciever is null", NULL, LOCATE_standard___stream, 120);
512 }
513 /* ./../lib/standard//collection//array.nit:24 */
514 REGB3 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[3])!=NIT_NULL);
515 if (UNTAG_Bool(REGB3)) {
516 } else {
517 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
518 }
519 REGB3 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[3]);
520 /* ./../lib/standard//stream.nit:120 */
521 REGB2 = REGB3;
522 }
523 /* ./../lib/standard//stream.nit:122 */
524 while(1) {
525 REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
526 if (UNTAG_Bool(REGB3)) {
527 } else {
528 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
529 }
530 /* ./../lib/standard//kernel.nit:232 */
531 REGB3 = TAG_Bool(UNTAG_Int(REGB1)<UNTAG_Int(REGB2));
532 /* ./../lib/standard//stream.nit:122 */
533 if (UNTAG_Bool(REGB3)) {
534 REGB3 = TAG_Int(0);
535 REGB4 = TAG_Bool(VAL_ISA(REGB3, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
536 if (UNTAG_Bool(REGB4)) {
537 } else {
538 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
539 }
540 /* ./../lib/standard//kernel.nit:234 */
541 REGB3 = TAG_Bool(UNTAG_Int(REGB0)>UNTAG_Int(REGB3));
542 } else {
543 /* ./../lib/standard//stream.nit:122 */
544 REGB4 = TAG_Bool(false);
545 REGB3 = REGB4;
546 }
547 if (UNTAG_Bool(REGB3)) {
548 /* ./../lib/standard//stream.nit:123 */
549 fra.me.REG[3] = ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]);
550 REGB3 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
551 if (UNTAG_Bool(REGB3)) {
552 nit_abort("Reciever is null", NULL, LOCATE_standard___stream, 123);
553 }
554 REGB3 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[3])(fra.me.REG[3], REGB1);
555 CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], REGB3);
556 /* ./../lib/standard//stream.nit:124 */
557 REGB3 = TAG_Int(1);
558 /* ./../lib/standard//kernel.nit:235 */
559 REGB3 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB3));
560 /* ./../lib/standard//stream.nit:124 */
561 REGB1 = REGB3;
562 /* ./../lib/standard//stream.nit:125 */
563 REGB3 = TAG_Int(1);
564 /* ./../lib/standard//kernel.nit:237 */
565 REGB3 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB3));
566 /* ./../lib/standard//stream.nit:125 */
567 REGB0 = REGB3;
568 } else {
569 /* ./../lib/standard//stream.nit:122 */
570 goto label2;
571 }
572 }
573 label2: while(0);
574 } else {
575 /* ./../lib/standard//stream.nit:115 */
576 goto label3;
577 }
578 }
579 label3: while(0);
580 /* ./../lib/standard//stream.nit:128 */
581 ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]) = REGB1;
582 /* ./../lib/standard//stream.nit:129 */
583 fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
584 fra.me.REG[2] = fra.me.REG[1];
585 goto label1;
586 label1: while(0);
587 stack_frame_head = fra.me.prev;
588 return fra.me.REG[2];
589 }
590 val_t standard___stream___BufferedIStream___read_all(val_t p0){
591 struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
592 val_t REGB0;
593 val_t REGB1;
594 val_t REGB2;
595 val_t tmp;
596 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
597 fra.me.file = LOCATE_standard___stream;
598 fra.me.line = 132;
599 fra.me.meth = LOCATE_standard___stream___BufferedIStream___read_all;
600 fra.me.has_broke = 0;
601 fra.me.REG_size = 3;
602 fra.me.REG[0] = NIT_NULL;
603 fra.me.REG[1] = NIT_NULL;
604 fra.me.REG[2] = NIT_NULL;
605 fra.me.REG[0] = p0;
606 /* ./../lib/standard//stream.nit:134 */
607 fra.me.REG[1] = NEW_Buffer_standard___string___Buffer___init();
608 /* ./../lib/standard//stream.nit:135 */
609 while(1) {
610 REGB0 = CALL_standard___stream___IStream___eof(fra.me.REG[0])(fra.me.REG[0]);
611 REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
612 if (UNTAG_Bool(REGB0)) {
613 /* ./../lib/standard//stream.nit:136 */
614 REGB0 = TAG_Bool(ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0])!=NIT_NULL);
615 if (UNTAG_Bool(REGB0)) {
616 } else {
617 nit_abort("Uninitialized attribute %s", "_buffer_pos", LOCATE_standard___stream, 136);
618 }
619 REGB0 = ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]);
620 /* ./../lib/standard//stream.nit:137 */
621 fra.me.REG[2] = ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]);
622 REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
623 if (UNTAG_Bool(REGB1)) {
624 nit_abort("Reciever is null", NULL, LOCATE_standard___stream, 137);
625 }
626 /* ./../lib/standard//collection//array.nit:24 */
627 REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL);
628 if (UNTAG_Bool(REGB1)) {
629 } else {
630 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
631 }
632 REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
633 /* ./../lib/standard//stream.nit:138 */
634 while(1) {
635 REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
636 if (UNTAG_Bool(REGB2)) {
637 } else {
638 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
639 }
640 /* ./../lib/standard//kernel.nit:232 */
641 REGB2 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB1));
642 /* ./../lib/standard//stream.nit:138 */
643 if (UNTAG_Bool(REGB2)) {
644 /* ./../lib/standard//stream.nit:139 */
645 fra.me.REG[2] = ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]);
646 REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
647 if (UNTAG_Bool(REGB2)) {
648 nit_abort("Reciever is null", NULL, LOCATE_standard___stream, 139);
649 }
650 REGB2 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[2])(fra.me.REG[2], REGB0);
651 CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], REGB2);
652 /* ./../lib/standard//stream.nit:140 */
653 REGB2 = TAG_Int(1);
654 /* ./../lib/standard//kernel.nit:235 */
655 REGB2 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB2));
656 /* ./../lib/standard//stream.nit:140 */
657 REGB0 = REGB2;
658 } else {
659 /* ./../lib/standard//stream.nit:138 */
660 goto label1;
661 }
662 }
663 label1: while(0);
664 /* ./../lib/standard//stream.nit:142 */
665 ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]) = REGB0;
666 /* ./../lib/standard//stream.nit:143 */
667 CALL_standard___stream___BufferedIStream___fill_buffer(fra.me.REG[0])(fra.me.REG[0]);
668 } else {
669 /* ./../lib/standard//stream.nit:135 */
670 goto label2;
671 }
672 }
673 label2: while(0);
674 /* ./../lib/standard//stream.nit:145 */
675 fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
676 goto label3;
677 label3: while(0);
678 stack_frame_head = fra.me.prev;
679 return fra.me.REG[1];
680 }
681 void standard___stream___BufferedIStream___append_line_to(val_t p0, val_t p1){
682 struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
683 val_t REGB0;
684 val_t REGB1;
685 val_t REGB2;
686 val_t REGB3;
687 val_t tmp;
688 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
689 fra.me.file = LOCATE_standard___stream;
690 fra.me.line = 148;
691 fra.me.meth = LOCATE_standard___stream___BufferedIStream___append_line_to;
692 fra.me.has_broke = 0;
693 fra.me.REG_size = 3;
694 fra.me.REG[0] = NIT_NULL;
695 fra.me.REG[1] = NIT_NULL;
696 fra.me.REG[2] = NIT_NULL;
697 fra.me.REG[0] = p0;
698 fra.me.REG[1] = p1;
699 /* ./../lib/standard//stream.nit:150 */
700 while(1) {
701 /* ./../lib/standard//stream.nit:152 */
702 REGB0 = TAG_Bool(ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0])!=NIT_NULL);
703 if (UNTAG_Bool(REGB0)) {
704 } else {
705 nit_abort("Uninitialized attribute %s", "_buffer_pos", LOCATE_standard___stream, 152);
706 }
707 REGB0 = ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]);
708 /* ./../lib/standard//stream.nit:153 */
709 while(1) {
710 fra.me.REG[2] = ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]);
711 REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
712 if (UNTAG_Bool(REGB1)) {
713 nit_abort("Reciever is null", NULL, LOCATE_standard___stream, 153);
714 }
715 /* ./../lib/standard//collection//array.nit:24 */
716 REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL);
717 if (UNTAG_Bool(REGB1)) {
718 } else {
719 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
720 }
721 REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
722 REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
723 if (UNTAG_Bool(REGB2)) {
724 } else {
725 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
726 }
727 /* ./../lib/standard//kernel.nit:232 */
728 REGB1 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB1));
729 /* ./../lib/standard//stream.nit:153 */
730 if (UNTAG_Bool(REGB1)) {
731 fra.me.REG[2] = ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]);
732 REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
733 if (UNTAG_Bool(REGB1)) {
734 nit_abort("Reciever is null", NULL, LOCATE_standard___stream, 153);
735 }
736 REGB1 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[2])(fra.me.REG[2], REGB0);
737 REGB2 = TAG_Char('\n');
738 REGB3 = TAG_Bool(IS_EQUAL_OO(REGB1,REGB2));
739 if (UNTAG_Bool(REGB3)) {
740 } else {
741 /* ./../lib/standard//kernel.nit:378 */
742 REGB2 = TAG_Bool((REGB1)==(REGB2));
743 /* ./../lib/standard//stream.nit:153 */
744 REGB3 = REGB2;
745 }
746 REGB3 = TAG_Bool(!UNTAG_Bool(REGB3));
747 } else {
748 REGB2 = TAG_Bool(false);
749 REGB3 = REGB2;
750 }
751 if (UNTAG_Bool(REGB3)) {
752 REGB3 = TAG_Int(1);
753 /* ./../lib/standard//kernel.nit:235 */
754 REGB3 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB3));
755 /* ./../lib/standard//stream.nit:153 */
756 REGB0 = REGB3;
757 } else {
758 goto label1;
759 }
760 }
761 label1: while(0);
762 /* ./../lib/standard//stream.nit:156 */
763 REGB3 = TAG_Bool(ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0])!=NIT_NULL);
764 if (UNTAG_Bool(REGB3)) {
765 } else {
766 nit_abort("Uninitialized attribute %s", "_buffer_pos", LOCATE_standard___stream, 156);
767 }
768 REGB3 = ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]);
769 REGB2 = TAG_Bool(VAL_ISA(REGB3, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
770 if (UNTAG_Bool(REGB2)) {
771 } else {
772 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
773 }
774 /* ./../lib/standard//kernel.nit:234 */
775 REGB3 = TAG_Bool(UNTAG_Int(REGB0)>UNTAG_Int(REGB3));
776 /* ./../lib/standard//stream.nit:156 */
777 if (UNTAG_Bool(REGB3)) {
778 /* ./../lib/standard//collection//array.nit:24 */
779 REGB3 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL);
780 if (UNTAG_Bool(REGB3)) {
781 } else {
782 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
783 }
784 REGB3 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]);
785 /* ./../lib/standard//kernel.nit:235 */
786 REGB3 = TAG_Int(UNTAG_Int(REGB3)+UNTAG_Int(REGB0));
787 /* ./../lib/standard//stream.nit:158 */
788 REGB2 = TAG_Bool(ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0])!=NIT_NULL);
789 if (UNTAG_Bool(REGB2)) {
790 } else {
791 nit_abort("Uninitialized attribute %s", "_buffer_pos", LOCATE_standard___stream, 158);
792 }
793 REGB2 = ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]);
794 /* ./../lib/standard//kernel.nit:237 */
795 REGB2 = TAG_Int(UNTAG_Int(REGB3)-UNTAG_Int(REGB2));
796 /* ./../lib/standard//stream.nit:158 */
797 CALL_standard___collection___array___AbstractArray___enlarge(fra.me.REG[1])(fra.me.REG[1], REGB2);
798 /* ./../lib/standard//stream.nit:161 */
799 REGB2 = TAG_Bool(ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0])!=NIT_NULL);
800 if (UNTAG_Bool(REGB2)) {
801 } else {
802 nit_abort("Uninitialized attribute %s", "_buffer_pos", LOCATE_standard___stream, 161);
803 }
804 REGB2 = ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]);
805 /* ./../lib/standard//stream.nit:162 */
806 while(1) {
807 REGB3 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB2), VTID_standard___kernel___Comparable___OTHER(REGB2))) /*cast OTHER*/;
808 if (UNTAG_Bool(REGB3)) {
809 } else {
810 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
811 }
812 /* ./../lib/standard//kernel.nit:232 */
813 REGB3 = TAG_Bool(UNTAG_Int(REGB2)<UNTAG_Int(REGB0));
814 /* ./../lib/standard//stream.nit:162 */
815 if (UNTAG_Bool(REGB3)) {
816 /* ./../lib/standard//stream.nit:163 */
817 fra.me.REG[2] = ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]);
818 REGB3 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
819 if (UNTAG_Bool(REGB3)) {
820 nit_abort("Reciever is null", NULL, LOCATE_standard___stream, 163);
821 }
822 REGB3 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[2])(fra.me.REG[2], REGB2);
823 CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], REGB3);
824 /* ./../lib/standard//stream.nit:164 */
825 REGB3 = TAG_Int(1);
826 /* ./../lib/standard//kernel.nit:235 */
827 REGB3 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB3));
828 /* ./../lib/standard//stream.nit:164 */
829 REGB2 = REGB3;
830 } else {
831 /* ./../lib/standard//stream.nit:162 */
832 goto label2;
833 }
834 }
835 label2: while(0);
836 }
837 /* ./../lib/standard//stream.nit:168 */
838 fra.me.REG[2] = ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]);
839 REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
840 if (UNTAG_Bool(REGB2)) {
841 nit_abort("Reciever is null", NULL, LOCATE_standard___stream, 168);
842 }
843 /* ./../lib/standard//collection//array.nit:24 */
844 REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL);
845 if (UNTAG_Bool(REGB2)) {
846 } else {
847 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
848 }
849 REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
850 REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
851 if (UNTAG_Bool(REGB3)) {
852 } else {
853 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
854 }
855 /* ./../lib/standard//kernel.nit:232 */
856 REGB2 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB2));
857 /* ./../lib/standard//stream.nit:168 */
858 if (UNTAG_Bool(REGB2)) {
859 /* ./../lib/standard//stream.nit:170 */
860 REGB2 = TAG_Int(1);
861 /* ./../lib/standard//kernel.nit:235 */
862 REGB2 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB2));
863 /* ./../lib/standard//stream.nit:170 */
864 ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]) = REGB2;
865 /* ./../lib/standard//stream.nit:171 */
866 goto label3;
867 } else {
868 /* ./../lib/standard//stream.nit:174 */
869 ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]) = REGB0;
870 /* ./../lib/standard//stream.nit:175 */
871 REGB0 = CALL_standard___stream___BufferedIStream___end_reached(fra.me.REG[0])(fra.me.REG[0]);
872 if (UNTAG_Bool(REGB0)) {
873 /* ./../lib/standard//stream.nit:176 */
874 goto label3;
875 } else {
876 /* ./../lib/standard//stream.nit:178 */
877 CALL_standard___stream___BufferedIStream___fill_buffer(fra.me.REG[0])(fra.me.REG[0]);
878 }
879 }
880 }
881 label3: while(0);
882 stack_frame_head = fra.me.prev;
883 return;
884 }
885 val_t standard___stream___BufferedIStream___eof(val_t p0){
886 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
887 val_t REGB0;
888 val_t REGB1;
889 val_t REGB2;
890 val_t tmp;
891 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
892 fra.me.file = LOCATE_standard___stream;
893 fra.me.line = 184;
894 fra.me.meth = LOCATE_standard___stream___BufferedIStream___eof;
895 fra.me.has_broke = 0;
896 fra.me.REG_size = 2;
897 fra.me.REG[0] = NIT_NULL;
898 fra.me.REG[1] = NIT_NULL;
899 fra.me.REG[0] = p0;
900 /* ./../lib/standard//stream.nit:184 */
901 REGB0 = TAG_Bool(ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0])!=NIT_NULL);
902 if (UNTAG_Bool(REGB0)) {
903 } else {
904 nit_abort("Uninitialized attribute %s", "_buffer_pos", LOCATE_standard___stream, 184);
905 }
906 REGB0 = ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]);
907 fra.me.REG[1] = ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]);
908 REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
909 if (UNTAG_Bool(REGB1)) {
910 nit_abort("Reciever is null", NULL, LOCATE_standard___stream, 184);
911 }
912 /* ./../lib/standard//collection//array.nit:24 */
913 REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL);
914 if (UNTAG_Bool(REGB1)) {
915 } else {
916 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
917 }
918 REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]);
919 REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
920 if (UNTAG_Bool(REGB2)) {
921 } else {
922 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
923 }
924 /* ./../lib/standard//kernel.nit:233 */
925 REGB1 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB1));
926 /* ./../lib/standard//stream.nit:184 */
927 if (UNTAG_Bool(REGB1)) {
928 REGB1 = CALL_standard___stream___BufferedIStream___end_reached(fra.me.REG[0])(fra.me.REG[0]);
929 } else {
930 REGB0 = TAG_Bool(false);
931 REGB1 = REGB0;
932 }
933 goto label1;
934 label1: while(0);
935 stack_frame_head = fra.me.prev;
936 return REGB1;
937 }
938 void standard___stream___BufferedIStream___fill_buffer(val_t p0){
939 struct {struct stack_frame_t me;} fra;
940 val_t tmp;
941 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
942 fra.me.file = LOCATE_standard___stream;
943 fra.me.line = 192;
944 fra.me.meth = LOCATE_standard___stream___BufferedIStream___fill_buffer;
945 fra.me.has_broke = 0;
946 fra.me.REG_size = 0;
947 /* ./../lib/standard//stream.nit:192 */
948 nit_abort("Deferred method called", NULL, LOCATE_standard___stream, 192);
949 stack_frame_head = fra.me.prev;
950 return;
951 }
952 val_t standard___stream___BufferedIStream___end_reached(val_t p0){
953 struct {struct stack_frame_t me;} fra;
954 val_t tmp;
955 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
956 fra.me.file = LOCATE_standard___stream;
957 fra.me.line = 195;
958 fra.me.meth = LOCATE_standard___stream___BufferedIStream___end_reached;
959 fra.me.has_broke = 0;
960 fra.me.REG_size = 0;
961 /* ./../lib/standard//stream.nit:195 */
962 nit_abort("Deferred method called", NULL, LOCATE_standard___stream, 195);
963 stack_frame_head = fra.me.prev;
964 return NIT_NULL;
965 }
966 void standard___stream___BufferedIStream___prepare_buffer(val_t p0, val_t p1){
967 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
968 val_t REGB0;
969 val_t tmp;
970 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
971 fra.me.file = LOCATE_standard___stream;
972 fra.me.line = 198;
973 fra.me.meth = LOCATE_standard___stream___BufferedIStream___prepare_buffer;
974 fra.me.has_broke = 0;
975 fra.me.REG_size = 2;
976 fra.me.REG[0] = NIT_NULL;
977 fra.me.REG[1] = NIT_NULL;
978 fra.me.REG[0] = p0;
979 REGB0 = p1;
980 /* ./../lib/standard//stream.nit:201 */
981 fra.me.REG[1] = NEW_Buffer_standard___string___Buffer___with_capacity(REGB0);
982 ATTR_standard___stream___BufferedIStream____buffer(fra.me.REG[0]) = fra.me.REG[1];
983 /* ./../lib/standard//stream.nit:202 */
984 REGB0 = TAG_Int(0);
985 ATTR_standard___stream___BufferedIStream____buffer_pos(fra.me.REG[0]) = REGB0;
986 stack_frame_head = fra.me.prev;
987 return;
988 }
989 void standard___stream___FDStream___close(val_t p0){
990 struct {struct stack_frame_t me;} fra;
991 val_t REGB0;
992 val_t tmp;
993 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
994 fra.me.file = LOCATE_standard___stream;
995 fra.me.line = 218;
996 fra.me.meth = LOCATE_standard___stream___FDStream___close;
997 fra.me.has_broke = 0;
998 fra.me.REG_size = 1;
999 fra.me.REG[0] = NIT_NULL;
1000 fra.me.REG[0] = p0;
1001 /* ./../lib/standard//stream.nit:218 */
1002 REGB0 = TAG_Bool(ATTR_standard___stream___FDStream____fd(fra.me.REG[0])!=NIT_NULL);
1003 if (UNTAG_Bool(REGB0)) {
1004 } else {
1005 nit_abort("Uninitialized attribute %s", "_fd", LOCATE_standard___stream, 218);
1006 }
1007 REGB0 = ATTR_standard___stream___FDStream____fd(fra.me.REG[0]);
1008 CALL_standard___stream___FDStream___native_close(fra.me.REG[0])(fra.me.REG[0], REGB0);
1009 stack_frame_head = fra.me.prev;
1010 return;
1011 }
1012 val_t standard___stream___FDStream___native_close(val_t p0, val_t p1){
1013 struct {struct stack_frame_t me;} fra;
1014 val_t REGB0;
1015 val_t tmp;
1016 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
1017 fra.me.file = LOCATE_standard___stream;
1018 fra.me.line = 220;
1019 fra.me.meth = LOCATE_standard___stream___FDStream___native_close;
1020 fra.me.has_broke = 0;
1021 fra.me.REG_size = 1;
1022 fra.me.REG[0] = NIT_NULL;
1023 fra.me.REG[0] = p0;
1024 REGB0 = p1;
1025 /* ./../lib/standard//stream.nit:220 */
1026 REGB0 = FDStream_native_close___out(fra.me.REG[0], REGB0);
1027 stack_frame_head = fra.me.prev;
1028 return REGB0;
1029 }
1030 val_t standard___stream___FDStream___native_read_char(val_t p0, val_t p1){
1031 struct {struct stack_frame_t me;} fra;
1032 val_t REGB0;
1033 val_t tmp;
1034 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
1035 fra.me.file = LOCATE_standard___stream;
1036 fra.me.line = 221;
1037 fra.me.meth = LOCATE_standard___stream___FDStream___native_read_char;
1038 fra.me.has_broke = 0;
1039 fra.me.REG_size = 1;
1040 fra.me.REG[0] = NIT_NULL;
1041 fra.me.REG[0] = p0;
1042 REGB0 = p1;
1043 /* ./../lib/standard//stream.nit:221 */
1044 REGB0 = FDStream_native_read_char___out(fra.me.REG[0], REGB0);
1045 stack_frame_head = fra.me.prev;
1046 return REGB0;
1047 }
1048 val_t standard___stream___FDStream___native_read(val_t p0, val_t p1, val_t p2, val_t p3){
1049 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
1050 val_t REGB0;
1051 val_t REGB1;
1052 val_t tmp;
1053 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
1054 fra.me.file = LOCATE_standard___stream;
1055 fra.me.line = 222;
1056 fra.me.meth = LOCATE_standard___stream___FDStream___native_read;
1057 fra.me.has_broke = 0;
1058 fra.me.REG_size = 2;
1059 fra.me.REG[0] = NIT_NULL;
1060 fra.me.REG[1] = NIT_NULL;
1061 fra.me.REG[0] = p0;
1062 REGB0 = p1;
1063 fra.me.REG[1] = p2;
1064 REGB1 = p3;
1065 /* ./../lib/standard//stream.nit:222 */
1066 REGB1 = FDStream_native_read___out(fra.me.REG[0], REGB0, fra.me.REG[1], REGB1);
1067 stack_frame_head = fra.me.prev;
1068 return REGB1;
1069 }
1070 val_t standard___stream___FDStream___native_write(val_t p0, val_t p1, val_t p2, val_t p3){
1071 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
1072 val_t REGB0;
1073 val_t REGB1;
1074 val_t tmp;
1075 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
1076 fra.me.file = LOCATE_standard___stream;
1077 fra.me.line = 223;
1078 fra.me.meth = LOCATE_standard___stream___FDStream___native_write;
1079 fra.me.has_broke = 0;
1080 fra.me.REG_size = 2;
1081 fra.me.REG[0] = NIT_NULL;
1082 fra.me.REG[1] = NIT_NULL;
1083 fra.me.REG[0] = p0;
1084 REGB0 = p1;
1085 fra.me.REG[1] = p2;
1086 REGB1 = p3;
1087 /* ./../lib/standard//stream.nit:223 */
1088 REGB1 = FDStream_native_write___out(fra.me.REG[0], REGB0, fra.me.REG[1], REGB1);
1089 stack_frame_head = fra.me.prev;
1090 return REGB1;
1091 }
1092 void standard___stream___FDStream___init(val_t p0, val_t p1, int* init_table){
1093 int itpos1 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___stream___FDStream].i;
1094 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
1095 val_t REGB0;
1096 val_t tmp;
1097 if (init_table[itpos1]) return;
1098 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
1099 fra.me.file = LOCATE_standard___stream;
1100 fra.me.line = 225;
1101 fra.me.meth = LOCATE_standard___stream___FDStream___init;
1102 fra.me.has_broke = 0;
1103 fra.me.REG_size = 2;
1104 fra.me.REG[0] = NIT_NULL;
1105 fra.me.REG[1] = NIT_NULL;
1106 fra.me.REG[0] = p0;
1107 REGB0 = p1;
1108 /* ./../lib/standard//stream.nit:225 */
1109 fra.me.REG[1] = fra.me.REG[0];
1110 CALL_standard___stream___IOS___init(fra.me.REG[0])(fra.me.REG[0], init_table);
1111 ATTR_standard___stream___FDStream____fd(fra.me.REG[1]) = REGB0;
1112 stack_frame_head = fra.me.prev;
1113 init_table[itpos1] = 1;
1114 return;
1115 }
1116 val_t standard___stream___FDIStream___eof(val_t p0){
1117 struct {struct stack_frame_t me;} fra;
1118 val_t REGB0;
1119 val_t tmp;
1120 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
1121 fra.me.file = LOCATE_standard___stream;
1122 fra.me.line = 231;
1123 fra.me.meth = LOCATE_standard___stream___FDIStream___eof;
1124 fra.me.has_broke = 0;
1125 fra.me.REG_size = 1;
1126 fra.me.REG[0] = NIT_NULL;
1127 fra.me.REG[0] = p0;
1128 /* ./../lib/standard//stream.nit:231 */
1129 REGB0 = TAG_Bool(ATTR_standard___stream___FDIStream____eof(fra.me.REG[0])!=NIT_NULL);
1130 if (UNTAG_Bool(REGB0)) {
1131 } else {
1132 nit_abort("Uninitialized attribute %s", "_eof", LOCATE_standard___stream, 231);
1133 }
1134 REGB0 = ATTR_standard___stream___FDIStream____eof(fra.me.REG[0]);
1135 stack_frame_head = fra.me.prev;
1136 return REGB0;
1137 }
1138 val_t standard___stream___FDIStream___read_char(val_t p0){
1139 struct {struct stack_frame_t me;} fra;
1140 val_t REGB0;
1141 val_t REGB1;
1142 val_t REGB2;
1143 val_t tmp;
1144 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
1145 fra.me.file = LOCATE_standard___stream;
1146 fra.me.line = 233;
1147 fra.me.meth = LOCATE_standard___stream___FDIStream___read_char;
1148 fra.me.has_broke = 0;
1149 fra.me.REG_size = 1;
1150 fra.me.REG[0] = NIT_NULL;
1151 fra.me.REG[0] = p0;
1152 /* ./../lib/standard//stream.nit:235 */
1153 REGB0 = TAG_Bool(ATTR_standard___stream___FDStream____fd(fra.me.REG[0])!=NIT_NULL);
1154 if (UNTAG_Bool(REGB0)) {
1155 } else {
1156 nit_abort("Uninitialized attribute %s", "_fd", LOCATE_standard___stream, 235);
1157 }
1158 REGB0 = ATTR_standard___stream___FDStream____fd(fra.me.REG[0]);
1159 REGB0 = CALL_standard___stream___FDStream___native_read_char(fra.me.REG[0])(fra.me.REG[0], REGB0);
1160 /* ./../lib/standard//stream.nit:236 */
1161 REGB1 = TAG_Int(1);
1162 /* ./../lib/standard//kernel.nit:236 */
1163 REGB1 = TAG_Int(-UNTAG_Int(REGB1));
1164 /* ./../lib/standard//stream.nit:236 */
1165 REGB2 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB1));
1166 if (UNTAG_Bool(REGB2)) {
1167 } else {
1168 /* ./../lib/standard//kernel.nit:227 */
1169 REGB1 = TAG_Bool((REGB0)==(REGB1));
1170 /* ./../lib/standard//stream.nit:236 */
1171 REGB2 = REGB1;
1172 }
1173 if (UNTAG_Bool(REGB2)) {
1174 REGB2 = TAG_Bool(true);
1175 ATTR_standard___stream___FDIStream____eof(fra.me.REG[0]) = REGB2;
1176 }
1177 /* ./../lib/standard//stream.nit:237 */
1178 goto label1;
1179 label1: while(0);
1180 stack_frame_head = fra.me.prev;
1181 return REGB0;
1182 }
1183 void standard___stream___FDIStream___init(val_t p0, val_t p1, int* init_table){
1184 int itpos2 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___stream___FDIStream].i;
1185 struct {struct stack_frame_t me;} fra;
1186 val_t REGB0;
1187 val_t tmp;
1188 if (init_table[itpos2]) return;
1189 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
1190 fra.me.file = LOCATE_standard___stream;
1191 fra.me.line = 240;
1192 fra.me.meth = LOCATE_standard___stream___FDIStream___init;
1193 fra.me.has_broke = 0;
1194 fra.me.REG_size = 1;
1195 fra.me.REG[0] = NIT_NULL;
1196 fra.me.REG[0] = p0;
1197 REGB0 = p1;
1198 /* ./../lib/standard//stream.nit:240 */
1199 CALL_standard___stream___FDStream___init(fra.me.REG[0])(fra.me.REG[0], REGB0, init_table);
1200 stack_frame_head = fra.me.prev;
1201 init_table[itpos2] = 1;
1202 return;
1203 }
1204 val_t standard___stream___FDOStream___is_writable(val_t p0){
1205 struct {struct stack_frame_t me;} fra;
1206 val_t REGB0;
1207 val_t tmp;
1208 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
1209 fra.me.file = LOCATE_standard___stream;
1210 fra.me.line = 246;
1211 fra.me.meth = LOCATE_standard___stream___FDOStream___is_writable;
1212 fra.me.has_broke = 0;
1213 fra.me.REG_size = 1;
1214 fra.me.REG[0] = NIT_NULL;
1215 fra.me.REG[0] = p0;
1216 /* ./../lib/standard//stream.nit:246 */
1217 REGB0 = TAG_Bool(ATTR_standard___stream___FDOStream____is_writable(fra.me.REG[0])!=NIT_NULL);
1218 if (UNTAG_Bool(REGB0)) {
1219 } else {
1220 nit_abort("Uninitialized attribute %s", "_is_writable", LOCATE_standard___stream, 246);
1221 }
1222 REGB0 = ATTR_standard___stream___FDOStream____is_writable(fra.me.REG[0]);
1223 stack_frame_head = fra.me.prev;
1224 return REGB0;
1225 }
1226 void standard___stream___FDOStream___write(val_t p0, val_t p1){
1227 struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
1228 val_t REGB0;
1229 val_t REGB1;
1230 val_t REGB2;
1231 val_t tmp;
1232 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
1233 fra.me.file = LOCATE_standard___stream;
1234 fra.me.line = 248;
1235 fra.me.meth = LOCATE_standard___stream___FDOStream___write;
1236 fra.me.has_broke = 0;
1237 fra.me.REG_size = 3;
1238 fra.me.REG[0] = NIT_NULL;
1239 fra.me.REG[1] = NIT_NULL;
1240 fra.me.REG[2] = NIT_NULL;
1241 fra.me.REG[0] = p0;
1242 fra.me.REG[1] = p1;
1243 /* ./../lib/standard//stream.nit:250 */
1244 REGB0 = TAG_Bool(ATTR_standard___stream___FDStream____fd(fra.me.REG[0])!=NIT_NULL);
1245 if (UNTAG_Bool(REGB0)) {
1246 } else {
1247 nit_abort("Uninitialized attribute %s", "_fd", LOCATE_standard___stream, 250);
1248 }
1249 REGB0 = ATTR_standard___stream___FDStream____fd(fra.me.REG[0]);
1250 fra.me.REG[2] = CALL_standard___string___String___to_cstring(fra.me.REG[1])(fra.me.REG[1]);
1251 /* ./../lib/standard//collection//array.nit:24 */
1252 REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL);
1253 if (UNTAG_Bool(REGB1)) {
1254 } else {
1255 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
1256 }
1257 REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]);
1258 /* ./../lib/standard//stream.nit:250 */
1259 REGB1 = CALL_standard___stream___FDStream___native_write(fra.me.REG[0])(fra.me.REG[0], REGB0, fra.me.REG[2], REGB1);
1260 /* ./../lib/standard//collection//array.nit:24 */
1261 REGB0 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL);
1262 if (UNTAG_Bool(REGB0)) {
1263 } else {
1264 nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
1265 }
1266 REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]);
1267 REGB2 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
1268 if (UNTAG_Bool(REGB2)) {
1269 } else {
1270 nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
1271 }
1272 /* ./../lib/standard//kernel.nit:232 */
1273 REGB0 = TAG_Bool(UNTAG_Int(REGB1)<UNTAG_Int(REGB0));
1274 /* ./../lib/standard//stream.nit:251 */
1275 if (UNTAG_Bool(REGB0)) {
1276 REGB0 = TAG_Bool(false);
1277 ATTR_standard___stream___FDOStream____is_writable(fra.me.REG[0]) = REGB0;
1278 }
1279 stack_frame_head = fra.me.prev;
1280 return;
1281 }
1282 void standard___stream___FDOStream___init(val_t p0, val_t p1, int* init_table){
1283 int itpos3 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___stream___FDOStream].i;
1284 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
1285 val_t REGB0;
1286 val_t tmp;
1287 if (init_table[itpos3]) return;
1288 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
1289 fra.me.file = LOCATE_standard___stream;
1290 fra.me.line = 254;
1291 fra.me.meth = LOCATE_standard___stream___FDOStream___init;
1292 fra.me.has_broke = 0;
1293 fra.me.REG_size = 2;
1294 fra.me.REG[0] = NIT_NULL;
1295 fra.me.REG[1] = NIT_NULL;
1296 fra.me.REG[0] = p0;
1297 REGB0 = p1;
1298 /* ./../lib/standard//stream.nit:254 */
1299 fra.me.REG[1] = fra.me.REG[0];
1300 CALL_standard___stream___FDStream___init(fra.me.REG[0])(fra.me.REG[0], REGB0, init_table);
1301 /* ./../lib/standard//stream.nit:256 */
1302 REGB0 = TAG_Bool(true);
1303 ATTR_standard___stream___FDOStream____is_writable(fra.me.REG[1]) = REGB0;
1304 stack_frame_head = fra.me.prev;
1305 init_table[itpos3] = 1;
1306 return;
1307 }
1308 void standard___stream___FDIOStream___init(val_t p0, val_t p1, int* init_table){
1309 int itpos4 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___stream___FDIOStream].i;
1310 struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
1311 val_t REGB0;
1312 val_t REGB1;
1313 val_t tmp;
1314 if (init_table[itpos4]) return;
1315 fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
1316 fra.me.file = LOCATE_standard___stream;
1317 fra.me.line = 264;
1318 fra.me.meth = LOCATE_standard___stream___FDIOStream___init;
1319 fra.me.has_broke = 0;
1320 fra.me.REG_size = 2;
1321 fra.me.REG[0] = NIT_NULL;
1322 fra.me.REG[1] = NIT_NULL;
1323 fra.me.REG[0] = p0;
1324 REGB0 = p1;
1325 /* ./../lib/standard//stream.nit:264 */
1326 fra.me.REG[1] = fra.me.REG[0];
1327 REGB1 = REGB0;
1328 CALL_standard___stream___FDIStream___init(fra.me.REG[0])(fra.me.REG[0], REGB0, init_table);
1329 CALL_standard___stream___FDOStream___init(fra.me.REG[0])(fra.me.REG[0], REGB0, init_table);
1330 /* ./../lib/standard//stream.nit:266 */
1331 ATTR_standard___stream___FDStream____fd(fra.me.REG[1]) = REGB1;
1332 /* ./../lib/standard//stream.nit:267 */
1333 REGB1 = TAG_Bool(true);
1334 ATTR_standard___stream___FDOStream____is_writable(fra.me.REG[1]) = REGB1;
1335 stack_frame_head = fra.me.prev;
1336 init_table[itpos4] = 1;
1337 return;
1338 }