1 #include "standard__hash_collection.sep.0.h"
2 /* method hash_collection#HashCollection#index_at for (self: HashCollection[nullable Object], nullable Object): Int */
3 long standard__hash_collection___standard__hash_collection__HashCollection___index_at(val
* self
, val
* p0
) {
5 short int var1
/* : Bool */;
8 const struct type
* type_struct
;
10 const char* var_class_name
;
11 val
* var_k
/* var k: nullable Object */;
12 val
* var2
/* : null */;
13 short int var3
/* : Bool */;
14 short int var4
/* : Bool */;
15 long var5
/* : Int */;
16 long var6
/* : Int */;
17 long var7
/* : Int */;
18 long var8
/* : Int */;
19 long var10
/* : Int */;
20 long var_i
/* var i: Int */;
21 long var11
/* : Int */;
22 short int var12
/* : Bool */;
23 short int var14
/* : Bool */;
26 const char* var_class_name17
;
27 short int var18
/* : Bool */;
28 long var19
/* : Int */;
29 long var21
/* : Int */;
30 /* Covariant cast for argument 0 (k) <p0:nullable Object> isa K */
31 /* <p0:nullable Object> isa K */
32 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashCollection___35dK
];
33 cltype
= type_struct
->color
;
34 idtype
= type_struct
->id
;
35 is_nullable
= type_struct
->is_nullable
;
39 if(cltype
>= p0
->type
->table_size
) {
42 var1
= p0
->type
->type_table
[cltype
] == idtype
;
45 if (unlikely(!var1
)) {
46 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
47 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "K", var_class_name
);
48 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 40);
54 var3
= 1; /* is null */
56 var3
= 0; /* arg is null but recv is not */
59 var4
= ((short int (*)(val
* self
, val
* p0
))(var_k
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_k
, var2
) /* == on <var_k:nullable Object>*/;
69 PRINT_ERROR("Runtime error: %s", "Receiver is null");
70 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 45);
73 var6
= ((long (*)(val
* self
))(var_k
->class->vft
[COLOR_standard__kernel__Object__hash
]))(var_k
) /* hash on <var_k:nullable Object>*/;
75 var7
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___capacity
].l
; /* _capacity on <self:HashCollection[nullable Object]> */
77 { /* Inline kernel#Int#% (var6,var7) on <var6:Int> */
87 { /* Inline kernel#Int#< (var_i,var11) on <var_i:Int> */
88 /* Covariant cast for argument 0 (i) <var11:Int> isa OTHER */
89 /* <var11:Int> isa OTHER */
90 var14
= 1; /* easy <var11:Int> isa OTHER*/
91 if (unlikely(!var14
)) {
92 var_class_name17
= type_standard__Int
.name
;
93 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name17
);
94 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 410);
97 var18
= var_i
< var11
;
105 { /* Inline kernel#Int#unary - (var_i) on <var_i:Int> */
120 /* method hash_collection#HashCollection#node_at for (self: HashCollection[nullable Object], nullable Object): nullable HashNode[nullable Object] */
121 val
* standard__hash_collection___standard__hash_collection__HashCollection___node_at(val
* self
, val
* p0
) {
122 val
* var
/* : nullable HashNode[nullable Object] */;
123 short int var1
/* : Bool */;
126 const struct type
* type_struct
;
127 short int is_nullable
;
128 const char* var_class_name
;
129 val
* var_k
/* var k: nullable Object */;
130 val
* var2
/* : nullable Object */;
131 short int var3
/* : Bool */;
132 short int var4
/* : Bool */;
133 short int var6
/* : Bool */;
134 val
* var7
/* : nullable HashNode[nullable Object] */;
135 long var8
/* : Int */;
136 val
* var9
/* : nullable HashNode[nullable Object] */;
137 val
* var_res
/* var res: nullable HashNode[nullable Object] */;
138 /* Covariant cast for argument 0 (k) <p0:nullable Object> isa K */
139 /* <p0:nullable Object> isa K */
140 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashCollection___35dK
];
141 cltype
= type_struct
->color
;
142 idtype
= type_struct
->id
;
143 is_nullable
= type_struct
->is_nullable
;
147 if(cltype
>= p0
->type
->table_size
) {
150 var1
= p0
->type
->type_table
[cltype
] == idtype
;
153 if (unlikely(!var1
)) {
154 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
155 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "K", var_class_name
);
156 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 50);
160 var2
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_accessed_key
].val
; /* _last_accessed_key on <self:HashCollection[nullable Object]> */
162 var3
= (var2
== NULL
);
164 { /* Inline kernel#Object#is_same_instance (var_k,var2) on <var_k:nullable Object> */
165 var6
= var_k
== var2
|| (var_k
!= NULL
&& var2
!= NULL
&& var_k
->class == var2
->class && ((var_k
->class->box_kind
== 1 && ((struct instance_standard__Int
*)var_k
)->value
== ((struct instance_standard__Int
*)var2
)->value
) || (var_k
->class->box_kind
== 2 && ((struct instance_standard__Bool
*)var_k
)->value
== ((struct instance_standard__Bool
*)var2
)->value
) || (var_k
->class->box_kind
== 3 && ((struct instance_standard__Char
*)var_k
)->value
== ((struct instance_standard__Char
*)var2
)->value
) || (var_k
->class->box_kind
== 4 && ((struct instance_standard__Float
*)var_k
)->value
== ((struct instance_standard__Float
*)var2
)->value
) || (var_k
->class->box_kind
== 5 && ((struct instance_standard__NativeString
*)var_k
)->value
== ((struct instance_standard__NativeString
*)var2
)->value
) || (var_k
->class->box_kind
== 6 && ((struct instance_standard__Pointer
*)var_k
)->value
== ((struct instance_standard__Pointer
*)var2
)->value
)));
173 var7
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_accessed_node
].val
; /* _last_accessed_node on <self:HashCollection[nullable Object]> */
179 var8
= standard__hash_collection___standard__hash_collection__HashCollection___index_at(self
, var_k
);
182 var9
= standard__hash_collection___standard__hash_collection__HashCollection___node_at_idx(self
, var8
, var_k
);
185 self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_accessed_key
].val
= var_k
; /* _last_accessed_key on <self:HashCollection[nullable Object]> */
186 self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_accessed_node
].val
= var_res
; /* _last_accessed_node on <self:HashCollection[nullable Object]> */
192 /* method hash_collection#HashCollection#node_at_idx for (self: HashCollection[nullable Object], Int, nullable Object): nullable HashNode[nullable Object] */
193 val
* standard__hash_collection___standard__hash_collection__HashCollection___node_at_idx(val
* self
, long p0
, val
* p1
) {
194 val
* var
/* : nullable HashNode[nullable Object] */;
195 short int var1
/* : Bool */;
198 const struct type
* type_struct
;
199 short int is_nullable
;
200 const char* var_class_name
;
201 long var_i
/* var i: Int */;
202 val
* var_k
/* var k: nullable Object */;
203 val
* var2
/* : nullable NativeArray[nullable HashNode[nullable Object]] */;
204 val
* var3
/* : nullable Object */;
205 val
* var5
/* : nullable HashNode[nullable Object] */;
206 val
* var_c
/* var c: nullable HashNode[nullable Object] */;
207 val
* var6
/* : null */;
208 short int var7
/* : Bool */;
209 short int var8
/* : Bool */;
210 val
* var_other
/* var other: nullable Object */;
211 short int var10
/* : Bool */;
212 short int var11
/* : Bool */;
213 val
* var12
/* : nullable Object */;
214 val
* var_ck
/* var ck: nullable Object */;
215 short int var13
/* : Bool */;
216 short int var14
/* : Bool */;
217 short int var15
/* : Bool */;
218 short int var17
/* : Bool */;
219 short int var_
/* var : Bool */;
220 short int var18
/* : Bool */;
221 short int var19
/* : Bool */;
222 val
* var20
/* : nullable HashNode[nullable Object] */;
223 short int var21
/* : Bool */;
226 const struct type
* type_struct24
;
227 const char* var_class_name25
;
228 /* Covariant cast for argument 1 (k) <p1:nullable Object> isa K */
229 /* <p1:nullable Object> isa K */
230 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashCollection___35dK
];
231 cltype
= type_struct
->color
;
232 idtype
= type_struct
->id
;
233 is_nullable
= type_struct
->is_nullable
;
237 if(cltype
>= p1
->type
->table_size
) {
240 var1
= p1
->type
->type_table
[cltype
] == idtype
;
243 if (unlikely(!var1
)) {
244 var_class_name
= p1
== NULL ?
"null" : p1
->type
->name
;
245 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "K", var_class_name
);
246 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 62);
251 var2
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___array
].val
; /* _array on <self:HashCollection[nullable Object]> */
253 PRINT_ERROR("Runtime error: %s", "Receiver is null");
254 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 65);
257 { /* Inline array#NativeArray#[] (var2,var_i) on <var2:nullable NativeArray[nullable HashNode[nullable Object]]> */
258 var5
= ((struct instance_standard__NativeArray
*)var2
)->values
[var_i
];
268 var7
= 0; /* is null */
270 var7
= 1; /* arg is null and recv is not */
273 { /* Inline kernel#Object#!= (var_c,var6) on <var_c:nullable HashNode[nullable Object]> */
276 var10
= ((short int (*)(val
* self
, val
* p0
))(var_c
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_c
, var_other
) /* == on <var_c:nullable HashNode[nullable Object](HashNode[nullable Object])>*/;
286 var12
= var_c
->attrs
[COLOR_standard__hash_collection__HashNode___key
].val
; /* _key on <var_c:nullable HashNode[nullable Object](HashNode[nullable Object])> */
288 if (var_ck
== NULL
) {
289 var14
= (var_k
== NULL
);
291 { /* Inline kernel#Object#is_same_instance (var_ck,var_k) on <var_ck:nullable Object> */
292 var17
= var_ck
== var_k
|| (var_ck
!= NULL
&& var_k
!= NULL
&& var_ck
->class == var_k
->class && ((var_ck
->class->box_kind
== 1 && ((struct instance_standard__Int
*)var_ck
)->value
== ((struct instance_standard__Int
*)var_k
)->value
) || (var_ck
->class->box_kind
== 2 && ((struct instance_standard__Bool
*)var_ck
)->value
== ((struct instance_standard__Bool
*)var_k
)->value
) || (var_ck
->class->box_kind
== 3 && ((struct instance_standard__Char
*)var_ck
)->value
== ((struct instance_standard__Char
*)var_k
)->value
) || (var_ck
->class->box_kind
== 4 && ((struct instance_standard__Float
*)var_ck
)->value
== ((struct instance_standard__Float
*)var_k
)->value
) || (var_ck
->class->box_kind
== 5 && ((struct instance_standard__NativeString
*)var_ck
)->value
== ((struct instance_standard__NativeString
*)var_k
)->value
) || (var_ck
->class->box_kind
== 6 && ((struct instance_standard__Pointer
*)var_ck
)->value
== ((struct instance_standard__Pointer
*)var_k
)->value
)));
303 if (var_ck
== NULL
) {
304 var18
= (var_k
== NULL
);
306 var19
= ((short int (*)(val
* self
, val
* p0
))(var_ck
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_ck
, var_k
) /* == on <var_ck:nullable Object>*/;
315 var20
= var_c
->attrs
[COLOR_standard__hash_collection__HashNode___next_in_bucklet
].val
; /* _next_in_bucklet on <var_c:nullable HashNode[nullable Object](HashNode[nullable Object])> */
321 BREAK_label
: (void)0;
322 /* <var_c:nullable HashNode[nullable Object]> isa nullable N */
323 type_struct24
= self
->type
->resolution_table
->types
[COLOR_nullable__standard__hash_collection__HashCollection__N
];
324 cltype22
= type_struct24
->color
;
325 idtype23
= type_struct24
->id
;
329 if(cltype22
>= var_c
->type
->table_size
) {
332 var21
= var_c
->type
->type_table
[cltype22
] == idtype23
;
335 if (unlikely(!var21
)) {
336 var_class_name25
= var_c
== NULL ?
"null" : var_c
->type
->name
;
337 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable N", var_class_name25
);
338 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 73);
346 /* method hash_collection#HashCollection#store for (self: HashCollection[nullable Object], Int, HashNode[nullable Object]) */
347 void standard__hash_collection___standard__hash_collection__HashCollection___store(val
* self
, long p0
, val
* p1
) {
348 short int var
/* : Bool */;
351 const struct type
* type_struct
;
352 const char* var_class_name
;
353 long var_index
/* var index: Int */;
354 val
* var_node
/* var node: HashNode[nullable Object] */;
355 val
* var1
/* : nullable HashNode[nullable Object] */;
356 val
* var2
/* : null */;
357 short int var3
/* : Bool */;
358 short int var4
/* : Bool */;
359 val
* var_other
/* var other: nullable Object */;
360 short int var6
/* : Bool */;
361 short int var8
/* : Bool */;
362 val
* var9
/* : nullable HashNode[nullable Object] */;
363 val
* var10
/* : nullable HashNode[nullable Object] */;
364 val
* var11
/* : null */;
365 val
* var12
/* : nullable NativeArray[nullable HashNode[nullable Object]] */;
366 val
* var13
/* : nullable Object */;
367 val
* var15
/* : nullable HashNode[nullable Object] */;
368 val
* var_next
/* var next: nullable HashNode[nullable Object] */;
369 val
* var16
/* : nullable NativeArray[nullable HashNode[nullable Object]] */;
370 short int var18
/* : Bool */;
373 const struct type
* type_struct21
;
374 const char* var_class_name22
;
375 val
* var23
/* : null */;
376 short int var24
/* : Bool */;
377 short int var25
/* : Bool */;
378 val
* var_other27
/* var other: nullable Object */;
379 short int var28
/* : Bool */;
380 short int var29
/* : Bool */;
381 val
* var30
/* : nullable Object */;
382 long var31
/* : Int */;
383 long var_l
/* var l: Int */;
384 long var32
/* : Int */;
385 long var33
/* : Int */;
386 short int var35
/* : Bool */;
389 const char* var_class_name38
;
390 long var39
/* : Int */;
391 long var40
/* : Int */;
392 long var41
/* : Int */;
393 short int var43
/* : Bool */;
396 const char* var_class_name46
;
397 long var47
/* : Int */;
398 long var48
/* : Int */;
399 long var49
/* : Int */;
400 short int var51
/* : Bool */;
403 const char* var_class_name54
;
404 long var55
/* : Int */;
405 long var56
/* : Int */;
406 long var57
/* : Int */;
407 short int var59
/* : Bool */;
410 const char* var_class_name62
;
411 long var63
/* : Int */;
412 long var64
/* : Int */;
413 short int var65
/* : Bool */;
414 short int var67
/* : Bool */;
417 const char* var_class_name70
;
418 short int var71
/* : Bool */;
419 long var72
/* : Int */;
420 long var73
/* : Int */;
421 short int var75
/* : Bool */;
424 const char* var_class_name78
;
425 long var79
/* : Int */;
426 long var80
/* : Int */;
427 long var81
/* : Int */;
428 short int var83
/* : Bool */;
431 const char* var_class_name86
;
432 long var87
/* : Int */;
433 long var88
/* : Int */;
434 long var89
/* : Int */;
435 short int var91
/* : Bool */;
438 const char* var_class_name94
;
439 long var95
/* : Int */;
440 /* Covariant cast for argument 1 (node) <p1:HashNode[nullable Object]> isa N */
441 /* <p1:HashNode[nullable Object]> isa N */
442 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashCollection__N
];
443 cltype
= type_struct
->color
;
444 idtype
= type_struct
->id
;
445 if(cltype
>= p1
->type
->table_size
) {
448 var
= p1
->type
->type_table
[cltype
] == idtype
;
450 if (unlikely(!var
)) {
451 var_class_name
= p1
== NULL ?
"null" : p1
->type
->name
;
452 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "N", var_class_name
);
453 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 76);
458 var1
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___first_item
].val
; /* _first_item on <self:HashCollection[nullable Object]> */
461 var3
= 1; /* is null */
463 var3
= 0; /* arg is null but recv is not */
466 { /* Inline kernel#Object#== (var1,var2) on <var1:nullable HashNode[nullable Object]> */
469 { /* Inline kernel#Object#is_same_instance (var1,var_other) on <var1:nullable HashNode[nullable Object](HashNode[nullable Object])> */
470 var8
= var1
== var_other
;
483 self
->attrs
[COLOR_standard__hash_collection__HashCollection___first_item
].val
= var_node
; /* _first_item on <self:HashCollection[nullable Object]> */
485 var9
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_item
].val
; /* _last_item on <self:HashCollection[nullable Object]> */
486 if (unlikely(var9
== NULL
)) {
487 PRINT_ERROR("Runtime error: %s", "Receiver is null");
488 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 83);
491 var9
->attrs
[COLOR_standard__hash_collection__HashNode___next_item
].val
= var_node
; /* _next_item on <var9:nullable HashNode[nullable Object]> */
493 var10
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_item
].val
; /* _last_item on <self:HashCollection[nullable Object]> */
494 var_node
->attrs
[COLOR_standard__hash_collection__HashNode___prev_item
].val
= var10
; /* _prev_item on <var_node:HashNode[nullable Object]> */
496 var_node
->attrs
[COLOR_standard__hash_collection__HashNode___next_item
].val
= var11
; /* _next_item on <var_node:HashNode[nullable Object]> */
497 self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_item
].val
= var_node
; /* _last_item on <self:HashCollection[nullable Object]> */
498 var12
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___array
].val
; /* _array on <self:HashCollection[nullable Object]> */
500 PRINT_ERROR("Runtime error: %s", "Receiver is null");
501 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 90);
504 { /* Inline array#NativeArray#[] (var12,var_index) on <var12:nullable NativeArray[nullable HashNode[nullable Object]]> */
505 var15
= ((struct instance_standard__NativeArray
*)var12
)->values
[var_index
];
512 var16
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___array
].val
; /* _array on <self:HashCollection[nullable Object]> */
514 PRINT_ERROR("Runtime error: %s", "Receiver is null");
515 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 91);
518 { /* Inline array#NativeArray#[]= (var16,var_index,var_node) on <var16:nullable NativeArray[nullable HashNode[nullable Object]]> */
519 /* Covariant cast for argument 1 (item) <var_node:HashNode[nullable Object]> isa E */
520 /* <var_node:HashNode[nullable Object]> isa E */
521 type_struct21
= var16
->type
->resolution_table
->types
[COLOR_standard__NativeArray___35dE
];
522 cltype19
= type_struct21
->color
;
523 idtype20
= type_struct21
->id
;
524 if(cltype19
>= var_node
->type
->table_size
) {
527 var18
= var_node
->type
->type_table
[cltype19
] == idtype20
;
529 if (unlikely(!var18
)) {
530 var_class_name22
= var_node
== NULL ?
"null" : var_node
->type
->name
;
531 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "E", var_class_name22
);
532 PRINT_ERROR(" (%s:%d)\n", FILE_standard__array
, 808);
535 ((struct instance_standard__NativeArray
*)var16
)->values
[var_index
]=var_node
;
539 var_node
->attrs
[COLOR_standard__hash_collection__HashNode___next_in_bucklet
].val
= var_next
; /* _next_in_bucklet on <var_node:HashNode[nullable Object]> */
541 if (var_next
== NULL
) {
542 var24
= 0; /* is null */
544 var24
= 1; /* arg is null and recv is not */
547 { /* Inline kernel#Object#!= (var_next,var23) on <var_next:nullable HashNode[nullable Object]> */
550 var28
= ((short int (*)(val
* self
, val
* p0
))(var_next
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_next
, var_other27
) /* == on <var_next:nullable HashNode[nullable Object](HashNode[nullable Object])>*/;
560 var_next
->attrs
[COLOR_standard__hash_collection__HashNode___prev_in_bucklet
].val
= var_node
; /* _prev_in_bucklet on <var_next:nullable HashNode[nullable Object](HashNode[nullable Object])> */
563 var30
= var_node
->attrs
[COLOR_standard__hash_collection__HashNode___key
].val
; /* _key on <var_node:HashNode[nullable Object]> */
564 self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_accessed_key
].val
= var30
; /* _last_accessed_key on <self:HashCollection[nullable Object]> */
565 self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_accessed_node
].val
= var_node
; /* _last_accessed_node on <self:HashCollection[nullable Object]> */
566 var31
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
; /* _the_length on <self:HashCollection[nullable Object]> */
570 { /* Inline kernel#Int#+ (var_l,var32) on <var_l:Int> */
571 /* Covariant cast for argument 0 (i) <var32:Int> isa OTHER */
572 /* <var32:Int> isa OTHER */
573 var35
= 1; /* easy <var32:Int> isa OTHER*/
574 if (unlikely(!var35
)) {
575 var_class_name38
= type_standard__Int
.name
;
576 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name38
);
577 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 413);
580 var39
= var_l
+ var32
;
586 self
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
= var33
; /* _the_length on <self:HashCollection[nullable Object]> */
589 { /* Inline kernel#Int#+ (var_l,var40) on <var_l:Int> */
590 /* Covariant cast for argument 0 (i) <var40:Int> isa OTHER */
591 /* <var40:Int> isa OTHER */
592 var43
= 1; /* easy <var40:Int> isa OTHER*/
593 if (unlikely(!var43
)) {
594 var_class_name46
= type_standard__Int
.name
;
595 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name46
);
596 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 413);
599 var47
= var_l
+ var40
;
607 { /* Inline kernel#Int#* (var41,var48) on <var41:Int> */
608 /* Covariant cast for argument 0 (i) <var48:Int> isa OTHER */
609 /* <var48:Int> isa OTHER */
610 var51
= 1; /* easy <var48:Int> isa OTHER*/
611 if (unlikely(!var51
)) {
612 var_class_name54
= type_standard__Int
.name
;
613 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name54
);
614 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 417);
617 var55
= var41
* var48
;
625 { /* Inline kernel#Int#+ (var49,var56) on <var49:Int> */
626 /* Covariant cast for argument 0 (i) <var56:Int> isa OTHER */
627 /* <var56:Int> isa OTHER */
628 var59
= 1; /* easy <var56:Int> isa OTHER*/
629 if (unlikely(!var59
)) {
630 var_class_name62
= type_standard__Int
.name
;
631 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name62
);
632 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 413);
635 var63
= var49
+ var56
;
642 var64
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___capacity
].l
; /* _capacity on <self:HashCollection[nullable Object]> */
644 { /* Inline kernel#Int#>= (var_l,var64) on <var_l:Int> */
645 /* Covariant cast for argument 0 (i) <var64:Int> isa OTHER */
646 /* <var64:Int> isa OTHER */
647 var67
= 1; /* easy <var64:Int> isa OTHER*/
648 if (unlikely(!var67
)) {
649 var_class_name70
= type_standard__Int
.name
;
650 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name70
);
651 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 411);
654 var71
= var_l
>= var64
;
663 { /* Inline kernel#Int#* (var_l,var72) on <var_l:Int> */
664 /* Covariant cast for argument 0 (i) <var72:Int> isa OTHER */
665 /* <var72:Int> isa OTHER */
666 var75
= 1; /* easy <var72:Int> isa OTHER*/
667 if (unlikely(!var75
)) {
668 var_class_name78
= type_standard__Int
.name
;
669 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name78
);
670 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 417);
673 var79
= var_l
* var72
;
681 { /* Inline kernel#Int#/ (var73,var80) on <var73:Int> */
682 /* Covariant cast for argument 0 (i) <var80:Int> isa OTHER */
683 /* <var80:Int> isa OTHER */
684 var83
= 1; /* easy <var80:Int> isa OTHER*/
685 if (unlikely(!var83
)) {
686 var_class_name86
= type_standard__Int
.name
;
687 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name86
);
688 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 418);
691 var87
= var73
/ var80
;
699 { /* Inline kernel#Int#+ (var81,var88) on <var81:Int> */
700 /* Covariant cast for argument 0 (i) <var88:Int> isa OTHER */
701 /* <var88:Int> isa OTHER */
702 var91
= 1; /* easy <var88:Int> isa OTHER*/
703 if (unlikely(!var91
)) {
704 var_class_name94
= type_standard__Int
.name
;
705 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name94
);
706 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 413);
709 var95
= var81
+ var88
;
716 standard__hash_collection___standard__hash_collection__HashCollection___enlarge(self
, var89
); /* Direct call hash_collection#HashCollection#enlarge on <self:HashCollection[nullable Object]>*/
722 /* method hash_collection#HashCollection#remove_node for (self: HashCollection[nullable Object], nullable Object) */
723 void standard__hash_collection___standard__hash_collection__HashCollection___remove_node(val
* self
, val
* p0
) {
724 short int var
/* : Bool */;
727 const struct type
* type_struct
;
728 short int is_nullable
;
729 const char* var_class_name
;
730 val
* var_k
/* var k: nullable Object */;
731 long var1
/* : Int */;
732 long var_i
/* var i: Int */;
733 val
* var2
/* : nullable HashNode[nullable Object] */;
734 val
* var_node
/* var node: nullable HashNode[nullable Object] */;
735 val
* var3
/* : null */;
736 short int var4
/* : Bool */;
737 short int var5
/* : Bool */;
738 val
* var_other
/* var other: nullable Object */;
739 short int var7
/* : Bool */;
740 short int var9
/* : Bool */;
741 val
* var10
/* : nullable HashNode[nullable Object] */;
742 val
* var_prev
/* var prev: nullable HashNode[nullable Object] */;
743 val
* var11
/* : nullable HashNode[nullable Object] */;
744 val
* var_next
/* var next: nullable HashNode[nullable Object] */;
745 val
* var12
/* : null */;
746 short int var13
/* : Bool */;
747 short int var14
/* : Bool */;
748 val
* var_other16
/* var other: nullable Object */;
749 short int var17
/* : Bool */;
750 short int var18
/* : Bool */;
751 short int var19
/* : Bool */;
754 const struct type
* type_struct22
;
755 const char* var_class_name23
;
756 val
* var24
/* : null */;
757 short int var25
/* : Bool */;
758 short int var26
/* : Bool */;
759 short int var28
/* : Bool */;
760 short int var29
/* : Bool */;
761 short int var30
/* : Bool */;
764 const struct type
* type_struct33
;
765 const char* var_class_name34
;
766 val
* var_
/* var : HashCollection[nullable Object] */;
767 long var35
/* : Int */;
768 long var36
/* : Int */;
769 long var37
/* : Int */;
770 short int var39
/* : Bool */;
773 const char* var_class_name42
;
774 long var43
/* : Int */;
775 val
* var44
/* : nullable HashNode[nullable Object] */;
776 val
* var45
/* : nullable HashNode[nullable Object] */;
777 val
* var46
/* : null */;
778 short int var47
/* : Bool */;
779 short int var48
/* : Bool */;
780 short int var50
/* : Bool */;
781 short int var51
/* : Bool */;
782 val
* var52
/* : nullable NativeArray[nullable HashNode[nullable Object]] */;
783 short int var54
/* : Bool */;
786 const struct type
* type_struct57
;
787 short int is_nullable58
;
788 const char* var_class_name59
;
789 val
* var60
/* : null */;
790 short int var61
/* : Bool */;
791 short int var62
/* : Bool */;
792 short int var64
/* : Bool */;
793 short int var65
/* : Bool */;
794 val
* var66
/* : null */;
795 /* Covariant cast for argument 0 (k) <p0:nullable Object> isa K */
796 /* <p0:nullable Object> isa K */
797 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashCollection___35dK
];
798 cltype
= type_struct
->color
;
799 idtype
= type_struct
->id
;
800 is_nullable
= type_struct
->is_nullable
;
804 if(cltype
>= p0
->type
->table_size
) {
807 var
= p0
->type
->type_table
[cltype
] == idtype
;
810 if (unlikely(!var
)) {
811 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
812 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "K", var_class_name
);
813 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 111);
818 var1
= standard__hash_collection___standard__hash_collection__HashCollection___index_at(self
, var_k
);
822 var2
= standard__hash_collection___standard__hash_collection__HashCollection___node_at_idx(self
, var_i
, var_k
);
826 if (var_node
== NULL
) {
827 var4
= 1; /* is null */
829 var4
= 0; /* arg is null but recv is not */
832 { /* Inline kernel#Object#== (var_node,var3) on <var_node:nullable HashNode[nullable Object]> */
835 { /* Inline kernel#Object#is_same_instance (var_node,var_other) on <var_node:nullable HashNode[nullable Object](HashNode[nullable Object])> */
836 var9
= var_node
== var_other
;
852 var10
= var_node
->attrs
[COLOR_standard__hash_collection__HashNode___prev_item
].val
; /* _prev_item on <var_node:nullable HashNode[nullable Object](HashNode[nullable Object])> */
854 var11
= var_node
->attrs
[COLOR_standard__hash_collection__HashNode___next_item
].val
; /* _next_item on <var_node:nullable HashNode[nullable Object](HashNode[nullable Object])> */
857 if (var_prev
== NULL
) {
858 var13
= 0; /* is null */
860 var13
= 1; /* arg is null and recv is not */
863 { /* Inline kernel#Object#!= (var_prev,var12) on <var_prev:nullable HashNode[nullable Object]> */
866 var17
= ((short int (*)(val
* self
, val
* p0
))(var_prev
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_prev
, var_other16
) /* == on <var_prev:nullable HashNode[nullable Object](HashNode[nullable Object])>*/;
876 var_prev
->attrs
[COLOR_standard__hash_collection__HashNode___next_item
].val
= var_next
; /* _next_item on <var_prev:nullable HashNode[nullable Object](HashNode[nullable Object])> */
878 /* <var_next:nullable HashNode[nullable Object]> isa nullable N */
879 type_struct22
= self
->type
->resolution_table
->types
[COLOR_nullable__standard__hash_collection__HashCollection__N
];
880 cltype20
= type_struct22
->color
;
881 idtype21
= type_struct22
->id
;
882 if(var_next
== NULL
) {
885 if(cltype20
>= var_next
->type
->table_size
) {
888 var19
= var_next
->type
->type_table
[cltype20
] == idtype21
;
891 if (unlikely(!var19
)) {
892 var_class_name23
= var_next
== NULL ?
"null" : var_next
->type
->name
;
893 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable N", var_class_name23
);
894 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 124);
897 self
->attrs
[COLOR_standard__hash_collection__HashCollection___first_item
].val
= var_next
; /* _first_item on <self:HashCollection[nullable Object]> */
900 if (var_next
== NULL
) {
901 var25
= 0; /* is null */
903 var25
= 1; /* arg is null and recv is not */
906 { /* Inline kernel#Object#!= (var_next,var24) on <var_next:nullable HashNode[nullable Object]> */
909 var28
= ((short int (*)(val
* self
, val
* p0
))(var_next
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_next
, var_other16
) /* == on <var_next:nullable HashNode[nullable Object](HashNode[nullable Object])>*/;
919 var_next
->attrs
[COLOR_standard__hash_collection__HashNode___prev_item
].val
= var_prev
; /* _prev_item on <var_next:nullable HashNode[nullable Object](HashNode[nullable Object])> */
921 /* <var_prev:nullable HashNode[nullable Object]> isa nullable N */
922 type_struct33
= self
->type
->resolution_table
->types
[COLOR_nullable__standard__hash_collection__HashCollection__N
];
923 cltype31
= type_struct33
->color
;
924 idtype32
= type_struct33
->id
;
925 if(var_prev
== NULL
) {
928 if(cltype31
>= var_prev
->type
->table_size
) {
931 var30
= var_prev
->type
->type_table
[cltype31
] == idtype32
;
934 if (unlikely(!var30
)) {
935 var_class_name34
= var_prev
== NULL ?
"null" : var_prev
->type
->name
;
936 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable N", var_class_name34
);
937 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 129);
940 self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_item
].val
= var_prev
; /* _last_item on <self:HashCollection[nullable Object]> */
943 var35
= var_
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
; /* _the_length on <var_:HashCollection[nullable Object]> */
946 { /* Inline kernel#Int#- (var35,var36) on <var35:Int> */
947 /* Covariant cast for argument 0 (i) <var36:Int> isa OTHER */
948 /* <var36:Int> isa OTHER */
949 var39
= 1; /* easy <var36:Int> isa OTHER*/
950 if (unlikely(!var39
)) {
951 var_class_name42
= type_standard__Int
.name
;
952 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name42
);
953 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 416);
956 var43
= var35
- var36
;
962 var_
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
= var37
; /* _the_length on <var_:HashCollection[nullable Object]> */
963 var44
= var_node
->attrs
[COLOR_standard__hash_collection__HashNode___prev_in_bucklet
].val
; /* _prev_in_bucklet on <var_node:nullable HashNode[nullable Object](HashNode[nullable Object])> */
965 var45
= var_node
->attrs
[COLOR_standard__hash_collection__HashNode___next_in_bucklet
].val
; /* _next_in_bucklet on <var_node:nullable HashNode[nullable Object](HashNode[nullable Object])> */
968 if (var_prev
== NULL
) {
969 var47
= 0; /* is null */
971 var47
= 1; /* arg is null and recv is not */
974 { /* Inline kernel#Object#!= (var_prev,var46) on <var_prev:nullable HashNode[nullable Object]> */
977 var50
= ((short int (*)(val
* self
, val
* p0
))(var_prev
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_prev
, var_other16
) /* == on <var_prev:nullable HashNode[nullable Object](HashNode[nullable Object])>*/;
987 var_prev
->attrs
[COLOR_standard__hash_collection__HashNode___next_in_bucklet
].val
= var_next
; /* _next_in_bucklet on <var_prev:nullable HashNode[nullable Object](HashNode[nullable Object])> */
989 var52
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___array
].val
; /* _array on <self:HashCollection[nullable Object]> */
991 PRINT_ERROR("Runtime error: %s", "Receiver is null");
992 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 139);
995 { /* Inline array#NativeArray#[]= (var52,var_i,var_next) on <var52:nullable NativeArray[nullable HashNode[nullable Object]]> */
996 /* Covariant cast for argument 1 (item) <var_next:nullable HashNode[nullable Object]> isa E */
997 /* <var_next:nullable HashNode[nullable Object]> isa E */
998 type_struct57
= var52
->type
->resolution_table
->types
[COLOR_standard__NativeArray___35dE
];
999 cltype55
= type_struct57
->color
;
1000 idtype56
= type_struct57
->id
;
1001 is_nullable58
= type_struct57
->is_nullable
;
1002 if(var_next
== NULL
) {
1003 var54
= is_nullable58
;
1005 if(cltype55
>= var_next
->type
->table_size
) {
1008 var54
= var_next
->type
->type_table
[cltype55
] == idtype56
;
1011 if (unlikely(!var54
)) {
1012 var_class_name59
= var_next
== NULL ?
"null" : var_next
->type
->name
;
1013 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "E", var_class_name59
);
1014 PRINT_ERROR(" (%s:%d)\n", FILE_standard__array
, 808);
1017 ((struct instance_standard__NativeArray
*)var52
)->values
[var_i
]=var_next
;
1018 RET_LABEL53
:(void)0;
1023 if (var_next
== NULL
) {
1024 var61
= 0; /* is null */
1026 var61
= 1; /* arg is null and recv is not */
1029 { /* Inline kernel#Object#!= (var_next,var60) on <var_next:nullable HashNode[nullable Object]> */
1030 var_other16
= var60
;
1032 var64
= ((short int (*)(val
* self
, val
* p0
))(var_next
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_next
, var_other16
) /* == on <var_next:nullable HashNode[nullable Object](HashNode[nullable Object])>*/;
1037 RET_LABEL63
:(void)0;
1042 var_next
->attrs
[COLOR_standard__hash_collection__HashNode___prev_in_bucklet
].val
= var_prev
; /* _prev_in_bucklet on <var_next:nullable HashNode[nullable Object](HashNode[nullable Object])> */
1046 self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_accessed_key
].val
= var66
; /* _last_accessed_key on <self:HashCollection[nullable Object]> */
1049 /* method hash_collection#HashCollection#raz for (self: HashCollection[nullable Object]) */
1050 void standard__hash_collection___standard__hash_collection__HashCollection___raz(val
* self
) {
1051 long var
/* : Int */;
1052 long var1
/* : Int */;
1053 long var2
/* : Int */;
1054 short int var4
/* : Bool */;
1057 const char* var_class_name
;
1058 long var5
/* : Int */;
1059 long var_i
/* var i: Int */;
1060 long var6
/* : Int */;
1061 short int var7
/* : Bool */;
1062 short int var9
/* : Bool */;
1065 const char* var_class_name12
;
1066 short int var13
/* : Bool */;
1067 val
* var14
/* : nullable NativeArray[nullable HashNode[nullable Object]] */;
1068 val
* var15
/* : null */;
1069 short int var17
/* : Bool */;
1072 const struct type
* type_struct
;
1073 short int is_nullable
;
1074 const char* var_class_name20
;
1075 long var21
/* : Int */;
1076 long var22
/* : Int */;
1077 short int var24
/* : Bool */;
1080 const char* var_class_name27
;
1081 long var28
/* : Int */;
1082 long var29
/* : Int */;
1083 val
* var30
/* : null */;
1084 val
* var31
/* : null */;
1085 val
* var32
/* : null */;
1086 var
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___capacity
].l
; /* _capacity on <self:HashCollection[nullable Object]> */
1089 { /* Inline kernel#Int#- (var,var1) on <var:Int> */
1090 /* Covariant cast for argument 0 (i) <var1:Int> isa OTHER */
1091 /* <var1:Int> isa OTHER */
1092 var4
= 1; /* easy <var1:Int> isa OTHER*/
1093 if (unlikely(!var4
)) {
1094 var_class_name
= type_standard__Int
.name
;
1095 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
1096 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 416);
1109 { /* Inline kernel#Int#>= (var_i,var6) on <var_i:Int> */
1110 /* Covariant cast for argument 0 (i) <var6:Int> isa OTHER */
1111 /* <var6:Int> isa OTHER */
1112 var9
= 1; /* easy <var6:Int> isa OTHER*/
1113 if (unlikely(!var9
)) {
1114 var_class_name12
= type_standard__Int
.name
;
1115 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name12
);
1116 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 411);
1119 var13
= var_i
>= var6
;
1126 var14
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___array
].val
; /* _array on <self:HashCollection[nullable Object]> */
1128 if (var14
== NULL
) {
1129 PRINT_ERROR("Runtime error: %s", "Receiver is null");
1130 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 153);
1133 { /* Inline array#NativeArray#[]= (var14,var_i,var15) on <var14:nullable NativeArray[nullable HashNode[nullable Object]]> */
1134 /* Covariant cast for argument 1 (item) <var15:null> isa E */
1135 /* <var15:null> isa E */
1136 type_struct
= var14
->type
->resolution_table
->types
[COLOR_standard__NativeArray___35dE
];
1137 cltype18
= type_struct
->color
;
1138 idtype19
= type_struct
->id
;
1139 is_nullable
= type_struct
->is_nullable
;
1141 var17
= is_nullable
;
1143 if(cltype18
>= var15
->type
->table_size
) {
1146 var17
= var15
->type
->type_table
[cltype18
] == idtype19
;
1149 if (unlikely(!var17
)) {
1150 var_class_name20
= var15
== NULL ?
"null" : var15
->type
->name
;
1151 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "E", var_class_name20
);
1152 PRINT_ERROR(" (%s:%d)\n", FILE_standard__array
, 808);
1155 ((struct instance_standard__NativeArray
*)var14
)->values
[var_i
]=var15
;
1156 RET_LABEL16
:(void)0;
1161 { /* Inline kernel#Int#- (var_i,var21) on <var_i:Int> */
1162 /* Covariant cast for argument 0 (i) <var21:Int> isa OTHER */
1163 /* <var21:Int> isa OTHER */
1164 var24
= 1; /* easy <var21:Int> isa OTHER*/
1165 if (unlikely(!var24
)) {
1166 var_class_name27
= type_standard__Int
.name
;
1167 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name27
);
1168 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 416);
1171 var28
= var_i
- var21
;
1174 RET_LABEL23
:(void)0;
1182 BREAK_label
: (void)0;
1184 self
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
= var29
; /* _the_length on <self:HashCollection[nullable Object]> */
1186 self
->attrs
[COLOR_standard__hash_collection__HashCollection___first_item
].val
= var30
; /* _first_item on <self:HashCollection[nullable Object]> */
1188 self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_item
].val
= var31
; /* _last_item on <self:HashCollection[nullable Object]> */
1190 self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_accessed_key
].val
= var32
; /* _last_accessed_key on <self:HashCollection[nullable Object]> */
1193 /* method hash_collection#HashCollection#enlarge for (self: HashCollection[nullable Object], Int) */
1194 void standard__hash_collection___standard__hash_collection__HashCollection___enlarge(val
* self
, long p0
) {
1195 long var_cap
/* var cap: Int */;
1196 long var
/* : Int */;
1197 long var_old_cap
/* var old_cap: Int */;
1198 long var1
/* : Int */;
1199 long var2
/* : Int */;
1200 long var3
/* : Int */;
1201 short int var5
/* : Bool */;
1204 const char* var_class_name
;
1205 long var6
/* : Int */;
1206 short int var7
/* : Bool */;
1207 short int var9
/* : Bool */;
1210 const char* var_class_name12
;
1211 short int var13
/* : Bool */;
1212 long var14
/* : Int */;
1213 long var15
/* : Int */;
1214 long var16
/* : Int */;
1215 short int var18
/* : Bool */;
1218 const char* var_class_name21
;
1219 long var22
/* : Int */;
1220 long var23
/* : Int */;
1221 short int var24
/* : Bool */;
1222 short int var26
/* : Bool */;
1225 const char* var_class_name29
;
1226 short int var30
/* : Bool */;
1227 val
* var31
/* : null */;
1228 val
* var32
/* : NativeArray[nullable HashNode[nullable Object]] */;
1229 val
* var_new_array
/* var new_array: NativeArray[nullable HashNode[nullable Object]] */;
1230 long var33
/* : Int */;
1231 long var34
/* : Int */;
1232 short int var36
/* : Bool */;
1235 const char* var_class_name39
;
1236 long var40
/* : Int */;
1237 long var_i
/* var i: Int */;
1238 long var41
/* : Int */;
1239 short int var42
/* : Bool */;
1240 short int var44
/* : Bool */;
1243 const char* var_class_name47
;
1244 short int var48
/* : Bool */;
1245 val
* var49
/* : null */;
1246 short int var51
/* : Bool */;
1249 const struct type
* type_struct
;
1250 short int is_nullable
;
1251 const char* var_class_name54
;
1252 long var55
/* : Int */;
1253 long var56
/* : Int */;
1254 short int var58
/* : Bool */;
1257 const char* var_class_name61
;
1258 long var62
/* : Int */;
1259 long var63
/* : Int */;
1260 short int var64
/* : Bool */;
1261 short int var66
/* : Bool */;
1264 const char* var_class_name69
;
1265 short int var70
/* : Bool */;
1266 val
* var71
/* : nullable HashNode[nullable Object] */;
1267 val
* var_node
/* var node: nullable HashNode[nullable Object] */;
1268 val
* var72
/* : null */;
1269 short int var73
/* : Bool */;
1270 short int var74
/* : Bool */;
1271 val
* var_other
/* var other: nullable Object */;
1272 short int var76
/* : Bool */;
1273 short int var77
/* : Bool */;
1274 val
* var78
/* : nullable Object */;
1275 long var79
/* : Int */;
1276 long var_index
/* var index: Int */;
1277 val
* var80
/* : nullable Object */;
1278 val
* var82
/* : nullable HashNode[nullable Object] */;
1279 val
* var_next
/* var next: nullable HashNode[nullable Object] */;
1280 short int var84
/* : Bool */;
1283 const struct type
* type_struct87
;
1284 const char* var_class_name88
;
1285 val
* var89
/* : null */;
1286 val
* var90
/* : null */;
1287 short int var91
/* : Bool */;
1288 short int var92
/* : Bool */;
1289 short int var94
/* : Bool */;
1290 short int var95
/* : Bool */;
1291 val
* var96
/* : nullable HashNode[nullable Object] */;
1292 short int var97
/* : Bool */;
1295 const struct type
* type_struct100
;
1296 const char* var_class_name101
;
1298 var
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___capacity
].l
; /* _capacity on <self:HashCollection[nullable Object]> */
1300 var1
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
; /* _the_length on <self:HashCollection[nullable Object]> */
1303 { /* Inline kernel#Int#+ (var1,var2) on <var1:Int> */
1304 /* Covariant cast for argument 0 (i) <var2:Int> isa OTHER */
1305 /* <var2:Int> isa OTHER */
1306 var5
= 1; /* easy <var2:Int> isa OTHER*/
1307 if (unlikely(!var5
)) {
1308 var_class_name
= type_standard__Int
.name
;
1309 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
1310 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 413);
1320 { /* Inline kernel#Int#< (var_cap,var3) on <var_cap:Int> */
1321 /* Covariant cast for argument 0 (i) <var3:Int> isa OTHER */
1322 /* <var3:Int> isa OTHER */
1323 var9
= 1; /* easy <var3:Int> isa OTHER*/
1324 if (unlikely(!var9
)) {
1325 var_class_name12
= type_standard__Int
.name
;
1326 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name12
);
1327 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 410);
1330 var13
= var_cap
< var3
;
1337 var14
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
; /* _the_length on <self:HashCollection[nullable Object]> */
1340 { /* Inline kernel#Int#+ (var14,var15) on <var14:Int> */
1341 /* Covariant cast for argument 0 (i) <var15:Int> isa OTHER */
1342 /* <var15:Int> isa OTHER */
1343 var18
= 1; /* easy <var15:Int> isa OTHER*/
1344 if (unlikely(!var18
)) {
1345 var_class_name21
= type_standard__Int
.name
;
1346 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name21
);
1347 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 413);
1350 var22
= var14
+ var15
;
1353 RET_LABEL17
:(void)0;
1359 var23
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___capacity
].l
; /* _capacity on <self:HashCollection[nullable Object]> */
1361 { /* Inline kernel#Int#<= (var_cap,var23) on <var_cap:Int> */
1362 /* Covariant cast for argument 0 (i) <var23:Int> isa OTHER */
1363 /* <var23:Int> isa OTHER */
1364 var26
= 1; /* easy <var23:Int> isa OTHER*/
1365 if (unlikely(!var26
)) {
1366 var_class_name29
= type_standard__Int
.name
;
1367 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name29
);
1368 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 409);
1371 var30
= var_cap
<= var23
;
1374 RET_LABEL25
:(void)0;
1381 self
->attrs
[COLOR_standard__hash_collection__HashCollection___capacity
].l
= var_cap
; /* _capacity on <self:HashCollection[nullable Object]> */
1383 self
->attrs
[COLOR_standard__hash_collection__HashCollection___last_accessed_key
].val
= var31
; /* _last_accessed_key on <self:HashCollection[nullable Object]> */
1384 var32
= NEW_standard__NativeArray(var_cap
, self
->type
->resolution_table
->types
[COLOR_standard__NativeArray__nullable__standard__hash_collection__HashCollection__N
]);
1385 var_new_array
= var32
;
1386 self
->attrs
[COLOR_standard__hash_collection__HashCollection___array
].val
= var_new_array
; /* _array on <self:HashCollection[nullable Object]> */
1389 { /* Inline kernel#Int#- (var_cap,var33) on <var_cap:Int> */
1390 /* Covariant cast for argument 0 (i) <var33:Int> isa OTHER */
1391 /* <var33:Int> isa OTHER */
1392 var36
= 1; /* easy <var33:Int> isa OTHER*/
1393 if (unlikely(!var36
)) {
1394 var_class_name39
= type_standard__Int
.name
;
1395 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name39
);
1396 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 416);
1399 var40
= var_cap
- var33
;
1402 RET_LABEL35
:(void)0;
1409 { /* Inline kernel#Int#>= (var_i,var41) on <var_i:Int> */
1410 /* Covariant cast for argument 0 (i) <var41:Int> isa OTHER */
1411 /* <var41:Int> isa OTHER */
1412 var44
= 1; /* easy <var41:Int> isa OTHER*/
1413 if (unlikely(!var44
)) {
1414 var_class_name47
= type_standard__Int
.name
;
1415 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name47
);
1416 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 411);
1419 var48
= var_i
>= var41
;
1422 RET_LABEL43
:(void)0;
1428 { /* Inline array#NativeArray#[]= (var_new_array,var_i,var49) on <var_new_array:NativeArray[nullable HashNode[nullable Object]]> */
1429 /* Covariant cast for argument 1 (item) <var49:null> isa E */
1430 /* <var49:null> isa E */
1431 type_struct
= var_new_array
->type
->resolution_table
->types
[COLOR_standard__NativeArray___35dE
];
1432 cltype52
= type_struct
->color
;
1433 idtype53
= type_struct
->id
;
1434 is_nullable
= type_struct
->is_nullable
;
1436 var51
= is_nullable
;
1438 if(cltype52
>= var49
->type
->table_size
) {
1441 var51
= var49
->type
->type_table
[cltype52
] == idtype53
;
1444 if (unlikely(!var51
)) {
1445 var_class_name54
= var49
== NULL ?
"null" : var49
->type
->name
;
1446 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "E", var_class_name54
);
1447 PRINT_ERROR(" (%s:%d)\n", FILE_standard__array
, 808);
1450 ((struct instance_standard__NativeArray
*)var_new_array
)->values
[var_i
]=var49
;
1451 RET_LABEL50
:(void)0;
1456 { /* Inline kernel#Int#- (var_i,var55) on <var_i:Int> */
1457 /* Covariant cast for argument 0 (i) <var55:Int> isa OTHER */
1458 /* <var55:Int> isa OTHER */
1459 var58
= 1; /* easy <var55:Int> isa OTHER*/
1460 if (unlikely(!var58
)) {
1461 var_class_name61
= type_standard__Int
.name
;
1462 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name61
);
1463 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 416);
1466 var62
= var_i
- var55
;
1469 RET_LABEL57
:(void)0;
1477 BREAK_label
: (void)0;
1478 var63
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___capacity
].l
; /* _capacity on <self:HashCollection[nullable Object]> */
1480 { /* Inline kernel#Int#<= (var63,var_old_cap) on <var63:Int> */
1481 /* Covariant cast for argument 0 (i) <var_old_cap:Int> isa OTHER */
1482 /* <var_old_cap:Int> isa OTHER */
1483 var66
= 1; /* easy <var_old_cap:Int> isa OTHER*/
1484 if (unlikely(!var66
)) {
1485 var_class_name69
= type_standard__Int
.name
;
1486 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name69
);
1487 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 409);
1490 var70
= var63
<= var_old_cap
;
1493 RET_LABEL65
:(void)0;
1500 var71
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___first_item
].val
; /* _first_item on <self:HashCollection[nullable Object]> */
1504 if (var_node
== NULL
) {
1505 var73
= 0; /* is null */
1507 var73
= 1; /* arg is null and recv is not */
1510 { /* Inline kernel#Object#!= (var_node,var72) on <var_node:nullable HashNode[nullable Object]> */
1513 var76
= ((short int (*)(val
* self
, val
* p0
))(var_node
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_node
, var_other
) /* == on <var_node:nullable HashNode[nullable Object](HashNode[nullable Object])>*/;
1518 RET_LABEL75
:(void)0;
1523 var78
= var_node
->attrs
[COLOR_standard__hash_collection__HashNode___key
].val
; /* _key on <var_node:nullable HashNode[nullable Object](HashNode[nullable Object])> */
1525 var79
= standard__hash_collection___standard__hash_collection__HashCollection___index_at(self
, var78
);
1529 { /* Inline array#NativeArray#[] (var_new_array,var_index) on <var_new_array:NativeArray[nullable HashNode[nullable Object]]> */
1530 var82
= ((struct instance_standard__NativeArray
*)var_new_array
)->values
[var_index
];
1533 RET_LABEL81
:(void)0;
1538 { /* Inline array#NativeArray#[]= (var_new_array,var_index,var_node) on <var_new_array:NativeArray[nullable HashNode[nullable Object]]> */
1539 /* Covariant cast for argument 1 (item) <var_node:nullable HashNode[nullable Object](HashNode[nullable Object])> isa E */
1540 /* <var_node:nullable HashNode[nullable Object](HashNode[nullable Object])> isa E */
1541 type_struct87
= var_new_array
->type
->resolution_table
->types
[COLOR_standard__NativeArray___35dE
];
1542 cltype85
= type_struct87
->color
;
1543 idtype86
= type_struct87
->id
;
1544 if(cltype85
>= var_node
->type
->table_size
) {
1547 var84
= var_node
->type
->type_table
[cltype85
] == idtype86
;
1549 if (unlikely(!var84
)) {
1550 var_class_name88
= var_node
== NULL ?
"null" : var_node
->type
->name
;
1551 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "E", var_class_name88
);
1552 PRINT_ERROR(" (%s:%d)\n", FILE_standard__array
, 808);
1555 ((struct instance_standard__NativeArray
*)var_new_array
)->values
[var_index
]=var_node
;
1556 RET_LABEL83
:(void)0;
1560 var_node
->attrs
[COLOR_standard__hash_collection__HashNode___prev_in_bucklet
].val
= var89
; /* _prev_in_bucklet on <var_node:nullable HashNode[nullable Object](HashNode[nullable Object])> */
1561 var_node
->attrs
[COLOR_standard__hash_collection__HashNode___next_in_bucklet
].val
= var_next
; /* _next_in_bucklet on <var_node:nullable HashNode[nullable Object](HashNode[nullable Object])> */
1563 if (var_next
== NULL
) {
1564 var91
= 0; /* is null */
1566 var91
= 1; /* arg is null and recv is not */
1569 { /* Inline kernel#Object#!= (var_next,var90) on <var_next:nullable HashNode[nullable Object]> */
1572 var94
= ((short int (*)(val
* self
, val
* p0
))(var_next
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_next
, var_other
) /* == on <var_next:nullable HashNode[nullable Object](HashNode[nullable Object])>*/;
1577 RET_LABEL93
:(void)0;
1582 var_next
->attrs
[COLOR_standard__hash_collection__HashNode___prev_in_bucklet
].val
= var_node
; /* _prev_in_bucklet on <var_next:nullable HashNode[nullable Object](HashNode[nullable Object])> */
1585 var96
= var_node
->attrs
[COLOR_standard__hash_collection__HashNode___next_item
].val
; /* _next_item on <var_node:nullable HashNode[nullable Object](HashNode[nullable Object])> */
1586 /* <var96:nullable HashNode[nullable Object]> isa nullable N */
1587 type_struct100
= self
->type
->resolution_table
->types
[COLOR_nullable__standard__hash_collection__HashCollection__N
];
1588 cltype98
= type_struct100
->color
;
1589 idtype99
= type_struct100
->id
;
1593 if(cltype98
>= var96
->type
->table_size
) {
1596 var97
= var96
->type
->type_table
[cltype98
] == idtype99
;
1599 if (unlikely(!var97
)) {
1600 var_class_name101
= var96
== NULL ?
"null" : var96
->type
->name
;
1601 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable N", var_class_name101
);
1602 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 195);
1607 goto BREAK_label102
;
1610 BREAK_label102
: (void)0;
1613 /* method hash_collection#HashNode#key= for (self: HashNode[nullable Object], nullable Object) */
1614 void standard__hash_collection___standard__hash_collection__HashNode___key_61d(val
* self
, val
* p0
) {
1615 short int var
/* : Bool */;
1618 const struct type
* type_struct
;
1619 short int is_nullable
;
1620 const char* var_class_name
;
1621 /* Covariant cast for argument 0 (key) <p0:nullable Object> isa K */
1622 /* <p0:nullable Object> isa K */
1623 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashNode___35dK
];
1624 cltype
= type_struct
->color
;
1625 idtype
= type_struct
->id
;
1626 is_nullable
= type_struct
->is_nullable
;
1630 if(cltype
>= p0
->type
->table_size
) {
1633 var
= p0
->type
->type_table
[cltype
] == idtype
;
1636 if (unlikely(!var
)) {
1637 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
1638 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "K", var_class_name
);
1639 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 201);
1642 self
->attrs
[COLOR_standard__hash_collection__HashNode___key
].val
= p0
; /* _key on <self:HashNode[nullable Object]> */
1645 /* method hash_collection#HashNode#init for (self: HashNode[nullable Object]) */
1646 void standard__hash_collection___standard__hash_collection__HashNode___standard__kernel__Object__init(val
* self
) {
1648 ((void (*)(val
* self
))(self
->class->vft
[COLOR_standard__hash_collection___standard__hash_collection__HashNode___standard__kernel__Object__init
]))(self
) /* init on <self:HashNode[nullable Object]>*/;
1652 /* method hash_collection#HashMap#[] for (self: HashMap[nullable Object, nullable Object], nullable Object): nullable Object */
1653 val
* standard___standard__HashMap___standard__abstract_collection__MapRead___91d_93d(val
* self
, val
* p0
) {
1654 val
* var
/* : nullable Object */;
1655 short int var1
/* : Bool */;
1658 const struct type
* type_struct
;
1659 short int is_nullable
;
1660 const char* var_class_name
;
1661 val
* var_key
/* var key: nullable Object */;
1662 val
* var2
/* : nullable HashNode[nullable Object] */;
1663 val
* var_c
/* var c: nullable HashMapNode[nullable Object, nullable Object] */;
1664 val
* var3
/* : null */;
1665 short int var4
/* : Bool */;
1666 short int var5
/* : Bool */;
1667 val
* var_other
/* var other: nullable Object */;
1668 short int var7
/* : Bool */;
1669 short int var9
/* : Bool */;
1670 val
* var10
/* : nullable Object */;
1671 val
* var11
/* : nullable Object */;
1672 /* Covariant cast for argument 0 (key) <p0:nullable Object> isa K */
1673 /* <p0:nullable Object> isa K */
1674 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__HashMap___35dK
];
1675 cltype
= type_struct
->color
;
1676 idtype
= type_struct
->id
;
1677 is_nullable
= type_struct
->is_nullable
;
1681 if(cltype
>= p0
->type
->table_size
) {
1684 var1
= p0
->type
->type_table
[cltype
] == idtype
;
1687 if (unlikely(!var1
)) {
1688 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
1689 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "K", var_class_name
);
1690 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 228);
1695 var2
= standard__hash_collection___standard__hash_collection__HashCollection___node_at(self
, var_key
);
1699 if (var_c
== NULL
) {
1700 var4
= 1; /* is null */
1702 var4
= 0; /* arg is null but recv is not */
1705 { /* Inline kernel#Object#== (var_c,var3) on <var_c:nullable HashMapNode[nullable Object, nullable Object]> */
1708 { /* Inline kernel#Object#is_same_instance (var_c,var_other) on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])> */
1709 var9
= var_c
== var_other
;
1723 var10
= ((val
* (*)(val
* self
, val
* p0
))(self
->class->vft
[COLOR_standard__abstract_collection__MapRead__provide_default_value
]))(self
, var_key
) /* provide_default_value on <self:HashMap[nullable Object, nullable Object]>*/;
1728 var11
= var_c
->attrs
[COLOR_standard__hash_collection__HashMapNode___value
].val
; /* _value on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])> */
1735 /* method hash_collection#HashMap#get_or_null for (self: HashMap[nullable Object, nullable Object], nullable Object): nullable Object */
1736 val
* standard___standard__HashMap___standard__abstract_collection__MapRead__get_or_null(val
* self
, val
* p0
) {
1737 val
* var
/* : nullable Object */;
1738 short int var1
/* : Bool */;
1741 const struct type
* type_struct
;
1742 short int is_nullable
;
1743 const char* var_class_name
;
1744 val
* var_key
/* var key: nullable Object */;
1745 val
* var2
/* : nullable HashNode[nullable Object] */;
1746 val
* var_c
/* var c: nullable HashMapNode[nullable Object, nullable Object] */;
1747 val
* var3
/* : null */;
1748 short int var4
/* : Bool */;
1749 short int var5
/* : Bool */;
1750 val
* var_other
/* var other: nullable Object */;
1751 short int var7
/* : Bool */;
1752 short int var9
/* : Bool */;
1753 val
* var10
/* : null */;
1754 val
* var11
/* : nullable Object */;
1755 /* Covariant cast for argument 0 (key) <p0:nullable Object> isa K */
1756 /* <p0:nullable Object> isa K */
1757 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__HashMap___35dK
];
1758 cltype
= type_struct
->color
;
1759 idtype
= type_struct
->id
;
1760 is_nullable
= type_struct
->is_nullable
;
1764 if(cltype
>= p0
->type
->table_size
) {
1767 var1
= p0
->type
->type_table
[cltype
] == idtype
;
1770 if (unlikely(!var1
)) {
1771 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
1772 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "K", var_class_name
);
1773 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 238);
1778 var2
= standard__hash_collection___standard__hash_collection__HashCollection___node_at(self
, var_key
);
1782 if (var_c
== NULL
) {
1783 var4
= 1; /* is null */
1785 var4
= 0; /* arg is null but recv is not */
1788 { /* Inline kernel#Object#== (var_c,var3) on <var_c:nullable HashMapNode[nullable Object, nullable Object]> */
1791 { /* Inline kernel#Object#is_same_instance (var_c,var_other) on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])> */
1792 var9
= var_c
== var_other
;
1809 var11
= var_c
->attrs
[COLOR_standard__hash_collection__HashMapNode___value
].val
; /* _value on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])> */
1816 /* method hash_collection#HashMap#iterator for (self: HashMap[nullable Object, nullable Object]): HashMapIterator[nullable Object, nullable Object] */
1817 val
* standard___standard__HashMap___standard__abstract_collection__MapRead__iterator(val
* self
) {
1818 val
* var
/* : HashMapIterator[nullable Object, nullable Object] */;
1819 val
* var1
/* : HashMapIterator[nullable Object, nullable Object] */;
1820 var1
= NEW_standard__HashMapIterator(self
->type
->resolution_table
->types
[COLOR_standard__HashMapIterator__standard__HashMap___35dK__standard__HashMap___35dV
]);
1822 ((void (*)(val
* self
, val
* p0
))(var1
->class->vft
[COLOR_standard__hash_collection__HashMapIterator__map_61d
]))(var1
, self
) /* map= on <var1:HashMapIterator[nullable Object, nullable Object]>*/;
1825 ((void (*)(val
* self
))(var1
->class->vft
[COLOR_standard__kernel__Object__init
]))(var1
) /* init on <var1:HashMapIterator[nullable Object, nullable Object]>*/;
1832 /* method hash_collection#HashMap#length for (self: HashMap[nullable Object, nullable Object]): Int */
1833 long standard___standard__HashMap___standard__abstract_collection__MapRead__length(val
* self
) {
1834 long var
/* : Int */;
1835 long var1
/* : Int */;
1836 var1
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
; /* _the_length on <self:HashMap[nullable Object, nullable Object]> */
1842 /* method hash_collection#HashMap#is_empty for (self: HashMap[nullable Object, nullable Object]): Bool */
1843 short int standard___standard__HashMap___standard__abstract_collection__MapRead__is_empty(val
* self
) {
1844 short int var
/* : Bool */;
1845 long var1
/* : Int */;
1846 long var2
/* : Int */;
1847 short int var3
/* : Bool */;
1848 short int var5
/* : Bool */;
1849 var1
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
; /* _the_length on <self:HashMap[nullable Object, nullable Object]> */
1852 { /* Inline kernel#Int#== (var1,var2) on <var1:Int> */
1853 var5
= var1
== var2
;
1864 /* method hash_collection#HashMap#[]= for (self: HashMap[nullable Object, nullable Object], nullable Object, nullable Object) */
1865 void standard___standard__HashMap___standard__abstract_collection__Map___91d_93d_61d(val
* self
, val
* p0
, val
* p1
) {
1866 short int var
/* : Bool */;
1869 const struct type
* type_struct
;
1870 short int is_nullable
;
1871 const char* var_class_name
;
1872 short int var1
/* : Bool */;
1875 const struct type
* type_struct4
;
1876 short int is_nullable5
;
1877 const char* var_class_name6
;
1878 val
* var_key
/* var key: nullable Object */;
1879 val
* var_v
/* var v: nullable Object */;
1880 long var7
/* : Int */;
1881 long var_i
/* var i: Int */;
1882 val
* var8
/* : nullable HashNode[nullable Object] */;
1883 val
* var_c
/* var c: nullable HashMapNode[nullable Object, nullable Object] */;
1884 val
* var9
/* : null */;
1885 short int var10
/* : Bool */;
1886 short int var11
/* : Bool */;
1887 val
* var_other
/* var other: nullable Object */;
1888 short int var13
/* : Bool */;
1889 short int var14
/* : Bool */;
1890 val
* var15
/* : HashMapNode[nullable Object, nullable Object] */;
1891 /* Covariant cast for argument 0 (key) <p0:nullable Object> isa K */
1892 /* <p0:nullable Object> isa K */
1893 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__HashMap___35dK
];
1894 cltype
= type_struct
->color
;
1895 idtype
= type_struct
->id
;
1896 is_nullable
= type_struct
->is_nullable
;
1900 if(cltype
>= p0
->type
->table_size
) {
1903 var
= p0
->type
->type_table
[cltype
] == idtype
;
1906 if (unlikely(!var
)) {
1907 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
1908 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "K", var_class_name
);
1909 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 254);
1912 /* Covariant cast for argument 1 (v) <p1:nullable Object> isa V */
1913 /* <p1:nullable Object> isa V */
1914 type_struct4
= self
->type
->resolution_table
->types
[COLOR_standard__HashMap___35dV
];
1915 cltype2
= type_struct4
->color
;
1916 idtype3
= type_struct4
->id
;
1917 is_nullable5
= type_struct4
->is_nullable
;
1919 var1
= is_nullable5
;
1921 if(cltype2
>= p1
->type
->table_size
) {
1924 var1
= p1
->type
->type_table
[cltype2
] == idtype3
;
1927 if (unlikely(!var1
)) {
1928 var_class_name6
= p1
== NULL ?
"null" : p1
->type
->name
;
1929 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "V", var_class_name6
);
1930 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 254);
1936 var7
= standard__hash_collection___standard__hash_collection__HashCollection___index_at(self
, var_key
);
1940 var8
= standard__hash_collection___standard__hash_collection__HashCollection___node_at_idx(self
, var_i
, var_key
);
1944 if (var_c
== NULL
) {
1945 var10
= 0; /* is null */
1947 var10
= 1; /* arg is null and recv is not */
1950 { /* Inline kernel#Object#!= (var_c,var9) on <var_c:nullable HashMapNode[nullable Object, nullable Object]> */
1953 var13
= ((short int (*)(val
* self
, val
* p0
))(var_c
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_c
, var_other
) /* == on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])>*/;
1958 RET_LABEL12
:(void)0;
1963 var_c
->attrs
[COLOR_standard__hash_collection__HashNode___key
].val
= var_key
; /* _key on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])> */
1964 var_c
->attrs
[COLOR_standard__hash_collection__HashMapNode___value
].val
= var_v
; /* _value on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])> */
1966 var15
= NEW_standard__hash_collection__HashMapNode(self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashMapNode__standard__HashMap___35dK__standard__HashMap___35dV
]);
1968 ((void (*)(val
* self
, val
* p0
))(var15
->class->vft
[COLOR_standard__hash_collection__HashNode__key_61d
]))(var15
, var_key
) /* key= on <var15:HashMapNode[nullable Object, nullable Object]>*/;
1971 ((void (*)(val
* self
, val
* p0
))(var15
->class->vft
[COLOR_standard__hash_collection__HashMapNode__value_61d
]))(var15
, var_v
) /* value= on <var15:HashMapNode[nullable Object, nullable Object]>*/;
1974 ((void (*)(val
* self
))(var15
->class->vft
[COLOR_standard__kernel__Object__init
]))(var15
) /* init on <var15:HashMapNode[nullable Object, nullable Object]>*/;
1977 standard__hash_collection___standard__hash_collection__HashCollection___store(self
, var_i
, var15
); /* Direct call hash_collection#HashCollection#store on <self:HashMap[nullable Object, nullable Object]>*/
1982 /* method hash_collection#HashMap#clear for (self: HashMap[nullable Object, nullable Object]) */
1983 void standard___standard__HashMap___standard__abstract_collection__Map__clear(val
* self
) {
1985 standard__hash_collection___standard__hash_collection__HashCollection___raz(self
); /* Direct call hash_collection#HashCollection#raz on <self:HashMap[nullable Object, nullable Object]>*/
1989 /* method hash_collection#HashMap#init for (self: HashMap[nullable Object, nullable Object]) */
1990 void standard___standard__HashMap___standard__kernel__Object__init(val
* self
) {
1991 long var
/* : Int */;
1992 long var1
/* : Int */;
1993 long var2
/* : Int */;
1995 ((void (*)(val
* self
))(self
->class->vft
[COLOR_standard___standard__HashMap___standard__kernel__Object__init
]))(self
) /* init on <self:HashMap[nullable Object, nullable Object]>*/;
1998 self
->attrs
[COLOR_standard__hash_collection__HashCollection___capacity
].l
= var
; /* _capacity on <self:HashMap[nullable Object, nullable Object]> */
2000 self
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
= var1
; /* _the_length on <self:HashMap[nullable Object, nullable Object]> */
2003 standard__hash_collection___standard__hash_collection__HashCollection___enlarge(self
, var2
); /* Direct call hash_collection#HashCollection#enlarge on <self:HashMap[nullable Object, nullable Object]>*/
2007 /* method hash_collection#HashMap#keys for (self: HashMap[nullable Object, nullable Object]): RemovableCollection[nullable Object] */
2008 val
* standard___standard__HashMap___standard__abstract_collection__MapRead__keys(val
* self
) {
2009 val
* var
/* : RemovableCollection[nullable Object] */;
2010 val
* var1
/* : RemovableCollection[nullable Object] */;
2011 var1
= self
->attrs
[COLOR_standard__hash_collection__HashMap___keys
].val
; /* _keys on <self:HashMap[nullable Object, nullable Object]> */
2012 if (unlikely(var1
== NULL
)) {
2013 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _keys");
2014 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 275);
2021 /* method hash_collection#HashMap#values for (self: HashMap[nullable Object, nullable Object]): RemovableCollection[nullable Object] */
2022 val
* standard___standard__HashMap___standard__abstract_collection__MapRead__values(val
* self
) {
2023 val
* var
/* : RemovableCollection[nullable Object] */;
2024 val
* var1
/* : RemovableCollection[nullable Object] */;
2025 var1
= self
->attrs
[COLOR_standard__hash_collection__HashMap___values
].val
; /* _values on <self:HashMap[nullable Object, nullable Object]> */
2026 if (unlikely(var1
== NULL
)) {
2027 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _values");
2028 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 276);
2035 /* method hash_collection#HashMapKeys#map for (self: HashMapKeys[nullable Object, nullable Object]): HashMap[nullable Object, nullable Object] */
2036 val
* standard__hash_collection___standard__hash_collection__HashMapKeys___map(val
* self
) {
2037 val
* var
/* : HashMap[nullable Object, nullable Object] */;
2038 val
* var1
/* : HashMap[nullable Object, nullable Object] */;
2039 var1
= self
->attrs
[COLOR_standard__hash_collection__HashMapKeys___map
].val
; /* _map on <self:HashMapKeys[nullable Object, nullable Object]> */
2040 if (unlikely(var1
== NULL
)) {
2041 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2042 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 282);
2049 /* method hash_collection#HashMapKeys#map= for (self: HashMapKeys[nullable Object, nullable Object], HashMap[nullable Object, nullable Object]) */
2050 void standard__hash_collection___standard__hash_collection__HashMapKeys___map_61d(val
* self
, val
* p0
) {
2051 short int var
/* : Bool */;
2054 const struct type
* type_struct
;
2055 const char* var_class_name
;
2056 /* Covariant cast for argument 0 (map) <p0:HashMap[nullable Object, nullable Object]> isa HashMap[K, V] */
2057 /* <p0:HashMap[nullable Object, nullable Object]> isa HashMap[K, V] */
2058 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__HashMap__standard__hash_collection__HashMapKeys___35dK__standard__hash_collection__HashMapKeys___35dV
];
2059 cltype
= type_struct
->color
;
2060 idtype
= type_struct
->id
;
2061 if(cltype
>= p0
->type
->table_size
) {
2064 var
= p0
->type
->type_table
[cltype
] == idtype
;
2066 if (unlikely(!var
)) {
2067 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
2068 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "HashMap[K, V]", var_class_name
);
2069 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 282);
2072 self
->attrs
[COLOR_standard__hash_collection__HashMapKeys___map
].val
= p0
; /* _map on <self:HashMapKeys[nullable Object, nullable Object]> */
2075 /* method hash_collection#HashMapKeys#first for (self: HashMapKeys[nullable Object, nullable Object]): nullable Object */
2076 val
* standard__hash_collection___standard__hash_collection__HashMapKeys___standard__abstract_collection__Collection__first(val
* self
) {
2077 val
* var
/* : nullable Object */;
2078 val
* var1
/* : HashMap[nullable Object, nullable Object] */;
2079 val
* var3
/* : HashMap[nullable Object, nullable Object] */;
2080 val
* var4
/* : nullable HashNode[nullable Object] */;
2081 val
* var5
/* : nullable Object */;
2083 { /* Inline hash_collection#HashMapKeys#map (self) on <self:HashMapKeys[nullable Object, nullable Object]> */
2084 var3
= self
->attrs
[COLOR_standard__hash_collection__HashMapKeys___map
].val
; /* _map on <self:HashMapKeys[nullable Object, nullable Object]> */
2085 if (unlikely(var3
== NULL
)) {
2086 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2087 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 282);
2094 var4
= var1
->attrs
[COLOR_standard__hash_collection__HashCollection___first_item
].val
; /* _first_item on <var1:HashMap[nullable Object, nullable Object]> */
2095 if (unlikely(var4
== NULL
)) {
2096 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2097 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 286);
2100 var5
= var4
->attrs
[COLOR_standard__hash_collection__HashNode___key
].val
; /* _key on <var4:nullable HashNode[nullable Object](nullable HashMapNode[nullable Object, nullable Object])> */
2106 /* method hash_collection#HashMapKeys#has for (self: HashMapKeys[nullable Object, nullable Object], nullable Object): Bool */
2107 short int standard__hash_collection___standard__hash_collection__HashMapKeys___standard__abstract_collection__Collection__has(val
* self
, val
* p0
) {
2108 short int var
/* : Bool */;
2109 short int var1
/* : Bool */;
2112 const struct type
* type_struct
;
2113 short int is_nullable
;
2114 const char* var_class_name
;
2115 val
* var_k
/* var k: nullable Object */;
2116 val
* var2
/* : HashMap[nullable Object, nullable Object] */;
2117 val
* var4
/* : HashMap[nullable Object, nullable Object] */;
2118 val
* var5
/* : nullable HashNode[nullable Object] */;
2119 val
* var6
/* : null */;
2120 short int var7
/* : Bool */;
2121 short int var8
/* : Bool */;
2122 val
* var_other
/* var other: nullable Object */;
2123 short int var10
/* : Bool */;
2124 short int var11
/* : Bool */;
2125 /* Covariant cast for argument 0 (k) <p0:nullable Object> isa K */
2126 /* <p0:nullable Object> isa K */
2127 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashMapKeys___35dK
];
2128 cltype
= type_struct
->color
;
2129 idtype
= type_struct
->id
;
2130 is_nullable
= type_struct
->is_nullable
;
2134 if(cltype
>= p0
->type
->table_size
) {
2137 var1
= p0
->type
->type_table
[cltype
] == idtype
;
2140 if (unlikely(!var1
)) {
2141 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
2142 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "K", var_class_name
);
2143 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 287);
2148 { /* Inline hash_collection#HashMapKeys#map (self) on <self:HashMapKeys[nullable Object, nullable Object]> */
2149 var4
= self
->attrs
[COLOR_standard__hash_collection__HashMapKeys___map
].val
; /* _map on <self:HashMapKeys[nullable Object, nullable Object]> */
2150 if (unlikely(var4
== NULL
)) {
2151 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2152 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 282);
2160 var5
= standard__hash_collection___standard__hash_collection__HashCollection___node_at(var2
, var_k
);
2164 var7
= 0; /* is null */
2166 var7
= 1; /* arg is null and recv is not */
2169 { /* Inline kernel#Object#!= (var5,var6) on <var5:nullable HashNode[nullable Object](nullable HashMapNode[nullable Object, nullable Object])> */
2172 var10
= ((short int (*)(val
* self
, val
* p0
))(var5
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var5
, var_other
) /* == on <var5:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])>*/;
2186 /* method hash_collection#HashMapKeys#is_empty for (self: HashMapKeys[nullable Object, nullable Object]): Bool */
2187 short int standard__hash_collection___standard__hash_collection__HashMapKeys___standard__abstract_collection__Collection__is_empty(val
* self
) {
2188 short int var
/* : Bool */;
2189 val
* var1
/* : HashMap[nullable Object, nullable Object] */;
2190 val
* var3
/* : HashMap[nullable Object, nullable Object] */;
2191 short int var4
/* : Bool */;
2193 { /* Inline hash_collection#HashMapKeys#map (self) on <self:HashMapKeys[nullable Object, nullable Object]> */
2194 var3
= self
->attrs
[COLOR_standard__hash_collection__HashMapKeys___map
].val
; /* _map on <self:HashMapKeys[nullable Object, nullable Object]> */
2195 if (unlikely(var3
== NULL
)) {
2196 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2197 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 282);
2205 var4
= standard___standard__HashMap___standard__abstract_collection__MapRead__is_empty(var1
);
2212 /* method hash_collection#HashMapKeys#length for (self: HashMapKeys[nullable Object, nullable Object]): Int */
2213 long standard__hash_collection___standard__hash_collection__HashMapKeys___standard__abstract_collection__Collection__length(val
* self
) {
2214 long var
/* : Int */;
2215 val
* var1
/* : HashMap[nullable Object, nullable Object] */;
2216 val
* var3
/* : HashMap[nullable Object, nullable Object] */;
2217 long var4
/* : Int */;
2219 { /* Inline hash_collection#HashMapKeys#map (self) on <self:HashMapKeys[nullable Object, nullable Object]> */
2220 var3
= self
->attrs
[COLOR_standard__hash_collection__HashMapKeys___map
].val
; /* _map on <self:HashMapKeys[nullable Object, nullable Object]> */
2221 if (unlikely(var3
== NULL
)) {
2222 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2223 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 282);
2231 var4
= standard___standard__HashMap___standard__abstract_collection__MapRead__length(var1
);
2238 /* method hash_collection#HashMapKeys#iterator for (self: HashMapKeys[nullable Object, nullable Object]): Iterator[nullable Object] */
2239 val
* standard__hash_collection___standard__hash_collection__HashMapKeys___standard__abstract_collection__Collection__iterator(val
* self
) {
2240 val
* var
/* : Iterator[nullable Object] */;
2241 val
* var1
/* : MapKeysIterator[nullable Object, nullable Object] */;
2242 val
* var2
/* : HashMap[nullable Object, nullable Object] */;
2243 val
* var4
/* : HashMap[nullable Object, nullable Object] */;
2244 val
* var5
/* : HashMapIterator[nullable Object, nullable Object] */;
2245 var1
= NEW_standard__MapKeysIterator(self
->type
->resolution_table
->types
[COLOR_standard__MapKeysIterator__standard__hash_collection__HashMapKeys___35dK__standard__hash_collection__HashMapKeys___35dV
]);
2247 { /* Inline hash_collection#HashMapKeys#map (self) on <self:HashMapKeys[nullable Object, nullable Object]> */
2248 var4
= self
->attrs
[COLOR_standard__hash_collection__HashMapKeys___map
].val
; /* _map on <self:HashMapKeys[nullable Object, nullable Object]> */
2249 if (unlikely(var4
== NULL
)) {
2250 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2251 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 282);
2259 var5
= standard___standard__HashMap___standard__abstract_collection__MapRead__iterator(var2
);
2262 ((void (*)(val
* self
, val
* p0
))(var1
->class->vft
[COLOR_standard__abstract_collection__MapKeysIterator__original_iterator_61d
]))(var1
, var5
) /* original_iterator= on <var1:MapKeysIterator[nullable Object, nullable Object]>*/;
2265 ((void (*)(val
* self
))(var1
->class->vft
[COLOR_standard__kernel__Object__init
]))(var1
) /* init on <var1:MapKeysIterator[nullable Object, nullable Object]>*/;
2272 /* method hash_collection#HashMapKeys#clear for (self: HashMapKeys[nullable Object, nullable Object]) */
2273 void standard__hash_collection___standard__hash_collection__HashMapKeys___standard__abstract_collection__RemovableCollection__clear(val
* self
) {
2274 val
* var
/* : HashMap[nullable Object, nullable Object] */;
2275 val
* var2
/* : HashMap[nullable Object, nullable Object] */;
2277 { /* Inline hash_collection#HashMapKeys#map (self) on <self:HashMapKeys[nullable Object, nullable Object]> */
2278 var2
= self
->attrs
[COLOR_standard__hash_collection__HashMapKeys___map
].val
; /* _map on <self:HashMapKeys[nullable Object, nullable Object]> */
2279 if (unlikely(var2
== NULL
)) {
2280 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2281 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 282);
2289 standard___standard__HashMap___standard__abstract_collection__Map__clear(var
); /* Direct call hash_collection#HashMap#clear on <var:HashMap[nullable Object, nullable Object]>*/
2293 /* method hash_collection#HashMapKeys#remove for (self: HashMapKeys[nullable Object, nullable Object], nullable Object) */
2294 void standard__hash_collection___standard__hash_collection__HashMapKeys___standard__abstract_collection__RemovableCollection__remove(val
* self
, val
* p0
) {
2295 short int var
/* : Bool */;
2298 const struct type
* type_struct
;
2299 short int is_nullable
;
2300 const char* var_class_name
;
2301 val
* var_key
/* var key: nullable Object */;
2302 val
* var1
/* : HashMap[nullable Object, nullable Object] */;
2303 val
* var3
/* : HashMap[nullable Object, nullable Object] */;
2304 /* Covariant cast for argument 0 (key) <p0:nullable Object> isa K */
2305 /* <p0:nullable Object> isa K */
2306 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashMapKeys___35dK
];
2307 cltype
= type_struct
->color
;
2308 idtype
= type_struct
->id
;
2309 is_nullable
= type_struct
->is_nullable
;
2313 if(cltype
>= p0
->type
->table_size
) {
2316 var
= p0
->type
->type_table
[cltype
] == idtype
;
2319 if (unlikely(!var
)) {
2320 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
2321 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "K", var_class_name
);
2322 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 296);
2327 { /* Inline hash_collection#HashMapKeys#map (self) on <self:HashMapKeys[nullable Object, nullable Object]> */
2328 var3
= self
->attrs
[COLOR_standard__hash_collection__HashMapKeys___map
].val
; /* _map on <self:HashMapKeys[nullable Object, nullable Object]> */
2329 if (unlikely(var3
== NULL
)) {
2330 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2331 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 282);
2339 standard__hash_collection___standard__hash_collection__HashCollection___remove_node(var1
, var_key
); /* Direct call hash_collection#HashCollection#remove_node on <var1:HashMap[nullable Object, nullable Object]>*/
2343 /* method hash_collection#HashMapKeys#init for (self: HashMapKeys[nullable Object, nullable Object]) */
2344 void standard__hash_collection___standard__hash_collection__HashMapKeys___standard__kernel__Object__init(val
* self
) {
2346 ((void (*)(val
* self
))(self
->class->vft
[COLOR_standard__hash_collection___standard__hash_collection__HashMapKeys___standard__kernel__Object__init
]))(self
) /* init on <self:HashMapKeys[nullable Object, nullable Object]>*/;
2350 /* method hash_collection#HashMapValues#map for (self: HashMapValues[nullable Object, nullable Object]): HashMap[nullable Object, nullable Object] */
2351 val
* standard__hash_collection___standard__hash_collection__HashMapValues___map(val
* self
) {
2352 val
* var
/* : HashMap[nullable Object, nullable Object] */;
2353 val
* var1
/* : HashMap[nullable Object, nullable Object] */;
2354 var1
= self
->attrs
[COLOR_standard__hash_collection__HashMapValues___map
].val
; /* _map on <self:HashMapValues[nullable Object, nullable Object]> */
2355 if (unlikely(var1
== NULL
)) {
2356 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2357 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 303);
2364 /* method hash_collection#HashMapValues#map= for (self: HashMapValues[nullable Object, nullable Object], HashMap[nullable Object, nullable Object]) */
2365 void standard__hash_collection___standard__hash_collection__HashMapValues___map_61d(val
* self
, val
* p0
) {
2366 short int var
/* : Bool */;
2369 const struct type
* type_struct
;
2370 const char* var_class_name
;
2371 /* Covariant cast for argument 0 (map) <p0:HashMap[nullable Object, nullable Object]> isa HashMap[K, V] */
2372 /* <p0:HashMap[nullable Object, nullable Object]> isa HashMap[K, V] */
2373 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__HashMap__standard__hash_collection__HashMapValues___35dK__standard__hash_collection__HashMapValues___35dV
];
2374 cltype
= type_struct
->color
;
2375 idtype
= type_struct
->id
;
2376 if(cltype
>= p0
->type
->table_size
) {
2379 var
= p0
->type
->type_table
[cltype
] == idtype
;
2381 if (unlikely(!var
)) {
2382 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
2383 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "HashMap[K, V]", var_class_name
);
2384 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 303);
2387 self
->attrs
[COLOR_standard__hash_collection__HashMapValues___map
].val
= p0
; /* _map on <self:HashMapValues[nullable Object, nullable Object]> */
2390 /* method hash_collection#HashMapValues#first for (self: HashMapValues[nullable Object, nullable Object]): nullable Object */
2391 val
* standard__hash_collection___standard__hash_collection__HashMapValues___standard__abstract_collection__Collection__first(val
* self
) {
2392 val
* var
/* : nullable Object */;
2393 val
* var1
/* : HashMap[nullable Object, nullable Object] */;
2394 val
* var3
/* : HashMap[nullable Object, nullable Object] */;
2395 val
* var4
/* : nullable HashNode[nullable Object] */;
2396 val
* var5
/* : nullable Object */;
2398 { /* Inline hash_collection#HashMapValues#map (self) on <self:HashMapValues[nullable Object, nullable Object]> */
2399 var3
= self
->attrs
[COLOR_standard__hash_collection__HashMapValues___map
].val
; /* _map on <self:HashMapValues[nullable Object, nullable Object]> */
2400 if (unlikely(var3
== NULL
)) {
2401 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2402 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 303);
2409 var4
= var1
->attrs
[COLOR_standard__hash_collection__HashCollection___first_item
].val
; /* _first_item on <var1:HashMap[nullable Object, nullable Object]> */
2410 if (unlikely(var4
== NULL
)) {
2411 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2412 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 316);
2415 var5
= var4
->attrs
[COLOR_standard__hash_collection__HashMapNode___value
].val
; /* _value on <var4:nullable HashNode[nullable Object](nullable HashMapNode[nullable Object, nullable Object])> */
2421 /* method hash_collection#HashMapValues#has for (self: HashMapValues[nullable Object, nullable Object], nullable Object): Bool */
2422 short int standard__hash_collection___standard__hash_collection__HashMapValues___standard__abstract_collection__Collection__has(val
* self
, val
* p0
) {
2423 short int var
/* : Bool */;
2424 short int var1
/* : Bool */;
2427 const struct type
* type_struct
;
2428 short int is_nullable
;
2429 const char* var_class_name
;
2430 val
* var_item
/* var item: nullable Object */;
2431 val
* var2
/* : HashMap[nullable Object, nullable Object] */;
2432 val
* var4
/* : HashMap[nullable Object, nullable Object] */;
2433 val
* var5
/* : nullable HashNode[nullable Object] */;
2434 val
* var_c
/* var c: nullable HashMapNode[nullable Object, nullable Object] */;
2435 val
* var6
/* : null */;
2436 short int var7
/* : Bool */;
2437 short int var8
/* : Bool */;
2438 val
* var_other
/* var other: nullable Object */;
2439 short int var10
/* : Bool */;
2440 short int var11
/* : Bool */;
2441 val
* var12
/* : nullable Object */;
2442 short int var13
/* : Bool */;
2443 short int var14
/* : Bool */;
2444 short int var15
/* : Bool */;
2445 val
* var16
/* : nullable HashNode[nullable Object] */;
2446 short int var17
/* : Bool */;
2447 /* Covariant cast for argument 0 (item) <p0:nullable Object> isa V */
2448 /* <p0:nullable Object> isa V */
2449 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashMapValues___35dV
];
2450 cltype
= type_struct
->color
;
2451 idtype
= type_struct
->id
;
2452 is_nullable
= type_struct
->is_nullable
;
2456 if(cltype
>= p0
->type
->table_size
) {
2459 var1
= p0
->type
->type_table
[cltype
] == idtype
;
2462 if (unlikely(!var1
)) {
2463 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
2464 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "V", var_class_name
);
2465 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 318);
2470 { /* Inline hash_collection#HashMapValues#map (self) on <self:HashMapValues[nullable Object, nullable Object]> */
2471 var4
= self
->attrs
[COLOR_standard__hash_collection__HashMapValues___map
].val
; /* _map on <self:HashMapValues[nullable Object, nullable Object]> */
2472 if (unlikely(var4
== NULL
)) {
2473 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2474 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 303);
2481 var5
= var2
->attrs
[COLOR_standard__hash_collection__HashCollection___first_item
].val
; /* _first_item on <var2:HashMap[nullable Object, nullable Object]> */
2485 if (var_c
== NULL
) {
2486 var7
= 0; /* is null */
2488 var7
= 1; /* arg is null and recv is not */
2491 { /* Inline kernel#Object#!= (var_c,var6) on <var_c:nullable HashMapNode[nullable Object, nullable Object]> */
2494 var10
= ((short int (*)(val
* self
, val
* p0
))(var_c
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_c
, var_other
) /* == on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])>*/;
2504 var12
= var_c
->attrs
[COLOR_standard__hash_collection__HashMapNode___value
].val
; /* _value on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])> */
2505 if (var12
== NULL
) {
2506 var13
= (var_item
== NULL
);
2508 var14
= ((short int (*)(val
* self
, val
* p0
))(var12
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var12
, var_item
) /* == on <var12:nullable Object>*/;
2517 var16
= var_c
->attrs
[COLOR_standard__hash_collection__HashNode___next_item
].val
; /* _next_item on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])> */
2523 BREAK_label
: (void)0;
2530 /* method hash_collection#HashMapValues#is_empty for (self: HashMapValues[nullable Object, nullable Object]): Bool */
2531 short int standard__hash_collection___standard__hash_collection__HashMapValues___standard__abstract_collection__Collection__is_empty(val
* self
) {
2532 short int var
/* : Bool */;
2533 val
* var1
/* : HashMap[nullable Object, nullable Object] */;
2534 val
* var3
/* : HashMap[nullable Object, nullable Object] */;
2535 short int var4
/* : Bool */;
2537 { /* Inline hash_collection#HashMapValues#map (self) on <self:HashMapValues[nullable Object, nullable Object]> */
2538 var3
= self
->attrs
[COLOR_standard__hash_collection__HashMapValues___map
].val
; /* _map on <self:HashMapValues[nullable Object, nullable Object]> */
2539 if (unlikely(var3
== NULL
)) {
2540 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2541 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 303);
2549 var4
= standard___standard__HashMap___standard__abstract_collection__MapRead__is_empty(var1
);
2556 /* method hash_collection#HashMapValues#length for (self: HashMapValues[nullable Object, nullable Object]): Int */
2557 long standard__hash_collection___standard__hash_collection__HashMapValues___standard__abstract_collection__Collection__length(val
* self
) {
2558 long var
/* : Int */;
2559 val
* var1
/* : HashMap[nullable Object, nullable Object] */;
2560 val
* var3
/* : HashMap[nullable Object, nullable Object] */;
2561 long var4
/* : Int */;
2563 { /* Inline hash_collection#HashMapValues#map (self) on <self:HashMapValues[nullable Object, nullable Object]> */
2564 var3
= self
->attrs
[COLOR_standard__hash_collection__HashMapValues___map
].val
; /* _map on <self:HashMapValues[nullable Object, nullable Object]> */
2565 if (unlikely(var3
== NULL
)) {
2566 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2567 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 303);
2575 var4
= standard___standard__HashMap___standard__abstract_collection__MapRead__length(var1
);
2582 /* method hash_collection#HashMapValues#iterator for (self: HashMapValues[nullable Object, nullable Object]): Iterator[nullable Object] */
2583 val
* standard__hash_collection___standard__hash_collection__HashMapValues___standard__abstract_collection__Collection__iterator(val
* self
) {
2584 val
* var
/* : Iterator[nullable Object] */;
2585 val
* var1
/* : MapValuesIterator[nullable Object, nullable Object] */;
2586 val
* var2
/* : HashMap[nullable Object, nullable Object] */;
2587 val
* var4
/* : HashMap[nullable Object, nullable Object] */;
2588 val
* var5
/* : HashMapIterator[nullable Object, nullable Object] */;
2589 var1
= NEW_standard__MapValuesIterator(self
->type
->resolution_table
->types
[COLOR_standard__MapValuesIterator__standard__hash_collection__HashMapValues___35dK__standard__hash_collection__HashMapValues___35dV
]);
2591 { /* Inline hash_collection#HashMapValues#map (self) on <self:HashMapValues[nullable Object, nullable Object]> */
2592 var4
= self
->attrs
[COLOR_standard__hash_collection__HashMapValues___map
].val
; /* _map on <self:HashMapValues[nullable Object, nullable Object]> */
2593 if (unlikely(var4
== NULL
)) {
2594 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2595 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 303);
2603 var5
= standard___standard__HashMap___standard__abstract_collection__MapRead__iterator(var2
);
2606 ((void (*)(val
* self
, val
* p0
))(var1
->class->vft
[COLOR_standard__abstract_collection__MapValuesIterator__original_iterator_61d
]))(var1
, var5
) /* original_iterator= on <var1:MapValuesIterator[nullable Object, nullable Object]>*/;
2609 ((void (*)(val
* self
))(var1
->class->vft
[COLOR_standard__kernel__Object__init
]))(var1
) /* init on <var1:MapValuesIterator[nullable Object, nullable Object]>*/;
2616 /* method hash_collection#HashMapValues#clear for (self: HashMapValues[nullable Object, nullable Object]) */
2617 void standard__hash_collection___standard__hash_collection__HashMapValues___standard__abstract_collection__RemovableCollection__clear(val
* self
) {
2618 val
* var
/* : HashMap[nullable Object, nullable Object] */;
2619 val
* var2
/* : HashMap[nullable Object, nullable Object] */;
2621 { /* Inline hash_collection#HashMapValues#map (self) on <self:HashMapValues[nullable Object, nullable Object]> */
2622 var2
= self
->attrs
[COLOR_standard__hash_collection__HashMapValues___map
].val
; /* _map on <self:HashMapValues[nullable Object, nullable Object]> */
2623 if (unlikely(var2
== NULL
)) {
2624 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2625 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 303);
2633 standard___standard__HashMap___standard__abstract_collection__Map__clear(var
); /* Direct call hash_collection#HashMap#clear on <var:HashMap[nullable Object, nullable Object]>*/
2637 /* method hash_collection#HashMapValues#remove for (self: HashMapValues[nullable Object, nullable Object], nullable Object) */
2638 void standard__hash_collection___standard__hash_collection__HashMapValues___standard__abstract_collection__RemovableCollection__remove(val
* self
, val
* p0
) {
2639 short int var
/* : Bool */;
2642 const struct type
* type_struct
;
2643 short int is_nullable
;
2644 const char* var_class_name
;
2645 val
* var_item
/* var item: nullable Object */;
2646 val
* var1
/* : HashMap[nullable Object, nullable Object] */;
2647 val
* var3
/* : HashMap[nullable Object, nullable Object] */;
2648 val
* var_map
/* var map: HashMap[nullable Object, nullable Object] */;
2649 val
* var4
/* : nullable HashNode[nullable Object] */;
2650 val
* var_c
/* var c: nullable HashMapNode[nullable Object, nullable Object] */;
2651 val
* var5
/* : null */;
2652 short int var6
/* : Bool */;
2653 short int var7
/* : Bool */;
2654 val
* var_other
/* var other: nullable Object */;
2655 short int var9
/* : Bool */;
2656 short int var10
/* : Bool */;
2657 val
* var11
/* : nullable Object */;
2658 short int var12
/* : Bool */;
2659 short int var13
/* : Bool */;
2660 val
* var14
/* : nullable Object */;
2661 val
* var15
/* : nullable HashNode[nullable Object] */;
2662 /* Covariant cast for argument 0 (item) <p0:nullable Object> isa V */
2663 /* <p0:nullable Object> isa V */
2664 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashMapValues___35dV
];
2665 cltype
= type_struct
->color
;
2666 idtype
= type_struct
->id
;
2667 is_nullable
= type_struct
->is_nullable
;
2671 if(cltype
>= p0
->type
->table_size
) {
2674 var
= p0
->type
->type_table
[cltype
] == idtype
;
2677 if (unlikely(!var
)) {
2678 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
2679 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "V", var_class_name
);
2680 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 345);
2685 { /* Inline hash_collection#HashMapValues#map (self) on <self:HashMapValues[nullable Object, nullable Object]> */
2686 var3
= self
->attrs
[COLOR_standard__hash_collection__HashMapValues___map
].val
; /* _map on <self:HashMapValues[nullable Object, nullable Object]> */
2687 if (unlikely(var3
== NULL
)) {
2688 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2689 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 303);
2697 var4
= var_map
->attrs
[COLOR_standard__hash_collection__HashCollection___first_item
].val
; /* _first_item on <var_map:HashMap[nullable Object, nullable Object]> */
2701 if (var_c
== NULL
) {
2702 var6
= 0; /* is null */
2704 var6
= 1; /* arg is null and recv is not */
2707 { /* Inline kernel#Object#!= (var_c,var5) on <var_c:nullable HashMapNode[nullable Object, nullable Object]> */
2710 var9
= ((short int (*)(val
* self
, val
* p0
))(var_c
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_c
, var_other
) /* == on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])>*/;
2720 var11
= var_c
->attrs
[COLOR_standard__hash_collection__HashMapNode___value
].val
; /* _value on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])> */
2721 if (var11
== NULL
) {
2722 var12
= (var_item
== NULL
);
2724 var13
= ((short int (*)(val
* self
, val
* p0
))(var11
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var11
, var_item
) /* == on <var11:nullable Object>*/;
2728 var14
= var_c
->attrs
[COLOR_standard__hash_collection__HashNode___key
].val
; /* _key on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])> */
2730 standard__hash_collection___standard__hash_collection__HashCollection___remove_node(var_map
, var14
); /* Direct call hash_collection#HashCollection#remove_node on <var_map:HashMap[nullable Object, nullable Object]>*/
2735 var15
= var_c
->attrs
[COLOR_standard__hash_collection__HashNode___next_item
].val
; /* _next_item on <var_c:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])> */
2741 BREAK_label
: (void)0;
2744 /* method hash_collection#HashMapValues#init for (self: HashMapValues[nullable Object, nullable Object]) */
2745 void standard__hash_collection___standard__hash_collection__HashMapValues___standard__kernel__Object__init(val
* self
) {
2747 ((void (*)(val
* self
))(self
->class->vft
[COLOR_standard__hash_collection___standard__hash_collection__HashMapValues___standard__kernel__Object__init
]))(self
) /* init on <self:HashMapValues[nullable Object, nullable Object]>*/;
2751 /* method hash_collection#HashMapNode#value= for (self: HashMapNode[nullable Object, nullable Object], nullable Object) */
2752 void standard__hash_collection___standard__hash_collection__HashMapNode___value_61d(val
* self
, val
* p0
) {
2753 short int var
/* : Bool */;
2756 const struct type
* type_struct
;
2757 short int is_nullable
;
2758 const char* var_class_name
;
2759 /* Covariant cast for argument 0 (value) <p0:nullable Object> isa V */
2760 /* <p0:nullable Object> isa V */
2761 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashMapNode___35dV
];
2762 cltype
= type_struct
->color
;
2763 idtype
= type_struct
->id
;
2764 is_nullable
= type_struct
->is_nullable
;
2768 if(cltype
>= p0
->type
->table_size
) {
2771 var
= p0
->type
->type_table
[cltype
] == idtype
;
2774 if (unlikely(!var
)) {
2775 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
2776 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "V", var_class_name
);
2777 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 374);
2780 self
->attrs
[COLOR_standard__hash_collection__HashMapNode___value
].val
= p0
; /* _value on <self:HashMapNode[nullable Object, nullable Object]> */
2783 /* method hash_collection#HashMapNode#init for (self: HashMapNode[nullable Object, nullable Object]) */
2784 void standard__hash_collection___standard__hash_collection__HashMapNode___standard__kernel__Object__init(val
* self
) {
2786 ((void (*)(val
* self
))(self
->class->vft
[COLOR_standard__hash_collection___standard__hash_collection__HashMapNode___standard__kernel__Object__init
]))(self
) /* init on <self:HashMapNode[nullable Object, nullable Object]>*/;
2790 /* method hash_collection#HashMapIterator#is_ok for (self: HashMapIterator[nullable Object, nullable Object]): Bool */
2791 short int standard___standard__HashMapIterator___standard__abstract_collection__MapIterator__is_ok(val
* self
) {
2792 short int var
/* : Bool */;
2793 val
* var1
/* : nullable HashMapNode[nullable Object, nullable Object] */;
2794 val
* var2
/* : null */;
2795 short int var3
/* : Bool */;
2796 short int var4
/* : Bool */;
2797 val
* var_other
/* var other: nullable Object */;
2798 short int var6
/* : Bool */;
2799 short int var7
/* : Bool */;
2800 var1
= self
->attrs
[COLOR_standard__hash_collection__HashMapIterator___node
].val
; /* _node on <self:HashMapIterator[nullable Object, nullable Object]> */
2803 var3
= 0; /* is null */
2805 var3
= 1; /* arg is null and recv is not */
2808 { /* Inline kernel#Object#!= (var1,var2) on <var1:nullable HashMapNode[nullable Object, nullable Object]> */
2811 var6
= ((short int (*)(val
* self
, val
* p0
))(var1
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var1
, var_other
) /* == on <var1:nullable HashMapNode[nullable Object, nullable Object](HashMapNode[nullable Object, nullable Object])>*/;
2825 /* method hash_collection#HashMapIterator#item for (self: HashMapIterator[nullable Object, nullable Object]): nullable Object */
2826 val
* standard___standard__HashMapIterator___standard__abstract_collection__MapIterator__item(val
* self
) {
2827 val
* var
/* : nullable Object */;
2828 short int var1
/* : Bool */;
2829 val
* var2
/* : nullable HashMapNode[nullable Object, nullable Object] */;
2830 val
* var3
/* : nullable Object */;
2832 var1
= standard___standard__HashMapIterator___standard__abstract_collection__MapIterator__is_ok(self
);
2834 if (unlikely(!var1
)) {
2835 PRINT_ERROR("Runtime error: %s", "Assert failed");
2836 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 384);
2839 var2
= self
->attrs
[COLOR_standard__hash_collection__HashMapIterator___node
].val
; /* _node on <self:HashMapIterator[nullable Object, nullable Object]> */
2840 if (unlikely(var2
== NULL
)) {
2841 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2842 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 385);
2845 var3
= var2
->attrs
[COLOR_standard__hash_collection__HashMapNode___value
].val
; /* _value on <var2:nullable HashMapNode[nullable Object, nullable Object]> */
2851 /* method hash_collection#HashMapIterator#key for (self: HashMapIterator[nullable Object, nullable Object]): nullable Object */
2852 val
* standard___standard__HashMapIterator___standard__abstract_collection__MapIterator__key(val
* self
) {
2853 val
* var
/* : nullable Object */;
2854 short int var1
/* : Bool */;
2855 val
* var2
/* : nullable HashMapNode[nullable Object, nullable Object] */;
2856 val
* var3
/* : nullable Object */;
2858 var1
= standard___standard__HashMapIterator___standard__abstract_collection__MapIterator__is_ok(self
);
2860 if (unlikely(!var1
)) {
2861 PRINT_ERROR("Runtime error: %s", "Assert failed");
2862 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 396);
2865 var2
= self
->attrs
[COLOR_standard__hash_collection__HashMapIterator___node
].val
; /* _node on <self:HashMapIterator[nullable Object, nullable Object]> */
2866 if (unlikely(var2
== NULL
)) {
2867 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2868 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 397);
2871 var3
= var2
->attrs
[COLOR_standard__hash_collection__HashNode___key
].val
; /* _key on <var2:nullable HashMapNode[nullable Object, nullable Object]> */
2877 /* method hash_collection#HashMapIterator#next for (self: HashMapIterator[nullable Object, nullable Object]) */
2878 void standard___standard__HashMapIterator___standard__abstract_collection__MapIterator__next(val
* self
) {
2879 short int var
/* : Bool */;
2880 val
* var1
/* : nullable HashMapNode[nullable Object, nullable Object] */;
2881 val
* var2
/* : nullable HashNode[nullable Object] */;
2883 var
= standard___standard__HashMapIterator___standard__abstract_collection__MapIterator__is_ok(self
);
2885 if (unlikely(!var
)) {
2886 PRINT_ERROR("Runtime error: %s", "Assert failed");
2887 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 402);
2890 var1
= self
->attrs
[COLOR_standard__hash_collection__HashMapIterator___node
].val
; /* _node on <self:HashMapIterator[nullable Object, nullable Object]> */
2891 if (unlikely(var1
== NULL
)) {
2892 PRINT_ERROR("Runtime error: %s", "Receiver is null");
2893 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 403);
2896 var2
= var1
->attrs
[COLOR_standard__hash_collection__HashNode___next_item
].val
; /* _next_item on <var1:nullable HashMapNode[nullable Object, nullable Object]> */
2897 self
->attrs
[COLOR_standard__hash_collection__HashMapIterator___node
].val
= var2
; /* _node on <self:HashMapIterator[nullable Object, nullable Object]> */
2900 /* method hash_collection#HashMapIterator#map for (self: HashMapIterator[nullable Object, nullable Object]): HashMap[nullable Object, nullable Object] */
2901 val
* standard___standard__HashMapIterator___map(val
* self
) {
2902 val
* var
/* : HashMap[nullable Object, nullable Object] */;
2903 val
* var1
/* : HashMap[nullable Object, nullable Object] */;
2904 var1
= self
->attrs
[COLOR_standard__hash_collection__HashMapIterator___map
].val
; /* _map on <self:HashMapIterator[nullable Object, nullable Object]> */
2905 if (unlikely(var1
== NULL
)) {
2906 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2907 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 406);
2914 /* method hash_collection#HashMapIterator#map= for (self: HashMapIterator[nullable Object, nullable Object], HashMap[nullable Object, nullable Object]) */
2915 void standard___standard__HashMapIterator___map_61d(val
* self
, val
* p0
) {
2916 short int var
/* : Bool */;
2919 const struct type
* type_struct
;
2920 const char* var_class_name
;
2921 /* Covariant cast for argument 0 (map) <p0:HashMap[nullable Object, nullable Object]> isa HashMap[K, V] */
2922 /* <p0:HashMap[nullable Object, nullable Object]> isa HashMap[K, V] */
2923 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__HashMap__standard__HashMapIterator___35dK__standard__HashMapIterator___35dV
];
2924 cltype
= type_struct
->color
;
2925 idtype
= type_struct
->id
;
2926 if(cltype
>= p0
->type
->table_size
) {
2929 var
= p0
->type
->type_table
[cltype
] == idtype
;
2931 if (unlikely(!var
)) {
2932 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
2933 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "HashMap[K, V]", var_class_name
);
2934 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 406);
2937 self
->attrs
[COLOR_standard__hash_collection__HashMapIterator___map
].val
= p0
; /* _map on <self:HashMapIterator[nullable Object, nullable Object]> */
2940 /* method hash_collection#HashMapIterator#init for (self: HashMapIterator[nullable Object, nullable Object]) */
2941 void standard___standard__HashMapIterator___standard__kernel__Object__init(val
* self
) {
2942 val
* var
/* : HashMap[nullable Object, nullable Object] */;
2943 val
* var2
/* : HashMap[nullable Object, nullable Object] */;
2944 val
* var3
/* : HashMap[nullable Object, nullable Object] */;
2945 val
* var4
/* : nullable HashNode[nullable Object] */;
2947 { /* Inline hash_collection#HashMapIterator#map (self) on <self:HashMapIterator[nullable Object, nullable Object]> */
2948 var2
= self
->attrs
[COLOR_standard__hash_collection__HashMapIterator___map
].val
; /* _map on <self:HashMapIterator[nullable Object, nullable Object]> */
2949 if (unlikely(var2
== NULL
)) {
2950 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2951 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 406);
2958 self
->attrs
[COLOR_standard__hash_collection__HashMapIterator___map
].val
= var
; /* _map on <self:HashMapIterator[nullable Object, nullable Object]> */
2959 var3
= self
->attrs
[COLOR_standard__hash_collection__HashMapIterator___map
].val
; /* _map on <self:HashMapIterator[nullable Object, nullable Object]> */
2960 if (unlikely(var3
== NULL
)) {
2961 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _map");
2962 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 415);
2965 var4
= var3
->attrs
[COLOR_standard__hash_collection__HashCollection___first_item
].val
; /* _first_item on <var3:HashMap[nullable Object, nullable Object]> */
2966 self
->attrs
[COLOR_standard__hash_collection__HashMapIterator___node
].val
= var4
; /* _node on <self:HashMapIterator[nullable Object, nullable Object]> */
2969 /* method hash_collection#HashSet#length for (self: HashSet[nullable Object]): Int */
2970 long standard___standard__HashSet___standard__abstract_collection__Collection__length(val
* self
) {
2971 long var
/* : Int */;
2972 long var1
/* : Int */;
2973 var1
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
; /* _the_length on <self:HashSet[nullable Object]> */
2979 /* method hash_collection#HashSet#is_empty for (self: HashSet[nullable Object]): Bool */
2980 short int standard___standard__HashSet___standard__abstract_collection__Collection__is_empty(val
* self
) {
2981 short int var
/* : Bool */;
2982 long var1
/* : Int */;
2983 long var2
/* : Int */;
2984 short int var3
/* : Bool */;
2985 short int var5
/* : Bool */;
2986 var1
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
; /* _the_length on <self:HashSet[nullable Object]> */
2989 { /* Inline kernel#Int#== (var1,var2) on <var1:Int> */
2990 var5
= var1
== var2
;
3001 /* method hash_collection#HashSet#first for (self: HashSet[nullable Object]): nullable Object */
3002 val
* standard___standard__HashSet___standard__abstract_collection__Collection__first(val
* self
) {
3003 val
* var
/* : nullable Object */;
3004 long var1
/* : Int */;
3005 long var2
/* : Int */;
3006 short int var3
/* : Bool */;
3007 short int var5
/* : Bool */;
3010 const char* var_class_name
;
3011 short int var6
/* : Bool */;
3012 val
* var7
/* : nullable HashNode[nullable Object] */;
3013 val
* var8
/* : nullable Object */;
3014 var1
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
; /* _the_length on <self:HashSet[nullable Object]> */
3017 { /* Inline kernel#Int#> (var1,var2) on <var1:Int> */
3018 /* Covariant cast for argument 0 (i) <var2:Int> isa OTHER */
3019 /* <var2:Int> isa OTHER */
3020 var5
= 1; /* easy <var2:Int> isa OTHER*/
3021 if (unlikely(!var5
)) {
3022 var_class_name
= type_standard__Int
.name
;
3023 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
3024 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 412);
3033 if (unlikely(!var3
)) {
3034 PRINT_ERROR("Runtime error: %s", "Assert failed");
3035 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 433);
3038 var7
= self
->attrs
[COLOR_standard__hash_collection__HashCollection___first_item
].val
; /* _first_item on <self:HashSet[nullable Object]> */
3039 if (unlikely(var7
== NULL
)) {
3040 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3041 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 434);
3044 var8
= var7
->attrs
[COLOR_standard__hash_collection__HashNode___key
].val
; /* _key on <var7:nullable HashNode[nullable Object](nullable HashSetNode[nullable Object])> */
3050 /* method hash_collection#HashSet#has for (self: HashSet[nullable Object], nullable Object): Bool */
3051 short int standard___standard__HashSet___standard__abstract_collection__Collection__has(val
* self
, val
* p0
) {
3052 short int var
/* : Bool */;
3053 short int var1
/* : Bool */;
3056 const struct type
* type_struct
;
3057 short int is_nullable
;
3058 const char* var_class_name
;
3059 val
* var_item
/* var item: nullable Object */;
3060 val
* var2
/* : nullable HashNode[nullable Object] */;
3061 val
* var3
/* : null */;
3062 short int var4
/* : Bool */;
3063 short int var5
/* : Bool */;
3064 val
* var_other
/* var other: nullable Object */;
3065 short int var7
/* : Bool */;
3066 short int var8
/* : Bool */;
3067 /* Covariant cast for argument 0 (item) <p0:nullable Object> isa E */
3068 /* <p0:nullable Object> isa E */
3069 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__HashSet___35dE
];
3070 cltype
= type_struct
->color
;
3071 idtype
= type_struct
->id
;
3072 is_nullable
= type_struct
->is_nullable
;
3076 if(cltype
>= p0
->type
->table_size
) {
3079 var1
= p0
->type
->type_table
[cltype
] == idtype
;
3082 if (unlikely(!var1
)) {
3083 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
3084 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "E", var_class_name
);
3085 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 437);
3090 var2
= standard__hash_collection___standard__hash_collection__HashCollection___node_at(self
, var_item
);
3094 var4
= 0; /* is null */
3096 var4
= 1; /* arg is null and recv is not */
3099 { /* Inline kernel#Object#!= (var2,var3) on <var2:nullable HashNode[nullable Object](nullable HashSetNode[nullable Object])> */
3102 var7
= ((short int (*)(val
* self
, val
* p0
))(var2
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var2
, var_other
) /* == on <var2:nullable HashSetNode[nullable Object](HashSetNode[nullable Object])>*/;
3116 /* method hash_collection#HashSet#add for (self: HashSet[nullable Object], nullable Object) */
3117 void standard___standard__HashSet___standard__abstract_collection__SimpleCollection__add(val
* self
, val
* p0
) {
3118 short int var
/* : Bool */;
3121 const struct type
* type_struct
;
3122 short int is_nullable
;
3123 const char* var_class_name
;
3124 val
* var_item
/* var item: nullable Object */;
3125 long var1
/* : Int */;
3126 long var_i
/* var i: Int */;
3127 val
* var2
/* : nullable HashNode[nullable Object] */;
3128 val
* var_c
/* var c: nullable HashSetNode[nullable Object] */;
3129 val
* var3
/* : null */;
3130 short int var4
/* : Bool */;
3131 short int var5
/* : Bool */;
3132 val
* var_other
/* var other: nullable Object */;
3133 short int var7
/* : Bool */;
3134 short int var8
/* : Bool */;
3135 val
* var9
/* : HashSetNode[nullable Object] */;
3136 /* Covariant cast for argument 0 (item) <p0:nullable Object> isa E */
3137 /* <p0:nullable Object> isa E */
3138 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__HashSet___35dE
];
3139 cltype
= type_struct
->color
;
3140 idtype
= type_struct
->id
;
3141 is_nullable
= type_struct
->is_nullable
;
3145 if(cltype
>= p0
->type
->table_size
) {
3148 var
= p0
->type
->type_table
[cltype
] == idtype
;
3151 if (unlikely(!var
)) {
3152 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
3153 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "E", var_class_name
);
3154 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 442);
3159 var1
= standard__hash_collection___standard__hash_collection__HashCollection___index_at(self
, var_item
);
3163 var2
= standard__hash_collection___standard__hash_collection__HashCollection___node_at_idx(self
, var_i
, var_item
);
3167 if (var_c
== NULL
) {
3168 var4
= 0; /* is null */
3170 var4
= 1; /* arg is null and recv is not */
3173 { /* Inline kernel#Object#!= (var_c,var3) on <var_c:nullable HashSetNode[nullable Object]> */
3176 var7
= ((short int (*)(val
* self
, val
* p0
))(var_c
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_c
, var_other
) /* == on <var_c:nullable HashSetNode[nullable Object](HashSetNode[nullable Object])>*/;
3186 var_c
->attrs
[COLOR_standard__hash_collection__HashNode___key
].val
= var_item
; /* _key on <var_c:nullable HashSetNode[nullable Object](HashSetNode[nullable Object])> */
3188 var9
= NEW_standard__hash_collection__HashSetNode(self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashSetNode__standard__HashSet___35dE
]);
3190 ((void (*)(val
* self
, val
* p0
))(var9
->class->vft
[COLOR_standard__hash_collection__HashNode__key_61d
]))(var9
, var_item
) /* key= on <var9:HashSetNode[nullable Object]>*/;
3193 ((void (*)(val
* self
))(var9
->class->vft
[COLOR_standard__kernel__Object__init
]))(var9
) /* init on <var9:HashSetNode[nullable Object]>*/;
3196 standard__hash_collection___standard__hash_collection__HashCollection___store(self
, var_i
, var9
); /* Direct call hash_collection#HashCollection#store on <self:HashSet[nullable Object]>*/
3201 /* method hash_collection#HashSet#remove for (self: HashSet[nullable Object], nullable Object) */
3202 void standard___standard__HashSet___standard__abstract_collection__RemovableCollection__remove(val
* self
, val
* p0
) {
3203 short int var
/* : Bool */;
3206 const struct type
* type_struct
;
3207 short int is_nullable
;
3208 const char* var_class_name
;
3209 val
* var_item
/* var item: nullable Object */;
3210 /* Covariant cast for argument 0 (item) <p0:nullable Object> isa E */
3211 /* <p0:nullable Object> isa E */
3212 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__HashSet___35dE
];
3213 cltype
= type_struct
->color
;
3214 idtype
= type_struct
->id
;
3215 is_nullable
= type_struct
->is_nullable
;
3219 if(cltype
>= p0
->type
->table_size
) {
3222 var
= p0
->type
->type_table
[cltype
] == idtype
;
3225 if (unlikely(!var
)) {
3226 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
3227 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "E", var_class_name
);
3228 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 453);
3233 standard__hash_collection___standard__hash_collection__HashCollection___remove_node(self
, var_item
); /* Direct call hash_collection#HashCollection#remove_node on <self:HashSet[nullable Object]>*/
3237 /* method hash_collection#HashSet#clear for (self: HashSet[nullable Object]) */
3238 void standard___standard__HashSet___standard__abstract_collection__RemovableCollection__clear(val
* self
) {
3240 standard__hash_collection___standard__hash_collection__HashCollection___raz(self
); /* Direct call hash_collection#HashCollection#raz on <self:HashSet[nullable Object]>*/
3244 /* method hash_collection#HashSet#iterator for (self: HashSet[nullable Object]): Iterator[nullable Object] */
3245 val
* standard___standard__HashSet___standard__abstract_collection__Collection__iterator(val
* self
) {
3246 val
* var
/* : Iterator[nullable Object] */;
3247 val
* var1
/* : HashSetIterator[nullable Object] */;
3248 var1
= NEW_standard__hash_collection__HashSetIterator(self
->type
->resolution_table
->types
[COLOR_standard__hash_collection__HashSetIterator__standard__HashSet___35dE
]);
3250 ((void (*)(val
* self
, val
* p0
))(var1
->class->vft
[COLOR_standard__hash_collection__HashSetIterator__set_61d
]))(var1
, self
) /* set= on <var1:HashSetIterator[nullable Object]>*/;
3253 ((void (*)(val
* self
))(var1
->class->vft
[COLOR_standard__kernel__Object__init
]))(var1
) /* init on <var1:HashSetIterator[nullable Object]>*/;
3260 /* method hash_collection#HashSet#init for (self: HashSet[nullable Object]) */
3261 void standard___standard__HashSet___standard__kernel__Object__init(val
* self
) {
3262 long var
/* : Int */;
3263 long var1
/* : Int */;
3264 long var2
/* : Int */;
3266 ((void (*)(val
* self
))(self
->class->vft
[COLOR_standard___standard__HashSet___standard__kernel__Object__init
]))(self
) /* init on <self:HashSet[nullable Object]>*/;
3269 self
->attrs
[COLOR_standard__hash_collection__HashCollection___capacity
].l
= var
; /* _capacity on <self:HashSet[nullable Object]> */
3271 self
->attrs
[COLOR_standard__hash_collection__HashCollection___the_length
].l
= var1
; /* _the_length on <self:HashSet[nullable Object]> */
3274 standard__hash_collection___standard__hash_collection__HashCollection___enlarge(self
, var2
); /* Direct call hash_collection#HashCollection#enlarge on <self:HashSet[nullable Object]>*/
3278 /* method hash_collection#HashSet#from for (self: HashSet[nullable Object], Collection[nullable Object]) */
3279 void standard___standard__HashSet___from(val
* self
, val
* p0
) {
3280 short int var
/* : Bool */;
3283 const struct type
* type_struct
;
3284 const char* var_class_name
;
3285 val
* var_coll
/* var coll: Collection[nullable Object] */;
3286 /* Covariant cast for argument 0 (coll) <p0:Collection[nullable Object]> isa Collection[E] */
3287 /* <p0:Collection[nullable Object]> isa Collection[E] */
3288 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__Collection__standard__HashSet___35dE
];
3289 cltype
= type_struct
->color
;
3290 idtype
= type_struct
->id
;
3291 if(cltype
>= p0
->type
->table_size
) {
3294 var
= p0
->type
->type_table
[cltype
] == idtype
;
3296 if (unlikely(!var
)) {
3297 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
3298 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "Collection[E]", var_class_name
);
3299 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 466);
3304 standard___standard__HashSet___standard__kernel__Object__init(self
); /* Direct call hash_collection#HashSet#init on <self:HashSet[nullable Object]>*/
3307 standard___standard__SimpleCollection___add_all(self
, var_coll
); /* Direct call abstract_collection#SimpleCollection#add_all on <self:HashSet[nullable Object]>*/
3311 /* method hash_collection#HashSetIterator#is_ok for (self: HashSetIterator[nullable Object]): Bool */
3312 short int standard__hash_collection___standard__hash_collection__HashSetIterator___standard__abstract_collection__Iterator__is_ok(val
* self
) {
3313 short int var
/* : Bool */;
3314 val
* var1
/* : nullable HashSetNode[nullable Object] */;
3315 val
* var2
/* : null */;
3316 short int var3
/* : Bool */;
3317 short int var4
/* : Bool */;
3318 val
* var_other
/* var other: nullable Object */;
3319 short int var6
/* : Bool */;
3320 short int var7
/* : Bool */;
3321 var1
= self
->attrs
[COLOR_standard__hash_collection__HashSetIterator___node
].val
; /* _node on <self:HashSetIterator[nullable Object]> */
3324 var3
= 0; /* is null */
3326 var3
= 1; /* arg is null and recv is not */
3329 { /* Inline kernel#Object#!= (var1,var2) on <var1:nullable HashSetNode[nullable Object]> */
3332 var6
= ((short int (*)(val
* self
, val
* p0
))(var1
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var1
, var_other
) /* == on <var1:nullable HashSetNode[nullable Object](HashSetNode[nullable Object])>*/;
3346 /* method hash_collection#HashSetIterator#item for (self: HashSetIterator[nullable Object]): nullable Object */
3347 val
* standard__hash_collection___standard__hash_collection__HashSetIterator___standard__abstract_collection__Iterator__item(val
* self
) {
3348 val
* var
/* : nullable Object */;
3349 short int var1
/* : Bool */;
3350 val
* var2
/* : nullable HashSetNode[nullable Object] */;
3351 val
* var3
/* : nullable Object */;
3353 var1
= standard__hash_collection___standard__hash_collection__HashSetIterator___standard__abstract_collection__Iterator__is_ok(self
);
3355 if (unlikely(!var1
)) {
3356 PRINT_ERROR("Runtime error: %s", "Assert failed");
3357 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 486);
3360 var2
= self
->attrs
[COLOR_standard__hash_collection__HashSetIterator___node
].val
; /* _node on <self:HashSetIterator[nullable Object]> */
3361 if (unlikely(var2
== NULL
)) {
3362 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3363 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 487);
3366 var3
= var2
->attrs
[COLOR_standard__hash_collection__HashNode___key
].val
; /* _key on <var2:nullable HashSetNode[nullable Object]> */
3372 /* method hash_collection#HashSetIterator#next for (self: HashSetIterator[nullable Object]) */
3373 void standard__hash_collection___standard__hash_collection__HashSetIterator___standard__abstract_collection__Iterator__next(val
* self
) {
3374 short int var
/* : Bool */;
3375 val
* var1
/* : nullable HashSetNode[nullable Object] */;
3376 val
* var2
/* : nullable HashNode[nullable Object] */;
3378 var
= standard__hash_collection___standard__hash_collection__HashSetIterator___standard__abstract_collection__Iterator__is_ok(self
);
3380 if (unlikely(!var
)) {
3381 PRINT_ERROR("Runtime error: %s", "Assert failed");
3382 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 492);
3385 var1
= self
->attrs
[COLOR_standard__hash_collection__HashSetIterator___node
].val
; /* _node on <self:HashSetIterator[nullable Object]> */
3386 if (unlikely(var1
== NULL
)) {
3387 PRINT_ERROR("Runtime error: %s", "Receiver is null");
3388 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 493);
3391 var2
= var1
->attrs
[COLOR_standard__hash_collection__HashNode___next_item
].val
; /* _next_item on <var1:nullable HashSetNode[nullable Object]> */
3392 self
->attrs
[COLOR_standard__hash_collection__HashSetIterator___node
].val
= var2
; /* _node on <self:HashSetIterator[nullable Object]> */
3395 /* method hash_collection#HashSetIterator#set= for (self: HashSetIterator[nullable Object], HashSet[nullable Object]) */
3396 void standard__hash_collection___standard__hash_collection__HashSetIterator___set_61d(val
* self
, val
* p0
) {
3397 short int var
/* : Bool */;
3400 const struct type
* type_struct
;
3401 const char* var_class_name
;
3402 /* Covariant cast for argument 0 (set) <p0:HashSet[nullable Object]> isa HashSet[E] */
3403 /* <p0:HashSet[nullable Object]> isa HashSet[E] */
3404 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__HashSet__standard__hash_collection__HashSetIterator___35dE
];
3405 cltype
= type_struct
->color
;
3406 idtype
= type_struct
->id
;
3407 if(cltype
>= p0
->type
->table_size
) {
3410 var
= p0
->type
->type_table
[cltype
] == idtype
;
3412 if (unlikely(!var
)) {
3413 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
3414 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "HashSet[E]", var_class_name
);
3415 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 496);
3418 self
->attrs
[COLOR_standard__hash_collection__HashSetIterator___set
].val
= p0
; /* _set on <self:HashSetIterator[nullable Object]> */
3421 /* method hash_collection#HashSetIterator#init for (self: HashSetIterator[nullable Object]) */
3422 void standard__hash_collection___standard__hash_collection__HashSetIterator___standard__kernel__Object__init(val
* self
) {
3423 val
* var
/* : HashSet[nullable Object] */;
3424 val
* var1
/* : nullable HashNode[nullable Object] */;
3425 var
= self
->attrs
[COLOR_standard__hash_collection__HashSetIterator___set
].val
; /* _set on <self:HashSetIterator[nullable Object]> */
3426 if (unlikely(var
== NULL
)) {
3427 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _set");
3428 PRINT_ERROR(" (%s:%d)\n", FILE_standard__hash_collection
, 504);
3431 var1
= var
->attrs
[COLOR_standard__hash_collection__HashCollection___first_item
].val
; /* _first_item on <var:HashSet[nullable Object]> */
3432 self
->attrs
[COLOR_standard__hash_collection__HashSetIterator___node
].val
= var1
; /* _node on <self:HashSetIterator[nullable Object]> */