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
;
214 /* ./../lib/standard//kernel.nit:215 */
215 REGB0
= TAG_Int(UNTAG_Int(closctx
->REG
[1])+UNTAG_Int(REGB0
));
216 /* ./../lib/standard//collection//abstract_collection.nit:88 */
217 closctx
->REG
[1] = REGB0
;
218 stack_frame_head
= fra
.me
.prev
;
221 val_t
abstract_collection___NaiveCollection___has(val_t p0
, val_t p1
){
222 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
225 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
226 fra
.me
.file
= LOCATE_abstract_collection
;
228 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___has
;
229 fra
.me
.has_broke
= 0;
231 fra
.me
.REG
[0] = NIT_NULL
;
232 fra
.me
.REG
[1] = NIT_NULL
;
235 CALL_abstract_collection___Collection___iterate(fra
.me
.REG
[0])(fra
.me
.REG
[0], (&(fra
.me
)), ((fun_t
)OC_abstract_collection___NaiveCollection___has_1
));
236 switch ((&(fra
.me
))->has_broke
) {
238 case 1: (&(fra
.me
))->has_broke
= 0; goto label3
;
240 /* ./../lib/standard//collection//abstract_collection.nit:95 */
241 REGB0
= TAG_Bool(false);
242 fra
.me
.REG
[0] = REGB0
;
245 stack_frame_head
= fra
.me
.prev
;
246 return fra
.me
.REG
[0];
248 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
){
249 struct {struct stack_frame_t me
;} fra
;
254 /* ./../lib/standard//collection//abstract_collection.nit:94 */
255 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
256 fra
.me
.file
= LOCATE_abstract_collection
;
258 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___has
;
259 fra
.me
.has_broke
= 0;
261 fra
.me
.REG
[0] = NIT_NULL
;
262 fra
.me
.closure_ctx
= closctx_param
;
263 fra
.me
.closure_funs
= CREG
;
266 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[0],closctx
->REG
[1]));
267 if (UNTAG_Bool(REGB0
)) {
269 REGB1
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
270 if (UNTAG_Bool(REGB1
)) {
271 REGB1
= TAG_Bool(false);
274 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], closctx
->REG
[1]);
278 if (UNTAG_Bool(REGB0
)) {
279 REGB0
= TAG_Bool(true);
280 closctx
->REG
[0] = REGB0
;
281 closctx
->has_broke
= 1;
285 stack_frame_head
= fra
.me
.prev
;
288 val_t
abstract_collection___NaiveCollection___has_only(val_t p0
, val_t p1
){
289 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
292 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
293 fra
.me
.file
= LOCATE_abstract_collection
;
295 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___has_only
;
296 fra
.me
.has_broke
= 0;
298 fra
.me
.REG
[0] = NIT_NULL
;
299 fra
.me
.REG
[1] = NIT_NULL
;
302 CALL_abstract_collection___Collection___iterate(fra
.me
.REG
[0])(fra
.me
.REG
[0], (&(fra
.me
)), ((fun_t
)OC_abstract_collection___NaiveCollection___has_only_1
));
303 switch ((&(fra
.me
))->has_broke
) {
305 case 1: (&(fra
.me
))->has_broke
= 0; goto label3
;
307 /* ./../lib/standard//collection//abstract_collection.nit:101 */
308 REGB0
= TAG_Bool(true);
309 fra
.me
.REG
[0] = REGB0
;
312 stack_frame_head
= fra
.me
.prev
;
313 return fra
.me
.REG
[0];
315 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
){
316 struct {struct stack_frame_t me
;} fra
;
321 /* ./../lib/standard//collection//abstract_collection.nit:100 */
322 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
323 fra
.me
.file
= LOCATE_abstract_collection
;
325 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___has_only
;
326 fra
.me
.has_broke
= 0;
328 fra
.me
.REG
[0] = NIT_NULL
;
329 fra
.me
.closure_ctx
= closctx_param
;
330 fra
.me
.closure_funs
= CREG
;
333 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[0],closctx
->REG
[1]));
334 if (UNTAG_Bool(REGB0
)) {
336 REGB1
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
337 if (UNTAG_Bool(REGB1
)) {
338 REGB1
= TAG_Bool(false);
341 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], closctx
->REG
[1]);
345 REGB0
= TAG_Bool(!UNTAG_Bool(REGB0
));
346 if (UNTAG_Bool(REGB0
)) {
347 REGB0
= TAG_Bool(false);
348 closctx
->REG
[0] = REGB0
;
349 closctx
->has_broke
= 1;
353 stack_frame_head
= fra
.me
.prev
;
356 val_t
abstract_collection___NaiveCollection___count(val_t p0
, val_t p1
){
357 struct {struct stack_frame_t me
; val_t MORE_REG
[2];} fra
;
360 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
361 fra
.me
.file
= LOCATE_abstract_collection
;
363 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___count
;
364 fra
.me
.has_broke
= 0;
366 fra
.me
.REG
[0] = NIT_NULL
;
367 fra
.me
.REG
[1] = NIT_NULL
;
368 fra
.me
.REG
[2] = NIT_NULL
;
371 /* ./../lib/standard//collection//abstract_collection.nit:106 */
373 fra
.me
.REG
[2] = REGB0
;
374 CALL_abstract_collection___Collection___iterate(fra
.me
.REG
[0])(fra
.me
.REG
[0], (&(fra
.me
)), ((fun_t
)OC_abstract_collection___NaiveCollection___count_1
));
375 /* ./../lib/standard//collection//abstract_collection.nit:108 */
376 REGB0
= fra
.me
.REG
[2];
379 stack_frame_head
= fra
.me
.prev
;
382 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
){
383 struct {struct stack_frame_t me
;} fra
;
388 /* ./../lib/standard//collection//abstract_collection.nit:107 */
389 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
390 fra
.me
.file
= LOCATE_abstract_collection
;
392 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___count
;
393 fra
.me
.has_broke
= 0;
395 fra
.me
.REG
[0] = NIT_NULL
;
396 fra
.me
.closure_ctx
= closctx_param
;
397 fra
.me
.closure_funs
= CREG
;
400 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[0],closctx
->REG
[1]));
401 if (UNTAG_Bool(REGB0
)) {
403 REGB1
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
404 if (UNTAG_Bool(REGB1
)) {
405 REGB1
= TAG_Bool(false);
408 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], closctx
->REG
[1]);
412 if (UNTAG_Bool(REGB0
)) {
414 /* ./../lib/standard//kernel.nit:215 */
415 REGB0
= TAG_Int(UNTAG_Int(closctx
->REG
[2])+UNTAG_Int(REGB0
));
416 /* ./../lib/standard//collection//abstract_collection.nit:107 */
417 closctx
->REG
[2] = REGB0
;
419 stack_frame_head
= fra
.me
.prev
;
422 val_t
abstract_collection___NaiveCollection___first(val_t p0
){
423 struct {struct stack_frame_t me
;} fra
;
427 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
428 fra
.me
.file
= LOCATE_abstract_collection
;
430 fra
.me
.meth
= LOCATE_abstract_collection___NaiveCollection___first
;
431 fra
.me
.has_broke
= 0;
433 fra
.me
.REG
[0] = NIT_NULL
;
435 /* ./../lib/standard//collection//abstract_collection.nit:113 */
436 REGB0
= CALL_abstract_collection___Collection___length(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
438 /* ./../lib/standard//kernel.nit:214 */
439 REGB1
= TAG_Bool(UNTAG_Int(REGB0
)>UNTAG_Int(REGB1
));
440 /* ./../lib/standard//collection//abstract_collection.nit:113 */
441 if (UNTAG_Bool(REGB1
)) {
443 nit_abort("Assert failed", NULL
, LOCATE_abstract_collection
, 113);
445 /* ./../lib/standard//collection//abstract_collection.nit:114 */
446 fra
.me
.REG
[0] = CALL_abstract_collection___Collection___iterator(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
447 fra
.me
.REG
[0] = CALL_abstract_collection___Iterator___item(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
450 stack_frame_head
= fra
.me
.prev
;
451 return fra
.me
.REG
[0];
453 val_t
abstract_collection___Iterator___item(val_t p0
){
454 struct {struct stack_frame_t me
;} fra
;
456 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
457 fra
.me
.file
= LOCATE_abstract_collection
;
459 fra
.me
.meth
= LOCATE_abstract_collection___Iterator___item
;
460 fra
.me
.has_broke
= 0;
462 /* ./../lib/standard//collection//abstract_collection.nit:121 */
463 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 121);
464 stack_frame_head
= fra
.me
.prev
;
467 void abstract_collection___Iterator___next(val_t p0
){
468 struct {struct stack_frame_t me
;} fra
;
470 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
471 fra
.me
.file
= LOCATE_abstract_collection
;
473 fra
.me
.meth
= LOCATE_abstract_collection___Iterator___next
;
474 fra
.me
.has_broke
= 0;
476 /* ./../lib/standard//collection//abstract_collection.nit:125 */
477 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 125);
478 stack_frame_head
= fra
.me
.prev
;
481 val_t
abstract_collection___Iterator___is_ok(val_t p0
){
482 struct {struct stack_frame_t me
;} fra
;
484 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
485 fra
.me
.file
= LOCATE_abstract_collection
;
487 fra
.me
.meth
= LOCATE_abstract_collection___Iterator___is_ok
;
488 fra
.me
.has_broke
= 0;
490 /* ./../lib/standard//collection//abstract_collection.nit:129 */
491 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 129);
492 stack_frame_head
= fra
.me
.prev
;
495 val_t
abstract_collection___Container___first(val_t p0
){
496 struct {struct stack_frame_t me
;} fra
;
498 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
499 fra
.me
.file
= LOCATE_abstract_collection
;
501 fra
.me
.meth
= LOCATE_abstract_collection___Container___first
;
502 fra
.me
.has_broke
= 0;
504 fra
.me
.REG
[0] = NIT_NULL
;
506 /* ./../lib/standard//collection//abstract_collection.nit:137 */
507 fra
.me
.REG
[0] = ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]);
510 stack_frame_head
= fra
.me
.prev
;
511 return fra
.me
.REG
[0];
513 val_t
abstract_collection___Container___is_empty(val_t p0
){
514 struct {struct stack_frame_t me
;} fra
;
517 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
518 fra
.me
.file
= LOCATE_abstract_collection
;
520 fra
.me
.meth
= LOCATE_abstract_collection___Container___is_empty
;
521 fra
.me
.has_broke
= 0;
523 fra
.me
.REG
[0] = NIT_NULL
;
525 /* ./../lib/standard//collection//abstract_collection.nit:139 */
526 REGB0
= TAG_Bool(false);
529 stack_frame_head
= fra
.me
.prev
;
532 val_t
abstract_collection___Container___length(val_t p0
){
533 struct {struct stack_frame_t me
;} fra
;
536 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
537 fra
.me
.file
= LOCATE_abstract_collection
;
539 fra
.me
.meth
= LOCATE_abstract_collection___Container___length
;
540 fra
.me
.has_broke
= 0;
542 fra
.me
.REG
[0] = NIT_NULL
;
544 /* ./../lib/standard//collection//abstract_collection.nit:141 */
548 stack_frame_head
= fra
.me
.prev
;
551 val_t
abstract_collection___Container___has(val_t p0
, val_t p1
){
552 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
556 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
557 fra
.me
.file
= LOCATE_abstract_collection
;
559 fra
.me
.meth
= LOCATE_abstract_collection___Container___has
;
560 fra
.me
.has_broke
= 0;
562 fra
.me
.REG
[0] = NIT_NULL
;
563 fra
.me
.REG
[1] = NIT_NULL
;
566 /* ./../lib/standard//collection//abstract_collection.nit:143 */
567 fra
.me
.REG
[0] = ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]);
568 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[0],fra
.me
.REG
[1]));
569 if (UNTAG_Bool(REGB0
)) {
571 REGB1
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
572 if (UNTAG_Bool(REGB1
)) {
573 REGB1
= TAG_Bool(false);
576 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
582 stack_frame_head
= fra
.me
.prev
;
585 val_t
abstract_collection___Container___has_only(val_t p0
, val_t p1
){
586 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
590 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
591 fra
.me
.file
= LOCATE_abstract_collection
;
593 fra
.me
.meth
= LOCATE_abstract_collection___Container___has_only
;
594 fra
.me
.has_broke
= 0;
596 fra
.me
.REG
[0] = NIT_NULL
;
597 fra
.me
.REG
[1] = NIT_NULL
;
600 /* ./../lib/standard//collection//abstract_collection.nit:145 */
601 fra
.me
.REG
[0] = ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]);
602 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[0],fra
.me
.REG
[1]));
603 if (UNTAG_Bool(REGB0
)) {
605 REGB1
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
606 if (UNTAG_Bool(REGB1
)) {
607 REGB1
= TAG_Bool(false);
610 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
616 stack_frame_head
= fra
.me
.prev
;
619 val_t
abstract_collection___Container___count(val_t p0
, val_t p1
){
620 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
624 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
625 fra
.me
.file
= LOCATE_abstract_collection
;
627 fra
.me
.meth
= LOCATE_abstract_collection___Container___count
;
628 fra
.me
.has_broke
= 0;
630 fra
.me
.REG
[0] = NIT_NULL
;
631 fra
.me
.REG
[1] = NIT_NULL
;
634 /* ./../lib/standard//collection//abstract_collection.nit:149 */
635 fra
.me
.REG
[0] = ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]);
636 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[0],fra
.me
.REG
[1]));
637 if (UNTAG_Bool(REGB0
)) {
639 REGB1
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
640 if (UNTAG_Bool(REGB1
)) {
641 REGB1
= TAG_Bool(false);
644 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
648 if (UNTAG_Bool(REGB0
)) {
649 /* ./../lib/standard//collection//abstract_collection.nit:150 */
653 /* ./../lib/standard//collection//abstract_collection.nit:152 */
659 stack_frame_head
= fra
.me
.prev
;
662 val_t
abstract_collection___Container___iterator(val_t p0
){
663 struct {struct stack_frame_t me
;} fra
;
665 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
666 fra
.me
.file
= LOCATE_abstract_collection
;
668 fra
.me
.meth
= LOCATE_abstract_collection___Container___iterator
;
669 fra
.me
.has_broke
= 0;
671 fra
.me
.REG
[0] = NIT_NULL
;
673 /* ./../lib/standard//collection//abstract_collection.nit:156 */
674 fra
.me
.REG
[0] = NEW_ContainerIterator_abstract_collection___ContainerIterator___init(fra
.me
.REG
[0]);
677 stack_frame_head
= fra
.me
.prev
;
678 return fra
.me
.REG
[0];
680 void abstract_collection___Container___init(val_t p0
, val_t p1
, int* init_table
){
681 int itpos0
= VAL2OBJ(p0
)->vft
[INIT_TABLE_POS_Container
].i
;
682 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
684 if (init_table
[itpos0
]) return;
685 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
686 fra
.me
.file
= LOCATE_abstract_collection
;
688 fra
.me
.meth
= LOCATE_abstract_collection___Container___init
;
689 fra
.me
.has_broke
= 0;
691 fra
.me
.REG
[0] = NIT_NULL
;
692 fra
.me
.REG
[1] = NIT_NULL
;
695 /* ./../lib/standard//collection//abstract_collection.nit:159 */
696 ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
697 stack_frame_head
= fra
.me
.prev
;
698 init_table
[itpos0
] = 1;
701 val_t
abstract_collection___Container___item(val_t p0
){
702 struct {struct stack_frame_t me
;} fra
;
704 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
705 fra
.me
.file
= LOCATE_abstract_collection
;
707 fra
.me
.meth
= LOCATE_abstract_collection___Container___item
;
708 fra
.me
.has_broke
= 0;
710 fra
.me
.REG
[0] = NIT_NULL
;
712 /* ./../lib/standard//collection//abstract_collection.nit:161 */
713 fra
.me
.REG
[0] = ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]);
714 stack_frame_head
= fra
.me
.prev
;
715 return fra
.me
.REG
[0];
717 void abstract_collection___Container___item__eq(val_t p0
, val_t p1
){
718 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
720 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
721 fra
.me
.file
= LOCATE_abstract_collection
;
723 fra
.me
.meth
= LOCATE_abstract_collection___Container___item__eq
;
724 fra
.me
.has_broke
= 0;
726 fra
.me
.REG
[0] = NIT_NULL
;
727 fra
.me
.REG
[1] = NIT_NULL
;
730 /* ./../lib/standard//collection//abstract_collection.nit:161 */
731 ATTR_abstract_collection___Container____item(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
732 stack_frame_head
= fra
.me
.prev
;
735 val_t
abstract_collection___ContainerIterator___item(val_t p0
){
736 struct {struct stack_frame_t me
;} fra
;
739 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
740 fra
.me
.file
= LOCATE_abstract_collection
;
742 fra
.me
.meth
= LOCATE_abstract_collection___ContainerIterator___item
;
743 fra
.me
.has_broke
= 0;
745 fra
.me
.REG
[0] = NIT_NULL
;
747 /* ./../lib/standard//collection//abstract_collection.nit:168 */
748 REGB0
= TAG_Bool(ATTR_abstract_collection___ContainerIterator____container(fra
.me
.REG
[0])!=NIT_NULL
);
749 if (UNTAG_Bool(REGB0
)) {
751 nit_abort("Uninitialized attribute %s", "_container", LOCATE_abstract_collection
, 168);
753 fra
.me
.REG
[0] = ATTR_abstract_collection___ContainerIterator____container(fra
.me
.REG
[0]);
754 fra
.me
.REG
[0] = CALL_abstract_collection___Container___item(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
757 stack_frame_head
= fra
.me
.prev
;
758 return fra
.me
.REG
[0];
760 void abstract_collection___ContainerIterator___next(val_t p0
){
761 struct {struct stack_frame_t me
;} fra
;
764 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
765 fra
.me
.file
= LOCATE_abstract_collection
;
767 fra
.me
.meth
= LOCATE_abstract_collection___ContainerIterator___next
;
768 fra
.me
.has_broke
= 0;
770 fra
.me
.REG
[0] = NIT_NULL
;
772 /* ./../lib/standard//collection//abstract_collection.nit:170 */
773 REGB0
= TAG_Bool(false);
774 ATTR_abstract_collection___ContainerIterator____is_ok(fra
.me
.REG
[0]) = REGB0
;
775 stack_frame_head
= fra
.me
.prev
;
778 void abstract_collection___ContainerIterator___init(val_t p0
, val_t p1
, int* init_table
){
779 int itpos1
= VAL2OBJ(p0
)->vft
[INIT_TABLE_POS_ContainerIterator
].i
;
780 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
782 if (init_table
[itpos1
]) return;
783 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
784 fra
.me
.file
= LOCATE_abstract_collection
;
786 fra
.me
.meth
= LOCATE_abstract_collection___ContainerIterator___init
;
787 fra
.me
.has_broke
= 0;
789 fra
.me
.REG
[0] = NIT_NULL
;
790 fra
.me
.REG
[1] = NIT_NULL
;
793 /* ./../lib/standard//collection//abstract_collection.nit:172 */
794 ATTR_abstract_collection___ContainerIterator____container(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
795 stack_frame_head
= fra
.me
.prev
;
796 init_table
[itpos1
] = 1;
799 val_t
abstract_collection___ContainerIterator___is_ok(val_t p0
){
800 struct {struct stack_frame_t me
;} fra
;
803 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
804 fra
.me
.file
= LOCATE_abstract_collection
;
806 fra
.me
.meth
= LOCATE_abstract_collection___ContainerIterator___is_ok
;
807 fra
.me
.has_broke
= 0;
809 fra
.me
.REG
[0] = NIT_NULL
;
811 /* ./../lib/standard//collection//abstract_collection.nit:174 */
812 REGB0
= TAG_Bool(ATTR_abstract_collection___ContainerIterator____is_ok(fra
.me
.REG
[0])!=NIT_NULL
);
813 if (UNTAG_Bool(REGB0
)) {
815 nit_abort("Uninitialized attribute %s", "_is_ok", LOCATE_abstract_collection
, 174);
817 REGB0
= ATTR_abstract_collection___ContainerIterator____is_ok(fra
.me
.REG
[0]);
818 stack_frame_head
= fra
.me
.prev
;
821 void abstract_collection___RemovableCollection___clear(val_t p0
){
822 struct {struct stack_frame_t me
;} fra
;
824 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
825 fra
.me
.file
= LOCATE_abstract_collection
;
827 fra
.me
.meth
= LOCATE_abstract_collection___RemovableCollection___clear
;
828 fra
.me
.has_broke
= 0;
830 /* ./../lib/standard//collection//abstract_collection.nit:182 */
831 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 182);
832 stack_frame_head
= fra
.me
.prev
;
835 void abstract_collection___RemovableCollection___remove(val_t p0
, val_t p1
){
836 struct {struct stack_frame_t me
;} fra
;
838 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
839 fra
.me
.file
= LOCATE_abstract_collection
;
841 fra
.me
.meth
= LOCATE_abstract_collection___RemovableCollection___remove
;
842 fra
.me
.has_broke
= 0;
844 /* ./../lib/standard//collection//abstract_collection.nit:185 */
845 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 185);
846 stack_frame_head
= fra
.me
.prev
;
849 void abstract_collection___RemovableCollection___remove_all(val_t p0
, val_t p1
){
850 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
853 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
854 fra
.me
.file
= LOCATE_abstract_collection
;
856 fra
.me
.meth
= LOCATE_abstract_collection___RemovableCollection___remove_all
;
857 fra
.me
.has_broke
= 0;
859 fra
.me
.REG
[0] = NIT_NULL
;
860 fra
.me
.REG
[1] = NIT_NULL
;
863 /* ./../lib/standard//collection//abstract_collection.nit:189 */
865 REGB0
= CALL_abstract_collection___Collection___has(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
866 if (UNTAG_Bool(REGB0
)) {
867 CALL_abstract_collection___RemovableCollection___remove(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
873 stack_frame_head
= fra
.me
.prev
;
876 void abstract_collection___SimpleCollection___add(val_t p0
, val_t p1
){
877 struct {struct stack_frame_t me
;} fra
;
879 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
880 fra
.me
.file
= LOCATE_abstract_collection
;
882 fra
.me
.meth
= LOCATE_abstract_collection___SimpleCollection___add
;
883 fra
.me
.has_broke
= 0;
885 /* ./../lib/standard//collection//abstract_collection.nit:195 */
886 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 195);
887 stack_frame_head
= fra
.me
.prev
;
890 void abstract_collection___SimpleCollection___add_all(val_t p0
, val_t p1
){
891 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
893 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
894 fra
.me
.file
= LOCATE_abstract_collection
;
896 fra
.me
.meth
= LOCATE_abstract_collection___SimpleCollection___add_all
;
897 fra
.me
.has_broke
= 0;
899 fra
.me
.REG
[0] = NIT_NULL
;
900 fra
.me
.REG
[1] = NIT_NULL
;
903 CALL_abstract_collection___Collection___iterate(fra
.me
.REG
[1])(fra
.me
.REG
[1], (&(fra
.me
)), ((fun_t
)OC_abstract_collection___SimpleCollection___add_all_1
));
904 stack_frame_head
= fra
.me
.prev
;
907 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
){
908 struct {struct stack_frame_t me
;} fra
;
911 /* ./../lib/standard//collection//abstract_collection.nit:200 */
912 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
913 fra
.me
.file
= LOCATE_abstract_collection
;
915 fra
.me
.meth
= LOCATE_abstract_collection___SimpleCollection___add_all
;
916 fra
.me
.has_broke
= 0;
918 fra
.me
.REG
[0] = NIT_NULL
;
919 fra
.me
.closure_ctx
= closctx_param
;
920 fra
.me
.closure_funs
= CREG
;
923 CALL_abstract_collection___SimpleCollection___add(closctx
->REG
[0])(closctx
->REG
[0], fra
.me
.REG
[0]);
924 stack_frame_head
= fra
.me
.prev
;
927 val_t
abstract_collection___Set___has_only(val_t p0
, val_t p1
){
928 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
934 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
935 fra
.me
.file
= LOCATE_abstract_collection
;
937 fra
.me
.meth
= LOCATE_abstract_collection___Set___has_only
;
938 fra
.me
.has_broke
= 0;
940 fra
.me
.REG
[0] = NIT_NULL
;
941 fra
.me
.REG
[1] = NIT_NULL
;
944 /* ./../lib/standard//collection//abstract_collection.nit:217 */
945 REGB0
= CALL_abstract_collection___Collection___length(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
946 /* ./../lib/standard//collection//abstract_collection.nit:218 */
948 REGB2
= TAG_Bool(IS_EQUAL_OO(REGB0
,REGB1
));
949 if (UNTAG_Bool(REGB2
)) {
951 /* ./../lib/standard//kernel.nit:207 */
952 REGB1
= TAG_Bool((REGB0
)==(REGB1
));
953 /* ./../lib/standard//collection//abstract_collection.nit:218 */
956 if (UNTAG_Bool(REGB2
)) {
957 /* ./../lib/standard//collection//abstract_collection.nit:219 */
958 REGB2
= CALL_abstract_collection___Collection___has(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
961 /* ./../lib/standard//collection//abstract_collection.nit:220 */
963 REGB3
= TAG_Bool(IS_EQUAL_OO(REGB0
,REGB1
));
964 if (UNTAG_Bool(REGB3
)) {
966 /* ./../lib/standard//kernel.nit:207 */
967 REGB1
= TAG_Bool((REGB0
)==(REGB1
));
968 /* ./../lib/standard//collection//abstract_collection.nit:220 */
971 if (UNTAG_Bool(REGB3
)) {
972 /* ./../lib/standard//collection//abstract_collection.nit:221 */
973 REGB3
= TAG_Bool(true);
977 /* ./../lib/standard//collection//abstract_collection.nit:223 */
978 REGB3
= TAG_Bool(false);
984 stack_frame_head
= fra
.me
.prev
;
987 val_t
abstract_collection___Set___count(val_t p0
, val_t p1
){
988 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
992 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
993 fra
.me
.file
= LOCATE_abstract_collection
;
995 fra
.me
.meth
= LOCATE_abstract_collection___Set___count
;
996 fra
.me
.has_broke
= 0;
998 fra
.me
.REG
[0] = NIT_NULL
;
999 fra
.me
.REG
[1] = NIT_NULL
;
1002 /* ./../lib/standard//collection//abstract_collection.nit:230 */
1003 REGB0
= CALL_abstract_collection___Collection___has(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
1004 if (UNTAG_Bool(REGB0
)) {
1005 /* ./../lib/standard//collection//abstract_collection.nit:231 */
1009 /* ./../lib/standard//collection//abstract_collection.nit:233 */
1015 stack_frame_head
= fra
.me
.prev
;
1018 void abstract_collection___Set___remove_all(val_t p0
, val_t p1
){
1019 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1021 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1022 fra
.me
.file
= LOCATE_abstract_collection
;
1024 fra
.me
.meth
= LOCATE_abstract_collection___Set___remove_all
;
1025 fra
.me
.has_broke
= 0;
1026 fra
.me
.REG_size
= 2;
1027 fra
.me
.REG
[0] = NIT_NULL
;
1028 fra
.me
.REG
[1] = NIT_NULL
;
1031 /* ./../lib/standard//collection//abstract_collection.nit:238 */
1032 CALL_abstract_collection___RemovableCollection___remove(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
1033 stack_frame_head
= fra
.me
.prev
;
1036 val_t
abstract_collection___MapRead_____bra(val_t p0
, val_t p1
){
1037 struct {struct stack_frame_t me
;} fra
;
1039 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1040 fra
.me
.file
= LOCATE_abstract_collection
;
1042 fra
.me
.meth
= LOCATE_abstract_collection___MapRead_____bra
;
1043 fra
.me
.has_broke
= 0;
1044 fra
.me
.REG_size
= 0;
1045 /* ./../lib/standard//collection//abstract_collection.nit:243 */
1046 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 243);
1047 stack_frame_head
= fra
.me
.prev
;
1050 val_t
abstract_collection___MapRead___has_key(val_t p0
, val_t p1
){
1051 struct {struct stack_frame_t me
;} fra
;
1053 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1054 fra
.me
.file
= LOCATE_abstract_collection
;
1056 fra
.me
.meth
= LOCATE_abstract_collection___MapRead___has_key
;
1057 fra
.me
.has_broke
= 0;
1058 fra
.me
.REG_size
= 0;
1059 /* ./../lib/standard//collection//abstract_collection.nit:246 */
1060 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 246);
1061 stack_frame_head
= fra
.me
.prev
;
1064 val_t
abstract_collection___MapRead___iterator(val_t p0
){
1065 struct {struct stack_frame_t me
;} fra
;
1067 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1068 fra
.me
.file
= LOCATE_abstract_collection
;
1070 fra
.me
.meth
= LOCATE_abstract_collection___MapRead___iterator
;
1071 fra
.me
.has_broke
= 0;
1072 fra
.me
.REG_size
= 0;
1073 /* ./../lib/standard//collection//abstract_collection.nit:249 */
1074 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 249);
1075 stack_frame_head
= fra
.me
.prev
;
1078 void abstract_collection___Map_____braeq(val_t p0
, val_t p1
, val_t p2
){
1079 struct {struct stack_frame_t me
;} fra
;
1081 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1082 fra
.me
.file
= LOCATE_abstract_collection
;
1084 fra
.me
.meth
= LOCATE_abstract_collection___Map_____braeq
;
1085 fra
.me
.has_broke
= 0;
1086 fra
.me
.REG_size
= 0;
1087 /* ./../lib/standard//collection//abstract_collection.nit:267 */
1088 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 267);
1089 stack_frame_head
= fra
.me
.prev
;
1092 void abstract_collection___Map___remove_at(val_t p0
, val_t p1
){
1093 struct {struct stack_frame_t me
;} fra
;
1095 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1096 fra
.me
.file
= LOCATE_abstract_collection
;
1098 fra
.me
.meth
= LOCATE_abstract_collection___Map___remove_at
;
1099 fra
.me
.has_broke
= 0;
1100 fra
.me
.REG_size
= 0;
1101 /* ./../lib/standard//collection//abstract_collection.nit:270 */
1102 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 270);
1103 stack_frame_head
= fra
.me
.prev
;
1106 void abstract_collection___Map___recover_with(val_t p0
, val_t p1
){
1107 struct {struct stack_frame_t me
; val_t MORE_REG
[3];} fra
;
1110 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1111 fra
.me
.file
= LOCATE_abstract_collection
;
1113 fra
.me
.meth
= LOCATE_abstract_collection___Map___recover_with
;
1114 fra
.me
.has_broke
= 0;
1115 fra
.me
.REG_size
= 4;
1116 fra
.me
.REG
[0] = NIT_NULL
;
1117 fra
.me
.REG
[1] = NIT_NULL
;
1118 fra
.me
.REG
[2] = NIT_NULL
;
1119 fra
.me
.REG
[3] = NIT_NULL
;
1122 /* ./../lib/standard//collection//abstract_collection.nit:277 */
1123 fra
.me
.REG
[1] = CALL_abstract_collection___Collection___iterator(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
1124 /* ./../lib/standard//collection//abstract_collection.nit:278 */
1126 REGB0
= CALL_abstract_collection___Iterator___is_ok(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
1127 if (UNTAG_Bool(REGB0
)) {
1128 /* ./../lib/standard//collection//abstract_collection.nit:279 */
1129 fra
.me
.REG
[2] = CALL_abstract_collection___MapIterator___key(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
1130 fra
.me
.REG
[3] = CALL_abstract_collection___Iterator___item(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
1131 CALL_abstract_collection___Map_____braeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[2], fra
.me
.REG
[3]);
1132 /* ./../lib/standard//collection//abstract_collection.nit:280 */
1133 CALL_abstract_collection___Iterator___next(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
1135 /* ./../lib/standard//collection//abstract_collection.nit:278 */
1140 stack_frame_head
= fra
.me
.prev
;
1143 val_t
abstract_collection___MapIterator___key(val_t p0
){
1144 struct {struct stack_frame_t me
;} fra
;
1146 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1147 fra
.me
.file
= LOCATE_abstract_collection
;
1149 fra
.me
.meth
= LOCATE_abstract_collection___MapIterator___key
;
1150 fra
.me
.has_broke
= 0;
1151 fra
.me
.REG_size
= 0;
1152 /* ./../lib/standard//collection//abstract_collection.nit:288 */
1153 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 288);
1154 stack_frame_head
= fra
.me
.prev
;
1157 val_t
abstract_collection___SequenceRead___first(val_t p0
){
1158 struct {struct stack_frame_t me
;} fra
;
1161 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1162 fra
.me
.file
= LOCATE_abstract_collection
;
1164 fra
.me
.meth
= LOCATE_abstract_collection___SequenceRead___first
;
1165 fra
.me
.has_broke
= 0;
1166 fra
.me
.REG_size
= 1;
1167 fra
.me
.REG
[0] = NIT_NULL
;
1169 /* ./../lib/standard//collection//abstract_collection.nit:303 */
1170 REGB0
= CALL_abstract_collection___Collection___is_empty(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1171 REGB0
= TAG_Bool(!UNTAG_Bool(REGB0
));
1172 if (UNTAG_Bool(REGB0
)) {
1174 nit_abort("Assert %s failed", "'not_empty'", LOCATE_abstract_collection
, 303);
1176 /* ./../lib/standard//collection//abstract_collection.nit:304 */
1178 fra
.me
.REG
[0] = CALL_abstract_collection___MapRead_____bra(fra
.me
.REG
[0])(fra
.me
.REG
[0], REGB0
);
1181 stack_frame_head
= fra
.me
.prev
;
1182 return fra
.me
.REG
[0];
1184 val_t
abstract_collection___SequenceRead___last(val_t p0
){
1185 struct {struct stack_frame_t me
;} fra
;
1189 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1190 fra
.me
.file
= LOCATE_abstract_collection
;
1192 fra
.me
.meth
= LOCATE_abstract_collection___SequenceRead___last
;
1193 fra
.me
.has_broke
= 0;
1194 fra
.me
.REG_size
= 1;
1195 fra
.me
.REG
[0] = NIT_NULL
;
1197 /* ./../lib/standard//collection//abstract_collection.nit:311 */
1198 REGB0
= CALL_abstract_collection___Collection___is_empty(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1199 REGB0
= TAG_Bool(!UNTAG_Bool(REGB0
));
1200 if (UNTAG_Bool(REGB0
)) {
1202 nit_abort("Assert %s failed", "'not_empty'", LOCATE_abstract_collection
, 311);
1204 /* ./../lib/standard//collection//abstract_collection.nit:312 */
1205 REGB0
= CALL_abstract_collection___Collection___length(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1207 /* ./../lib/standard//kernel.nit:217 */
1208 REGB1
= TAG_Int(UNTAG_Int(REGB0
)-UNTAG_Int(REGB1
));
1209 /* ./../lib/standard//collection//abstract_collection.nit:312 */
1210 fra
.me
.REG
[0] = CALL_abstract_collection___MapRead_____bra(fra
.me
.REG
[0])(fra
.me
.REG
[0], REGB1
);
1213 stack_frame_head
= fra
.me
.prev
;
1214 return fra
.me
.REG
[0];
1216 val_t
abstract_collection___SequenceRead___index_of(val_t p0
, val_t p1
){
1217 struct {struct stack_frame_t me
; val_t MORE_REG
[2];} fra
;
1221 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1222 fra
.me
.file
= LOCATE_abstract_collection
;
1224 fra
.me
.meth
= LOCATE_abstract_collection___SequenceRead___index_of
;
1225 fra
.me
.has_broke
= 0;
1226 fra
.me
.REG_size
= 3;
1227 fra
.me
.REG
[0] = NIT_NULL
;
1228 fra
.me
.REG
[1] = NIT_NULL
;
1229 fra
.me
.REG
[2] = NIT_NULL
;
1232 /* ./../lib/standard//collection//abstract_collection.nit:319 */
1233 fra
.me
.REG
[0] = CALL_abstract_collection___Collection___iterator(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1234 /* ./../lib/standard//collection//abstract_collection.nit:320 */
1236 REGB0
= CALL_abstract_collection___Iterator___is_ok(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1237 if (UNTAG_Bool(REGB0
)) {
1238 /* ./../lib/standard//collection//abstract_collection.nit:321 */
1239 fra
.me
.REG
[2] = CALL_abstract_collection___Iterator___item(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1240 REGB0
= TAG_Bool(IS_EQUAL_NN(fra
.me
.REG
[2],fra
.me
.REG
[1]));
1241 if (UNTAG_Bool(REGB0
)) {
1243 REGB1
= TAG_Bool(fra
.me
.REG
[2]==NIT_NULL
);
1244 if (UNTAG_Bool(REGB1
)) {
1245 REGB1
= TAG_Bool(false);
1248 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[2])(fra
.me
.REG
[2], fra
.me
.REG
[1]);
1252 if (UNTAG_Bool(REGB0
)) {
1253 REGB0
= CALL_abstract_collection___IndexedIterator___index(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1256 /* ./../lib/standard//collection//abstract_collection.nit:322 */
1257 CALL_abstract_collection___Iterator___next(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1259 /* ./../lib/standard//collection//abstract_collection.nit:320 */
1264 /* ./../lib/standard//collection//abstract_collection.nit:324 */
1266 /* ./../lib/standard//kernel.nit:216 */
1267 REGB1
= TAG_Int(-UNTAG_Int(REGB1
));
1268 /* ./../lib/standard//collection//abstract_collection.nit:324 */
1272 stack_frame_head
= fra
.me
.prev
;
1275 val_t
abstract_collection___SequenceRead___iterator(val_t p0
){
1276 struct {struct stack_frame_t me
;} fra
;
1278 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1279 fra
.me
.file
= LOCATE_abstract_collection
;
1281 fra
.me
.meth
= LOCATE_abstract_collection___SequenceRead___iterator
;
1282 fra
.me
.has_broke
= 0;
1283 fra
.me
.REG_size
= 0;
1284 /* ./../lib/standard//collection//abstract_collection.nit:327 */
1285 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 327);
1286 stack_frame_head
= fra
.me
.prev
;
1289 void abstract_collection___Sequence___first__eq(val_t p0
, val_t p1
){
1290 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1293 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1294 fra
.me
.file
= LOCATE_abstract_collection
;
1296 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___first__eq
;
1297 fra
.me
.has_broke
= 0;
1298 fra
.me
.REG_size
= 2;
1299 fra
.me
.REG
[0] = NIT_NULL
;
1300 fra
.me
.REG
[1] = NIT_NULL
;
1303 /* ./../lib/standard//collection//abstract_collection.nit:339 */
1305 CALL_abstract_collection___Map_____braeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], REGB0
, fra
.me
.REG
[1]);
1306 stack_frame_head
= fra
.me
.prev
;
1309 void abstract_collection___Sequence___last__eq(val_t p0
, val_t p1
){
1310 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1314 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1315 fra
.me
.file
= LOCATE_abstract_collection
;
1317 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___last__eq
;
1318 fra
.me
.has_broke
= 0;
1319 fra
.me
.REG_size
= 2;
1320 fra
.me
.REG
[0] = NIT_NULL
;
1321 fra
.me
.REG
[1] = NIT_NULL
;
1324 /* ./../lib/standard//collection//abstract_collection.nit:345 */
1325 REGB0
= CALL_abstract_collection___Collection___length(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1326 /* ./../lib/standard//collection//abstract_collection.nit:346 */
1328 /* ./../lib/standard//kernel.nit:214 */
1329 REGB1
= TAG_Bool(UNTAG_Int(REGB0
)>UNTAG_Int(REGB1
));
1330 /* ./../lib/standard//collection//abstract_collection.nit:346 */
1331 if (UNTAG_Bool(REGB1
)) {
1332 /* ./../lib/standard//collection//abstract_collection.nit:347 */
1334 /* ./../lib/standard//kernel.nit:217 */
1335 REGB1
= TAG_Int(UNTAG_Int(REGB0
)-UNTAG_Int(REGB1
));
1336 /* ./../lib/standard//collection//abstract_collection.nit:347 */
1337 CALL_abstract_collection___Map_____braeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], REGB1
, fra
.me
.REG
[1]);
1339 /* ./../lib/standard//collection//abstract_collection.nit:349 */
1341 CALL_abstract_collection___Map_____braeq(fra
.me
.REG
[0])(fra
.me
.REG
[0], REGB1
, fra
.me
.REG
[1]);
1343 stack_frame_head
= fra
.me
.prev
;
1346 void abstract_collection___Sequence___add(val_t p0
, val_t p1
){
1347 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1349 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1350 fra
.me
.file
= LOCATE_abstract_collection
;
1352 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___add
;
1353 fra
.me
.has_broke
= 0;
1354 fra
.me
.REG_size
= 2;
1355 fra
.me
.REG
[0] = NIT_NULL
;
1356 fra
.me
.REG
[1] = NIT_NULL
;
1359 /* ./../lib/standard//collection//abstract_collection.nit:354 */
1360 CALL_abstract_collection___Sequence___push(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
1361 stack_frame_head
= fra
.me
.prev
;
1364 void abstract_collection___Sequence___push(val_t p0
, val_t p1
){
1365 struct {struct stack_frame_t me
;} fra
;
1367 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1368 fra
.me
.file
= LOCATE_abstract_collection
;
1370 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___push
;
1371 fra
.me
.has_broke
= 0;
1372 fra
.me
.REG_size
= 0;
1373 /* ./../lib/standard//collection//abstract_collection.nit:356 */
1374 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 356);
1375 stack_frame_head
= fra
.me
.prev
;
1378 void abstract_collection___Sequence___append(val_t p0
, val_t p1
){
1379 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1381 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1382 fra
.me
.file
= LOCATE_abstract_collection
;
1384 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___append
;
1385 fra
.me
.has_broke
= 0;
1386 fra
.me
.REG_size
= 2;
1387 fra
.me
.REG
[0] = NIT_NULL
;
1388 fra
.me
.REG
[1] = NIT_NULL
;
1391 CALL_abstract_collection___Collection___iterate(fra
.me
.REG
[1])(fra
.me
.REG
[1], (&(fra
.me
)), ((fun_t
)OC_abstract_collection___Sequence___append_1
));
1392 stack_frame_head
= fra
.me
.prev
;
1395 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
){
1396 struct {struct stack_frame_t me
;} fra
;
1399 /* ./../lib/standard//collection//abstract_collection.nit:360 */
1400 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1401 fra
.me
.file
= LOCATE_abstract_collection
;
1403 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___append
;
1404 fra
.me
.has_broke
= 0;
1405 fra
.me
.REG_size
= 1;
1406 fra
.me
.REG
[0] = NIT_NULL
;
1407 fra
.me
.closure_ctx
= closctx_param
;
1408 fra
.me
.closure_funs
= CREG
;
1410 CREG
[0] = clos_fun0
;
1411 CALL_abstract_collection___Sequence___push(closctx
->REG
[0])(closctx
->REG
[0], fra
.me
.REG
[0]);
1412 stack_frame_head
= fra
.me
.prev
;
1415 val_t
abstract_collection___Sequence___pop(val_t p0
){
1416 struct {struct stack_frame_t me
;} fra
;
1418 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1419 fra
.me
.file
= LOCATE_abstract_collection
;
1421 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___pop
;
1422 fra
.me
.has_broke
= 0;
1423 fra
.me
.REG_size
= 0;
1424 /* ./../lib/standard//collection//abstract_collection.nit:362 */
1425 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 362);
1426 stack_frame_head
= fra
.me
.prev
;
1429 void abstract_collection___Sequence___unshift(val_t p0
, val_t p1
){
1430 struct {struct stack_frame_t me
;} fra
;
1432 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1433 fra
.me
.file
= LOCATE_abstract_collection
;
1435 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___unshift
;
1436 fra
.me
.has_broke
= 0;
1437 fra
.me
.REG_size
= 0;
1438 /* ./../lib/standard//collection//abstract_collection.nit:365 */
1439 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 365);
1440 stack_frame_head
= fra
.me
.prev
;
1443 val_t
abstract_collection___Sequence___shift(val_t p0
){
1444 struct {struct stack_frame_t me
;} fra
;
1446 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1447 fra
.me
.file
= LOCATE_abstract_collection
;
1449 fra
.me
.meth
= LOCATE_abstract_collection___Sequence___shift
;
1450 fra
.me
.has_broke
= 0;
1451 fra
.me
.REG_size
= 0;
1452 /* ./../lib/standard//collection//abstract_collection.nit:368 */
1453 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 368);
1454 stack_frame_head
= fra
.me
.prev
;
1457 val_t
abstract_collection___IndexedIterator___index(val_t p0
){
1458 struct {struct stack_frame_t me
;} fra
;
1460 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1461 fra
.me
.file
= LOCATE_abstract_collection
;
1463 fra
.me
.meth
= LOCATE_abstract_collection___IndexedIterator___index
;
1464 fra
.me
.has_broke
= 0;
1465 fra
.me
.REG_size
= 0;
1466 /* ./../lib/standard//collection//abstract_collection.nit:377 */
1467 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 377);
1468 stack_frame_head
= fra
.me
.prev
;
1471 val_t
abstract_collection___IndexedIterator___key(val_t p0
){
1472 struct {struct stack_frame_t me
;} fra
;
1475 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1476 fra
.me
.file
= LOCATE_abstract_collection
;
1478 fra
.me
.meth
= LOCATE_abstract_collection___IndexedIterator___key
;
1479 fra
.me
.has_broke
= 0;
1480 fra
.me
.REG_size
= 1;
1481 fra
.me
.REG
[0] = NIT_NULL
;
1483 /* ./../lib/standard//collection//abstract_collection.nit:381 */
1484 REGB0
= CALL_abstract_collection___IndexedIterator___index(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1487 stack_frame_head
= fra
.me
.prev
;
1490 val_t
abstract_collection___CoupleMap___couple_at(val_t p0
, val_t p1
){
1491 struct {struct stack_frame_t me
;} fra
;
1493 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1494 fra
.me
.file
= LOCATE_abstract_collection
;
1496 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMap___couple_at
;
1497 fra
.me
.has_broke
= 0;
1498 fra
.me
.REG_size
= 0;
1499 /* ./../lib/standard//collection//abstract_collection.nit:387 */
1500 nit_abort("Deferred method called", NULL
, LOCATE_abstract_collection
, 387);
1501 stack_frame_head
= fra
.me
.prev
;
1504 val_t
abstract_collection___CoupleMap_____bra(val_t p0
, val_t p1
){
1505 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1509 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1510 fra
.me
.file
= LOCATE_abstract_collection
;
1512 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMap_____bra
;
1513 fra
.me
.has_broke
= 0;
1514 fra
.me
.REG_size
= 2;
1515 fra
.me
.REG
[0] = NIT_NULL
;
1516 fra
.me
.REG
[1] = NIT_NULL
;
1519 /* ./../lib/standard//collection//abstract_collection.nit:393 */
1520 fra
.me
.REG
[1] = CALL_abstract_collection___CoupleMap___couple_at(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
1521 /* ./../lib/standard//collection//abstract_collection.nit:394 */
1522 REGB0
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
1523 if (UNTAG_Bool(REGB0
)) {
1525 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
1526 if (UNTAG_Bool(REGB1
)) {
1527 REGB1
= TAG_Bool(false);
1530 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[1])(fra
.me
.REG
[1], NIT_NULL
);
1534 if (UNTAG_Bool(REGB0
)) {
1535 /* ./../lib/standard//collection//abstract_collection.nit:395 */
1536 nit_abort("Aborted", NULL
, LOCATE_abstract_collection
, 395);
1538 /* ./../lib/standard//collection//abstract_collection.nit:397 */
1539 REGB0
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
1540 if (UNTAG_Bool(REGB0
)) {
1541 nit_abort("Reciever is null", NULL
, LOCATE_abstract_collection
, 397);
1543 fra
.me
.REG
[1] = CALL_abstract_collection___Couple___second(fra
.me
.REG
[1])(fra
.me
.REG
[1]);
1547 stack_frame_head
= fra
.me
.prev
;
1548 return fra
.me
.REG
[1];
1550 val_t
abstract_collection___CoupleMap___has_key(val_t p0
, val_t p1
){
1551 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1555 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1556 fra
.me
.file
= LOCATE_abstract_collection
;
1558 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMap___has_key
;
1559 fra
.me
.has_broke
= 0;
1560 fra
.me
.REG_size
= 2;
1561 fra
.me
.REG
[0] = NIT_NULL
;
1562 fra
.me
.REG
[1] = NIT_NULL
;
1565 /* ./../lib/standard//collection//abstract_collection.nit:401 */
1566 fra
.me
.REG
[1] = CALL_abstract_collection___CoupleMap___couple_at(fra
.me
.REG
[0])(fra
.me
.REG
[0], fra
.me
.REG
[1]);
1567 REGB0
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
1568 if (UNTAG_Bool(REGB0
)) {
1570 REGB1
= TAG_Bool(fra
.me
.REG
[1]==NIT_NULL
);
1571 if (UNTAG_Bool(REGB1
)) {
1572 REGB1
= TAG_Bool(false);
1575 REGB1
= CALL_kernel___Object_____eqeq(fra
.me
.REG
[1])(fra
.me
.REG
[1], NIT_NULL
);
1579 REGB0
= TAG_Bool(!UNTAG_Bool(REGB0
));
1582 stack_frame_head
= fra
.me
.prev
;
1585 val_t
abstract_collection___CoupleMapIterator___item(val_t p0
){
1586 struct {struct stack_frame_t me
;} fra
;
1589 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1590 fra
.me
.file
= LOCATE_abstract_collection
;
1592 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMapIterator___item
;
1593 fra
.me
.has_broke
= 0;
1594 fra
.me
.REG_size
= 1;
1595 fra
.me
.REG
[0] = NIT_NULL
;
1597 /* ./../lib/standard//collection//abstract_collection.nit:409 */
1598 REGB0
= TAG_Bool(ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0])!=NIT_NULL
);
1599 if (UNTAG_Bool(REGB0
)) {
1601 nit_abort("Uninitialized attribute %s", "_iter", LOCATE_abstract_collection
, 409);
1603 fra
.me
.REG
[0] = ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0]);
1604 fra
.me
.REG
[0] = CALL_abstract_collection___Iterator___item(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1605 REGB0
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
1606 if (UNTAG_Bool(REGB0
)) {
1607 nit_abort("Reciever is null", NULL
, LOCATE_abstract_collection
, 409);
1609 fra
.me
.REG
[0] = CALL_abstract_collection___Couple___second(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1612 stack_frame_head
= fra
.me
.prev
;
1613 return fra
.me
.REG
[0];
1615 val_t
abstract_collection___CoupleMapIterator___key(val_t p0
){
1616 struct {struct stack_frame_t me
;} fra
;
1619 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1620 fra
.me
.file
= LOCATE_abstract_collection
;
1622 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMapIterator___key
;
1623 fra
.me
.has_broke
= 0;
1624 fra
.me
.REG_size
= 1;
1625 fra
.me
.REG
[0] = NIT_NULL
;
1627 /* ./../lib/standard//collection//abstract_collection.nit:413 */
1628 REGB0
= TAG_Bool(ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0])!=NIT_NULL
);
1629 if (UNTAG_Bool(REGB0
)) {
1631 nit_abort("Uninitialized attribute %s", "_iter", LOCATE_abstract_collection
, 413);
1633 fra
.me
.REG
[0] = ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0]);
1634 fra
.me
.REG
[0] = CALL_abstract_collection___Iterator___item(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1635 REGB0
= TAG_Bool(fra
.me
.REG
[0]==NIT_NULL
);
1636 if (UNTAG_Bool(REGB0
)) {
1637 nit_abort("Reciever is null", NULL
, LOCATE_abstract_collection
, 413);
1639 fra
.me
.REG
[0] = CALL_abstract_collection___Couple___first(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1642 stack_frame_head
= fra
.me
.prev
;
1643 return fra
.me
.REG
[0];
1645 val_t
abstract_collection___CoupleMapIterator___is_ok(val_t p0
){
1646 struct {struct stack_frame_t me
;} fra
;
1649 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1650 fra
.me
.file
= LOCATE_abstract_collection
;
1652 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMapIterator___is_ok
;
1653 fra
.me
.has_broke
= 0;
1654 fra
.me
.REG_size
= 1;
1655 fra
.me
.REG
[0] = NIT_NULL
;
1657 /* ./../lib/standard//collection//abstract_collection.nit:415 */
1658 REGB0
= TAG_Bool(ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0])!=NIT_NULL
);
1659 if (UNTAG_Bool(REGB0
)) {
1661 nit_abort("Uninitialized attribute %s", "_iter", LOCATE_abstract_collection
, 415);
1663 fra
.me
.REG
[0] = ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0]);
1664 REGB0
= CALL_abstract_collection___Iterator___is_ok(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1667 stack_frame_head
= fra
.me
.prev
;
1670 void abstract_collection___CoupleMapIterator___next(val_t p0
){
1671 struct {struct stack_frame_t me
;} fra
;
1674 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1675 fra
.me
.file
= LOCATE_abstract_collection
;
1677 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMapIterator___next
;
1678 fra
.me
.has_broke
= 0;
1679 fra
.me
.REG_size
= 1;
1680 fra
.me
.REG
[0] = NIT_NULL
;
1682 /* ./../lib/standard//collection//abstract_collection.nit:419 */
1683 REGB0
= TAG_Bool(ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0])!=NIT_NULL
);
1684 if (UNTAG_Bool(REGB0
)) {
1686 nit_abort("Uninitialized attribute %s", "_iter", LOCATE_abstract_collection
, 419);
1688 fra
.me
.REG
[0] = ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0]);
1689 CALL_abstract_collection___Iterator___next(fra
.me
.REG
[0])(fra
.me
.REG
[0]);
1690 stack_frame_head
= fra
.me
.prev
;
1693 void abstract_collection___CoupleMapIterator___init(val_t p0
, val_t p1
, int* init_table
){
1694 int itpos2
= VAL2OBJ(p0
)->vft
[INIT_TABLE_POS_CoupleMapIterator
].i
;
1695 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1697 if (init_table
[itpos2
]) return;
1698 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1699 fra
.me
.file
= LOCATE_abstract_collection
;
1701 fra
.me
.meth
= LOCATE_abstract_collection___CoupleMapIterator___init
;
1702 fra
.me
.has_broke
= 0;
1703 fra
.me
.REG_size
= 2;
1704 fra
.me
.REG
[0] = NIT_NULL
;
1705 fra
.me
.REG
[1] = NIT_NULL
;
1708 /* ./../lib/standard//collection//abstract_collection.nit:424 */
1709 ATTR_abstract_collection___CoupleMapIterator____iter(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
1710 stack_frame_head
= fra
.me
.prev
;
1711 init_table
[itpos2
] = 1;
1714 val_t
abstract_collection___Couple___first(val_t p0
){
1715 struct {struct stack_frame_t me
;} fra
;
1717 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1718 fra
.me
.file
= LOCATE_abstract_collection
;
1720 fra
.me
.meth
= LOCATE_abstract_collection___Couple___first
;
1721 fra
.me
.has_broke
= 0;
1722 fra
.me
.REG_size
= 1;
1723 fra
.me
.REG
[0] = NIT_NULL
;
1725 /* ./../lib/standard//collection//abstract_collection.nit:432 */
1726 fra
.me
.REG
[0] = ATTR_abstract_collection___Couple____first(fra
.me
.REG
[0]);
1727 stack_frame_head
= fra
.me
.prev
;
1728 return fra
.me
.REG
[0];
1730 void abstract_collection___Couple___first__eq(val_t p0
, val_t p1
){
1731 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1733 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1734 fra
.me
.file
= LOCATE_abstract_collection
;
1736 fra
.me
.meth
= LOCATE_abstract_collection___Couple___first__eq
;
1737 fra
.me
.has_broke
= 0;
1738 fra
.me
.REG_size
= 2;
1739 fra
.me
.REG
[0] = NIT_NULL
;
1740 fra
.me
.REG
[1] = NIT_NULL
;
1743 /* ./../lib/standard//collection//abstract_collection.nit:432 */
1744 ATTR_abstract_collection___Couple____first(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
1745 stack_frame_head
= fra
.me
.prev
;
1748 val_t
abstract_collection___Couple___second(val_t p0
){
1749 struct {struct stack_frame_t me
;} fra
;
1751 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1752 fra
.me
.file
= LOCATE_abstract_collection
;
1754 fra
.me
.meth
= LOCATE_abstract_collection___Couple___second
;
1755 fra
.me
.has_broke
= 0;
1756 fra
.me
.REG_size
= 1;
1757 fra
.me
.REG
[0] = NIT_NULL
;
1759 /* ./../lib/standard//collection//abstract_collection.nit:435 */
1760 fra
.me
.REG
[0] = ATTR_abstract_collection___Couple____second(fra
.me
.REG
[0]);
1761 stack_frame_head
= fra
.me
.prev
;
1762 return fra
.me
.REG
[0];
1764 void abstract_collection___Couple___second__eq(val_t p0
, val_t p1
){
1765 struct {struct stack_frame_t me
; val_t MORE_REG
[1];} fra
;
1767 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1768 fra
.me
.file
= LOCATE_abstract_collection
;
1770 fra
.me
.meth
= LOCATE_abstract_collection___Couple___second__eq
;
1771 fra
.me
.has_broke
= 0;
1772 fra
.me
.REG_size
= 2;
1773 fra
.me
.REG
[0] = NIT_NULL
;
1774 fra
.me
.REG
[1] = NIT_NULL
;
1777 /* ./../lib/standard//collection//abstract_collection.nit:435 */
1778 ATTR_abstract_collection___Couple____second(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
1779 stack_frame_head
= fra
.me
.prev
;
1782 void abstract_collection___Couple___init(val_t p0
, val_t p1
, val_t p2
, int* init_table
){
1783 int itpos3
= VAL2OBJ(p0
)->vft
[INIT_TABLE_POS_Couple
].i
;
1784 struct {struct stack_frame_t me
; val_t MORE_REG
[2];} fra
;
1786 if (init_table
[itpos3
]) return;
1787 fra
.me
.prev
= stack_frame_head
; stack_frame_head
= &fra
.me
;
1788 fra
.me
.file
= LOCATE_abstract_collection
;
1790 fra
.me
.meth
= LOCATE_abstract_collection___Couple___init
;
1791 fra
.me
.has_broke
= 0;
1792 fra
.me
.REG_size
= 3;
1793 fra
.me
.REG
[0] = NIT_NULL
;
1794 fra
.me
.REG
[1] = NIT_NULL
;
1795 fra
.me
.REG
[2] = NIT_NULL
;
1799 /* ./../lib/standard//collection//abstract_collection.nit:441 */
1800 ATTR_abstract_collection___Couple____first(fra
.me
.REG
[0]) = fra
.me
.REG
[1];
1801 /* ./../lib/standard//collection//abstract_collection.nit:442 */
1802 ATTR_abstract_collection___Couple____second(fra
.me
.REG
[0]) = fra
.me
.REG
[2];
1803 stack_frame_head
= fra
.me
.prev
;
1804 init_table
[itpos3
] = 1;