1 /* This C file is generated by NIT to compile module abstract_collection. */
2 #include "abstract_collection._sep.h"
3 val_t
abstract_collection___Collection___iterator(val_t p0
){
4 struct {struct stack_frame_t me
;} fra
;
6 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
7 fra
.me
.file
= LOCATE_abstract_collection
;
9 fra
.me
.meth
= LOCATE_abstract_collection___Collection___iterator
;
12 /* ./../lib/standard//collection//abstract_collection.nit:42 */
13 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 42);
14 stack_frame_head
= fra
.me
.prev
;
17 void abstract_collection___Collection___iterate(val_t p0
, struct stack_frame_t
*closctx_param
, fun_t clos_fun0
){
18 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
22 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
23 fra
.me
.file
= LOCATE_abstract_collection
;
25 fra
.me
.meth
= LOCATE_abstract_collection___Collection___iterate
;
28 fra
.me
.REG
[0] = NIT_NULL
;
29 fra
.me
.REG
[1] = NIT_NULL
;
30 fra
.me
.closure_ctx
= closctx_param
;
31 fra
.me
.closure_funs
= CREG
;
34 /* ./../lib/standard//collection//abstract_collection.nit:49 */
35 fra
.me
.REG
[0] = CALL_abstract_collection___Collection___iterator(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
36 /* ./../lib/standard//collection//abstract_collection.nit:50 */
38 REGB0
= CALL_abstract_collection___Iterator___is_ok(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
39 if (UNTAG_Bool(REGB0
)) {
40 /* ./../lib/standard//collection//abstract_collection.nit:51 */
41 fra
.me
.REG
[1] = CALL_abstract_collection___Iterator___item(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
42 ((void (*)(struct stack_frame_t
*, val_t
))(CREG
[0]))(closctx_param
, fra
.me
.REG
[1]);
43 if (closctx_param
->has_broke
) {
46 /* ./../lib/standard//collection//abstract_collection.nit:52 */
47 CALL_abstract_collection___Iterator___next(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
49 /* ./../lib/standard//collection//abstract_collection.nit:50 */
55 stack_frame_head
= fra
.me
.prev
;
58 val_t
abstract_collection___Collection___is_empty(val_t p0
){
59 struct {struct stack_frame_t me
;} fra
;
61 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
62 fra
.me
.file
= LOCATE_abstract_collection
;
64 fra
.me
.meth
= LOCATE_abstract_collection___Collection___is_empty
;
67 /* ./../lib/standard//collection//abstract_collection.nit:56 */
68 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 56);
69 stack_frame_head
= fra
.me
.prev
;
72 val_t
abstract_collection___Collection___length(val_t p0
){
73 struct {struct stack_frame_t me
;} fra
;
75 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
76 fra
.me
.file
= LOCATE_abstract_collection
;
78 fra
.me
.meth
= LOCATE_abstract_collection___Collection___length
;
81 /* ./../lib/standard//collection//abstract_collection.nit:59 */
82 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 59);
83 stack_frame_head
= fra
.me
.prev
;
86 val_t
abstract_collection___Collection___has(val_t p0
, val_t p1
){
87 struct {struct stack_frame_t me
;} fra
;
89 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
90 fra
.me
.file
= LOCATE_abstract_collection
;
92 fra
.me
.meth
= LOCATE_abstract_collection___Collection___has
;
95 /* ./../lib/standard//collection//abstract_collection.nit:62 */
96 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 62);
97 stack_frame_head
= fra
.me
.prev
;
100 val_t
abstract_collection___Collection___has_only(val_t p0
, val_t p1
){
101 struct {struct stack_frame_t me
;} fra
;
103 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
104 fra
.me
.file
= LOCATE_abstract_collection
;
106 fra
.me
.meth
= LOCATE_abstract_collection___Collection___has_only
;
107 fra
.me
.has_broke
= 0;
109 /* ./../lib/standard//collection//abstract_collection.nit:66 */
110 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 66);
111 stack_frame_head
= fra
.me
.prev
;
114 val_t
abstract_collection___Collection___count(val_t p0
, val_t p1
){
115 struct {struct stack_frame_t me
;} fra
;
117 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
118 fra
.me
.file
= LOCATE_abstract_collection
;
120 fra
.me
.meth
= LOCATE_abstract_collection___Collection___count
;
121 fra
.me
.has_broke
= 0;
123 /* ./../lib/standard//collection//abstract_collection.nit:71 */
124 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 71);
125 stack_frame_head
= fra
.me
.prev
;
128 val_t
abstract_collection___Collection___first(val_t p0
){
129 struct {struct stack_frame_t me
;} fra
;
131 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
132 fra
.me
.file
= LOCATE_abstract_collection
;
134 fra
.me
.meth
= LOCATE_abstract_collection___Collection___first
;
135 fra
.me
.has_broke
= 0;
137 /* ./../lib/standard//collection//abstract_collection.nit:75 */
138 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 75);
139 stack_frame_head
= fra
.me
.prev
;
142 val_t
abstract_collection___NaiveCollection___is_empty(val_t p0
){
143 struct {struct stack_frame_t me
;} fra
;
148 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
149 fra
.me
.file
= LOCATE_abstract_collection
;
151 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___is_empty
;
152 fra
.me
.has_broke
= 0;
154 fra
.me
.REG
[0] = NIT_NULL
;
156 /* ./../lib/standard//collection//abstract_collection.nit:83 */
157 REGB0
= CALL_abstract_collection___Collection___length(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
159 REGB2
= TAG_Bool(IS_EQUAL_OO(REGB0
,REGB1
));
160 if (UNTAG_Bool(REGB2
)) {
162 /* ./../lib/standard//kernel.nit:207 */
163 REGB1
= TAG_Bool((REGB0
)==(REGB1
));
164 /* ./../lib/standard//collection//abstract_collection.nit:83 */
169 stack_frame_head
= fra
.me
.prev
;
172 val_t
abstract_collection___NaiveCollection___length(val_t p0
){
173 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
176 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
177 fra
.me
.file
= LOCATE_abstract_collection
;
179 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___length
;
180 fra
.me
.has_broke
= 0;
182 fra
.me
.REG
[0] = NIT_NULL
;
183 fra
.me
.REG
[1] = NIT_NULL
;
185 /* ./../lib/standard//collection//abstract_collection.nit:87 */
187 fra
.me
.REG
[1] = REGB0
;
188 CALL_abstract_collection___Collection___iterate(fra
.me
.REG
[0])(fra
.me
.REG
[0], (&(fra
.me
)), ((fun_t
)OC_abstract_collection___NaiveCollection___length_1
));
189 /* ./../lib/standard//collection//abstract_collection.nit:89 */
190 REGB0
= fra
.me
.REG
[1];
193 stack_frame_head
= fra
.me
.prev
;
196 void OC_abstract_collection___NaiveCollection___length_1(struct stack_frame_t
*closctx
, val_t p0
, struct stack_frame_t
*closctx_param
, fun_t clos_fun0
){
197 struct {struct stack_frame_t me
;} fra
;
201 /* ./../lib/standard//collection//abstract_collection.nit:88 */
202 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
203 fra
.me
.file
= LOCATE_abstract_collection
;
205 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___length
;
206 fra
.me
.has_broke
= 0;
208 fra
.me
.REG
[0] = NIT_NULL
;
209 fra
.me
.closure_ctx
= closctx_param
;
210 fra
.me
.closure_funs
= CREG
;
213 /* ./../lib/standard//kernel.nit:215 */
214 REGB0
= TAG_Int(UNTAG_Int(closctx
->REG
[1])+UNTAG_Int(closctx
->REG
[1]));
215 /* ./../lib/standard//collection//abstract_collection.nit:88 */
216 closctx
->REG
[1] = REGB0
;
217 stack_frame_head
= fra
.me
.prev
;
220 val_t
abstract_collection___NaiveCollection___has(val_t p0
, val_t p1
){
221 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
224 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
225 fra
.me
.file
= LOCATE_abstract_collection
;
227 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___has
;
228 fra
.me
.has_broke
= 0;
230 fra
.me
.REG
[0] = NIT_NULL
;
231 fra
.me
.REG
[1] = NIT_NULL
;
234 CALL_abstract_collection___Collection___iterate(fra
.me
.REG
[0])(fra
.me
.REG
[0], (&(fra
.me
)), ((fun_t
)OC_abstract_collection___NaiveCollection___has_1
));
235 switch ((&(fra
.me
))->has_broke
) {
237 case 1: (&(fra
.me
))->has_broke
= 0; goto label3
;
239 /* ./../lib/standard//collection//abstract_collection.nit:95 */
240 REGB0
= TAG_Bool(false);
241 fra
.me
.REG
[0] = REGB0
;
244 stack_frame_head
= fra
.me
.prev
;
245 return fra
.me
.REG
[0];
247 void OC_abstract_collection___NaiveCollection___has_1(struct stack_frame_t
*closctx
, val_t p0
, struct stack_frame_t
*closctx_param
, fun_t clos_fun0
){
248 struct {struct stack_frame_t me
;} fra
;
253 /* ./../lib/standard//collection//abstract_collection.nit:94 */
254 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
255 fra
.me
.file
= LOCATE_abstract_collection
;
257 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___has
;
258 fra
.me
.has_broke
= 0;
260 fra
.me
.REG
[0] = NIT_NULL
;
261 fra
.me
.closure_ctx
= closctx_param
;
262 fra
.me
.closure_funs
= CREG
;
265 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[0],closctx
->REG
[1]));
266 if (UNTAG_Bool(REGB0
)) {
268 REGB1
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
269 if (UNTAG_Bool(REGB1
)) {
270 REGB1
= TAG_Bool(false);
273 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], closctx
->REG
[1]);
277 if (UNTAG_Bool(REGB0
)) {
278 REGB0
= TAG_Bool(true);
279 closctx
->REG
[0] = REGB0
;
280 closctx
->has_broke
= 1;
284 stack_frame_head
= fra
.me
.prev
;
287 val_t
abstract_collection___NaiveCollection___has_only(val_t p0
, val_t p1
){
288 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
291 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
292 fra
.me
.file
= LOCATE_abstract_collection
;
294 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___has_only
;
295 fra
.me
.has_broke
= 0;
297 fra
.me
.REG
[0] = NIT_NULL
;
298 fra
.me
.REG
[1] = NIT_NULL
;
301 CALL_abstract_collection___Collection___iterate(fra
.me
.REG
[0])(fra
.me
.REG
[0], (&(fra
.me
)), ((fun_t
)OC_abstract_collection___NaiveCollection___has_only_1
));
302 switch ((&(fra
.me
))->has_broke
) {
304 case 1: (&(fra
.me
))->has_broke
= 0; goto label3
;
306 /* ./../lib/standard//collection//abstract_collection.nit:101 */
307 REGB0
= TAG_Bool(true);
308 fra
.me
.REG
[0] = REGB0
;
311 stack_frame_head
= fra
.me
.prev
;
312 return fra
.me
.REG
[0];
314 void OC_abstract_collection___NaiveCollection___has_only_1(struct stack_frame_t
*closctx
, val_t p0
, struct stack_frame_t
*closctx_param
, fun_t clos_fun0
){
315 struct {struct stack_frame_t me
;} fra
;
320 /* ./../lib/standard//collection//abstract_collection.nit:100 */
321 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
322 fra
.me
.file
= LOCATE_abstract_collection
;
324 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___has_only
;
325 fra
.me
.has_broke
= 0;
327 fra
.me
.REG
[0] = NIT_NULL
;
328 fra
.me
.closure_ctx
= closctx_param
;
329 fra
.me
.closure_funs
= CREG
;
332 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[0],closctx
->REG
[1]));
333 if (UNTAG_Bool(REGB0
)) {
335 REGB1
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
336 if (UNTAG_Bool(REGB1
)) {
337 REGB1
= TAG_Bool(false);
340 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], closctx
->REG
[1]);
344 REGB0
= TAG_Bool(!UNTAG_Bool(REGB0
));
345 if (UNTAG_Bool(REGB0
)) {
346 REGB0
= TAG_Bool(false);
347 closctx
->REG
[0] = REGB0
;
348 closctx
->has_broke
= 1;
352 stack_frame_head
= fra
.me
.prev
;
355 val_t
abstract_collection___NaiveCollection___count(val_t p0
, val_t p1
){
356 struct {struct stack_frame_t me
; val_t MORE_REG
[2];} fra
;
359 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
360 fra
.me
.file
= LOCATE_abstract_collection
;
362 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___count
;
363 fra
.me
.has_broke
= 0;
365 fra
.me
.REG
[0] = NIT_NULL
;
366 fra
.me
.REG
[1] = NIT_NULL
;
367 fra
.me
.REG
[2] = NIT_NULL
;
370 /* ./../lib/standard//collection//abstract_collection.nit:106 */
372 fra
.me
.REG
[2] = REGB0
;
373 CALL_abstract_collection___Collection___iterate(fra
.me
.REG
[0])(fra
.me
.REG
[0], (&(fra
.me
)), ((fun_t
)OC_abstract_collection___NaiveCollection___count_1
));
374 /* ./../lib/standard//collection//abstract_collection.nit:108 */
375 REGB0
= fra
.me
.REG
[2];
378 stack_frame_head
= fra
.me
.prev
;
381 void OC_abstract_collection___NaiveCollection___count_1(struct stack_frame_t
*closctx
, val_t p0
, struct stack_frame_t
*closctx_param
, fun_t clos_fun0
){
382 struct {struct stack_frame_t me
;} fra
;
387 /* ./../lib/standard//collection//abstract_collection.nit:107 */
388 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
389 fra
.me
.file
= LOCATE_abstract_collection
;
391 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___count
;
392 fra
.me
.has_broke
= 0;
394 fra
.me
.REG
[0] = NIT_NULL
;
395 fra
.me
.closure_ctx
= closctx_param
;
396 fra
.me
.closure_funs
= CREG
;
399 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[0],closctx
->REG
[1]));
400 if (UNTAG_Bool(REGB0
)) {
402 REGB1
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
403 if (UNTAG_Bool(REGB1
)) {
404 REGB1
= TAG_Bool(false);
407 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], closctx
->REG
[1]);
411 if (UNTAG_Bool(REGB0
)) {
413 /* ./../lib/standard//kernel.nit:215 */
414 REGB0
= TAG_Int(UNTAG_Int(closctx
->REG
[2])+UNTAG_Int(REGB0
));
415 /* ./../lib/standard//collection//abstract_collection.nit:107 */
416 closctx
->REG
[2] = REGB0
;
418 stack_frame_head
= fra
.me
.prev
;
421 val_t
abstract_collection___NaiveCollection___first(val_t p0
){
422 struct {struct stack_frame_t me
;} fra
;
426 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
427 fra
.me
.file
= LOCATE_abstract_collection
;
429 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___first
;
430 fra
.me
.has_broke
= 0;
432 fra
.me
.REG
[0] = NIT_NULL
;
434 /* ./../lib/standard//collection//abstract_collection.nit:113 */
435 REGB0
= CALL_abstract_collection___Collection___length(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
437 /* ./../lib/standard//kernel.nit:214 */
438 REGB1
= TAG_Bool(UNTAG_Int(REGB0
)>UNTAG_Int(REGB1
));
439 /* ./../lib/standard//collection//abstract_collection.nit:113 */
440 if (UNTAG_Bool(REGB1
)) {
442 nit_abort("Assert failed", NULL
, LOCATE_abstract_collection
, 113);
444 /* ./../lib/standard//collection//abstract_collection.nit:114 */
445 fra
.me
.REG
[0] = CALL_abstract_collection___Collection___iterator(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
446 fra
.me
.REG
[0] = CALL_abstract_collection___Iterator___item(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
449 stack_frame_head
= fra
.me
.prev
;
450 return fra
.me
.REG
[0];
452 val_t
abstract_collection___Iterator___item(val_t p0
){
453 struct {struct stack_frame_t me
;} fra
;
455 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
456 fra
.me
.file
= LOCATE_abstract_collection
;
458 fra
.me
.meth
= LOCATE_abstract_collection___Iterator___item
;
459 fra
.me
.has_broke
= 0;
461 /* ./../lib/standard//collection//abstract_collection.nit:121 */
462 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 121);
463 stack_frame_head
= fra
.me
.prev
;
466 void abstract_collection___Iterator___next(val_t p0
){
467 struct {struct stack_frame_t me
;} fra
;
469 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
470 fra
.me
.file
= LOCATE_abstract_collection
;
472 fra
.me
.meth
= LOCATE_abstract_collection___Iterator___next
;
473 fra
.me
.has_broke
= 0;
475 /* ./../lib/standard//collection//abstract_collection.nit:125 */
476 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 125);
477 stack_frame_head
= fra
.me
.prev
;
480 val_t
abstract_collection___Iterator___is_ok(val_t p0
){
481 struct {struct stack_frame_t me
;} fra
;
483 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
484 fra
.me
.file
= LOCATE_abstract_collection
;
486 fra
.me
.meth
= LOCATE_abstract_collection___Iterator___is_ok
;
487 fra
.me
.has_broke
= 0;
489 /* ./../lib/standard//collection//abstract_collection.nit:129 */
490 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 129);
491 stack_frame_head
= fra
.me
.prev
;
494 val_t
abstract_collection___Container___first(val_t p0
){
495 struct {struct stack_frame_t me
;} fra
;
497 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
498 fra
.me
.file
= LOCATE_abstract_collection
;
500 fra
.me
.meth
= LOCATE_abstract_collection___Container___first
;
501 fra
.me
.has_broke
= 0;
503 fra
.me
.REG
[0] = NIT_NULL
;
505 /* ./../lib/standard//collection//abstract_collection.nit:137 */
506 fra
.me
.REG
[0] = ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]);
509 stack_frame_head
= fra
.me
.prev
;
510 return fra
.me
.REG
[0];
512 val_t
abstract_collection___Container___is_empty(val_t p0
){
513 struct {struct stack_frame_t me
;} fra
;
516 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
517 fra
.me
.file
= LOCATE_abstract_collection
;
519 fra
.me
.meth
= LOCATE_abstract_collection___Container___is_empty
;
520 fra
.me
.has_broke
= 0;
522 fra
.me
.REG
[0] = NIT_NULL
;
524 /* ./../lib/standard//collection//abstract_collection.nit:139 */
525 REGB0
= TAG_Bool(false);
528 stack_frame_head
= fra
.me
.prev
;
531 val_t
abstract_collection___Container___length(val_t p0
){
532 struct {struct stack_frame_t me
;} fra
;
535 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
536 fra
.me
.file
= LOCATE_abstract_collection
;
538 fra
.me
.meth
= LOCATE_abstract_collection___Container___length
;
539 fra
.me
.has_broke
= 0;
541 fra
.me
.REG
[0] = NIT_NULL
;
543 /* ./../lib/standard//collection//abstract_collection.nit:141 */
547 stack_frame_head
= fra
.me
.prev
;
550 val_t
abstract_collection___Container___has(val_t p0
, val_t p1
){
551 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
555 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
556 fra
.me
.file
= LOCATE_abstract_collection
;
558 fra
.me
.meth
= LOCATE_abstract_collection___Container___has
;
559 fra
.me
.has_broke
= 0;
561 fra
.me
.REG
[0] = NIT_NULL
;
562 fra
.me
.REG
[1] = NIT_NULL
;
565 /* ./../lib/standard//collection//abstract_collection.nit:143 */
566 fra
.me
.REG
[0] = ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]);
567 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[0],fra
.me
.REG
[1]));
568 if (UNTAG_Bool(REGB0
)) {
570 REGB1
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
571 if (UNTAG_Bool(REGB1
)) {
572 REGB1
= TAG_Bool(false);
575 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
581 stack_frame_head
= fra
.me
.prev
;
584 val_t
abstract_collection___Container___has_only(val_t p0
, val_t p1
){
585 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
589 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
590 fra
.me
.file
= LOCATE_abstract_collection
;
592 fra
.me
.meth
= LOCATE_abstract_collection___Container___has_only
;
593 fra
.me
.has_broke
= 0;
595 fra
.me
.REG
[0] = NIT_NULL
;
596 fra
.me
.REG
[1] = NIT_NULL
;
599 /* ./../lib/standard//collection//abstract_collection.nit:145 */
600 fra
.me
.REG
[0] = ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]);
601 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[0],fra
.me
.REG
[1]));
602 if (UNTAG_Bool(REGB0
)) {
604 REGB1
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
605 if (UNTAG_Bool(REGB1
)) {
606 REGB1
= TAG_Bool(false);
609 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
615 stack_frame_head
= fra
.me
.prev
;
618 val_t
abstract_collection___Container___count(val_t p0
, val_t p1
){
619 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
623 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
624 fra
.me
.file
= LOCATE_abstract_collection
;
626 fra
.me
.meth
= LOCATE_abstract_collection___Container___count
;
627 fra
.me
.has_broke
= 0;
629 fra
.me
.REG
[0] = NIT_NULL
;
630 fra
.me
.REG
[1] = NIT_NULL
;
633 /* ./../lib/standard//collection//abstract_collection.nit:149 */
634 fra
.me
.REG
[0] = ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]);
635 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[0],fra
.me
.REG
[1]));
636 if (UNTAG_Bool(REGB0
)) {
638 REGB1
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
639 if (UNTAG_Bool(REGB1
)) {
640 REGB1
= TAG_Bool(false);
643 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
647 if (UNTAG_Bool(REGB0
)) {
648 /* ./../lib/standard//collection//abstract_collection.nit:150 */
652 /* ./../lib/standard//collection//abstract_collection.nit:152 */
658 stack_frame_head
= fra
.me
.prev
;
661 val_t
abstract_collection___Container___iterator(val_t p0
){
662 struct {struct stack_frame_t me
;} fra
;
664 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
665 fra
.me
.file
= LOCATE_abstract_collection
;
667 fra
.me
.meth
= LOCATE_abstract_collection___Container___iterator
;
668 fra
.me
.has_broke
= 0;
670 fra
.me
.REG
[0] = NIT_NULL
;
672 /* ./../lib/standard//collection//abstract_collection.nit:156 */
673 fra
.me
.REG
[0] = NEW_ContainerIterator_abstract_collection___ContainerIterator___init(fra
.me
.REG
[0]);
676 stack_frame_head
= fra
.me
.prev
;
677 return fra
.me
.REG
[0];
679 void abstract_collection___Container___init(val_t p0
, val_t p1
, int* init_table
){
680 int itpos0
= VAL2OBJ(p0
)->vft
[INIT_TABLE_POS_Container
].i
;
681 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
683 if (init_table
[itpos0
]) return;
684 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
685 fra
.me
.file
= LOCATE_abstract_collection
;
687 fra
.me
.meth
= LOCATE_abstract_collection___Container___init
;
688 fra
.me
.has_broke
= 0;
690 fra
.me
.REG
[0] = NIT_NULL
;
691 fra
.me
.REG
[1] = NIT_NULL
;
694 /* ./../lib/standard//collection//abstract_collection.nit:159 */
695 ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
696 stack_frame_head
= fra
.me
.prev
;
697 init_table
[itpos0
] = 1;
700 val_t
abstract_collection___Container___item(val_t p0
){
701 struct {struct stack_frame_t me
;} fra
;
703 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
704 fra
.me
.file
= LOCATE_abstract_collection
;
706 fra
.me
.meth
= LOCATE_abstract_collection___Container___item
;
707 fra
.me
.has_broke
= 0;
709 fra
.me
.REG
[0] = NIT_NULL
;
711 /* ./../lib/standard//collection//abstract_collection.nit:161 */
712 fra
.me
.REG
[0] = ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]);
713 stack_frame_head
= fra
.me
.prev
;
714 return fra
.me
.REG
[0];
716 void abstract_collection___Container___item__eq(val_t p0
, val_t p1
){
717 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
719 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
720 fra
.me
.file
= LOCATE_abstract_collection
;
722 fra
.me
.meth
= LOCATE_abstract_collection___Container___item__eq
;
723 fra
.me
.has_broke
= 0;
725 fra
.me
.REG
[0] = NIT_NULL
;
726 fra
.me
.REG
[1] = NIT_NULL
;
729 /* ./../lib/standard//collection//abstract_collection.nit:161 */
730 ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
731 stack_frame_head
= fra
.me
.prev
;
734 val_t
abstract_collection___ContainerIterator___item(val_t p0
){
735 struct {struct stack_frame_t me
;} fra
;
738 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
739 fra
.me
.file
= LOCATE_abstract_collection
;
741 fra
.me
.meth
= LOCATE_abstract_collection___ContainerIterator___item
;
742 fra
.me
.has_broke
= 0;
744 fra
.me
.REG
[0] = NIT_NULL
;
746 /* ./../lib/standard//collection//abstract_collection.nit:168 */
747 REGB0
= TAG_Bool(ATTR_abstract_collection___ContainerIterator____container(fra
.me
.REG
[0])!=NIT_NULL
);
748 if (UNTAG_Bool(REGB0
)) {
750 nit_abort("Uninitialized attribute %s", "_container", LOCATE_abstract_collection
, 168);
752 fra
.me
.REG
[0] = ATTR_abstract_collection___ContainerIterator____container(fra
.me
.REG
[0]);
753 fra
.me
.REG
[0] = CALL_abstract_collection___Container___item(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
756 stack_frame_head
= fra
.me
.prev
;
757 return fra
.me
.REG
[0];
759 void abstract_collection___ContainerIterator___next(val_t p0
){
760 struct {struct stack_frame_t me
;} fra
;
763 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
764 fra
.me
.file
= LOCATE_abstract_collection
;
766 fra
.me
.meth
= LOCATE_abstract_collection___ContainerIterator___next
;
767 fra
.me
.has_broke
= 0;
769 fra
.me
.REG
[0] = NIT_NULL
;
771 /* ./../lib/standard//collection//abstract_collection.nit:170 */
772 REGB0
= TAG_Bool(false);
773 ATTR_abstract_collection___ContainerIterator____is_ok(fra
.me
.REG
[0]) = REGB0
;
774 stack_frame_head
= fra
.me
.prev
;
777 void abstract_collection___ContainerIterator___init(val_t p0
, val_t p1
, int* init_table
){
778 int itpos1
= VAL2OBJ(p0
)->vft
[INIT_TABLE_POS_ContainerIterator
].i
;
779 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
781 if (init_table
[itpos1
]) return;
782 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
783 fra
.me
.file
= LOCATE_abstract_collection
;
785 fra
.me
.meth
= LOCATE_abstract_collection___ContainerIterator___init
;
786 fra
.me
.has_broke
= 0;
788 fra
.me
.REG
[0] = NIT_NULL
;
789 fra
.me
.REG
[1] = NIT_NULL
;
792 /* ./../lib/standard//collection//abstract_collection.nit:172 */
793 ATTR_abstract_collection___ContainerIterator____container(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
794 stack_frame_head
= fra
.me
.prev
;
795 init_table
[itpos1
] = 1;
798 val_t
abstract_collection___ContainerIterator___is_ok(val_t p0
){
799 struct {struct stack_frame_t me
;} fra
;
802 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
803 fra
.me
.file
= LOCATE_abstract_collection
;
805 fra
.me
.meth
= LOCATE_abstract_collection___ContainerIterator___is_ok
;
806 fra
.me
.has_broke
= 0;
808 fra
.me
.REG
[0] = NIT_NULL
;
810 /* ./../lib/standard//collection//abstract_collection.nit:174 */
811 REGB0
= TAG_Bool(ATTR_abstract_collection___ContainerIterator____is_ok(fra
.me
.REG
[0])!=NIT_NULL
);
812 if (UNTAG_Bool(REGB0
)) {
814 nit_abort("Uninitialized attribute %s", "_is_ok", LOCATE_abstract_collection
, 174);
816 REGB0
= ATTR_abstract_collection___ContainerIterator____is_ok(fra
.me
.REG
[0]);
817 stack_frame_head
= fra
.me
.prev
;
820 void abstract_collection___RemovableCollection___clear(val_t p0
){
821 struct {struct stack_frame_t me
;} fra
;
823 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
824 fra
.me
.file
= LOCATE_abstract_collection
;
826 fra
.me
.meth
= LOCATE_abstract_collection___RemovableCollection___clear
;
827 fra
.me
.has_broke
= 0;
829 /* ./../lib/standard//collection//abstract_collection.nit:182 */
830 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 182);
831 stack_frame_head
= fra
.me
.prev
;
834 void abstract_collection___RemovableCollection___remove(val_t p0
, val_t p1
){
835 struct {struct stack_frame_t me
;} fra
;
837 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
838 fra
.me
.file
= LOCATE_abstract_collection
;
840 fra
.me
.meth
= LOCATE_abstract_collection___RemovableCollection___remove
;
841 fra
.me
.has_broke
= 0;
843 /* ./../lib/standard//collection//abstract_collection.nit:185 */
844 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 185);
845 stack_frame_head
= fra
.me
.prev
;
848 void abstract_collection___RemovableCollection___remove_all(val_t p0
, val_t p1
){
849 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
852 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
853 fra
.me
.file
= LOCATE_abstract_collection
;
855 fra
.me
.meth
= LOCATE_abstract_collection___RemovableCollection___remove_all
;
856 fra
.me
.has_broke
= 0;
858 fra
.me
.REG
[0] = NIT_NULL
;
859 fra
.me
.REG
[1] = NIT_NULL
;
862 /* ./../lib/standard//collection//abstract_collection.nit:189 */
864 REGB0
= CALL_abstract_collection___Collection___has(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
865 if (UNTAG_Bool(REGB0
)) {
866 CALL_abstract_collection___RemovableCollection___remove(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
872 stack_frame_head
= fra
.me
.prev
;
875 void abstract_collection___SimpleCollection___add(val_t p0
, val_t p1
){
876 struct {struct stack_frame_t me
;} fra
;
878 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
879 fra
.me
.file
= LOCATE_abstract_collection
;
881 fra
.me
.meth
= LOCATE_abstract_collection___SimpleCollection___add
;
882 fra
.me
.has_broke
= 0;
884 /* ./../lib/standard//collection//abstract_collection.nit:195 */
885 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 195);
886 stack_frame_head
= fra
.me
.prev
;
889 void abstract_collection___SimpleCollection___add_all(val_t p0
, val_t p1
){
890 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
892 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
893 fra
.me
.file
= LOCATE_abstract_collection
;
895 fra
.me
.meth
= LOCATE_abstract_collection___SimpleCollection___add_all
;
896 fra
.me
.has_broke
= 0;
898 fra
.me
.REG
[0] = NIT_NULL
;
899 fra
.me
.REG
[1] = NIT_NULL
;
902 CALL_abstract_collection___Collection___iterate(fra
.me
.REG
[1])(fra
.me
.REG
[1], (&(fra
.me
)), ((fun_t
)OC_abstract_collection___SimpleCollection___add_all_1
));
903 stack_frame_head
= fra
.me
.prev
;
906 void OC_abstract_collection___SimpleCollection___add_all_1(struct stack_frame_t
*closctx
, val_t p0
, struct stack_frame_t
*closctx_param
, fun_t clos_fun0
){
907 struct {struct stack_frame_t me
;} fra
;
910 /* ./../lib/standard//collection//abstract_collection.nit:200 */
911 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
912 fra
.me
.file
= LOCATE_abstract_collection
;
914 fra
.me
.meth
= LOCATE_abstract_collection___SimpleCollection___add_all
;
915 fra
.me
.has_broke
= 0;
917 fra
.me
.REG
[0] = NIT_NULL
;
918 fra
.me
.closure_ctx
= closctx_param
;
919 fra
.me
.closure_funs
= CREG
;
922 CALL_abstract_collection___SimpleCollection___add(closctx
->REG
[0])(closctx
->REG
[0], fra
.me
.REG
[0]);
923 stack_frame_head
= fra
.me
.prev
;
926 val_t
abstract_collection___Set___has_only(val_t p0
, val_t p1
){
927 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
933 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
934 fra
.me
.file
= LOCATE_abstract_collection
;
936 fra
.me
.meth
= LOCATE_abstract_collection___Set___has_only
;
937 fra
.me
.has_broke
= 0;
939 fra
.me
.REG
[0] = NIT_NULL
;
940 fra
.me
.REG
[1] = NIT_NULL
;
943 /* ./../lib/standard//collection//abstract_collection.nit:217 */
944 REGB0
= CALL_abstract_collection___Collection___length(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
945 /* ./../lib/standard//collection//abstract_collection.nit:218 */
947 REGB2
= TAG_Bool(IS_EQUAL_OO(REGB0
,REGB1
));
948 if (UNTAG_Bool(REGB2
)) {
950 /* ./../lib/standard//kernel.nit:207 */
951 REGB1
= TAG_Bool((REGB0
)==(REGB1
));
952 /* ./../lib/standard//collection//abstract_collection.nit:218 */
955 if (UNTAG_Bool(REGB2
)) {
956 /* ./../lib/standard//collection//abstract_collection.nit:219 */
957 REGB2
= CALL_abstract_collection___Collection___has(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
960 /* ./../lib/standard//collection//abstract_collection.nit:220 */
962 REGB3
= TAG_Bool(IS_EQUAL_OO(REGB0
,REGB1
));
963 if (UNTAG_Bool(REGB3
)) {
965 /* ./../lib/standard//kernel.nit:207 */
966 REGB1
= TAG_Bool((REGB0
)==(REGB1
));
967 /* ./../lib/standard//collection//abstract_collection.nit:220 */
970 if (UNTAG_Bool(REGB3
)) {
971 /* ./../lib/standard//collection//abstract_collection.nit:221 */
972 REGB3
= TAG_Bool(true);
976 /* ./../lib/standard//collection//abstract_collection.nit:223 */
977 REGB3
= TAG_Bool(false);
983 stack_frame_head
= fra
.me
.prev
;
986 val_t
abstract_collection___Set___count(val_t p0
, val_t p1
){
987 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
991 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
992 fra
.me
.file
= LOCATE_abstract_collection
;
994 fra
.me
.meth
= LOCATE_abstract_collection___Set___count
;
995 fra
.me
.has_broke
= 0;
997 fra
.me
.REG
[0] = NIT_NULL
;
998 fra
.me
.REG
[1] = NIT_NULL
;
1001 /* ./../lib/standard//collection//abstract_collection.nit:230 */
1002 REGB0
= CALL_abstract_collection___Collection___has(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
1003 if (UNTAG_Bool(REGB0
)) {
1004 /* ./../lib/standard//collection//abstract_collection.nit:231 */
1008 /* ./../lib/standard//collection//abstract_collection.nit:233 */
1014 stack_frame_head
= fra
.me
.prev
;
1017 void abstract_collection___Set___remove_all(val_t p0
, val_t p1
){
1018 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1020 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1021 fra
.me
.file
= LOCATE_abstract_collection
;
1023 fra
.me
.meth
= LOCATE_abstract_collection___Set___remove_all
;
1024 fra
.me
.has_broke
= 0;
1025 fra
.me
.REG_size
= 2;
1026 fra
.me
.REG
[0] = NIT_NULL
;
1027 fra
.me
.REG
[1] = NIT_NULL
;
1030 /* ./../lib/standard//collection//abstract_collection.nit:238 */
1031 CALL_abstract_collection___RemovableCollection___remove(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
1032 stack_frame_head
= fra
.me
.prev
;
1035 val_t
abstract_collection___MapRead_____bra(val_t p0
, val_t p1
){
1036 struct {struct stack_frame_t me
;} fra
;
1038 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1039 fra
.me
.file
= LOCATE_abstract_collection
;
1041 fra
.me
.meth
= LOCATE_abstract_collection___MapRead_____bra
;
1042 fra
.me
.has_broke
= 0;
1043 fra
.me
.REG_size
= 0;
1044 /* ./../lib/standard//collection//abstract_collection.nit:243 */
1045 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 243);
1046 stack_frame_head
= fra
.me
.prev
;
1049 val_t
abstract_collection___MapRead___has_key(val_t p0
, val_t p1
){
1050 struct {struct stack_frame_t me
;} fra
;
1052 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1053 fra
.me
.file
= LOCATE_abstract_collection
;
1055 fra
.me
.meth
= LOCATE_abstract_collection___MapRead___has_key
;
1056 fra
.me
.has_broke
= 0;
1057 fra
.me
.REG_size
= 0;
1058 /* ./../lib/standard//collection//abstract_collection.nit:246 */
1059 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 246);
1060 stack_frame_head
= fra
.me
.prev
;
1063 val_t
abstract_collection___MapRead___iterator(val_t p0
){
1064 struct {struct stack_frame_t me
;} fra
;
1066 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1067 fra
.me
.file
= LOCATE_abstract_collection
;
1069 fra
.me
.meth
= LOCATE_abstract_collection___MapRead___iterator
;
1070 fra
.me
.has_broke
= 0;
1071 fra
.me
.REG_size
= 0;
1072 /* ./../lib/standard//collection//abstract_collection.nit:249 */
1073 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 249);
1074 stack_frame_head
= fra
.me
.prev
;
1077 void abstract_collection___Map_____braeq(val_t p0
, val_t p1
, val_t p2
){
1078 struct {struct stack_frame_t me
;} fra
;
1080 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1081 fra
.me
.file
= LOCATE_abstract_collection
;
1083 fra
.me
.meth
= LOCATE_abstract_collection___Map_____braeq
;
1084 fra
.me
.has_broke
= 0;
1085 fra
.me
.REG_size
= 0;
1086 /* ./../lib/standard//collection//abstract_collection.nit:267 */
1087 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 267);
1088 stack_frame_head
= fra
.me
.prev
;
1091 void abstract_collection___Map___remove_at(val_t p0
, val_t p1
){
1092 struct {struct stack_frame_t me
;} fra
;
1094 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1095 fra
.me
.file
= LOCATE_abstract_collection
;
1097 fra
.me
.meth
= LOCATE_abstract_collection___Map___remove_at
;
1098 fra
.me
.has_broke
= 0;
1099 fra
.me
.REG_size
= 0;
1100 /* ./../lib/standard//collection//abstract_collection.nit:270 */
1101 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 270);
1102 stack_frame_head
= fra
.me
.prev
;
1105 void abstract_collection___Map___recover_with(val_t p0
, val_t p1
){
1106 struct {struct stack_frame_t me
; val_t MORE_REG
[3];} fra
;
1109 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1110 fra
.me
.file
= LOCATE_abstract_collection
;
1112 fra
.me
.meth
= LOCATE_abstract_collection___Map___recover_with
;
1113 fra
.me
.has_broke
= 0;
1114 fra
.me
.REG_size
= 4;
1115 fra
.me
.REG
[0] = NIT_NULL
;
1116 fra
.me
.REG
[1] = NIT_NULL
;
1117 fra
.me
.REG
[2] = NIT_NULL
;
1118 fra
.me
.REG
[3] = NIT_NULL
;
1121 /* ./../lib/standard//collection//abstract_collection.nit:277 */
1122 fra
.me
.REG
[1] = CALL_abstract_collection___Collection___iterator(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
1123 /* ./../lib/standard//collection//abstract_collection.nit:278 */
1125 REGB0
= CALL_abstract_collection___Iterator___is_ok(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
1126 if (UNTAG_Bool(REGB0
)) {
1127 /* ./../lib/standard//collection//abstract_collection.nit:279 */
1128 fra
.me
.REG
[2] = CALL_abstract_collection___MapIterator___key(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
1129 fra
.me
.REG
[3] = CALL_abstract_collection___Iterator___item(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
1130 CALL_abstract_collection___Map_____braeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[2], fra
.me
.REG
[3]);
1131 /* ./../lib/standard//collection//abstract_collection.nit:280 */
1132 CALL_abstract_collection___Iterator___next(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
1134 /* ./../lib/standard//collection//abstract_collection.nit:278 */
1139 stack_frame_head
= fra
.me
.prev
;
1142 val_t
abstract_collection___MapIterator___key(val_t p0
){
1143 struct {struct stack_frame_t me
;} fra
;
1145 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1146 fra
.me
.file
= LOCATE_abstract_collection
;
1148 fra
.me
.meth
= LOCATE_abstract_collection___MapIterator___key
;
1149 fra
.me
.has_broke
= 0;
1150 fra
.me
.REG_size
= 0;
1151 /* ./../lib/standard//collection//abstract_collection.nit:288 */
1152 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 288);
1153 stack_frame_head
= fra
.me
.prev
;
1156 val_t
abstract_collection___SequenceRead___first(val_t p0
){
1157 struct {struct stack_frame_t me
;} fra
;
1160 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1161 fra
.me
.file
= LOCATE_abstract_collection
;
1163 fra
.me
.meth
= LOCATE_abstract_collection___SequenceRead___first
;
1164 fra
.me
.has_broke
= 0;
1165 fra
.me
.REG_size
= 1;
1166 fra
.me
.REG
[0] = NIT_NULL
;
1168 /* ./../lib/standard//collection//abstract_collection.nit:303 */
1169 REGB0
= CALL_abstract_collection___Collection___is_empty(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1170 REGB0
= TAG_Bool(!UNTAG_Bool(REGB0
));
1171 if (UNTAG_Bool(REGB0
)) {
1173 nit_abort("Assert %s failed", "'not_empty'", LOCATE_abstract_collection
, 303);
1175 /* ./../lib/standard//collection//abstract_collection.nit:304 */
1177 fra
.me
.REG
[0] = CALL_abstract_collection___MapRead_____bra(fra
.me
.REG
[0])(fra
.me
.REG
[0], REGB0
);
1180 stack_frame_head
= fra
.me
.prev
;
1181 return fra
.me
.REG
[0];
1183 val_t
abstract_collection___SequenceRead___last(val_t p0
){
1184 struct {struct stack_frame_t me
;} fra
;
1188 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1189 fra
.me
.file
= LOCATE_abstract_collection
;
1191 fra
.me
.meth
= LOCATE_abstract_collection___SequenceRead___last
;
1192 fra
.me
.has_broke
= 0;
1193 fra
.me
.REG_size
= 1;
1194 fra
.me
.REG
[0] = NIT_NULL
;
1196 /* ./../lib/standard//collection//abstract_collection.nit:311 */
1197 REGB0
= CALL_abstract_collection___Collection___is_empty(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1198 REGB0
= TAG_Bool(!UNTAG_Bool(REGB0
));
1199 if (UNTAG_Bool(REGB0
)) {
1201 nit_abort("Assert %s failed", "'not_empty'", LOCATE_abstract_collection
, 311);
1203 /* ./../lib/standard//collection//abstract_collection.nit:312 */
1204 REGB0
= CALL_abstract_collection___Collection___length(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1206 /* ./../lib/standard//kernel.nit:217 */
1207 REGB1
= TAG_Int(UNTAG_Int(REGB0
)-UNTAG_Int(REGB1
));
1208 /* ./../lib/standard//collection//abstract_collection.nit:312 */
1209 fra
.me
.REG
[0] = CALL_abstract_collection___MapRead_____bra(fra
.me
.REG
[0])(fra
.me
.REG
[0], REGB1
);
1212 stack_frame_head
= fra
.me
.prev
;
1213 return fra
.me
.REG
[0];
1215 val_t
abstract_collection___SequenceRead___index_of(val_t p0
, val_t p1
){
1216 struct {struct stack_frame_t me
; val_t MORE_REG
[2];} fra
;
1220 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1221 fra
.me
.file
= LOCATE_abstract_collection
;
1223 fra
.me
.meth
= LOCATE_abstract_collection___SequenceRead___index_of
;
1224 fra
.me
.has_broke
= 0;
1225 fra
.me
.REG_size
= 3;
1226 fra
.me
.REG
[0] = NIT_NULL
;
1227 fra
.me
.REG
[1] = NIT_NULL
;
1228 fra
.me
.REG
[2] = NIT_NULL
;
1231 /* ./../lib/standard//collection//abstract_collection.nit:319 */
1232 fra
.me
.REG
[0] = CALL_abstract_collection___Collection___iterator(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1233 /* ./../lib/standard//collection//abstract_collection.nit:320 */
1235 REGB0
= CALL_abstract_collection___Iterator___is_ok(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1236 if (UNTAG_Bool(REGB0
)) {
1237 /* ./../lib/standard//collection//abstract_collection.nit:321 */
1238 fra
.me
.REG
[2] = CALL_abstract_collection___Iterator___item(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1239 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[2],fra
.me
.REG
[1]));
1240 if (UNTAG_Bool(REGB0
)) {
1242 REGB1
= TAG_Bool(fra
.me
.REG
[2]==NIT_NULL
);
1243 if (UNTAG_Bool(REGB1
)) {
1244 REGB1
= TAG_Bool(false);
1247 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[2])(fra
.me
.REG
[2], fra
.me
.REG
[1]);
1251 if (UNTAG_Bool(REGB0
)) {
1252 REGB0
= CALL_abstract_collection___IndexedIterator___index(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1255 /* ./../lib/standard//collection//abstract_collection.nit:322 */
1256 CALL_abstract_collection___Iterator___next(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1258 /* ./../lib/standard//collection//abstract_collection.nit:320 */
1263 /* ./../lib/standard//collection//abstract_collection.nit:324 */
1265 /* ./../lib/standard//kernel.nit:216 */
1266 REGB1
= TAG_Int(-UNTAG_Int(REGB1
));
1267 /* ./../lib/standard//collection//abstract_collection.nit:324 */
1271 stack_frame_head
= fra
.me
.prev
;
1274 val_t
abstract_collection___SequenceRead___iterator(val_t p0
){
1275 struct {struct stack_frame_t me
;} fra
;
1277 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1278 fra
.me
.file
= LOCATE_abstract_collection
;
1280 fra
.me
.meth
= LOCATE_abstract_collection___SequenceRead___iterator
;
1281 fra
.me
.has_broke
= 0;
1282 fra
.me
.REG_size
= 0;
1283 /* ./../lib/standard//collection//abstract_collection.nit:327 */
1284 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 327);
1285 stack_frame_head
= fra
.me
.prev
;
1288 void abstract_collection___Sequence___first__eq(val_t p0
, val_t p1
){
1289 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1292 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1293 fra
.me
.file
= LOCATE_abstract_collection
;
1295 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___first__eq
;
1296 fra
.me
.has_broke
= 0;
1297 fra
.me
.REG_size
= 2;
1298 fra
.me
.REG
[0] = NIT_NULL
;
1299 fra
.me
.REG
[1] = NIT_NULL
;
1302 /* ./../lib/standard//collection//abstract_collection.nit:339 */
1304 CALL_abstract_collection___Map_____braeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], REGB0
, fra
.me
.REG
[1]);
1305 stack_frame_head
= fra
.me
.prev
;
1308 void abstract_collection___Sequence___last__eq(val_t p0
, val_t p1
){
1309 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1313 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1314 fra
.me
.file
= LOCATE_abstract_collection
;
1316 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___last__eq
;
1317 fra
.me
.has_broke
= 0;
1318 fra
.me
.REG_size
= 2;
1319 fra
.me
.REG
[0] = NIT_NULL
;
1320 fra
.me
.REG
[1] = NIT_NULL
;
1323 /* ./../lib/standard//collection//abstract_collection.nit:345 */
1324 REGB0
= CALL_abstract_collection___Collection___length(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1325 /* ./../lib/standard//collection//abstract_collection.nit:346 */
1327 /* ./../lib/standard//kernel.nit:214 */
1328 REGB1
= TAG_Bool(UNTAG_Int(REGB0
)>UNTAG_Int(REGB1
));
1329 /* ./../lib/standard//collection//abstract_collection.nit:346 */
1330 if (UNTAG_Bool(REGB1
)) {
1331 /* ./../lib/standard//collection//abstract_collection.nit:347 */
1333 /* ./../lib/standard//kernel.nit:217 */
1334 REGB1
= TAG_Int(UNTAG_Int(REGB0
)-UNTAG_Int(REGB1
));
1335 /* ./../lib/standard//collection//abstract_collection.nit:347 */
1336 CALL_abstract_collection___Map_____braeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], REGB1
, fra
.me
.REG
[1]);
1338 /* ./../lib/standard//collection//abstract_collection.nit:349 */
1340 CALL_abstract_collection___Map_____braeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], REGB1
, fra
.me
.REG
[1]);
1342 stack_frame_head
= fra
.me
.prev
;
1345 void abstract_collection___Sequence___add(val_t p0
, val_t p1
){
1346 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1348 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1349 fra
.me
.file
= LOCATE_abstract_collection
;
1351 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___add
;
1352 fra
.me
.has_broke
= 0;
1353 fra
.me
.REG_size
= 2;
1354 fra
.me
.REG
[0] = NIT_NULL
;
1355 fra
.me
.REG
[1] = NIT_NULL
;
1358 /* ./../lib/standard//collection//abstract_collection.nit:354 */
1359 CALL_abstract_collection___Sequence___push(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
1360 stack_frame_head
= fra
.me
.prev
;
1363 void abstract_collection___Sequence___push(val_t p0
, val_t p1
){
1364 struct {struct stack_frame_t me
;} fra
;
1366 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1367 fra
.me
.file
= LOCATE_abstract_collection
;
1369 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___push
;
1370 fra
.me
.has_broke
= 0;
1371 fra
.me
.REG_size
= 0;
1372 /* ./../lib/standard//collection//abstract_collection.nit:356 */
1373 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 356);
1374 stack_frame_head
= fra
.me
.prev
;
1377 void abstract_collection___Sequence___append(val_t p0
, val_t p1
){
1378 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1380 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1381 fra
.me
.file
= LOCATE_abstract_collection
;
1383 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___append
;
1384 fra
.me
.has_broke
= 0;
1385 fra
.me
.REG_size
= 2;
1386 fra
.me
.REG
[0] = NIT_NULL
;
1387 fra
.me
.REG
[1] = NIT_NULL
;
1390 CALL_abstract_collection___Collection___iterate(fra
.me
.REG
[1])(fra
.me
.REG
[1], (&(fra
.me
)), ((fun_t
)OC_abstract_collection___Sequence___append_1
));
1391 stack_frame_head
= fra
.me
.prev
;
1394 void OC_abstract_collection___Sequence___append_1(struct stack_frame_t
*closctx
, val_t p0
, struct stack_frame_t
*closctx_param
, fun_t clos_fun0
){
1395 struct {struct stack_frame_t me
;} fra
;
1398 /* ./../lib/standard//collection//abstract_collection.nit:360 */
1399 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1400 fra
.me
.file
= LOCATE_abstract_collection
;
1402 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___append
;
1403 fra
.me
.has_broke
= 0;
1404 fra
.me
.REG_size
= 1;
1405 fra
.me
.REG
[0] = NIT_NULL
;
1406 fra
.me
.closure_ctx
= closctx_param
;
1407 fra
.me
.closure_funs
= CREG
;
1409 CREG
[0] = clos_fun0
;
1410 CALL_abstract_collection___Sequence___push(closctx
->REG
[0])(closctx
->REG
[0], fra
.me
.REG
[0]);
1411 stack_frame_head
= fra
.me
.prev
;
1414 val_t
abstract_collection___Sequence___pop(val_t p0
){
1415 struct {struct stack_frame_t me
;} fra
;
1417 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1418 fra
.me
.file
= LOCATE_abstract_collection
;
1420 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___pop
;
1421 fra
.me
.has_broke
= 0;
1422 fra
.me
.REG_size
= 0;
1423 /* ./../lib/standard//collection//abstract_collection.nit:362 */
1424 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 362);
1425 stack_frame_head
= fra
.me
.prev
;
1428 void abstract_collection___Sequence___unshift(val_t p0
, val_t p1
){
1429 struct {struct stack_frame_t me
;} fra
;
1431 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1432 fra
.me
.file
= LOCATE_abstract_collection
;
1434 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___unshift
;
1435 fra
.me
.has_broke
= 0;
1436 fra
.me
.REG_size
= 0;
1437 /* ./../lib/standard//collection//abstract_collection.nit:365 */
1438 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 365);
1439 stack_frame_head
= fra
.me
.prev
;
1442 val_t
abstract_collection___Sequence___shift(val_t p0
){
1443 struct {struct stack_frame_t me
;} fra
;
1445 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1446 fra
.me
.file
= LOCATE_abstract_collection
;
1448 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___shift
;
1449 fra
.me
.has_broke
= 0;
1450 fra
.me
.REG_size
= 0;
1451 /* ./../lib/standard//collection//abstract_collection.nit:368 */
1452 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 368);
1453 stack_frame_head
= fra
.me
.prev
;
1456 val_t
abstract_collection___IndexedIterator___index(val_t p0
){
1457 struct {struct stack_frame_t me
;} fra
;
1459 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1460 fra
.me
.file
= LOCATE_abstract_collection
;
1462 fra
.me
.meth
= LOCATE_abstract_collection___IndexedIterator___index
;
1463 fra
.me
.has_broke
= 0;
1464 fra
.me
.REG_size
= 0;
1465 /* ./../lib/standard//collection//abstract_collection.nit:377 */
1466 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 377);
1467 stack_frame_head
= fra
.me
.prev
;
1470 val_t
abstract_collection___IndexedIterator___key(val_t p0
){
1471 struct {struct stack_frame_t me
;} fra
;
1474 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1475 fra
.me
.file
= LOCATE_abstract_collection
;
1477 fra
.me
.meth
= LOCATE_abstract_collection___IndexedIterator___key
;
1478 fra
.me
.has_broke
= 0;
1479 fra
.me
.REG_size
= 1;
1480 fra
.me
.REG
[0] = NIT_NULL
;
1482 /* ./../lib/standard//collection//abstract_collection.nit:381 */
1483 REGB0
= CALL_abstract_collection___IndexedIterator___index(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1486 stack_frame_head
= fra
.me
.prev
;
1489 val_t
abstract_collection___CoupleMap___couple_at(val_t p0
, val_t p1
){
1490 struct {struct stack_frame_t me
;} fra
;
1492 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1493 fra
.me
.file
= LOCATE_abstract_collection
;
1495 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMap___couple_at
;
1496 fra
.me
.has_broke
= 0;
1497 fra
.me
.REG_size
= 0;
1498 /* ./../lib/standard//collection//abstract_collection.nit:387 */
1499 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 387);
1500 stack_frame_head
= fra
.me
.prev
;
1503 val_t
abstract_collection___CoupleMap_____bra(val_t p0
, val_t p1
){
1504 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1508 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1509 fra
.me
.file
= LOCATE_abstract_collection
;
1511 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMap_____bra
;
1512 fra
.me
.has_broke
= 0;
1513 fra
.me
.REG_size
= 2;
1514 fra
.me
.REG
[0] = NIT_NULL
;
1515 fra
.me
.REG
[1] = NIT_NULL
;
1518 /* ./../lib/standard//collection//abstract_collection.nit:393 */
1519 fra
.me
.REG
[1] = CALL_abstract_collection___CoupleMap___couple_at(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
1520 /* ./../lib/standard//collection//abstract_collection.nit:394 */
1521 REGB0
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
1522 if (UNTAG_Bool(REGB0
)) {
1524 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
1525 if (UNTAG_Bool(REGB1
)) {
1526 REGB1
= TAG_Bool(false);
1529 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[1])(fra
.me
.REG
[1], NIT_NULL
);
1533 if (UNTAG_Bool(REGB0
)) {
1534 /* ./../lib/standard//collection//abstract_collection.nit:395 */
1535 nit_abort("Aborted", NULL
, LOCATE_abstract_collection
, 395);
1537 /* ./../lib/standard//collection//abstract_collection.nit:397 */
1538 REGB0
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
1539 if (UNTAG_Bool(REGB0
)) {
1540 nit_abort("Reciever is null", NULL
, LOCATE_abstract_collection
, 397);
1542 fra
.me
.REG
[1] = CALL_abstract_collection___Couple___second(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
1546 stack_frame_head
= fra
.me
.prev
;
1547 return fra
.me
.REG
[1];
1549 val_t
abstract_collection___CoupleMap___has_key(val_t p0
, val_t p1
){
1550 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1554 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1555 fra
.me
.file
= LOCATE_abstract_collection
;
1557 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMap___has_key
;
1558 fra
.me
.has_broke
= 0;
1559 fra
.me
.REG_size
= 2;
1560 fra
.me
.REG
[0] = NIT_NULL
;
1561 fra
.me
.REG
[1] = NIT_NULL
;
1564 /* ./../lib/standard//collection//abstract_collection.nit:401 */
1565 fra
.me
.REG
[1] = CALL_abstract_collection___CoupleMap___couple_at(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
1566 REGB0
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
1567 if (UNTAG_Bool(REGB0
)) {
1569 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
1570 if (UNTAG_Bool(REGB1
)) {
1571 REGB1
= TAG_Bool(false);
1574 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[1])(fra
.me
.REG
[1], NIT_NULL
);
1578 REGB0
= TAG_Bool(!UNTAG_Bool(REGB0
));
1581 stack_frame_head
= fra
.me
.prev
;
1584 val_t
abstract_collection___CoupleMapIterator___item(val_t p0
){
1585 struct {struct stack_frame_t me
;} fra
;
1588 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1589 fra
.me
.file
= LOCATE_abstract_collection
;
1591 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMapIterator___item
;
1592 fra
.me
.has_broke
= 0;
1593 fra
.me
.REG_size
= 1;
1594 fra
.me
.REG
[0] = NIT_NULL
;
1596 /* ./../lib/standard//collection//abstract_collection.nit:409 */
1597 REGB0
= TAG_Bool(ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0])!=NIT_NULL
);
1598 if (UNTAG_Bool(REGB0
)) {
1600 nit_abort("Uninitialized attribute %s", "_iter", LOCATE_abstract_collection
, 409);
1602 fra
.me
.REG
[0] = ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0]);
1603 fra
.me
.REG
[0] = CALL_abstract_collection___Iterator___item(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1604 REGB0
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
1605 if (UNTAG_Bool(REGB0
)) {
1606 nit_abort("Reciever is null", NULL
, LOCATE_abstract_collection
, 409);
1608 fra
.me
.REG
[0] = CALL_abstract_collection___Couple___second(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1611 stack_frame_head
= fra
.me
.prev
;
1612 return fra
.me
.REG
[0];
1614 val_t
abstract_collection___CoupleMapIterator___key(val_t p0
){
1615 struct {struct stack_frame_t me
;} fra
;
1618 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1619 fra
.me
.file
= LOCATE_abstract_collection
;
1621 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMapIterator___key
;
1622 fra
.me
.has_broke
= 0;
1623 fra
.me
.REG_size
= 1;
1624 fra
.me
.REG
[0] = NIT_NULL
;
1626 /* ./../lib/standard//collection//abstract_collection.nit:413 */
1627 REGB0
= TAG_Bool(ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0])!=NIT_NULL
);
1628 if (UNTAG_Bool(REGB0
)) {
1630 nit_abort("Uninitialized attribute %s", "_iter", LOCATE_abstract_collection
, 413);
1632 fra
.me
.REG
[0] = ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0]);
1633 fra
.me
.REG
[0] = CALL_abstract_collection___Iterator___item(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1634 REGB0
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
1635 if (UNTAG_Bool(REGB0
)) {
1636 nit_abort("Reciever is null", NULL
, LOCATE_abstract_collection
, 413);
1638 fra
.me
.REG
[0] = CALL_abstract_collection___Couple___first(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1641 stack_frame_head
= fra
.me
.prev
;
1642 return fra
.me
.REG
[0];
1644 val_t
abstract_collection___CoupleMapIterator___is_ok(val_t p0
){
1645 struct {struct stack_frame_t me
;} fra
;
1648 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1649 fra
.me
.file
= LOCATE_abstract_collection
;
1651 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMapIterator___is_ok
;
1652 fra
.me
.has_broke
= 0;
1653 fra
.me
.REG_size
= 1;
1654 fra
.me
.REG
[0] = NIT_NULL
;
1656 /* ./../lib/standard//collection//abstract_collection.nit:415 */
1657 REGB0
= TAG_Bool(ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0])!=NIT_NULL
);
1658 if (UNTAG_Bool(REGB0
)) {
1660 nit_abort("Uninitialized attribute %s", "_iter", LOCATE_abstract_collection
, 415);
1662 fra
.me
.REG
[0] = ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0]);
1663 REGB0
= CALL_abstract_collection___Iterator___is_ok(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1666 stack_frame_head
= fra
.me
.prev
;
1669 void abstract_collection___CoupleMapIterator___next(val_t p0
){
1670 struct {struct stack_frame_t me
;} fra
;
1673 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1674 fra
.me
.file
= LOCATE_abstract_collection
;
1676 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMapIterator___next
;
1677 fra
.me
.has_broke
= 0;
1678 fra
.me
.REG_size
= 1;
1679 fra
.me
.REG
[0] = NIT_NULL
;
1681 /* ./../lib/standard//collection//abstract_collection.nit:419 */
1682 REGB0
= TAG_Bool(ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0])!=NIT_NULL
);
1683 if (UNTAG_Bool(REGB0
)) {
1685 nit_abort("Uninitialized attribute %s", "_iter", LOCATE_abstract_collection
, 419);
1687 fra
.me
.REG
[0] = ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0]);
1688 CALL_abstract_collection___Iterator___next(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1689 stack_frame_head
= fra
.me
.prev
;
1692 void abstract_collection___CoupleMapIterator___init(val_t p0
, val_t p1
, int* init_table
){
1693 int itpos2
= VAL2OBJ(p0
)->vft
[INIT_TABLE_POS_CoupleMapIterator
].i
;
1694 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1696 if (init_table
[itpos2
]) return;
1697 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1698 fra
.me
.file
= LOCATE_abstract_collection
;
1700 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMapIterator___init
;
1701 fra
.me
.has_broke
= 0;
1702 fra
.me
.REG_size
= 2;
1703 fra
.me
.REG
[0] = NIT_NULL
;
1704 fra
.me
.REG
[1] = NIT_NULL
;
1707 /* ./../lib/standard//collection//abstract_collection.nit:424 */
1708 ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
1709 stack_frame_head
= fra
.me
.prev
;
1710 init_table
[itpos2
] = 1;
1713 val_t
abstract_collection___Couple___first(val_t p0
){
1714 struct {struct stack_frame_t me
;} fra
;
1716 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1717 fra
.me
.file
= LOCATE_abstract_collection
;
1719 fra
.me
.meth
= LOCATE_abstract_collection___Couple___first
;
1720 fra
.me
.has_broke
= 0;
1721 fra
.me
.REG_size
= 1;
1722 fra
.me
.REG
[0] = NIT_NULL
;
1724 /* ./../lib/standard//collection//abstract_collection.nit:432 */
1725 fra
.me
.REG
[0] = ATTR_abstract_collection___Couple____first(fra
.me
.REG
[0]);
1726 stack_frame_head
= fra
.me
.prev
;
1727 return fra
.me
.REG
[0];
1729 void abstract_collection___Couple___first__eq(val_t p0
, val_t p1
){
1730 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1732 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1733 fra
.me
.file
= LOCATE_abstract_collection
;
1735 fra
.me
.meth
= LOCATE_abstract_collection___Couple___first__eq
;
1736 fra
.me
.has_broke
= 0;
1737 fra
.me
.REG_size
= 2;
1738 fra
.me
.REG
[0] = NIT_NULL
;
1739 fra
.me
.REG
[1] = NIT_NULL
;
1742 /* ./../lib/standard//collection//abstract_collection.nit:432 */
1743 ATTR_abstract_collection___Couple____first(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
1744 stack_frame_head
= fra
.me
.prev
;
1747 val_t
abstract_collection___Couple___second(val_t p0
){
1748 struct {struct stack_frame_t me
;} fra
;
1750 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1751 fra
.me
.file
= LOCATE_abstract_collection
;
1753 fra
.me
.meth
= LOCATE_abstract_collection___Couple___second
;
1754 fra
.me
.has_broke
= 0;
1755 fra
.me
.REG_size
= 1;
1756 fra
.me
.REG
[0] = NIT_NULL
;
1758 /* ./../lib/standard//collection//abstract_collection.nit:435 */
1759 fra
.me
.REG
[0] = ATTR_abstract_collection___Couple____second(fra
.me
.REG
[0]);
1760 stack_frame_head
= fra
.me
.prev
;
1761 return fra
.me
.REG
[0];
1763 void abstract_collection___Couple___second__eq(val_t p0
, val_t p1
){
1764 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1766 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1767 fra
.me
.file
= LOCATE_abstract_collection
;
1769 fra
.me
.meth
= LOCATE_abstract_collection___Couple___second__eq
;
1770 fra
.me
.has_broke
= 0;
1771 fra
.me
.REG_size
= 2;
1772 fra
.me
.REG
[0] = NIT_NULL
;
1773 fra
.me
.REG
[1] = NIT_NULL
;
1776 /* ./../lib/standard//collection//abstract_collection.nit:435 */
1777 ATTR_abstract_collection___Couple____second(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
1778 stack_frame_head
= fra
.me
.prev
;
1781 void abstract_collection___Couple___init(val_t p0
, val_t p1
, val_t p2
, int* init_table
){
1782 int itpos3
= VAL2OBJ(p0
)->vft
[INIT_TABLE_POS_Couple
].i
;
1783 struct {struct stack_frame_t me
; val_t MORE_REG
[2];} fra
;
1785 if (init_table
[itpos3
]) return;
1786 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1787 fra
.me
.file
= LOCATE_abstract_collection
;
1789 fra
.me
.meth
= LOCATE_abstract_collection___Couple___init
;
1790 fra
.me
.has_broke
= 0;
1791 fra
.me
.REG_size
= 3;
1792 fra
.me
.REG
[0] = NIT_NULL
;
1793 fra
.me
.REG
[1] = NIT_NULL
;
1794 fra
.me
.REG
[2] = NIT_NULL
;
1798 /* ./../lib/standard//collection//abstract_collection.nit:441 */
1799 ATTR_abstract_collection___Couple____first(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
1800 /* ./../lib/standard//collection//abstract_collection.nit:442 */
1801 ATTR_abstract_collection___Couple____second(fra
.me
.REG
[0]) = fra
.me
.REG
[2];
1802 stack_frame_head
= fra
.me
.prev
;
1803 init_table
[itpos3
] = 1;