1 #include "nit__model.sep.0.h"
2 /* method model#MParameterType#c_name for (self: MParameterType): String */
3 val
* nit___nit__MParameterType___nit__model_base__MEntity__c_name(val
* self
) {
4 val
* var
/* : String */;
5 short int var1
/* : Bool */;
6 val
* var2
/* : String */;
7 val
* var3
/* : String */;
8 val
* var5
/* : MClass */;
9 val
* var7
/* : MClass */;
10 val
* var8
/* : String */;
12 val
* var9
/* : String */;
13 char* var10
/* : NativeString */;
14 val
* var11
/* : FlatString */;
15 val
* var12
/* : String */;
16 val
* var14
/* : NativeArray[String] */;
17 static val
* varonce13
;
18 static val
* varonce15
;
19 val
* var16
/* : String */;
20 char* var17
/* : NativeString */;
21 val
* var18
/* : FlatString */;
22 val
* var19
/* : String */;
23 val
* var21
/* : String */;
24 val
* var22
/* : String */;
25 val
* var23
/* : String */;
26 val
* var24
/* : String */;
27 var1
= self
->attrs
[COLOR_nit__model__MParameterType___c_name
].val
!= NULL
; /* _c_name on <self:MParameterType> */
29 var2
= self
->attrs
[COLOR_nit__model__MParameterType___c_name
].val
; /* _c_name on <self:MParameterType> */
30 if (unlikely(var2
== NULL
)) {
31 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _c_name");
32 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1487);
38 { /* Inline model#MParameterType#mclass (self) on <self:MParameterType> */
39 var7
= self
->attrs
[COLOR_nit__model__MParameterType___mclass
].val
; /* _mclass on <self:MParameterType> */
40 if (unlikely(var7
== NULL
)) {
41 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
42 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1472);
50 var8
= nit___nit__MClass___nit__model_base__MEntity__c_name(var5
);
52 if (likely(varonce
!=NULL
)) {
56 var11
= standard___standard__NativeString___to_s_with_length(var10
, 2l);
61 var12
= ((val
*(*)(val
* self
, val
* p0
))(var8
->class->vft
[COLOR_standard__string__String___43d
]))(var8
, var9
); /* + on <var8:String>*/
63 if (unlikely(varonce13
==NULL
)) {
64 var14
= NEW_standard__NativeArray(2l, &type_standard__NativeArray__standard__String
);
65 if (likely(varonce15
!=NULL
)) {
69 var18
= standard___standard__NativeString___to_s_with_length(var17
, 1l);
73 ((struct instance_standard__NativeArray
*)var14
)->values
[0]=var16
;
79 { /* Inline model#MParameterType#name (self) on <self:MParameterType> */
80 var21
= self
->attrs
[COLOR_nit__model__MParameterType___name
].val
; /* _name on <self:MParameterType> */
81 if (unlikely(var21
== NULL
)) {
82 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
83 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1481);
90 ((struct instance_standard__NativeArray
*)var14
)->values
[1]=var19
;
92 var22
= ((val
*(*)(val
* self
))(var14
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var14
); /* native_to_s on <var14:NativeArray[String]>*/
96 var23
= standard___standard__Text___to_cmangle(var22
);
99 var24
= ((val
*(*)(val
* self
, val
* p0
))(var12
->class->vft
[COLOR_standard__string__String___43d
]))(var12
, var23
); /* + on <var12:String>*/
105 self
->attrs
[COLOR_nit__model__MParameterType___c_name
].val
= var3
; /* _c_name on <self:MParameterType> */
112 /* method model#MParameterType#lookup_bound for (self: MParameterType, MModule, MType): MType */
113 val
* nit___nit__MParameterType___MType__lookup_bound(val
* self
, val
* p0
, val
* p1
) {
114 val
* var
/* : MType */;
115 val
* var_mmodule
/* var mmodule: MModule */;
116 val
* var_resolved_receiver
/* var resolved_receiver: MType */;
117 short int var1
/* : Bool */;
118 short int var2
/* : Bool */;
119 val
* var3
/* : MType */;
120 short int var4
/* : Bool */;
123 val
* var5
/* : MClass */;
124 val
* var7
/* : MClass */;
125 val
* var_goalclass
/* var goalclass: MClass */;
126 val
* var8
/* : MClass */;
127 val
* var10
/* : MClass */;
128 short int var11
/* : Bool */;
129 val
* var_other
/* var other: nullable Object */;
130 short int var13
/* : Bool */;
131 short int var15
/* : Bool */;
132 val
* var16
/* : Array[MType] */;
133 long var17
/* : Int */;
134 long var19
/* : Int */;
135 val
* var20
/* : nullable Object */;
136 val
* var21
/* : Set[MClassType] */;
137 val
* var_supertypes
/* var supertypes: Set[MClassType] */;
138 val
* var_
/* var : Set[MClassType] */;
139 val
* var22
/* : Iterator[nullable Object] */;
140 val
* var_23
/* var : Iterator[MClassType] */;
141 short int var24
/* : Bool */;
142 val
* var25
/* : nullable Object */;
143 val
* var_t
/* var t: MClassType */;
144 val
* var26
/* : MClass */;
145 val
* var28
/* : MClass */;
146 short int var29
/* : Bool */;
147 short int var31
/* : Bool */;
148 short int var33
/* : Bool */;
149 val
* var34
/* : Array[MType] */;
150 long var35
/* : Int */;
151 long var37
/* : Int */;
152 val
* var38
/* : nullable Object */;
153 val
* var_res
/* var res: MType */;
155 var_resolved_receiver
= p1
;
157 var1
= ((short int(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nit__model__MType__need_anchor
]))(var_resolved_receiver
); /* need_anchor on <var_resolved_receiver:MType>*/
160 if (unlikely(!var2
)) {
161 PRINT_ERROR("Runtime error: %s", "Assert failed");
162 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1491);
166 var3
= ((val
*(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nit__model__MType__undecorate
]))(var_resolved_receiver
); /* undecorate on <var_resolved_receiver:MType>*/
168 var_resolved_receiver
= var3
;
169 /* <var_resolved_receiver:MType> isa MClassType */
170 cltype
= type_nit__MClassType
.color
;
171 idtype
= type_nit__MClassType
.id
;
172 if(cltype
>= var_resolved_receiver
->type
->table_size
) {
175 var4
= var_resolved_receiver
->type
->type_table
[cltype
] == idtype
;
177 if (unlikely(!var4
)) {
178 PRINT_ERROR("Runtime error: %s", "Assert failed");
179 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1493);
183 { /* Inline model#MParameterType#mclass (self) on <self:MParameterType> */
184 var7
= self
->attrs
[COLOR_nit__model__MParameterType___mclass
].val
; /* _mclass on <self:MParameterType> */
185 if (unlikely(var7
== NULL
)) {
186 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
187 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1472);
194 var_goalclass
= var5
;
196 { /* Inline model#MClassType#mclass (var_resolved_receiver) on <var_resolved_receiver:MType(MClassType)> */
197 var10
= var_resolved_receiver
->attrs
[COLOR_nit__model__MClassType___mclass
].val
; /* _mclass on <var_resolved_receiver:MType(MClassType)> */
198 if (unlikely(var10
== NULL
)) {
199 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
200 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1138);
208 { /* Inline kernel#Object#== (var8,var_goalclass) on <var8:MClass> */
209 var_other
= var_goalclass
;
211 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:MClass> */
212 var15
= var8
== var_other
;
225 var16
= ((val
*(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nit__model__MClassType__arguments
]))(var_resolved_receiver
); /* arguments on <var_resolved_receiver:MType(MClassType)>*/
228 { /* Inline model#MParameterType#rank (self) on <self:MParameterType> */
229 var19
= self
->attrs
[COLOR_nit__model__MParameterType___rank
].l
; /* _rank on <self:MParameterType> */
235 var20
= standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(var16
, var17
);
242 var21
= nit___nit__MClassType___MType__collect_mtypes(var_resolved_receiver
, var_mmodule
);
244 var_supertypes
= var21
;
245 var_
= var_supertypes
;
247 var22
= ((val
*(*)(val
* self
))((((long)var_
&3)?class_info
[((long)var_
&3)]:var_
->class)->vft
[COLOR_standard__abstract_collection__Collection__iterator
]))(var_
); /* iterator on <var_:Set[MClassType]>*/
252 var24
= ((short int(*)(val
* self
))((((long)var_23
&3)?class_info
[((long)var_23
&3)]:var_23
->class)->vft
[COLOR_standard__abstract_collection__Iterator__is_ok
]))(var_23
); /* is_ok on <var_23:Iterator[MClassType]>*/
256 var25
= ((val
*(*)(val
* self
))((((long)var_23
&3)?class_info
[((long)var_23
&3)]:var_23
->class)->vft
[COLOR_standard__abstract_collection__Iterator__item
]))(var_23
); /* item on <var_23:Iterator[MClassType]>*/
260 { /* Inline model#MClassType#mclass (var_t) on <var_t:MClassType> */
261 var28
= var_t
->attrs
[COLOR_nit__model__MClassType___mclass
].val
; /* _mclass on <var_t:MClassType> */
262 if (unlikely(var28
== NULL
)) {
263 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
264 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1138);
272 { /* Inline kernel#Object#== (var26,var_goalclass) on <var26:MClass> */
273 var_other
= var_goalclass
;
275 { /* Inline kernel#Object#is_same_instance (var26,var_other) on <var26:MClass> */
276 var33
= var26
== var_other
;
289 var34
= ((val
*(*)(val
* self
))(var_t
->class->vft
[COLOR_nit__model__MClassType__arguments
]))(var_t
); /* arguments on <var_t:MClassType>*/
292 { /* Inline model#MParameterType#rank (self) on <self:MParameterType> */
293 var37
= self
->attrs
[COLOR_nit__model__MParameterType___rank
].l
; /* _rank on <self:MParameterType> */
299 var38
= standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(var34
, var35
);
307 ((void(*)(val
* self
))((((long)var_23
&3)?class_info
[((long)var_23
&3)]:var_23
->class)->vft
[COLOR_standard__abstract_collection__Iterator__next
]))(var_23
); /* next on <var_23:Iterator[MClassType]>*/
313 BREAK_label
: (void)0;
315 ((void(*)(val
* self
))((((long)var_23
&3)?class_info
[((long)var_23
&3)]:var_23
->class)->vft
[COLOR_standard__abstract_collection__Iterator__finish
]))(var_23
); /* finish on <var_23:Iterator[MClassType]>*/
317 PRINT_ERROR("Runtime error: %s", "Aborted");
318 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1507);
323 /* method model#MParameterType#lookup_fixed for (self: MParameterType, MModule, MType): MType */
324 val
* nit___nit__MParameterType___MType__lookup_fixed(val
* self
, val
* p0
, val
* p1
) {
325 val
* var
/* : MType */;
326 val
* var_mmodule
/* var mmodule: MModule */;
327 val
* var_resolved_receiver
/* var resolved_receiver: MType */;
328 short int var1
/* : Bool */;
329 short int var2
/* : Bool */;
330 val
* var3
/* : MType */;
331 short int var4
/* : Bool */;
334 val
* var5
/* : MClass */;
335 val
* var7
/* : MClass */;
336 val
* var8
/* : MClassType */;
337 val
* var10
/* : MClassType */;
338 val
* var11
/* : MType */;
339 val
* var_res
/* var res: MType */;
341 var_resolved_receiver
= p1
;
343 var1
= ((short int(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nit__model__MType__need_anchor
]))(var_resolved_receiver
); /* need_anchor on <var_resolved_receiver:MType>*/
346 if (unlikely(!var2
)) {
347 PRINT_ERROR("Runtime error: %s", "Assert failed");
348 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1519);
352 var3
= ((val
*(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nit__model__MType__undecorate
]))(var_resolved_receiver
); /* undecorate on <var_resolved_receiver:MType>*/
354 var_resolved_receiver
= var3
;
355 /* <var_resolved_receiver:MType> isa MClassType */
356 cltype
= type_nit__MClassType
.color
;
357 idtype
= type_nit__MClassType
.id
;
358 if(cltype
>= var_resolved_receiver
->type
->table_size
) {
361 var4
= var_resolved_receiver
->type
->type_table
[cltype
] == idtype
;
363 if (unlikely(!var4
)) {
364 PRINT_ERROR("Runtime error: %s", "Assert failed");
365 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1521);
369 { /* Inline model#MClassType#mclass (var_resolved_receiver) on <var_resolved_receiver:MType(MClassType)> */
370 var7
= var_resolved_receiver
->attrs
[COLOR_nit__model__MClassType___mclass
].val
; /* _mclass on <var_resolved_receiver:MType(MClassType)> */
371 if (unlikely(var7
== NULL
)) {
372 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
373 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1138);
381 { /* Inline model#MClass#mclass_type (var5) on <var5:MClass> */
382 var10
= var5
->attrs
[COLOR_nit__model__MClass___mclass_type
].val
; /* _mclass_type on <var5:MClass> */
383 if (unlikely(var10
== NULL
)) {
384 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass_type");
385 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 484);
393 var11
= nit___nit__MParameterType___MType__resolve_for(self
, var8
, var_resolved_receiver
, var_mmodule
, 0);
401 /* method model#MParameterType#resolve_for for (self: MParameterType, MType, nullable MClassType, MModule, Bool): MType */
402 val
* nit___nit__MParameterType___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
403 val
* var
/* : MType */;
404 val
* var_mtype
/* var mtype: MType */;
405 val
* var_anchor
/* var anchor: nullable MClassType */;
406 val
* var_mmodule
/* var mmodule: MModule */;
407 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
408 short int var1
/* : Bool */;
409 short int var2
/* : Bool */;
410 short int var3
/* : Bool */;
413 short int var_
/* var : Bool */;
414 val
* var4
/* : MClass */;
415 val
* var6
/* : MClass */;
416 val
* var7
/* : MClass */;
417 val
* var9
/* : MClass */;
418 short int var10
/* : Bool */;
419 val
* var_other
/* var other: nullable Object */;
420 short int var12
/* : Bool */;
421 short int var14
/* : Bool */;
422 val
* var15
/* : Array[MType] */;
423 val
* var17
/* : Array[MType] */;
424 long var18
/* : Int */;
425 long var20
/* : Int */;
426 val
* var21
/* : nullable Object */;
427 val
* var_res
/* var res: MType */;
428 short int var22
/* : Bool */;
429 short int var23
/* : Bool */;
430 short int var24
/* : Bool */;
431 val
* var_other26
/* var other: nullable Object */;
432 short int var27
/* : Bool */;
433 short int var28
/* : Bool */;
434 short int var_29
/* var : Bool */;
435 short int var30
/* : Bool */;
436 val
* var31
/* : MType */;
437 val
* var_r2
/* var r2: MType */;
438 short int var32
/* : Bool */;
439 short int var33
/* : Bool */;
442 short int var_36
/* var : Bool */;
443 val
* var37
/* : MClass */;
444 val
* var39
/* : MClass */;
445 val
* var40
/* : MClassKind */;
446 val
* var42
/* : MClassKind */;
447 val
* var43
/* : Sys */;
448 val
* var44
/* : MClassKind */;
449 short int var45
/* : Bool */;
450 short int var47
/* : Bool */;
451 short int var49
/* : Bool */;
452 short int var50
/* : Bool */;
453 short int var51
/* : Bool */;
454 short int var52
/* : Bool */;
455 short int var54
/* : Bool */;
456 short int var55
/* : Bool */;
457 val
* var56
/* : MClass */;
458 val
* var58
/* : MClass */;
459 val
* var59
/* : MClassType */;
460 val
* var61
/* : MClassType */;
461 val
* var62
/* : MType */;
462 val
* var_resolved_receiver
/* var resolved_receiver: nullable Object */;
463 short int var63
/* : Bool */;
466 val
* var66
/* : MType */;
467 val
* var68
/* : MType */;
468 short int var69
/* : Bool */;
471 val
* var72
/* : MClass */;
472 val
* var74
/* : MClass */;
473 val
* var75
/* : MClass */;
474 val
* var77
/* : MClass */;
475 short int var78
/* : Bool */;
476 short int var80
/* : Bool */;
477 short int var82
/* : Bool */;
478 val
* var83
/* : Array[MType] */;
479 long var84
/* : Int */;
480 long var86
/* : Int */;
481 val
* var87
/* : nullable Object */;
482 short int var88
/* : Bool */;
485 val
* var91
/* : MType */;
486 val
* var93
/* : MType */;
487 short int var94
/* : Bool */;
490 val
* var97
/* : MClass */;
491 val
* var99
/* : MClass */;
492 val
* var100
/* : MClass */;
493 val
* var102
/* : MClass */;
494 short int var103
/* : Bool */;
495 short int var105
/* : Bool */;
496 short int var107
/* : Bool */;
497 val
* var108
/* : Array[MType] */;
498 long var109
/* : Int */;
499 long var111
/* : Int */;
500 val
* var112
/* : nullable Object */;
501 val
* var_res113
/* var res: MType */;
502 short int var114
/* : Bool */;
503 short int var115
/* : Bool */;
504 short int var116
/* : Bool */;
505 short int var118
/* : Bool */;
506 short int var119
/* : Bool */;
507 val
* var120
/* : MType */;
508 val
* var121
/* : MType */;
509 val
* var_verbatim_bound
/* var verbatim_bound: MType */;
510 val
* var122
/* : MType */;
511 val
* var_res123
/* var res: MType */;
515 var_cleanup_virtual
= p3
;
517 var1
= nit___nit__MParameterType___MType__can_resolve_for(self
, var_mtype
, var_anchor
, var_mmodule
);
519 if (unlikely(!var1
)) {
520 PRINT_ERROR("Runtime error: %s", "Assert failed");
521 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1528);
524 /* <var_mtype:MType> isa MGenericType */
525 cltype
= type_nit__MGenericType
.color
;
526 idtype
= type_nit__MGenericType
.id
;
527 if(cltype
>= var_mtype
->type
->table_size
) {
530 var3
= var_mtype
->type
->type_table
[cltype
] == idtype
;
535 { /* Inline model#MClassType#mclass (var_mtype) on <var_mtype:MType(MGenericType)> */
536 var6
= var_mtype
->attrs
[COLOR_nit__model__MClassType___mclass
].val
; /* _mclass on <var_mtype:MType(MGenericType)> */
537 if (unlikely(var6
== NULL
)) {
538 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
539 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1138);
547 { /* Inline model#MParameterType#mclass (self) on <self:MParameterType> */
548 var9
= self
->attrs
[COLOR_nit__model__MParameterType___mclass
].val
; /* _mclass on <self:MParameterType> */
549 if (unlikely(var9
== NULL
)) {
550 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
551 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1472);
559 { /* Inline kernel#Object#== (var4,var7) on <var4:MClass> */
562 { /* Inline kernel#Object#is_same_instance (var4,var_other) on <var4:MClass> */
563 var14
= var4
== var_other
;
580 { /* Inline model#MGenericType#arguments (var_mtype) on <var_mtype:MType(MGenericType)> */
581 var17
= var_mtype
->attrs
[COLOR_nit__model__MGenericType___arguments
].val
; /* _arguments on <var_mtype:MType(MGenericType)> */
582 if (unlikely(var17
== NULL
)) {
583 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _arguments");
584 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1244);
592 { /* Inline model#MParameterType#rank (self) on <self:MParameterType> */
593 var20
= self
->attrs
[COLOR_nit__model__MParameterType___rank
].l
; /* _rank on <self:MParameterType> */
599 var21
= standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(var15
, var18
);
602 if (var_anchor
== NULL
) {
603 var23
= 0; /* is null */
605 var23
= 1; /* arg is null and recv is not */
608 { /* Inline kernel#Object#!= (var_anchor,((val*)NULL)) on <var_anchor:nullable MClassType> */
609 var_other26
= ((val
*)NULL
);
611 var27
= ((short int(*)(val
* self
, val
* p0
))(var_anchor
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_anchor
, var_other26
); /* == on <var_anchor:nullable MClassType(MClassType)>*/
623 var30
= ((short int(*)(val
* self
))(var_res
->class->vft
[COLOR_nit__model__MType__need_anchor
]))(var_res
); /* need_anchor on <var_res:MType>*/
631 var31
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
))(var_res
->class->vft
[COLOR_nit__model__MType__anchor_to
]))(var_res
, var_mmodule
, var_anchor
); /* anchor_to on <var_res:MType>*/
634 /* <var_r2:MType> isa MClassType */
635 cltype34
= type_nit__MClassType
.color
;
636 idtype35
= type_nit__MClassType
.id
;
637 if(cltype34
>= var_r2
->type
->table_size
) {
640 var33
= var_r2
->type
->type_table
[cltype34
] == idtype35
;
645 { /* Inline model#MClassType#mclass (var_r2) on <var_r2:MType(MClassType)> */
646 var39
= var_r2
->attrs
[COLOR_nit__model__MClassType___mclass
].val
; /* _mclass on <var_r2:MType(MClassType)> */
647 if (unlikely(var39
== NULL
)) {
648 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
649 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1138);
657 { /* Inline model#MClass#kind (var37) on <var37:MClass> */
658 var42
= var37
->attrs
[COLOR_nit__model__MClass___kind
].val
; /* _kind on <var37:MClass> */
659 if (unlikely(var42
== NULL
)) {
660 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _kind");
661 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 436);
670 var44
= nit__model___standard__Sys___enum_kind(var43
);
673 { /* Inline kernel#Object#== (var40,var44) on <var40:MClassKind> */
676 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:MClassKind> */
677 var49
= var40
== var_other
;
704 var50
= ((short int(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nit__model__MType__need_anchor
]))(var_mtype
); /* need_anchor on <var_mtype:MType>*/
707 if (var_anchor
== NULL
) {
708 var51
= 0; /* is null */
710 var51
= 1; /* arg is null and recv is not */
713 { /* Inline kernel#Object#!= (var_anchor,((val*)NULL)) on <var_anchor:nullable MClassType> */
714 var_other26
= ((val
*)NULL
);
716 var54
= ((short int(*)(val
* self
, val
* p0
))(var_anchor
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_anchor
, var_other26
); /* == on <var_anchor:nullable MClassType(MClassType)>*/
725 if (unlikely(!var51
)) {
726 PRINT_ERROR("Runtime error: %s", "Assert failed");
727 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1547);
731 { /* Inline model#MClassType#mclass (var_anchor) on <var_anchor:nullable MClassType(MClassType)> */
732 var58
= var_anchor
->attrs
[COLOR_nit__model__MClassType___mclass
].val
; /* _mclass on <var_anchor:nullable MClassType(MClassType)> */
733 if (unlikely(var58
== NULL
)) {
734 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
735 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1138);
743 { /* Inline model#MClass#mclass_type (var56) on <var56:MClass> */
744 var61
= var56
->attrs
[COLOR_nit__model__MClass___mclass_type
].val
; /* _mclass_type on <var56:MClass> */
745 if (unlikely(var61
== NULL
)) {
746 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass_type");
747 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 484);
755 var62
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(var_mtype
->class->vft
[COLOR_nit__model__MType__resolve_for
]))(var_mtype
, var59
, var_anchor
, var_mmodule
, 1); /* resolve_for on <var_mtype:MType>*/
757 var_resolved_receiver
= var62
;
759 var_resolved_receiver
= var_mtype
;
761 /* <var_resolved_receiver:nullable Object(MType)> isa MNullableType */
762 cltype64
= type_nit__MNullableType
.color
;
763 idtype65
= type_nit__MNullableType
.id
;
764 if(cltype64
>= var_resolved_receiver
->type
->table_size
) {
767 var63
= var_resolved_receiver
->type
->type_table
[cltype64
] == idtype65
;
771 { /* Inline model#MProxyType#mtype (var_resolved_receiver) on <var_resolved_receiver:nullable Object(MNullableType)> */
772 var68
= var_resolved_receiver
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <var_resolved_receiver:nullable Object(MNullableType)> */
773 if (unlikely(var68
== NULL
)) {
774 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
775 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
782 var_resolved_receiver
= var66
;
785 /* <var_resolved_receiver:nullable Object(MType)> isa MParameterType */
786 cltype70
= type_nit__MParameterType
.color
;
787 idtype71
= type_nit__MParameterType
.id
;
788 if(cltype70
>= var_resolved_receiver
->type
->table_size
) {
791 var69
= var_resolved_receiver
->type
->type_table
[cltype70
] == idtype71
;
795 { /* Inline model#MParameterType#mclass (var_resolved_receiver) on <var_resolved_receiver:nullable Object(MParameterType)> */
796 var74
= var_resolved_receiver
->attrs
[COLOR_nit__model__MParameterType___mclass
].val
; /* _mclass on <var_resolved_receiver:nullable Object(MParameterType)> */
797 if (unlikely(var74
== NULL
)) {
798 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
799 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1472);
806 if (var_anchor
== NULL
) {
807 PRINT_ERROR("Runtime error: %s", "Receiver is null");
808 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1554);
811 { /* Inline model#MClassType#mclass (var_anchor) on <var_anchor:nullable MClassType> */
812 if (unlikely(var_anchor
== NULL
)) {
813 PRINT_ERROR("Runtime error: %s", "Receiver is null");
814 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1138);
817 var77
= var_anchor
->attrs
[COLOR_nit__model__MClassType___mclass
].val
; /* _mclass on <var_anchor:nullable MClassType> */
818 if (unlikely(var77
== NULL
)) {
819 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
820 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1138);
828 { /* Inline kernel#Object#== (var72,var75) on <var72:MClass> */
831 { /* Inline kernel#Object#is_same_instance (var72,var_other) on <var72:MClass> */
832 var82
= var72
== var_other
;
843 if (unlikely(!var78
)) {
844 PRINT_ERROR("Runtime error: %s", "Assert failed");
845 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1554);
848 if (var_anchor
== NULL
) {
849 PRINT_ERROR("Runtime error: %s", "Receiver is null");
850 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1555);
853 var83
= ((val
*(*)(val
* self
))(var_anchor
->class->vft
[COLOR_nit__model__MClassType__arguments
]))(var_anchor
); /* arguments on <var_anchor:nullable MClassType>*/
856 { /* Inline model#MParameterType#rank (var_resolved_receiver) on <var_resolved_receiver:nullable Object(MParameterType)> */
857 var86
= var_resolved_receiver
->attrs
[COLOR_nit__model__MParameterType___rank
].l
; /* _rank on <var_resolved_receiver:nullable Object(MParameterType)> */
863 var87
= standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(var83
, var84
);
865 var_resolved_receiver
= var87
;
866 /* <var_resolved_receiver:nullable Object(MType)> isa MNullableType */
867 cltype89
= type_nit__MNullableType
.color
;
868 idtype90
= type_nit__MNullableType
.id
;
869 if(cltype89
>= var_resolved_receiver
->type
->table_size
) {
872 var88
= var_resolved_receiver
->type
->type_table
[cltype89
] == idtype90
;
876 { /* Inline model#MProxyType#mtype (var_resolved_receiver) on <var_resolved_receiver:nullable Object(MNullableType)> */
877 var93
= var_resolved_receiver
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <var_resolved_receiver:nullable Object(MNullableType)> */
878 if (unlikely(var93
== NULL
)) {
879 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
880 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
887 var_resolved_receiver
= var91
;
892 /* <var_resolved_receiver:nullable Object(MType)> isa MClassType */
893 cltype95
= type_nit__MClassType
.color
;
894 idtype96
= type_nit__MClassType
.id
;
895 if(cltype95
>= var_resolved_receiver
->type
->table_size
) {
898 var94
= var_resolved_receiver
->type
->type_table
[cltype95
] == idtype96
;
900 if (unlikely(!var94
)) {
901 PRINT_ERROR("Runtime error: %s", "Assert failed");
902 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1558);
906 { /* Inline model#MClassType#mclass (var_resolved_receiver) on <var_resolved_receiver:nullable Object(MClassType)> */
907 var99
= var_resolved_receiver
->attrs
[COLOR_nit__model__MClassType___mclass
].val
; /* _mclass on <var_resolved_receiver:nullable Object(MClassType)> */
908 if (unlikely(var99
== NULL
)) {
909 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
910 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1138);
918 { /* Inline model#MParameterType#mclass (self) on <self:MParameterType> */
919 var102
= self
->attrs
[COLOR_nit__model__MParameterType___mclass
].val
; /* _mclass on <self:MParameterType> */
920 if (unlikely(var102
== NULL
)) {
921 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
922 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1472);
926 RET_LABEL101
:(void)0;
930 { /* Inline kernel#Object#== (var97,var100) on <var97:MClass> */
933 { /* Inline kernel#Object#is_same_instance (var97,var_other) on <var97:MClass> */
934 var107
= var97
== var_other
;
937 RET_LABEL106
:(void)0;
942 RET_LABEL104
:(void)0;
947 var108
= ((val
*(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nit__model__MClassType__arguments
]))(var_resolved_receiver
); /* arguments on <var_resolved_receiver:nullable Object(MClassType)>*/
950 { /* Inline model#MParameterType#rank (self) on <self:MParameterType> */
951 var111
= self
->attrs
[COLOR_nit__model__MParameterType___rank
].l
; /* _rank on <self:MParameterType> */
953 RET_LABEL110
:(void)0;
957 var112
= standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(var108
, var109
);
965 var114
= ((short int(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nit__model__MType__need_anchor
]))(var_resolved_receiver
); /* need_anchor on <var_resolved_receiver:nullable Object(MClassType)>*/
968 if (var_anchor
== NULL
) {
969 var115
= 0; /* is null */
971 var115
= 1; /* arg is null and recv is not */
974 { /* Inline kernel#Object#!= (var_anchor,((val*)NULL)) on <var_anchor:nullable MClassType> */
975 var_other26
= ((val
*)NULL
);
977 var118
= ((short int(*)(val
* self
, val
* p0
))(var_anchor
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_anchor
, var_other26
); /* == on <var_anchor:nullable MClassType(MClassType)>*/
982 RET_LABEL117
:(void)0;
986 if (unlikely(!var115
)) {
987 PRINT_ERROR("Runtime error: %s", "Assert failed");
988 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1569);
992 var120
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(var_resolved_receiver
->class->vft
[COLOR_nit__model__MType__resolve_for
]))(var_resolved_receiver
, var_anchor
, ((val
*)NULL
), var_mmodule
, 0); /* resolve_for on <var_resolved_receiver:nullable Object(MClassType)>*/
994 var_resolved_receiver
= var120
;
998 var121
= nit___nit__MParameterType___MType__lookup_bound(self
, var_mmodule
, var_resolved_receiver
);
1000 var_verbatim_bound
= var121
;
1002 var122
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(var_verbatim_bound
->class->vft
[COLOR_nit__model__MType__resolve_for
]))(var_verbatim_bound
, var_mtype
, var_anchor
, var_mmodule
, var_cleanup_virtual
); /* resolve_for on <var_verbatim_bound:MType>*/
1004 var_res123
= var122
;
1010 /* method model#MParameterType#can_resolve_for for (self: MParameterType, MType, nullable MClassType, MModule): Bool */
1011 short int nit___nit__MParameterType___MType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1012 short int var
/* : Bool */;
1013 val
* var_mtype
/* var mtype: MType */;
1014 val
* var_anchor
/* var anchor: nullable MClassType */;
1015 val
* var_mmodule
/* var mmodule: MModule */;
1016 short int var1
/* : Bool */;
1017 short int var2
/* : Bool */;
1018 short int var3
/* : Bool */;
1019 val
* var_other
/* var other: nullable Object */;
1020 short int var5
/* : Bool */;
1021 short int var6
/* : Bool */;
1022 val
* var7
/* : MType */;
1023 val
* var8
/* : Set[MClassDef] */;
1024 val
* var9
/* : MClass */;
1025 val
* var11
/* : MClass */;
1026 val
* var12
/* : MClassDef */;
1027 val
* var14
/* : MClassDef */;
1028 short int var15
/* : Bool */;
1033 var1
= ((short int(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nit__model__MType__need_anchor
]))(var_mtype
); /* need_anchor on <var_mtype:MType>*/
1036 if (var_anchor
== NULL
) {
1037 var2
= 0; /* is null */
1039 var2
= 1; /* arg is null and recv is not */
1042 { /* Inline kernel#Object#!= (var_anchor,((val*)NULL)) on <var_anchor:nullable MClassType> */
1043 var_other
= ((val
*)NULL
);
1045 var5
= ((short int(*)(val
* self
, val
* p0
))(var_anchor
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_anchor
, var_other
); /* == on <var_anchor:nullable MClassType(MClassType)>*/
1054 if (unlikely(!var2
)) {
1055 PRINT_ERROR("Runtime error: %s", "Assert failed");
1056 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1585);
1060 var7
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
))(var_mtype
->class->vft
[COLOR_nit__model__MType__anchor_to
]))(var_mtype
, var_mmodule
, var_anchor
); /* anchor_to on <var_mtype:MType>*/
1066 var8
= ((val
*(*)(val
* self
, val
* p0
))(var_mtype
->class->vft
[COLOR_nit__model__MType__collect_mclassdefs
]))(var_mtype
, var_mmodule
); /* collect_mclassdefs on <var_mtype:MType>*/
1069 { /* Inline model#MParameterType#mclass (self) on <self:MParameterType> */
1070 var11
= self
->attrs
[COLOR_nit__model__MParameterType___mclass
].val
; /* _mclass on <self:MParameterType> */
1071 if (unlikely(var11
== NULL
)) {
1072 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
1073 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1472);
1077 RET_LABEL10
:(void)0;
1081 { /* Inline model#MClass#intro (var9) on <var9:MClass> */
1082 var14
= var9
->attrs
[COLOR_nit__model__MClass___intro
].val
; /* _intro on <var9:MClass> */
1083 if (unlikely(var14
== NULL
)) {
1084 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro");
1085 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 460);
1089 RET_LABEL13
:(void)0;
1093 var15
= ((short int(*)(val
* self
, val
* p0
))((((long)var8
&3)?class_info
[((long)var8
&3)]:var8
->class)->vft
[COLOR_standard__abstract_collection__Collection__has
]))(var8
, var12
); /* has on <var8:Set[MClassDef]>*/
1100 /* method model#MParameterType#init for (self: MParameterType) */
1101 void nit___nit__MParameterType___standard__kernel__Object__init(val
* self
) {
1103 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nit___nit__MParameterType___standard__kernel__Object__init
]))(self
); /* init on <self:MParameterType>*/
1107 /* method model#MProxyType#mtype for (self: MProxyType): MType */
1108 val
* nit___nit__MProxyType___mtype(val
* self
) {
1109 val
* var
/* : MType */;
1110 val
* var1
/* : MType */;
1111 var1
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1112 if (unlikely(var1
== NULL
)) {
1113 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1114 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1121 /* method model#MProxyType#mtype= for (self: MProxyType, MType) */
1122 void nit___nit__MProxyType___mtype_61d(val
* self
, val
* p0
) {
1123 self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
= p0
; /* _mtype on <self:MProxyType> */
1126 /* method model#MProxyType#model for (self: MProxyType): Model */
1127 val
* nit___nit__MProxyType___nit__model_base__MEntity__model(val
* self
) {
1128 val
* var
/* : Model */;
1129 val
* var1
/* : MType */;
1130 val
* var3
/* : MType */;
1131 val
* var4
/* : Model */;
1133 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1134 var3
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1135 if (unlikely(var3
== NULL
)) {
1136 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1137 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1145 var4
= ((val
*(*)(val
* self
))(var1
->class->vft
[COLOR_nit__model_base__MEntity__model
]))(var1
); /* model on <var1:MType>*/
1152 /* method model#MProxyType#need_anchor for (self: MProxyType): Bool */
1153 short int nit___nit__MProxyType___MType__need_anchor(val
* self
) {
1154 short int var
/* : Bool */;
1155 val
* var1
/* : MType */;
1156 val
* var3
/* : MType */;
1157 short int var4
/* : Bool */;
1159 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1160 var3
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1161 if (unlikely(var3
== NULL
)) {
1162 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1163 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1171 var4
= ((short int(*)(val
* self
))(var1
->class->vft
[COLOR_nit__model__MType__need_anchor
]))(var1
); /* need_anchor on <var1:MType>*/
1178 /* method model#MProxyType#as_nullable for (self: MProxyType): MType */
1179 val
* nit___nit__MProxyType___MType__as_nullable(val
* self
) {
1180 val
* var
/* : MType */;
1181 val
* var1
/* : MType */;
1182 val
* var3
/* : MType */;
1183 val
* var4
/* : MType */;
1185 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1186 var3
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1187 if (unlikely(var3
== NULL
)) {
1188 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1189 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1197 var4
= ((val
*(*)(val
* self
))(var1
->class->vft
[COLOR_nit__model__MType__as_nullable
]))(var1
); /* as_nullable on <var1:MType>*/
1204 /* method model#MProxyType#as_notnull for (self: MProxyType): MType */
1205 val
* nit___nit__MProxyType___MType__as_notnull(val
* self
) {
1206 val
* var
/* : MType */;
1207 val
* var1
/* : MType */;
1208 val
* var3
/* : MType */;
1209 val
* var4
/* : MType */;
1211 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1212 var3
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1213 if (unlikely(var3
== NULL
)) {
1214 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1215 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1223 var4
= ((val
*(*)(val
* self
))(var1
->class->vft
[COLOR_nit__model__MType__as_notnull
]))(var1
); /* as_notnull on <var1:MType>*/
1230 /* method model#MProxyType#undecorate for (self: MProxyType): MType */
1231 val
* nit___nit__MProxyType___MType__undecorate(val
* self
) {
1232 val
* var
/* : MType */;
1233 val
* var1
/* : MType */;
1234 val
* var3
/* : MType */;
1235 val
* var4
/* : MType */;
1237 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1238 var3
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1239 if (unlikely(var3
== NULL
)) {
1240 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1241 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1249 var4
= ((val
*(*)(val
* self
))(var1
->class->vft
[COLOR_nit__model__MType__undecorate
]))(var1
); /* undecorate on <var1:MType>*/
1256 /* method model#MProxyType#resolve_for for (self: MProxyType, MType, nullable MClassType, MModule, Bool): MType */
1257 val
* nit___nit__MProxyType___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
1258 val
* var
/* : MType */;
1259 val
* var_mtype
/* var mtype: MType */;
1260 val
* var_anchor
/* var anchor: nullable MClassType */;
1261 val
* var_mmodule
/* var mmodule: MModule */;
1262 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
1263 val
* var1
/* : MType */;
1264 val
* var3
/* : MType */;
1265 val
* var4
/* : MType */;
1266 val
* var_res
/* var res: MType */;
1270 var_cleanup_virtual
= p3
;
1272 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1273 var3
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1274 if (unlikely(var3
== NULL
)) {
1275 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1276 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1284 var4
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(var1
->class->vft
[COLOR_nit__model__MType__resolve_for
]))(var1
, var_mtype
, var_anchor
, var_mmodule
, var_cleanup_virtual
); /* resolve_for on <var1:MType>*/
1292 /* method model#MProxyType#can_resolve_for for (self: MProxyType, MType, nullable MClassType, MModule): Bool */
1293 short int nit___nit__MProxyType___MType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1294 short int var
/* : Bool */;
1295 val
* var_mtype
/* var mtype: MType */;
1296 val
* var_anchor
/* var anchor: nullable MClassType */;
1297 val
* var_mmodule
/* var mmodule: MModule */;
1298 val
* var1
/* : MType */;
1299 val
* var3
/* : MType */;
1300 short int var4
/* : Bool */;
1305 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1306 var3
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1307 if (unlikely(var3
== NULL
)) {
1308 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1309 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1317 var4
= ((short int(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
))(var1
->class->vft
[COLOR_nit__model__MType__can_resolve_for
]))(var1
, var_mtype
, var_anchor
, var_mmodule
); /* can_resolve_for on <var1:MType>*/
1324 /* method model#MProxyType#lookup_fixed for (self: MProxyType, MModule, MType): MType */
1325 val
* nit___nit__MProxyType___MType__lookup_fixed(val
* self
, val
* p0
, val
* p1
) {
1326 val
* var
/* : MType */;
1327 val
* var_mmodule
/* var mmodule: MModule */;
1328 val
* var_resolved_receiver
/* var resolved_receiver: MType */;
1329 val
* var1
/* : MType */;
1330 val
* var3
/* : MType */;
1331 val
* var4
/* : MType */;
1332 val
* var_t
/* var t: MType */;
1334 var_resolved_receiver
= p1
;
1336 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1337 var3
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1338 if (unlikely(var3
== NULL
)) {
1339 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1340 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1348 var4
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
))(var1
->class->vft
[COLOR_nit__model__MType__lookup_fixed
]))(var1
, var_mmodule
, var_resolved_receiver
); /* lookup_fixed on <var1:MType>*/
1356 /* method model#MProxyType#length for (self: MProxyType): Int */
1357 long nit___nit__MProxyType___MType__length(val
* self
) {
1358 long var
/* : Int */;
1359 val
* var1
/* : MType */;
1360 val
* var3
/* : MType */;
1361 long var4
/* : Int */;
1363 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1364 var3
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1365 if (unlikely(var3
== NULL
)) {
1366 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1367 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1375 var4
= ((long(*)(val
* self
))(var1
->class->vft
[COLOR_nit__model__MType__length
]))(var1
); /* length on <var1:MType>*/
1382 /* method model#MProxyType#collect_mclassdefs for (self: MProxyType, MModule): Set[MClassDef] */
1383 val
* nit___nit__MProxyType___MType__collect_mclassdefs(val
* self
, val
* p0
) {
1384 val
* var
/* : Set[MClassDef] */;
1385 val
* var_mmodule
/* var mmodule: MModule */;
1386 short int var1
/* : Bool */;
1387 short int var2
/* : Bool */;
1388 val
* var3
/* : MType */;
1389 val
* var5
/* : MType */;
1390 val
* var6
/* : Set[MClassDef] */;
1393 var1
= nit___nit__MProxyType___MType__need_anchor(self
);
1396 if (unlikely(!var2
)) {
1397 PRINT_ERROR("Runtime error: %s", "Assert failed");
1398 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1629);
1402 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1403 var5
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1404 if (unlikely(var5
== NULL
)) {
1405 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1406 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1414 var6
= ((val
*(*)(val
* self
, val
* p0
))(var3
->class->vft
[COLOR_nit__model__MType__collect_mclassdefs
]))(var3
, var_mmodule
); /* collect_mclassdefs on <var3:MType>*/
1421 /* method model#MProxyType#collect_mclasses for (self: MProxyType, MModule): Set[MClass] */
1422 val
* nit___nit__MProxyType___MType__collect_mclasses(val
* self
, val
* p0
) {
1423 val
* var
/* : Set[MClass] */;
1424 val
* var_mmodule
/* var mmodule: MModule */;
1425 short int var1
/* : Bool */;
1426 short int var2
/* : Bool */;
1427 val
* var3
/* : MType */;
1428 val
* var5
/* : MType */;
1429 val
* var6
/* : Set[MClass] */;
1432 var1
= nit___nit__MProxyType___MType__need_anchor(self
);
1435 if (unlikely(!var2
)) {
1436 PRINT_ERROR("Runtime error: %s", "Assert failed");
1437 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1635);
1441 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1442 var5
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1443 if (unlikely(var5
== NULL
)) {
1444 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1445 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1453 var6
= ((val
*(*)(val
* self
, val
* p0
))(var3
->class->vft
[COLOR_nit__model__MType__collect_mclasses
]))(var3
, var_mmodule
); /* collect_mclasses on <var3:MType>*/
1460 /* method model#MProxyType#collect_mtypes for (self: MProxyType, MModule): Set[MClassType] */
1461 val
* nit___nit__MProxyType___MType__collect_mtypes(val
* self
, val
* p0
) {
1462 val
* var
/* : Set[MClassType] */;
1463 val
* var_mmodule
/* var mmodule: MModule */;
1464 short int var1
/* : Bool */;
1465 short int var2
/* : Bool */;
1466 val
* var3
/* : MType */;
1467 val
* var5
/* : MType */;
1468 val
* var6
/* : Set[MClassType] */;
1471 var1
= nit___nit__MProxyType___MType__need_anchor(self
);
1474 if (unlikely(!var2
)) {
1475 PRINT_ERROR("Runtime error: %s", "Assert failed");
1476 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1641);
1480 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1481 var5
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1482 if (unlikely(var5
== NULL
)) {
1483 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1484 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1492 var6
= ((val
*(*)(val
* self
, val
* p0
))(var3
->class->vft
[COLOR_nit__model__MType__collect_mtypes
]))(var3
, var_mmodule
); /* collect_mtypes on <var3:MType>*/
1499 /* method model#MProxyType#init for (self: MProxyType) */
1500 void nit___nit__MProxyType___standard__kernel__Object__init(val
* self
) {
1502 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nit___nit__MProxyType___standard__kernel__Object__init
]))(self
); /* init on <self:MProxyType>*/
1506 /* method model#MNullableType#init for (self: MNullableType) */
1507 void nit___nit__MNullableType___standard__kernel__Object__init(val
* self
) {
1508 val
* var
/* : NativeArray[String] */;
1509 static val
* varonce
;
1510 static val
* varonce1
;
1511 val
* var2
/* : String */;
1512 char* var3
/* : NativeString */;
1513 val
* var4
/* : FlatString */;
1514 val
* var5
/* : MType */;
1515 val
* var7
/* : MType */;
1516 val
* var8
/* : String */;
1517 val
* var9
/* : String */;
1519 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nit___nit__MNullableType___standard__kernel__Object__init
]))(self
); /* init on <self:MNullableType>*/
1521 if (unlikely(varonce
==NULL
)) {
1522 var
= NEW_standard__NativeArray(2l, &type_standard__NativeArray__standard__String
);
1523 if (likely(varonce1
!=NULL
)) {
1527 var4
= standard___standard__NativeString___to_s_with_length(var3
, 9l);
1531 ((struct instance_standard__NativeArray
*)var
)->values
[0]=var2
;
1537 { /* Inline model#MProxyType#mtype (self) on <self:MNullableType> */
1538 var7
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MNullableType> */
1539 if (unlikely(var7
== NULL
)) {
1540 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1541 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1549 var8
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_standard__string__Object__to_s
]))(var5
); /* to_s on <var5:MType>*/
1551 ((struct instance_standard__NativeArray
*)var
)->values
[1]=var8
;
1553 var9
= ((val
*(*)(val
* self
))(var
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var
); /* native_to_s on <var:NativeArray[String]>*/
1557 { /* Inline model#MNullableType#to_s= (self,var9) on <self:MNullableType> */
1558 self
->attrs
[COLOR_nit__model__MNullableType___to_s
].val
= var9
; /* _to_s on <self:MNullableType> */
1559 RET_LABEL10
:(void)0;
1564 /* method model#MNullableType#to_s for (self: MNullableType): String */
1565 val
* nit___nit__MNullableType___standard__string__Object__to_s(val
* self
) {
1566 val
* var
/* : String */;
1567 val
* var1
/* : String */;
1568 var1
= self
->attrs
[COLOR_nit__model__MNullableType___to_s
].val
; /* _to_s on <self:MNullableType> */
1569 if (unlikely(var1
== NULL
)) {
1570 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _to_s");
1571 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1655);
1578 /* method model#MNullableType#to_s= for (self: MNullableType, String) */
1579 void nit___nit__MNullableType___to_s_61d(val
* self
, val
* p0
) {
1580 self
->attrs
[COLOR_nit__model__MNullableType___to_s
].val
= p0
; /* _to_s on <self:MNullableType> */
1583 /* method model#MNullableType#full_name for (self: MNullableType): String */
1584 val
* nit___nit__MNullableType___nit__model_base__MEntity__full_name(val
* self
) {
1585 val
* var
/* : String */;
1586 short int var1
/* : Bool */;
1587 val
* var2
/* : String */;
1588 val
* var3
/* : String */;
1589 val
* var5
/* : NativeArray[String] */;
1590 static val
* varonce
;
1591 static val
* varonce6
;
1592 val
* var7
/* : String */;
1593 char* var8
/* : NativeString */;
1594 val
* var9
/* : FlatString */;
1595 val
* var10
/* : MType */;
1596 val
* var12
/* : MType */;
1597 val
* var13
/* : String */;
1598 val
* var14
/* : String */;
1599 var1
= self
->attrs
[COLOR_nit__model__MNullableType___full_name
].val
!= NULL
; /* _full_name on <self:MNullableType> */
1601 var2
= self
->attrs
[COLOR_nit__model__MNullableType___full_name
].val
; /* _full_name on <self:MNullableType> */
1602 if (unlikely(var2
== NULL
)) {
1603 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _full_name");
1604 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1657);
1609 if (unlikely(varonce
==NULL
)) {
1610 var5
= NEW_standard__NativeArray(2l, &type_standard__NativeArray__standard__String
);
1611 if (likely(varonce6
!=NULL
)) {
1615 var9
= standard___standard__NativeString___to_s_with_length(var8
, 9l);
1619 ((struct instance_standard__NativeArray
*)var5
)->values
[0]=var7
;
1625 { /* Inline model#MProxyType#mtype (self) on <self:MNullableType> */
1626 var12
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MNullableType> */
1627 if (unlikely(var12
== NULL
)) {
1628 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1629 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1633 RET_LABEL11
:(void)0;
1637 var13
= ((val
*(*)(val
* self
))(var10
->class->vft
[COLOR_nit__model_base__MEntity__full_name
]))(var10
); /* full_name on <var10:MType>*/
1639 ((struct instance_standard__NativeArray
*)var5
)->values
[1]=var13
;
1641 var14
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var5
); /* native_to_s on <var5:NativeArray[String]>*/
1648 self
->attrs
[COLOR_nit__model__MNullableType___full_name
].val
= var3
; /* _full_name on <self:MNullableType> */
1655 /* method model#MNullableType#c_name for (self: MNullableType): String */
1656 val
* nit___nit__MNullableType___nit__model_base__MEntity__c_name(val
* self
) {
1657 val
* var
/* : String */;
1658 short int var1
/* : Bool */;
1659 val
* var2
/* : String */;
1660 val
* var3
/* : String */;
1661 val
* var5
/* : NativeArray[String] */;
1662 static val
* varonce
;
1663 static val
* varonce6
;
1664 val
* var7
/* : String */;
1665 char* var8
/* : NativeString */;
1666 val
* var9
/* : FlatString */;
1667 val
* var10
/* : MType */;
1668 val
* var12
/* : MType */;
1669 val
* var13
/* : String */;
1670 val
* var14
/* : String */;
1671 var1
= self
->attrs
[COLOR_nit__model__MNullableType___c_name
].val
!= NULL
; /* _c_name on <self:MNullableType> */
1673 var2
= self
->attrs
[COLOR_nit__model__MNullableType___c_name
].val
; /* _c_name on <self:MNullableType> */
1674 if (unlikely(var2
== NULL
)) {
1675 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _c_name");
1676 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1659);
1681 if (unlikely(varonce
==NULL
)) {
1682 var5
= NEW_standard__NativeArray(2l, &type_standard__NativeArray__standard__String
);
1683 if (likely(varonce6
!=NULL
)) {
1686 var8
= "nullable__";
1687 var9
= standard___standard__NativeString___to_s_with_length(var8
, 10l);
1691 ((struct instance_standard__NativeArray
*)var5
)->values
[0]=var7
;
1697 { /* Inline model#MProxyType#mtype (self) on <self:MNullableType> */
1698 var12
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MNullableType> */
1699 if (unlikely(var12
== NULL
)) {
1700 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1701 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1705 RET_LABEL11
:(void)0;
1709 var13
= ((val
*(*)(val
* self
))(var10
->class->vft
[COLOR_nit__model_base__MEntity__c_name
]))(var10
); /* c_name on <var10:MType>*/
1711 ((struct instance_standard__NativeArray
*)var5
)->values
[1]=var13
;
1713 var14
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var5
); /* native_to_s on <var5:NativeArray[String]>*/
1720 self
->attrs
[COLOR_nit__model__MNullableType___c_name
].val
= var3
; /* _c_name on <self:MNullableType> */
1727 /* method model#MNullableType#as_nullable for (self: MNullableType): MType */
1728 val
* nit___nit__MNullableType___MType__as_nullable(val
* self
) {
1729 val
* var
/* : MType */;
1735 /* method model#MNullableType#resolve_for for (self: MNullableType, MType, nullable MClassType, MModule, Bool): MType */
1736 val
* nit___nit__MNullableType___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
1737 val
* var
/* : MType */;
1738 val
* var_mtype
/* var mtype: MType */;
1739 val
* var_anchor
/* var anchor: nullable MClassType */;
1740 val
* var_mmodule
/* var mmodule: MModule */;
1741 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
1742 val
* var1
/* : MType */;
1743 val
* var_res
/* var res: MType */;
1744 val
* var2
/* : MType */;
1748 var_cleanup_virtual
= p3
;
1750 var1
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(self
->class->vft
[COLOR_nit___nit__MNullableType___MType__resolve_for
]))(self
, p0
, p1
, p2
, p3
); /* resolve_for on <self:MNullableType>*/
1754 var2
= ((val
*(*)(val
* self
))(var_res
->class->vft
[COLOR_nit__model__MType__as_nullable
]))(var_res
); /* as_nullable on <var_res:MType>*/
1761 /* method model#MNullableType#lookup_fixed for (self: MNullableType, MModule, MType): MType */
1762 val
* nit___nit__MNullableType___MType__lookup_fixed(val
* self
, val
* p0
, val
* p1
) {
1763 val
* var
/* : MType */;
1764 val
* var_mmodule
/* var mmodule: MModule */;
1765 val
* var_resolved_receiver
/* var resolved_receiver: MType */;
1766 val
* var1
/* : MType */;
1767 val
* var_t
/* var t: MType */;
1768 val
* var2
/* : MType */;
1769 val
* var4
/* : MType */;
1770 short int var5
/* : Bool */;
1771 val
* var_other
/* var other: nullable Object */;
1772 short int var7
/* : Bool */;
1773 short int var9
/* : Bool */;
1774 val
* var10
/* : MType */;
1776 var_resolved_receiver
= p1
;
1778 var1
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
))(self
->class->vft
[COLOR_nit___nit__MNullableType___MType__lookup_fixed
]))(self
, p0
, p1
); /* lookup_fixed on <self:MNullableType>*/
1782 { /* Inline model#MProxyType#mtype (self) on <self:MNullableType> */
1783 var4
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MNullableType> */
1784 if (unlikely(var4
== NULL
)) {
1785 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1786 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1794 { /* Inline kernel#Object#== (var_t,var2) on <var_t:MType> */
1797 { /* Inline kernel#Object#is_same_instance (var_t,var_other) on <var_t:MType> */
1798 var9
= var_t
== var_other
;
1815 var10
= ((val
*(*)(val
* self
))(var_t
->class->vft
[COLOR_nit__model__MType__as_nullable
]))(var_t
); /* as_nullable on <var_t:MType>*/
1822 /* method model#MNotNullType#to_s for (self: MNotNullType): String */
1823 val
* nit___nit__MNotNullType___standard__string__Object__to_s(val
* self
) {
1824 val
* var
/* : String */;
1825 val
* var1
/* : NativeArray[String] */;
1826 static val
* varonce
;
1827 static val
* varonce2
;
1828 val
* var3
/* : String */;
1829 char* var4
/* : NativeString */;
1830 val
* var5
/* : FlatString */;
1831 val
* var6
/* : MType */;
1832 val
* var8
/* : MType */;
1833 val
* var9
/* : String */;
1834 val
* var10
/* : String */;
1835 if (unlikely(varonce
==NULL
)) {
1836 var1
= NEW_standard__NativeArray(2l, &type_standard__NativeArray__standard__String
);
1837 if (likely(varonce2
!=NULL
)) {
1841 var5
= standard___standard__NativeString___to_s_with_length(var4
, 9l);
1845 ((struct instance_standard__NativeArray
*)var1
)->values
[0]=var3
;
1851 { /* Inline model#MProxyType#mtype (self) on <self:MNotNullType> */
1852 var8
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MNotNullType> */
1853 if (unlikely(var8
== NULL
)) {
1854 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1855 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1863 var9
= ((val
*(*)(val
* self
))(var6
->class->vft
[COLOR_standard__string__Object__to_s
]))(var6
); /* to_s on <var6:MType>*/
1865 ((struct instance_standard__NativeArray
*)var1
)->values
[1]=var9
;
1867 var10
= ((val
*(*)(val
* self
))(var1
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var1
); /* native_to_s on <var1:NativeArray[String]>*/
1875 /* method model#MNotNullType#full_name for (self: MNotNullType): String */
1876 val
* nit___nit__MNotNullType___nit__model_base__MEntity__full_name(val
* self
) {
1877 val
* var
/* : String */;
1878 short int var1
/* : Bool */;
1879 val
* var2
/* : String */;
1880 val
* var3
/* : String */;
1881 val
* var5
/* : NativeArray[String] */;
1882 static val
* varonce
;
1883 static val
* varonce6
;
1884 val
* var7
/* : String */;
1885 char* var8
/* : NativeString */;
1886 val
* var9
/* : FlatString */;
1887 val
* var10
/* : MType */;
1888 val
* var12
/* : MType */;
1889 val
* var13
/* : String */;
1890 val
* var14
/* : String */;
1891 var1
= self
->attrs
[COLOR_nit__model__MNotNullType___full_name
].val
!= NULL
; /* _full_name on <self:MNotNullType> */
1893 var2
= self
->attrs
[COLOR_nit__model__MNotNullType___full_name
].val
; /* _full_name on <self:MNotNullType> */
1894 if (unlikely(var2
== NULL
)) {
1895 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _full_name");
1896 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1684);
1901 if (unlikely(varonce
==NULL
)) {
1902 var5
= NEW_standard__NativeArray(2l, &type_standard__NativeArray__standard__String
);
1903 if (likely(varonce6
!=NULL
)) {
1907 var9
= standard___standard__NativeString___to_s_with_length(var8
, 9l);
1911 ((struct instance_standard__NativeArray
*)var5
)->values
[0]=var7
;
1917 { /* Inline model#MProxyType#mtype (self) on <self:MNotNullType> */
1918 var12
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MNotNullType> */
1919 if (unlikely(var12
== NULL
)) {
1920 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1921 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1925 RET_LABEL11
:(void)0;
1929 var13
= ((val
*(*)(val
* self
))(var10
->class->vft
[COLOR_nit__model_base__MEntity__full_name
]))(var10
); /* full_name on <var10:MType>*/
1931 ((struct instance_standard__NativeArray
*)var5
)->values
[1]=var13
;
1933 var14
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var5
); /* native_to_s on <var5:NativeArray[String]>*/
1940 self
->attrs
[COLOR_nit__model__MNotNullType___full_name
].val
= var3
; /* _full_name on <self:MNotNullType> */
1947 /* method model#MNotNullType#c_name for (self: MNotNullType): String */
1948 val
* nit___nit__MNotNullType___nit__model_base__MEntity__c_name(val
* self
) {
1949 val
* var
/* : String */;
1950 short int var1
/* : Bool */;
1951 val
* var2
/* : String */;
1952 val
* var3
/* : String */;
1953 val
* var5
/* : NativeArray[String] */;
1954 static val
* varonce
;
1955 static val
* varonce6
;
1956 val
* var7
/* : String */;
1957 char* var8
/* : NativeString */;
1958 val
* var9
/* : FlatString */;
1959 val
* var10
/* : MType */;
1960 val
* var12
/* : MType */;
1961 val
* var13
/* : String */;
1962 val
* var14
/* : String */;
1963 var1
= self
->attrs
[COLOR_nit__model__MNotNullType___c_name
].val
!= NULL
; /* _c_name on <self:MNotNullType> */
1965 var2
= self
->attrs
[COLOR_nit__model__MNotNullType___c_name
].val
; /* _c_name on <self:MNotNullType> */
1966 if (unlikely(var2
== NULL
)) {
1967 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _c_name");
1968 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1685);
1973 if (unlikely(varonce
==NULL
)) {
1974 var5
= NEW_standard__NativeArray(2l, &type_standard__NativeArray__standard__String
);
1975 if (likely(varonce6
!=NULL
)) {
1979 var9
= standard___standard__NativeString___to_s_with_length(var8
, 9l);
1983 ((struct instance_standard__NativeArray
*)var5
)->values
[0]=var7
;
1989 { /* Inline model#MProxyType#mtype (self) on <self:MNotNullType> */
1990 var12
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MNotNullType> */
1991 if (unlikely(var12
== NULL
)) {
1992 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1993 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
1997 RET_LABEL11
:(void)0;
2001 var13
= ((val
*(*)(val
* self
))(var10
->class->vft
[COLOR_nit__model_base__MEntity__c_name
]))(var10
); /* c_name on <var10:MType>*/
2003 ((struct instance_standard__NativeArray
*)var5
)->values
[1]=var13
;
2005 var14
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var5
); /* native_to_s on <var5:NativeArray[String]>*/
2012 self
->attrs
[COLOR_nit__model__MNotNullType___c_name
].val
= var3
; /* _c_name on <self:MNotNullType> */
2019 /* method model#MNotNullType#as_notnull for (self: MNotNullType): MType */
2020 val
* nit___nit__MNotNullType___MType__as_notnull(val
* self
) {
2021 val
* var
/* : MType */;
2027 /* method model#MNotNullType#resolve_for for (self: MNotNullType, MType, nullable MClassType, MModule, Bool): MType */
2028 val
* nit___nit__MNotNullType___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
2029 val
* var
/* : MType */;
2030 val
* var_mtype
/* var mtype: MType */;
2031 val
* var_anchor
/* var anchor: nullable MClassType */;
2032 val
* var_mmodule
/* var mmodule: MModule */;
2033 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
2034 val
* var1
/* : MType */;
2035 val
* var_res
/* var res: MType */;
2036 val
* var2
/* : MType */;
2040 var_cleanup_virtual
= p3
;
2042 var1
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(self
->class->vft
[COLOR_nit___nit__MNotNullType___MType__resolve_for
]))(self
, p0
, p1
, p2
, p3
); /* resolve_for on <self:MNotNullType>*/
2046 var2
= ((val
*(*)(val
* self
))(var_res
->class->vft
[COLOR_nit__model__MType__as_notnull
]))(var_res
); /* as_notnull on <var_res:MType>*/
2053 /* method model#MNotNullType#lookup_fixed for (self: MNotNullType, MModule, MType): MType */
2054 val
* nit___nit__MNotNullType___MType__lookup_fixed(val
* self
, val
* p0
, val
* p1
) {
2055 val
* var
/* : MType */;
2056 val
* var_mmodule
/* var mmodule: MModule */;
2057 val
* var_resolved_receiver
/* var resolved_receiver: MType */;
2058 val
* var1
/* : MType */;
2059 val
* var_t
/* var t: MType */;
2060 val
* var2
/* : MType */;
2061 val
* var4
/* : MType */;
2062 short int var5
/* : Bool */;
2063 val
* var_other
/* var other: nullable Object */;
2064 short int var7
/* : Bool */;
2065 short int var9
/* : Bool */;
2066 val
* var10
/* : MType */;
2068 var_resolved_receiver
= p1
;
2070 var1
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
))(self
->class->vft
[COLOR_nit___nit__MNotNullType___MType__lookup_fixed
]))(self
, p0
, p1
); /* lookup_fixed on <self:MNotNullType>*/
2074 { /* Inline model#MProxyType#mtype (self) on <self:MNotNullType> */
2075 var4
= self
->attrs
[COLOR_nit__model__MProxyType___mtype
].val
; /* _mtype on <self:MNotNullType> */
2076 if (unlikely(var4
== NULL
)) {
2077 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
2078 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1598);
2086 { /* Inline kernel#Object#== (var_t,var2) on <var_t:MType> */
2089 { /* Inline kernel#Object#is_same_instance (var_t,var_other) on <var_t:MType> */
2090 var9
= var_t
== var_other
;
2107 var10
= ((val
*(*)(val
* self
))(var_t
->class->vft
[COLOR_nit__model__MType__as_notnull
]))(var_t
); /* as_notnull on <var_t:MType>*/
2114 /* method model#MNullType#model for (self: MNullType): Model */
2115 val
* nit___nit__MNullType___nit__model_base__MEntity__model(val
* self
) {
2116 val
* var
/* : Model */;
2117 val
* var1
/* : Model */;
2118 var1
= self
->attrs
[COLOR_nit__model__MNullType___model
].val
; /* _model on <self:MNullType> */
2119 if (unlikely(var1
== NULL
)) {
2120 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _model");
2121 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1709);
2128 /* method model#MNullType#model= for (self: MNullType, Model) */
2129 void nit___nit__MNullType___model_61d(val
* self
, val
* p0
) {
2130 self
->attrs
[COLOR_nit__model__MNullType___model
].val
= p0
; /* _model on <self:MNullType> */
2133 /* method model#MNullType#to_s for (self: MNullType): String */
2134 val
* nit___nit__MNullType___standard__string__Object__to_s(val
* self
) {
2135 val
* var
/* : String */;
2136 static val
* varonce
;
2137 val
* var1
/* : String */;
2138 char* var2
/* : NativeString */;
2139 val
* var3
/* : FlatString */;
2140 if (likely(varonce
!=NULL
)) {
2144 var3
= standard___standard__NativeString___to_s_with_length(var2
, 4l);
2153 /* method model#MNullType#full_name for (self: MNullType): String */
2154 val
* nit___nit__MNullType___nit__model_base__MEntity__full_name(val
* self
) {
2155 val
* var
/* : String */;
2156 static val
* varonce
;
2157 val
* var1
/* : String */;
2158 char* var2
/* : NativeString */;
2159 val
* var3
/* : FlatString */;
2160 if (likely(varonce
!=NULL
)) {
2164 var3
= standard___standard__NativeString___to_s_with_length(var2
, 4l);
2173 /* method model#MNullType#c_name for (self: MNullType): String */
2174 val
* nit___nit__MNullType___nit__model_base__MEntity__c_name(val
* self
) {
2175 val
* var
/* : String */;
2176 static val
* varonce
;
2177 val
* var1
/* : String */;
2178 char* var2
/* : NativeString */;
2179 val
* var3
/* : FlatString */;
2180 if (likely(varonce
!=NULL
)) {
2184 var3
= standard___standard__NativeString___to_s_with_length(var2
, 4l);
2193 /* method model#MNullType#as_nullable for (self: MNullType): MType */
2194 val
* nit___nit__MNullType___MType__as_nullable(val
* self
) {
2195 val
* var
/* : MType */;
2201 /* method model#MNullType#as_notnull for (self: MNullType): MType */
2202 val
* nit___nit__MNullType___MType__as_notnull(val
* self
) {
2203 val
* var
/* : MType */;
2204 short int var1
/* : Bool */;
2205 val
* var2
/* : MType */;
2206 val
* var3
/* : MBottomType */;
2207 val
* var4
/* : Model */;
2208 val
* var6
/* : Model */;
2209 var1
= self
->attrs
[COLOR_nit__model__MNullType___as_notnull
].val
!= NULL
; /* _as_notnull on <self:MNullType> */
2211 var2
= self
->attrs
[COLOR_nit__model__MNullType___as_notnull
].val
; /* _as_notnull on <self:MNullType> */
2212 if (unlikely(var2
== NULL
)) {
2213 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _as_notnull");
2214 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1715);
2218 var3
= NEW_nit__MBottomType(&type_nit__MBottomType
);
2220 { /* Inline model#MNullType#model (self) on <self:MNullType> */
2221 var6
= self
->attrs
[COLOR_nit__model__MNullType___model
].val
; /* _model on <self:MNullType> */
2222 if (unlikely(var6
== NULL
)) {
2223 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _model");
2224 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1709);
2232 ((void(*)(val
* self
, val
* p0
))(var3
->class->vft
[COLOR_nit__model__MBottomType__model_61d
]))(var3
, var4
); /* model= on <var3:MBottomType>*/
2235 ((void(*)(val
* self
))(var3
->class->vft
[COLOR_standard__kernel__Object__init
]))(var3
); /* init on <var3:MBottomType>*/
2237 self
->attrs
[COLOR_nit__model__MNullType___as_notnull
].val
= var3
; /* _as_notnull on <self:MNullType> */
2244 /* method model#MNullType#need_anchor for (self: MNullType): Bool */
2245 short int nit___nit__MNullType___MType__need_anchor(val
* self
) {
2246 short int var
/* : Bool */;
2252 /* method model#MNullType#resolve_for for (self: MNullType, MType, nullable MClassType, MModule, Bool): MType */
2253 val
* nit___nit__MNullType___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
2254 val
* var
/* : MType */;
2255 val
* var_mtype
/* var mtype: MType */;
2256 val
* var_anchor
/* var anchor: nullable MClassType */;
2257 val
* var_mmodule
/* var mmodule: MModule */;
2258 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
2262 var_cleanup_virtual
= p3
;
2268 /* method model#MNullType#can_resolve_for for (self: MNullType, MType, nullable MClassType, MModule): Bool */
2269 short int nit___nit__MNullType___MType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
2270 short int var
/* : Bool */;
2271 val
* var_mtype
/* var mtype: MType */;
2272 val
* var_anchor
/* var anchor: nullable MClassType */;
2273 val
* var_mmodule
/* var mmodule: MModule */;
2282 /* method model#MNullType#collect_mclassdefs for (self: MNullType, MModule): Set[MClassDef] */
2283 val
* nit___nit__MNullType___MType__collect_mclassdefs(val
* self
, val
* p0
) {
2284 val
* var
/* : Set[MClassDef] */;
2285 val
* var_mmodule
/* var mmodule: MModule */;
2286 val
* var1
/* : HashSet[MClassDef] */;
2288 var1
= NEW_standard__HashSet(&type_standard__HashSet__nit__MClassDef
);
2290 standard___standard__HashSet___standard__kernel__Object__init(var1
); /* Direct call hash_collection#HashSet#init on <var1:HashSet[MClassDef]>*/
2297 /* method model#MNullType#collect_mclasses for (self: MNullType, MModule): Set[MClass] */
2298 val
* nit___nit__MNullType___MType__collect_mclasses(val
* self
, val
* p0
) {
2299 val
* var
/* : Set[MClass] */;
2300 val
* var_mmodule
/* var mmodule: MModule */;
2301 val
* var1
/* : HashSet[MClass] */;
2303 var1
= NEW_standard__HashSet(&type_standard__HashSet__nit__MClass
);
2305 standard___standard__HashSet___standard__kernel__Object__init(var1
); /* Direct call hash_collection#HashSet#init on <var1:HashSet[MClass]>*/
2312 /* method model#MNullType#collect_mtypes for (self: MNullType, MModule): Set[MClassType] */
2313 val
* nit___nit__MNullType___MType__collect_mtypes(val
* self
, val
* p0
) {
2314 val
* var
/* : Set[MClassType] */;
2315 val
* var_mmodule
/* var mmodule: MModule */;
2316 val
* var1
/* : HashSet[MClassType] */;
2318 var1
= NEW_standard__HashSet(&type_standard__HashSet__nit__MClassType
);
2320 standard___standard__HashSet___standard__kernel__Object__init(var1
); /* Direct call hash_collection#HashSet#init on <var1:HashSet[MClassType]>*/
2327 /* method model#MNullType#init for (self: MNullType) */
2328 void nit___nit__MNullType___standard__kernel__Object__init(val
* self
) {
2330 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nit___nit__MNullType___standard__kernel__Object__init
]))(self
); /* init on <self:MNullType>*/
2334 /* method model#MBottomType#model for (self: MBottomType): Model */
2335 val
* nit___nit__MBottomType___nit__model_base__MEntity__model(val
* self
) {
2336 val
* var
/* : Model */;
2337 val
* var1
/* : Model */;
2338 var1
= self
->attrs
[COLOR_nit__model__MBottomType___model
].val
; /* _model on <self:MBottomType> */
2339 if (unlikely(var1
== NULL
)) {
2340 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _model");
2341 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1735);
2348 /* method model#MBottomType#model= for (self: MBottomType, Model) */
2349 void nit___nit__MBottomType___model_61d(val
* self
, val
* p0
) {
2350 self
->attrs
[COLOR_nit__model__MBottomType___model
].val
= p0
; /* _model on <self:MBottomType> */
2353 /* method model#MBottomType#to_s for (self: MBottomType): String */
2354 val
* nit___nit__MBottomType___standard__string__Object__to_s(val
* self
) {
2355 val
* var
/* : String */;
2356 static val
* varonce
;
2357 val
* var1
/* : String */;
2358 char* var2
/* : NativeString */;
2359 val
* var3
/* : FlatString */;
2360 if (likely(varonce
!=NULL
)) {
2364 var3
= standard___standard__NativeString___to_s_with_length(var2
, 6l);
2373 /* method model#MBottomType#full_name for (self: MBottomType): String */
2374 val
* nit___nit__MBottomType___nit__model_base__MEntity__full_name(val
* self
) {
2375 val
* var
/* : String */;
2376 static val
* varonce
;
2377 val
* var1
/* : String */;
2378 char* var2
/* : NativeString */;
2379 val
* var3
/* : FlatString */;
2380 if (likely(varonce
!=NULL
)) {
2384 var3
= standard___standard__NativeString___to_s_with_length(var2
, 6l);
2393 /* method model#MBottomType#c_name for (self: MBottomType): String */
2394 val
* nit___nit__MBottomType___nit__model_base__MEntity__c_name(val
* self
) {
2395 val
* var
/* : String */;
2396 static val
* varonce
;
2397 val
* var1
/* : String */;
2398 char* var2
/* : NativeString */;
2399 val
* var3
/* : FlatString */;
2400 if (likely(varonce
!=NULL
)) {
2404 var3
= standard___standard__NativeString___to_s_with_length(var2
, 6l);
2413 /* method model#MBottomType#as_nullable for (self: MBottomType): MType */
2414 val
* nit___nit__MBottomType___MType__as_nullable(val
* self
) {
2415 val
* var
/* : MType */;
2416 val
* var1
/* : Model */;
2417 val
* var3
/* : Model */;
2418 val
* var4
/* : MNullType */;
2419 val
* var6
/* : MNullType */;
2421 { /* Inline model#MBottomType#model (self) on <self:MBottomType> */
2422 var3
= self
->attrs
[COLOR_nit__model__MBottomType___model
].val
; /* _model on <self:MBottomType> */
2423 if (unlikely(var3
== NULL
)) {
2424 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _model");
2425 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1735);
2433 { /* Inline model#Model#null_type (var1) on <var1:Model> */
2434 var6
= var1
->attrs
[COLOR_nit__model__Model___null_type
].val
; /* _null_type on <var1:Model> */
2435 if (unlikely(var6
== NULL
)) {
2436 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _null_type");
2437 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 94);
2449 /* method model#MBottomType#as_notnull for (self: MBottomType): MType */
2450 val
* nit___nit__MBottomType___MType__as_notnull(val
* self
) {
2451 val
* var
/* : MType */;
2457 /* method model#MBottomType#need_anchor for (self: MBottomType): Bool */
2458 short int nit___nit__MBottomType___MType__need_anchor(val
* self
) {
2459 short int var
/* : Bool */;
2465 /* method model#MBottomType#resolve_for for (self: MBottomType, MType, nullable MClassType, MModule, Bool): MType */
2466 val
* nit___nit__MBottomType___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
2467 val
* var
/* : MType */;
2468 val
* var_mtype
/* var mtype: MType */;
2469 val
* var_anchor
/* var anchor: nullable MClassType */;
2470 val
* var_mmodule
/* var mmodule: MModule */;
2471 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
2475 var_cleanup_virtual
= p3
;
2481 /* method model#MBottomType#can_resolve_for for (self: MBottomType, MType, nullable MClassType, MModule): Bool */
2482 short int nit___nit__MBottomType___MType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
2483 short int var
/* : Bool */;
2484 val
* var_mtype
/* var mtype: MType */;
2485 val
* var_anchor
/* var anchor: nullable MClassType */;
2486 val
* var_mmodule
/* var mmodule: MModule */;
2495 /* method model#MBottomType#collect_mclassdefs for (self: MBottomType, MModule): Set[MClassDef] */
2496 val
* nit___nit__MBottomType___MType__collect_mclassdefs(val
* self
, val
* p0
) {
2497 val
* var
/* : Set[MClassDef] */;
2498 val
* var_mmodule
/* var mmodule: MModule */;
2499 val
* var1
/* : HashSet[MClassDef] */;
2501 var1
= NEW_standard__HashSet(&type_standard__HashSet__nit__MClassDef
);
2503 standard___standard__HashSet___standard__kernel__Object__init(var1
); /* Direct call hash_collection#HashSet#init on <var1:HashSet[MClassDef]>*/
2510 /* method model#MBottomType#collect_mclasses for (self: MBottomType, MModule): Set[MClass] */
2511 val
* nit___nit__MBottomType___MType__collect_mclasses(val
* self
, val
* p0
) {
2512 val
* var
/* : Set[MClass] */;
2513 val
* var_mmodule
/* var mmodule: MModule */;
2514 val
* var1
/* : HashSet[MClass] */;
2516 var1
= NEW_standard__HashSet(&type_standard__HashSet__nit__MClass
);
2518 standard___standard__HashSet___standard__kernel__Object__init(var1
); /* Direct call hash_collection#HashSet#init on <var1:HashSet[MClass]>*/
2525 /* method model#MBottomType#collect_mtypes for (self: MBottomType, MModule): Set[MClassType] */
2526 val
* nit___nit__MBottomType___MType__collect_mtypes(val
* self
, val
* p0
) {
2527 val
* var
/* : Set[MClassType] */;
2528 val
* var_mmodule
/* var mmodule: MModule */;
2529 val
* var1
/* : HashSet[MClassType] */;
2531 var1
= NEW_standard__HashSet(&type_standard__HashSet__nit__MClassType
);
2533 standard___standard__HashSet___standard__kernel__Object__init(var1
); /* Direct call hash_collection#HashSet#init on <var1:HashSet[MClassType]>*/
2540 /* method model#MBottomType#init for (self: MBottomType) */
2541 void nit___nit__MBottomType___standard__kernel__Object__init(val
* self
) {
2543 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nit___nit__MBottomType___standard__kernel__Object__init
]))(self
); /* init on <self:MBottomType>*/
2547 /* method model#MSignature#mparameters for (self: MSignature): Array[MParameter] */
2548 val
* nit___nit__MSignature___mparameters(val
* self
) {
2549 val
* var
/* : Array[MParameter] */;
2550 val
* var1
/* : Array[MParameter] */;
2551 var1
= self
->attrs
[COLOR_nit__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
2552 if (unlikely(var1
== NULL
)) {
2553 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
2554 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1756);
2561 /* method model#MSignature#mparameters= for (self: MSignature, Array[MParameter]) */
2562 void nit___nit__MSignature___mparameters_61d(val
* self
, val
* p0
) {
2563 self
->attrs
[COLOR_nit__model__MSignature___mparameters
].val
= p0
; /* _mparameters on <self:MSignature> */
2566 /* method model#MSignature#mparameter_by_name for (self: MSignature, String): nullable MParameter */
2567 val
* nit___nit__MSignature___mparameter_by_name(val
* self
, val
* p0
) {
2568 val
* var
/* : nullable MParameter */;
2569 val
* var_name
/* var name: String */;
2570 val
* var1
/* : Array[MParameter] */;
2571 val
* var3
/* : Array[MParameter] */;
2572 val
* var_
/* var : Array[MParameter] */;
2573 val
* var4
/* : ArrayIterator[nullable Object] */;
2574 val
* var_5
/* var : ArrayIterator[MParameter] */;
2575 short int var6
/* : Bool */;
2576 val
* var7
/* : nullable Object */;
2577 val
* var_p
/* var p: MParameter */;
2578 val
* var8
/* : String */;
2579 val
* var10
/* : String */;
2580 short int var11
/* : Bool */;
2583 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
2584 var3
= self
->attrs
[COLOR_nit__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
2585 if (unlikely(var3
== NULL
)) {
2586 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
2587 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1756);
2596 var4
= standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(var_
);
2601 var6
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(var_5
);
2605 var7
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(var_5
);
2609 { /* Inline model#MParameter#name (var_p) on <var_p:MParameter> */
2610 var10
= var_p
->attrs
[COLOR_nit__model__MParameter___name
].val
; /* _name on <var_p:MParameter> */
2611 if (unlikely(var10
== NULL
)) {
2612 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
2613 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1876);
2621 var11
= ((short int(*)(val
* self
, val
* p0
))(var8
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var8
, var_name
); /* == on <var8:String>*/
2629 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(var_5
); /* Direct call array#ArrayIterator#next on <var_5:ArrayIterator[MParameter]>*/
2635 BREAK_label
: (void)0;
2637 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__finish(var_5
); /* Direct call array#ArrayIterator#finish on <var_5:ArrayIterator[MParameter]>*/
2644 /* method model#MSignature#return_mtype for (self: MSignature): nullable MType */
2645 val
* nit___nit__MSignature___return_mtype(val
* self
) {
2646 val
* var
/* : nullable MType */;
2647 val
* var1
/* : nullable MType */;
2648 var1
= self
->attrs
[COLOR_nit__model__MSignature___return_mtype
].val
; /* _return_mtype on <self:MSignature> */
2653 /* method model#MSignature#return_mtype= for (self: MSignature, nullable MType) */
2654 void nit___nit__MSignature___return_mtype_61d(val
* self
, val
* p0
) {
2655 self
->attrs
[COLOR_nit__model__MSignature___return_mtype
].val
= p0
; /* _return_mtype on <self:MSignature> */
2658 /* method model#MSignature#length for (self: MSignature): Int */
2659 long nit___nit__MSignature___MType__length(val
* self
) {
2660 long var
/* : Int */;
2661 long var_res
/* var res: Int */;
2662 val
* var1
/* : nullable MType */;
2663 val
* var3
/* : nullable MType */;
2664 val
* var_t
/* var t: nullable MType */;
2665 short int var4
/* : Bool */;
2666 short int var5
/* : Bool */;
2667 val
* var_other
/* var other: nullable Object */;
2668 short int var7
/* : Bool */;
2669 short int var8
/* : Bool */;
2670 long var9
/* : Int */;
2671 long var10
/* : Int */;
2672 short int var12
/* : Bool */;
2675 const char* var_class_name
;
2676 long var13
/* : Int */;
2677 val
* var14
/* : Array[MParameter] */;
2678 val
* var16
/* : Array[MParameter] */;
2679 val
* var_
/* var : Array[MParameter] */;
2680 val
* var17
/* : ArrayIterator[nullable Object] */;
2681 val
* var_18
/* var : ArrayIterator[MParameter] */;
2682 short int var19
/* : Bool */;
2683 val
* var20
/* : nullable Object */;
2684 val
* var_p
/* var p: MParameter */;
2685 val
* var21
/* : MType */;
2686 val
* var23
/* : MType */;
2687 long var24
/* : Int */;
2688 long var25
/* : Int */;
2689 short int var27
/* : Bool */;
2692 const char* var_class_name30
;
2693 long var31
/* : Int */;
2696 { /* Inline model#MSignature#return_mtype (self) on <self:MSignature> */
2697 var3
= self
->attrs
[COLOR_nit__model__MSignature___return_mtype
].val
; /* _return_mtype on <self:MSignature> */
2703 if (var_t
== NULL
) {
2704 var4
= 0; /* is null */
2706 var4
= 1; /* arg is null and recv is not */
2709 { /* Inline kernel#Object#!= (var_t,((val*)NULL)) on <var_t:nullable MType> */
2710 var_other
= ((val
*)NULL
);
2712 var7
= ((short int(*)(val
* self
, val
* p0
))(var_t
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_t
, var_other
); /* == on <var_t:nullable MType(MType)>*/
2723 var9
= ((long(*)(val
* self
))(var_t
->class->vft
[COLOR_nit__model__MType__length
]))(var_t
); /* length on <var_t:nullable MType(MType)>*/
2726 { /* Inline kernel#Int#+ (var_res,var9) on <var_res:Int> */
2727 /* Covariant cast for argument 0 (i) <var9:Int> isa OTHER */
2728 /* <var9:Int> isa OTHER */
2729 var12
= 1; /* easy <var9:Int> isa OTHER*/
2730 if (unlikely(!var12
)) {
2731 var_class_name
= type_standard__Int
.name
;
2732 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
2733 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 537);
2736 var13
= var_res
+ var9
;
2739 RET_LABEL11
:(void)0;
2746 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
2747 var16
= self
->attrs
[COLOR_nit__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
2748 if (unlikely(var16
== NULL
)) {
2749 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
2750 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1756);
2754 RET_LABEL15
:(void)0;
2759 var17
= standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(var_
);
2764 var19
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(var_18
);
2768 var20
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(var_18
);
2772 { /* Inline model#MParameter#mtype (var_p) on <var_p:MParameter> */
2773 var23
= var_p
->attrs
[COLOR_nit__model__MParameter___mtype
].val
; /* _mtype on <var_p:MParameter> */
2774 if (unlikely(var23
== NULL
)) {
2775 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
2776 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1879);
2780 RET_LABEL22
:(void)0;
2784 var24
= ((long(*)(val
* self
))(var21
->class->vft
[COLOR_nit__model__MType__length
]))(var21
); /* length on <var21:MType>*/
2787 { /* Inline kernel#Int#+ (var_res,var24) on <var_res:Int> */
2788 /* Covariant cast for argument 0 (i) <var24:Int> isa OTHER */
2789 /* <var24:Int> isa OTHER */
2790 var27
= 1; /* easy <var24:Int> isa OTHER*/
2791 if (unlikely(!var27
)) {
2792 var_class_name30
= type_standard__Int
.name
;
2793 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name30
);
2794 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 537);
2797 var31
= var_res
+ var24
;
2800 RET_LABEL26
:(void)0;
2805 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(var_18
); /* Direct call array#ArrayIterator#next on <var_18:ArrayIterator[MParameter]>*/
2811 BREAK_label
: (void)0;
2813 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__finish(var_18
); /* Direct call array#ArrayIterator#finish on <var_18:ArrayIterator[MParameter]>*/
2820 /* method model#MSignature#init for (self: MSignature) */
2821 void nit___nit__MSignature___standard__kernel__Object__init(val
* self
) {
2822 long var
/* : Int */;
2823 long var2
/* : Int */;
2824 long var_vararg_rank
/* var vararg_rank: Int */;
2825 long var_i
/* var i: Int */;
2826 val
* var3
/* : Array[MParameter] */;
2827 val
* var5
/* : Array[MParameter] */;
2828 long var6
/* : Int */;
2829 long var8
/* : Int */;
2830 long var_
/* var : Int */;
2831 short int var9
/* : Bool */;
2832 short int var11
/* : Bool */;
2835 const char* var_class_name
;
2836 short int var12
/* : Bool */;
2837 val
* var13
/* : Array[MParameter] */;
2838 val
* var15
/* : Array[MParameter] */;
2839 val
* var16
/* : nullable Object */;
2840 val
* var_parameter
/* var parameter: MParameter */;
2841 short int var17
/* : Bool */;
2842 short int var19
/* : Bool */;
2843 long var20
/* : Int */;
2844 long var22
/* : Int */;
2845 short int var23
/* : Bool */;
2846 short int var25
/* : Bool */;
2847 long var26
/* : Int */;
2849 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nit___nit__MSignature___standard__kernel__Object__init
]))(self
); /* init on <self:MSignature>*/
2852 { /* Inline kernel#Int#unary - (1l) on <1l:Int> */
2859 var_vararg_rank
= var
;
2862 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
2863 var5
= self
->attrs
[COLOR_nit__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
2864 if (unlikely(var5
== NULL
)) {
2865 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
2866 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1756);
2874 { /* Inline array#AbstractArrayRead#length (var3) on <var3:Array[MParameter]> */
2875 var8
= var3
->attrs
[COLOR_standard__array__AbstractArrayRead___length
].l
; /* _length on <var3:Array[MParameter]> */
2883 { /* Inline kernel#Int#< (var_i,var_) on <var_i:Int> */
2884 /* Covariant cast for argument 0 (i) <var_:Int> isa OTHER */
2885 /* <var_:Int> isa OTHER */
2886 var11
= 1; /* easy <var_:Int> isa OTHER*/
2887 if (unlikely(!var11
)) {
2888 var_class_name
= type_standard__Int
.name
;
2889 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
2890 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 534);
2893 var12
= var_i
< var_
;
2896 RET_LABEL10
:(void)0;
2901 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
2902 var15
= self
->attrs
[COLOR_nit__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
2903 if (unlikely(var15
== NULL
)) {
2904 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
2905 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1756);
2909 RET_LABEL14
:(void)0;
2913 var16
= standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(var13
, var_i
);
2915 var_parameter
= var16
;
2917 { /* Inline model#MParameter#is_vararg (var_parameter) on <var_parameter:MParameter> */
2918 var19
= var_parameter
->attrs
[COLOR_nit__model__MParameter___is_vararg
].s
; /* _is_vararg on <var_parameter:MParameter> */
2920 RET_LABEL18
:(void)0;
2925 { /* Inline kernel#Int#unary - (1l) on <1l:Int> */
2929 RET_LABEL21
:(void)0;
2933 { /* Inline kernel#Int#== (var_vararg_rank,var20) on <var_vararg_rank:Int> */
2934 var25
= var_vararg_rank
== var20
;
2937 RET_LABEL24
:(void)0;
2940 if (unlikely(!var23
)) {
2941 PRINT_ERROR("Runtime error: %s", "Assert failed");
2942 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1801);
2945 var_vararg_rank
= var_i
;
2949 var26
= standard___standard__Int___Discrete__successor(var_i
, 1l);
2956 BREAK_label
: (void)0;
2958 { /* Inline model#MSignature#vararg_rank= (self,var_vararg_rank) on <self:MSignature> */
2959 self
->attrs
[COLOR_nit__model__MSignature___vararg_rank
].l
= var_vararg_rank
; /* _vararg_rank on <self:MSignature> */
2960 RET_LABEL27
:(void)0;
2965 /* method model#MSignature#vararg_rank for (self: MSignature): Int */
2966 long nit___nit__MSignature___vararg_rank(val
* self
) {
2967 long var
/* : Int */;
2968 long var1
/* : Int */;
2969 var1
= self
->attrs
[COLOR_nit__model__MSignature___vararg_rank
].l
; /* _vararg_rank on <self:MSignature> */
2974 /* method model#MSignature#vararg_rank= for (self: MSignature, Int) */
2975 void nit___nit__MSignature___vararg_rank_61d(val
* self
, long p0
) {
2976 self
->attrs
[COLOR_nit__model__MSignature___vararg_rank
].l
= p0
; /* _vararg_rank on <self:MSignature> */
2979 /* method model#MSignature#arity for (self: MSignature): Int */
2980 long nit___nit__MSignature___arity(val
* self
) {
2981 long var
/* : Int */;
2982 val
* var1
/* : Array[MParameter] */;
2983 val
* var3
/* : Array[MParameter] */;
2984 long var4
/* : Int */;
2985 long var6
/* : Int */;
2987 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
2988 var3
= self
->attrs
[COLOR_nit__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
2989 if (unlikely(var3
== NULL
)) {
2990 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
2991 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1756);
2999 { /* Inline array#AbstractArrayRead#length (var1) on <var1:Array[MParameter]> */
3000 var6
= var1
->attrs
[COLOR_standard__array__AbstractArrayRead___length
].l
; /* _length on <var1:Array[MParameter]> */
3010 /* method model#MSignature#min_arity for (self: MSignature): Int */
3011 long nit___nit__MSignature___min_arity(val
* self
) {
3012 long var
/* : Int */;
3013 long var1
/* : Int */;
3014 long var3
/* : Int */;
3015 long var4
/* : Int */;
3016 long var6
/* : Int */;
3017 short int var7
/* : Bool */;
3018 short int var9
/* : Bool */;
3019 short int var10
/* : Bool */;
3020 long var11
/* : Int */;
3021 long var_res
/* var res: Int */;
3022 val
* var12
/* : Array[MParameter] */;
3023 val
* var14
/* : Array[MParameter] */;
3024 val
* var_
/* var : Array[MParameter] */;
3025 val
* var15
/* : ArrayIterator[nullable Object] */;
3026 val
* var_16
/* var : ArrayIterator[MParameter] */;
3027 short int var17
/* : Bool */;
3028 val
* var18
/* : nullable Object */;
3029 val
* var_p
/* var p: MParameter */;
3030 short int var19
/* : Bool */;
3031 short int var21
/* : Bool */;
3032 short int var22
/* : Bool */;
3033 long var23
/* : Int */;
3034 short int var25
/* : Bool */;
3037 const char* var_class_name
;
3038 long var26
/* : Int */;
3040 { /* Inline model#MSignature#vararg_rank (self) on <self:MSignature> */
3041 var3
= self
->attrs
[COLOR_nit__model__MSignature___vararg_rank
].l
; /* _vararg_rank on <self:MSignature> */
3047 { /* Inline kernel#Int#unary - (1l) on <1l:Int> */
3055 { /* Inline kernel#Int#!= (var1,var4) on <var1:Int> */
3056 var9
= var1
== var4
;
3065 var11
= nit___nit__MSignature___arity(self
);
3073 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
3074 var14
= self
->attrs
[COLOR_nit__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
3075 if (unlikely(var14
== NULL
)) {
3076 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
3077 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1756);
3081 RET_LABEL13
:(void)0;
3086 var15
= standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(var_
);
3091 var17
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(var_16
);
3095 var18
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(var_16
);
3099 { /* Inline model#MParameter#is_default (var_p) on <var_p:MParameter> */
3100 var21
= var_p
->attrs
[COLOR_nit__model__MParameter___is_default
].s
; /* _is_default on <var_p:MParameter> */
3102 RET_LABEL20
:(void)0;
3108 { /* Inline kernel#Int#+ (var_res,1l) on <var_res:Int> */
3109 /* Covariant cast for argument 0 (i) <1l:Int> isa OTHER */
3110 /* <1l:Int> isa OTHER */
3111 var25
= 1; /* easy <1l:Int> isa OTHER*/
3112 if (unlikely(!var25
)) {
3113 var_class_name
= type_standard__Int
.name
;
3114 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
3115 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 537);
3118 var26
= var_res
+ 1l;
3121 RET_LABEL24
:(void)0;
3128 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(var_16
); /* Direct call array#ArrayIterator#next on <var_16:ArrayIterator[MParameter]>*/
3134 BREAK_label
: (void)0;
3136 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__finish(var_16
); /* Direct call array#ArrayIterator#finish on <var_16:ArrayIterator[MParameter]>*/
3143 /* method model#MSignature#to_s for (self: MSignature): String */
3144 val
* nit___nit__MSignature___standard__string__Object__to_s(val
* self
) {
3145 val
* var
/* : String */;
3146 val
* var1
/* : FlatBuffer */;
3147 val
* var_b
/* var b: FlatBuffer */;
3148 val
* var3
/* : Array[MParameter] */;
3149 val
* var5
/* : Array[MParameter] */;
3150 short int var6
/* : Bool */;
3151 short int var7
/* : Bool */;
3152 static val
* varonce
;
3153 val
* var8
/* : String */;
3154 char* var9
/* : NativeString */;
3155 val
* var10
/* : FlatString */;
3156 long var_i
/* var i: Int */;
3157 val
* var11
/* : Array[MParameter] */;
3158 val
* var13
/* : Array[MParameter] */;
3159 long var14
/* : Int */;
3160 long var16
/* : Int */;
3161 long var_
/* var : Int */;
3162 short int var17
/* : Bool */;
3163 short int var19
/* : Bool */;
3166 const char* var_class_name
;
3167 short int var20
/* : Bool */;
3168 val
* var21
/* : Array[MParameter] */;
3169 val
* var23
/* : Array[MParameter] */;
3170 val
* var24
/* : nullable Object */;
3171 val
* var_mparameter
/* var mparameter: MParameter */;
3172 short int var25
/* : Bool */;
3173 short int var27
/* : Bool */;
3176 const char* var_class_name30
;
3177 short int var31
/* : Bool */;
3178 static val
* varonce32
;
3179 val
* var33
/* : String */;
3180 char* var34
/* : NativeString */;
3181 val
* var35
/* : FlatString */;
3182 val
* var36
/* : String */;
3183 val
* var38
/* : String */;
3184 static val
* varonce39
;
3185 val
* var40
/* : String */;
3186 char* var41
/* : NativeString */;
3187 val
* var42
/* : FlatString */;
3188 val
* var43
/* : MType */;
3189 val
* var45
/* : MType */;
3190 val
* var46
/* : String */;
3191 short int var47
/* : Bool */;
3192 short int var49
/* : Bool */;
3193 static val
* varonce50
;
3194 val
* var51
/* : String */;
3195 char* var52
/* : NativeString */;
3196 val
* var53
/* : FlatString */;
3197 long var54
/* : Int */;
3198 static val
* varonce55
;
3199 val
* var56
/* : String */;
3200 char* var57
/* : NativeString */;
3201 val
* var58
/* : FlatString */;
3202 val
* var59
/* : nullable MType */;
3203 val
* var61
/* : nullable MType */;
3204 val
* var_ret
/* var ret: nullable MType */;
3205 short int var62
/* : Bool */;
3206 short int var63
/* : Bool */;
3207 val
* var_other
/* var other: nullable Object */;
3208 short int var65
/* : Bool */;
3209 short int var66
/* : Bool */;
3210 static val
* varonce67
;
3211 val
* var68
/* : String */;
3212 char* var69
/* : NativeString */;
3213 val
* var70
/* : FlatString */;
3214 val
* var71
/* : String */;
3215 val
* var72
/* : String */;
3216 var1
= NEW_standard__FlatBuffer(&type_standard__FlatBuffer
);
3218 { /* Inline string#FlatBuffer#init (var1) on <var1:FlatBuffer> */
3220 ((void(*)(val
* self
))(var1
->class->vft
[COLOR_standard___standard__FlatBuffer___standard__kernel__Object__init
]))(var1
); /* init on <var1:FlatBuffer>*/
3227 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
3228 var5
= self
->attrs
[COLOR_nit__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
3229 if (unlikely(var5
== NULL
)) {
3230 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
3231 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1756);
3239 var6
= standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__is_empty(var3
);
3243 if (likely(varonce
!=NULL
)) {
3247 var10
= standard___standard__NativeString___to_s_with_length(var9
, 1l);
3252 standard___standard__FlatBuffer___Buffer__append(var_b
, var8
); /* Direct call string#FlatBuffer#append on <var_b:FlatBuffer>*/
3256 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
3257 var13
= self
->attrs
[COLOR_nit__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
3258 if (unlikely(var13
== NULL
)) {
3259 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
3260 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1756);
3264 RET_LABEL12
:(void)0;
3268 { /* Inline array#AbstractArrayRead#length (var11) on <var11:Array[MParameter]> */
3269 var16
= var11
->attrs
[COLOR_standard__array__AbstractArrayRead___length
].l
; /* _length on <var11:Array[MParameter]> */
3271 RET_LABEL15
:(void)0;
3277 { /* Inline kernel#Int#< (var_i,var_) on <var_i:Int> */
3278 /* Covariant cast for argument 0 (i) <var_:Int> isa OTHER */
3279 /* <var_:Int> isa OTHER */
3280 var19
= 1; /* easy <var_:Int> isa OTHER*/
3281 if (unlikely(!var19
)) {
3282 var_class_name
= type_standard__Int
.name
;
3283 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
3284 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 534);
3287 var20
= var_i
< var_
;
3290 RET_LABEL18
:(void)0;
3295 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
3296 var23
= self
->attrs
[COLOR_nit__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
3297 if (unlikely(var23
== NULL
)) {
3298 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
3299 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1756);
3303 RET_LABEL22
:(void)0;
3307 var24
= standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(var21
, var_i
);
3309 var_mparameter
= var24
;
3311 { /* Inline kernel#Int#> (var_i,0l) on <var_i:Int> */
3312 /* Covariant cast for argument 0 (i) <0l:Int> isa OTHER */
3313 /* <0l:Int> isa OTHER */
3314 var27
= 1; /* easy <0l:Int> isa OTHER*/
3315 if (unlikely(!var27
)) {
3316 var_class_name30
= type_standard__Int
.name
;
3317 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name30
);
3318 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 536);
3324 RET_LABEL26
:(void)0;
3328 if (likely(varonce32
!=NULL
)) {
3332 var35
= standard___standard__NativeString___to_s_with_length(var34
, 2l);
3337 standard___standard__FlatBuffer___Buffer__append(var_b
, var33
); /* Direct call string#FlatBuffer#append on <var_b:FlatBuffer>*/
3342 { /* Inline model#MParameter#name (var_mparameter) on <var_mparameter:MParameter> */
3343 var38
= var_mparameter
->attrs
[COLOR_nit__model__MParameter___name
].val
; /* _name on <var_mparameter:MParameter> */
3344 if (unlikely(var38
== NULL
)) {
3345 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
3346 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1876);
3350 RET_LABEL37
:(void)0;
3354 standard___standard__FlatBuffer___Buffer__append(var_b
, var36
); /* Direct call string#FlatBuffer#append on <var_b:FlatBuffer>*/
3356 if (likely(varonce39
!=NULL
)) {
3360 var42
= standard___standard__NativeString___to_s_with_length(var41
, 2l);
3365 standard___standard__FlatBuffer___Buffer__append(var_b
, var40
); /* Direct call string#FlatBuffer#append on <var_b:FlatBuffer>*/
3368 { /* Inline model#MParameter#mtype (var_mparameter) on <var_mparameter:MParameter> */
3369 var45
= var_mparameter
->attrs
[COLOR_nit__model__MParameter___mtype
].val
; /* _mtype on <var_mparameter:MParameter> */
3370 if (unlikely(var45
== NULL
)) {
3371 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
3372 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1879);
3376 RET_LABEL44
:(void)0;
3380 var46
= ((val
*(*)(val
* self
))(var43
->class->vft
[COLOR_standard__string__Object__to_s
]))(var43
); /* to_s on <var43:MType>*/
3383 standard___standard__FlatBuffer___Buffer__append(var_b
, var46
); /* Direct call string#FlatBuffer#append on <var_b:FlatBuffer>*/
3386 { /* Inline model#MParameter#is_vararg (var_mparameter) on <var_mparameter:MParameter> */
3387 var49
= var_mparameter
->attrs
[COLOR_nit__model__MParameter___is_vararg
].s
; /* _is_vararg on <var_mparameter:MParameter> */
3389 RET_LABEL48
:(void)0;
3393 if (likely(varonce50
!=NULL
)) {
3397 var53
= standard___standard__NativeString___to_s_with_length(var52
, 3l);
3402 standard___standard__FlatBuffer___Buffer__append(var_b
, var51
); /* Direct call string#FlatBuffer#append on <var_b:FlatBuffer>*/
3407 var54
= standard___standard__Int___Discrete__successor(var_i
, 1l);
3414 BREAK_label
: (void)0;
3415 if (likely(varonce55
!=NULL
)) {
3419 var58
= standard___standard__NativeString___to_s_with_length(var57
, 1l);
3424 standard___standard__FlatBuffer___Buffer__append(var_b
, var56
); /* Direct call string#FlatBuffer#append on <var_b:FlatBuffer>*/
3429 { /* Inline model#MSignature#return_mtype (self) on <self:MSignature> */
3430 var61
= self
->attrs
[COLOR_nit__model__MSignature___return_mtype
].val
; /* _return_mtype on <self:MSignature> */
3432 RET_LABEL60
:(void)0;
3436 if (var_ret
== NULL
) {
3437 var62
= 0; /* is null */
3439 var62
= 1; /* arg is null and recv is not */
3442 { /* Inline kernel#Object#!= (var_ret,((val*)NULL)) on <var_ret:nullable MType> */
3443 var_other
= ((val
*)NULL
);
3445 var65
= ((short int(*)(val
* self
, val
* p0
))(var_ret
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_ret
, var_other
); /* == on <var_ret:nullable MType(MType)>*/
3450 RET_LABEL64
:(void)0;
3455 if (likely(varonce67
!=NULL
)) {
3459 var70
= standard___standard__NativeString___to_s_with_length(var69
, 2l);
3464 standard___standard__FlatBuffer___Buffer__append(var_b
, var68
); /* Direct call string#FlatBuffer#append on <var_b:FlatBuffer>*/
3467 var71
= ((val
*(*)(val
* self
))(var_ret
->class->vft
[COLOR_standard__string__Object__to_s
]))(var_ret
); /* to_s on <var_ret:nullable MType(MType)>*/
3470 standard___standard__FlatBuffer___Buffer__append(var_b
, var71
); /* Direct call string#FlatBuffer#append on <var_b:FlatBuffer>*/
3475 var72
= standard___standard__FlatBuffer___Object__to_s(var_b
);
3482 /* method model#MSignature#resolve_for for (self: MSignature, MType, nullable MClassType, MModule, Bool): MSignature */
3483 val
* nit___nit__MSignature___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
3484 val
* var
/* : MSignature */;
3485 val
* var_mtype
/* var mtype: MType */;
3486 val
* var_anchor
/* var anchor: nullable MClassType */;
3487 val
* var_mmodule
/* var mmodule: MModule */;
3488 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
3489 val
* var1
/* : Array[MParameter] */;
3490 val
* var_params
/* var params: Array[MParameter] */;
3491 val
* var2
/* : Array[MParameter] */;
3492 val
* var4
/* : Array[MParameter] */;
3493 val
* var_
/* var : Array[MParameter] */;
3494 val
* var5
/* : ArrayIterator[nullable Object] */;
3495 val
* var_6
/* var : ArrayIterator[MParameter] */;
3496 short int var7
/* : Bool */;
3497 val
* var8
/* : nullable Object */;
3498 val
* var_p
/* var p: MParameter */;
3499 val
* var9
/* : MParameter */;
3500 val
* var10
/* : nullable MType */;
3501 val
* var12
/* : nullable MType */;
3502 val
* var_ret
/* var ret: nullable MType */;
3503 short int var13
/* : Bool */;
3504 short int var14
/* : Bool */;
3505 val
* var_other
/* var other: nullable Object */;
3506 short int var16
/* : Bool */;
3507 short int var17
/* : Bool */;
3508 val
* var18
/* : MType */;
3509 val
* var19
/* : MSignature */;
3510 val
* var_res
/* var res: MSignature */;
3514 var_cleanup_virtual
= p3
;
3515 var1
= NEW_standard__Array(&type_standard__Array__nit__MParameter
);
3517 standard___standard__Array___standard__kernel__Object__init(var1
); /* Direct call array#Array#init on <var1:Array[MParameter]>*/
3521 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
3522 var4
= self
->attrs
[COLOR_nit__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
3523 if (unlikely(var4
== NULL
)) {
3524 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
3525 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1756);
3534 var5
= standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(var_
);
3539 var7
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(var_6
);
3543 var8
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(var_6
);
3547 var9
= nit___nit__MParameter___resolve_for(var_p
, var_mtype
, var_anchor
, var_mmodule
, var_cleanup_virtual
);
3550 standard___standard__Array___standard__abstract_collection__SimpleCollection__add(var_params
, var9
); /* Direct call array#Array#add on <var_params:Array[MParameter]>*/
3553 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(var_6
); /* Direct call array#ArrayIterator#next on <var_6:ArrayIterator[MParameter]>*/
3559 BREAK_label
: (void)0;
3561 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__finish(var_6
); /* Direct call array#ArrayIterator#finish on <var_6:ArrayIterator[MParameter]>*/
3564 { /* Inline model#MSignature#return_mtype (self) on <self:MSignature> */
3565 var12
= self
->attrs
[COLOR_nit__model__MSignature___return_mtype
].val
; /* _return_mtype on <self:MSignature> */
3567 RET_LABEL11
:(void)0;
3571 if (var_ret
== NULL
) {
3572 var13
= 0; /* is null */
3574 var13
= 1; /* arg is null and recv is not */
3577 { /* Inline kernel#Object#!= (var_ret,((val*)NULL)) on <var_ret:nullable MType> */
3578 var_other
= ((val
*)NULL
);
3580 var16
= ((short int(*)(val
* self
, val
* p0
))(var_ret
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_ret
, var_other
); /* == on <var_ret:nullable MType(MType)>*/
3585 RET_LABEL15
:(void)0;
3591 var18
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(var_ret
->class->vft
[COLOR_nit__model__MType__resolve_for
]))(var_ret
, var_mtype
, var_anchor
, var_mmodule
, var_cleanup_virtual
); /* resolve_for on <var_ret:nullable MType(MType)>*/
3596 var19
= NEW_nit__MSignature(&type_nit__MSignature
);
3598 ((void(*)(val
* self
, val
* p0
))(var19
->class->vft
[COLOR_nit__model__MSignature__mparameters_61d
]))(var19
, var_params
); /* mparameters= on <var19:MSignature>*/
3601 ((void(*)(val
* self
, val
* p0
))(var19
->class->vft
[COLOR_nit__model__MSignature__return_mtype_61d
]))(var19
, var_ret
); /* return_mtype= on <var19:MSignature>*/
3604 ((void(*)(val
* self
))(var19
->class->vft
[COLOR_standard__kernel__Object__init
]))(var19
); /* init on <var19:MSignature>*/
3612 /* method model#MParameter#name for (self: MParameter): String */
3613 val
* nit___nit__MParameter___nit__model_base__MEntity__name(val
* self
) {
3614 val
* var
/* : String */;
3615 val
* var1
/* : String */;
3616 var1
= self
->attrs
[COLOR_nit__model__MParameter___name
].val
; /* _name on <self:MParameter> */
3617 if (unlikely(var1
== NULL
)) {
3618 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
3619 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1876);
3626 /* method model#MParameter#name= for (self: MParameter, String) */
3627 void nit___nit__MParameter___name_61d(val
* self
, val
* p0
) {
3628 self
->attrs
[COLOR_nit__model__MParameter___name
].val
= p0
; /* _name on <self:MParameter> */
3631 /* method model#MParameter#mtype for (self: MParameter): MType */
3632 val
* nit___nit__MParameter___mtype(val
* self
) {
3633 val
* var
/* : MType */;
3634 val
* var1
/* : MType */;
3635 var1
= self
->attrs
[COLOR_nit__model__MParameter___mtype
].val
; /* _mtype on <self:MParameter> */
3636 if (unlikely(var1
== NULL
)) {
3637 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
3638 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1879);
3645 /* method model#MParameter#mtype= for (self: MParameter, MType) */
3646 void nit___nit__MParameter___mtype_61d(val
* self
, val
* p0
) {
3647 self
->attrs
[COLOR_nit__model__MParameter___mtype
].val
= p0
; /* _mtype on <self:MParameter> */
3650 /* method model#MParameter#is_vararg for (self: MParameter): Bool */
3651 short int nit___nit__MParameter___is_vararg(val
* self
) {
3652 short int var
/* : Bool */;
3653 short int var1
/* : Bool */;
3654 var1
= self
->attrs
[COLOR_nit__model__MParameter___is_vararg
].s
; /* _is_vararg on <self:MParameter> */
3659 /* method model#MParameter#is_vararg= for (self: MParameter, Bool) */
3660 void nit___nit__MParameter___is_vararg_61d(val
* self
, short int p0
) {
3661 self
->attrs
[COLOR_nit__model__MParameter___is_vararg
].s
= p0
; /* _is_vararg on <self:MParameter> */
3664 /* method model#MParameter#is_default for (self: MParameter): Bool */
3665 short int nit___nit__MParameter___is_default(val
* self
) {
3666 short int var
/* : Bool */;
3667 short int var1
/* : Bool */;
3668 var1
= self
->attrs
[COLOR_nit__model__MParameter___is_default
].s
; /* _is_default on <self:MParameter> */
3673 /* method model#MParameter#is_default= for (self: MParameter, Bool) */
3674 void nit___nit__MParameter___is_default_61d(val
* self
, short int p0
) {
3675 self
->attrs
[COLOR_nit__model__MParameter___is_default
].s
= p0
; /* _is_default on <self:MParameter> */
3678 /* method model#MParameter#to_s for (self: MParameter): String */
3679 val
* nit___nit__MParameter___standard__string__Object__to_s(val
* self
) {
3680 val
* var
/* : String */;
3681 short int var1
/* : Bool */;
3682 short int var3
/* : Bool */;
3683 val
* var4
/* : NativeArray[String] */;
3684 static val
* varonce
;
3685 static val
* varonce5
;
3686 val
* var6
/* : String */;
3687 char* var7
/* : NativeString */;
3688 val
* var8
/* : FlatString */;
3689 static val
* varonce9
;
3690 val
* var10
/* : String */;
3691 char* var11
/* : NativeString */;
3692 val
* var12
/* : FlatString */;
3693 val
* var13
/* : String */;
3694 val
* var15
/* : String */;
3695 val
* var16
/* : MType */;
3696 val
* var18
/* : MType */;
3697 val
* var19
/* : String */;
3698 val
* var20
/* : String */;
3699 val
* var22
/* : NativeArray[String] */;
3700 static val
* varonce21
;
3701 static val
* varonce23
;
3702 val
* var24
/* : String */;
3703 char* var25
/* : NativeString */;
3704 val
* var26
/* : FlatString */;
3705 val
* var27
/* : String */;
3706 val
* var29
/* : String */;
3707 val
* var30
/* : MType */;
3708 val
* var32
/* : MType */;
3709 val
* var33
/* : String */;
3710 val
* var34
/* : String */;
3712 { /* Inline model#MParameter#is_vararg (self) on <self:MParameter> */
3713 var3
= self
->attrs
[COLOR_nit__model__MParameter___is_vararg
].s
; /* _is_vararg on <self:MParameter> */
3719 if (unlikely(varonce
==NULL
)) {
3720 var4
= NEW_standard__NativeArray(4l, &type_standard__NativeArray__standard__String
);
3721 if (likely(varonce5
!=NULL
)) {
3725 var8
= standard___standard__NativeString___to_s_with_length(var7
, 2l);
3729 ((struct instance_standard__NativeArray
*)var4
)->values
[1]=var6
;
3730 if (likely(varonce9
!=NULL
)) {
3734 var12
= standard___standard__NativeString___to_s_with_length(var11
, 3l);
3738 ((struct instance_standard__NativeArray
*)var4
)->values
[3]=var10
;
3744 { /* Inline model#MParameter#name (self) on <self:MParameter> */
3745 var15
= self
->attrs
[COLOR_nit__model__MParameter___name
].val
; /* _name on <self:MParameter> */
3746 if (unlikely(var15
== NULL
)) {
3747 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
3748 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1876);
3752 RET_LABEL14
:(void)0;
3755 ((struct instance_standard__NativeArray
*)var4
)->values
[0]=var13
;
3757 { /* Inline model#MParameter#mtype (self) on <self:MParameter> */
3758 var18
= self
->attrs
[COLOR_nit__model__MParameter___mtype
].val
; /* _mtype on <self:MParameter> */
3759 if (unlikely(var18
== NULL
)) {
3760 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
3761 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1879);
3765 RET_LABEL17
:(void)0;
3769 var19
= ((val
*(*)(val
* self
))(var16
->class->vft
[COLOR_standard__string__Object__to_s
]))(var16
); /* to_s on <var16:MType>*/
3771 ((struct instance_standard__NativeArray
*)var4
)->values
[2]=var19
;
3773 var20
= ((val
*(*)(val
* self
))(var4
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var4
); /* native_to_s on <var4:NativeArray[String]>*/
3779 if (unlikely(varonce21
==NULL
)) {
3780 var22
= NEW_standard__NativeArray(3l, &type_standard__NativeArray__standard__String
);
3781 if (likely(varonce23
!=NULL
)) {
3785 var26
= standard___standard__NativeString___to_s_with_length(var25
, 2l);
3789 ((struct instance_standard__NativeArray
*)var22
)->values
[1]=var24
;
3795 { /* Inline model#MParameter#name (self) on <self:MParameter> */
3796 var29
= self
->attrs
[COLOR_nit__model__MParameter___name
].val
; /* _name on <self:MParameter> */
3797 if (unlikely(var29
== NULL
)) {
3798 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
3799 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1876);
3803 RET_LABEL28
:(void)0;
3806 ((struct instance_standard__NativeArray
*)var22
)->values
[0]=var27
;
3808 { /* Inline model#MParameter#mtype (self) on <self:MParameter> */
3809 var32
= self
->attrs
[COLOR_nit__model__MParameter___mtype
].val
; /* _mtype on <self:MParameter> */
3810 if (unlikely(var32
== NULL
)) {
3811 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
3812 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1879);
3816 RET_LABEL31
:(void)0;
3820 var33
= ((val
*(*)(val
* self
))(var30
->class->vft
[COLOR_standard__string__Object__to_s
]))(var30
); /* to_s on <var30:MType>*/
3822 ((struct instance_standard__NativeArray
*)var22
)->values
[2]=var33
;
3824 var34
= ((val
*(*)(val
* self
))(var22
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var22
); /* native_to_s on <var22:NativeArray[String]>*/
3833 /* method model#MParameter#resolve_for for (self: MParameter, MType, nullable MClassType, MModule, Bool): MParameter */
3834 val
* nit___nit__MParameter___resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
3835 val
* var
/* : MParameter */;
3836 val
* var_mtype
/* var mtype: MType */;
3837 val
* var_anchor
/* var anchor: nullable MClassType */;
3838 val
* var_mmodule
/* var mmodule: MModule */;
3839 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
3840 val
* var1
/* : MType */;
3841 val
* var3
/* : MType */;
3842 short int var4
/* : Bool */;
3843 short int var5
/* : Bool */;
3844 val
* var6
/* : MType */;
3845 val
* var8
/* : MType */;
3846 val
* var9
/* : MType */;
3847 val
* var_newtype
/* var newtype: MType */;
3848 val
* var10
/* : MParameter */;
3849 val
* var11
/* : String */;
3850 val
* var13
/* : String */;
3851 short int var14
/* : Bool */;
3852 short int var16
/* : Bool */;
3853 short int var17
/* : Bool */;
3854 short int var19
/* : Bool */;
3855 val
* var_res
/* var res: MParameter */;
3859 var_cleanup_virtual
= p3
;
3861 { /* Inline model#MParameter#mtype (self) on <self:MParameter> */
3862 var3
= self
->attrs
[COLOR_nit__model__MParameter___mtype
].val
; /* _mtype on <self:MParameter> */
3863 if (unlikely(var3
== NULL
)) {
3864 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
3865 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1879);
3873 var4
= ((short int(*)(val
* self
))(var1
->class->vft
[COLOR_nit__model__MType__need_anchor
]))(var1
); /* need_anchor on <var1:MType>*/
3882 { /* Inline model#MParameter#mtype (self) on <self:MParameter> */
3883 var8
= self
->attrs
[COLOR_nit__model__MParameter___mtype
].val
; /* _mtype on <self:MParameter> */
3884 if (unlikely(var8
== NULL
)) {
3885 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
3886 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1879);
3894 var9
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(var6
->class->vft
[COLOR_nit__model__MType__resolve_for
]))(var6
, var_mtype
, var_anchor
, var_mmodule
, var_cleanup_virtual
); /* resolve_for on <var6:MType>*/
3897 var10
= NEW_nit__MParameter(&type_nit__MParameter
);
3899 { /* Inline model#MParameter#name (self) on <self:MParameter> */
3900 var13
= self
->attrs
[COLOR_nit__model__MParameter___name
].val
; /* _name on <self:MParameter> */
3901 if (unlikely(var13
== NULL
)) {
3902 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
3903 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1876);
3907 RET_LABEL12
:(void)0;
3911 { /* Inline model#MParameter#is_vararg (self) on <self:MParameter> */
3912 var16
= self
->attrs
[COLOR_nit__model__MParameter___is_vararg
].s
; /* _is_vararg on <self:MParameter> */
3914 RET_LABEL15
:(void)0;
3918 { /* Inline model#MParameter#is_default (self) on <self:MParameter> */
3919 var19
= self
->attrs
[COLOR_nit__model__MParameter___is_default
].s
; /* _is_default on <self:MParameter> */
3921 RET_LABEL18
:(void)0;
3925 ((void(*)(val
* self
, val
* p0
))(var10
->class->vft
[COLOR_nit__model__MParameter__name_61d
]))(var10
, var11
); /* name= on <var10:MParameter>*/
3928 ((void(*)(val
* self
, val
* p0
))(var10
->class->vft
[COLOR_nit__model__MParameter__mtype_61d
]))(var10
, var_newtype
); /* mtype= on <var10:MParameter>*/
3931 ((void(*)(val
* self
, short int p0
))(var10
->class->vft
[COLOR_nit__model__MParameter__is_vararg_61d
]))(var10
, var14
); /* is_vararg= on <var10:MParameter>*/
3934 ((void(*)(val
* self
, short int p0
))(var10
->class->vft
[COLOR_nit__model__MParameter__is_default_61d
]))(var10
, var17
); /* is_default= on <var10:MParameter>*/
3937 ((void(*)(val
* self
))(var10
->class->vft
[COLOR_standard__kernel__Object__init
]))(var10
); /* init on <var10:MParameter>*/
3945 /* method model#MParameter#model for (self: MParameter): Model */
3946 val
* nit___nit__MParameter___nit__model_base__MEntity__model(val
* self
) {
3947 val
* var
/* : Model */;
3948 val
* var1
/* : MType */;
3949 val
* var3
/* : MType */;
3950 val
* var4
/* : Model */;
3952 { /* Inline model#MParameter#mtype (self) on <self:MParameter> */
3953 var3
= self
->attrs
[COLOR_nit__model__MParameter___mtype
].val
; /* _mtype on <self:MParameter> */
3954 if (unlikely(var3
== NULL
)) {
3955 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
3956 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1879);
3964 var4
= ((val
*(*)(val
* self
))(var1
->class->vft
[COLOR_nit__model_base__MEntity__model
]))(var1
); /* model on <var1:MType>*/
3971 /* method model#MParameter#init for (self: MParameter) */
3972 void nit___nit__MParameter___standard__kernel__Object__init(val
* self
) {
3974 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nit___nit__MParameter___standard__kernel__Object__init
]))(self
); /* init on <self:MParameter>*/
3978 /* method model#MProperty#intro_mclassdef for (self: MProperty): MClassDef */
3979 val
* nit___nit__MProperty___intro_mclassdef(val
* self
) {
3980 val
* var
/* : MClassDef */;
3981 val
* var1
/* : MClassDef */;
3982 var1
= self
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
3983 if (unlikely(var1
== NULL
)) {
3984 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
3985 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
3992 /* method model#MProperty#intro_mclassdef= for (self: MProperty, MClassDef) */
3993 void nit___nit__MProperty___intro_mclassdef_61d(val
* self
, val
* p0
) {
3994 self
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
= p0
; /* _intro_mclassdef on <self:MProperty> */
3997 /* method model#MProperty#name for (self: MProperty): String */
3998 val
* nit___nit__MProperty___nit__model_base__MEntity__name(val
* self
) {
3999 val
* var
/* : String */;
4000 val
* var1
/* : String */;
4001 var1
= self
->attrs
[COLOR_nit__model__MProperty___name
].val
; /* _name on <self:MProperty> */
4002 if (unlikely(var1
== NULL
)) {
4003 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4004 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1933);
4011 /* method model#MProperty#name= for (self: MProperty, String) */
4012 void nit___nit__MProperty___name_61d(val
* self
, val
* p0
) {
4013 self
->attrs
[COLOR_nit__model__MProperty___name
].val
= p0
; /* _name on <self:MProperty> */
4016 /* method model#MProperty#full_name for (self: MProperty): String */
4017 val
* nit___nit__MProperty___nit__model_base__MEntity__full_name(val
* self
) {
4018 val
* var
/* : String */;
4019 short int var1
/* : Bool */;
4020 val
* var2
/* : String */;
4021 val
* var3
/* : String */;
4022 val
* var5
/* : NativeArray[String] */;
4023 static val
* varonce
;
4024 static val
* varonce6
;
4025 val
* var7
/* : String */;
4026 char* var8
/* : NativeString */;
4027 val
* var9
/* : FlatString */;
4028 static val
* varonce10
;
4029 val
* var11
/* : String */;
4030 char* var12
/* : NativeString */;
4031 val
* var13
/* : FlatString */;
4032 val
* var14
/* : MClassDef */;
4033 val
* var16
/* : MClassDef */;
4034 val
* var17
/* : MModule */;
4035 val
* var19
/* : MModule */;
4036 val
* var20
/* : MVisibility */;
4037 val
* var22
/* : MVisibility */;
4038 val
* var23
/* : String */;
4039 val
* var24
/* : MClassDef */;
4040 val
* var26
/* : MClassDef */;
4041 val
* var27
/* : MClass */;
4042 val
* var29
/* : MClass */;
4043 val
* var30
/* : String */;
4044 val
* var32
/* : String */;
4045 val
* var33
/* : String */;
4046 val
* var35
/* : String */;
4047 val
* var36
/* : String */;
4048 var1
= self
->attrs
[COLOR_nit__model__MProperty___full_name
].val
!= NULL
; /* _full_name on <self:MProperty> */
4050 var2
= self
->attrs
[COLOR_nit__model__MProperty___full_name
].val
; /* _full_name on <self:MProperty> */
4051 if (unlikely(var2
== NULL
)) {
4052 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _full_name");
4053 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1936);
4058 if (unlikely(varonce
==NULL
)) {
4059 var5
= NEW_standard__NativeArray(5l, &type_standard__NativeArray__standard__String
);
4060 if (likely(varonce6
!=NULL
)) {
4064 var9
= standard___standard__NativeString___to_s_with_length(var8
, 2l);
4068 ((struct instance_standard__NativeArray
*)var5
)->values
[1]=var7
;
4069 if (likely(varonce10
!=NULL
)) {
4073 var13
= standard___standard__NativeString___to_s_with_length(var12
, 2l);
4077 ((struct instance_standard__NativeArray
*)var5
)->values
[3]=var11
;
4083 { /* Inline model#MProperty#intro_mclassdef (self) on <self:MProperty> */
4084 var16
= self
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
4085 if (unlikely(var16
== NULL
)) {
4086 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
4087 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
4091 RET_LABEL15
:(void)0;
4095 { /* Inline model#MClassDef#mmodule (var14) on <var14:MClassDef> */
4096 var19
= var14
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var14:MClassDef> */
4097 if (unlikely(var19
== NULL
)) {
4098 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
4099 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
4103 RET_LABEL18
:(void)0;
4107 { /* Inline model#MProperty#visibility (self) on <self:MProperty> */
4108 var22
= self
->attrs
[COLOR_nit__model__MProperty___visibility
].val
; /* _visibility on <self:MProperty> */
4109 if (unlikely(var22
== NULL
)) {
4110 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _visibility");
4111 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1949);
4115 RET_LABEL21
:(void)0;
4119 var23
= nit___nit__MModule___namespace_for(var17
, var20
);
4121 ((struct instance_standard__NativeArray
*)var5
)->values
[0]=var23
;
4123 { /* Inline model#MProperty#intro_mclassdef (self) on <self:MProperty> */
4124 var26
= self
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
4125 if (unlikely(var26
== NULL
)) {
4126 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
4127 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
4131 RET_LABEL25
:(void)0;
4135 { /* Inline model#MClassDef#mclass (var24) on <var24:MClassDef> */
4136 var29
= var24
->attrs
[COLOR_nit__model__MClassDef___mclass
].val
; /* _mclass on <var24:MClassDef> */
4137 if (unlikely(var29
== NULL
)) {
4138 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
4139 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 553);
4143 RET_LABEL28
:(void)0;
4147 { /* Inline model#MClass#name (var27) on <var27:MClass> */
4148 var32
= var27
->attrs
[COLOR_nit__model__MClass___name
].val
; /* _name on <var27:MClass> */
4149 if (unlikely(var32
== NULL
)) {
4150 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4151 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 362);
4155 RET_LABEL31
:(void)0;
4158 ((struct instance_standard__NativeArray
*)var5
)->values
[2]=var30
;
4160 { /* Inline model#MProperty#name (self) on <self:MProperty> */
4161 var35
= self
->attrs
[COLOR_nit__model__MProperty___name
].val
; /* _name on <self:MProperty> */
4162 if (unlikely(var35
== NULL
)) {
4163 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4164 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1933);
4168 RET_LABEL34
:(void)0;
4171 ((struct instance_standard__NativeArray
*)var5
)->values
[4]=var33
;
4173 var36
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var5
); /* native_to_s on <var5:NativeArray[String]>*/
4180 self
->attrs
[COLOR_nit__model__MProperty___full_name
].val
= var3
; /* _full_name on <self:MProperty> */
4187 /* method model#MProperty#c_name for (self: MProperty): String */
4188 val
* nit___nit__MProperty___nit__model_base__MEntity__c_name(val
* self
) {
4189 val
* var
/* : String */;
4190 short int var1
/* : Bool */;
4191 val
* var2
/* : String */;
4192 val
* var3
/* : String */;
4193 val
* var5
/* : NativeArray[String] */;
4194 static val
* varonce
;
4195 static val
* varonce6
;
4196 val
* var7
/* : String */;
4197 char* var8
/* : NativeString */;
4198 val
* var9
/* : FlatString */;
4199 static val
* varonce10
;
4200 val
* var11
/* : String */;
4201 char* var12
/* : NativeString */;
4202 val
* var13
/* : FlatString */;
4203 val
* var14
/* : MClassDef */;
4204 val
* var16
/* : MClassDef */;
4205 val
* var17
/* : MModule */;
4206 val
* var19
/* : MModule */;
4207 val
* var20
/* : String */;
4208 val
* var21
/* : MClassDef */;
4209 val
* var23
/* : MClassDef */;
4210 val
* var24
/* : MClass */;
4211 val
* var26
/* : MClass */;
4212 val
* var27
/* : String */;
4213 val
* var29
/* : String */;
4214 val
* var30
/* : String */;
4215 val
* var31
/* : String */;
4216 val
* var33
/* : String */;
4217 val
* var34
/* : String */;
4218 val
* var35
/* : String */;
4219 var1
= self
->attrs
[COLOR_nit__model__MProperty___c_name
].val
!= NULL
; /* _c_name on <self:MProperty> */
4221 var2
= self
->attrs
[COLOR_nit__model__MProperty___c_name
].val
; /* _c_name on <self:MProperty> */
4222 if (unlikely(var2
== NULL
)) {
4223 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _c_name");
4224 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1944);
4229 if (unlikely(varonce
==NULL
)) {
4230 var5
= NEW_standard__NativeArray(5l, &type_standard__NativeArray__standard__String
);
4231 if (likely(varonce6
!=NULL
)) {
4235 var9
= standard___standard__NativeString___to_s_with_length(var8
, 2l);
4239 ((struct instance_standard__NativeArray
*)var5
)->values
[1]=var7
;
4240 if (likely(varonce10
!=NULL
)) {
4244 var13
= standard___standard__NativeString___to_s_with_length(var12
, 2l);
4248 ((struct instance_standard__NativeArray
*)var5
)->values
[3]=var11
;
4254 { /* Inline model#MProperty#intro_mclassdef (self) on <self:MProperty> */
4255 var16
= self
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
4256 if (unlikely(var16
== NULL
)) {
4257 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
4258 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
4262 RET_LABEL15
:(void)0;
4266 { /* Inline model#MClassDef#mmodule (var14) on <var14:MClassDef> */
4267 var19
= var14
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var14:MClassDef> */
4268 if (unlikely(var19
== NULL
)) {
4269 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
4270 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
4274 RET_LABEL18
:(void)0;
4278 var20
= nit___nit__MModule___nit__model_base__MEntity__c_name(var17
);
4280 ((struct instance_standard__NativeArray
*)var5
)->values
[0]=var20
;
4282 { /* Inline model#MProperty#intro_mclassdef (self) on <self:MProperty> */
4283 var23
= self
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
4284 if (unlikely(var23
== NULL
)) {
4285 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
4286 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
4290 RET_LABEL22
:(void)0;
4294 { /* Inline model#MClassDef#mclass (var21) on <var21:MClassDef> */
4295 var26
= var21
->attrs
[COLOR_nit__model__MClassDef___mclass
].val
; /* _mclass on <var21:MClassDef> */
4296 if (unlikely(var26
== NULL
)) {
4297 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
4298 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 553);
4302 RET_LABEL25
:(void)0;
4306 { /* Inline model#MClass#name (var24) on <var24:MClass> */
4307 var29
= var24
->attrs
[COLOR_nit__model__MClass___name
].val
; /* _name on <var24:MClass> */
4308 if (unlikely(var29
== NULL
)) {
4309 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4310 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 362);
4314 RET_LABEL28
:(void)0;
4318 var30
= standard___standard__Text___to_cmangle(var27
);
4320 ((struct instance_standard__NativeArray
*)var5
)->values
[2]=var30
;
4322 { /* Inline model#MProperty#name (self) on <self:MProperty> */
4323 var33
= self
->attrs
[COLOR_nit__model__MProperty___name
].val
; /* _name on <self:MProperty> */
4324 if (unlikely(var33
== NULL
)) {
4325 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4326 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1933);
4330 RET_LABEL32
:(void)0;
4334 var34
= standard___standard__Text___to_cmangle(var31
);
4336 ((struct instance_standard__NativeArray
*)var5
)->values
[4]=var34
;
4338 var35
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var5
); /* native_to_s on <var5:NativeArray[String]>*/
4345 self
->attrs
[COLOR_nit__model__MProperty___c_name
].val
= var3
; /* _c_name on <self:MProperty> */
4352 /* method model#MProperty#visibility for (self: MProperty): MVisibility */
4353 val
* nit___nit__MProperty___visibility(val
* self
) {
4354 val
* var
/* : MVisibility */;
4355 val
* var1
/* : MVisibility */;
4356 var1
= self
->attrs
[COLOR_nit__model__MProperty___visibility
].val
; /* _visibility on <self:MProperty> */
4357 if (unlikely(var1
== NULL
)) {
4358 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _visibility");
4359 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1949);
4366 /* method model#MProperty#visibility= for (self: MProperty, MVisibility) */
4367 void nit___nit__MProperty___visibility_61d(val
* self
, val
* p0
) {
4368 self
->attrs
[COLOR_nit__model__MProperty___visibility
].val
= p0
; /* _visibility on <self:MProperty> */
4371 /* method model#MProperty#is_autoinit for (self: MProperty): Bool */
4372 short int nit___nit__MProperty___is_autoinit(val
* self
) {
4373 short int var
/* : Bool */;
4374 short int var1
/* : Bool */;
4375 var1
= self
->attrs
[COLOR_nit__model__MProperty___is_autoinit
].s
; /* _is_autoinit on <self:MProperty> */
4380 /* method model#MProperty#is_autoinit= for (self: MProperty, Bool) */
4381 void nit___nit__MProperty___is_autoinit_61d(val
* self
, short int p0
) {
4382 self
->attrs
[COLOR_nit__model__MProperty___is_autoinit
].s
= p0
; /* _is_autoinit on <self:MProperty> */
4385 /* method model#MProperty#init for (self: MProperty) */
4386 void nit___nit__MProperty___standard__kernel__Object__init(val
* self
) {
4387 val
* var
/* : MClassDef */;
4388 val
* var2
/* : MClassDef */;
4389 val
* var3
/* : Array[MProperty] */;
4390 val
* var5
/* : Array[MProperty] */;
4391 val
* var6
/* : MClassDef */;
4392 val
* var8
/* : MClassDef */;
4393 val
* var9
/* : MModule */;
4394 val
* var11
/* : MModule */;
4395 val
* var12
/* : Model */;
4396 val
* var14
/* : Model */;
4397 val
* var_model
/* var model: Model */;
4398 val
* var15
/* : MultiHashMap[String, MProperty] */;
4399 val
* var17
/* : MultiHashMap[String, MProperty] */;
4400 val
* var18
/* : String */;
4401 val
* var20
/* : String */;
4402 val
* var21
/* : Array[MProperty] */;
4403 val
* var23
/* : Array[MProperty] */;
4405 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nit___nit__MProperty___standard__kernel__Object__init
]))(self
); /* init on <self:MProperty>*/
4408 { /* Inline model#MProperty#intro_mclassdef (self) on <self:MProperty> */
4409 var2
= self
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
4410 if (unlikely(var2
== NULL
)) {
4411 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
4412 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
4420 { /* Inline model#MClassDef#intro_mproperties (var) on <var:MClassDef> */
4421 var5
= var
->attrs
[COLOR_nit__model__MClassDef___intro_mproperties
].val
; /* _intro_mproperties on <var:MClassDef> */
4422 if (unlikely(var5
== NULL
)) {
4423 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mproperties");
4424 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 681);
4432 standard___standard__Array___standard__abstract_collection__SimpleCollection__add(var3
, self
); /* Direct call array#Array#add on <var3:Array[MProperty]>*/
4435 { /* Inline model#MProperty#intro_mclassdef (self) on <self:MProperty> */
4436 var8
= self
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
4437 if (unlikely(var8
== NULL
)) {
4438 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
4439 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
4447 { /* Inline model#MClassDef#mmodule (var6) on <var6:MClassDef> */
4448 var11
= var6
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var6:MClassDef> */
4449 if (unlikely(var11
== NULL
)) {
4450 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
4451 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
4455 RET_LABEL10
:(void)0;
4459 { /* Inline mmodule#MModule#model (var9) on <var9:MModule> */
4460 var14
= var9
->attrs
[COLOR_nit__mmodule__MModule___model
].val
; /* _model on <var9:MModule> */
4461 if (unlikely(var14
== NULL
)) {
4462 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _model");
4463 PRINT_ERROR(" (%s:%d)\n", FILE_nit__mmodule
, 73);
4467 RET_LABEL13
:(void)0;
4472 { /* Inline model#Model#mproperties_by_name (var_model) on <var_model:Model> */
4473 var17
= var_model
->attrs
[COLOR_nit__model__Model___mproperties_by_name
].val
; /* _mproperties_by_name on <var_model:Model> */
4474 if (unlikely(var17
== NULL
)) {
4475 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperties_by_name");
4476 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 80);
4480 RET_LABEL16
:(void)0;
4484 { /* Inline model#MProperty#name (self) on <self:MProperty> */
4485 var20
= self
->attrs
[COLOR_nit__model__MProperty___name
].val
; /* _name on <self:MProperty> */
4486 if (unlikely(var20
== NULL
)) {
4487 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4488 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1933);
4492 RET_LABEL19
:(void)0;
4496 more_collections___more_collections__MultiHashMap___add_one(var15
, var18
, self
); /* Direct call more_collections#MultiHashMap#add_one on <var15:MultiHashMap[String, MProperty]>*/
4499 { /* Inline model#Model#mproperties (var_model) on <var_model:Model> */
4500 var23
= var_model
->attrs
[COLOR_nit__model__Model___mproperties
].val
; /* _mproperties on <var_model:Model> */
4501 if (unlikely(var23
== NULL
)) {
4502 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperties");
4503 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 37);
4507 RET_LABEL22
:(void)0;
4511 standard___standard__Array___standard__abstract_collection__SimpleCollection__add(var21
, self
); /* Direct call array#Array#add on <var21:Array[MProperty]>*/
4515 /* method model#MProperty#mpropdefs for (self: MProperty): Array[MPropDef] */
4516 val
* nit___nit__MProperty___mpropdefs(val
* self
) {
4517 val
* var
/* : Array[MPropDef] */;
4518 val
* var1
/* : Array[MPropDef] */;
4519 var1
= self
->attrs
[COLOR_nit__model__MProperty___mpropdefs
].val
; /* _mpropdefs on <self:MProperty> */
4520 if (unlikely(var1
== NULL
)) {
4521 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mpropdefs");
4522 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1963);
4529 /* method model#MProperty#intro for (self: MProperty): MPropDef */
4530 val
* nit___nit__MProperty___intro(val
* self
) {
4531 val
* var
/* : MPropDef */;
4532 val
* var1
/* : MPropDef */;
4533 var1
= self
->attrs
[COLOR_nit__model__MProperty___intro
].val
; /* _intro on <self:MProperty> */
4534 if (unlikely(var1
== NULL
)) {
4535 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro");
4536 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1968);
4543 /* method model#MProperty#intro= for (self: MProperty, MPropDef) */
4544 void nit___nit__MProperty___intro_61d(val
* self
, val
* p0
) {
4545 short int var
/* : Bool */;
4548 const struct type
* type_struct
;
4549 const char* var_class_name
;
4550 /* Covariant cast for argument 0 (intro) <p0:MPropDef> isa MPROPDEF */
4551 /* <p0:MPropDef> isa MPROPDEF */
4552 type_struct
= self
->type
->resolution_table
->types
[COLOR_nit__model__MProperty__MPROPDEF
];
4553 cltype
= type_struct
->color
;
4554 idtype
= type_struct
->id
;
4555 if(cltype
>= p0
->type
->table_size
) {
4558 var
= p0
->type
->type_table
[cltype
] == idtype
;
4560 if (unlikely(!var
)) {
4561 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
4562 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "MPROPDEF", var_class_name
);
4563 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1968);
4566 self
->attrs
[COLOR_nit__model__MProperty___intro
].val
= p0
; /* _intro on <self:MProperty> */
4569 /* method model#MProperty#model for (self: MProperty): Model */
4570 val
* nit___nit__MProperty___nit__model_base__MEntity__model(val
* self
) {
4571 val
* var
/* : Model */;
4572 val
* var1
/* : MPropDef */;
4573 val
* var3
/* : MPropDef */;
4574 val
* var4
/* : Model */;
4576 { /* Inline model#MProperty#intro (self) on <self:MProperty> */
4577 var3
= self
->attrs
[COLOR_nit__model__MProperty___intro
].val
; /* _intro on <self:MProperty> */
4578 if (unlikely(var3
== NULL
)) {
4579 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro");
4580 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1968);
4588 var4
= nit___nit__MPropDef___nit__model_base__MEntity__model(var1
);
4595 /* method model#MProperty#to_s for (self: MProperty): String */
4596 val
* nit___nit__MProperty___standard__string__Object__to_s(val
* self
) {
4597 val
* var
/* : String */;
4598 val
* var1
/* : String */;
4599 val
* var3
/* : String */;
4601 { /* Inline model#MProperty#name (self) on <self:MProperty> */
4602 var3
= self
->attrs
[COLOR_nit__model__MProperty___name
].val
; /* _name on <self:MProperty> */
4603 if (unlikely(var3
== NULL
)) {
4604 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4605 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1933);
4617 /* method model#MProperty#lookup_definitions for (self: MProperty, MModule, MType): Array[MPropDef] */
4618 val
* nit___nit__MProperty___lookup_definitions(val
* self
, val
* p0
, val
* p1
) {
4619 val
* var
/* : Array[MPropDef] */;
4620 val
* var_mmodule
/* var mmodule: MModule */;
4621 val
* var_mtype
/* var mtype: MType */;
4622 short int var1
/* : Bool */;
4623 short int var2
/* : Bool */;
4624 val
* var3
/* : MType */;
4625 val
* var4
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
4626 val
* var6
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
4627 val
* var7
/* : nullable Object */;
4628 val
* var_cache
/* var cache: nullable Array[MPropDef] */;
4629 short int var8
/* : Bool */;
4630 short int var9
/* : Bool */;
4631 val
* var_other
/* var other: nullable Object */;
4632 short int var11
/* : Bool */;
4633 short int var12
/* : Bool */;
4634 val
* var13
/* : Array[MPropDef] */;
4635 val
* var_candidates
/* var candidates: Array[MPropDef] */;
4636 val
* var14
/* : Array[MPropDef] */;
4637 val
* var16
/* : Array[MPropDef] */;
4638 val
* var_
/* var : Array[MPropDef] */;
4639 val
* var17
/* : ArrayIterator[nullable Object] */;
4640 val
* var_18
/* var : ArrayIterator[MPropDef] */;
4641 short int var19
/* : Bool */;
4642 val
* var20
/* : nullable Object */;
4643 val
* var_mpropdef
/* var mpropdef: MPropDef */;
4644 val
* var21
/* : POSetElement[MModule] */;
4645 val
* var23
/* : POSetElement[MModule] */;
4646 val
* var24
/* : MClassDef */;
4647 val
* var26
/* : MClassDef */;
4648 val
* var27
/* : MModule */;
4649 val
* var29
/* : MModule */;
4650 short int var30
/* : Bool */;
4651 short int var31
/* : Bool */;
4652 val
* var32
/* : MClassDef */;
4653 val
* var34
/* : MClassDef */;
4654 val
* var35
/* : MClassType */;
4655 val
* var37
/* : MClassType */;
4656 short int var38
/* : Bool */;
4657 short int var39
/* : Bool */;
4658 long var41
/* : Int */;
4659 long var43
/* : Int */;
4660 short int var44
/* : Bool */;
4661 short int var46
/* : Bool */;
4664 const char* var_class_name
;
4665 short int var47
/* : Bool */;
4666 val
* var48
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
4667 val
* var50
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
4668 val
* var51
/* : Array[MPropDef] */;
4672 var1
= ((short int(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nit__model__MType__need_anchor
]))(var_mtype
); /* need_anchor on <var_mtype:MType>*/
4675 if (unlikely(!var2
)) {
4676 PRINT_ERROR("Runtime error: %s", "Assert failed");
4677 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1990);
4681 var3
= ((val
*(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nit__model__MType__undecorate
]))(var_mtype
); /* undecorate on <var_mtype:MType>*/
4685 { /* Inline model#MProperty#lookup_definitions_cache (self) on <self:MProperty> */
4686 var6
= self
->attrs
[COLOR_nit__model__MProperty___lookup_definitions_cache
].val
; /* _lookup_definitions_cache on <self:MProperty> */
4687 if (unlikely(var6
== NULL
)) {
4688 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_definitions_cache");
4689 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2017);
4697 var7
= more_collections___more_collections__HashMap2____91d_93d(var4
, var_mmodule
, var_mtype
);
4700 if (var_cache
== NULL
) {
4701 var8
= 0; /* is null */
4703 var8
= 1; /* arg is null and recv is not */
4706 { /* Inline kernel#Object#!= (var_cache,((val*)NULL)) on <var_cache:nullable Array[MPropDef]> */
4707 var_other
= ((val
*)NULL
);
4709 var11
= ((short int(*)(val
* self
, val
* p0
))(var_cache
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_cache
, var_other
); /* == on <var_cache:nullable Array[MPropDef](Array[MPropDef])>*/
4714 RET_LABEL10
:(void)0;
4723 var13
= NEW_standard__Array(self
->type
->resolution_table
->types
[COLOR_standard__Array__nit__model__MProperty__MPROPDEF
]);
4725 standard___standard__Array___standard__kernel__Object__init(var13
); /* Direct call array#Array#init on <var13:Array[MPropDef]>*/
4727 var_candidates
= var13
;
4729 { /* Inline model#MProperty#mpropdefs (self) on <self:MProperty> */
4730 var16
= self
->attrs
[COLOR_nit__model__MProperty___mpropdefs
].val
; /* _mpropdefs on <self:MProperty> */
4731 if (unlikely(var16
== NULL
)) {
4732 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mpropdefs");
4733 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1963);
4737 RET_LABEL15
:(void)0;
4742 var17
= standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(var_
);
4747 var19
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(var_18
);
4751 var20
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(var_18
);
4753 var_mpropdef
= var20
;
4755 { /* Inline mmodule#MModule#in_importation (var_mmodule) on <var_mmodule:MModule> */
4756 var23
= var_mmodule
->attrs
[COLOR_nit__mmodule__MModule___in_importation
].val
; /* _in_importation on <var_mmodule:MModule> */
4757 if (unlikely(var23
== NULL
)) {
4758 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _in_importation");
4759 PRINT_ERROR(" (%s:%d)\n", FILE_nit__mmodule
, 96);
4763 RET_LABEL22
:(void)0;
4767 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
4768 var26
= var_mpropdef
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
4769 if (unlikely(var26
== NULL
)) {
4770 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
4771 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
4775 RET_LABEL25
:(void)0;
4779 { /* Inline model#MClassDef#mmodule (var24) on <var24:MClassDef> */
4780 var29
= var24
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var24:MClassDef> */
4781 if (unlikely(var29
== NULL
)) {
4782 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
4783 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
4787 RET_LABEL28
:(void)0;
4791 var30
= poset___poset__POSetElement____60d_61d(var21
, var27
);
4799 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
4800 var34
= var_mpropdef
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
4801 if (unlikely(var34
== NULL
)) {
4802 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
4803 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
4807 RET_LABEL33
:(void)0;
4811 { /* Inline model#MClassDef#bound_mtype (var32) on <var32:MClassDef> */
4812 var37
= var32
->attrs
[COLOR_nit__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var32:MClassDef> */
4813 if (unlikely(var37
== NULL
)) {
4814 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
4815 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 556);
4819 RET_LABEL36
:(void)0;
4823 var38
= nit___nit__MType___is_subtype(var_mtype
, var_mmodule
, ((val
*)NULL
), var35
);
4831 standard___standard__Array___standard__abstract_collection__SimpleCollection__add(var_candidates
, var_mpropdef
); /* Direct call array#Array#add on <var_candidates:Array[MPropDef]>*/
4833 BREAK_label
: (void)0;
4835 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(var_18
); /* Direct call array#ArrayIterator#next on <var_18:ArrayIterator[MPropDef]>*/
4841 BREAK_label40
: (void)0;
4843 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__finish(var_18
); /* Direct call array#ArrayIterator#finish on <var_18:ArrayIterator[MPropDef]>*/
4846 { /* Inline array#AbstractArrayRead#length (var_candidates) on <var_candidates:Array[MPropDef]> */
4847 var43
= var_candidates
->attrs
[COLOR_standard__array__AbstractArrayRead___length
].l
; /* _length on <var_candidates:Array[MPropDef]> */
4849 RET_LABEL42
:(void)0;
4853 { /* Inline kernel#Int#<= (var41,1l) on <var41:Int> */
4854 /* Covariant cast for argument 0 (i) <1l:Int> isa OTHER */
4855 /* <1l:Int> isa OTHER */
4856 var46
= 1; /* easy <1l:Int> isa OTHER*/
4857 if (unlikely(!var46
)) {
4858 var_class_name
= type_standard__Int
.name
;
4859 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
4860 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 533);
4863 var47
= var41
<= 1l;
4866 RET_LABEL45
:(void)0;
4871 { /* Inline model#MProperty#lookup_definitions_cache (self) on <self:MProperty> */
4872 var50
= self
->attrs
[COLOR_nit__model__MProperty___lookup_definitions_cache
].val
; /* _lookup_definitions_cache on <self:MProperty> */
4873 if (unlikely(var50
== NULL
)) {
4874 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_definitions_cache");
4875 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2017);
4879 RET_LABEL49
:(void)0;
4883 more_collections___more_collections__HashMap2____91d_93d_61d(var48
, var_mmodule
, var_mtype
, var_candidates
); /* Direct call more_collections#HashMap2#[]= on <var48:HashMap2[MModule, MType, Array[MPropDef]]>*/
4885 var
= var_candidates
;
4890 var51
= nit___nit__MProperty___select_most_specific(self
, var_mmodule
, var_candidates
);
4897 /* method model#MProperty#lookup_definitions_cache for (self: MProperty): HashMap2[MModule, MType, Array[MPropDef]] */
4898 val
* nit___nit__MProperty___lookup_definitions_cache(val
* self
) {
4899 val
* var
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
4900 val
* var1
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
4901 var1
= self
->attrs
[COLOR_nit__model__MProperty___lookup_definitions_cache
].val
; /* _lookup_definitions_cache on <self:MProperty> */
4902 if (unlikely(var1
== NULL
)) {
4903 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_definitions_cache");
4904 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2017);
4911 /* method model#MProperty#lookup_super_definitions for (self: MProperty, MModule, MType): Array[MPropDef] */
4912 val
* nit___nit__MProperty___lookup_super_definitions(val
* self
, val
* p0
, val
* p1
) {
4913 val
* var
/* : Array[MPropDef] */;
4914 val
* var_mmodule
/* var mmodule: MModule */;
4915 val
* var_mtype
/* var mtype: MType */;
4916 short int var1
/* : Bool */;
4917 short int var2
/* : Bool */;
4918 val
* var3
/* : MType */;
4919 val
* var4
/* : Array[MPropDef] */;
4920 val
* var_candidates
/* var candidates: Array[MPropDef] */;
4921 val
* var5
/* : Array[MPropDef] */;
4922 val
* var7
/* : Array[MPropDef] */;
4923 val
* var_
/* var : Array[MPropDef] */;
4924 val
* var8
/* : ArrayIterator[nullable Object] */;
4925 val
* var_9
/* var : ArrayIterator[MPropDef] */;
4926 short int var10
/* : Bool */;
4927 val
* var11
/* : nullable Object */;
4928 val
* var_mpropdef
/* var mpropdef: MPropDef */;
4929 val
* var12
/* : POSetElement[MModule] */;
4930 val
* var14
/* : POSetElement[MModule] */;
4931 val
* var15
/* : MClassDef */;
4932 val
* var17
/* : MClassDef */;
4933 val
* var18
/* : MModule */;
4934 val
* var20
/* : MModule */;
4935 short int var21
/* : Bool */;
4936 short int var22
/* : Bool */;
4937 val
* var23
/* : MClassDef */;
4938 val
* var25
/* : MClassDef */;
4939 val
* var26
/* : MClassType */;
4940 val
* var28
/* : MClassType */;
4941 short int var29
/* : Bool */;
4942 short int var30
/* : Bool */;
4943 short int var31
/* : Bool */;
4944 val
* var32
/* : MClassDef */;
4945 val
* var34
/* : MClassDef */;
4946 val
* var35
/* : MClassType */;
4947 val
* var37
/* : MClassType */;
4948 short int var38
/* : Bool */;
4949 val
* var_other
/* var other: nullable Object */;
4950 short int var40
/* : Bool */;
4951 short int var42
/* : Bool */;
4952 short int var_43
/* var : Bool */;
4953 val
* var44
/* : MClassDef */;
4954 val
* var46
/* : MClassDef */;
4955 val
* var47
/* : MModule */;
4956 val
* var49
/* : MModule */;
4957 short int var50
/* : Bool */;
4958 short int var52
/* : Bool */;
4959 short int var54
/* : Bool */;
4960 long var56
/* : Int */;
4961 long var58
/* : Int */;
4962 short int var59
/* : Bool */;
4963 short int var61
/* : Bool */;
4966 const char* var_class_name
;
4967 short int var62
/* : Bool */;
4968 val
* var63
/* : Array[MPropDef] */;
4972 var1
= ((short int(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nit__model__MType__need_anchor
]))(var_mtype
); /* need_anchor on <var_mtype:MType>*/
4975 if (unlikely(!var2
)) {
4976 PRINT_ERROR("Runtime error: %s", "Assert failed");
4977 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2030);
4981 var3
= ((val
*(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nit__model__MType__undecorate
]))(var_mtype
); /* undecorate on <var_mtype:MType>*/
4984 var4
= NEW_standard__Array(self
->type
->resolution_table
->types
[COLOR_standard__Array__nit__model__MProperty__MPROPDEF
]);
4986 standard___standard__Array___standard__kernel__Object__init(var4
); /* Direct call array#Array#init on <var4:Array[MPropDef]>*/
4988 var_candidates
= var4
;
4990 { /* Inline model#MProperty#mpropdefs (self) on <self:MProperty> */
4991 var7
= self
->attrs
[COLOR_nit__model__MProperty___mpropdefs
].val
; /* _mpropdefs on <self:MProperty> */
4992 if (unlikely(var7
== NULL
)) {
4993 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mpropdefs");
4994 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1963);
5003 var8
= standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(var_
);
5008 var10
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(var_9
);
5012 var11
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(var_9
);
5014 var_mpropdef
= var11
;
5016 { /* Inline mmodule#MModule#in_importation (var_mmodule) on <var_mmodule:MModule> */
5017 var14
= var_mmodule
->attrs
[COLOR_nit__mmodule__MModule___in_importation
].val
; /* _in_importation on <var_mmodule:MModule> */
5018 if (unlikely(var14
== NULL
)) {
5019 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _in_importation");
5020 PRINT_ERROR(" (%s:%d)\n", FILE_nit__mmodule
, 96);
5024 RET_LABEL13
:(void)0;
5028 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
5029 var17
= var_mpropdef
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
5030 if (unlikely(var17
== NULL
)) {
5031 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5032 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
5036 RET_LABEL16
:(void)0;
5040 { /* Inline model#MClassDef#mmodule (var15) on <var15:MClassDef> */
5041 var20
= var15
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var15:MClassDef> */
5042 if (unlikely(var20
== NULL
)) {
5043 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
5044 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
5048 RET_LABEL19
:(void)0;
5052 var21
= poset___poset__POSetElement____60d_61d(var12
, var18
);
5060 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
5061 var25
= var_mpropdef
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
5062 if (unlikely(var25
== NULL
)) {
5063 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5064 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
5068 RET_LABEL24
:(void)0;
5072 { /* Inline model#MClassDef#bound_mtype (var23) on <var23:MClassDef> */
5073 var28
= var23
->attrs
[COLOR_nit__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var23:MClassDef> */
5074 if (unlikely(var28
== NULL
)) {
5075 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
5076 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 556);
5080 RET_LABEL27
:(void)0;
5084 var29
= nit___nit__MType___is_subtype(var_mtype
, var_mmodule
, ((val
*)NULL
), var26
);
5092 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
5093 var34
= var_mpropdef
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
5094 if (unlikely(var34
== NULL
)) {
5095 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5096 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
5100 RET_LABEL33
:(void)0;
5104 { /* Inline model#MClassDef#bound_mtype (var32) on <var32:MClassDef> */
5105 var37
= var32
->attrs
[COLOR_nit__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var32:MClassDef> */
5106 if (unlikely(var37
== NULL
)) {
5107 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
5108 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 556);
5112 RET_LABEL36
:(void)0;
5116 { /* Inline kernel#Object#== (var_mtype,var35) on <var_mtype:MType> */
5119 { /* Inline kernel#Object#is_same_instance (var_mtype,var_other) on <var_mtype:MType> */
5120 var42
= var_mtype
== var_other
;
5123 RET_LABEL41
:(void)0;
5128 RET_LABEL39
:(void)0;
5134 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
5135 var46
= var_mpropdef
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
5136 if (unlikely(var46
== NULL
)) {
5137 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5138 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
5142 RET_LABEL45
:(void)0;
5146 { /* Inline model#MClassDef#mmodule (var44) on <var44:MClassDef> */
5147 var49
= var44
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var44:MClassDef> */
5148 if (unlikely(var49
== NULL
)) {
5149 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
5150 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
5154 RET_LABEL48
:(void)0;
5158 { /* Inline kernel#Object#== (var_mmodule,var47) on <var_mmodule:MModule> */
5161 { /* Inline kernel#Object#is_same_instance (var_mmodule,var_other) on <var_mmodule:MModule> */
5162 var54
= var_mmodule
== var_other
;
5165 RET_LABEL53
:(void)0;
5170 RET_LABEL51
:(void)0;
5182 standard___standard__Array___standard__abstract_collection__SimpleCollection__add(var_candidates
, var_mpropdef
); /* Direct call array#Array#add on <var_candidates:Array[MPropDef]>*/
5184 BREAK_label
: (void)0;
5186 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(var_9
); /* Direct call array#ArrayIterator#next on <var_9:ArrayIterator[MPropDef]>*/
5192 BREAK_label55
: (void)0;
5194 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__finish(var_9
); /* Direct call array#ArrayIterator#finish on <var_9:ArrayIterator[MPropDef]>*/
5197 { /* Inline array#AbstractArrayRead#length (var_candidates) on <var_candidates:Array[MPropDef]> */
5198 var58
= var_candidates
->attrs
[COLOR_standard__array__AbstractArrayRead___length
].l
; /* _length on <var_candidates:Array[MPropDef]> */
5200 RET_LABEL57
:(void)0;
5204 { /* Inline kernel#Int#<= (var56,1l) on <var56:Int> */
5205 /* Covariant cast for argument 0 (i) <1l:Int> isa OTHER */
5206 /* <1l:Int> isa OTHER */
5207 var61
= 1; /* easy <1l:Int> isa OTHER*/
5208 if (unlikely(!var61
)) {
5209 var_class_name
= type_standard__Int
.name
;
5210 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
5211 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 533);
5214 var62
= var56
<= 1l;
5217 RET_LABEL60
:(void)0;
5221 var
= var_candidates
;
5226 var63
= nit___nit__MProperty___select_most_specific(self
, var_mmodule
, var_candidates
);
5233 /* method model#MProperty#select_most_specific for (self: MProperty, MModule, Array[MPropDef]): Array[MPropDef] */
5234 val
* nit___nit__MProperty___select_most_specific(val
* self
, val
* p0
, val
* p1
) {
5235 val
* var
/* : Array[MPropDef] */;
5236 short int var1
/* : Bool */;
5239 const struct type
* type_struct
;
5240 const char* var_class_name
;
5241 val
* var_mmodule
/* var mmodule: MModule */;
5242 val
* var_candidates
/* var candidates: Array[MPropDef] */;
5243 val
* var2
/* : Array[MPropDef] */;
5244 val
* var_res
/* var res: Array[MPropDef] */;
5245 val
* var_
/* var : Array[MPropDef] */;
5246 val
* var3
/* : ArrayIterator[nullable Object] */;
5247 val
* var_4
/* var : ArrayIterator[MPropDef] */;
5248 short int var5
/* : Bool */;
5249 val
* var6
/* : nullable Object */;
5250 val
* var_pd1
/* var pd1: MPropDef */;
5251 val
* var7
/* : MClassDef */;
5252 val
* var9
/* : MClassDef */;
5253 val
* var_cd1
/* var cd1: MClassDef */;
5254 val
* var10
/* : MClass */;
5255 val
* var12
/* : MClass */;
5256 val
* var_c1
/* var c1: MClass */;
5257 short int var_keep
/* var keep: Bool */;
5258 val
* var_13
/* var : Array[MPropDef] */;
5259 val
* var14
/* : ArrayIterator[nullable Object] */;
5260 val
* var_15
/* var : ArrayIterator[MPropDef] */;
5261 short int var16
/* : Bool */;
5262 val
* var17
/* : nullable Object */;
5263 val
* var_pd2
/* var pd2: MPropDef */;
5264 short int var18
/* : Bool */;
5265 val
* var_other
/* var other: nullable Object */;
5266 short int var20
/* : Bool */;
5267 short int var22
/* : Bool */;
5268 val
* var23
/* : MClassDef */;
5269 val
* var25
/* : MClassDef */;
5270 val
* var_cd2
/* var cd2: MClassDef */;
5271 val
* var26
/* : MClass */;
5272 val
* var28
/* : MClass */;
5273 val
* var_c2
/* var c2: MClass */;
5274 val
* var29
/* : MClassType */;
5275 val
* var31
/* : MClassType */;
5276 val
* var32
/* : MClassType */;
5277 val
* var34
/* : MClassType */;
5278 short int var35
/* : Bool */;
5279 short int var37
/* : Bool */;
5280 short int var39
/* : Bool */;
5281 val
* var40
/* : MModule */;
5282 val
* var42
/* : MModule */;
5283 val
* var43
/* : POSetElement[MModule] */;
5284 val
* var45
/* : POSetElement[MModule] */;
5285 val
* var46
/* : MModule */;
5286 val
* var48
/* : MModule */;
5287 short int var49
/* : Bool */;
5288 short int var51
/* : Bool */;
5289 val
* var52
/* : MClassType */;
5290 val
* var54
/* : MClassType */;
5291 val
* var55
/* : MClassType */;
5292 val
* var57
/* : MClassType */;
5293 short int var58
/* : Bool */;
5294 short int var_59
/* var : Bool */;
5295 val
* var60
/* : MClassType */;
5296 val
* var62
/* : MClassType */;
5297 val
* var63
/* : MClassType */;
5298 val
* var65
/* : MClassType */;
5299 short int var66
/* : Bool */;
5300 val
* var_other68
/* var other: nullable Object */;
5301 short int var69
/* : Bool */;
5302 short int var70
/* : Bool */;
5303 short int var72
/* : Bool */;
5304 val
* var73
/* : Sys */;
5305 val
* var74
/* : NativeArray[String] */;
5306 static val
* varonce
;
5307 static val
* varonce75
;
5308 val
* var76
/* : String */;
5309 char* var77
/* : NativeString */;
5310 val
* var78
/* : FlatString */;
5311 static val
* varonce79
;
5312 val
* var80
/* : String */;
5313 char* var81
/* : NativeString */;
5314 val
* var82
/* : FlatString */;
5315 val
* var83
/* : String */;
5316 val
* var84
/* : String */;
5317 /* Covariant cast for argument 1 (candidates) <p1:Array[MPropDef]> isa Array[MPROPDEF] */
5318 /* <p1:Array[MPropDef]> isa Array[MPROPDEF] */
5319 type_struct
= self
->type
->resolution_table
->types
[COLOR_standard__Array__nit__model__MProperty__MPROPDEF
];
5320 cltype
= type_struct
->color
;
5321 idtype
= type_struct
->id
;
5322 if(cltype
>= p1
->type
->table_size
) {
5325 var1
= p1
->type
->type_table
[cltype
] == idtype
;
5327 if (unlikely(!var1
)) {
5328 var_class_name
= p1
== NULL ?
"null" : p1
->type
->name
;
5329 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "Array[MPROPDEF]", var_class_name
);
5330 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2052);
5334 var_candidates
= p1
;
5335 var2
= NEW_standard__Array(self
->type
->resolution_table
->types
[COLOR_standard__Array__nit__model__MProperty__MPROPDEF
]);
5337 standard___standard__Array___standard__kernel__Object__init(var2
); /* Direct call array#Array#init on <var2:Array[MPropDef]>*/
5340 var_
= var_candidates
;
5342 var3
= standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(var_
);
5347 var5
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(var_4
);
5351 var6
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(var_4
);
5355 { /* Inline model#MPropDef#mclassdef (var_pd1) on <var_pd1:MPropDef> */
5356 var9
= var_pd1
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_pd1:MPropDef> */
5357 if (unlikely(var9
== NULL
)) {
5358 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5359 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
5368 { /* Inline model#MClassDef#mclass (var_cd1) on <var_cd1:MClassDef> */
5369 var12
= var_cd1
->attrs
[COLOR_nit__model__MClassDef___mclass
].val
; /* _mclass on <var_cd1:MClassDef> */
5370 if (unlikely(var12
== NULL
)) {
5371 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
5372 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 553);
5376 RET_LABEL11
:(void)0;
5381 var_13
= var_candidates
;
5383 var14
= standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(var_13
);
5388 var16
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(var_15
);
5392 var17
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(var_15
);
5396 { /* Inline kernel#Object#== (var_pd2,var_pd1) on <var_pd2:MPropDef> */
5397 var_other
= var_pd1
;
5399 { /* Inline kernel#Object#is_same_instance (var_pd2,var_other) on <var_pd2:MPropDef> */
5400 var22
= var_pd2
== var_other
;
5403 RET_LABEL21
:(void)0;
5408 RET_LABEL19
:(void)0;
5416 { /* Inline model#MPropDef#mclassdef (var_pd2) on <var_pd2:MPropDef> */
5417 var25
= var_pd2
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_pd2:MPropDef> */
5418 if (unlikely(var25
== NULL
)) {
5419 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5420 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
5424 RET_LABEL24
:(void)0;
5429 { /* Inline model#MClassDef#mclass (var_cd2) on <var_cd2:MClassDef> */
5430 var28
= var_cd2
->attrs
[COLOR_nit__model__MClassDef___mclass
].val
; /* _mclass on <var_cd2:MClassDef> */
5431 if (unlikely(var28
== NULL
)) {
5432 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
5433 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 553);
5437 RET_LABEL27
:(void)0;
5442 { /* Inline model#MClass#mclass_type (var_c2) on <var_c2:MClass> */
5443 var31
= var_c2
->attrs
[COLOR_nit__model__MClass___mclass_type
].val
; /* _mclass_type on <var_c2:MClass> */
5444 if (unlikely(var31
== NULL
)) {
5445 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass_type");
5446 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 484);
5450 RET_LABEL30
:(void)0;
5454 { /* Inline model#MClass#mclass_type (var_c1) on <var_c1:MClass> */
5455 var34
= var_c1
->attrs
[COLOR_nit__model__MClass___mclass_type
].val
; /* _mclass_type on <var_c1:MClass> */
5456 if (unlikely(var34
== NULL
)) {
5457 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass_type");
5458 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 484);
5462 RET_LABEL33
:(void)0;
5466 { /* Inline kernel#Object#== (var29,var32) on <var29:MClassType> */
5469 { /* Inline kernel#Object#is_same_instance (var29,var_other) on <var29:MClassType> */
5470 var39
= var29
== var_other
;
5473 RET_LABEL38
:(void)0;
5478 RET_LABEL36
:(void)0;
5483 { /* Inline model#MClassDef#mmodule (var_cd2) on <var_cd2:MClassDef> */
5484 var42
= var_cd2
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var_cd2:MClassDef> */
5485 if (unlikely(var42
== NULL
)) {
5486 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
5487 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
5491 RET_LABEL41
:(void)0;
5495 { /* Inline mmodule#MModule#in_importation (var40) on <var40:MModule> */
5496 var45
= var40
->attrs
[COLOR_nit__mmodule__MModule___in_importation
].val
; /* _in_importation on <var40:MModule> */
5497 if (unlikely(var45
== NULL
)) {
5498 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _in_importation");
5499 PRINT_ERROR(" (%s:%d)\n", FILE_nit__mmodule
, 96);
5503 RET_LABEL44
:(void)0;
5507 { /* Inline model#MClassDef#mmodule (var_cd1) on <var_cd1:MClassDef> */
5508 var48
= var_cd1
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var_cd1:MClassDef> */
5509 if (unlikely(var48
== NULL
)) {
5510 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
5511 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
5515 RET_LABEL47
:(void)0;
5519 var49
= poset___poset__POSetElement____60d(var43
, var46
);
5528 { /* Inline model#MClassDef#bound_mtype (var_cd2) on <var_cd2:MClassDef> */
5529 var54
= var_cd2
->attrs
[COLOR_nit__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var_cd2:MClassDef> */
5530 if (unlikely(var54
== NULL
)) {
5531 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
5532 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 556);
5536 RET_LABEL53
:(void)0;
5540 { /* Inline model#MClassDef#bound_mtype (var_cd1) on <var_cd1:MClassDef> */
5541 var57
= var_cd1
->attrs
[COLOR_nit__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var_cd1:MClassDef> */
5542 if (unlikely(var57
== NULL
)) {
5543 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
5544 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 556);
5548 RET_LABEL56
:(void)0;
5552 var58
= nit___nit__MType___is_subtype(var52
, var_mmodule
, ((val
*)NULL
), var55
);
5557 { /* Inline model#MClassDef#bound_mtype (var_cd2) on <var_cd2:MClassDef> */
5558 var62
= var_cd2
->attrs
[COLOR_nit__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var_cd2:MClassDef> */
5559 if (unlikely(var62
== NULL
)) {
5560 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
5561 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 556);
5565 RET_LABEL61
:(void)0;
5569 { /* Inline model#MClassDef#bound_mtype (var_cd1) on <var_cd1:MClassDef> */
5570 var65
= var_cd1
->attrs
[COLOR_nit__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var_cd1:MClassDef> */
5571 if (unlikely(var65
== NULL
)) {
5572 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
5573 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 556);
5577 RET_LABEL64
:(void)0;
5581 { /* Inline kernel#Object#!= (var60,var63) on <var60:MClassType> */
5582 var_other68
= var63
;
5584 var69
= ((short int(*)(val
* self
, val
* p0
))(var60
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var60
, var_other68
); /* == on <var60:MClassType>*/
5589 RET_LABEL67
:(void)0;
5602 BREAK_label
: (void)0;
5604 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(var_15
); /* Direct call array#ArrayIterator#next on <var_15:ArrayIterator[MPropDef]>*/
5610 BREAK_label50
: (void)0;
5612 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__finish(var_15
); /* Direct call array#ArrayIterator#finish on <var_15:ArrayIterator[MPropDef]>*/
5616 standard___standard__Array___standard__abstract_collection__SimpleCollection__add(var_res
, var_pd1
); /* Direct call array#Array#add on <var_res:Array[MPropDef]>*/
5621 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(var_4
); /* Direct call array#ArrayIterator#next on <var_4:ArrayIterator[MPropDef]>*/
5627 BREAK_label71
: (void)0;
5629 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__finish(var_4
); /* Direct call array#ArrayIterator#finish on <var_4:ArrayIterator[MPropDef]>*/
5632 var72
= standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__is_empty(var_res
);
5636 if (unlikely(varonce
==NULL
)) {
5637 var74
= NEW_standard__NativeArray(2l, &type_standard__NativeArray__standard__String
);
5638 if (likely(varonce75
!=NULL
)) {
5641 var77
= "All lost! ";
5642 var78
= standard___standard__NativeString___to_s_with_length(var77
, 10l);
5646 ((struct instance_standard__NativeArray
*)var74
)->values
[0]=var76
;
5651 if (likely(varonce79
!=NULL
)) {
5655 var82
= standard___standard__NativeString___to_s_with_length(var81
, 2l);
5660 var83
= standard__string___Collection___join(var_candidates
, var80
);
5662 ((struct instance_standard__NativeArray
*)var74
)->values
[1]=var83
;
5664 var84
= ((val
*(*)(val
* self
))(var74
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var74
); /* native_to_s on <var74:NativeArray[String]>*/
5668 standard__file___Sys___print(var73
, var84
); /* Direct call file#Sys#print on <var73:Sys>*/
5677 /* method model#MProperty#lookup_first_definition for (self: MProperty, MModule, MType): MPropDef */
5678 val
* nit___nit__MProperty___lookup_first_definition(val
* self
, val
* p0
, val
* p1
) {
5679 val
* var
/* : MPropDef */;
5680 val
* var_mmodule
/* var mmodule: MModule */;
5681 val
* var_mtype
/* var mtype: MType */;
5682 val
* var1
/* : Array[MPropDef] */;
5683 val
* var2
/* : nullable Object */;
5687 var1
= nit___nit__MProperty___lookup_all_definitions(self
, var_mmodule
, var_mtype
);
5690 var2
= standard___standard__SequenceRead___Collection__first(var1
);
5697 /* method model#MProperty#lookup_all_definitions for (self: MProperty, MModule, MType): Array[MPropDef] */
5698 val
* nit___nit__MProperty___lookup_all_definitions(val
* self
, val
* p0
, val
* p1
) {
5699 val
* var
/* : Array[MPropDef] */;
5700 val
* var_mmodule
/* var mmodule: MModule */;
5701 val
* var_mtype
/* var mtype: MType */;
5702 val
* var1
/* : MType */;
5703 val
* var2
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5704 val
* var4
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5705 val
* var5
/* : nullable Object */;
5706 val
* var_cache
/* var cache: nullable Array[MPropDef] */;
5707 short int var6
/* : Bool */;
5708 short int var7
/* : Bool */;
5709 val
* var_other
/* var other: nullable Object */;
5710 short int var9
/* : Bool */;
5711 short int var10
/* : Bool */;
5712 short int var11
/* : Bool */;
5713 short int var12
/* : Bool */;
5714 short int var13
/* : Bool */;
5715 val
* var14
/* : Array[MPropDef] */;
5716 val
* var_candidates
/* var candidates: Array[MPropDef] */;
5717 val
* var15
/* : Array[MPropDef] */;
5718 val
* var17
/* : Array[MPropDef] */;
5719 val
* var_
/* var : Array[MPropDef] */;
5720 val
* var18
/* : ArrayIterator[nullable Object] */;
5721 val
* var_19
/* var : ArrayIterator[MPropDef] */;
5722 short int var20
/* : Bool */;
5723 val
* var21
/* : nullable Object */;
5724 val
* var_mpropdef
/* var mpropdef: MPropDef */;
5725 val
* var22
/* : POSetElement[MModule] */;
5726 val
* var24
/* : POSetElement[MModule] */;
5727 val
* var25
/* : MClassDef */;
5728 val
* var27
/* : MClassDef */;
5729 val
* var28
/* : MModule */;
5730 val
* var30
/* : MModule */;
5731 short int var31
/* : Bool */;
5732 short int var32
/* : Bool */;
5733 val
* var33
/* : MClassDef */;
5734 val
* var35
/* : MClassDef */;
5735 val
* var36
/* : MClassType */;
5736 val
* var38
/* : MClassType */;
5737 short int var39
/* : Bool */;
5738 short int var40
/* : Bool */;
5739 long var42
/* : Int */;
5740 long var44
/* : Int */;
5741 short int var45
/* : Bool */;
5742 short int var47
/* : Bool */;
5745 const char* var_class_name
;
5746 short int var48
/* : Bool */;
5747 val
* var49
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5748 val
* var51
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5749 val
* var52
/* : Array[nullable Object] */;
5750 val
* var53
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5751 val
* var55
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5755 var1
= ((val
*(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nit__model__MType__undecorate
]))(var_mtype
); /* undecorate on <var_mtype:MType>*/
5759 { /* Inline model#MProperty#lookup_all_definitions_cache (self) on <self:MProperty> */
5760 var4
= self
->attrs
[COLOR_nit__model__MProperty___lookup_all_definitions_cache
].val
; /* _lookup_all_definitions_cache on <self:MProperty> */
5761 if (unlikely(var4
== NULL
)) {
5762 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_all_definitions_cache");
5763 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2140);
5771 var5
= more_collections___more_collections__HashMap2____91d_93d(var2
, var_mmodule
, var_mtype
);
5774 if (var_cache
== NULL
) {
5775 var6
= 0; /* is null */
5777 var6
= 1; /* arg is null and recv is not */
5780 { /* Inline kernel#Object#!= (var_cache,((val*)NULL)) on <var_cache:nullable Array[MPropDef]> */
5781 var_other
= ((val
*)NULL
);
5783 var9
= ((short int(*)(val
* self
, val
* p0
))(var_cache
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_cache
, var_other
); /* == on <var_cache:nullable Array[MPropDef](Array[MPropDef])>*/
5798 var11
= ((short int(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nit__model__MType__need_anchor
]))(var_mtype
); /* need_anchor on <var_mtype:MType>*/
5801 if (unlikely(!var12
)) {
5802 PRINT_ERROR("Runtime error: %s", "Assert failed");
5803 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2114);
5807 var13
= nit___nit__MType___has_mproperty(var_mtype
, var_mmodule
, self
);
5809 if (unlikely(!var13
)) {
5810 PRINT_ERROR("Runtime error: %s", "Assert failed");
5811 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2115);
5814 var14
= NEW_standard__Array(self
->type
->resolution_table
->types
[COLOR_standard__Array__nit__model__MProperty__MPROPDEF
]);
5816 standard___standard__Array___standard__kernel__Object__init(var14
); /* Direct call array#Array#init on <var14:Array[MPropDef]>*/
5818 var_candidates
= var14
;
5820 { /* Inline model#MProperty#mpropdefs (self) on <self:MProperty> */
5821 var17
= self
->attrs
[COLOR_nit__model__MProperty___mpropdefs
].val
; /* _mpropdefs on <self:MProperty> */
5822 if (unlikely(var17
== NULL
)) {
5823 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mpropdefs");
5824 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1963);
5828 RET_LABEL16
:(void)0;
5833 var18
= standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(var_
);
5838 var20
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(var_19
);
5842 var21
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(var_19
);
5844 var_mpropdef
= var21
;
5846 { /* Inline mmodule#MModule#in_importation (var_mmodule) on <var_mmodule:MModule> */
5847 var24
= var_mmodule
->attrs
[COLOR_nit__mmodule__MModule___in_importation
].val
; /* _in_importation on <var_mmodule:MModule> */
5848 if (unlikely(var24
== NULL
)) {
5849 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _in_importation");
5850 PRINT_ERROR(" (%s:%d)\n", FILE_nit__mmodule
, 96);
5854 RET_LABEL23
:(void)0;
5858 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
5859 var27
= var_mpropdef
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
5860 if (unlikely(var27
== NULL
)) {
5861 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5862 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
5866 RET_LABEL26
:(void)0;
5870 { /* Inline model#MClassDef#mmodule (var25) on <var25:MClassDef> */
5871 var30
= var25
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var25:MClassDef> */
5872 if (unlikely(var30
== NULL
)) {
5873 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
5874 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
5878 RET_LABEL29
:(void)0;
5882 var31
= poset___poset__POSetElement____60d_61d(var22
, var28
);
5890 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
5891 var35
= var_mpropdef
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
5892 if (unlikely(var35
== NULL
)) {
5893 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5894 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
5898 RET_LABEL34
:(void)0;
5902 { /* Inline model#MClassDef#bound_mtype (var33) on <var33:MClassDef> */
5903 var38
= var33
->attrs
[COLOR_nit__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var33:MClassDef> */
5904 if (unlikely(var38
== NULL
)) {
5905 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
5906 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 556);
5910 RET_LABEL37
:(void)0;
5914 var39
= nit___nit__MType___is_subtype(var_mtype
, var_mmodule
, ((val
*)NULL
), var36
);
5922 standard___standard__Array___standard__abstract_collection__SimpleCollection__add(var_candidates
, var_mpropdef
); /* Direct call array#Array#add on <var_candidates:Array[MPropDef]>*/
5924 BREAK_label
: (void)0;
5926 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(var_19
); /* Direct call array#ArrayIterator#next on <var_19:ArrayIterator[MPropDef]>*/
5932 BREAK_label41
: (void)0;
5934 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__finish(var_19
); /* Direct call array#ArrayIterator#finish on <var_19:ArrayIterator[MPropDef]>*/
5937 { /* Inline array#AbstractArrayRead#length (var_candidates) on <var_candidates:Array[MPropDef]> */
5938 var44
= var_candidates
->attrs
[COLOR_standard__array__AbstractArrayRead___length
].l
; /* _length on <var_candidates:Array[MPropDef]> */
5940 RET_LABEL43
:(void)0;
5944 { /* Inline kernel#Int#<= (var42,1l) on <var42:Int> */
5945 /* Covariant cast for argument 0 (i) <1l:Int> isa OTHER */
5946 /* <1l:Int> isa OTHER */
5947 var47
= 1; /* easy <1l:Int> isa OTHER*/
5948 if (unlikely(!var47
)) {
5949 var_class_name
= type_standard__Int
.name
;
5950 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
5951 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 533);
5954 var48
= var42
<= 1l;
5957 RET_LABEL46
:(void)0;
5962 { /* Inline model#MProperty#lookup_all_definitions_cache (self) on <self:MProperty> */
5963 var51
= self
->attrs
[COLOR_nit__model__MProperty___lookup_all_definitions_cache
].val
; /* _lookup_all_definitions_cache on <self:MProperty> */
5964 if (unlikely(var51
== NULL
)) {
5965 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_all_definitions_cache");
5966 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2140);
5970 RET_LABEL50
:(void)0;
5974 more_collections___more_collections__HashMap2____91d_93d_61d(var49
, var_mmodule
, var_mtype
, var_candidates
); /* Direct call more_collections#HashMap2#[]= on <var49:HashMap2[MModule, MType, Array[MPropDef]]>*/
5976 var
= var_candidates
;
5981 nit__model___MModule___linearize_mpropdefs(var_mmodule
, var_candidates
); /* Direct call model#MModule#linearize_mpropdefs on <var_mmodule:MModule>*/
5984 var52
= standard___standard__AbstractArrayRead___reversed(var_candidates
);
5986 var_candidates
= var52
;
5988 { /* Inline model#MProperty#lookup_all_definitions_cache (self) on <self:MProperty> */
5989 var55
= self
->attrs
[COLOR_nit__model__MProperty___lookup_all_definitions_cache
].val
; /* _lookup_all_definitions_cache on <self:MProperty> */
5990 if (unlikely(var55
== NULL
)) {
5991 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_all_definitions_cache");
5992 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2140);
5996 RET_LABEL54
:(void)0;
6000 more_collections___more_collections__HashMap2____91d_93d_61d(var53
, var_mmodule
, var_mtype
, var_candidates
); /* Direct call more_collections#HashMap2#[]= on <var53:HashMap2[MModule, MType, Array[MPropDef]]>*/
6002 var
= var_candidates
;
6007 /* method model#MProperty#lookup_all_definitions_cache for (self: MProperty): HashMap2[MModule, MType, Array[MPropDef]] */
6008 val
* nit___nit__MProperty___lookup_all_definitions_cache(val
* self
) {
6009 val
* var
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
6010 val
* var1
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
6011 var1
= self
->attrs
[COLOR_nit__model__MProperty___lookup_all_definitions_cache
].val
; /* _lookup_all_definitions_cache on <self:MProperty> */
6012 if (unlikely(var1
== NULL
)) {
6013 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_all_definitions_cache");
6014 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2140);
6021 /* method model#MMethod#is_toplevel for (self: MMethod): Bool */
6022 short int nit___nit__MMethod___is_toplevel(val
* self
) {
6023 short int var
/* : Bool */;
6024 short int var1
/* : Bool */;
6025 var1
= self
->attrs
[COLOR_nit__model__MMethod___is_toplevel
].s
; /* _is_toplevel on <self:MMethod> */
6030 /* method model#MMethod#is_toplevel= for (self: MMethod, Bool) */
6031 void nit___nit__MMethod___is_toplevel_61d(val
* self
, short int p0
) {
6032 self
->attrs
[COLOR_nit__model__MMethod___is_toplevel
].s
= p0
; /* _is_toplevel on <self:MMethod> */
6035 /* method model#MMethod#is_init for (self: MMethod): Bool */
6036 short int nit___nit__MMethod___is_init(val
* self
) {
6037 short int var
/* : Bool */;
6038 short int var1
/* : Bool */;
6039 var1
= self
->attrs
[COLOR_nit__model__MMethod___is_init
].s
; /* _is_init on <self:MMethod> */
6044 /* method model#MMethod#is_init= for (self: MMethod, Bool) */
6045 void nit___nit__MMethod___is_init_61d(val
* self
, short int p0
) {
6046 self
->attrs
[COLOR_nit__model__MMethod___is_init
].s
= p0
; /* _is_init on <self:MMethod> */
6049 /* method model#MMethod#is_root_init for (self: MMethod): Bool */
6050 short int nit___nit__MMethod___is_root_init(val
* self
) {
6051 short int var
/* : Bool */;
6052 short int var1
/* : Bool */;
6053 var1
= self
->attrs
[COLOR_nit__model__MMethod___is_root_init
].s
; /* _is_root_init on <self:MMethod> */
6058 /* method model#MMethod#is_root_init= for (self: MMethod, Bool) */
6059 void nit___nit__MMethod___is_root_init_61d(val
* self
, short int p0
) {
6060 self
->attrs
[COLOR_nit__model__MMethod___is_root_init
].s
= p0
; /* _is_root_init on <self:MMethod> */
6063 /* method model#MMethod#is_new for (self: MMethod): Bool */
6064 short int nit___nit__MMethod___is_new(val
* self
) {
6065 short int var
/* : Bool */;
6066 short int var1
/* : Bool */;
6067 var1
= self
->attrs
[COLOR_nit__model__MMethod___is_new
].s
; /* _is_new on <self:MMethod> */
6072 /* method model#MMethod#is_new= for (self: MMethod, Bool) */
6073 void nit___nit__MMethod___is_new_61d(val
* self
, short int p0
) {
6074 self
->attrs
[COLOR_nit__model__MMethod___is_new
].s
= p0
; /* _is_new on <self:MMethod> */
6077 /* method model#MMethod#is_init_for for (self: MMethod, MClass): Bool */
6078 short int nit___nit__MMethod___is_init_for(val
* self
, val
* p0
) {
6079 short int var
/* : Bool */;
6080 val
* var_mclass
/* var mclass: MClass */;
6081 short int var1
/* : Bool */;
6082 short int var3
/* : Bool */;
6085 { /* Inline model#MMethod#is_init (self) on <self:MMethod> */
6086 var3
= self
->attrs
[COLOR_nit__model__MMethod___is_init
].s
; /* _is_init on <self:MMethod> */
6096 /* method model#MMethod#is_null_safe for (self: MMethod): Bool */
6097 short int nit___nit__MMethod___is_null_safe(val
* self
) {
6098 short int var
/* : Bool */;
6099 short int var1
/* : Bool */;
6100 short int var2
/* : Bool */;
6101 val
* var3
/* : String */;
6102 val
* var5
/* : String */;
6103 static val
* varonce
;
6104 val
* var6
/* : String */;
6105 char* var7
/* : NativeString */;
6106 val
* var8
/* : FlatString */;
6107 short int var9
/* : Bool */;
6108 short int var_
/* var : Bool */;
6109 val
* var10
/* : String */;
6110 val
* var12
/* : String */;
6111 static val
* varonce13
;
6112 val
* var14
/* : String */;
6113 char* var15
/* : NativeString */;
6114 val
* var16
/* : FlatString */;
6115 short int var17
/* : Bool */;
6116 short int var_18
/* var : Bool */;
6117 val
* var19
/* : String */;
6118 val
* var21
/* : String */;
6119 static val
* varonce22
;
6120 val
* var23
/* : String */;
6121 char* var24
/* : NativeString */;
6122 val
* var25
/* : FlatString */;
6123 short int var26
/* : Bool */;
6125 { /* Inline model#MProperty#name (self) on <self:MMethod> */
6126 var5
= self
->attrs
[COLOR_nit__model__MProperty___name
].val
; /* _name on <self:MMethod> */
6127 if (unlikely(var5
== NULL
)) {
6128 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
6129 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1933);
6136 if (likely(varonce
!=NULL
)) {
6140 var8
= standard___standard__NativeString___to_s_with_length(var7
, 2l);
6145 var9
= ((short int(*)(val
* self
, val
* p0
))(var3
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var3
, var6
); /* == on <var3:String>*/
6152 { /* Inline model#MProperty#name (self) on <self:MMethod> */
6153 var12
= self
->attrs
[COLOR_nit__model__MProperty___name
].val
; /* _name on <self:MMethod> */
6154 if (unlikely(var12
== NULL
)) {
6155 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
6156 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1933);
6160 RET_LABEL11
:(void)0;
6163 if (likely(varonce13
!=NULL
)) {
6167 var16
= standard___standard__NativeString___to_s_with_length(var15
, 2l);
6172 var17
= ((short int(*)(val
* self
, val
* p0
))(var10
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var10
, var14
); /* == on <var10:String>*/
6181 { /* Inline model#MProperty#name (self) on <self:MMethod> */
6182 var21
= self
->attrs
[COLOR_nit__model__MProperty___name
].val
; /* _name on <self:MMethod> */
6183 if (unlikely(var21
== NULL
)) {
6184 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
6185 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1933);
6189 RET_LABEL20
:(void)0;
6192 if (likely(varonce22
!=NULL
)) {
6195 var24
= "is_same_instance";
6196 var25
= standard___standard__NativeString___to_s_with_length(var24
, 16l);
6201 var26
= ((short int(*)(val
* self
, val
* p0
))(var19
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var19
, var23
); /* == on <var19:String>*/
6210 /* method model#MVirtualTypeProp#mvirtualtype for (self: MVirtualTypeProp): MVirtualType */
6211 val
* nit___nit__MVirtualTypeProp___mvirtualtype(val
* self
) {
6212 val
* var
/* : MVirtualType */;
6213 val
* var1
/* : MVirtualType */;
6214 var1
= self
->attrs
[COLOR_nit__model__MVirtualTypeProp___mvirtualtype
].val
; /* _mvirtualtype on <self:MVirtualTypeProp> */
6215 if (unlikely(var1
== NULL
)) {
6216 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mvirtualtype");
6217 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2191);
6224 /* method model#MPropDef#mclassdef for (self: MPropDef): MClassDef */
6225 val
* nit___nit__MPropDef___mclassdef(val
* self
) {
6226 val
* var
/* : MClassDef */;
6227 val
* var1
/* : MClassDef */;
6228 var1
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
6229 if (unlikely(var1
== NULL
)) {
6230 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6231 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
6238 /* method model#MPropDef#mclassdef= for (self: MPropDef, MClassDef) */
6239 void nit___nit__MPropDef___mclassdef_61d(val
* self
, val
* p0
) {
6240 self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
= p0
; /* _mclassdef on <self:MPropDef> */
6243 /* method model#MPropDef#mproperty for (self: MPropDef): MProperty */
6244 val
* nit___nit__MPropDef___mproperty(val
* self
) {
6245 val
* var
/* : MProperty */;
6246 val
* var1
/* : MProperty */;
6247 var1
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6248 if (unlikely(var1
== NULL
)) {
6249 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6250 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
6257 /* method model#MPropDef#mproperty= for (self: MPropDef, MProperty) */
6258 void nit___nit__MPropDef___mproperty_61d(val
* self
, val
* p0
) {
6259 short int var
/* : Bool */;
6262 const struct type
* type_struct
;
6263 const char* var_class_name
;
6264 /* Covariant cast for argument 0 (mproperty) <p0:MProperty> isa MPROPERTY */
6265 /* <p0:MProperty> isa MPROPERTY */
6266 type_struct
= self
->type
->resolution_table
->types
[COLOR_nit__model__MPropDef__MPROPERTY
];
6267 cltype
= type_struct
->color
;
6268 idtype
= type_struct
->id
;
6269 if(cltype
>= p0
->type
->table_size
) {
6272 var
= p0
->type
->type_table
[cltype
] == idtype
;
6274 if (unlikely(!var
)) {
6275 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
6276 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "MPROPERTY", var_class_name
);
6277 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
6280 self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
= p0
; /* _mproperty on <self:MPropDef> */
6283 /* method model#MPropDef#location for (self: MPropDef): Location */
6284 val
* nit___nit__MPropDef___location(val
* self
) {
6285 val
* var
/* : Location */;
6286 val
* var1
/* : Location */;
6287 var1
= self
->attrs
[COLOR_nit__model__MPropDef___location
].val
; /* _location on <self:MPropDef> */
6288 if (unlikely(var1
== NULL
)) {
6289 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _location");
6290 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2215);
6297 /* method model#MPropDef#location= for (self: MPropDef, Location) */
6298 void nit___nit__MPropDef___location_61d(val
* self
, val
* p0
) {
6299 self
->attrs
[COLOR_nit__model__MPropDef___location
].val
= p0
; /* _location on <self:MPropDef> */
6302 /* method model#MPropDef#init for (self: MPropDef) */
6303 void nit___nit__MPropDef___standard__kernel__Object__init(val
* self
) {
6304 val
* var
/* : MClassDef */;
6305 val
* var2
/* : MClassDef */;
6306 val
* var3
/* : Array[MPropDef] */;
6307 val
* var5
/* : Array[MPropDef] */;
6308 val
* var6
/* : MProperty */;
6309 val
* var8
/* : MProperty */;
6310 val
* var9
/* : Array[MPropDef] */;
6311 val
* var11
/* : Array[MPropDef] */;
6312 val
* var12
/* : MProperty */;
6313 val
* var14
/* : MProperty */;
6314 val
* var15
/* : MClassDef */;
6315 val
* var17
/* : MClassDef */;
6316 val
* var18
/* : MClassDef */;
6317 val
* var20
/* : MClassDef */;
6318 short int var21
/* : Bool */;
6319 val
* var_other
/* var other: nullable Object */;
6320 short int var23
/* : Bool */;
6321 short int var25
/* : Bool */;
6322 val
* var26
/* : MProperty */;
6323 val
* var28
/* : MProperty */;
6324 short int var29
/* : Bool */;
6325 short int var30
/* : Bool */;
6326 val
* var31
/* : MProperty */;
6327 val
* var33
/* : MProperty */;
6328 short int var35
/* : Bool */;
6331 const struct type
* type_struct
;
6332 const char* var_class_name
;
6333 val
* var36
/* : NativeArray[String] */;
6334 static val
* varonce
;
6335 static val
* varonce37
;
6336 val
* var38
/* : String */;
6337 char* var39
/* : NativeString */;
6338 val
* var40
/* : FlatString */;
6339 val
* var41
/* : MClassDef */;
6340 val
* var43
/* : MClassDef */;
6341 val
* var44
/* : String */;
6342 val
* var45
/* : MProperty */;
6343 val
* var47
/* : MProperty */;
6344 val
* var48
/* : String */;
6345 val
* var49
/* : String */;
6347 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nit___nit__MPropDef___standard__kernel__Object__init
]))(self
); /* init on <self:MPropDef>*/
6350 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
6351 var2
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
6352 if (unlikely(var2
== NULL
)) {
6353 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6354 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
6362 { /* Inline model#MClassDef#mpropdefs (var) on <var:MClassDef> */
6363 var5
= var
->attrs
[COLOR_nit__model__MClassDef___mpropdefs
].val
; /* _mpropdefs on <var:MClassDef> */
6364 if (unlikely(var5
== NULL
)) {
6365 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mpropdefs");
6366 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 684);
6374 standard___standard__Array___standard__abstract_collection__SimpleCollection__add(var3
, self
); /* Direct call array#Array#add on <var3:Array[MPropDef]>*/
6377 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6378 var8
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6379 if (unlikely(var8
== NULL
)) {
6380 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6381 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
6389 { /* Inline model#MProperty#mpropdefs (var6) on <var6:MProperty> */
6390 var11
= var6
->attrs
[COLOR_nit__model__MProperty___mpropdefs
].val
; /* _mpropdefs on <var6:MProperty> */
6391 if (unlikely(var11
== NULL
)) {
6392 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mpropdefs");
6393 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1963);
6397 RET_LABEL10
:(void)0;
6401 standard___standard__Array___standard__abstract_collection__SimpleCollection__add(var9
, self
); /* Direct call array#Array#add on <var9:Array[MPropDef]>*/
6404 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6405 var14
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6406 if (unlikely(var14
== NULL
)) {
6407 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6408 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
6412 RET_LABEL13
:(void)0;
6416 { /* Inline model#MProperty#intro_mclassdef (var12) on <var12:MProperty> */
6417 var17
= var12
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var12:MProperty> */
6418 if (unlikely(var17
== NULL
)) {
6419 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
6420 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
6424 RET_LABEL16
:(void)0;
6428 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
6429 var20
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
6430 if (unlikely(var20
== NULL
)) {
6431 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6432 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
6436 RET_LABEL19
:(void)0;
6440 { /* Inline kernel#Object#== (var15,var18) on <var15:MClassDef> */
6443 { /* Inline kernel#Object#is_same_instance (var15,var_other) on <var15:MClassDef> */
6444 var25
= var15
== var_other
;
6447 RET_LABEL24
:(void)0;
6452 RET_LABEL22
:(void)0;
6457 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6458 var28
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6459 if (unlikely(var28
== NULL
)) {
6460 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6461 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
6465 RET_LABEL27
:(void)0;
6468 var29
= var26
->attrs
[COLOR_nit__model__MProperty___intro
].val
!= NULL
; /* _intro on <var26:MProperty> */
6470 if (unlikely(!var30
)) {
6471 PRINT_ERROR("Runtime error: %s", "Assert failed");
6472 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2223);
6476 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6477 var33
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6478 if (unlikely(var33
== NULL
)) {
6479 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6480 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
6484 RET_LABEL32
:(void)0;
6488 { /* Inline model#MProperty#intro= (var31,self) on <var31:MProperty> */
6489 /* Covariant cast for argument 0 (intro) <self:MPropDef> isa MPROPDEF */
6490 /* <self:MPropDef> isa MPROPDEF */
6491 type_struct
= var31
->type
->resolution_table
->types
[COLOR_nit__model__MProperty__MPROPDEF
];
6492 cltype
= type_struct
->color
;
6493 idtype
= type_struct
->id
;
6494 if(cltype
>= self
->type
->table_size
) {
6497 var35
= self
->type
->type_table
[cltype
] == idtype
;
6499 if (unlikely(!var35
)) {
6500 var_class_name
= self
== NULL ?
"null" : self
->type
->name
;
6501 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "MPROPDEF", var_class_name
);
6502 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1968);
6505 var31
->attrs
[COLOR_nit__model__MProperty___intro
].val
= self
; /* _intro on <var31:MProperty> */
6506 RET_LABEL34
:(void)0;
6511 if (unlikely(varonce
==NULL
)) {
6512 var36
= NEW_standard__NativeArray(3l, &type_standard__NativeArray__standard__String
);
6513 if (likely(varonce37
!=NULL
)) {
6517 var40
= standard___standard__NativeString___to_s_with_length(var39
, 1l);
6521 ((struct instance_standard__NativeArray
*)var36
)->values
[1]=var38
;
6527 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
6528 var43
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
6529 if (unlikely(var43
== NULL
)) {
6530 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6531 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
6535 RET_LABEL42
:(void)0;
6539 var44
= ((val
*(*)(val
* self
))(var41
->class->vft
[COLOR_standard__string__Object__to_s
]))(var41
); /* to_s on <var41:MClassDef>*/
6541 ((struct instance_standard__NativeArray
*)var36
)->values
[0]=var44
;
6543 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6544 var47
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6545 if (unlikely(var47
== NULL
)) {
6546 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6547 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
6551 RET_LABEL46
:(void)0;
6555 var48
= ((val
*(*)(val
* self
))(var45
->class->vft
[COLOR_standard__string__Object__to_s
]))(var45
); /* to_s on <var45:MProperty>*/
6557 ((struct instance_standard__NativeArray
*)var36
)->values
[2]=var48
;
6559 var49
= ((val
*(*)(val
* self
))(var36
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var36
); /* native_to_s on <var36:NativeArray[String]>*/
6563 { /* Inline model#MPropDef#to_s= (self,var49) on <self:MPropDef> */
6564 self
->attrs
[COLOR_nit__model__MPropDef___to_s
].val
= var49
; /* _to_s on <self:MPropDef> */
6565 RET_LABEL50
:(void)0;
6570 /* method model#MPropDef#name for (self: MPropDef): String */
6571 val
* nit___nit__MPropDef___nit__model_base__MEntity__name(val
* self
) {
6572 val
* var
/* : String */;
6573 val
* var1
/* : MProperty */;
6574 val
* var3
/* : MProperty */;
6575 val
* var4
/* : String */;
6576 val
* var6
/* : String */;
6578 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6579 var3
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6580 if (unlikely(var3
== NULL
)) {
6581 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6582 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
6590 { /* Inline model#MProperty#name (var1) on <var1:MProperty> */
6591 var6
= var1
->attrs
[COLOR_nit__model__MProperty___name
].val
; /* _name on <var1:MProperty> */
6592 if (unlikely(var6
== NULL
)) {
6593 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
6594 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1933);
6606 /* method model#MPropDef#full_name for (self: MPropDef): String */
6607 val
* nit___nit__MPropDef___nit__model_base__MEntity__full_name(val
* self
) {
6608 val
* var
/* : String */;
6609 short int var1
/* : Bool */;
6610 val
* var2
/* : String */;
6611 val
* var3
/* : String */;
6612 val
* var5
/* : FlatBuffer */;
6613 val
* var_res
/* var res: FlatBuffer */;
6614 val
* var7
/* : MClassDef */;
6615 val
* var9
/* : MClassDef */;
6616 val
* var10
/* : String */;
6617 static val
* varonce
;
6618 val
* var11
/* : String */;
6619 char* var12
/* : NativeString */;
6620 val
* var13
/* : FlatString */;
6621 val
* var14
/* : MClassDef */;
6622 val
* var16
/* : MClassDef */;
6623 val
* var17
/* : MClass */;
6624 val
* var19
/* : MClass */;
6625 val
* var20
/* : MProperty */;
6626 val
* var22
/* : MProperty */;
6627 val
* var23
/* : MClassDef */;
6628 val
* var25
/* : MClassDef */;
6629 val
* var26
/* : MClass */;
6630 val
* var28
/* : MClass */;
6631 short int var29
/* : Bool */;
6632 val
* var_other
/* var other: nullable Object */;
6633 short int var31
/* : Bool */;
6634 short int var33
/* : Bool */;
6635 val
* var34
/* : String */;
6636 val
* var35
/* : MClassDef */;
6637 val
* var37
/* : MClassDef */;
6638 val
* var38
/* : MModule */;
6639 val
* var40
/* : MModule */;
6640 val
* var41
/* : nullable MProject */;
6641 val
* var42
/* : MProperty */;
6642 val
* var44
/* : MProperty */;
6643 val
* var45
/* : MClassDef */;
6644 val
* var47
/* : MClassDef */;
6645 val
* var48
/* : MModule */;
6646 val
* var50
/* : MModule */;
6647 val
* var51
/* : nullable MProject */;
6648 short int var52
/* : Bool */;
6649 short int var53
/* : Bool */;
6650 val
* var_other55
/* var other: nullable Object */;
6651 short int var56
/* : Bool */;
6652 short int var57
/* : Bool */;
6653 val
* var58
/* : MProperty */;
6654 val
* var60
/* : MProperty */;
6655 val
* var61
/* : MClassDef */;
6656 val
* var63
/* : MClassDef */;
6657 val
* var64
/* : MModule */;
6658 val
* var66
/* : MModule */;
6659 val
* var67
/* : String */;
6660 static val
* varonce68
;
6661 val
* var69
/* : String */;
6662 char* var70
/* : NativeString */;
6663 val
* var71
/* : FlatString */;
6664 val
* var72
/* : MProperty */;
6665 val
* var74
/* : MProperty */;
6666 val
* var75
/* : MVisibility */;
6667 val
* var77
/* : MVisibility */;
6668 val
* var78
/* : Sys */;
6669 val
* var79
/* : MVisibility */;
6670 short int var80
/* : Bool */;
6671 val
* var81
/* : MClassDef */;
6672 val
* var83
/* : MClassDef */;
6673 val
* var84
/* : MModule */;
6674 val
* var86
/* : MModule */;
6675 val
* var87
/* : MClassDef */;
6676 val
* var89
/* : MClassDef */;
6677 val
* var90
/* : MClass */;
6678 val
* var92
/* : MClass */;
6679 val
* var93
/* : MVisibility */;
6680 val
* var95
/* : MVisibility */;
6681 val
* var96
/* : String */;
6682 val
* var97
/* : MProperty */;
6683 val
* var99
/* : MProperty */;
6684 val
* var100
/* : MClassDef */;
6685 val
* var102
/* : MClassDef */;
6686 val
* var103
/* : MModule */;
6687 val
* var105
/* : MModule */;
6688 val
* var106
/* : nullable MProject */;
6689 short int var107
/* : Bool */;
6690 short int var109
/* : Bool */;
6691 short int var110
/* : Bool */;
6692 static val
* varonce111
;
6693 val
* var112
/* : String */;
6694 char* var113
/* : NativeString */;
6695 val
* var114
/* : FlatString */;
6696 val
* var115
/* : MProperty */;
6697 val
* var117
/* : MProperty */;
6698 val
* var118
/* : MClassDef */;
6699 val
* var120
/* : MClassDef */;
6700 val
* var121
/* : MModule */;
6701 val
* var123
/* : MModule */;
6702 val
* var124
/* : String */;
6703 val
* var126
/* : String */;
6704 static val
* varonce127
;
6705 val
* var128
/* : String */;
6706 char* var129
/* : NativeString */;
6707 val
* var130
/* : FlatString */;
6708 val
* var131
/* : MClassDef */;
6709 val
* var133
/* : MClassDef */;
6710 val
* var134
/* : MClass */;
6711 val
* var136
/* : MClass */;
6712 val
* var137
/* : MProperty */;
6713 val
* var139
/* : MProperty */;
6714 val
* var140
/* : MClassDef */;
6715 val
* var142
/* : MClassDef */;
6716 val
* var143
/* : MClass */;
6717 val
* var145
/* : MClass */;
6718 short int var146
/* : Bool */;
6719 short int var148
/* : Bool */;
6720 short int var149
/* : Bool */;
6721 val
* var150
/* : MProperty */;
6722 val
* var152
/* : MProperty */;
6723 val
* var153
/* : MClassDef */;
6724 val
* var155
/* : MClassDef */;
6725 val
* var156
/* : String */;
6726 static val
* varonce157
;
6727 val
* var158
/* : String */;
6728 char* var159
/* : NativeString */;
6729 val
* var160
/* : FlatString */;
6730 val
* var161
/* : MProperty */;
6731 val
* var163
/* : MProperty */;
6732 val
* var164
/* : String */;
6733 val
* var166
/* : String */;
6734 val
* var167
/* : String */;
6735 var1
= self
->attrs
[COLOR_nit__model__MPropDef___full_name
].val
!= NULL
; /* _full_name on <self:MPropDef> */
6737 var2
= self
->attrs
[COLOR_nit__model__MPropDef___full_name
].val
; /* _full_name on <self:MPropDef> */
6738 if (unlikely(var2
== NULL
)) {
6739 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _full_name");
6740 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2232);
6745 var5
= NEW_standard__FlatBuffer(&type_standard__FlatBuffer
);
6747 { /* Inline string#FlatBuffer#init (var5) on <var5:FlatBuffer> */
6749 ((void(*)(val
* self
))(var5
->class->vft
[COLOR_standard___standard__FlatBuffer___standard__kernel__Object__init
]))(var5
); /* init on <var5:FlatBuffer>*/
6756 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
6757 var9
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
6758 if (unlikely(var9
== NULL
)) {
6759 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6760 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
6768 var10
= nit___nit__MClassDef___nit__model_base__MEntity__full_name(var7
);
6771 standard___standard__FlatBuffer___Buffer__append(var_res
, var10
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
6773 if (likely(varonce
!=NULL
)) {
6777 var13
= standard___standard__NativeString___to_s_with_length(var12
, 1l);
6782 standard___standard__FlatBuffer___Buffer__append(var_res
, var11
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
6785 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
6786 var16
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
6787 if (unlikely(var16
== NULL
)) {
6788 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6789 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
6793 RET_LABEL15
:(void)0;
6797 { /* Inline model#MClassDef#mclass (var14) on <var14:MClassDef> */
6798 var19
= var14
->attrs
[COLOR_nit__model__MClassDef___mclass
].val
; /* _mclass on <var14:MClassDef> */
6799 if (unlikely(var19
== NULL
)) {
6800 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
6801 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 553);
6805 RET_LABEL18
:(void)0;
6809 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6810 var22
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6811 if (unlikely(var22
== NULL
)) {
6812 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6813 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
6817 RET_LABEL21
:(void)0;
6821 { /* Inline model#MProperty#intro_mclassdef (var20) on <var20:MProperty> */
6822 var25
= var20
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var20:MProperty> */
6823 if (unlikely(var25
== NULL
)) {
6824 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
6825 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
6829 RET_LABEL24
:(void)0;
6833 { /* Inline model#MClassDef#mclass (var23) on <var23:MClassDef> */
6834 var28
= var23
->attrs
[COLOR_nit__model__MClassDef___mclass
].val
; /* _mclass on <var23:MClassDef> */
6835 if (unlikely(var28
== NULL
)) {
6836 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
6837 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 553);
6841 RET_LABEL27
:(void)0;
6845 { /* Inline kernel#Object#== (var17,var26) on <var17:MClass> */
6848 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:MClass> */
6849 var33
= var17
== var_other
;
6852 RET_LABEL32
:(void)0;
6857 RET_LABEL30
:(void)0;
6862 var34
= nit___nit__MPropDef___nit__model_base__MEntity__name(self
);
6865 standard___standard__FlatBuffer___Buffer__append(var_res
, var34
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
6869 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
6870 var37
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
6871 if (unlikely(var37
== NULL
)) {
6872 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6873 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
6877 RET_LABEL36
:(void)0;
6881 { /* Inline model#MClassDef#mmodule (var35) on <var35:MClassDef> */
6882 var40
= var35
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var35:MClassDef> */
6883 if (unlikely(var40
== NULL
)) {
6884 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
6885 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
6889 RET_LABEL39
:(void)0;
6893 var41
= nit___nit__MModule___mproject(var38
);
6896 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6897 var44
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6898 if (unlikely(var44
== NULL
)) {
6899 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6900 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
6904 RET_LABEL43
:(void)0;
6908 { /* Inline model#MProperty#intro_mclassdef (var42) on <var42:MProperty> */
6909 var47
= var42
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var42:MProperty> */
6910 if (unlikely(var47
== NULL
)) {
6911 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
6912 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
6916 RET_LABEL46
:(void)0;
6920 { /* Inline model#MClassDef#mmodule (var45) on <var45:MClassDef> */
6921 var50
= var45
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var45:MClassDef> */
6922 if (unlikely(var50
== NULL
)) {
6923 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
6924 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
6928 RET_LABEL49
:(void)0;
6932 var51
= nit___nit__MModule___mproject(var48
);
6934 if (var41
== NULL
) {
6935 var52
= (var51
!= NULL
);
6937 { /* Inline kernel#Object#!= (var41,var51) on <var41:nullable MProject> */
6938 var_other55
= var51
;
6940 var56
= ((short int(*)(val
* self
, val
* p0
))(var41
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var41
, var_other55
); /* == on <var41:nullable MProject(MProject)>*/
6945 RET_LABEL54
:(void)0;
6951 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6952 var60
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6953 if (unlikely(var60
== NULL
)) {
6954 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6955 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
6959 RET_LABEL59
:(void)0;
6963 { /* Inline model#MProperty#intro_mclassdef (var58) on <var58:MProperty> */
6964 var63
= var58
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var58:MProperty> */
6965 if (unlikely(var63
== NULL
)) {
6966 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
6967 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
6971 RET_LABEL62
:(void)0;
6975 { /* Inline model#MClassDef#mmodule (var61) on <var61:MClassDef> */
6976 var66
= var61
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var61:MClassDef> */
6977 if (unlikely(var66
== NULL
)) {
6978 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
6979 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
6983 RET_LABEL65
:(void)0;
6987 var67
= nit___nit__MModule___nit__model_base__MEntity__full_name(var64
);
6990 standard___standard__FlatBuffer___Buffer__append(var_res
, var67
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
6992 if (likely(varonce68
!=NULL
)) {
6996 var71
= standard___standard__NativeString___to_s_with_length(var70
, 2l);
7001 standard___standard__FlatBuffer___Buffer__append(var_res
, var69
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7005 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7006 var74
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7007 if (unlikely(var74
== NULL
)) {
7008 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7009 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
7013 RET_LABEL73
:(void)0;
7017 { /* Inline model#MProperty#visibility (var72) on <var72:MProperty> */
7018 var77
= var72
->attrs
[COLOR_nit__model__MProperty___visibility
].val
; /* _visibility on <var72:MProperty> */
7019 if (unlikely(var77
== NULL
)) {
7020 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _visibility");
7021 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1949);
7025 RET_LABEL76
:(void)0;
7030 var79
= nit__model_base___standard__Sys___private_visibility(var78
);
7033 var80
= standard___standard__Comparable____60d_61d(var75
, var79
);
7037 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7038 var83
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7039 if (unlikely(var83
== NULL
)) {
7040 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7041 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
7045 RET_LABEL82
:(void)0;
7049 { /* Inline model#MClassDef#mmodule (var81) on <var81:MClassDef> */
7050 var86
= var81
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var81:MClassDef> */
7051 if (unlikely(var86
== NULL
)) {
7052 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7053 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
7057 RET_LABEL85
:(void)0;
7061 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7062 var89
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7063 if (unlikely(var89
== NULL
)) {
7064 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7065 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
7069 RET_LABEL88
:(void)0;
7073 { /* Inline model#MClassDef#mclass (var87) on <var87:MClassDef> */
7074 var92
= var87
->attrs
[COLOR_nit__model__MClassDef___mclass
].val
; /* _mclass on <var87:MClassDef> */
7075 if (unlikely(var92
== NULL
)) {
7076 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7077 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 553);
7081 RET_LABEL91
:(void)0;
7085 { /* Inline model#MClass#visibility (var90) on <var90:MClass> */
7086 var95
= var90
->attrs
[COLOR_nit__model__MClass___visibility
].val
; /* _visibility on <var90:MClass> */
7087 if (unlikely(var95
== NULL
)) {
7088 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _visibility");
7089 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 440);
7093 RET_LABEL94
:(void)0;
7097 var96
= nit___nit__MModule___namespace_for(var84
, var93
);
7100 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7101 var99
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7102 if (unlikely(var99
== NULL
)) {
7103 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7104 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
7108 RET_LABEL98
:(void)0;
7112 { /* Inline model#MProperty#intro_mclassdef (var97) on <var97:MProperty> */
7113 var102
= var97
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var97:MProperty> */
7114 if (unlikely(var102
== NULL
)) {
7115 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7116 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
7120 RET_LABEL101
:(void)0;
7124 { /* Inline model#MClassDef#mmodule (var100) on <var100:MClassDef> */
7125 var105
= var100
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var100:MClassDef> */
7126 if (unlikely(var105
== NULL
)) {
7127 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7128 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
7132 RET_LABEL104
:(void)0;
7136 var106
= nit___nit__MModule___mproject(var103
);
7139 { /* Inline kernel#Object#!= (var96,var106) on <var96:String> */
7140 var_other55
= var106
;
7142 var109
= ((short int(*)(val
* self
, val
* p0
))(var96
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var96
, var_other55
); /* == on <var96:String>*/
7147 RET_LABEL108
:(void)0;
7151 if (likely(varonce111
!=NULL
)) {
7152 var112
= varonce111
;
7155 var114
= standard___standard__NativeString___to_s_with_length(var113
, 2l);
7157 varonce111
= var112
;
7160 standard___standard__FlatBuffer___Buffer__append(var_res
, var112
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7163 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7164 var117
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7165 if (unlikely(var117
== NULL
)) {
7166 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7167 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
7171 RET_LABEL116
:(void)0;
7175 { /* Inline model#MProperty#intro_mclassdef (var115) on <var115:MProperty> */
7176 var120
= var115
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var115:MProperty> */
7177 if (unlikely(var120
== NULL
)) {
7178 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7179 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
7183 RET_LABEL119
:(void)0;
7187 { /* Inline model#MClassDef#mmodule (var118) on <var118:MClassDef> */
7188 var123
= var118
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var118:MClassDef> */
7189 if (unlikely(var123
== NULL
)) {
7190 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7191 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
7195 RET_LABEL122
:(void)0;
7199 { /* Inline mmodule#MModule#name (var121) on <var121:MModule> */
7200 var126
= var121
->attrs
[COLOR_nit__mmodule__MModule___name
].val
; /* _name on <var121:MModule> */
7201 if (unlikely(var126
== NULL
)) {
7202 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
7203 PRINT_ERROR(" (%s:%d)\n", FILE_nit__mmodule
, 87);
7207 RET_LABEL125
:(void)0;
7211 standard___standard__FlatBuffer___Buffer__append(var_res
, var124
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7213 if (likely(varonce127
!=NULL
)) {
7214 var128
= varonce127
;
7217 var130
= standard___standard__NativeString___to_s_with_length(var129
, 2l);
7219 varonce127
= var128
;
7222 standard___standard__FlatBuffer___Buffer__append(var_res
, var128
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7230 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7231 var133
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7232 if (unlikely(var133
== NULL
)) {
7233 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7234 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
7238 RET_LABEL132
:(void)0;
7242 { /* Inline model#MClassDef#mclass (var131) on <var131:MClassDef> */
7243 var136
= var131
->attrs
[COLOR_nit__model__MClassDef___mclass
].val
; /* _mclass on <var131:MClassDef> */
7244 if (unlikely(var136
== NULL
)) {
7245 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7246 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 553);
7250 RET_LABEL135
:(void)0;
7254 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7255 var139
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7256 if (unlikely(var139
== NULL
)) {
7257 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7258 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
7262 RET_LABEL138
:(void)0;
7266 { /* Inline model#MProperty#intro_mclassdef (var137) on <var137:MProperty> */
7267 var142
= var137
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var137:MProperty> */
7268 if (unlikely(var142
== NULL
)) {
7269 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7270 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
7274 RET_LABEL141
:(void)0;
7278 { /* Inline model#MClassDef#mclass (var140) on <var140:MClassDef> */
7279 var145
= var140
->attrs
[COLOR_nit__model__MClassDef___mclass
].val
; /* _mclass on <var140:MClassDef> */
7280 if (unlikely(var145
== NULL
)) {
7281 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7282 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 553);
7286 RET_LABEL144
:(void)0;
7290 { /* Inline kernel#Object#!= (var134,var143) on <var134:MClass> */
7291 var_other55
= var143
;
7293 var148
= ((short int(*)(val
* self
, val
* p0
))(var134
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var134
, var_other55
); /* == on <var134:MClass>*/
7298 RET_LABEL147
:(void)0;
7303 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7304 var152
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7305 if (unlikely(var152
== NULL
)) {
7306 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7307 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
7311 RET_LABEL151
:(void)0;
7315 { /* Inline model#MProperty#intro_mclassdef (var150) on <var150:MProperty> */
7316 var155
= var150
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var150:MProperty> */
7317 if (unlikely(var155
== NULL
)) {
7318 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7319 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
7323 RET_LABEL154
:(void)0;
7327 var156
= nit___nit__MClassDef___nit__model_base__MEntity__name(var153
);
7330 standard___standard__FlatBuffer___Buffer__append(var_res
, var156
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7332 if (likely(varonce157
!=NULL
)) {
7333 var158
= varonce157
;
7336 var160
= standard___standard__NativeString___to_s_with_length(var159
, 2l);
7338 varonce157
= var158
;
7341 standard___standard__FlatBuffer___Buffer__append(var_res
, var158
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7346 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7347 var163
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7348 if (unlikely(var163
== NULL
)) {
7349 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7350 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
7354 RET_LABEL162
:(void)0;
7358 { /* Inline model#MProperty#name (var161) on <var161:MProperty> */
7359 var166
= var161
->attrs
[COLOR_nit__model__MProperty___name
].val
; /* _name on <var161:MProperty> */
7360 if (unlikely(var166
== NULL
)) {
7361 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
7362 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1933);
7366 RET_LABEL165
:(void)0;
7370 standard___standard__FlatBuffer___Buffer__append(var_res
, var164
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7374 var167
= standard___standard__FlatBuffer___Object__to_s(var_res
);
7380 self
->attrs
[COLOR_nit__model__MPropDef___full_name
].val
= var3
; /* _full_name on <self:MPropDef> */
7387 /* method model#MPropDef#c_name for (self: MPropDef): String */
7388 val
* nit___nit__MPropDef___nit__model_base__MEntity__c_name(val
* self
) {
7389 val
* var
/* : String */;
7390 short int var1
/* : Bool */;
7391 val
* var2
/* : String */;
7392 val
* var3
/* : String */;
7393 val
* var5
/* : FlatBuffer */;
7394 val
* var_res
/* var res: FlatBuffer */;
7395 val
* var7
/* : MClassDef */;
7396 val
* var9
/* : MClassDef */;
7397 val
* var10
/* : String */;
7398 static val
* varonce
;
7399 val
* var11
/* : String */;
7400 char* var12
/* : NativeString */;
7401 val
* var13
/* : FlatString */;
7402 val
* var14
/* : MClassDef */;
7403 val
* var16
/* : MClassDef */;
7404 val
* var17
/* : MClass */;
7405 val
* var19
/* : MClass */;
7406 val
* var20
/* : MProperty */;
7407 val
* var22
/* : MProperty */;
7408 val
* var23
/* : MClassDef */;
7409 val
* var25
/* : MClassDef */;
7410 val
* var26
/* : MClass */;
7411 val
* var28
/* : MClass */;
7412 short int var29
/* : Bool */;
7413 val
* var_other
/* var other: nullable Object */;
7414 short int var31
/* : Bool */;
7415 short int var33
/* : Bool */;
7416 val
* var34
/* : String */;
7417 val
* var35
/* : String */;
7418 val
* var36
/* : MClassDef */;
7419 val
* var38
/* : MClassDef */;
7420 val
* var39
/* : MModule */;
7421 val
* var41
/* : MModule */;
7422 val
* var42
/* : MProperty */;
7423 val
* var44
/* : MProperty */;
7424 val
* var45
/* : MClassDef */;
7425 val
* var47
/* : MClassDef */;
7426 val
* var48
/* : MModule */;
7427 val
* var50
/* : MModule */;
7428 short int var51
/* : Bool */;
7429 val
* var_other53
/* var other: nullable Object */;
7430 short int var54
/* : Bool */;
7431 short int var55
/* : Bool */;
7432 val
* var56
/* : MProperty */;
7433 val
* var58
/* : MProperty */;
7434 val
* var59
/* : MClassDef */;
7435 val
* var61
/* : MClassDef */;
7436 val
* var62
/* : MModule */;
7437 val
* var64
/* : MModule */;
7438 val
* var65
/* : String */;
7439 static val
* varonce66
;
7440 val
* var67
/* : String */;
7441 char* var68
/* : NativeString */;
7442 val
* var69
/* : FlatString */;
7443 val
* var70
/* : MClassDef */;
7444 val
* var72
/* : MClassDef */;
7445 val
* var73
/* : MClass */;
7446 val
* var75
/* : MClass */;
7447 val
* var76
/* : MProperty */;
7448 val
* var78
/* : MProperty */;
7449 val
* var79
/* : MClassDef */;
7450 val
* var81
/* : MClassDef */;
7451 val
* var82
/* : MClass */;
7452 val
* var84
/* : MClass */;
7453 short int var85
/* : Bool */;
7454 short int var87
/* : Bool */;
7455 short int var88
/* : Bool */;
7456 val
* var89
/* : MProperty */;
7457 val
* var91
/* : MProperty */;
7458 val
* var92
/* : MClassDef */;
7459 val
* var94
/* : MClassDef */;
7460 val
* var95
/* : String */;
7461 val
* var96
/* : String */;
7462 static val
* varonce97
;
7463 val
* var98
/* : String */;
7464 char* var99
/* : NativeString */;
7465 val
* var100
/* : FlatString */;
7466 val
* var101
/* : MProperty */;
7467 val
* var103
/* : MProperty */;
7468 val
* var104
/* : String */;
7469 val
* var106
/* : String */;
7470 val
* var107
/* : String */;
7471 val
* var108
/* : String */;
7472 var1
= self
->attrs
[COLOR_nit__model__MPropDef___c_name
].val
!= NULL
; /* _c_name on <self:MPropDef> */
7474 var2
= self
->attrs
[COLOR_nit__model__MPropDef___c_name
].val
; /* _c_name on <self:MPropDef> */
7475 if (unlikely(var2
== NULL
)) {
7476 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _c_name");
7477 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2281);
7482 var5
= NEW_standard__FlatBuffer(&type_standard__FlatBuffer
);
7484 { /* Inline string#FlatBuffer#init (var5) on <var5:FlatBuffer> */
7486 ((void(*)(val
* self
))(var5
->class->vft
[COLOR_standard___standard__FlatBuffer___standard__kernel__Object__init
]))(var5
); /* init on <var5:FlatBuffer>*/
7493 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7494 var9
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7495 if (unlikely(var9
== NULL
)) {
7496 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7497 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
7505 var10
= nit___nit__MClassDef___nit__model_base__MEntity__c_name(var7
);
7508 standard___standard__FlatBuffer___Buffer__append(var_res
, var10
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7510 if (likely(varonce
!=NULL
)) {
7514 var13
= standard___standard__NativeString___to_s_with_length(var12
, 3l);
7519 standard___standard__FlatBuffer___Buffer__append(var_res
, var11
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7522 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7523 var16
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7524 if (unlikely(var16
== NULL
)) {
7525 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7526 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
7530 RET_LABEL15
:(void)0;
7534 { /* Inline model#MClassDef#mclass (var14) on <var14:MClassDef> */
7535 var19
= var14
->attrs
[COLOR_nit__model__MClassDef___mclass
].val
; /* _mclass on <var14:MClassDef> */
7536 if (unlikely(var19
== NULL
)) {
7537 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7538 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 553);
7542 RET_LABEL18
:(void)0;
7546 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7547 var22
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7548 if (unlikely(var22
== NULL
)) {
7549 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7550 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
7554 RET_LABEL21
:(void)0;
7558 { /* Inline model#MProperty#intro_mclassdef (var20) on <var20:MProperty> */
7559 var25
= var20
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var20:MProperty> */
7560 if (unlikely(var25
== NULL
)) {
7561 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7562 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
7566 RET_LABEL24
:(void)0;
7570 { /* Inline model#MClassDef#mclass (var23) on <var23:MClassDef> */
7571 var28
= var23
->attrs
[COLOR_nit__model__MClassDef___mclass
].val
; /* _mclass on <var23:MClassDef> */
7572 if (unlikely(var28
== NULL
)) {
7573 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7574 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 553);
7578 RET_LABEL27
:(void)0;
7582 { /* Inline kernel#Object#== (var17,var26) on <var17:MClass> */
7585 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:MClass> */
7586 var33
= var17
== var_other
;
7589 RET_LABEL32
:(void)0;
7594 RET_LABEL30
:(void)0;
7599 var34
= nit___nit__MPropDef___nit__model_base__MEntity__name(self
);
7602 var35
= standard___standard__Text___to_cmangle(var34
);
7605 standard___standard__FlatBuffer___Buffer__append(var_res
, var35
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7609 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7610 var38
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7611 if (unlikely(var38
== NULL
)) {
7612 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7613 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
7617 RET_LABEL37
:(void)0;
7621 { /* Inline model#MClassDef#mmodule (var36) on <var36:MClassDef> */
7622 var41
= var36
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var36:MClassDef> */
7623 if (unlikely(var41
== NULL
)) {
7624 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7625 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
7629 RET_LABEL40
:(void)0;
7633 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7634 var44
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7635 if (unlikely(var44
== NULL
)) {
7636 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7637 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
7641 RET_LABEL43
:(void)0;
7645 { /* Inline model#MProperty#intro_mclassdef (var42) on <var42:MProperty> */
7646 var47
= var42
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var42:MProperty> */
7647 if (unlikely(var47
== NULL
)) {
7648 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7649 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
7653 RET_LABEL46
:(void)0;
7657 { /* Inline model#MClassDef#mmodule (var45) on <var45:MClassDef> */
7658 var50
= var45
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var45:MClassDef> */
7659 if (unlikely(var50
== NULL
)) {
7660 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7661 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
7665 RET_LABEL49
:(void)0;
7669 { /* Inline kernel#Object#!= (var39,var48) on <var39:MModule> */
7670 var_other53
= var48
;
7672 var54
= ((short int(*)(val
* self
, val
* p0
))(var39
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var39
, var_other53
); /* == on <var39:MModule>*/
7677 RET_LABEL52
:(void)0;
7682 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7683 var58
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7684 if (unlikely(var58
== NULL
)) {
7685 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7686 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
7690 RET_LABEL57
:(void)0;
7694 { /* Inline model#MProperty#intro_mclassdef (var56) on <var56:MProperty> */
7695 var61
= var56
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var56:MProperty> */
7696 if (unlikely(var61
== NULL
)) {
7697 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7698 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
7702 RET_LABEL60
:(void)0;
7706 { /* Inline model#MClassDef#mmodule (var59) on <var59:MClassDef> */
7707 var64
= var59
->attrs
[COLOR_nit__model__MClassDef___mmodule
].val
; /* _mmodule on <var59:MClassDef> */
7708 if (unlikely(var64
== NULL
)) {
7709 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7710 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 550);
7714 RET_LABEL63
:(void)0;
7718 var65
= nit___nit__MModule___nit__model_base__MEntity__c_name(var62
);
7721 standard___standard__FlatBuffer___Buffer__append(var_res
, var65
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7723 if (likely(varonce66
!=NULL
)) {
7727 var69
= standard___standard__NativeString___to_s_with_length(var68
, 2l);
7732 standard___standard__FlatBuffer___Buffer__append(var_res
, var67
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7737 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7738 var72
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7739 if (unlikely(var72
== NULL
)) {
7740 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7741 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
7745 RET_LABEL71
:(void)0;
7749 { /* Inline model#MClassDef#mclass (var70) on <var70:MClassDef> */
7750 var75
= var70
->attrs
[COLOR_nit__model__MClassDef___mclass
].val
; /* _mclass on <var70:MClassDef> */
7751 if (unlikely(var75
== NULL
)) {
7752 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7753 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 553);
7757 RET_LABEL74
:(void)0;
7761 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7762 var78
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7763 if (unlikely(var78
== NULL
)) {
7764 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7765 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
7769 RET_LABEL77
:(void)0;
7773 { /* Inline model#MProperty#intro_mclassdef (var76) on <var76:MProperty> */
7774 var81
= var76
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var76:MProperty> */
7775 if (unlikely(var81
== NULL
)) {
7776 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7777 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
7781 RET_LABEL80
:(void)0;
7785 { /* Inline model#MClassDef#mclass (var79) on <var79:MClassDef> */
7786 var84
= var79
->attrs
[COLOR_nit__model__MClassDef___mclass
].val
; /* _mclass on <var79:MClassDef> */
7787 if (unlikely(var84
== NULL
)) {
7788 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7789 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 553);
7793 RET_LABEL83
:(void)0;
7797 { /* Inline kernel#Object#!= (var73,var82) on <var73:MClass> */
7798 var_other53
= var82
;
7800 var87
= ((short int(*)(val
* self
, val
* p0
))(var73
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var73
, var_other53
); /* == on <var73:MClass>*/
7805 RET_LABEL86
:(void)0;
7810 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7811 var91
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7812 if (unlikely(var91
== NULL
)) {
7813 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7814 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
7818 RET_LABEL90
:(void)0;
7822 { /* Inline model#MProperty#intro_mclassdef (var89) on <var89:MProperty> */
7823 var94
= var89
->attrs
[COLOR_nit__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var89:MProperty> */
7824 if (unlikely(var94
== NULL
)) {
7825 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7826 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1928);
7830 RET_LABEL93
:(void)0;
7834 var95
= nit___nit__MClassDef___nit__model_base__MEntity__name(var92
);
7837 var96
= standard___standard__Text___to_cmangle(var95
);
7840 standard___standard__FlatBuffer___Buffer__append(var_res
, var96
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7842 if (likely(varonce97
!=NULL
)) {
7846 var100
= standard___standard__NativeString___to_s_with_length(var99
, 2l);
7851 standard___standard__FlatBuffer___Buffer__append(var_res
, var98
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7856 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7857 var103
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7858 if (unlikely(var103
== NULL
)) {
7859 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7860 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
7864 RET_LABEL102
:(void)0;
7868 { /* Inline model#MProperty#name (var101) on <var101:MProperty> */
7869 var106
= var101
->attrs
[COLOR_nit__model__MProperty___name
].val
; /* _name on <var101:MProperty> */
7870 if (unlikely(var106
== NULL
)) {
7871 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
7872 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1933);
7876 RET_LABEL105
:(void)0;
7880 var107
= standard___standard__Text___to_cmangle(var104
);
7883 standard___standard__FlatBuffer___Buffer__append(var_res
, var107
); /* Direct call string#FlatBuffer#append on <var_res:FlatBuffer>*/
7887 var108
= standard___standard__FlatBuffer___Object__to_s(var_res
);
7893 self
->attrs
[COLOR_nit__model__MPropDef___c_name
].val
= var3
; /* _c_name on <self:MPropDef> */
7900 /* method model#MPropDef#model for (self: MPropDef): Model */
7901 val
* nit___nit__MPropDef___nit__model_base__MEntity__model(val
* self
) {
7902 val
* var
/* : Model */;
7903 val
* var1
/* : MClassDef */;
7904 val
* var3
/* : MClassDef */;
7905 val
* var4
/* : Model */;
7907 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7908 var3
= self
->attrs
[COLOR_nit__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7909 if (unlikely(var3
== NULL
)) {
7910 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7911 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2209);
7919 var4
= nit___nit__MClassDef___nit__model_base__MEntity__model(var1
);
7926 /* method model#MPropDef#to_s for (self: MPropDef): String */
7927 val
* nit___nit__MPropDef___standard__string__Object__to_s(val
* self
) {
7928 val
* var
/* : String */;
7929 val
* var1
/* : String */;
7930 var1
= self
->attrs
[COLOR_nit__model__MPropDef___to_s
].val
; /* _to_s on <self:MPropDef> */
7931 if (unlikely(var1
== NULL
)) {
7932 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _to_s");
7933 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2303);
7940 /* method model#MPropDef#to_s= for (self: MPropDef, String) */
7941 void nit___nit__MPropDef___to_s_61d(val
* self
, val
* p0
) {
7942 self
->attrs
[COLOR_nit__model__MPropDef___to_s
].val
= p0
; /* _to_s on <self:MPropDef> */
7945 /* method model#MPropDef#is_intro for (self: MPropDef): Bool */
7946 short int nit___nit__MPropDef___is_intro(val
* self
) {
7947 short int var
/* : Bool */;
7948 val
* var1
/* : MProperty */;
7949 val
* var3
/* : MProperty */;
7950 val
* var4
/* : MPropDef */;
7951 val
* var6
/* : MPropDef */;
7952 short int var7
/* : Bool */;
7953 val
* var_other
/* var other: nullable Object */;
7954 short int var9
/* : Bool */;
7955 short int var11
/* : Bool */;
7957 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7958 var3
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7959 if (unlikely(var3
== NULL
)) {
7960 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7961 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
7969 { /* Inline model#MProperty#intro (var1) on <var1:MProperty> */
7970 var6
= var1
->attrs
[COLOR_nit__model__MProperty___intro
].val
; /* _intro on <var1:MProperty> */
7971 if (unlikely(var6
== NULL
)) {
7972 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro");
7973 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 1968);
7981 { /* Inline kernel#Object#== (var4,self) on <var4:MPropDef> */
7984 { /* Inline kernel#Object#is_same_instance (var4,var_other) on <var4:MPropDef> */
7985 var11
= var4
== var_other
;
7988 RET_LABEL10
:(void)0;
8001 /* method model#MPropDef#lookup_next_definition for (self: MPropDef, MModule, MType): MPropDef */
8002 val
* nit___nit__MPropDef___lookup_next_definition(val
* self
, val
* p0
, val
* p1
) {
8003 val
* var
/* : MPropDef */;
8004 val
* var_mmodule
/* var mmodule: MModule */;
8005 val
* var_mtype
/* var mtype: MType */;
8006 short int var1
/* : Bool */;
8007 short int var2
/* : Bool */;
8008 val
* var3
/* : MProperty */;
8009 val
* var5
/* : MProperty */;
8010 val
* var6
/* : Array[MPropDef] */;
8011 val
* var_mpropdefs
/* var mpropdefs: Array[MPropDef] */;
8012 val
* var7
/* : ArrayIterator[nullable Object] */;
8013 val
* var_i
/* var i: ArrayIterator[MPropDef] */;
8014 short int var8
/* : Bool */;
8015 short int var9
/* : Bool */;
8016 short int var_
/* var : Bool */;
8017 val
* var10
/* : nullable Object */;
8018 short int var11
/* : Bool */;
8019 val
* var_other
/* var other: nullable Object */;
8020 short int var13
/* : Bool */;
8021 short int var14
/* : Bool */;
8022 short int var15
/* : Bool */;
8023 short int var16
/* : Bool */;
8024 val
* var17
/* : nullable Object */;
8025 short int var18
/* : Bool */;
8028 const struct type
* type_struct
;
8029 const char* var_class_name
;
8033 var1
= ((short int(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nit__model__MType__need_anchor
]))(var_mtype
); /* need_anchor on <var_mtype:MType>*/
8036 if (unlikely(!var2
)) {
8037 PRINT_ERROR("Runtime error: %s", "Assert failed");
8038 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2317);
8042 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
8043 var5
= self
->attrs
[COLOR_nit__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
8044 if (unlikely(var5
== NULL
)) {
8045 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
8046 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2212);
8054 var6
= nit___nit__MProperty___lookup_all_definitions(var3
, var_mmodule
, var_mtype
);
8056 var_mpropdefs
= var6
;
8058 var7
= standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(var_mpropdefs
);
8063 var9
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(var_i
);
8068 var10
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(var_i
);
8071 { /* Inline kernel#Object#!= (var10,self) on <var10:nullable Object(MPropDef)> */
8074 var13
= ((short int(*)(val
* self
, val
* p0
))(var10
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var10
, var_other
); /* == on <var10:nullable Object(MPropDef)>*/
8079 RET_LABEL12
:(void)0;
8088 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(var_i
); /* Direct call array#ArrayIterator#next on <var_i:ArrayIterator[MPropDef]>*/
8094 BREAK_label
: (void)0;
8096 var15
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(var_i
);
8098 if (unlikely(!var15
)) {
8099 PRINT_ERROR("Runtime error: %s", "Assert \'has_property\' failed");
8100 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2322);
8104 standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(var_i
); /* Direct call array#ArrayIterator#next on <var_i:ArrayIterator[MPropDef]>*/
8107 var16
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(var_i
);
8109 if (unlikely(!var16
)) {
8110 PRINT_ERROR("Runtime error: %s", "Assert \'has_next_property\' failed");
8111 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2324);
8115 var17
= standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(var_i
);
8117 /* <var17:nullable Object(MPropDef)> isa MPROPDEF */
8118 type_struct
= self
->type
->resolution_table
->types
[COLOR_nit__model__MPropDef__MPROPDEF
];
8119 cltype
= type_struct
->color
;
8120 idtype
= type_struct
->id
;
8121 if(cltype
>= var17
->type
->table_size
) {
8124 var18
= var17
->type
->type_table
[cltype
] == idtype
;
8126 if (unlikely(!var18
)) {
8127 var_class_name
= var17
== NULL ?
"null" : var17
->type
->name
;
8128 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "MPROPDEF", var_class_name
);
8129 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2325);
8137 /* method model#MMethodDef#msignature for (self: MMethodDef): nullable MSignature */
8138 val
* nit___nit__MMethodDef___msignature(val
* self
) {
8139 val
* var
/* : nullable MSignature */;
8140 val
* var1
/* : nullable MSignature */;
8141 var1
= self
->attrs
[COLOR_nit__model__MMethodDef___msignature
].val
; /* _msignature on <self:MMethodDef> */
8146 /* method model#MMethodDef#msignature= for (self: MMethodDef, nullable MSignature) */
8147 void nit___nit__MMethodDef___msignature_61d(val
* self
, val
* p0
) {
8148 self
->attrs
[COLOR_nit__model__MMethodDef___msignature
].val
= p0
; /* _msignature on <self:MMethodDef> */
8151 /* method model#MMethodDef#new_msignature for (self: MMethodDef): nullable MSignature */
8152 val
* nit___nit__MMethodDef___new_msignature(val
* self
) {
8153 val
* var
/* : nullable MSignature */;
8154 val
* var1
/* : nullable MSignature */;
8155 var1
= self
->attrs
[COLOR_nit__model__MMethodDef___new_msignature
].val
; /* _new_msignature on <self:MMethodDef> */
8160 /* method model#MMethodDef#new_msignature= for (self: MMethodDef, nullable MSignature) */
8161 void nit___nit__MMethodDef___new_msignature_61d(val
* self
, val
* p0
) {
8162 self
->attrs
[COLOR_nit__model__MMethodDef___new_msignature
].val
= p0
; /* _new_msignature on <self:MMethodDef> */
8165 /* method model#MMethodDef#initializers for (self: MMethodDef): Array[MProperty] */
8166 val
* nit___nit__MMethodDef___initializers(val
* self
) {
8167 val
* var
/* : Array[MProperty] */;
8168 val
* var1
/* : Array[MProperty] */;
8169 var1
= self
->attrs
[COLOR_nit__model__MMethodDef___initializers
].val
; /* _initializers on <self:MMethodDef> */
8170 if (unlikely(var1
== NULL
)) {
8171 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _initializers");
8172 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2345);
8179 /* method model#MMethodDef#is_abstract for (self: MMethodDef): Bool */
8180 short int nit___nit__MMethodDef___is_abstract(val
* self
) {
8181 short int var
/* : Bool */;
8182 short int var1
/* : Bool */;
8183 var1
= self
->attrs
[COLOR_nit__model__MMethodDef___is_abstract
].s
; /* _is_abstract on <self:MMethodDef> */
8188 /* method model#MMethodDef#is_abstract= for (self: MMethodDef, Bool) */
8189 void nit___nit__MMethodDef___is_abstract_61d(val
* self
, short int p0
) {
8190 self
->attrs
[COLOR_nit__model__MMethodDef___is_abstract
].s
= p0
; /* _is_abstract on <self:MMethodDef> */
8193 /* method model#MMethodDef#is_intern for (self: MMethodDef): Bool */
8194 short int nit___nit__MMethodDef___is_intern(val
* self
) {
8195 short int var
/* : Bool */;
8196 short int var1
/* : Bool */;
8197 var1
= self
->attrs
[COLOR_nit__model__MMethodDef___is_intern
].s
; /* _is_intern on <self:MMethodDef> */
8202 /* method model#MMethodDef#is_intern= for (self: MMethodDef, Bool) */
8203 void nit___nit__MMethodDef___is_intern_61d(val
* self
, short int p0
) {
8204 self
->attrs
[COLOR_nit__model__MMethodDef___is_intern
].s
= p0
; /* _is_intern on <self:MMethodDef> */
8207 /* method model#MMethodDef#is_extern for (self: MMethodDef): Bool */
8208 short int nit___nit__MMethodDef___is_extern(val
* self
) {
8209 short int var
/* : Bool */;
8210 short int var1
/* : Bool */;
8211 var1
= self
->attrs
[COLOR_nit__model__MMethodDef___is_extern
].s
; /* _is_extern on <self:MMethodDef> */
8216 /* method model#MMethodDef#is_extern= for (self: MMethodDef, Bool) */
8217 void nit___nit__MMethodDef___is_extern_61d(val
* self
, short int p0
) {
8218 self
->attrs
[COLOR_nit__model__MMethodDef___is_extern
].s
= p0
; /* _is_extern on <self:MMethodDef> */
8221 /* method model#MMethodDef#constant_value for (self: MMethodDef): nullable Object */
8222 val
* nit___nit__MMethodDef___constant_value(val
* self
) {
8223 val
* var
/* : nullable Object */;
8224 val
* var1
/* : nullable Object */;
8225 var1
= self
->attrs
[COLOR_nit__model__MMethodDef___constant_value
].val
; /* _constant_value on <self:MMethodDef> */
8230 /* method model#MMethodDef#constant_value= for (self: MMethodDef, nullable Object) */
8231 void nit___nit__MMethodDef___constant_value_61d(val
* self
, val
* p0
) {
8232 self
->attrs
[COLOR_nit__model__MMethodDef___constant_value
].val
= p0
; /* _constant_value on <self:MMethodDef> */
8235 /* method model#MAttributeDef#static_mtype for (self: MAttributeDef): nullable MType */
8236 val
* nit___nit__MAttributeDef___static_mtype(val
* self
) {
8237 val
* var
/* : nullable MType */;
8238 val
* var1
/* : nullable MType */;
8239 var1
= self
->attrs
[COLOR_nit__model__MAttributeDef___static_mtype
].val
; /* _static_mtype on <self:MAttributeDef> */
8244 /* method model#MAttributeDef#static_mtype= for (self: MAttributeDef, nullable MType) */
8245 void nit___nit__MAttributeDef___static_mtype_61d(val
* self
, val
* p0
) {
8246 self
->attrs
[COLOR_nit__model__MAttributeDef___static_mtype
].val
= p0
; /* _static_mtype on <self:MAttributeDef> */
8249 /* method model#MVirtualTypeDef#bound for (self: MVirtualTypeDef): nullable MType */
8250 val
* nit___nit__MVirtualTypeDef___bound(val
* self
) {
8251 val
* var
/* : nullable MType */;
8252 val
* var1
/* : nullable MType */;
8253 var1
= self
->attrs
[COLOR_nit__model__MVirtualTypeDef___bound
].val
; /* _bound on <self:MVirtualTypeDef> */
8258 /* method model#MVirtualTypeDef#bound= for (self: MVirtualTypeDef, nullable MType) */
8259 void nit___nit__MVirtualTypeDef___bound_61d(val
* self
, val
* p0
) {
8260 self
->attrs
[COLOR_nit__model__MVirtualTypeDef___bound
].val
= p0
; /* _bound on <self:MVirtualTypeDef> */
8263 /* method model#MVirtualTypeDef#is_fixed for (self: MVirtualTypeDef): Bool */
8264 short int nit___nit__MVirtualTypeDef___is_fixed(val
* self
) {
8265 short int var
/* : Bool */;
8266 short int var1
/* : Bool */;
8267 var1
= self
->attrs
[COLOR_nit__model__MVirtualTypeDef___is_fixed
].s
; /* _is_fixed on <self:MVirtualTypeDef> */
8272 /* method model#MVirtualTypeDef#is_fixed= for (self: MVirtualTypeDef, Bool) */
8273 void nit___nit__MVirtualTypeDef___is_fixed_61d(val
* self
, short int p0
) {
8274 self
->attrs
[COLOR_nit__model__MVirtualTypeDef___is_fixed
].s
= p0
; /* _is_fixed on <self:MVirtualTypeDef> */
8277 /* method model#MClassKind#to_s for (self: MClassKind): String */
8278 val
* nit___nit__MClassKind___standard__string__Object__to_s(val
* self
) {
8279 val
* var
/* : String */;
8280 val
* var1
/* : String */;
8281 var1
= self
->attrs
[COLOR_nit__model__MClassKind___to_s
].val
; /* _to_s on <self:MClassKind> */
8282 if (unlikely(var1
== NULL
)) {
8283 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _to_s");
8284 PRINT_ERROR(" (%s:%d)\n", FILE_nit__model
, 2408);
8291 /* method model#MClassKind#to_s= for (self: MClassKind, String) */
8292 void nit___nit__MClassKind___to_s_61d(val
* self
, val
* p0
) {
8293 self
->attrs
[COLOR_nit__model__MClassKind___to_s
].val
= p0
; /* _to_s on <self:MClassKind> */
8296 /* method model#MClassKind#need_init for (self: MClassKind): Bool */
8297 short int nit___nit__MClassKind___need_init(val
* self
) {
8298 short int var
/* : Bool */;
8299 short int var1
/* : Bool */;
8300 var1
= self
->attrs
[COLOR_nit__model__MClassKind___need_init
].s
; /* _need_init on <self:MClassKind> */
8305 /* method model#MClassKind#need_init= for (self: MClassKind, Bool) */
8306 void nit___nit__MClassKind___need_init_61d(val
* self
, short int p0
) {
8307 self
->attrs
[COLOR_nit__model__MClassKind___need_init
].s
= p0
; /* _need_init on <self:MClassKind> */
8310 /* method model#MClassKind#can_specialize for (self: MClassKind, MClassKind): Bool */
8311 short int nit___nit__MClassKind___can_specialize(val
* self
, val
* p0
) {
8312 short int var
/* : Bool */;
8313 val
* var_other
/* var other: MClassKind */;
8314 val
* var1
/* : Sys */;
8315 val
* var2
/* : MClassKind */;
8316 short int var3
/* : Bool */;
8317 val
* var_other5
/* var other: nullable Object */;
8318 short int var6
/* : Bool */;
8319 short int var8
/* : Bool */;
8320 short int var9
/* : Bool */;
8321 val
* var10
/* : Sys */;
8322 val
* var11
/* : MClassKind */;
8323 short int var12
/* : Bool */;
8324 short int var14
/* : Bool */;
8325 short int var16
/* : Bool */;
8326 short int var_
/* var : Bool */;
8327 val
* var17
/* : Sys */;
8328 val
* var18
/* : MClassKind */;
8329 short int var19
/* : Bool */;
8330 short int var21
/* : Bool */;
8331 short int var23
/* : Bool */;
8332 val
* var24
/* : Sys */;
8333 val
* var25
/* : MClassKind */;
8334 short int var26
/* : Bool */;
8335 short int var28
/* : Bool */;
8336 short int var30
/* : Bool */;
8337 short int var31
/* : Bool */;
8338 short int var33
/* : Bool */;
8339 short int var35
/* : Bool */;
8340 short int var36
/* : Bool */;
8341 val
* var37
/* : Sys */;
8342 val
* var38
/* : MClassKind */;
8343 short int var39
/* : Bool */;
8344 short int var41
/* : Bool */;
8345 short int var43
/* : Bool */;
8346 short int var_44
/* var : Bool */;
8347 val
* var45
/* : Sys */;
8348 val
* var46
/* : MClassKind */;
8349 short int var47
/* : Bool */;
8350 short int var49
/* : Bool */;
8351 short int var51
/* : Bool */;
8355 var2
= nit__model___standard__Sys___interface_kind(var1
);
8358 { /* Inline kernel#Object#== (var_other,var2) on <var_other:MClassKind> */
8361 { /* Inline kernel#Object#is_same_instance (var_other,var_other5) on <var_other:MClassKind> */
8362 var8
= var_other
== var_other5
;
8380 var11
= nit__model___standard__Sys___interface_kind(var10
);
8383 { /* Inline kernel#Object#== (self,var11) on <self:MClassKind> */
8386 { /* Inline kernel#Object#is_same_instance (self,var_other5) on <self:MClassKind> */
8387 var16
= self
== var_other5
;
8390 RET_LABEL15
:(void)0;
8395 RET_LABEL13
:(void)0;
8404 var18
= nit__model___standard__Sys___enum_kind(var17
);
8407 { /* Inline kernel#Object#== (self,var18) on <self:MClassKind> */
8410 { /* Inline kernel#Object#is_same_instance (self,var_other5) on <self:MClassKind> */
8411 var23
= self
== var_other5
;
8414 RET_LABEL22
:(void)0;
8419 RET_LABEL20
:(void)0;
8430 var25
= nit__model___standard__Sys___extern_kind(var24
);
8433 { /* Inline kernel#Object#== (self,var25) on <self:MClassKind> */
8436 { /* Inline kernel#Object#is_same_instance (self,var_other5) on <self:MClassKind> */
8437 var30
= self
== var_other5
;
8440 RET_LABEL29
:(void)0;
8445 RET_LABEL27
:(void)0;
8450 { /* Inline kernel#Object#== (self,var_other) on <self:MClassKind> */
8451 var_other5
= var_other
;
8453 { /* Inline kernel#Object#is_same_instance (self,var_other5) on <self:MClassKind> */
8454 var35
= self
== var_other5
;
8457 RET_LABEL34
:(void)0;
8462 RET_LABEL32
:(void)0;
8470 var38
= nit__model___standard__Sys___enum_kind(var37
);
8473 { /* Inline kernel#Object#== (var_other,var38) on <var_other:MClassKind> */
8476 { /* Inline kernel#Object#is_same_instance (var_other,var_other5) on <var_other:MClassKind> */
8477 var43
= var_other
== var_other5
;
8480 RET_LABEL42
:(void)0;
8485 RET_LABEL40
:(void)0;
8494 var46
= nit__model___standard__Sys___extern_kind(var45
);
8497 { /* Inline kernel#Object#== (var_other,var46) on <var_other:MClassKind> */
8500 { /* Inline kernel#Object#is_same_instance (var_other,var_other5) on <var_other:MClassKind> */
8501 var51
= var_other
== var_other5
;
8504 RET_LABEL50
:(void)0;
8509 RET_LABEL48
:(void)0;
8526 /* method model#MClassKind#init for (self: MClassKind) */
8527 void nit___nit__MClassKind___standard__kernel__Object__init(val
* self
) {
8529 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nit___nit__MClassKind___standard__kernel__Object__init
]))(self
); /* init on <self:MClassKind>*/
8533 /* method model#Sys#abstract_kind for (self: Sys): MClassKind */
8534 val
* nit__model___standard__Sys___abstract_kind(val
* self
) {
8535 val
* var
/* : MClassKind */;
8536 static val
* varonce
;
8537 static int varonce_guard
;
8538 val
* var1
/* : MClassKind */;
8539 val
* var2
/* : MClassKind */;
8540 static val
* varonce3
;
8541 val
* var4
/* : String */;
8542 char* var5
/* : NativeString */;
8543 val
* var6
/* : FlatString */;
8544 if (likely(varonce_guard
)) {
8547 var2
= NEW_nit__MClassKind(&type_nit__MClassKind
);
8548 if (likely(varonce3
!=NULL
)) {
8551 var5
= "abstract class";
8552 var6
= standard___standard__NativeString___to_s_with_length(var5
, 14l);
8557 ((void(*)(val
* self
, val
* p0
))(var2
->class->vft
[COLOR_nit__model__MClassKind__to_s_61d
]))(var2
, var4
); /* to_s= on <var2:MClassKind>*/
8560 ((void(*)(val
* self
, short int p0
))(var2
->class->vft
[COLOR_nit__model__MClassKind__need_init_61d
]))(var2
, 1); /* need_init= on <var2:MClassKind>*/
8563 ((void(*)(val
* self
))(var2
->class->vft
[COLOR_standard__kernel__Object__init
]))(var2
); /* init on <var2:MClassKind>*/
8574 /* method model#Sys#concrete_kind for (self: Sys): MClassKind */
8575 val
* nit__model___standard__Sys___concrete_kind(val
* self
) {
8576 val
* var
/* : MClassKind */;
8577 static val
* varonce
;
8578 static int varonce_guard
;
8579 val
* var1
/* : MClassKind */;
8580 val
* var2
/* : MClassKind */;
8581 static val
* varonce3
;
8582 val
* var4
/* : String */;
8583 char* var5
/* : NativeString */;
8584 val
* var6
/* : FlatString */;
8585 if (likely(varonce_guard
)) {
8588 var2
= NEW_nit__MClassKind(&type_nit__MClassKind
);
8589 if (likely(varonce3
!=NULL
)) {
8593 var6
= standard___standard__NativeString___to_s_with_length(var5
, 5l);
8598 ((void(*)(val
* self
, val
* p0
))(var2
->class->vft
[COLOR_nit__model__MClassKind__to_s_61d
]))(var2
, var4
); /* to_s= on <var2:MClassKind>*/
8601 ((void(*)(val
* self
, short int p0
))(var2
->class->vft
[COLOR_nit__model__MClassKind__need_init_61d
]))(var2
, 1); /* need_init= on <var2:MClassKind>*/
8604 ((void(*)(val
* self
))(var2
->class->vft
[COLOR_standard__kernel__Object__init
]))(var2
); /* init on <var2:MClassKind>*/
8615 /* method model#Sys#interface_kind for (self: Sys): MClassKind */
8616 val
* nit__model___standard__Sys___interface_kind(val
* self
) {
8617 val
* var
/* : MClassKind */;
8618 static val
* varonce
;
8619 static int varonce_guard
;
8620 val
* var1
/* : MClassKind */;
8621 val
* var2
/* : MClassKind */;
8622 static val
* varonce3
;
8623 val
* var4
/* : String */;
8624 char* var5
/* : NativeString */;
8625 val
* var6
/* : FlatString */;
8626 if (likely(varonce_guard
)) {
8629 var2
= NEW_nit__MClassKind(&type_nit__MClassKind
);
8630 if (likely(varonce3
!=NULL
)) {
8634 var6
= standard___standard__NativeString___to_s_with_length(var5
, 9l);
8639 ((void(*)(val
* self
, val
* p0
))(var2
->class->vft
[COLOR_nit__model__MClassKind__to_s_61d
]))(var2
, var4
); /* to_s= on <var2:MClassKind>*/
8642 ((void(*)(val
* self
, short int p0
))(var2
->class->vft
[COLOR_nit__model__MClassKind__need_init_61d
]))(var2
, 0); /* need_init= on <var2:MClassKind>*/
8645 ((void(*)(val
* self
))(var2
->class->vft
[COLOR_standard__kernel__Object__init
]))(var2
); /* init on <var2:MClassKind>*/
8656 /* method model#Sys#enum_kind for (self: Sys): MClassKind */
8657 val
* nit__model___standard__Sys___enum_kind(val
* self
) {
8658 val
* var
/* : MClassKind */;
8659 static val
* varonce
;
8660 static int varonce_guard
;
8661 val
* var1
/* : MClassKind */;
8662 val
* var2
/* : MClassKind */;
8663 static val
* varonce3
;
8664 val
* var4
/* : String */;
8665 char* var5
/* : NativeString */;
8666 val
* var6
/* : FlatString */;
8667 if (likely(varonce_guard
)) {
8670 var2
= NEW_nit__MClassKind(&type_nit__MClassKind
);
8671 if (likely(varonce3
!=NULL
)) {
8675 var6
= standard___standard__NativeString___to_s_with_length(var5
, 4l);
8680 ((void(*)(val
* self
, val
* p0
))(var2
->class->vft
[COLOR_nit__model__MClassKind__to_s_61d
]))(var2
, var4
); /* to_s= on <var2:MClassKind>*/
8683 ((void(*)(val
* self
, short int p0
))(var2
->class->vft
[COLOR_nit__model__MClassKind__need_init_61d
]))(var2
, 0); /* need_init= on <var2:MClassKind>*/
8686 ((void(*)(val
* self
))(var2
->class->vft
[COLOR_standard__kernel__Object__init
]))(var2
); /* init on <var2:MClassKind>*/
8697 /* method model#Sys#extern_kind for (self: Sys): MClassKind */
8698 val
* nit__model___standard__Sys___extern_kind(val
* self
) {
8699 val
* var
/* : MClassKind */;
8700 static val
* varonce
;
8701 static int varonce_guard
;
8702 val
* var1
/* : MClassKind */;
8703 val
* var2
/* : MClassKind */;
8704 static val
* varonce3
;
8705 val
* var4
/* : String */;
8706 char* var5
/* : NativeString */;
8707 val
* var6
/* : FlatString */;
8708 if (likely(varonce_guard
)) {
8711 var2
= NEW_nit__MClassKind(&type_nit__MClassKind
);
8712 if (likely(varonce3
!=NULL
)) {
8715 var5
= "extern class";
8716 var6
= standard___standard__NativeString___to_s_with_length(var5
, 12l);
8721 ((void(*)(val
* self
, val
* p0
))(var2
->class->vft
[COLOR_nit__model__MClassKind__to_s_61d
]))(var2
, var4
); /* to_s= on <var2:MClassKind>*/
8724 ((void(*)(val
* self
, short int p0
))(var2
->class->vft
[COLOR_nit__model__MClassKind__need_init_61d
]))(var2
, 0); /* need_init= on <var2:MClassKind>*/
8727 ((void(*)(val
* self
))(var2
->class->vft
[COLOR_standard__kernel__Object__init
]))(var2
); /* init on <var2:MClassKind>*/