1 #include "nitc__model.sep.0.h"
2 /* method model#MVirtualType#full_name for (self: MVirtualType): String */
3 val
* nitc___nitc__MVirtualType___nitc__model_base__MEntity__full_name(val
* self
) {
4 val
* var
/* : String */;
5 val
* var1
/* : MVirtualTypeProp */;
6 val
* var3
/* : MVirtualTypeProp */;
7 val
* var4
/* : String */;
9 { /* Inline model#MVirtualType#mproperty (self) on <self:MVirtualType> */
10 var3
= self
->attrs
[COLOR_nitc__model__MVirtualType___mproperty
].val
; /* _mproperty on <self:MVirtualType> */
11 if (unlikely(var3
== NULL
)) {
12 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
13 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1369);
21 var4
= nitc___nitc__MProperty___nitc__model_base__MEntity__full_name(var1
);
28 /* method model#MVirtualType#c_name for (self: MVirtualType): String */
29 val
* nitc___nitc__MVirtualType___nitc__model_base__MEntity__c_name(val
* self
) {
30 val
* var
/* : String */;
31 val
* var1
/* : MVirtualTypeProp */;
32 val
* var3
/* : MVirtualTypeProp */;
33 val
* var4
/* : String */;
35 { /* Inline model#MVirtualType#mproperty (self) on <self:MVirtualType> */
36 var3
= self
->attrs
[COLOR_nitc__model__MVirtualType___mproperty
].val
; /* _mproperty on <self:MVirtualType> */
37 if (unlikely(var3
== NULL
)) {
38 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
39 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1369);
47 var4
= nitc___nitc__MProperty___nitc__model_base__MEntity__c_name(var1
);
54 /* method model#MVirtualType#init for (self: MVirtualType) */
55 void nitc___nitc__MVirtualType___core__kernel__Object__init(val
* self
) {
57 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nitc___nitc__MVirtualType___core__kernel__Object__init
]))(self
); /* init on <self:MVirtualType>*/
61 /* method model#MParameterType#mclass for (self: MParameterType): MClass */
62 val
* nitc___nitc__MParameterType___mclass(val
* self
) {
63 val
* var
/* : MClass */;
64 val
* var1
/* : MClass */;
65 var1
= self
->attrs
[COLOR_nitc__model__MParameterType___mclass
].val
; /* _mclass on <self:MParameterType> */
66 if (unlikely(var1
== NULL
)) {
67 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
68 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1498);
75 /* method model#MParameterType#mclass= for (self: MParameterType, MClass) */
76 void nitc___nitc__MParameterType___mclass_61d(val
* self
, val
* p0
) {
77 self
->attrs
[COLOR_nitc__model__MParameterType___mclass
].val
= p0
; /* _mclass on <self:MParameterType> */
80 /* method model#MParameterType#model for (self: MParameterType): Model */
81 val
* nitc___nitc__MParameterType___nitc__model_base__MEntity__model(val
* self
) {
82 val
* var
/* : Model */;
83 val
* var1
/* : MClass */;
84 val
* var3
/* : MClass */;
85 val
* var4
/* : MModule */;
86 val
* var6
/* : MModule */;
87 val
* var7
/* : Model */;
88 val
* var9
/* : Model */;
90 { /* Inline model#MParameterType#mclass (self) on <self:MParameterType> */
91 var3
= self
->attrs
[COLOR_nitc__model__MParameterType___mclass
].val
; /* _mclass on <self:MParameterType> */
92 if (unlikely(var3
== NULL
)) {
93 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
94 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1498);
102 { /* Inline model#MClass#intro_mmodule (var1) on <var1:MClass> */
103 var6
= var1
->attrs
[COLOR_nitc__model__MClass___intro_mmodule
].val
; /* _intro_mmodule on <var1:MClass> */
104 if (unlikely(var6
== NULL
)) {
105 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mmodule");
106 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 380);
114 { /* Inline mmodule#MModule#model (var4) on <var4:MModule> */
115 var9
= var4
->attrs
[COLOR_nitc__mmodule__MModule___model
].val
; /* _model on <var4:MModule> */
116 if (unlikely(var9
== NULL
)) {
117 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _model");
118 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__mmodule
, 78);
130 /* method model#MParameterType#rank for (self: MParameterType): Int */
131 long nitc___nitc__MParameterType___rank(val
* self
) {
132 long var
/* : Int */;
133 long var1
/* : Int */;
134 var1
= self
->attrs
[COLOR_nitc__model__MParameterType___rank
].l
; /* _rank on <self:MParameterType> */
139 /* method model#MParameterType#rank= for (self: MParameterType, Int) */
140 void nitc___nitc__MParameterType___rank_61d(val
* self
, long p0
) {
141 self
->attrs
[COLOR_nitc__model__MParameterType___rank
].l
= p0
; /* _rank on <self:MParameterType> */
144 /* method model#MParameterType#name for (self: MParameterType): String */
145 val
* nitc___nitc__MParameterType___nitc__model_base__MEntity__name(val
* self
) {
146 val
* var
/* : String */;
147 val
* var1
/* : String */;
148 var1
= self
->attrs
[COLOR_nitc__model__MParameterType___name
].val
; /* _name on <self:MParameterType> */
149 if (unlikely(var1
== NULL
)) {
150 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
151 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1507);
158 /* method model#MParameterType#name= for (self: MParameterType, String) */
159 void nitc___nitc__MParameterType___name_61d(val
* self
, val
* p0
) {
160 self
->attrs
[COLOR_nitc__model__MParameterType___name
].val
= p0
; /* _name on <self:MParameterType> */
163 /* method model#MParameterType#to_s for (self: MParameterType): String */
164 val
* nitc___nitc__MParameterType___core__abstract_text__Object__to_s(val
* self
) {
165 val
* var
/* : String */;
166 val
* var1
/* : String */;
167 val
* var3
/* : String */;
169 { /* Inline model#MParameterType#name (self) on <self:MParameterType> */
170 var3
= self
->attrs
[COLOR_nitc__model__MParameterType___name
].val
; /* _name on <self:MParameterType> */
171 if (unlikely(var3
== NULL
)) {
172 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
173 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1507);
185 /* method model#MParameterType#full_name for (self: MParameterType): String */
186 val
* nitc___nitc__MParameterType___nitc__model_base__MEntity__full_name(val
* self
) {
187 val
* var
/* : String */;
188 short int var1
/* : Bool */;
189 val
* var2
/* : String */;
190 val
* var3
/* : String */;
191 val
* var5
/* : NativeArray[String] */;
193 static val
* varonce6
;
194 val
* var7
/* : String */;
195 char* var8
/* : NativeString */;
196 val
* var9
/* : String */;
197 val
* var10
/* : MClass */;
198 val
* var12
/* : MClass */;
199 val
* var13
/* : String */;
200 val
* var14
/* : String */;
201 val
* var16
/* : String */;
202 val
* var17
/* : String */;
203 var1
= self
->attrs
[COLOR_nitc__model__MParameterType___full_name
].val
!= NULL
; /* _full_name on <self:MParameterType> */
205 var2
= self
->attrs
[COLOR_nitc__model__MParameterType___full_name
].val
; /* _full_name on <self:MParameterType> */
206 if (unlikely(var2
== NULL
)) {
207 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _full_name");
208 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1511);
213 if (unlikely(varonce
==NULL
)) {
214 var5
= NEW_core__NativeArray(3l, &type_core__NativeArray__core__String
);
215 if (likely(varonce6
!=NULL
)) {
219 var9
= core__flat___NativeString___to_s_full(var8
, 2l, 2l);
223 ((struct instance_core__NativeArray
*)var5
)->values
[1]=var7
;
229 { /* Inline model#MParameterType#mclass (self) on <self:MParameterType> */
230 var12
= self
->attrs
[COLOR_nitc__model__MParameterType___mclass
].val
; /* _mclass on <self:MParameterType> */
231 if (unlikely(var12
== NULL
)) {
232 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
233 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1498);
241 var13
= nitc___nitc__MClass___nitc__model_base__MEntity__full_name(var10
);
243 ((struct instance_core__NativeArray
*)var5
)->values
[0]=var13
;
245 { /* Inline model#MParameterType#name (self) on <self:MParameterType> */
246 var16
= self
->attrs
[COLOR_nitc__model__MParameterType___name
].val
; /* _name on <self:MParameterType> */
247 if (unlikely(var16
== NULL
)) {
248 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
249 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1507);
256 ((struct instance_core__NativeArray
*)var5
)->values
[2]=var14
;
258 var17
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var5
); /* native_to_s on <var5:NativeArray[String]>*/
265 self
->attrs
[COLOR_nitc__model__MParameterType___full_name
].val
= var3
; /* _full_name on <self:MParameterType> */
272 /* method model#MParameterType#c_name for (self: MParameterType): String */
273 val
* nitc___nitc__MParameterType___nitc__model_base__MEntity__c_name(val
* self
) {
274 val
* var
/* : String */;
275 short int var1
/* : Bool */;
276 val
* var2
/* : String */;
277 val
* var3
/* : String */;
278 val
* var5
/* : MClass */;
279 val
* var7
/* : MClass */;
280 val
* var8
/* : String */;
282 val
* var9
/* : String */;
283 char* var10
/* : NativeString */;
284 val
* var11
/* : String */;
285 val
* var12
/* : String */;
286 val
* var14
/* : NativeArray[String] */;
287 static val
* varonce13
;
288 static val
* varonce15
;
289 val
* var16
/* : String */;
290 char* var17
/* : NativeString */;
291 val
* var18
/* : String */;
292 val
* var19
/* : String */;
293 val
* var21
/* : String */;
294 val
* var22
/* : String */;
295 val
* var23
/* : String */;
296 val
* var24
/* : String */;
297 var1
= self
->attrs
[COLOR_nitc__model__MParameterType___c_name
].val
!= NULL
; /* _c_name on <self:MParameterType> */
299 var2
= self
->attrs
[COLOR_nitc__model__MParameterType___c_name
].val
; /* _c_name on <self:MParameterType> */
300 if (unlikely(var2
== NULL
)) {
301 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _c_name");
302 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1513);
308 { /* Inline model#MParameterType#mclass (self) on <self:MParameterType> */
309 var7
= self
->attrs
[COLOR_nitc__model__MParameterType___mclass
].val
; /* _mclass on <self:MParameterType> */
310 if (unlikely(var7
== NULL
)) {
311 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
312 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1498);
320 var8
= nitc___nitc__MClass___nitc__model_base__MEntity__c_name(var5
);
322 if (likely(varonce
!=NULL
)) {
326 var11
= core__flat___NativeString___to_s_full(var10
, 2l, 2l);
331 var12
= ((val
*(*)(val
* self
, val
* p0
))(var8
->class->vft
[COLOR_core__abstract_text__String___43d
]))(var8
, var9
); /* + on <var8:String>*/
333 if (unlikely(varonce13
==NULL
)) {
334 var14
= NEW_core__NativeArray(2l, &type_core__NativeArray__core__String
);
335 if (likely(varonce15
!=NULL
)) {
339 var18
= core__flat___NativeString___to_s_full(var17
, 1l, 1l);
343 ((struct instance_core__NativeArray
*)var14
)->values
[0]=var16
;
349 { /* Inline model#MParameterType#name (self) on <self:MParameterType> */
350 var21
= self
->attrs
[COLOR_nitc__model__MParameterType___name
].val
; /* _name on <self:MParameterType> */
351 if (unlikely(var21
== NULL
)) {
352 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
353 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1507);
360 ((struct instance_core__NativeArray
*)var14
)->values
[1]=var19
;
362 var22
= ((val
*(*)(val
* self
))(var14
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var14
); /* native_to_s on <var14:NativeArray[String]>*/
366 var23
= core___core__Text___to_cmangle(var22
);
369 var24
= ((val
*(*)(val
* self
, val
* p0
))(var12
->class->vft
[COLOR_core__abstract_text__String___43d
]))(var12
, var23
); /* + on <var12:String>*/
375 self
->attrs
[COLOR_nitc__model__MParameterType___c_name
].val
= var3
; /* _c_name on <self:MParameterType> */
382 /* method model#MParameterType#lookup_bound for (self: MParameterType, MModule, MType): MType */
383 val
* nitc___nitc__MParameterType___MType__lookup_bound(val
* self
, val
* p0
, val
* p1
) {
384 val
* var
/* : MType */;
385 val
* var_mmodule
/* var mmodule: MModule */;
386 val
* var_resolved_receiver
/* var resolved_receiver: MType */;
387 short int var1
/* : Bool */;
388 short int var2
/* : Bool */;
389 val
* var3
/* : MType */;
390 short int var4
/* : Bool */;
393 val
* var5
/* : MClass */;
394 val
* var7
/* : MClass */;
395 val
* var_goalclass
/* var goalclass: MClass */;
396 val
* var8
/* : MClass */;
397 val
* var10
/* : MClass */;
398 short int var11
/* : Bool */;
399 val
* var_other
/* var other: nullable Object */;
400 short int var13
/* : Bool */;
401 short int var15
/* : Bool */;
402 val
* var16
/* : Array[MType] */;
403 long var17
/* : Int */;
404 long var19
/* : Int */;
405 val
* var20
/* : nullable Object */;
406 val
* var21
/* : Set[MClassType] */;
407 val
* var_supertypes
/* var supertypes: Set[MClassType] */;
408 val
* var_
/* var : Set[MClassType] */;
409 val
* var22
/* : Iterator[nullable Object] */;
410 val
* var_23
/* var : Iterator[MClassType] */;
411 short int var24
/* : Bool */;
412 val
* var25
/* : nullable Object */;
413 val
* var_t
/* var t: MClassType */;
414 val
* var26
/* : MClass */;
415 val
* var28
/* : MClass */;
416 short int var29
/* : Bool */;
417 short int var31
/* : Bool */;
418 short int var33
/* : Bool */;
419 val
* var34
/* : Array[MType] */;
420 long var35
/* : Int */;
421 long var37
/* : Int */;
422 val
* var38
/* : nullable Object */;
423 val
* var_res
/* var res: MType */;
425 var_resolved_receiver
= p1
;
427 var1
= ((short int(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nitc__model__MType__need_anchor
]))(var_resolved_receiver
); /* need_anchor on <var_resolved_receiver:MType>*/
430 if (unlikely(!var2
)) {
431 PRINT_ERROR("Runtime error: %s", "Assert failed");
432 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1517);
436 var3
= ((val
*(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nitc__model__MType__undecorate
]))(var_resolved_receiver
); /* undecorate on <var_resolved_receiver:MType>*/
438 var_resolved_receiver
= var3
;
439 /* <var_resolved_receiver:MType> isa MClassType */
440 cltype
= type_nitc__MClassType
.color
;
441 idtype
= type_nitc__MClassType
.id
;
442 if(cltype
>= var_resolved_receiver
->type
->table_size
) {
445 var4
= var_resolved_receiver
->type
->type_table
[cltype
] == idtype
;
447 if (unlikely(!var4
)) {
448 PRINT_ERROR("Runtime error: %s", "Assert failed");
449 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1519);
453 { /* Inline model#MParameterType#mclass (self) on <self:MParameterType> */
454 var7
= self
->attrs
[COLOR_nitc__model__MParameterType___mclass
].val
; /* _mclass on <self:MParameterType> */
455 if (unlikely(var7
== NULL
)) {
456 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
457 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1498);
464 var_goalclass
= var5
;
466 { /* Inline model#MClassType#mclass (var_resolved_receiver) on <var_resolved_receiver:MType(MClassType)> */
467 var10
= var_resolved_receiver
->attrs
[COLOR_nitc__model__MClassType___mclass
].val
; /* _mclass on <var_resolved_receiver:MType(MClassType)> */
468 if (unlikely(var10
== NULL
)) {
469 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
470 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1163);
478 { /* Inline kernel#Object#== (var8,var_goalclass) on <var8:MClass> */
479 var_other
= var_goalclass
;
481 { /* Inline kernel#Object#is_same_instance (var8,var_other) on <var8:MClass> */
482 var15
= var8
== var_other
;
495 var16
= ((val
*(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nitc__model__MClassType__arguments
]))(var_resolved_receiver
); /* arguments on <var_resolved_receiver:MType(MClassType)>*/
498 { /* Inline model#MParameterType#rank (self) on <self:MParameterType> */
499 var19
= self
->attrs
[COLOR_nitc__model__MParameterType___rank
].l
; /* _rank on <self:MParameterType> */
505 var20
= core___core__Array___core__abstract_collection__SequenceRead___91d_93d(var16
, var17
);
512 var21
= nitc___nitc__MClassType___MType__collect_mtypes(var_resolved_receiver
, var_mmodule
);
514 var_supertypes
= var21
;
515 var_
= var_supertypes
;
517 var22
= ((val
*(*)(val
* self
))((((long)var_
&3)?class_info
[((long)var_
&3)]:var_
->class)->vft
[COLOR_core__abstract_collection__Collection__iterator
]))(var_
); /* iterator on <var_:Set[MClassType]>*/
522 var24
= ((short int(*)(val
* self
))((((long)var_23
&3)?class_info
[((long)var_23
&3)]:var_23
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_23
); /* is_ok on <var_23:Iterator[MClassType]>*/
529 var25
= ((val
*(*)(val
* self
))((((long)var_23
&3)?class_info
[((long)var_23
&3)]:var_23
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_23
); /* item on <var_23:Iterator[MClassType]>*/
533 { /* Inline model#MClassType#mclass (var_t) on <var_t:MClassType> */
534 var28
= var_t
->attrs
[COLOR_nitc__model__MClassType___mclass
].val
; /* _mclass on <var_t:MClassType> */
535 if (unlikely(var28
== NULL
)) {
536 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
537 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1163);
545 { /* Inline kernel#Object#== (var26,var_goalclass) on <var26:MClass> */
546 var_other
= var_goalclass
;
548 { /* Inline kernel#Object#is_same_instance (var26,var_other) on <var26:MClass> */
549 var33
= var26
== var_other
;
562 var34
= ((val
*(*)(val
* self
))(var_t
->class->vft
[COLOR_nitc__model__MClassType__arguments
]))(var_t
); /* arguments on <var_t:MClassType>*/
565 { /* Inline model#MParameterType#rank (self) on <self:MParameterType> */
566 var37
= self
->attrs
[COLOR_nitc__model__MParameterType___rank
].l
; /* _rank on <self:MParameterType> */
572 var38
= core___core__Array___core__abstract_collection__SequenceRead___91d_93d(var34
, var35
);
580 ((void(*)(val
* self
))((((long)var_23
&3)?class_info
[((long)var_23
&3)]:var_23
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_23
); /* next on <var_23:Iterator[MClassType]>*/
583 BREAK_label
: (void)0;
585 ((void(*)(val
* self
))((((long)var_23
&3)?class_info
[((long)var_23
&3)]:var_23
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_23
); /* finish on <var_23:Iterator[MClassType]>*/
587 PRINT_ERROR("Runtime error: %s", "Aborted");
588 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1533);
593 /* method model#MParameterType#lookup_fixed for (self: MParameterType, MModule, MType): MType */
594 val
* nitc___nitc__MParameterType___MType__lookup_fixed(val
* self
, val
* p0
, val
* p1
) {
595 val
* var
/* : MType */;
596 val
* var_mmodule
/* var mmodule: MModule */;
597 val
* var_resolved_receiver
/* var resolved_receiver: MType */;
598 short int var1
/* : Bool */;
599 short int var2
/* : Bool */;
600 val
* var3
/* : MType */;
601 short int var4
/* : Bool */;
604 val
* var5
/* : MClass */;
605 val
* var7
/* : MClass */;
606 val
* var8
/* : MClassType */;
607 val
* var10
/* : MClassType */;
608 val
* var11
/* : MType */;
609 val
* var_res
/* var res: MType */;
611 var_resolved_receiver
= p1
;
613 var1
= ((short int(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nitc__model__MType__need_anchor
]))(var_resolved_receiver
); /* need_anchor on <var_resolved_receiver:MType>*/
616 if (unlikely(!var2
)) {
617 PRINT_ERROR("Runtime error: %s", "Assert failed");
618 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1545);
622 var3
= ((val
*(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nitc__model__MType__undecorate
]))(var_resolved_receiver
); /* undecorate on <var_resolved_receiver:MType>*/
624 var_resolved_receiver
= var3
;
625 /* <var_resolved_receiver:MType> isa MClassType */
626 cltype
= type_nitc__MClassType
.color
;
627 idtype
= type_nitc__MClassType
.id
;
628 if(cltype
>= var_resolved_receiver
->type
->table_size
) {
631 var4
= var_resolved_receiver
->type
->type_table
[cltype
] == idtype
;
633 if (unlikely(!var4
)) {
634 PRINT_ERROR("Runtime error: %s", "Assert failed");
635 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1547);
639 { /* Inline model#MClassType#mclass (var_resolved_receiver) on <var_resolved_receiver:MType(MClassType)> */
640 var7
= var_resolved_receiver
->attrs
[COLOR_nitc__model__MClassType___mclass
].val
; /* _mclass on <var_resolved_receiver:MType(MClassType)> */
641 if (unlikely(var7
== NULL
)) {
642 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
643 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1163);
651 { /* Inline model#MClass#mclass_type (var5) on <var5:MClass> */
652 var10
= var5
->attrs
[COLOR_nitc__model__MClass___mclass_type
].val
; /* _mclass_type on <var5:MClass> */
653 if (unlikely(var10
== NULL
)) {
654 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass_type");
655 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 507);
663 var11
= nitc___nitc__MParameterType___MType__resolve_for(self
, var8
, var_resolved_receiver
, var_mmodule
, 0);
671 /* method model#MParameterType#resolve_for for (self: MParameterType, MType, nullable MClassType, MModule, Bool): MType */
672 val
* nitc___nitc__MParameterType___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
673 val
* var
/* : MType */;
674 val
* var_mtype
/* var mtype: MType */;
675 val
* var_anchor
/* var anchor: nullable MClassType */;
676 val
* var_mmodule
/* var mmodule: MModule */;
677 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
678 short int var1
/* : Bool */;
679 short int var2
/* : Bool */;
680 short int var3
/* : Bool */;
683 short int var_
/* var : Bool */;
684 val
* var4
/* : MClass */;
685 val
* var6
/* : MClass */;
686 val
* var7
/* : MClass */;
687 val
* var9
/* : MClass */;
688 short int var10
/* : Bool */;
689 val
* var_other
/* var other: nullable Object */;
690 short int var12
/* : Bool */;
691 short int var14
/* : Bool */;
692 val
* var15
/* : Array[MType] */;
693 val
* var17
/* : Array[MType] */;
694 long var18
/* : Int */;
695 long var20
/* : Int */;
696 val
* var21
/* : nullable Object */;
697 val
* var_res
/* var res: MType */;
698 short int var22
/* : Bool */;
699 short int var23
/* : Bool */;
700 short int var24
/* : Bool */;
701 val
* var_other26
/* var other: nullable Object */;
702 short int var27
/* : Bool */;
703 short int var28
/* : Bool */;
704 short int var_29
/* var : Bool */;
705 short int var30
/* : Bool */;
706 val
* var31
/* : MType */;
707 val
* var_r2
/* var r2: MType */;
708 short int var32
/* : Bool */;
709 short int var33
/* : Bool */;
712 short int var_36
/* var : Bool */;
713 val
* var37
/* : MClass */;
714 val
* var39
/* : MClass */;
715 val
* var40
/* : MClassKind */;
716 val
* var42
/* : MClassKind */;
717 val
* var43
/* : Sys */;
718 val
* var44
/* : MClassKind */;
719 short int var45
/* : Bool */;
720 short int var47
/* : Bool */;
721 short int var49
/* : Bool */;
722 short int var50
/* : Bool */;
723 short int var51
/* : Bool */;
724 short int var52
/* : Bool */;
725 short int var54
/* : Bool */;
726 short int var55
/* : Bool */;
727 val
* var56
/* : MClass */;
728 val
* var58
/* : MClass */;
729 val
* var59
/* : MClassType */;
730 val
* var61
/* : MClassType */;
731 val
* var62
/* : MType */;
732 val
* var_resolved_receiver
/* var resolved_receiver: nullable Object */;
733 short int var63
/* : Bool */;
736 val
* var66
/* : MType */;
737 val
* var68
/* : MType */;
738 short int var69
/* : Bool */;
741 short int var72
/* : Bool */;
742 short int var73
/* : Bool */;
743 short int var75
/* : Bool */;
744 short int var76
/* : Bool */;
745 val
* var77
/* : MClass */;
746 val
* var79
/* : MClass */;
747 val
* var80
/* : MClass */;
748 val
* var82
/* : MClass */;
749 short int var83
/* : Bool */;
750 short int var85
/* : Bool */;
751 short int var87
/* : Bool */;
752 val
* var88
/* : Array[MType] */;
753 long var89
/* : Int */;
754 long var91
/* : Int */;
755 val
* var92
/* : nullable Object */;
756 short int var93
/* : Bool */;
759 val
* var96
/* : MType */;
760 val
* var98
/* : MType */;
761 short int var99
/* : Bool */;
764 val
* var102
/* : MClass */;
765 val
* var104
/* : MClass */;
766 val
* var105
/* : MClass */;
767 val
* var107
/* : MClass */;
768 short int var108
/* : Bool */;
769 short int var110
/* : Bool */;
770 short int var112
/* : Bool */;
771 val
* var113
/* : Array[MType] */;
772 long var114
/* : Int */;
773 long var116
/* : Int */;
774 val
* var117
/* : nullable Object */;
775 val
* var_res118
/* var res: MType */;
776 short int var119
/* : Bool */;
777 short int var120
/* : Bool */;
778 short int var121
/* : Bool */;
779 short int var123
/* : Bool */;
780 short int var124
/* : Bool */;
781 val
* var125
/* : MType */;
782 val
* var126
/* : MType */;
783 val
* var_verbatim_bound
/* var verbatim_bound: MType */;
784 val
* var127
/* : MType */;
785 val
* var_res128
/* var res: MType */;
789 var_cleanup_virtual
= p3
;
791 var1
= nitc___nitc__MParameterType___MType__can_resolve_for(self
, var_mtype
, var_anchor
, var_mmodule
);
793 if (unlikely(!var1
)) {
794 PRINT_ERROR("Runtime error: %s", "Assert failed");
795 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1554);
798 /* <var_mtype:MType> isa MGenericType */
799 cltype
= type_nitc__MGenericType
.color
;
800 idtype
= type_nitc__MGenericType
.id
;
801 if(cltype
>= var_mtype
->type
->table_size
) {
804 var3
= var_mtype
->type
->type_table
[cltype
] == idtype
;
809 { /* Inline model#MClassType#mclass (var_mtype) on <var_mtype:MType(MGenericType)> */
810 var6
= var_mtype
->attrs
[COLOR_nitc__model__MClassType___mclass
].val
; /* _mclass on <var_mtype:MType(MGenericType)> */
811 if (unlikely(var6
== NULL
)) {
812 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
813 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1163);
821 { /* Inline model#MParameterType#mclass (self) on <self:MParameterType> */
822 var9
= self
->attrs
[COLOR_nitc__model__MParameterType___mclass
].val
; /* _mclass on <self:MParameterType> */
823 if (unlikely(var9
== NULL
)) {
824 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
825 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1498);
833 { /* Inline kernel#Object#== (var4,var7) on <var4:MClass> */
836 { /* Inline kernel#Object#is_same_instance (var4,var_other) on <var4:MClass> */
837 var14
= var4
== var_other
;
854 { /* Inline model#MGenericType#arguments (var_mtype) on <var_mtype:MType(MGenericType)> */
855 var17
= var_mtype
->attrs
[COLOR_nitc__model__MGenericType___arguments
].val
; /* _arguments on <var_mtype:MType(MGenericType)> */
856 if (unlikely(var17
== NULL
)) {
857 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _arguments");
858 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1269);
866 { /* Inline model#MParameterType#rank (self) on <self:MParameterType> */
867 var20
= self
->attrs
[COLOR_nitc__model__MParameterType___rank
].l
; /* _rank on <self:MParameterType> */
873 var21
= core___core__Array___core__abstract_collection__SequenceRead___91d_93d(var15
, var18
);
876 if (var_anchor
== NULL
) {
877 var23
= 0; /* is null */
879 var23
= 1; /* arg is null and recv is not */
882 { /* Inline kernel#Object#!= (var_anchor,((val*)NULL)) on <var_anchor:nullable MClassType> */
883 var_other26
= ((val
*)NULL
);
885 var27
= ((short int(*)(val
* self
, val
* p0
))(var_anchor
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_anchor
, var_other26
); /* == on <var_anchor:nullable MClassType(MClassType)>*/
897 var30
= ((short int(*)(val
* self
))(var_res
->class->vft
[COLOR_nitc__model__MType__need_anchor
]))(var_res
); /* need_anchor on <var_res:MType>*/
905 var31
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
))(var_res
->class->vft
[COLOR_nitc__model__MType__anchor_to
]))(var_res
, var_mmodule
, var_anchor
); /* anchor_to on <var_res:MType>*/
908 /* <var_r2:MType> isa MClassType */
909 cltype34
= type_nitc__MClassType
.color
;
910 idtype35
= type_nitc__MClassType
.id
;
911 if(cltype34
>= var_r2
->type
->table_size
) {
914 var33
= var_r2
->type
->type_table
[cltype34
] == idtype35
;
919 { /* Inline model#MClassType#mclass (var_r2) on <var_r2:MType(MClassType)> */
920 var39
= var_r2
->attrs
[COLOR_nitc__model__MClassType___mclass
].val
; /* _mclass on <var_r2:MType(MClassType)> */
921 if (unlikely(var39
== NULL
)) {
922 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
923 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1163);
931 { /* Inline model#MClass#kind (var37) on <var37:MClass> */
932 var42
= var37
->attrs
[COLOR_nitc__model__MClass___kind
].val
; /* _kind on <var37:MClass> */
933 if (unlikely(var42
== NULL
)) {
934 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _kind");
935 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 459);
944 var44
= nitc__model___core__Sys___enum_kind(var43
);
947 { /* Inline kernel#Object#== (var40,var44) on <var40:MClassKind> */
950 { /* Inline kernel#Object#is_same_instance (var40,var_other) on <var40:MClassKind> */
951 var49
= var40
== var_other
;
978 var50
= ((short int(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nitc__model__MType__need_anchor
]))(var_mtype
); /* need_anchor on <var_mtype:MType>*/
981 if (var_anchor
== NULL
) {
982 var51
= 0; /* is null */
984 var51
= 1; /* arg is null and recv is not */
987 { /* Inline kernel#Object#!= (var_anchor,((val*)NULL)) on <var_anchor:nullable MClassType> */
988 var_other26
= ((val
*)NULL
);
990 var54
= ((short int(*)(val
* self
, val
* p0
))(var_anchor
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_anchor
, var_other26
); /* == on <var_anchor:nullable MClassType(MClassType)>*/
999 if (unlikely(!var51
)) {
1000 PRINT_ERROR("Runtime error: %s", "Assert failed");
1001 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1573);
1005 { /* Inline model#MClassType#mclass (var_anchor) on <var_anchor:nullable MClassType(MClassType)> */
1006 var58
= var_anchor
->attrs
[COLOR_nitc__model__MClassType___mclass
].val
; /* _mclass on <var_anchor:nullable MClassType(MClassType)> */
1007 if (unlikely(var58
== NULL
)) {
1008 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
1009 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1163);
1013 RET_LABEL57
:(void)0;
1017 { /* Inline model#MClass#mclass_type (var56) on <var56:MClass> */
1018 var61
= var56
->attrs
[COLOR_nitc__model__MClass___mclass_type
].val
; /* _mclass_type on <var56:MClass> */
1019 if (unlikely(var61
== NULL
)) {
1020 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass_type");
1021 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 507);
1025 RET_LABEL60
:(void)0;
1029 var62
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(var_mtype
->class->vft
[COLOR_nitc__model__MType__resolve_for
]))(var_mtype
, var59
, var_anchor
, var_mmodule
, 1); /* resolve_for on <var_mtype:MType>*/
1031 var_resolved_receiver
= var62
;
1033 var_resolved_receiver
= var_mtype
;
1035 /* <var_resolved_receiver:nullable Object(MType)> isa MNullableType */
1036 cltype64
= type_nitc__MNullableType
.color
;
1037 idtype65
= type_nitc__MNullableType
.id
;
1038 if(cltype64
>= var_resolved_receiver
->type
->table_size
) {
1041 var63
= var_resolved_receiver
->type
->type_table
[cltype64
] == idtype65
;
1045 { /* Inline model#MProxyType#mtype (var_resolved_receiver) on <var_resolved_receiver:nullable Object(MNullableType)> */
1046 var68
= var_resolved_receiver
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <var_resolved_receiver:nullable Object(MNullableType)> */
1047 if (unlikely(var68
== NULL
)) {
1048 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1049 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1053 RET_LABEL67
:(void)0;
1056 var_resolved_receiver
= var66
;
1059 /* <var_resolved_receiver:nullable Object(MType)> isa MParameterType */
1060 cltype70
= type_nitc__MParameterType
.color
;
1061 idtype71
= type_nitc__MParameterType
.id
;
1062 if(cltype70
>= var_resolved_receiver
->type
->table_size
) {
1065 var69
= var_resolved_receiver
->type
->type_table
[cltype70
] == idtype71
;
1068 if (var_anchor
== NULL
) {
1069 var72
= 0; /* is null */
1071 var72
= 1; /* arg is null and recv is not */
1074 { /* Inline kernel#Object#!= (var_anchor,((val*)NULL)) on <var_anchor:nullable MClassType> */
1075 var_other26
= ((val
*)NULL
);
1077 var75
= ((short int(*)(val
* self
, val
* p0
))(var_anchor
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_anchor
, var_other26
); /* == on <var_anchor:nullable MClassType(MClassType)>*/
1082 RET_LABEL74
:(void)0;
1086 if (unlikely(!var72
)) {
1087 PRINT_ERROR("Runtime error: %s", "Assert failed");
1088 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1580);
1092 { /* Inline model#MParameterType#mclass (var_resolved_receiver) on <var_resolved_receiver:nullable Object(MParameterType)> */
1093 var79
= var_resolved_receiver
->attrs
[COLOR_nitc__model__MParameterType___mclass
].val
; /* _mclass on <var_resolved_receiver:nullable Object(MParameterType)> */
1094 if (unlikely(var79
== NULL
)) {
1095 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
1096 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1498);
1100 RET_LABEL78
:(void)0;
1104 { /* Inline model#MClassType#mclass (var_anchor) on <var_anchor:nullable MClassType(MClassType)> */
1105 var82
= var_anchor
->attrs
[COLOR_nitc__model__MClassType___mclass
].val
; /* _mclass on <var_anchor:nullable MClassType(MClassType)> */
1106 if (unlikely(var82
== NULL
)) {
1107 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
1108 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1163);
1112 RET_LABEL81
:(void)0;
1116 { /* Inline kernel#Object#== (var77,var80) on <var77:MClass> */
1119 { /* Inline kernel#Object#is_same_instance (var77,var_other) on <var77:MClass> */
1120 var87
= var77
== var_other
;
1123 RET_LABEL86
:(void)0;
1128 RET_LABEL84
:(void)0;
1131 if (unlikely(!var83
)) {
1132 PRINT_ERROR("Runtime error: %s", "Assert failed");
1133 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1581);
1137 var88
= ((val
*(*)(val
* self
))(var_anchor
->class->vft
[COLOR_nitc__model__MClassType__arguments
]))(var_anchor
); /* arguments on <var_anchor:nullable MClassType(MClassType)>*/
1140 { /* Inline model#MParameterType#rank (var_resolved_receiver) on <var_resolved_receiver:nullable Object(MParameterType)> */
1141 var91
= var_resolved_receiver
->attrs
[COLOR_nitc__model__MParameterType___rank
].l
; /* _rank on <var_resolved_receiver:nullable Object(MParameterType)> */
1143 RET_LABEL90
:(void)0;
1147 var92
= core___core__Array___core__abstract_collection__SequenceRead___91d_93d(var88
, var89
);
1149 var_resolved_receiver
= var92
;
1150 /* <var_resolved_receiver:nullable Object(MType)> isa MNullableType */
1151 cltype94
= type_nitc__MNullableType
.color
;
1152 idtype95
= type_nitc__MNullableType
.id
;
1153 if(cltype94
>= var_resolved_receiver
->type
->table_size
) {
1156 var93
= var_resolved_receiver
->type
->type_table
[cltype94
] == idtype95
;
1160 { /* Inline model#MProxyType#mtype (var_resolved_receiver) on <var_resolved_receiver:nullable Object(MNullableType)> */
1161 var98
= var_resolved_receiver
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <var_resolved_receiver:nullable Object(MNullableType)> */
1162 if (unlikely(var98
== NULL
)) {
1163 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1164 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1168 RET_LABEL97
:(void)0;
1171 var_resolved_receiver
= var96
;
1176 /* <var_resolved_receiver:nullable Object(MType)> isa MClassType */
1177 cltype100
= type_nitc__MClassType
.color
;
1178 idtype101
= type_nitc__MClassType
.id
;
1179 if(cltype100
>= var_resolved_receiver
->type
->table_size
) {
1182 var99
= var_resolved_receiver
->type
->type_table
[cltype100
] == idtype101
;
1184 if (unlikely(!var99
)) {
1185 PRINT_ERROR("Runtime error: %s", "Assert failed");
1186 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1585);
1190 { /* Inline model#MClassType#mclass (var_resolved_receiver) on <var_resolved_receiver:nullable Object(MClassType)> */
1191 var104
= var_resolved_receiver
->attrs
[COLOR_nitc__model__MClassType___mclass
].val
; /* _mclass on <var_resolved_receiver:nullable Object(MClassType)> */
1192 if (unlikely(var104
== NULL
)) {
1193 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
1194 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1163);
1198 RET_LABEL103
:(void)0;
1202 { /* Inline model#MParameterType#mclass (self) on <self:MParameterType> */
1203 var107
= self
->attrs
[COLOR_nitc__model__MParameterType___mclass
].val
; /* _mclass on <self:MParameterType> */
1204 if (unlikely(var107
== NULL
)) {
1205 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
1206 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1498);
1210 RET_LABEL106
:(void)0;
1214 { /* Inline kernel#Object#== (var102,var105) on <var102:MClass> */
1217 { /* Inline kernel#Object#is_same_instance (var102,var_other) on <var102:MClass> */
1218 var112
= var102
== var_other
;
1221 RET_LABEL111
:(void)0;
1226 RET_LABEL109
:(void)0;
1231 var113
= ((val
*(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nitc__model__MClassType__arguments
]))(var_resolved_receiver
); /* arguments on <var_resolved_receiver:nullable Object(MClassType)>*/
1234 { /* Inline model#MParameterType#rank (self) on <self:MParameterType> */
1235 var116
= self
->attrs
[COLOR_nitc__model__MParameterType___rank
].l
; /* _rank on <self:MParameterType> */
1237 RET_LABEL115
:(void)0;
1241 var117
= core___core__Array___core__abstract_collection__SequenceRead___91d_93d(var113
, var114
);
1243 var_res118
= var117
;
1249 var119
= ((short int(*)(val
* self
))(var_resolved_receiver
->class->vft
[COLOR_nitc__model__MType__need_anchor
]))(var_resolved_receiver
); /* need_anchor on <var_resolved_receiver:nullable Object(MClassType)>*/
1252 if (var_anchor
== NULL
) {
1253 var120
= 0; /* is null */
1255 var120
= 1; /* arg is null and recv is not */
1258 { /* Inline kernel#Object#!= (var_anchor,((val*)NULL)) on <var_anchor:nullable MClassType> */
1259 var_other26
= ((val
*)NULL
);
1261 var123
= ((short int(*)(val
* self
, val
* p0
))(var_anchor
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_anchor
, var_other26
); /* == on <var_anchor:nullable MClassType(MClassType)>*/
1266 RET_LABEL122
:(void)0;
1270 if (unlikely(!var120
)) {
1271 PRINT_ERROR("Runtime error: %s", "Assert failed");
1272 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1596);
1276 var125
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(var_resolved_receiver
->class->vft
[COLOR_nitc__model__MType__resolve_for
]))(var_resolved_receiver
, var_anchor
, ((val
*)NULL
), var_mmodule
, 0); /* resolve_for on <var_resolved_receiver:nullable Object(MClassType)>*/
1278 var_resolved_receiver
= var125
;
1282 var126
= nitc___nitc__MParameterType___MType__lookup_bound(self
, var_mmodule
, var_resolved_receiver
);
1284 var_verbatim_bound
= var126
;
1286 var127
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(var_verbatim_bound
->class->vft
[COLOR_nitc__model__MType__resolve_for
]))(var_verbatim_bound
, var_mtype
, var_anchor
, var_mmodule
, var_cleanup_virtual
); /* resolve_for on <var_verbatim_bound:MType>*/
1288 var_res128
= var127
;
1294 /* method model#MParameterType#can_resolve_for for (self: MParameterType, MType, nullable MClassType, MModule): Bool */
1295 short int nitc___nitc__MParameterType___MType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1296 short int var
/* : Bool */;
1297 val
* var_mtype
/* var mtype: MType */;
1298 val
* var_anchor
/* var anchor: nullable MClassType */;
1299 val
* var_mmodule
/* var mmodule: MModule */;
1300 short int var1
/* : Bool */;
1301 short int var2
/* : Bool */;
1302 short int var3
/* : Bool */;
1303 val
* var_other
/* var other: nullable Object */;
1304 short int var5
/* : Bool */;
1305 short int var6
/* : Bool */;
1306 val
* var7
/* : MType */;
1307 val
* var8
/* : Set[MClassDef] */;
1308 val
* var9
/* : MClass */;
1309 val
* var11
/* : MClass */;
1310 val
* var12
/* : MClassDef */;
1311 val
* var14
/* : MClassDef */;
1312 short int var15
/* : Bool */;
1317 var1
= ((short int(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nitc__model__MType__need_anchor
]))(var_mtype
); /* need_anchor on <var_mtype:MType>*/
1320 if (var_anchor
== NULL
) {
1321 var2
= 0; /* is null */
1323 var2
= 1; /* arg is null and recv is not */
1326 { /* Inline kernel#Object#!= (var_anchor,((val*)NULL)) on <var_anchor:nullable MClassType> */
1327 var_other
= ((val
*)NULL
);
1329 var5
= ((short int(*)(val
* self
, val
* p0
))(var_anchor
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_anchor
, var_other
); /* == on <var_anchor:nullable MClassType(MClassType)>*/
1338 if (unlikely(!var2
)) {
1339 PRINT_ERROR("Runtime error: %s", "Assert failed");
1340 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1612);
1344 var7
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
))(var_mtype
->class->vft
[COLOR_nitc__model__MType__anchor_to
]))(var_mtype
, var_mmodule
, var_anchor
); /* anchor_to on <var_mtype:MType>*/
1350 var8
= ((val
*(*)(val
* self
, val
* p0
))(var_mtype
->class->vft
[COLOR_nitc__model__MType__collect_mclassdefs
]))(var_mtype
, var_mmodule
); /* collect_mclassdefs on <var_mtype:MType>*/
1353 { /* Inline model#MParameterType#mclass (self) on <self:MParameterType> */
1354 var11
= self
->attrs
[COLOR_nitc__model__MParameterType___mclass
].val
; /* _mclass on <self:MParameterType> */
1355 if (unlikely(var11
== NULL
)) {
1356 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
1357 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1498);
1361 RET_LABEL10
:(void)0;
1365 { /* Inline model#MClass#intro (var9) on <var9:MClass> */
1366 var14
= var9
->attrs
[COLOR_nitc__model__MClass___intro
].val
; /* _intro on <var9:MClass> */
1367 if (unlikely(var14
== NULL
)) {
1368 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro");
1369 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 483);
1373 RET_LABEL13
:(void)0;
1377 var15
= ((short int(*)(val
* self
, val
* p0
))((((long)var8
&3)?class_info
[((long)var8
&3)]:var8
->class)->vft
[COLOR_core__abstract_collection__Collection__has
]))(var8
, var12
); /* has on <var8:Set[MClassDef]>*/
1384 /* method model#MParameterType#init for (self: MParameterType) */
1385 void nitc___nitc__MParameterType___core__kernel__Object__init(val
* self
) {
1387 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nitc___nitc__MParameterType___core__kernel__Object__init
]))(self
); /* init on <self:MParameterType>*/
1391 /* method model#MProxyType#mtype for (self: MProxyType): MType */
1392 val
* nitc___nitc__MProxyType___mtype(val
* self
) {
1393 val
* var
/* : MType */;
1394 val
* var1
/* : MType */;
1395 var1
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1396 if (unlikely(var1
== NULL
)) {
1397 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1398 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1405 /* method model#MProxyType#mtype= for (self: MProxyType, MType) */
1406 void nitc___nitc__MProxyType___mtype_61d(val
* self
, val
* p0
) {
1407 self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
= p0
; /* _mtype on <self:MProxyType> */
1410 /* method model#MProxyType#model for (self: MProxyType): Model */
1411 val
* nitc___nitc__MProxyType___nitc__model_base__MEntity__model(val
* self
) {
1412 val
* var
/* : Model */;
1413 val
* var1
/* : MType */;
1414 val
* var3
/* : MType */;
1415 val
* var4
/* : Model */;
1417 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1418 var3
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1419 if (unlikely(var3
== NULL
)) {
1420 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1421 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1429 var4
= ((val
*(*)(val
* self
))(var1
->class->vft
[COLOR_nitc__model_base__MEntity__model
]))(var1
); /* model on <var1:MType>*/
1436 /* method model#MProxyType#need_anchor for (self: MProxyType): Bool */
1437 short int nitc___nitc__MProxyType___MType__need_anchor(val
* self
) {
1438 short int var
/* : Bool */;
1439 val
* var1
/* : MType */;
1440 val
* var3
/* : MType */;
1441 short int var4
/* : Bool */;
1443 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1444 var3
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1445 if (unlikely(var3
== NULL
)) {
1446 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1447 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1455 var4
= ((short int(*)(val
* self
))(var1
->class->vft
[COLOR_nitc__model__MType__need_anchor
]))(var1
); /* need_anchor on <var1:MType>*/
1462 /* method model#MProxyType#as_nullable for (self: MProxyType): MType */
1463 val
* nitc___nitc__MProxyType___MType__as_nullable(val
* self
) {
1464 val
* var
/* : MType */;
1465 val
* var1
/* : MType */;
1466 val
* var3
/* : MType */;
1467 val
* var4
/* : MType */;
1469 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1470 var3
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1471 if (unlikely(var3
== NULL
)) {
1472 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1473 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1481 var4
= ((val
*(*)(val
* self
))(var1
->class->vft
[COLOR_nitc__model__MType__as_nullable
]))(var1
); /* as_nullable on <var1:MType>*/
1488 /* method model#MProxyType#as_notnull for (self: MProxyType): MType */
1489 val
* nitc___nitc__MProxyType___MType__as_notnull(val
* self
) {
1490 val
* var
/* : MType */;
1491 val
* var1
/* : MType */;
1492 val
* var3
/* : MType */;
1493 val
* var4
/* : MType */;
1495 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1496 var3
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1497 if (unlikely(var3
== NULL
)) {
1498 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1499 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1507 var4
= ((val
*(*)(val
* self
))(var1
->class->vft
[COLOR_nitc__model__MType__as_notnull
]))(var1
); /* as_notnull on <var1:MType>*/
1514 /* method model#MProxyType#undecorate for (self: MProxyType): MType */
1515 val
* nitc___nitc__MProxyType___MType__undecorate(val
* self
) {
1516 val
* var
/* : MType */;
1517 val
* var1
/* : MType */;
1518 val
* var3
/* : MType */;
1519 val
* var4
/* : MType */;
1521 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1522 var3
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1523 if (unlikely(var3
== NULL
)) {
1524 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1525 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1533 var4
= ((val
*(*)(val
* self
))(var1
->class->vft
[COLOR_nitc__model__MType__undecorate
]))(var1
); /* undecorate on <var1:MType>*/
1540 /* method model#MProxyType#resolve_for for (self: MProxyType, MType, nullable MClassType, MModule, Bool): MType */
1541 val
* nitc___nitc__MProxyType___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
1542 val
* var
/* : MType */;
1543 val
* var_mtype
/* var mtype: MType */;
1544 val
* var_anchor
/* var anchor: nullable MClassType */;
1545 val
* var_mmodule
/* var mmodule: MModule */;
1546 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
1547 val
* var1
/* : MType */;
1548 val
* var3
/* : MType */;
1549 val
* var4
/* : MType */;
1550 val
* var_res
/* var res: MType */;
1554 var_cleanup_virtual
= p3
;
1556 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1557 var3
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1558 if (unlikely(var3
== NULL
)) {
1559 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1560 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1568 var4
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(var1
->class->vft
[COLOR_nitc__model__MType__resolve_for
]))(var1
, var_mtype
, var_anchor
, var_mmodule
, var_cleanup_virtual
); /* resolve_for on <var1:MType>*/
1576 /* method model#MProxyType#can_resolve_for for (self: MProxyType, MType, nullable MClassType, MModule): Bool */
1577 short int nitc___nitc__MProxyType___MType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
1578 short int var
/* : Bool */;
1579 val
* var_mtype
/* var mtype: MType */;
1580 val
* var_anchor
/* var anchor: nullable MClassType */;
1581 val
* var_mmodule
/* var mmodule: MModule */;
1582 val
* var1
/* : MType */;
1583 val
* var3
/* : MType */;
1584 short int var4
/* : Bool */;
1589 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1590 var3
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1591 if (unlikely(var3
== NULL
)) {
1592 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1593 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1601 var4
= ((short int(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
))(var1
->class->vft
[COLOR_nitc__model__MType__can_resolve_for
]))(var1
, var_mtype
, var_anchor
, var_mmodule
); /* can_resolve_for on <var1:MType>*/
1608 /* method model#MProxyType#lookup_fixed for (self: MProxyType, MModule, MType): MType */
1609 val
* nitc___nitc__MProxyType___MType__lookup_fixed(val
* self
, val
* p0
, val
* p1
) {
1610 val
* var
/* : MType */;
1611 val
* var_mmodule
/* var mmodule: MModule */;
1612 val
* var_resolved_receiver
/* var resolved_receiver: MType */;
1613 val
* var1
/* : MType */;
1614 val
* var3
/* : MType */;
1615 val
* var4
/* : MType */;
1616 val
* var_t
/* var t: MType */;
1618 var_resolved_receiver
= p1
;
1620 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1621 var3
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1622 if (unlikely(var3
== NULL
)) {
1623 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1624 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1632 var4
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
))(var1
->class->vft
[COLOR_nitc__model__MType__lookup_fixed
]))(var1
, var_mmodule
, var_resolved_receiver
); /* lookup_fixed on <var1:MType>*/
1640 /* method model#MProxyType#length for (self: MProxyType): Int */
1641 long nitc___nitc__MProxyType___MType__length(val
* self
) {
1642 long var
/* : Int */;
1643 val
* var1
/* : MType */;
1644 val
* var3
/* : MType */;
1645 long var4
/* : Int */;
1647 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1648 var3
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1649 if (unlikely(var3
== NULL
)) {
1650 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1651 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1659 var4
= ((long(*)(val
* self
))(var1
->class->vft
[COLOR_nitc__model__MType__length
]))(var1
); /* length on <var1:MType>*/
1666 /* method model#MProxyType#collect_mclassdefs for (self: MProxyType, MModule): Set[MClassDef] */
1667 val
* nitc___nitc__MProxyType___MType__collect_mclassdefs(val
* self
, val
* p0
) {
1668 val
* var
/* : Set[MClassDef] */;
1669 val
* var_mmodule
/* var mmodule: MModule */;
1670 short int var1
/* : Bool */;
1671 short int var2
/* : Bool */;
1672 val
* var3
/* : MType */;
1673 val
* var5
/* : MType */;
1674 val
* var6
/* : Set[MClassDef] */;
1677 var1
= nitc___nitc__MProxyType___MType__need_anchor(self
);
1680 if (unlikely(!var2
)) {
1681 PRINT_ERROR("Runtime error: %s", "Assert failed");
1682 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1656);
1686 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1687 var5
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1688 if (unlikely(var5
== NULL
)) {
1689 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1690 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1698 var6
= ((val
*(*)(val
* self
, val
* p0
))(var3
->class->vft
[COLOR_nitc__model__MType__collect_mclassdefs
]))(var3
, var_mmodule
); /* collect_mclassdefs on <var3:MType>*/
1705 /* method model#MProxyType#collect_mclasses for (self: MProxyType, MModule): Set[MClass] */
1706 val
* nitc___nitc__MProxyType___MType__collect_mclasses(val
* self
, val
* p0
) {
1707 val
* var
/* : Set[MClass] */;
1708 val
* var_mmodule
/* var mmodule: MModule */;
1709 short int var1
/* : Bool */;
1710 short int var2
/* : Bool */;
1711 val
* var3
/* : MType */;
1712 val
* var5
/* : MType */;
1713 val
* var6
/* : Set[MClass] */;
1716 var1
= nitc___nitc__MProxyType___MType__need_anchor(self
);
1719 if (unlikely(!var2
)) {
1720 PRINT_ERROR("Runtime error: %s", "Assert failed");
1721 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1662);
1725 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1726 var5
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1727 if (unlikely(var5
== NULL
)) {
1728 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1729 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1737 var6
= ((val
*(*)(val
* self
, val
* p0
))(var3
->class->vft
[COLOR_nitc__model__MType__collect_mclasses
]))(var3
, var_mmodule
); /* collect_mclasses on <var3:MType>*/
1744 /* method model#MProxyType#collect_mtypes for (self: MProxyType, MModule): Set[MClassType] */
1745 val
* nitc___nitc__MProxyType___MType__collect_mtypes(val
* self
, val
* p0
) {
1746 val
* var
/* : Set[MClassType] */;
1747 val
* var_mmodule
/* var mmodule: MModule */;
1748 short int var1
/* : Bool */;
1749 short int var2
/* : Bool */;
1750 val
* var3
/* : MType */;
1751 val
* var5
/* : MType */;
1752 val
* var6
/* : Set[MClassType] */;
1755 var1
= nitc___nitc__MProxyType___MType__need_anchor(self
);
1758 if (unlikely(!var2
)) {
1759 PRINT_ERROR("Runtime error: %s", "Assert failed");
1760 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1668);
1764 { /* Inline model#MProxyType#mtype (self) on <self:MProxyType> */
1765 var5
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MProxyType> */
1766 if (unlikely(var5
== NULL
)) {
1767 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1768 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1776 var6
= ((val
*(*)(val
* self
, val
* p0
))(var3
->class->vft
[COLOR_nitc__model__MType__collect_mtypes
]))(var3
, var_mmodule
); /* collect_mtypes on <var3:MType>*/
1783 /* method model#MProxyType#init for (self: MProxyType) */
1784 void nitc___nitc__MProxyType___core__kernel__Object__init(val
* self
) {
1786 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nitc___nitc__MProxyType___core__kernel__Object__init
]))(self
); /* init on <self:MProxyType>*/
1790 /* method model#MNullableType#init for (self: MNullableType) */
1791 void nitc___nitc__MNullableType___core__kernel__Object__init(val
* self
) {
1792 val
* var
/* : NativeArray[String] */;
1793 static val
* varonce
;
1794 static val
* varonce1
;
1795 val
* var2
/* : String */;
1796 char* var3
/* : NativeString */;
1797 val
* var4
/* : String */;
1798 val
* var5
/* : MType */;
1799 val
* var7
/* : MType */;
1800 val
* var8
/* : String */;
1801 val
* var9
/* : String */;
1803 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nitc___nitc__MNullableType___core__kernel__Object__init
]))(self
); /* init on <self:MNullableType>*/
1805 if (unlikely(varonce
==NULL
)) {
1806 var
= NEW_core__NativeArray(2l, &type_core__NativeArray__core__String
);
1807 if (likely(varonce1
!=NULL
)) {
1811 var4
= core__flat___NativeString___to_s_full(var3
, 9l, 9l);
1815 ((struct instance_core__NativeArray
*)var
)->values
[0]=var2
;
1821 { /* Inline model#MProxyType#mtype (self) on <self:MNullableType> */
1822 var7
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MNullableType> */
1823 if (unlikely(var7
== NULL
)) {
1824 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1825 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1833 var8
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_core__abstract_text__Object__to_s
]))(var5
); /* to_s on <var5:MType>*/
1835 ((struct instance_core__NativeArray
*)var
)->values
[1]=var8
;
1837 var9
= ((val
*(*)(val
* self
))(var
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var
); /* native_to_s on <var:NativeArray[String]>*/
1841 { /* Inline model#MNullableType#to_s= (self,var9) on <self:MNullableType> */
1842 self
->attrs
[COLOR_nitc__model__MNullableType___to_s
].val
= var9
; /* _to_s on <self:MNullableType> */
1843 RET_LABEL10
:(void)0;
1848 /* method model#MNullableType#to_s for (self: MNullableType): String */
1849 val
* nitc___nitc__MNullableType___core__abstract_text__Object__to_s(val
* self
) {
1850 val
* var
/* : String */;
1851 val
* var1
/* : String */;
1852 var1
= self
->attrs
[COLOR_nitc__model__MNullableType___to_s
].val
; /* _to_s on <self:MNullableType> */
1853 if (unlikely(var1
== NULL
)) {
1854 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _to_s");
1855 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1682);
1862 /* method model#MNullableType#to_s= for (self: MNullableType, String) */
1863 void nitc___nitc__MNullableType___to_s_61d(val
* self
, val
* p0
) {
1864 self
->attrs
[COLOR_nitc__model__MNullableType___to_s
].val
= p0
; /* _to_s on <self:MNullableType> */
1867 /* method model#MNullableType#full_name for (self: MNullableType): String */
1868 val
* nitc___nitc__MNullableType___nitc__model_base__MEntity__full_name(val
* self
) {
1869 val
* var
/* : String */;
1870 short int var1
/* : Bool */;
1871 val
* var2
/* : String */;
1872 val
* var3
/* : String */;
1873 val
* var5
/* : NativeArray[String] */;
1874 static val
* varonce
;
1875 static val
* varonce6
;
1876 val
* var7
/* : String */;
1877 char* var8
/* : NativeString */;
1878 val
* var9
/* : String */;
1879 val
* var10
/* : MType */;
1880 val
* var12
/* : MType */;
1881 val
* var13
/* : String */;
1882 val
* var14
/* : String */;
1883 var1
= self
->attrs
[COLOR_nitc__model__MNullableType___full_name
].val
!= NULL
; /* _full_name on <self:MNullableType> */
1885 var2
= self
->attrs
[COLOR_nitc__model__MNullableType___full_name
].val
; /* _full_name on <self:MNullableType> */
1886 if (unlikely(var2
== NULL
)) {
1887 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _full_name");
1888 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1684);
1893 if (unlikely(varonce
==NULL
)) {
1894 var5
= NEW_core__NativeArray(2l, &type_core__NativeArray__core__String
);
1895 if (likely(varonce6
!=NULL
)) {
1899 var9
= core__flat___NativeString___to_s_full(var8
, 9l, 9l);
1903 ((struct instance_core__NativeArray
*)var5
)->values
[0]=var7
;
1909 { /* Inline model#MProxyType#mtype (self) on <self:MNullableType> */
1910 var12
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MNullableType> */
1911 if (unlikely(var12
== NULL
)) {
1912 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1913 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1917 RET_LABEL11
:(void)0;
1921 var13
= ((val
*(*)(val
* self
))(var10
->class->vft
[COLOR_nitc__model_base__MEntity__full_name
]))(var10
); /* full_name on <var10:MType>*/
1923 ((struct instance_core__NativeArray
*)var5
)->values
[1]=var13
;
1925 var14
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var5
); /* native_to_s on <var5:NativeArray[String]>*/
1932 self
->attrs
[COLOR_nitc__model__MNullableType___full_name
].val
= var3
; /* _full_name on <self:MNullableType> */
1939 /* method model#MNullableType#c_name for (self: MNullableType): String */
1940 val
* nitc___nitc__MNullableType___nitc__model_base__MEntity__c_name(val
* self
) {
1941 val
* var
/* : String */;
1942 short int var1
/* : Bool */;
1943 val
* var2
/* : String */;
1944 val
* var3
/* : String */;
1945 val
* var5
/* : NativeArray[String] */;
1946 static val
* varonce
;
1947 static val
* varonce6
;
1948 val
* var7
/* : String */;
1949 char* var8
/* : NativeString */;
1950 val
* var9
/* : String */;
1951 val
* var10
/* : MType */;
1952 val
* var12
/* : MType */;
1953 val
* var13
/* : String */;
1954 val
* var14
/* : String */;
1955 var1
= self
->attrs
[COLOR_nitc__model__MNullableType___c_name
].val
!= NULL
; /* _c_name on <self:MNullableType> */
1957 var2
= self
->attrs
[COLOR_nitc__model__MNullableType___c_name
].val
; /* _c_name on <self:MNullableType> */
1958 if (unlikely(var2
== NULL
)) {
1959 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _c_name");
1960 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1686);
1965 if (unlikely(varonce
==NULL
)) {
1966 var5
= NEW_core__NativeArray(2l, &type_core__NativeArray__core__String
);
1967 if (likely(varonce6
!=NULL
)) {
1970 var8
= "nullable__";
1971 var9
= core__flat___NativeString___to_s_full(var8
, 10l, 10l);
1975 ((struct instance_core__NativeArray
*)var5
)->values
[0]=var7
;
1981 { /* Inline model#MProxyType#mtype (self) on <self:MNullableType> */
1982 var12
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MNullableType> */
1983 if (unlikely(var12
== NULL
)) {
1984 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
1985 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
1989 RET_LABEL11
:(void)0;
1993 var13
= ((val
*(*)(val
* self
))(var10
->class->vft
[COLOR_nitc__model_base__MEntity__c_name
]))(var10
); /* c_name on <var10:MType>*/
1995 ((struct instance_core__NativeArray
*)var5
)->values
[1]=var13
;
1997 var14
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var5
); /* native_to_s on <var5:NativeArray[String]>*/
2004 self
->attrs
[COLOR_nitc__model__MNullableType___c_name
].val
= var3
; /* _c_name on <self:MNullableType> */
2011 /* method model#MNullableType#as_nullable for (self: MNullableType): MType */
2012 val
* nitc___nitc__MNullableType___MType__as_nullable(val
* self
) {
2013 val
* var
/* : MType */;
2019 /* method model#MNullableType#resolve_for for (self: MNullableType, MType, nullable MClassType, MModule, Bool): MType */
2020 val
* nitc___nitc__MNullableType___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
2021 val
* var
/* : MType */;
2022 val
* var_mtype
/* var mtype: MType */;
2023 val
* var_anchor
/* var anchor: nullable MClassType */;
2024 val
* var_mmodule
/* var mmodule: MModule */;
2025 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
2026 val
* var1
/* : MType */;
2027 val
* var_res
/* var res: MType */;
2028 val
* var2
/* : MType */;
2032 var_cleanup_virtual
= p3
;
2034 var1
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(self
->class->vft
[COLOR_nitc___nitc__MNullableType___MType__resolve_for
]))(self
, p0
, p1
, p2
, p3
); /* resolve_for on <self:MNullableType>*/
2038 var2
= ((val
*(*)(val
* self
))(var_res
->class->vft
[COLOR_nitc__model__MType__as_nullable
]))(var_res
); /* as_nullable on <var_res:MType>*/
2045 /* method model#MNullableType#lookup_fixed for (self: MNullableType, MModule, MType): MType */
2046 val
* nitc___nitc__MNullableType___MType__lookup_fixed(val
* self
, val
* p0
, val
* p1
) {
2047 val
* var
/* : MType */;
2048 val
* var_mmodule
/* var mmodule: MModule */;
2049 val
* var_resolved_receiver
/* var resolved_receiver: MType */;
2050 val
* var1
/* : MType */;
2051 val
* var_t
/* var t: MType */;
2052 val
* var2
/* : MType */;
2053 val
* var4
/* : MType */;
2054 short int var5
/* : Bool */;
2055 val
* var_other
/* var other: nullable Object */;
2056 short int var7
/* : Bool */;
2057 short int var9
/* : Bool */;
2058 val
* var10
/* : MType */;
2060 var_resolved_receiver
= p1
;
2062 var1
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
))(self
->class->vft
[COLOR_nitc___nitc__MNullableType___MType__lookup_fixed
]))(self
, p0
, p1
); /* lookup_fixed on <self:MNullableType>*/
2066 { /* Inline model#MProxyType#mtype (self) on <self:MNullableType> */
2067 var4
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MNullableType> */
2068 if (unlikely(var4
== NULL
)) {
2069 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
2070 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
2078 { /* Inline kernel#Object#== (var_t,var2) on <var_t:MType> */
2081 { /* Inline kernel#Object#is_same_instance (var_t,var_other) on <var_t:MType> */
2082 var9
= var_t
== var_other
;
2099 var10
= ((val
*(*)(val
* self
))(var_t
->class->vft
[COLOR_nitc__model__MType__as_nullable
]))(var_t
); /* as_nullable on <var_t:MType>*/
2106 /* method model#MNotNullType#to_s for (self: MNotNullType): String */
2107 val
* nitc___nitc__MNotNullType___core__abstract_text__Object__to_s(val
* self
) {
2108 val
* var
/* : String */;
2109 val
* var1
/* : NativeArray[String] */;
2110 static val
* varonce
;
2111 static val
* varonce2
;
2112 val
* var3
/* : String */;
2113 char* var4
/* : NativeString */;
2114 val
* var5
/* : String */;
2115 val
* var6
/* : MType */;
2116 val
* var8
/* : MType */;
2117 val
* var9
/* : String */;
2118 val
* var10
/* : String */;
2119 if (unlikely(varonce
==NULL
)) {
2120 var1
= NEW_core__NativeArray(2l, &type_core__NativeArray__core__String
);
2121 if (likely(varonce2
!=NULL
)) {
2125 var5
= core__flat___NativeString___to_s_full(var4
, 9l, 9l);
2129 ((struct instance_core__NativeArray
*)var1
)->values
[0]=var3
;
2135 { /* Inline model#MProxyType#mtype (self) on <self:MNotNullType> */
2136 var8
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MNotNullType> */
2137 if (unlikely(var8
== NULL
)) {
2138 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
2139 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
2147 var9
= ((val
*(*)(val
* self
))(var6
->class->vft
[COLOR_core__abstract_text__Object__to_s
]))(var6
); /* to_s on <var6:MType>*/
2149 ((struct instance_core__NativeArray
*)var1
)->values
[1]=var9
;
2151 var10
= ((val
*(*)(val
* self
))(var1
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var1
); /* native_to_s on <var1:NativeArray[String]>*/
2159 /* method model#MNotNullType#full_name for (self: MNotNullType): String */
2160 val
* nitc___nitc__MNotNullType___nitc__model_base__MEntity__full_name(val
* self
) {
2161 val
* var
/* : String */;
2162 short int var1
/* : Bool */;
2163 val
* var2
/* : String */;
2164 val
* var3
/* : String */;
2165 val
* var5
/* : NativeArray[String] */;
2166 static val
* varonce
;
2167 static val
* varonce6
;
2168 val
* var7
/* : String */;
2169 char* var8
/* : NativeString */;
2170 val
* var9
/* : String */;
2171 val
* var10
/* : MType */;
2172 val
* var12
/* : MType */;
2173 val
* var13
/* : String */;
2174 val
* var14
/* : String */;
2175 var1
= self
->attrs
[COLOR_nitc__model__MNotNullType___full_name
].val
!= NULL
; /* _full_name on <self:MNotNullType> */
2177 var2
= self
->attrs
[COLOR_nitc__model__MNotNullType___full_name
].val
; /* _full_name on <self:MNotNullType> */
2178 if (unlikely(var2
== NULL
)) {
2179 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _full_name");
2180 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1711);
2185 if (unlikely(varonce
==NULL
)) {
2186 var5
= NEW_core__NativeArray(2l, &type_core__NativeArray__core__String
);
2187 if (likely(varonce6
!=NULL
)) {
2191 var9
= core__flat___NativeString___to_s_full(var8
, 9l, 9l);
2195 ((struct instance_core__NativeArray
*)var5
)->values
[0]=var7
;
2201 { /* Inline model#MProxyType#mtype (self) on <self:MNotNullType> */
2202 var12
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MNotNullType> */
2203 if (unlikely(var12
== NULL
)) {
2204 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
2205 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
2209 RET_LABEL11
:(void)0;
2213 var13
= ((val
*(*)(val
* self
))(var10
->class->vft
[COLOR_nitc__model_base__MEntity__full_name
]))(var10
); /* full_name on <var10:MType>*/
2215 ((struct instance_core__NativeArray
*)var5
)->values
[1]=var13
;
2217 var14
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var5
); /* native_to_s on <var5:NativeArray[String]>*/
2224 self
->attrs
[COLOR_nitc__model__MNotNullType___full_name
].val
= var3
; /* _full_name on <self:MNotNullType> */
2231 /* method model#MNotNullType#c_name for (self: MNotNullType): String */
2232 val
* nitc___nitc__MNotNullType___nitc__model_base__MEntity__c_name(val
* self
) {
2233 val
* var
/* : String */;
2234 short int var1
/* : Bool */;
2235 val
* var2
/* : String */;
2236 val
* var3
/* : String */;
2237 val
* var5
/* : NativeArray[String] */;
2238 static val
* varonce
;
2239 static val
* varonce6
;
2240 val
* var7
/* : String */;
2241 char* var8
/* : NativeString */;
2242 val
* var9
/* : String */;
2243 val
* var10
/* : MType */;
2244 val
* var12
/* : MType */;
2245 val
* var13
/* : String */;
2246 val
* var14
/* : String */;
2247 var1
= self
->attrs
[COLOR_nitc__model__MNotNullType___c_name
].val
!= NULL
; /* _c_name on <self:MNotNullType> */
2249 var2
= self
->attrs
[COLOR_nitc__model__MNotNullType___c_name
].val
; /* _c_name on <self:MNotNullType> */
2250 if (unlikely(var2
== NULL
)) {
2251 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _c_name");
2252 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1712);
2257 if (unlikely(varonce
==NULL
)) {
2258 var5
= NEW_core__NativeArray(2l, &type_core__NativeArray__core__String
);
2259 if (likely(varonce6
!=NULL
)) {
2263 var9
= core__flat___NativeString___to_s_full(var8
, 9l, 9l);
2267 ((struct instance_core__NativeArray
*)var5
)->values
[0]=var7
;
2273 { /* Inline model#MProxyType#mtype (self) on <self:MNotNullType> */
2274 var12
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MNotNullType> */
2275 if (unlikely(var12
== NULL
)) {
2276 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
2277 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
2281 RET_LABEL11
:(void)0;
2285 var13
= ((val
*(*)(val
* self
))(var10
->class->vft
[COLOR_nitc__model_base__MEntity__c_name
]))(var10
); /* c_name on <var10:MType>*/
2287 ((struct instance_core__NativeArray
*)var5
)->values
[1]=var13
;
2289 var14
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var5
); /* native_to_s on <var5:NativeArray[String]>*/
2296 self
->attrs
[COLOR_nitc__model__MNotNullType___c_name
].val
= var3
; /* _c_name on <self:MNotNullType> */
2303 /* method model#MNotNullType#as_notnull for (self: MNotNullType): MType */
2304 val
* nitc___nitc__MNotNullType___MType__as_notnull(val
* self
) {
2305 val
* var
/* : MType */;
2311 /* method model#MNotNullType#resolve_for for (self: MNotNullType, MType, nullable MClassType, MModule, Bool): MType */
2312 val
* nitc___nitc__MNotNullType___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
2313 val
* var
/* : MType */;
2314 val
* var_mtype
/* var mtype: MType */;
2315 val
* var_anchor
/* var anchor: nullable MClassType */;
2316 val
* var_mmodule
/* var mmodule: MModule */;
2317 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
2318 val
* var1
/* : MType */;
2319 val
* var_res
/* var res: MType */;
2320 val
* var2
/* : MType */;
2324 var_cleanup_virtual
= p3
;
2326 var1
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(self
->class->vft
[COLOR_nitc___nitc__MNotNullType___MType__resolve_for
]))(self
, p0
, p1
, p2
, p3
); /* resolve_for on <self:MNotNullType>*/
2330 var2
= ((val
*(*)(val
* self
))(var_res
->class->vft
[COLOR_nitc__model__MType__as_notnull
]))(var_res
); /* as_notnull on <var_res:MType>*/
2337 /* method model#MNotNullType#lookup_fixed for (self: MNotNullType, MModule, MType): MType */
2338 val
* nitc___nitc__MNotNullType___MType__lookup_fixed(val
* self
, val
* p0
, val
* p1
) {
2339 val
* var
/* : MType */;
2340 val
* var_mmodule
/* var mmodule: MModule */;
2341 val
* var_resolved_receiver
/* var resolved_receiver: MType */;
2342 val
* var1
/* : MType */;
2343 val
* var_t
/* var t: MType */;
2344 val
* var2
/* : MType */;
2345 val
* var4
/* : MType */;
2346 short int var5
/* : Bool */;
2347 val
* var_other
/* var other: nullable Object */;
2348 short int var7
/* : Bool */;
2349 short int var9
/* : Bool */;
2350 val
* var10
/* : MType */;
2352 var_resolved_receiver
= p1
;
2354 var1
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
))(self
->class->vft
[COLOR_nitc___nitc__MNotNullType___MType__lookup_fixed
]))(self
, p0
, p1
); /* lookup_fixed on <self:MNotNullType>*/
2358 { /* Inline model#MProxyType#mtype (self) on <self:MNotNullType> */
2359 var4
= self
->attrs
[COLOR_nitc__model__MProxyType___mtype
].val
; /* _mtype on <self:MNotNullType> */
2360 if (unlikely(var4
== NULL
)) {
2361 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
2362 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1625);
2370 { /* Inline kernel#Object#== (var_t,var2) on <var_t:MType> */
2373 { /* Inline kernel#Object#is_same_instance (var_t,var_other) on <var_t:MType> */
2374 var9
= var_t
== var_other
;
2391 var10
= ((val
*(*)(val
* self
))(var_t
->class->vft
[COLOR_nitc__model__MType__as_notnull
]))(var_t
); /* as_notnull on <var_t:MType>*/
2398 /* method model#MNullType#model for (self: MNullType): Model */
2399 val
* nitc___nitc__MNullType___nitc__model_base__MEntity__model(val
* self
) {
2400 val
* var
/* : Model */;
2401 val
* var1
/* : Model */;
2402 var1
= self
->attrs
[COLOR_nitc__model__MNullType___model
].val
; /* _model on <self:MNullType> */
2403 if (unlikely(var1
== NULL
)) {
2404 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _model");
2405 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1736);
2412 /* method model#MNullType#model= for (self: MNullType, Model) */
2413 void nitc___nitc__MNullType___model_61d(val
* self
, val
* p0
) {
2414 self
->attrs
[COLOR_nitc__model__MNullType___model
].val
= p0
; /* _model on <self:MNullType> */
2417 /* method model#MNullType#to_s for (self: MNullType): String */
2418 val
* nitc___nitc__MNullType___core__abstract_text__Object__to_s(val
* self
) {
2419 val
* var
/* : String */;
2420 static val
* varonce
;
2421 val
* var1
/* : String */;
2422 char* var2
/* : NativeString */;
2423 val
* var3
/* : String */;
2424 if (likely(varonce
!=NULL
)) {
2428 var3
= core__flat___NativeString___to_s_full(var2
, 4l, 4l);
2437 /* method model#MNullType#full_name for (self: MNullType): String */
2438 val
* nitc___nitc__MNullType___nitc__model_base__MEntity__full_name(val
* self
) {
2439 val
* var
/* : String */;
2440 static val
* varonce
;
2441 val
* var1
/* : String */;
2442 char* var2
/* : NativeString */;
2443 val
* var3
/* : String */;
2444 if (likely(varonce
!=NULL
)) {
2448 var3
= core__flat___NativeString___to_s_full(var2
, 4l, 4l);
2457 /* method model#MNullType#c_name for (self: MNullType): String */
2458 val
* nitc___nitc__MNullType___nitc__model_base__MEntity__c_name(val
* self
) {
2459 val
* var
/* : String */;
2460 static val
* varonce
;
2461 val
* var1
/* : String */;
2462 char* var2
/* : NativeString */;
2463 val
* var3
/* : String */;
2464 if (likely(varonce
!=NULL
)) {
2468 var3
= core__flat___NativeString___to_s_full(var2
, 4l, 4l);
2477 /* method model#MNullType#as_nullable for (self: MNullType): MType */
2478 val
* nitc___nitc__MNullType___MType__as_nullable(val
* self
) {
2479 val
* var
/* : MType */;
2485 /* method model#MNullType#as_notnull for (self: MNullType): MType */
2486 val
* nitc___nitc__MNullType___MType__as_notnull(val
* self
) {
2487 val
* var
/* : MType */;
2488 short int var1
/* : Bool */;
2489 val
* var2
/* : MType */;
2490 val
* var3
/* : MBottomType */;
2491 val
* var4
/* : Model */;
2492 val
* var6
/* : Model */;
2493 var1
= self
->attrs
[COLOR_nitc__model__MNullType___as_notnull
].val
!= NULL
; /* _as_notnull on <self:MNullType> */
2495 var2
= self
->attrs
[COLOR_nitc__model__MNullType___as_notnull
].val
; /* _as_notnull on <self:MNullType> */
2496 if (unlikely(var2
== NULL
)) {
2497 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _as_notnull");
2498 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1742);
2502 var3
= NEW_nitc__MBottomType(&type_nitc__MBottomType
);
2504 { /* Inline model#MNullType#model (self) on <self:MNullType> */
2505 var6
= self
->attrs
[COLOR_nitc__model__MNullType___model
].val
; /* _model on <self:MNullType> */
2506 if (unlikely(var6
== NULL
)) {
2507 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _model");
2508 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1736);
2516 ((void(*)(val
* self
, val
* p0
))(var3
->class->vft
[COLOR_nitc__model__MBottomType__model_61d
]))(var3
, var4
); /* model= on <var3:MBottomType>*/
2519 ((void(*)(val
* self
))(var3
->class->vft
[COLOR_core__kernel__Object__init
]))(var3
); /* init on <var3:MBottomType>*/
2521 self
->attrs
[COLOR_nitc__model__MNullType___as_notnull
].val
= var3
; /* _as_notnull on <self:MNullType> */
2528 /* method model#MNullType#need_anchor for (self: MNullType): Bool */
2529 short int nitc___nitc__MNullType___MType__need_anchor(val
* self
) {
2530 short int var
/* : Bool */;
2536 /* method model#MNullType#resolve_for for (self: MNullType, MType, nullable MClassType, MModule, Bool): MType */
2537 val
* nitc___nitc__MNullType___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
2538 val
* var
/* : MType */;
2539 val
* var_mtype
/* var mtype: MType */;
2540 val
* var_anchor
/* var anchor: nullable MClassType */;
2541 val
* var_mmodule
/* var mmodule: MModule */;
2542 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
2546 var_cleanup_virtual
= p3
;
2552 /* method model#MNullType#can_resolve_for for (self: MNullType, MType, nullable MClassType, MModule): Bool */
2553 short int nitc___nitc__MNullType___MType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
2554 short int var
/* : Bool */;
2555 val
* var_mtype
/* var mtype: MType */;
2556 val
* var_anchor
/* var anchor: nullable MClassType */;
2557 val
* var_mmodule
/* var mmodule: MModule */;
2566 /* method model#MNullType#collect_mclassdefs for (self: MNullType, MModule): Set[MClassDef] */
2567 val
* nitc___nitc__MNullType___MType__collect_mclassdefs(val
* self
, val
* p0
) {
2568 val
* var
/* : Set[MClassDef] */;
2569 val
* var_mmodule
/* var mmodule: MModule */;
2570 val
* var1
/* : HashSet[MClassDef] */;
2572 var1
= NEW_core__HashSet(&type_core__HashSet__nitc__MClassDef
);
2574 core___core__HashSet___core__kernel__Object__init(var1
); /* Direct call hash_collection#HashSet#init on <var1:HashSet[MClassDef]>*/
2581 /* method model#MNullType#collect_mclasses for (self: MNullType, MModule): Set[MClass] */
2582 val
* nitc___nitc__MNullType___MType__collect_mclasses(val
* self
, val
* p0
) {
2583 val
* var
/* : Set[MClass] */;
2584 val
* var_mmodule
/* var mmodule: MModule */;
2585 val
* var1
/* : HashSet[MClass] */;
2587 var1
= NEW_core__HashSet(&type_core__HashSet__nitc__MClass
);
2589 core___core__HashSet___core__kernel__Object__init(var1
); /* Direct call hash_collection#HashSet#init on <var1:HashSet[MClass]>*/
2596 /* method model#MNullType#collect_mtypes for (self: MNullType, MModule): Set[MClassType] */
2597 val
* nitc___nitc__MNullType___MType__collect_mtypes(val
* self
, val
* p0
) {
2598 val
* var
/* : Set[MClassType] */;
2599 val
* var_mmodule
/* var mmodule: MModule */;
2600 val
* var1
/* : HashSet[MClassType] */;
2602 var1
= NEW_core__HashSet(&type_core__HashSet__nitc__MClassType
);
2604 core___core__HashSet___core__kernel__Object__init(var1
); /* Direct call hash_collection#HashSet#init on <var1:HashSet[MClassType]>*/
2611 /* method model#MNullType#init for (self: MNullType) */
2612 void nitc___nitc__MNullType___core__kernel__Object__init(val
* self
) {
2614 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nitc___nitc__MNullType___core__kernel__Object__init
]))(self
); /* init on <self:MNullType>*/
2618 /* method model#MBottomType#model for (self: MBottomType): Model */
2619 val
* nitc___nitc__MBottomType___nitc__model_base__MEntity__model(val
* self
) {
2620 val
* var
/* : Model */;
2621 val
* var1
/* : Model */;
2622 var1
= self
->attrs
[COLOR_nitc__model__MBottomType___model
].val
; /* _model on <self:MBottomType> */
2623 if (unlikely(var1
== NULL
)) {
2624 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _model");
2625 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1762);
2632 /* method model#MBottomType#model= for (self: MBottomType, Model) */
2633 void nitc___nitc__MBottomType___model_61d(val
* self
, val
* p0
) {
2634 self
->attrs
[COLOR_nitc__model__MBottomType___model
].val
= p0
; /* _model on <self:MBottomType> */
2637 /* method model#MBottomType#to_s for (self: MBottomType): String */
2638 val
* nitc___nitc__MBottomType___core__abstract_text__Object__to_s(val
* self
) {
2639 val
* var
/* : String */;
2640 static val
* varonce
;
2641 val
* var1
/* : String */;
2642 char* var2
/* : NativeString */;
2643 val
* var3
/* : String */;
2644 if (likely(varonce
!=NULL
)) {
2648 var3
= core__flat___NativeString___to_s_full(var2
, 6l, 6l);
2657 /* method model#MBottomType#full_name for (self: MBottomType): String */
2658 val
* nitc___nitc__MBottomType___nitc__model_base__MEntity__full_name(val
* self
) {
2659 val
* var
/* : String */;
2660 static val
* varonce
;
2661 val
* var1
/* : String */;
2662 char* var2
/* : NativeString */;
2663 val
* var3
/* : String */;
2664 if (likely(varonce
!=NULL
)) {
2668 var3
= core__flat___NativeString___to_s_full(var2
, 6l, 6l);
2677 /* method model#MBottomType#c_name for (self: MBottomType): String */
2678 val
* nitc___nitc__MBottomType___nitc__model_base__MEntity__c_name(val
* self
) {
2679 val
* var
/* : String */;
2680 static val
* varonce
;
2681 val
* var1
/* : String */;
2682 char* var2
/* : NativeString */;
2683 val
* var3
/* : String */;
2684 if (likely(varonce
!=NULL
)) {
2688 var3
= core__flat___NativeString___to_s_full(var2
, 6l, 6l);
2697 /* method model#MBottomType#as_nullable for (self: MBottomType): MType */
2698 val
* nitc___nitc__MBottomType___MType__as_nullable(val
* self
) {
2699 val
* var
/* : MType */;
2700 val
* var1
/* : Model */;
2701 val
* var3
/* : Model */;
2702 val
* var4
/* : MNullType */;
2703 val
* var6
/* : MNullType */;
2705 { /* Inline model#MBottomType#model (self) on <self:MBottomType> */
2706 var3
= self
->attrs
[COLOR_nitc__model__MBottomType___model
].val
; /* _model on <self:MBottomType> */
2707 if (unlikely(var3
== NULL
)) {
2708 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _model");
2709 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1762);
2717 { /* Inline model#Model#null_type (var1) on <var1:Model> */
2718 var6
= var1
->attrs
[COLOR_nitc__model__Model___null_type
].val
; /* _null_type on <var1:Model> */
2719 if (unlikely(var6
== NULL
)) {
2720 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _null_type");
2721 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 94);
2733 /* method model#MBottomType#as_notnull for (self: MBottomType): MType */
2734 val
* nitc___nitc__MBottomType___MType__as_notnull(val
* self
) {
2735 val
* var
/* : MType */;
2741 /* method model#MBottomType#need_anchor for (self: MBottomType): Bool */
2742 short int nitc___nitc__MBottomType___MType__need_anchor(val
* self
) {
2743 short int var
/* : Bool */;
2749 /* method model#MBottomType#resolve_for for (self: MBottomType, MType, nullable MClassType, MModule, Bool): MType */
2750 val
* nitc___nitc__MBottomType___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
2751 val
* var
/* : MType */;
2752 val
* var_mtype
/* var mtype: MType */;
2753 val
* var_anchor
/* var anchor: nullable MClassType */;
2754 val
* var_mmodule
/* var mmodule: MModule */;
2755 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
2759 var_cleanup_virtual
= p3
;
2765 /* method model#MBottomType#can_resolve_for for (self: MBottomType, MType, nullable MClassType, MModule): Bool */
2766 short int nitc___nitc__MBottomType___MType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
2767 short int var
/* : Bool */;
2768 val
* var_mtype
/* var mtype: MType */;
2769 val
* var_anchor
/* var anchor: nullable MClassType */;
2770 val
* var_mmodule
/* var mmodule: MModule */;
2779 /* method model#MBottomType#collect_mclassdefs for (self: MBottomType, MModule): Set[MClassDef] */
2780 val
* nitc___nitc__MBottomType___MType__collect_mclassdefs(val
* self
, val
* p0
) {
2781 val
* var
/* : Set[MClassDef] */;
2782 val
* var_mmodule
/* var mmodule: MModule */;
2783 val
* var1
/* : HashSet[MClassDef] */;
2785 var1
= NEW_core__HashSet(&type_core__HashSet__nitc__MClassDef
);
2787 core___core__HashSet___core__kernel__Object__init(var1
); /* Direct call hash_collection#HashSet#init on <var1:HashSet[MClassDef]>*/
2794 /* method model#MBottomType#collect_mclasses for (self: MBottomType, MModule): Set[MClass] */
2795 val
* nitc___nitc__MBottomType___MType__collect_mclasses(val
* self
, val
* p0
) {
2796 val
* var
/* : Set[MClass] */;
2797 val
* var_mmodule
/* var mmodule: MModule */;
2798 val
* var1
/* : HashSet[MClass] */;
2800 var1
= NEW_core__HashSet(&type_core__HashSet__nitc__MClass
);
2802 core___core__HashSet___core__kernel__Object__init(var1
); /* Direct call hash_collection#HashSet#init on <var1:HashSet[MClass]>*/
2809 /* method model#MBottomType#collect_mtypes for (self: MBottomType, MModule): Set[MClassType] */
2810 val
* nitc___nitc__MBottomType___MType__collect_mtypes(val
* self
, val
* p0
) {
2811 val
* var
/* : Set[MClassType] */;
2812 val
* var_mmodule
/* var mmodule: MModule */;
2813 val
* var1
/* : HashSet[MClassType] */;
2815 var1
= NEW_core__HashSet(&type_core__HashSet__nitc__MClassType
);
2817 core___core__HashSet___core__kernel__Object__init(var1
); /* Direct call hash_collection#HashSet#init on <var1:HashSet[MClassType]>*/
2824 /* method model#MBottomType#init for (self: MBottomType) */
2825 void nitc___nitc__MBottomType___core__kernel__Object__init(val
* self
) {
2827 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nitc___nitc__MBottomType___core__kernel__Object__init
]))(self
); /* init on <self:MBottomType>*/
2831 /* method model#MSignature#mparameters for (self: MSignature): Array[MParameter] */
2832 val
* nitc___nitc__MSignature___mparameters(val
* self
) {
2833 val
* var
/* : Array[MParameter] */;
2834 val
* var1
/* : Array[MParameter] */;
2835 var1
= self
->attrs
[COLOR_nitc__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
2836 if (unlikely(var1
== NULL
)) {
2837 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
2838 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1783);
2845 /* method model#MSignature#mparameters= for (self: MSignature, Array[MParameter]) */
2846 void nitc___nitc__MSignature___mparameters_61d(val
* self
, val
* p0
) {
2847 self
->attrs
[COLOR_nitc__model__MSignature___mparameters
].val
= p0
; /* _mparameters on <self:MSignature> */
2850 /* method model#MSignature#mparameter_by_name for (self: MSignature, String): nullable MParameter */
2851 val
* nitc___nitc__MSignature___mparameter_by_name(val
* self
, val
* p0
) {
2852 val
* var
/* : nullable MParameter */;
2853 val
* var_name
/* var name: String */;
2854 val
* var1
/* : Array[MParameter] */;
2855 val
* var3
/* : Array[MParameter] */;
2856 val
* var_
/* var : Array[MParameter] */;
2857 val
* var4
/* : IndexedIterator[nullable Object] */;
2858 val
* var_5
/* var : IndexedIterator[MParameter] */;
2859 short int var6
/* : Bool */;
2860 val
* var7
/* : nullable Object */;
2861 val
* var_p
/* var p: MParameter */;
2862 val
* var8
/* : String */;
2863 val
* var10
/* : String */;
2864 short int var11
/* : Bool */;
2867 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
2868 var3
= self
->attrs
[COLOR_nitc__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
2869 if (unlikely(var3
== NULL
)) {
2870 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
2871 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1783);
2880 var4
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_
);
2885 var6
= ((short int(*)(val
* self
))((((long)var_5
&3)?class_info
[((long)var_5
&3)]:var_5
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_5
); /* is_ok on <var_5:IndexedIterator[MParameter]>*/
2892 var7
= ((val
*(*)(val
* self
))((((long)var_5
&3)?class_info
[((long)var_5
&3)]:var_5
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_5
); /* item on <var_5:IndexedIterator[MParameter]>*/
2896 { /* Inline model#MParameter#name (var_p) on <var_p:MParameter> */
2897 var10
= var_p
->attrs
[COLOR_nitc__model__MParameter___name
].val
; /* _name on <var_p:MParameter> */
2898 if (unlikely(var10
== NULL
)) {
2899 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
2900 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1897);
2908 var11
= ((short int(*)(val
* self
, val
* p0
))(var8
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var8
, var_name
); /* == on <var8:String>*/
2916 ((void(*)(val
* self
))((((long)var_5
&3)?class_info
[((long)var_5
&3)]:var_5
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_5
); /* next on <var_5:IndexedIterator[MParameter]>*/
2919 BREAK_label
: (void)0;
2921 ((void(*)(val
* self
))((((long)var_5
&3)?class_info
[((long)var_5
&3)]:var_5
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_5
); /* finish on <var_5:IndexedIterator[MParameter]>*/
2928 /* method model#MSignature#return_mtype for (self: MSignature): nullable MType */
2929 val
* nitc___nitc__MSignature___return_mtype(val
* self
) {
2930 val
* var
/* : nullable MType */;
2931 val
* var1
/* : nullable MType */;
2932 var1
= self
->attrs
[COLOR_nitc__model__MSignature___return_mtype
].val
; /* _return_mtype on <self:MSignature> */
2937 /* method model#MSignature#return_mtype= for (self: MSignature, nullable MType) */
2938 void nitc___nitc__MSignature___return_mtype_61d(val
* self
, val
* p0
) {
2939 self
->attrs
[COLOR_nitc__model__MSignature___return_mtype
].val
= p0
; /* _return_mtype on <self:MSignature> */
2942 /* method model#MSignature#length for (self: MSignature): Int */
2943 long nitc___nitc__MSignature___MType__length(val
* self
) {
2944 long var
/* : Int */;
2945 long var_res
/* var res: Int */;
2946 val
* var1
/* : nullable MType */;
2947 val
* var3
/* : nullable MType */;
2948 val
* var_t
/* var t: nullable MType */;
2949 short int var4
/* : Bool */;
2950 short int var5
/* : Bool */;
2951 val
* var_other
/* var other: nullable Object */;
2952 short int var7
/* : Bool */;
2953 short int var8
/* : Bool */;
2954 long var9
/* : Int */;
2955 long var10
/* : Int */;
2956 short int var12
/* : Bool */;
2959 const char* var_class_name
;
2960 long var13
/* : Int */;
2961 val
* var14
/* : Array[MParameter] */;
2962 val
* var16
/* : Array[MParameter] */;
2963 val
* var_
/* var : Array[MParameter] */;
2964 val
* var17
/* : IndexedIterator[nullable Object] */;
2965 val
* var_18
/* var : IndexedIterator[MParameter] */;
2966 short int var19
/* : Bool */;
2967 val
* var20
/* : nullable Object */;
2968 val
* var_p
/* var p: MParameter */;
2969 val
* var21
/* : MType */;
2970 val
* var23
/* : MType */;
2971 long var24
/* : Int */;
2972 long var25
/* : Int */;
2973 short int var27
/* : Bool */;
2976 const char* var_class_name30
;
2977 long var31
/* : Int */;
2980 { /* Inline model#MSignature#return_mtype (self) on <self:MSignature> */
2981 var3
= self
->attrs
[COLOR_nitc__model__MSignature___return_mtype
].val
; /* _return_mtype on <self:MSignature> */
2987 if (var_t
== NULL
) {
2988 var4
= 0; /* is null */
2990 var4
= 1; /* arg is null and recv is not */
2993 { /* Inline kernel#Object#!= (var_t,((val*)NULL)) on <var_t:nullable MType> */
2994 var_other
= ((val
*)NULL
);
2996 var7
= ((short int(*)(val
* self
, val
* p0
))(var_t
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_t
, var_other
); /* == on <var_t:nullable MType(MType)>*/
3007 var9
= ((long(*)(val
* self
))(var_t
->class->vft
[COLOR_nitc__model__MType__length
]))(var_t
); /* length on <var_t:nullable MType(MType)>*/
3010 { /* Inline kernel#Int#+ (var_res,var9) on <var_res:Int> */
3011 /* Covariant cast for argument 0 (i) <var9:Int> isa OTHER */
3012 /* <var9:Int> isa OTHER */
3013 var12
= 1; /* easy <var9:Int> isa OTHER*/
3014 if (unlikely(!var12
)) {
3015 var_class_name
= type_core__Int
.name
;
3016 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
3017 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 731);
3020 var13
= var_res
+ var9
;
3023 RET_LABEL11
:(void)0;
3030 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
3031 var16
= self
->attrs
[COLOR_nitc__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
3032 if (unlikely(var16
== NULL
)) {
3033 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
3034 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1783);
3038 RET_LABEL15
:(void)0;
3043 var17
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_
);
3048 var19
= ((short int(*)(val
* self
))((((long)var_18
&3)?class_info
[((long)var_18
&3)]:var_18
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_18
); /* is_ok on <var_18:IndexedIterator[MParameter]>*/
3055 var20
= ((val
*(*)(val
* self
))((((long)var_18
&3)?class_info
[((long)var_18
&3)]:var_18
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_18
); /* item on <var_18:IndexedIterator[MParameter]>*/
3059 { /* Inline model#MParameter#mtype (var_p) on <var_p:MParameter> */
3060 var23
= var_p
->attrs
[COLOR_nitc__model__MParameter___mtype
].val
; /* _mtype on <var_p:MParameter> */
3061 if (unlikely(var23
== NULL
)) {
3062 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
3063 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1900);
3067 RET_LABEL22
:(void)0;
3071 var24
= ((long(*)(val
* self
))(var21
->class->vft
[COLOR_nitc__model__MType__length
]))(var21
); /* length on <var21:MType>*/
3074 { /* Inline kernel#Int#+ (var_res,var24) on <var_res:Int> */
3075 /* Covariant cast for argument 0 (i) <var24:Int> isa OTHER */
3076 /* <var24:Int> isa OTHER */
3077 var27
= 1; /* easy <var24:Int> isa OTHER*/
3078 if (unlikely(!var27
)) {
3079 var_class_name30
= type_core__Int
.name
;
3080 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name30
);
3081 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 731);
3084 var31
= var_res
+ var24
;
3087 RET_LABEL26
:(void)0;
3092 ((void(*)(val
* self
))((((long)var_18
&3)?class_info
[((long)var_18
&3)]:var_18
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_18
); /* next on <var_18:IndexedIterator[MParameter]>*/
3095 BREAK_label
: (void)0;
3097 ((void(*)(val
* self
))((((long)var_18
&3)?class_info
[((long)var_18
&3)]:var_18
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_18
); /* finish on <var_18:IndexedIterator[MParameter]>*/
3104 /* method model#MSignature#init for (self: MSignature) */
3105 void nitc___nitc__MSignature___core__kernel__Object__init(val
* self
) {
3106 long var
/* : Int */;
3107 long var2
/* : Int */;
3108 long var_vararg_rank
/* var vararg_rank: Int */;
3109 long var_i
/* var i: Int */;
3110 val
* var3
/* : Array[MParameter] */;
3111 val
* var5
/* : Array[MParameter] */;
3112 long var6
/* : Int */;
3113 long var8
/* : Int */;
3114 long var_
/* var : Int */;
3115 short int var9
/* : Bool */;
3116 short int var11
/* : Bool */;
3119 const char* var_class_name
;
3120 short int var12
/* : Bool */;
3121 val
* var13
/* : Array[MParameter] */;
3122 val
* var15
/* : Array[MParameter] */;
3123 val
* var16
/* : nullable Object */;
3124 val
* var_parameter
/* var parameter: MParameter */;
3125 short int var17
/* : Bool */;
3126 short int var19
/* : Bool */;
3127 short int var20
/* : Bool */;
3128 short int var22
/* : Bool */;
3131 const char* var_class_name25
;
3132 short int var26
/* : Bool */;
3133 long var27
/* : Int */;
3134 long var29
/* : Int */;
3135 long var30
/* : Int */;
3137 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nitc___nitc__MSignature___core__kernel__Object__init
]))(self
); /* init on <self:MSignature>*/
3140 { /* Inline kernel#Int#unary - (1l) on <1l:Int> */
3147 var_vararg_rank
= var
;
3150 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
3151 var5
= self
->attrs
[COLOR_nitc__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
3152 if (unlikely(var5
== NULL
)) {
3153 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
3154 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1783);
3162 { /* Inline array#AbstractArrayRead#length (var3) on <var3:Array[MParameter]> */
3163 var8
= var3
->attrs
[COLOR_core__array__AbstractArrayRead___length
].l
; /* _length on <var3:Array[MParameter]> */
3171 { /* Inline kernel#Int#< (var_i,var_) on <var_i:Int> */
3172 /* Covariant cast for argument 0 (i) <var_:Int> isa OTHER */
3173 /* <var_:Int> isa OTHER */
3174 var11
= 1; /* easy <var_:Int> isa OTHER*/
3175 if (unlikely(!var11
)) {
3176 var_class_name
= type_core__Int
.name
;
3177 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
3178 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 728);
3181 var12
= var_i
< var_
;
3184 RET_LABEL10
:(void)0;
3192 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
3193 var15
= self
->attrs
[COLOR_nitc__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
3194 if (unlikely(var15
== NULL
)) {
3195 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
3196 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1783);
3200 RET_LABEL14
:(void)0;
3204 var16
= core___core__Array___core__abstract_collection__SequenceRead___91d_93d(var13
, var_i
);
3206 var_parameter
= var16
;
3208 { /* Inline model#MParameter#is_vararg (var_parameter) on <var_parameter:MParameter> */
3209 var19
= var_parameter
->attrs
[COLOR_nitc__model__MParameter___is_vararg
].s
; /* _is_vararg on <var_parameter:MParameter> */
3211 RET_LABEL18
:(void)0;
3216 { /* Inline kernel#Int#>= (var_vararg_rank,0l) on <var_vararg_rank:Int> */
3217 /* Covariant cast for argument 0 (i) <0l:Int> isa OTHER */
3218 /* <0l:Int> isa OTHER */
3219 var22
= 1; /* easy <0l:Int> isa OTHER*/
3220 if (unlikely(!var22
)) {
3221 var_class_name25
= type_core__Int
.name
;
3222 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name25
);
3223 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 729);
3226 var26
= var_vararg_rank
>= 0l;
3229 RET_LABEL21
:(void)0;
3234 { /* Inline kernel#Int#unary - (1l) on <1l:Int> */
3238 RET_LABEL28
:(void)0;
3241 var_vararg_rank
= var27
;
3245 var_vararg_rank
= var_i
;
3249 var30
= core___core__Int___Discrete__successor(var_i
, 1l);
3253 BREAK_label
: (void)0;
3255 { /* Inline model#MSignature#vararg_rank= (self,var_vararg_rank) on <self:MSignature> */
3256 self
->attrs
[COLOR_nitc__model__MSignature___vararg_rank
].l
= var_vararg_rank
; /* _vararg_rank on <self:MSignature> */
3257 RET_LABEL31
:(void)0;
3262 /* method model#MSignature#vararg_rank for (self: MSignature): Int */
3263 long nitc___nitc__MSignature___vararg_rank(val
* self
) {
3264 long var
/* : Int */;
3265 long var1
/* : Int */;
3266 var1
= self
->attrs
[COLOR_nitc__model__MSignature___vararg_rank
].l
; /* _vararg_rank on <self:MSignature> */
3271 /* method model#MSignature#vararg_rank= for (self: MSignature, Int) */
3272 void nitc___nitc__MSignature___vararg_rank_61d(val
* self
, long p0
) {
3273 self
->attrs
[COLOR_nitc__model__MSignature___vararg_rank
].l
= p0
; /* _vararg_rank on <self:MSignature> */
3276 /* method model#MSignature#arity for (self: MSignature): Int */
3277 long nitc___nitc__MSignature___arity(val
* self
) {
3278 long var
/* : Int */;
3279 val
* var1
/* : Array[MParameter] */;
3280 val
* var3
/* : Array[MParameter] */;
3281 long var4
/* : Int */;
3282 long var6
/* : Int */;
3284 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
3285 var3
= self
->attrs
[COLOR_nitc__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
3286 if (unlikely(var3
== NULL
)) {
3287 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
3288 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1783);
3296 { /* Inline array#AbstractArrayRead#length (var1) on <var1:Array[MParameter]> */
3297 var6
= var1
->attrs
[COLOR_core__array__AbstractArrayRead___length
].l
; /* _length on <var1:Array[MParameter]> */
3307 /* method model#MSignature#to_s for (self: MSignature): String */
3308 val
* nitc___nitc__MSignature___core__abstract_text__Object__to_s(val
* self
) {
3309 val
* var
/* : String */;
3310 val
* var1
/* : FlatBuffer */;
3311 val
* var_b
/* var b: FlatBuffer */;
3312 val
* var3
/* : Array[MParameter] */;
3313 val
* var5
/* : Array[MParameter] */;
3314 short int var6
/* : Bool */;
3315 short int var7
/* : Bool */;
3316 static val
* varonce
;
3317 val
* var8
/* : String */;
3318 char* var9
/* : NativeString */;
3319 val
* var10
/* : String */;
3320 long var_i
/* var i: Int */;
3321 val
* var11
/* : Array[MParameter] */;
3322 val
* var13
/* : Array[MParameter] */;
3323 long var14
/* : Int */;
3324 long var16
/* : Int */;
3325 long var_
/* var : Int */;
3326 short int var17
/* : Bool */;
3327 short int var19
/* : Bool */;
3330 const char* var_class_name
;
3331 short int var20
/* : Bool */;
3332 val
* var21
/* : Array[MParameter] */;
3333 val
* var23
/* : Array[MParameter] */;
3334 val
* var24
/* : nullable Object */;
3335 val
* var_mparameter
/* var mparameter: MParameter */;
3336 short int var25
/* : Bool */;
3337 short int var27
/* : Bool */;
3340 const char* var_class_name30
;
3341 short int var31
/* : Bool */;
3342 static val
* varonce32
;
3343 val
* var33
/* : String */;
3344 char* var34
/* : NativeString */;
3345 val
* var35
/* : String */;
3346 val
* var36
/* : String */;
3347 val
* var38
/* : String */;
3348 static val
* varonce39
;
3349 val
* var40
/* : String */;
3350 char* var41
/* : NativeString */;
3351 val
* var42
/* : String */;
3352 val
* var43
/* : MType */;
3353 val
* var45
/* : MType */;
3354 val
* var46
/* : String */;
3355 short int var47
/* : Bool */;
3356 short int var49
/* : Bool */;
3357 static val
* varonce50
;
3358 val
* var51
/* : String */;
3359 char* var52
/* : NativeString */;
3360 val
* var53
/* : String */;
3361 long var54
/* : Int */;
3362 static val
* varonce55
;
3363 val
* var56
/* : String */;
3364 char* var57
/* : NativeString */;
3365 val
* var58
/* : String */;
3366 val
* var59
/* : nullable MType */;
3367 val
* var61
/* : nullable MType */;
3368 val
* var_ret
/* var ret: nullable MType */;
3369 short int var62
/* : Bool */;
3370 short int var63
/* : Bool */;
3371 val
* var_other
/* var other: nullable Object */;
3372 short int var65
/* : Bool */;
3373 short int var66
/* : Bool */;
3374 static val
* varonce67
;
3375 val
* var68
/* : String */;
3376 char* var69
/* : NativeString */;
3377 val
* var70
/* : String */;
3378 val
* var71
/* : String */;
3379 val
* var72
/* : String */;
3380 var1
= NEW_core__FlatBuffer(&type_core__FlatBuffer
);
3382 { /* Inline flat#FlatBuffer#init (var1) on <var1:FlatBuffer> */
3384 ((void(*)(val
* self
))(var1
->class->vft
[COLOR_core___core__FlatBuffer___core__kernel__Object__init
]))(var1
); /* init on <var1:FlatBuffer>*/
3391 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
3392 var5
= self
->attrs
[COLOR_nitc__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
3393 if (unlikely(var5
== NULL
)) {
3394 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
3395 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1783);
3403 var6
= core___core__AbstractArrayRead___core__abstract_collection__Collection__is_empty(var3
);
3407 if (likely(varonce
!=NULL
)) {
3411 var10
= core__flat___NativeString___to_s_full(var9
, 1l, 1l);
3416 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_b
, var8
); /* Direct call flat#FlatBuffer#append on <var_b:FlatBuffer>*/
3420 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
3421 var13
= self
->attrs
[COLOR_nitc__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
3422 if (unlikely(var13
== NULL
)) {
3423 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
3424 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1783);
3428 RET_LABEL12
:(void)0;
3432 { /* Inline array#AbstractArrayRead#length (var11) on <var11:Array[MParameter]> */
3433 var16
= var11
->attrs
[COLOR_core__array__AbstractArrayRead___length
].l
; /* _length on <var11:Array[MParameter]> */
3435 RET_LABEL15
:(void)0;
3441 { /* Inline kernel#Int#< (var_i,var_) on <var_i:Int> */
3442 /* Covariant cast for argument 0 (i) <var_:Int> isa OTHER */
3443 /* <var_:Int> isa OTHER */
3444 var19
= 1; /* easy <var_:Int> isa OTHER*/
3445 if (unlikely(!var19
)) {
3446 var_class_name
= type_core__Int
.name
;
3447 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
3448 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 728);
3451 var20
= var_i
< var_
;
3454 RET_LABEL18
:(void)0;
3462 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
3463 var23
= self
->attrs
[COLOR_nitc__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
3464 if (unlikely(var23
== NULL
)) {
3465 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
3466 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1783);
3470 RET_LABEL22
:(void)0;
3474 var24
= core___core__Array___core__abstract_collection__SequenceRead___91d_93d(var21
, var_i
);
3476 var_mparameter
= var24
;
3478 { /* Inline kernel#Int#> (var_i,0l) on <var_i:Int> */
3479 /* Covariant cast for argument 0 (i) <0l:Int> isa OTHER */
3480 /* <0l:Int> isa OTHER */
3481 var27
= 1; /* easy <0l:Int> isa OTHER*/
3482 if (unlikely(!var27
)) {
3483 var_class_name30
= type_core__Int
.name
;
3484 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name30
);
3485 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 730);
3491 RET_LABEL26
:(void)0;
3495 if (likely(varonce32
!=NULL
)) {
3499 var35
= core__flat___NativeString___to_s_full(var34
, 2l, 2l);
3504 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_b
, var33
); /* Direct call flat#FlatBuffer#append on <var_b:FlatBuffer>*/
3509 { /* Inline model#MParameter#name (var_mparameter) on <var_mparameter:MParameter> */
3510 var38
= var_mparameter
->attrs
[COLOR_nitc__model__MParameter___name
].val
; /* _name on <var_mparameter:MParameter> */
3511 if (unlikely(var38
== NULL
)) {
3512 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
3513 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1897);
3517 RET_LABEL37
:(void)0;
3521 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_b
, var36
); /* Direct call flat#FlatBuffer#append on <var_b:FlatBuffer>*/
3523 if (likely(varonce39
!=NULL
)) {
3527 var42
= core__flat___NativeString___to_s_full(var41
, 2l, 2l);
3532 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_b
, var40
); /* Direct call flat#FlatBuffer#append on <var_b:FlatBuffer>*/
3535 { /* Inline model#MParameter#mtype (var_mparameter) on <var_mparameter:MParameter> */
3536 var45
= var_mparameter
->attrs
[COLOR_nitc__model__MParameter___mtype
].val
; /* _mtype on <var_mparameter:MParameter> */
3537 if (unlikely(var45
== NULL
)) {
3538 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
3539 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1900);
3543 RET_LABEL44
:(void)0;
3547 var46
= ((val
*(*)(val
* self
))(var43
->class->vft
[COLOR_core__abstract_text__Object__to_s
]))(var43
); /* to_s on <var43:MType>*/
3550 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_b
, var46
); /* Direct call flat#FlatBuffer#append on <var_b:FlatBuffer>*/
3553 { /* Inline model#MParameter#is_vararg (var_mparameter) on <var_mparameter:MParameter> */
3554 var49
= var_mparameter
->attrs
[COLOR_nitc__model__MParameter___is_vararg
].s
; /* _is_vararg on <var_mparameter:MParameter> */
3556 RET_LABEL48
:(void)0;
3560 if (likely(varonce50
!=NULL
)) {
3564 var53
= core__flat___NativeString___to_s_full(var52
, 3l, 3l);
3569 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_b
, var51
); /* Direct call flat#FlatBuffer#append on <var_b:FlatBuffer>*/
3574 var54
= core___core__Int___Discrete__successor(var_i
, 1l);
3578 BREAK_label
: (void)0;
3579 if (likely(varonce55
!=NULL
)) {
3583 var58
= core__flat___NativeString___to_s_full(var57
, 1l, 1l);
3588 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_b
, var56
); /* Direct call flat#FlatBuffer#append on <var_b:FlatBuffer>*/
3593 { /* Inline model#MSignature#return_mtype (self) on <self:MSignature> */
3594 var61
= self
->attrs
[COLOR_nitc__model__MSignature___return_mtype
].val
; /* _return_mtype on <self:MSignature> */
3596 RET_LABEL60
:(void)0;
3600 if (var_ret
== NULL
) {
3601 var62
= 0; /* is null */
3603 var62
= 1; /* arg is null and recv is not */
3606 { /* Inline kernel#Object#!= (var_ret,((val*)NULL)) on <var_ret:nullable MType> */
3607 var_other
= ((val
*)NULL
);
3609 var65
= ((short int(*)(val
* self
, val
* p0
))(var_ret
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_ret
, var_other
); /* == on <var_ret:nullable MType(MType)>*/
3614 RET_LABEL64
:(void)0;
3619 if (likely(varonce67
!=NULL
)) {
3623 var70
= core__flat___NativeString___to_s_full(var69
, 2l, 2l);
3628 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_b
, var68
); /* Direct call flat#FlatBuffer#append on <var_b:FlatBuffer>*/
3631 var71
= ((val
*(*)(val
* self
))(var_ret
->class->vft
[COLOR_core__abstract_text__Object__to_s
]))(var_ret
); /* to_s on <var_ret:nullable MType(MType)>*/
3634 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_b
, var71
); /* Direct call flat#FlatBuffer#append on <var_b:FlatBuffer>*/
3639 var72
= core___core__FlatBuffer___core__abstract_text__Object__to_s(var_b
);
3646 /* method model#MSignature#resolve_for for (self: MSignature, MType, nullable MClassType, MModule, Bool): MSignature */
3647 val
* nitc___nitc__MSignature___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
3648 val
* var
/* : MSignature */;
3649 val
* var_mtype
/* var mtype: MType */;
3650 val
* var_anchor
/* var anchor: nullable MClassType */;
3651 val
* var_mmodule
/* var mmodule: MModule */;
3652 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
3653 val
* var1
/* : Array[MParameter] */;
3654 val
* var_params
/* var params: Array[MParameter] */;
3655 val
* var2
/* : Array[MParameter] */;
3656 val
* var4
/* : Array[MParameter] */;
3657 val
* var_
/* var : Array[MParameter] */;
3658 val
* var5
/* : IndexedIterator[nullable Object] */;
3659 val
* var_6
/* var : IndexedIterator[MParameter] */;
3660 short int var7
/* : Bool */;
3661 val
* var8
/* : nullable Object */;
3662 val
* var_p
/* var p: MParameter */;
3663 val
* var9
/* : MParameter */;
3664 val
* var10
/* : nullable MType */;
3665 val
* var12
/* : nullable MType */;
3666 val
* var_ret
/* var ret: nullable MType */;
3667 short int var13
/* : Bool */;
3668 short int var14
/* : Bool */;
3669 val
* var_other
/* var other: nullable Object */;
3670 short int var16
/* : Bool */;
3671 short int var17
/* : Bool */;
3672 val
* var18
/* : MType */;
3673 val
* var19
/* : MSignature */;
3674 val
* var_res
/* var res: MSignature */;
3678 var_cleanup_virtual
= p3
;
3679 var1
= NEW_core__Array(&type_core__Array__nitc__MParameter
);
3681 core___core__Array___core__kernel__Object__init(var1
); /* Direct call array#Array#init on <var1:Array[MParameter]>*/
3685 { /* Inline model#MSignature#mparameters (self) on <self:MSignature> */
3686 var4
= self
->attrs
[COLOR_nitc__model__MSignature___mparameters
].val
; /* _mparameters on <self:MSignature> */
3687 if (unlikely(var4
== NULL
)) {
3688 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mparameters");
3689 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1783);
3698 var5
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_
);
3703 var7
= ((short int(*)(val
* self
))((((long)var_6
&3)?class_info
[((long)var_6
&3)]:var_6
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_6
); /* is_ok on <var_6:IndexedIterator[MParameter]>*/
3710 var8
= ((val
*(*)(val
* self
))((((long)var_6
&3)?class_info
[((long)var_6
&3)]:var_6
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_6
); /* item on <var_6:IndexedIterator[MParameter]>*/
3714 var9
= nitc___nitc__MParameter___resolve_for(var_p
, var_mtype
, var_anchor
, var_mmodule
, var_cleanup_virtual
);
3717 core___core__Array___core__abstract_collection__SimpleCollection__add(var_params
, var9
); /* Direct call array#Array#add on <var_params:Array[MParameter]>*/
3720 ((void(*)(val
* self
))((((long)var_6
&3)?class_info
[((long)var_6
&3)]:var_6
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_6
); /* next on <var_6:IndexedIterator[MParameter]>*/
3723 BREAK_label
: (void)0;
3725 ((void(*)(val
* self
))((((long)var_6
&3)?class_info
[((long)var_6
&3)]:var_6
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_6
); /* finish on <var_6:IndexedIterator[MParameter]>*/
3728 { /* Inline model#MSignature#return_mtype (self) on <self:MSignature> */
3729 var12
= self
->attrs
[COLOR_nitc__model__MSignature___return_mtype
].val
; /* _return_mtype on <self:MSignature> */
3731 RET_LABEL11
:(void)0;
3735 if (var_ret
== NULL
) {
3736 var13
= 0; /* is null */
3738 var13
= 1; /* arg is null and recv is not */
3741 { /* Inline kernel#Object#!= (var_ret,((val*)NULL)) on <var_ret:nullable MType> */
3742 var_other
= ((val
*)NULL
);
3744 var16
= ((short int(*)(val
* self
, val
* p0
))(var_ret
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_ret
, var_other
); /* == on <var_ret:nullable MType(MType)>*/
3749 RET_LABEL15
:(void)0;
3755 var18
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(var_ret
->class->vft
[COLOR_nitc__model__MType__resolve_for
]))(var_ret
, var_mtype
, var_anchor
, var_mmodule
, var_cleanup_virtual
); /* resolve_for on <var_ret:nullable MType(MType)>*/
3760 var19
= NEW_nitc__MSignature(&type_nitc__MSignature
);
3762 ((void(*)(val
* self
, val
* p0
))(var19
->class->vft
[COLOR_nitc__model__MSignature__mparameters_61d
]))(var19
, var_params
); /* mparameters= on <var19:MSignature>*/
3765 ((void(*)(val
* self
, val
* p0
))(var19
->class->vft
[COLOR_nitc__model__MSignature__return_mtype_61d
]))(var19
, var_ret
); /* return_mtype= on <var19:MSignature>*/
3768 ((void(*)(val
* self
))(var19
->class->vft
[COLOR_core__kernel__Object__init
]))(var19
); /* init on <var19:MSignature>*/
3776 /* method model#MParameter#name for (self: MParameter): String */
3777 val
* nitc___nitc__MParameter___nitc__model_base__MEntity__name(val
* self
) {
3778 val
* var
/* : String */;
3779 val
* var1
/* : String */;
3780 var1
= self
->attrs
[COLOR_nitc__model__MParameter___name
].val
; /* _name on <self:MParameter> */
3781 if (unlikely(var1
== NULL
)) {
3782 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
3783 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1897);
3790 /* method model#MParameter#name= for (self: MParameter, String) */
3791 void nitc___nitc__MParameter___name_61d(val
* self
, val
* p0
) {
3792 self
->attrs
[COLOR_nitc__model__MParameter___name
].val
= p0
; /* _name on <self:MParameter> */
3795 /* method model#MParameter#mtype for (self: MParameter): MType */
3796 val
* nitc___nitc__MParameter___mtype(val
* self
) {
3797 val
* var
/* : MType */;
3798 val
* var1
/* : MType */;
3799 var1
= self
->attrs
[COLOR_nitc__model__MParameter___mtype
].val
; /* _mtype on <self:MParameter> */
3800 if (unlikely(var1
== NULL
)) {
3801 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
3802 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1900);
3809 /* method model#MParameter#mtype= for (self: MParameter, MType) */
3810 void nitc___nitc__MParameter___mtype_61d(val
* self
, val
* p0
) {
3811 self
->attrs
[COLOR_nitc__model__MParameter___mtype
].val
= p0
; /* _mtype on <self:MParameter> */
3814 /* method model#MParameter#is_vararg for (self: MParameter): Bool */
3815 short int nitc___nitc__MParameter___is_vararg(val
* self
) {
3816 short int var
/* : Bool */;
3817 short int var1
/* : Bool */;
3818 var1
= self
->attrs
[COLOR_nitc__model__MParameter___is_vararg
].s
; /* _is_vararg on <self:MParameter> */
3823 /* method model#MParameter#is_vararg= for (self: MParameter, Bool) */
3824 void nitc___nitc__MParameter___is_vararg_61d(val
* self
, short int p0
) {
3825 self
->attrs
[COLOR_nitc__model__MParameter___is_vararg
].s
= p0
; /* _is_vararg on <self:MParameter> */
3828 /* method model#MParameter#to_s for (self: MParameter): String */
3829 val
* nitc___nitc__MParameter___core__abstract_text__Object__to_s(val
* self
) {
3830 val
* var
/* : String */;
3831 short int var1
/* : Bool */;
3832 short int var3
/* : Bool */;
3833 val
* var4
/* : NativeArray[String] */;
3834 static val
* varonce
;
3835 static val
* varonce5
;
3836 val
* var6
/* : String */;
3837 char* var7
/* : NativeString */;
3838 val
* var8
/* : String */;
3839 static val
* varonce9
;
3840 val
* var10
/* : String */;
3841 char* var11
/* : NativeString */;
3842 val
* var12
/* : String */;
3843 val
* var13
/* : String */;
3844 val
* var15
/* : String */;
3845 val
* var16
/* : MType */;
3846 val
* var18
/* : MType */;
3847 val
* var19
/* : String */;
3848 val
* var20
/* : String */;
3849 val
* var22
/* : NativeArray[String] */;
3850 static val
* varonce21
;
3851 static val
* varonce23
;
3852 val
* var24
/* : String */;
3853 char* var25
/* : NativeString */;
3854 val
* var26
/* : String */;
3855 val
* var27
/* : String */;
3856 val
* var29
/* : String */;
3857 val
* var30
/* : MType */;
3858 val
* var32
/* : MType */;
3859 val
* var33
/* : String */;
3860 val
* var34
/* : String */;
3862 { /* Inline model#MParameter#is_vararg (self) on <self:MParameter> */
3863 var3
= self
->attrs
[COLOR_nitc__model__MParameter___is_vararg
].s
; /* _is_vararg on <self:MParameter> */
3869 if (unlikely(varonce
==NULL
)) {
3870 var4
= NEW_core__NativeArray(4l, &type_core__NativeArray__core__String
);
3871 if (likely(varonce5
!=NULL
)) {
3875 var8
= core__flat___NativeString___to_s_full(var7
, 2l, 2l);
3879 ((struct instance_core__NativeArray
*)var4
)->values
[1]=var6
;
3880 if (likely(varonce9
!=NULL
)) {
3884 var12
= core__flat___NativeString___to_s_full(var11
, 3l, 3l);
3888 ((struct instance_core__NativeArray
*)var4
)->values
[3]=var10
;
3894 { /* Inline model#MParameter#name (self) on <self:MParameter> */
3895 var15
= self
->attrs
[COLOR_nitc__model__MParameter___name
].val
; /* _name on <self:MParameter> */
3896 if (unlikely(var15
== NULL
)) {
3897 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
3898 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1897);
3902 RET_LABEL14
:(void)0;
3905 ((struct instance_core__NativeArray
*)var4
)->values
[0]=var13
;
3907 { /* Inline model#MParameter#mtype (self) on <self:MParameter> */
3908 var18
= self
->attrs
[COLOR_nitc__model__MParameter___mtype
].val
; /* _mtype on <self:MParameter> */
3909 if (unlikely(var18
== NULL
)) {
3910 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
3911 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1900);
3915 RET_LABEL17
:(void)0;
3919 var19
= ((val
*(*)(val
* self
))(var16
->class->vft
[COLOR_core__abstract_text__Object__to_s
]))(var16
); /* to_s on <var16:MType>*/
3921 ((struct instance_core__NativeArray
*)var4
)->values
[2]=var19
;
3923 var20
= ((val
*(*)(val
* self
))(var4
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var4
); /* native_to_s on <var4:NativeArray[String]>*/
3929 if (unlikely(varonce21
==NULL
)) {
3930 var22
= NEW_core__NativeArray(3l, &type_core__NativeArray__core__String
);
3931 if (likely(varonce23
!=NULL
)) {
3935 var26
= core__flat___NativeString___to_s_full(var25
, 2l, 2l);
3939 ((struct instance_core__NativeArray
*)var22
)->values
[1]=var24
;
3945 { /* Inline model#MParameter#name (self) on <self:MParameter> */
3946 var29
= self
->attrs
[COLOR_nitc__model__MParameter___name
].val
; /* _name on <self:MParameter> */
3947 if (unlikely(var29
== NULL
)) {
3948 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
3949 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1897);
3953 RET_LABEL28
:(void)0;
3956 ((struct instance_core__NativeArray
*)var22
)->values
[0]=var27
;
3958 { /* Inline model#MParameter#mtype (self) on <self:MParameter> */
3959 var32
= self
->attrs
[COLOR_nitc__model__MParameter___mtype
].val
; /* _mtype on <self:MParameter> */
3960 if (unlikely(var32
== NULL
)) {
3961 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
3962 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1900);
3966 RET_LABEL31
:(void)0;
3970 var33
= ((val
*(*)(val
* self
))(var30
->class->vft
[COLOR_core__abstract_text__Object__to_s
]))(var30
); /* to_s on <var30:MType>*/
3972 ((struct instance_core__NativeArray
*)var22
)->values
[2]=var33
;
3974 var34
= ((val
*(*)(val
* self
))(var22
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var22
); /* native_to_s on <var22:NativeArray[String]>*/
3983 /* method model#MParameter#resolve_for for (self: MParameter, MType, nullable MClassType, MModule, Bool): MParameter */
3984 val
* nitc___nitc__MParameter___resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
) {
3985 val
* var
/* : MParameter */;
3986 val
* var_mtype
/* var mtype: MType */;
3987 val
* var_anchor
/* var anchor: nullable MClassType */;
3988 val
* var_mmodule
/* var mmodule: MModule */;
3989 short int var_cleanup_virtual
/* var cleanup_virtual: Bool */;
3990 val
* var1
/* : MType */;
3991 val
* var3
/* : MType */;
3992 short int var4
/* : Bool */;
3993 short int var5
/* : Bool */;
3994 val
* var6
/* : MType */;
3995 val
* var8
/* : MType */;
3996 val
* var9
/* : MType */;
3997 val
* var_newtype
/* var newtype: MType */;
3998 val
* var10
/* : MParameter */;
3999 val
* var11
/* : String */;
4000 val
* var13
/* : String */;
4001 short int var14
/* : Bool */;
4002 short int var16
/* : Bool */;
4003 val
* var_res
/* var res: MParameter */;
4007 var_cleanup_virtual
= p3
;
4009 { /* Inline model#MParameter#mtype (self) on <self:MParameter> */
4010 var3
= self
->attrs
[COLOR_nitc__model__MParameter___mtype
].val
; /* _mtype on <self:MParameter> */
4011 if (unlikely(var3
== NULL
)) {
4012 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
4013 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1900);
4021 var4
= ((short int(*)(val
* self
))(var1
->class->vft
[COLOR_nitc__model__MType__need_anchor
]))(var1
); /* need_anchor on <var1:MType>*/
4030 { /* Inline model#MParameter#mtype (self) on <self:MParameter> */
4031 var8
= self
->attrs
[COLOR_nitc__model__MParameter___mtype
].val
; /* _mtype on <self:MParameter> */
4032 if (unlikely(var8
== NULL
)) {
4033 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
4034 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1900);
4042 var9
= ((val
*(*)(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
))(var6
->class->vft
[COLOR_nitc__model__MType__resolve_for
]))(var6
, var_mtype
, var_anchor
, var_mmodule
, var_cleanup_virtual
); /* resolve_for on <var6:MType>*/
4045 var10
= NEW_nitc__MParameter(&type_nitc__MParameter
);
4047 { /* Inline model#MParameter#name (self) on <self:MParameter> */
4048 var13
= self
->attrs
[COLOR_nitc__model__MParameter___name
].val
; /* _name on <self:MParameter> */
4049 if (unlikely(var13
== NULL
)) {
4050 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4051 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1897);
4055 RET_LABEL12
:(void)0;
4059 { /* Inline model#MParameter#is_vararg (self) on <self:MParameter> */
4060 var16
= self
->attrs
[COLOR_nitc__model__MParameter___is_vararg
].s
; /* _is_vararg on <self:MParameter> */
4062 RET_LABEL15
:(void)0;
4066 ((void(*)(val
* self
, val
* p0
))(var10
->class->vft
[COLOR_nitc__model__MParameter__name_61d
]))(var10
, var11
); /* name= on <var10:MParameter>*/
4069 ((void(*)(val
* self
, val
* p0
))(var10
->class->vft
[COLOR_nitc__model__MParameter__mtype_61d
]))(var10
, var_newtype
); /* mtype= on <var10:MParameter>*/
4072 ((void(*)(val
* self
, short int p0
))(var10
->class->vft
[COLOR_nitc__model__MParameter__is_vararg_61d
]))(var10
, var14
); /* is_vararg= on <var10:MParameter>*/
4075 ((void(*)(val
* self
))(var10
->class->vft
[COLOR_core__kernel__Object__init
]))(var10
); /* init on <var10:MParameter>*/
4083 /* method model#MParameter#model for (self: MParameter): Model */
4084 val
* nitc___nitc__MParameter___nitc__model_base__MEntity__model(val
* self
) {
4085 val
* var
/* : Model */;
4086 val
* var1
/* : MType */;
4087 val
* var3
/* : MType */;
4088 val
* var4
/* : Model */;
4090 { /* Inline model#MParameter#mtype (self) on <self:MParameter> */
4091 var3
= self
->attrs
[COLOR_nitc__model__MParameter___mtype
].val
; /* _mtype on <self:MParameter> */
4092 if (unlikely(var3
== NULL
)) {
4093 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mtype");
4094 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1900);
4102 var4
= ((val
*(*)(val
* self
))(var1
->class->vft
[COLOR_nitc__model_base__MEntity__model
]))(var1
); /* model on <var1:MType>*/
4109 /* method model#MParameter#init for (self: MParameter) */
4110 void nitc___nitc__MParameter___core__kernel__Object__init(val
* self
) {
4112 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nitc___nitc__MParameter___core__kernel__Object__init
]))(self
); /* init on <self:MParameter>*/
4116 /* method model#MProperty#intro_mclassdef for (self: MProperty): MClassDef */
4117 val
* nitc___nitc__MProperty___intro_mclassdef(val
* self
) {
4118 val
* var
/* : MClassDef */;
4119 val
* var1
/* : MClassDef */;
4120 var1
= self
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
4121 if (unlikely(var1
== NULL
)) {
4122 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
4123 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
4130 /* method model#MProperty#intro_mclassdef= for (self: MProperty, MClassDef) */
4131 void nitc___nitc__MProperty___intro_mclassdef_61d(val
* self
, val
* p0
) {
4132 self
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
= p0
; /* _intro_mclassdef on <self:MProperty> */
4135 /* method model#MProperty#name for (self: MProperty): String */
4136 val
* nitc___nitc__MProperty___nitc__model_base__MEntity__name(val
* self
) {
4137 val
* var
/* : String */;
4138 val
* var1
/* : String */;
4139 var1
= self
->attrs
[COLOR_nitc__model__MProperty___name
].val
; /* _name on <self:MProperty> */
4140 if (unlikely(var1
== NULL
)) {
4141 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4142 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1951);
4149 /* method model#MProperty#name= for (self: MProperty, String) */
4150 void nitc___nitc__MProperty___name_61d(val
* self
, val
* p0
) {
4151 self
->attrs
[COLOR_nitc__model__MProperty___name
].val
= p0
; /* _name on <self:MProperty> */
4154 /* method model#MProperty#full_name for (self: MProperty): String */
4155 val
* nitc___nitc__MProperty___nitc__model_base__MEntity__full_name(val
* self
) {
4156 val
* var
/* : String */;
4157 short int var1
/* : Bool */;
4158 val
* var2
/* : String */;
4159 val
* var3
/* : String */;
4160 val
* var5
/* : NativeArray[String] */;
4161 static val
* varonce
;
4162 static val
* varonce6
;
4163 val
* var7
/* : String */;
4164 char* var8
/* : NativeString */;
4165 val
* var9
/* : String */;
4166 static val
* varonce10
;
4167 val
* var11
/* : String */;
4168 char* var12
/* : NativeString */;
4169 val
* var13
/* : String */;
4170 val
* var14
/* : MClassDef */;
4171 val
* var16
/* : MClassDef */;
4172 val
* var17
/* : MModule */;
4173 val
* var19
/* : MModule */;
4174 val
* var20
/* : MVisibility */;
4175 val
* var22
/* : MVisibility */;
4176 val
* var23
/* : String */;
4177 val
* var24
/* : MClassDef */;
4178 val
* var26
/* : MClassDef */;
4179 val
* var27
/* : MClass */;
4180 val
* var29
/* : MClass */;
4181 val
* var30
/* : String */;
4182 val
* var32
/* : String */;
4183 val
* var33
/* : String */;
4184 val
* var35
/* : String */;
4185 val
* var36
/* : String */;
4186 var1
= self
->attrs
[COLOR_nitc__model__MProperty___full_name
].val
!= NULL
; /* _full_name on <self:MProperty> */
4188 var2
= self
->attrs
[COLOR_nitc__model__MProperty___full_name
].val
; /* _full_name on <self:MProperty> */
4189 if (unlikely(var2
== NULL
)) {
4190 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _full_name");
4191 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1954);
4196 if (unlikely(varonce
==NULL
)) {
4197 var5
= NEW_core__NativeArray(5l, &type_core__NativeArray__core__String
);
4198 if (likely(varonce6
!=NULL
)) {
4202 var9
= core__flat___NativeString___to_s_full(var8
, 2l, 2l);
4206 ((struct instance_core__NativeArray
*)var5
)->values
[1]=var7
;
4207 if (likely(varonce10
!=NULL
)) {
4211 var13
= core__flat___NativeString___to_s_full(var12
, 2l, 2l);
4215 ((struct instance_core__NativeArray
*)var5
)->values
[3]=var11
;
4221 { /* Inline model#MProperty#intro_mclassdef (self) on <self:MProperty> */
4222 var16
= self
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
4223 if (unlikely(var16
== NULL
)) {
4224 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
4225 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
4229 RET_LABEL15
:(void)0;
4233 { /* Inline model#MClassDef#mmodule (var14) on <var14:MClassDef> */
4234 var19
= var14
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var14:MClassDef> */
4235 if (unlikely(var19
== NULL
)) {
4236 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
4237 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
4241 RET_LABEL18
:(void)0;
4245 { /* Inline model#MProperty#visibility (self) on <self:MProperty> */
4246 var22
= self
->attrs
[COLOR_nitc__model__MProperty___visibility
].val
; /* _visibility on <self:MProperty> */
4247 if (unlikely(var22
== NULL
)) {
4248 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _visibility");
4249 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1967);
4253 RET_LABEL21
:(void)0;
4257 var23
= nitc___nitc__MModule___namespace_for(var17
, var20
);
4259 ((struct instance_core__NativeArray
*)var5
)->values
[0]=var23
;
4261 { /* Inline model#MProperty#intro_mclassdef (self) on <self:MProperty> */
4262 var26
= self
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
4263 if (unlikely(var26
== NULL
)) {
4264 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
4265 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
4269 RET_LABEL25
:(void)0;
4273 { /* Inline model#MClassDef#mclass (var24) on <var24:MClassDef> */
4274 var29
= var24
->attrs
[COLOR_nitc__model__MClassDef___mclass
].val
; /* _mclass on <var24:MClassDef> */
4275 if (unlikely(var29
== NULL
)) {
4276 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
4277 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 576);
4281 RET_LABEL28
:(void)0;
4285 { /* Inline model#MClass#name (var27) on <var27:MClass> */
4286 var32
= var27
->attrs
[COLOR_nitc__model__MClass___name
].val
; /* _name on <var27:MClass> */
4287 if (unlikely(var32
== NULL
)) {
4288 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4289 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 385);
4293 RET_LABEL31
:(void)0;
4296 ((struct instance_core__NativeArray
*)var5
)->values
[2]=var30
;
4298 { /* Inline model#MProperty#name (self) on <self:MProperty> */
4299 var35
= self
->attrs
[COLOR_nitc__model__MProperty___name
].val
; /* _name on <self:MProperty> */
4300 if (unlikely(var35
== NULL
)) {
4301 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4302 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1951);
4306 RET_LABEL34
:(void)0;
4309 ((struct instance_core__NativeArray
*)var5
)->values
[4]=var33
;
4311 var36
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var5
); /* native_to_s on <var5:NativeArray[String]>*/
4318 self
->attrs
[COLOR_nitc__model__MProperty___full_name
].val
= var3
; /* _full_name on <self:MProperty> */
4325 /* method model#MProperty#c_name for (self: MProperty): String */
4326 val
* nitc___nitc__MProperty___nitc__model_base__MEntity__c_name(val
* self
) {
4327 val
* var
/* : String */;
4328 short int var1
/* : Bool */;
4329 val
* var2
/* : String */;
4330 val
* var3
/* : String */;
4331 val
* var5
/* : NativeArray[String] */;
4332 static val
* varonce
;
4333 static val
* varonce6
;
4334 val
* var7
/* : String */;
4335 char* var8
/* : NativeString */;
4336 val
* var9
/* : String */;
4337 static val
* varonce10
;
4338 val
* var11
/* : String */;
4339 char* var12
/* : NativeString */;
4340 val
* var13
/* : String */;
4341 val
* var14
/* : MClassDef */;
4342 val
* var16
/* : MClassDef */;
4343 val
* var17
/* : MModule */;
4344 val
* var19
/* : MModule */;
4345 val
* var20
/* : String */;
4346 val
* var21
/* : MClassDef */;
4347 val
* var23
/* : MClassDef */;
4348 val
* var24
/* : MClass */;
4349 val
* var26
/* : MClass */;
4350 val
* var27
/* : String */;
4351 val
* var29
/* : String */;
4352 val
* var30
/* : String */;
4353 val
* var31
/* : String */;
4354 val
* var33
/* : String */;
4355 val
* var34
/* : String */;
4356 val
* var35
/* : String */;
4357 var1
= self
->attrs
[COLOR_nitc__model__MProperty___c_name
].val
!= NULL
; /* _c_name on <self:MProperty> */
4359 var2
= self
->attrs
[COLOR_nitc__model__MProperty___c_name
].val
; /* _c_name on <self:MProperty> */
4360 if (unlikely(var2
== NULL
)) {
4361 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _c_name");
4362 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1962);
4367 if (unlikely(varonce
==NULL
)) {
4368 var5
= NEW_core__NativeArray(5l, &type_core__NativeArray__core__String
);
4369 if (likely(varonce6
!=NULL
)) {
4373 var9
= core__flat___NativeString___to_s_full(var8
, 2l, 2l);
4377 ((struct instance_core__NativeArray
*)var5
)->values
[1]=var7
;
4378 if (likely(varonce10
!=NULL
)) {
4382 var13
= core__flat___NativeString___to_s_full(var12
, 2l, 2l);
4386 ((struct instance_core__NativeArray
*)var5
)->values
[3]=var11
;
4392 { /* Inline model#MProperty#intro_mclassdef (self) on <self:MProperty> */
4393 var16
= self
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
4394 if (unlikely(var16
== NULL
)) {
4395 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
4396 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
4400 RET_LABEL15
:(void)0;
4404 { /* Inline model#MClassDef#mmodule (var14) on <var14:MClassDef> */
4405 var19
= var14
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var14:MClassDef> */
4406 if (unlikely(var19
== NULL
)) {
4407 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
4408 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
4412 RET_LABEL18
:(void)0;
4416 var20
= nitc___nitc__MModule___nitc__model_base__MEntity__c_name(var17
);
4418 ((struct instance_core__NativeArray
*)var5
)->values
[0]=var20
;
4420 { /* Inline model#MProperty#intro_mclassdef (self) on <self:MProperty> */
4421 var23
= self
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
4422 if (unlikely(var23
== NULL
)) {
4423 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
4424 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
4428 RET_LABEL22
:(void)0;
4432 { /* Inline model#MClassDef#mclass (var21) on <var21:MClassDef> */
4433 var26
= var21
->attrs
[COLOR_nitc__model__MClassDef___mclass
].val
; /* _mclass on <var21:MClassDef> */
4434 if (unlikely(var26
== NULL
)) {
4435 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
4436 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 576);
4440 RET_LABEL25
:(void)0;
4444 { /* Inline model#MClass#name (var24) on <var24:MClass> */
4445 var29
= var24
->attrs
[COLOR_nitc__model__MClass___name
].val
; /* _name on <var24:MClass> */
4446 if (unlikely(var29
== NULL
)) {
4447 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4448 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 385);
4452 RET_LABEL28
:(void)0;
4456 var30
= core___core__Text___to_cmangle(var27
);
4458 ((struct instance_core__NativeArray
*)var5
)->values
[2]=var30
;
4460 { /* Inline model#MProperty#name (self) on <self:MProperty> */
4461 var33
= self
->attrs
[COLOR_nitc__model__MProperty___name
].val
; /* _name on <self:MProperty> */
4462 if (unlikely(var33
== NULL
)) {
4463 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4464 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1951);
4468 RET_LABEL32
:(void)0;
4472 var34
= core___core__Text___to_cmangle(var31
);
4474 ((struct instance_core__NativeArray
*)var5
)->values
[4]=var34
;
4476 var35
= ((val
*(*)(val
* self
))(var5
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var5
); /* native_to_s on <var5:NativeArray[String]>*/
4483 self
->attrs
[COLOR_nitc__model__MProperty___c_name
].val
= var3
; /* _c_name on <self:MProperty> */
4490 /* method model#MProperty#visibility for (self: MProperty): MVisibility */
4491 val
* nitc___nitc__MProperty___visibility(val
* self
) {
4492 val
* var
/* : MVisibility */;
4493 val
* var1
/* : MVisibility */;
4494 var1
= self
->attrs
[COLOR_nitc__model__MProperty___visibility
].val
; /* _visibility on <self:MProperty> */
4495 if (unlikely(var1
== NULL
)) {
4496 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _visibility");
4497 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1967);
4504 /* method model#MProperty#visibility= for (self: MProperty, MVisibility) */
4505 void nitc___nitc__MProperty___visibility_61d(val
* self
, val
* p0
) {
4506 self
->attrs
[COLOR_nitc__model__MProperty___visibility
].val
= p0
; /* _visibility on <self:MProperty> */
4509 /* method model#MProperty#is_autoinit for (self: MProperty): Bool */
4510 short int nitc___nitc__MProperty___is_autoinit(val
* self
) {
4511 short int var
/* : Bool */;
4512 short int var1
/* : Bool */;
4513 var1
= self
->attrs
[COLOR_nitc__model__MProperty___is_autoinit
].s
; /* _is_autoinit on <self:MProperty> */
4518 /* method model#MProperty#is_autoinit= for (self: MProperty, Bool) */
4519 void nitc___nitc__MProperty___is_autoinit_61d(val
* self
, short int p0
) {
4520 self
->attrs
[COLOR_nitc__model__MProperty___is_autoinit
].s
= p0
; /* _is_autoinit on <self:MProperty> */
4523 /* method model#MProperty#init for (self: MProperty) */
4524 void nitc___nitc__MProperty___core__kernel__Object__init(val
* self
) {
4525 val
* var
/* : MClassDef */;
4526 val
* var2
/* : MClassDef */;
4527 val
* var3
/* : Array[MProperty] */;
4528 val
* var5
/* : Array[MProperty] */;
4529 val
* var6
/* : MClassDef */;
4530 val
* var8
/* : MClassDef */;
4531 val
* var9
/* : MModule */;
4532 val
* var11
/* : MModule */;
4533 val
* var12
/* : Model */;
4534 val
* var14
/* : Model */;
4535 val
* var_model
/* var model: Model */;
4536 val
* var15
/* : MultiHashMap[String, MProperty] */;
4537 val
* var17
/* : MultiHashMap[String, MProperty] */;
4538 val
* var18
/* : String */;
4539 val
* var20
/* : String */;
4540 val
* var21
/* : Array[MProperty] */;
4541 val
* var23
/* : Array[MProperty] */;
4543 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nitc___nitc__MProperty___core__kernel__Object__init
]))(self
); /* init on <self:MProperty>*/
4546 { /* Inline model#MProperty#intro_mclassdef (self) on <self:MProperty> */
4547 var2
= self
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
4548 if (unlikely(var2
== NULL
)) {
4549 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
4550 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
4558 { /* Inline model#MClassDef#intro_mproperties (var) on <var:MClassDef> */
4559 var5
= var
->attrs
[COLOR_nitc__model__MClassDef___intro_mproperties
].val
; /* _intro_mproperties on <var:MClassDef> */
4560 if (unlikely(var5
== NULL
)) {
4561 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mproperties");
4562 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 704);
4570 core___core__Array___core__abstract_collection__SimpleCollection__add(var3
, self
); /* Direct call array#Array#add on <var3:Array[MProperty]>*/
4573 { /* Inline model#MProperty#intro_mclassdef (self) on <self:MProperty> */
4574 var8
= self
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <self:MProperty> */
4575 if (unlikely(var8
== NULL
)) {
4576 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
4577 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
4585 { /* Inline model#MClassDef#mmodule (var6) on <var6:MClassDef> */
4586 var11
= var6
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var6:MClassDef> */
4587 if (unlikely(var11
== NULL
)) {
4588 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
4589 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
4593 RET_LABEL10
:(void)0;
4597 { /* Inline mmodule#MModule#model (var9) on <var9:MModule> */
4598 var14
= var9
->attrs
[COLOR_nitc__mmodule__MModule___model
].val
; /* _model on <var9:MModule> */
4599 if (unlikely(var14
== NULL
)) {
4600 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _model");
4601 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__mmodule
, 78);
4605 RET_LABEL13
:(void)0;
4610 { /* Inline model#Model#mproperties_by_name (var_model) on <var_model:Model> */
4611 var17
= var_model
->attrs
[COLOR_nitc__model__Model___mproperties_by_name
].val
; /* _mproperties_by_name on <var_model:Model> */
4612 if (unlikely(var17
== NULL
)) {
4613 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperties_by_name");
4614 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 80);
4618 RET_LABEL16
:(void)0;
4622 { /* Inline model#MProperty#name (self) on <self:MProperty> */
4623 var20
= self
->attrs
[COLOR_nitc__model__MProperty___name
].val
; /* _name on <self:MProperty> */
4624 if (unlikely(var20
== NULL
)) {
4625 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4626 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1951);
4630 RET_LABEL19
:(void)0;
4634 more_collections___more_collections__MultiHashMap___add_one(var15
, var18
, self
); /* Direct call more_collections#MultiHashMap#add_one on <var15:MultiHashMap[String, MProperty]>*/
4637 { /* Inline model#Model#mproperties (var_model) on <var_model:Model> */
4638 var23
= var_model
->attrs
[COLOR_nitc__model__Model___mproperties
].val
; /* _mproperties on <var_model:Model> */
4639 if (unlikely(var23
== NULL
)) {
4640 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperties");
4641 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 37);
4645 RET_LABEL22
:(void)0;
4649 core___core__Array___core__abstract_collection__SimpleCollection__add(var21
, self
); /* Direct call array#Array#add on <var21:Array[MProperty]>*/
4653 /* method model#MProperty#mpropdefs for (self: MProperty): Array[MPropDef] */
4654 val
* nitc___nitc__MProperty___mpropdefs(val
* self
) {
4655 val
* var
/* : Array[MPropDef] */;
4656 val
* var1
/* : Array[MPropDef] */;
4657 var1
= self
->attrs
[COLOR_nitc__model__MProperty___mpropdefs
].val
; /* _mpropdefs on <self:MProperty> */
4658 if (unlikely(var1
== NULL
)) {
4659 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mpropdefs");
4660 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1981);
4667 /* method model#MProperty#intro for (self: MProperty): MPropDef */
4668 val
* nitc___nitc__MProperty___intro(val
* self
) {
4669 val
* var
/* : MPropDef */;
4670 val
* var1
/* : MPropDef */;
4671 var1
= self
->attrs
[COLOR_nitc__model__MProperty___intro
].val
; /* _intro on <self:MProperty> */
4672 if (unlikely(var1
== NULL
)) {
4673 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro");
4674 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1986);
4681 /* method model#MProperty#intro= for (self: MProperty, MPropDef) */
4682 void nitc___nitc__MProperty___intro_61d(val
* self
, val
* p0
) {
4683 short int var
/* : Bool */;
4686 const struct type
* type_struct
;
4687 const char* var_class_name
;
4688 /* Covariant cast for argument 0 (intro) <p0:MPropDef> isa MPROPDEF */
4689 /* <p0:MPropDef> isa MPROPDEF */
4690 type_struct
= self
->type
->resolution_table
->types
[COLOR_nitc__model__MProperty__MPROPDEF
];
4691 cltype
= type_struct
->color
;
4692 idtype
= type_struct
->id
;
4693 if(cltype
>= p0
->type
->table_size
) {
4696 var
= p0
->type
->type_table
[cltype
] == idtype
;
4698 if (unlikely(!var
)) {
4699 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
4700 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "MPROPDEF", var_class_name
);
4701 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1986);
4704 self
->attrs
[COLOR_nitc__model__MProperty___intro
].val
= p0
; /* _intro on <self:MProperty> */
4707 /* method model#MProperty#model for (self: MProperty): Model */
4708 val
* nitc___nitc__MProperty___nitc__model_base__MEntity__model(val
* self
) {
4709 val
* var
/* : Model */;
4710 val
* var1
/* : MPropDef */;
4711 val
* var3
/* : MPropDef */;
4712 val
* var4
/* : Model */;
4714 { /* Inline model#MProperty#intro (self) on <self:MProperty> */
4715 var3
= self
->attrs
[COLOR_nitc__model__MProperty___intro
].val
; /* _intro on <self:MProperty> */
4716 if (unlikely(var3
== NULL
)) {
4717 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro");
4718 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1986);
4726 var4
= nitc___nitc__MPropDef___nitc__model_base__MEntity__model(var1
);
4733 /* method model#MProperty#to_s for (self: MProperty): String */
4734 val
* nitc___nitc__MProperty___core__abstract_text__Object__to_s(val
* self
) {
4735 val
* var
/* : String */;
4736 val
* var1
/* : String */;
4737 val
* var3
/* : String */;
4739 { /* Inline model#MProperty#name (self) on <self:MProperty> */
4740 var3
= self
->attrs
[COLOR_nitc__model__MProperty___name
].val
; /* _name on <self:MProperty> */
4741 if (unlikely(var3
== NULL
)) {
4742 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
4743 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1951);
4755 /* method model#MProperty#lookup_definitions for (self: MProperty, MModule, MType): Array[MPropDef] */
4756 val
* nitc___nitc__MProperty___lookup_definitions(val
* self
, val
* p0
, val
* p1
) {
4757 val
* var
/* : Array[MPropDef] */;
4758 val
* var_mmodule
/* var mmodule: MModule */;
4759 val
* var_mtype
/* var mtype: MType */;
4760 short int var1
/* : Bool */;
4761 short int var2
/* : Bool */;
4762 val
* var3
/* : MType */;
4763 val
* var4
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
4764 val
* var6
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
4765 val
* var7
/* : nullable Object */;
4766 val
* var_cache
/* var cache: nullable Array[MPropDef] */;
4767 short int var8
/* : Bool */;
4768 short int var9
/* : Bool */;
4769 val
* var_other
/* var other: nullable Object */;
4770 short int var11
/* : Bool */;
4771 short int var12
/* : Bool */;
4772 val
* var13
/* : Array[MPropDef] */;
4773 val
* var_candidates
/* var candidates: Array[MPropDef] */;
4774 val
* var14
/* : Array[MPropDef] */;
4775 val
* var16
/* : Array[MPropDef] */;
4776 val
* var_
/* var : Array[MPropDef] */;
4777 val
* var17
/* : IndexedIterator[nullable Object] */;
4778 val
* var_18
/* var : IndexedIterator[MPropDef] */;
4779 short int var19
/* : Bool */;
4780 val
* var20
/* : nullable Object */;
4781 val
* var_mpropdef
/* var mpropdef: MPropDef */;
4782 val
* var21
/* : POSetElement[MModule] */;
4783 val
* var23
/* : POSetElement[MModule] */;
4784 val
* var24
/* : MClassDef */;
4785 val
* var26
/* : MClassDef */;
4786 val
* var27
/* : MModule */;
4787 val
* var29
/* : MModule */;
4788 short int var30
/* : Bool */;
4789 short int var31
/* : Bool */;
4790 val
* var33
/* : MClassDef */;
4791 val
* var35
/* : MClassDef */;
4792 val
* var36
/* : MClassType */;
4793 val
* var38
/* : MClassType */;
4794 short int var39
/* : Bool */;
4795 short int var40
/* : Bool */;
4796 long var41
/* : Int */;
4797 long var43
/* : Int */;
4798 short int var44
/* : Bool */;
4799 short int var46
/* : Bool */;
4802 const char* var_class_name
;
4803 short int var47
/* : Bool */;
4804 val
* var48
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
4805 val
* var50
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
4806 val
* var51
/* : Array[MPropDef] */;
4810 var1
= ((short int(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nitc__model__MType__need_anchor
]))(var_mtype
); /* need_anchor on <var_mtype:MType>*/
4813 if (unlikely(!var2
)) {
4814 PRINT_ERROR("Runtime error: %s", "Assert failed");
4815 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2008);
4819 var3
= ((val
*(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nitc__model__MType__undecorate
]))(var_mtype
); /* undecorate on <var_mtype:MType>*/
4823 { /* Inline model#MProperty#lookup_definitions_cache (self) on <self:MProperty> */
4824 var6
= self
->attrs
[COLOR_nitc__model__MProperty___lookup_definitions_cache
].val
; /* _lookup_definitions_cache on <self:MProperty> */
4825 if (unlikely(var6
== NULL
)) {
4826 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_definitions_cache");
4827 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2035);
4835 var7
= more_collections___more_collections__HashMap2____91d_93d(var4
, var_mmodule
, var_mtype
);
4838 if (var_cache
== NULL
) {
4839 var8
= 0; /* is null */
4841 var8
= 1; /* arg is null and recv is not */
4844 { /* Inline kernel#Object#!= (var_cache,((val*)NULL)) on <var_cache:nullable Array[MPropDef]> */
4845 var_other
= ((val
*)NULL
);
4847 var11
= ((short int(*)(val
* self
, val
* p0
))(var_cache
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_cache
, var_other
); /* == on <var_cache:nullable Array[MPropDef](Array[MPropDef])>*/
4852 RET_LABEL10
:(void)0;
4861 var13
= NEW_core__Array(self
->type
->resolution_table
->types
[COLOR_core__Array__nitc__model__MProperty__MPROPDEF
]);
4863 core___core__Array___core__kernel__Object__init(var13
); /* Direct call array#Array#init on <var13:Array[MPropDef]>*/
4865 var_candidates
= var13
;
4867 { /* Inline model#MProperty#mpropdefs (self) on <self:MProperty> */
4868 var16
= self
->attrs
[COLOR_nitc__model__MProperty___mpropdefs
].val
; /* _mpropdefs on <self:MProperty> */
4869 if (unlikely(var16
== NULL
)) {
4870 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mpropdefs");
4871 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1981);
4875 RET_LABEL15
:(void)0;
4880 var17
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_
);
4885 var19
= ((short int(*)(val
* self
))((((long)var_18
&3)?class_info
[((long)var_18
&3)]:var_18
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_18
); /* is_ok on <var_18:IndexedIterator[MPropDef]>*/
4892 var20
= ((val
*(*)(val
* self
))((((long)var_18
&3)?class_info
[((long)var_18
&3)]:var_18
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_18
); /* item on <var_18:IndexedIterator[MPropDef]>*/
4894 var_mpropdef
= var20
;
4896 { /* Inline mmodule#MModule#in_importation (var_mmodule) on <var_mmodule:MModule> */
4897 var23
= var_mmodule
->attrs
[COLOR_nitc__mmodule__MModule___in_importation
].val
; /* _in_importation on <var_mmodule:MModule> */
4898 if (unlikely(var23
== NULL
)) {
4899 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _in_importation");
4900 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__mmodule
, 104);
4904 RET_LABEL22
:(void)0;
4908 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
4909 var26
= var_mpropdef
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
4910 if (unlikely(var26
== NULL
)) {
4911 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
4912 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
4916 RET_LABEL25
:(void)0;
4920 { /* Inline model#MClassDef#mmodule (var24) on <var24:MClassDef> */
4921 var29
= var24
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var24:MClassDef> */
4922 if (unlikely(var29
== NULL
)) {
4923 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
4924 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
4928 RET_LABEL28
:(void)0;
4932 var30
= poset___poset__POSetElement____60d_61d(var21
, var27
);
4940 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
4941 var35
= var_mpropdef
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
4942 if (unlikely(var35
== NULL
)) {
4943 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
4944 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
4948 RET_LABEL34
:(void)0;
4952 { /* Inline model#MClassDef#bound_mtype (var33) on <var33:MClassDef> */
4953 var38
= var33
->attrs
[COLOR_nitc__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var33:MClassDef> */
4954 if (unlikely(var38
== NULL
)) {
4955 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
4956 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 579);
4960 RET_LABEL37
:(void)0;
4964 var39
= nitc___nitc__MType___is_subtype(var_mtype
, var_mmodule
, ((val
*)NULL
), var36
);
4972 core___core__Array___core__abstract_collection__SimpleCollection__add(var_candidates
, var_mpropdef
); /* Direct call array#Array#add on <var_candidates:Array[MPropDef]>*/
4974 BREAK_label32
: (void)0;
4976 ((void(*)(val
* self
))((((long)var_18
&3)?class_info
[((long)var_18
&3)]:var_18
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_18
); /* next on <var_18:IndexedIterator[MPropDef]>*/
4979 BREAK_label
: (void)0;
4981 ((void(*)(val
* self
))((((long)var_18
&3)?class_info
[((long)var_18
&3)]:var_18
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_18
); /* finish on <var_18:IndexedIterator[MPropDef]>*/
4984 { /* Inline array#AbstractArrayRead#length (var_candidates) on <var_candidates:Array[MPropDef]> */
4985 var43
= var_candidates
->attrs
[COLOR_core__array__AbstractArrayRead___length
].l
; /* _length on <var_candidates:Array[MPropDef]> */
4987 RET_LABEL42
:(void)0;
4991 { /* Inline kernel#Int#<= (var41,1l) on <var41:Int> */
4992 /* Covariant cast for argument 0 (i) <1l:Int> isa OTHER */
4993 /* <1l:Int> isa OTHER */
4994 var46
= 1; /* easy <1l:Int> isa OTHER*/
4995 if (unlikely(!var46
)) {
4996 var_class_name
= type_core__Int
.name
;
4997 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
4998 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 727);
5001 var47
= var41
<= 1l;
5004 RET_LABEL45
:(void)0;
5009 { /* Inline model#MProperty#lookup_definitions_cache (self) on <self:MProperty> */
5010 var50
= self
->attrs
[COLOR_nitc__model__MProperty___lookup_definitions_cache
].val
; /* _lookup_definitions_cache on <self:MProperty> */
5011 if (unlikely(var50
== NULL
)) {
5012 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_definitions_cache");
5013 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2035);
5017 RET_LABEL49
:(void)0;
5021 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]]>*/
5023 var
= var_candidates
;
5028 var51
= nitc___nitc__MProperty___select_most_specific(self
, var_mmodule
, var_candidates
);
5035 /* method model#MProperty#lookup_definitions_cache for (self: MProperty): HashMap2[MModule, MType, Array[MPropDef]] */
5036 val
* nitc___nitc__MProperty___lookup_definitions_cache(val
* self
) {
5037 val
* var
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5038 val
* var1
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5039 var1
= self
->attrs
[COLOR_nitc__model__MProperty___lookup_definitions_cache
].val
; /* _lookup_definitions_cache on <self:MProperty> */
5040 if (unlikely(var1
== NULL
)) {
5041 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_definitions_cache");
5042 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2035);
5049 /* method model#MProperty#lookup_super_definitions for (self: MProperty, MModule, MType): Array[MPropDef] */
5050 val
* nitc___nitc__MProperty___lookup_super_definitions(val
* self
, val
* p0
, val
* p1
) {
5051 val
* var
/* : Array[MPropDef] */;
5052 val
* var_mmodule
/* var mmodule: MModule */;
5053 val
* var_mtype
/* var mtype: MType */;
5054 short int var1
/* : Bool */;
5055 short int var2
/* : Bool */;
5056 val
* var3
/* : MType */;
5057 val
* var4
/* : Array[MPropDef] */;
5058 val
* var_candidates
/* var candidates: Array[MPropDef] */;
5059 val
* var5
/* : Array[MPropDef] */;
5060 val
* var7
/* : Array[MPropDef] */;
5061 val
* var_
/* var : Array[MPropDef] */;
5062 val
* var8
/* : IndexedIterator[nullable Object] */;
5063 val
* var_9
/* var : IndexedIterator[MPropDef] */;
5064 short int var10
/* : Bool */;
5065 val
* var11
/* : nullable Object */;
5066 val
* var_mpropdef
/* var mpropdef: MPropDef */;
5067 val
* var12
/* : POSetElement[MModule] */;
5068 val
* var14
/* : POSetElement[MModule] */;
5069 val
* var15
/* : MClassDef */;
5070 val
* var17
/* : MClassDef */;
5071 val
* var18
/* : MModule */;
5072 val
* var20
/* : MModule */;
5073 short int var21
/* : Bool */;
5074 short int var22
/* : Bool */;
5075 val
* var24
/* : MClassDef */;
5076 val
* var26
/* : MClassDef */;
5077 val
* var27
/* : MClassType */;
5078 val
* var29
/* : MClassType */;
5079 short int var30
/* : Bool */;
5080 short int var31
/* : Bool */;
5081 short int var32
/* : Bool */;
5082 val
* var33
/* : MClassDef */;
5083 val
* var35
/* : MClassDef */;
5084 val
* var36
/* : MClassType */;
5085 val
* var38
/* : MClassType */;
5086 short int var39
/* : Bool */;
5087 val
* var_other
/* var other: nullable Object */;
5088 short int var41
/* : Bool */;
5089 short int var43
/* : Bool */;
5090 short int var_44
/* var : Bool */;
5091 val
* var45
/* : MClassDef */;
5092 val
* var47
/* : MClassDef */;
5093 val
* var48
/* : MModule */;
5094 val
* var50
/* : MModule */;
5095 short int var51
/* : Bool */;
5096 short int var53
/* : Bool */;
5097 short int var55
/* : Bool */;
5098 long var56
/* : Int */;
5099 long var58
/* : Int */;
5100 short int var59
/* : Bool */;
5101 short int var61
/* : Bool */;
5104 const char* var_class_name
;
5105 short int var62
/* : Bool */;
5106 val
* var63
/* : Array[MPropDef] */;
5110 var1
= ((short int(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nitc__model__MType__need_anchor
]))(var_mtype
); /* need_anchor on <var_mtype:MType>*/
5113 if (unlikely(!var2
)) {
5114 PRINT_ERROR("Runtime error: %s", "Assert failed");
5115 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2048);
5119 var3
= ((val
*(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nitc__model__MType__undecorate
]))(var_mtype
); /* undecorate on <var_mtype:MType>*/
5122 var4
= NEW_core__Array(self
->type
->resolution_table
->types
[COLOR_core__Array__nitc__model__MProperty__MPROPDEF
]);
5124 core___core__Array___core__kernel__Object__init(var4
); /* Direct call array#Array#init on <var4:Array[MPropDef]>*/
5126 var_candidates
= var4
;
5128 { /* Inline model#MProperty#mpropdefs (self) on <self:MProperty> */
5129 var7
= self
->attrs
[COLOR_nitc__model__MProperty___mpropdefs
].val
; /* _mpropdefs on <self:MProperty> */
5130 if (unlikely(var7
== NULL
)) {
5131 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mpropdefs");
5132 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1981);
5141 var8
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_
);
5146 var10
= ((short int(*)(val
* self
))((((long)var_9
&3)?class_info
[((long)var_9
&3)]:var_9
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_9
); /* is_ok on <var_9:IndexedIterator[MPropDef]>*/
5153 var11
= ((val
*(*)(val
* self
))((((long)var_9
&3)?class_info
[((long)var_9
&3)]:var_9
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_9
); /* item on <var_9:IndexedIterator[MPropDef]>*/
5155 var_mpropdef
= var11
;
5157 { /* Inline mmodule#MModule#in_importation (var_mmodule) on <var_mmodule:MModule> */
5158 var14
= var_mmodule
->attrs
[COLOR_nitc__mmodule__MModule___in_importation
].val
; /* _in_importation on <var_mmodule:MModule> */
5159 if (unlikely(var14
== NULL
)) {
5160 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _in_importation");
5161 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__mmodule
, 104);
5165 RET_LABEL13
:(void)0;
5169 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
5170 var17
= var_mpropdef
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
5171 if (unlikely(var17
== NULL
)) {
5172 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5173 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
5177 RET_LABEL16
:(void)0;
5181 { /* Inline model#MClassDef#mmodule (var15) on <var15:MClassDef> */
5182 var20
= var15
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var15:MClassDef> */
5183 if (unlikely(var20
== NULL
)) {
5184 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
5185 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
5189 RET_LABEL19
:(void)0;
5193 var21
= poset___poset__POSetElement____60d_61d(var12
, var18
);
5201 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
5202 var26
= var_mpropdef
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
5203 if (unlikely(var26
== NULL
)) {
5204 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5205 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
5209 RET_LABEL25
:(void)0;
5213 { /* Inline model#MClassDef#bound_mtype (var24) on <var24:MClassDef> */
5214 var29
= var24
->attrs
[COLOR_nitc__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var24:MClassDef> */
5215 if (unlikely(var29
== NULL
)) {
5216 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
5217 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 579);
5221 RET_LABEL28
:(void)0;
5225 var30
= nitc___nitc__MType___is_subtype(var_mtype
, var_mmodule
, ((val
*)NULL
), var27
);
5233 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
5234 var35
= var_mpropdef
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
5235 if (unlikely(var35
== NULL
)) {
5236 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5237 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
5241 RET_LABEL34
:(void)0;
5245 { /* Inline model#MClassDef#bound_mtype (var33) on <var33:MClassDef> */
5246 var38
= var33
->attrs
[COLOR_nitc__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var33:MClassDef> */
5247 if (unlikely(var38
== NULL
)) {
5248 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
5249 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 579);
5253 RET_LABEL37
:(void)0;
5257 { /* Inline kernel#Object#== (var_mtype,var36) on <var_mtype:MType> */
5260 { /* Inline kernel#Object#is_same_instance (var_mtype,var_other) on <var_mtype:MType> */
5261 var43
= var_mtype
== var_other
;
5264 RET_LABEL42
:(void)0;
5269 RET_LABEL40
:(void)0;
5275 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
5276 var47
= var_mpropdef
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
5277 if (unlikely(var47
== NULL
)) {
5278 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5279 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
5283 RET_LABEL46
:(void)0;
5287 { /* Inline model#MClassDef#mmodule (var45) on <var45:MClassDef> */
5288 var50
= var45
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var45:MClassDef> */
5289 if (unlikely(var50
== NULL
)) {
5290 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
5291 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
5295 RET_LABEL49
:(void)0;
5299 { /* Inline kernel#Object#== (var_mmodule,var48) on <var_mmodule:MModule> */
5302 { /* Inline kernel#Object#is_same_instance (var_mmodule,var_other) on <var_mmodule:MModule> */
5303 var55
= var_mmodule
== var_other
;
5306 RET_LABEL54
:(void)0;
5311 RET_LABEL52
:(void)0;
5323 core___core__Array___core__abstract_collection__SimpleCollection__add(var_candidates
, var_mpropdef
); /* Direct call array#Array#add on <var_candidates:Array[MPropDef]>*/
5325 BREAK_label23
: (void)0;
5327 ((void(*)(val
* self
))((((long)var_9
&3)?class_info
[((long)var_9
&3)]:var_9
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_9
); /* next on <var_9:IndexedIterator[MPropDef]>*/
5330 BREAK_label
: (void)0;
5332 ((void(*)(val
* self
))((((long)var_9
&3)?class_info
[((long)var_9
&3)]:var_9
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_9
); /* finish on <var_9:IndexedIterator[MPropDef]>*/
5335 { /* Inline array#AbstractArrayRead#length (var_candidates) on <var_candidates:Array[MPropDef]> */
5336 var58
= var_candidates
->attrs
[COLOR_core__array__AbstractArrayRead___length
].l
; /* _length on <var_candidates:Array[MPropDef]> */
5338 RET_LABEL57
:(void)0;
5342 { /* Inline kernel#Int#<= (var56,1l) on <var56:Int> */
5343 /* Covariant cast for argument 0 (i) <1l:Int> isa OTHER */
5344 /* <1l:Int> isa OTHER */
5345 var61
= 1; /* easy <1l:Int> isa OTHER*/
5346 if (unlikely(!var61
)) {
5347 var_class_name
= type_core__Int
.name
;
5348 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
5349 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 727);
5352 var62
= var56
<= 1l;
5355 RET_LABEL60
:(void)0;
5359 var
= var_candidates
;
5364 var63
= nitc___nitc__MProperty___select_most_specific(self
, var_mmodule
, var_candidates
);
5371 /* method model#MProperty#select_most_specific for (self: MProperty, MModule, Array[MPropDef]): Array[MPropDef] */
5372 val
* nitc___nitc__MProperty___select_most_specific(val
* self
, val
* p0
, val
* p1
) {
5373 val
* var
/* : Array[MPropDef] */;
5374 short int var1
/* : Bool */;
5377 const struct type
* type_struct
;
5378 const char* var_class_name
;
5379 val
* var_mmodule
/* var mmodule: MModule */;
5380 val
* var_candidates
/* var candidates: Array[MPropDef] */;
5381 val
* var2
/* : Array[MPropDef] */;
5382 val
* var_res
/* var res: Array[MPropDef] */;
5383 val
* var_
/* var : Array[MPropDef] */;
5384 val
* var3
/* : IndexedIterator[nullable Object] */;
5385 val
* var_4
/* var : IndexedIterator[MPropDef] */;
5386 short int var5
/* : Bool */;
5387 val
* var6
/* : nullable Object */;
5388 val
* var_pd1
/* var pd1: MPropDef */;
5389 val
* var7
/* : MClassDef */;
5390 val
* var9
/* : MClassDef */;
5391 val
* var_cd1
/* var cd1: MClassDef */;
5392 val
* var10
/* : MClass */;
5393 val
* var12
/* : MClass */;
5394 val
* var_c1
/* var c1: MClass */;
5395 short int var_keep
/* var keep: Bool */;
5396 val
* var_13
/* var : Array[MPropDef] */;
5397 val
* var14
/* : IndexedIterator[nullable Object] */;
5398 val
* var_15
/* var : IndexedIterator[MPropDef] */;
5399 short int var16
/* : Bool */;
5400 val
* var18
/* : nullable Object */;
5401 val
* var_pd2
/* var pd2: MPropDef */;
5402 short int var19
/* : Bool */;
5403 val
* var_other
/* var other: nullable Object */;
5404 short int var21
/* : Bool */;
5405 short int var23
/* : Bool */;
5406 val
* var25
/* : MClassDef */;
5407 val
* var27
/* : MClassDef */;
5408 val
* var_cd2
/* var cd2: MClassDef */;
5409 val
* var28
/* : MClass */;
5410 val
* var30
/* : MClass */;
5411 val
* var_c2
/* var c2: MClass */;
5412 val
* var31
/* : MClassType */;
5413 val
* var33
/* : MClassType */;
5414 val
* var34
/* : MClassType */;
5415 val
* var36
/* : MClassType */;
5416 short int var37
/* : Bool */;
5417 short int var39
/* : Bool */;
5418 short int var41
/* : Bool */;
5419 val
* var42
/* : MModule */;
5420 val
* var44
/* : MModule */;
5421 val
* var45
/* : POSetElement[MModule] */;
5422 val
* var47
/* : POSetElement[MModule] */;
5423 val
* var48
/* : MModule */;
5424 val
* var50
/* : MModule */;
5425 short int var51
/* : Bool */;
5426 short int var52
/* : Bool */;
5427 val
* var53
/* : MClassType */;
5428 val
* var55
/* : MClassType */;
5429 val
* var56
/* : MClassType */;
5430 val
* var58
/* : MClassType */;
5431 short int var59
/* : Bool */;
5432 short int var_60
/* var : Bool */;
5433 val
* var61
/* : MClassType */;
5434 val
* var63
/* : MClassType */;
5435 val
* var64
/* : MClassType */;
5436 val
* var66
/* : MClassType */;
5437 short int var67
/* : Bool */;
5438 val
* var_other69
/* var other: nullable Object */;
5439 short int var70
/* : Bool */;
5440 short int var71
/* : Bool */;
5441 short int var72
/* : Bool */;
5442 val
* var73
/* : Sys */;
5443 val
* var74
/* : NativeArray[String] */;
5444 static val
* varonce
;
5445 static val
* varonce75
;
5446 val
* var76
/* : String */;
5447 char* var77
/* : NativeString */;
5448 val
* var78
/* : String */;
5449 static val
* varonce79
;
5450 val
* var80
/* : String */;
5451 char* var81
/* : NativeString */;
5452 val
* var82
/* : String */;
5453 val
* var83
/* : String */;
5454 val
* var84
/* : String */;
5455 /* Covariant cast for argument 1 (candidates) <p1:Array[MPropDef]> isa Array[MPROPDEF] */
5456 /* <p1:Array[MPropDef]> isa Array[MPROPDEF] */
5457 type_struct
= self
->type
->resolution_table
->types
[COLOR_core__Array__nitc__model__MProperty__MPROPDEF
];
5458 cltype
= type_struct
->color
;
5459 idtype
= type_struct
->id
;
5460 if(cltype
>= p1
->type
->table_size
) {
5463 var1
= p1
->type
->type_table
[cltype
] == idtype
;
5465 if (unlikely(!var1
)) {
5466 var_class_name
= p1
== NULL ?
"null" : p1
->type
->name
;
5467 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "Array[MPROPDEF]", var_class_name
);
5468 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2070);
5472 var_candidates
= p1
;
5473 var2
= NEW_core__Array(self
->type
->resolution_table
->types
[COLOR_core__Array__nitc__model__MProperty__MPROPDEF
]);
5475 core___core__Array___core__kernel__Object__init(var2
); /* Direct call array#Array#init on <var2:Array[MPropDef]>*/
5478 var_
= var_candidates
;
5480 var3
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_
);
5485 var5
= ((short int(*)(val
* self
))((((long)var_4
&3)?class_info
[((long)var_4
&3)]:var_4
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_4
); /* is_ok on <var_4:IndexedIterator[MPropDef]>*/
5492 var6
= ((val
*(*)(val
* self
))((((long)var_4
&3)?class_info
[((long)var_4
&3)]:var_4
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_4
); /* item on <var_4:IndexedIterator[MPropDef]>*/
5496 { /* Inline model#MPropDef#mclassdef (var_pd1) on <var_pd1:MPropDef> */
5497 var9
= var_pd1
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_pd1:MPropDef> */
5498 if (unlikely(var9
== NULL
)) {
5499 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5500 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
5509 { /* Inline model#MClassDef#mclass (var_cd1) on <var_cd1:MClassDef> */
5510 var12
= var_cd1
->attrs
[COLOR_nitc__model__MClassDef___mclass
].val
; /* _mclass on <var_cd1:MClassDef> */
5511 if (unlikely(var12
== NULL
)) {
5512 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
5513 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 576);
5517 RET_LABEL11
:(void)0;
5522 var_13
= var_candidates
;
5524 var14
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_13
);
5529 var16
= ((short int(*)(val
* self
))((((long)var_15
&3)?class_info
[((long)var_15
&3)]:var_15
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_15
); /* is_ok on <var_15:IndexedIterator[MPropDef]>*/
5536 var18
= ((val
*(*)(val
* self
))((((long)var_15
&3)?class_info
[((long)var_15
&3)]:var_15
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_15
); /* item on <var_15:IndexedIterator[MPropDef]>*/
5540 { /* Inline kernel#Object#== (var_pd2,var_pd1) on <var_pd2:MPropDef> */
5541 var_other
= var_pd1
;
5543 { /* Inline kernel#Object#is_same_instance (var_pd2,var_other) on <var_pd2:MPropDef> */
5544 var23
= var_pd2
== var_other
;
5547 RET_LABEL22
:(void)0;
5552 RET_LABEL20
:(void)0;
5560 { /* Inline model#MPropDef#mclassdef (var_pd2) on <var_pd2:MPropDef> */
5561 var27
= var_pd2
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_pd2:MPropDef> */
5562 if (unlikely(var27
== NULL
)) {
5563 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
5564 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
5568 RET_LABEL26
:(void)0;
5573 { /* Inline model#MClassDef#mclass (var_cd2) on <var_cd2:MClassDef> */
5574 var30
= var_cd2
->attrs
[COLOR_nitc__model__MClassDef___mclass
].val
; /* _mclass on <var_cd2:MClassDef> */
5575 if (unlikely(var30
== NULL
)) {
5576 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
5577 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 576);
5581 RET_LABEL29
:(void)0;
5586 { /* Inline model#MClass#mclass_type (var_c2) on <var_c2:MClass> */
5587 var33
= var_c2
->attrs
[COLOR_nitc__model__MClass___mclass_type
].val
; /* _mclass_type on <var_c2:MClass> */
5588 if (unlikely(var33
== NULL
)) {
5589 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass_type");
5590 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 507);
5594 RET_LABEL32
:(void)0;
5598 { /* Inline model#MClass#mclass_type (var_c1) on <var_c1:MClass> */
5599 var36
= var_c1
->attrs
[COLOR_nitc__model__MClass___mclass_type
].val
; /* _mclass_type on <var_c1:MClass> */
5600 if (unlikely(var36
== NULL
)) {
5601 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass_type");
5602 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 507);
5606 RET_LABEL35
:(void)0;
5610 { /* Inline kernel#Object#== (var31,var34) on <var31:MClassType> */
5613 { /* Inline kernel#Object#is_same_instance (var31,var_other) on <var31:MClassType> */
5614 var41
= var31
== var_other
;
5617 RET_LABEL40
:(void)0;
5622 RET_LABEL38
:(void)0;
5627 { /* Inline model#MClassDef#mmodule (var_cd2) on <var_cd2:MClassDef> */
5628 var44
= var_cd2
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var_cd2:MClassDef> */
5629 if (unlikely(var44
== NULL
)) {
5630 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
5631 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
5635 RET_LABEL43
:(void)0;
5639 { /* Inline mmodule#MModule#in_importation (var42) on <var42:MModule> */
5640 var47
= var42
->attrs
[COLOR_nitc__mmodule__MModule___in_importation
].val
; /* _in_importation on <var42:MModule> */
5641 if (unlikely(var47
== NULL
)) {
5642 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _in_importation");
5643 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__mmodule
, 104);
5647 RET_LABEL46
:(void)0;
5651 { /* Inline model#MClassDef#mmodule (var_cd1) on <var_cd1:MClassDef> */
5652 var50
= var_cd1
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var_cd1:MClassDef> */
5653 if (unlikely(var50
== NULL
)) {
5654 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
5655 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
5659 RET_LABEL49
:(void)0;
5663 var51
= poset___poset__POSetElement____60d(var45
, var48
);
5672 { /* Inline model#MClassDef#bound_mtype (var_cd2) on <var_cd2:MClassDef> */
5673 var55
= var_cd2
->attrs
[COLOR_nitc__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var_cd2:MClassDef> */
5674 if (unlikely(var55
== NULL
)) {
5675 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
5676 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 579);
5680 RET_LABEL54
:(void)0;
5684 { /* Inline model#MClassDef#bound_mtype (var_cd1) on <var_cd1:MClassDef> */
5685 var58
= var_cd1
->attrs
[COLOR_nitc__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var_cd1:MClassDef> */
5686 if (unlikely(var58
== NULL
)) {
5687 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
5688 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 579);
5692 RET_LABEL57
:(void)0;
5696 var59
= nitc___nitc__MType___is_subtype(var53
, var_mmodule
, ((val
*)NULL
), var56
);
5701 { /* Inline model#MClassDef#bound_mtype (var_cd2) on <var_cd2:MClassDef> */
5702 var63
= var_cd2
->attrs
[COLOR_nitc__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var_cd2:MClassDef> */
5703 if (unlikely(var63
== NULL
)) {
5704 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
5705 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 579);
5709 RET_LABEL62
:(void)0;
5713 { /* Inline model#MClassDef#bound_mtype (var_cd1) on <var_cd1:MClassDef> */
5714 var66
= var_cd1
->attrs
[COLOR_nitc__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var_cd1:MClassDef> */
5715 if (unlikely(var66
== NULL
)) {
5716 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
5717 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 579);
5721 RET_LABEL65
:(void)0;
5725 { /* Inline kernel#Object#!= (var61,var64) on <var61:MClassType> */
5726 var_other69
= var64
;
5728 var70
= ((short int(*)(val
* self
, val
* p0
))(var61
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var61
, var_other69
); /* == on <var61:MClassType>*/
5733 RET_LABEL68
:(void)0;
5746 BREAK_label24
: (void)0;
5748 ((void(*)(val
* self
))((((long)var_15
&3)?class_info
[((long)var_15
&3)]:var_15
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_15
); /* next on <var_15:IndexedIterator[MPropDef]>*/
5751 BREAK_label17
: (void)0;
5753 ((void(*)(val
* self
))((((long)var_15
&3)?class_info
[((long)var_15
&3)]:var_15
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_15
); /* finish on <var_15:IndexedIterator[MPropDef]>*/
5757 core___core__Array___core__abstract_collection__SimpleCollection__add(var_res
, var_pd1
); /* Direct call array#Array#add on <var_res:Array[MPropDef]>*/
5762 ((void(*)(val
* self
))((((long)var_4
&3)?class_info
[((long)var_4
&3)]:var_4
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_4
); /* next on <var_4:IndexedIterator[MPropDef]>*/
5765 BREAK_label
: (void)0;
5767 ((void(*)(val
* self
))((((long)var_4
&3)?class_info
[((long)var_4
&3)]:var_4
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_4
); /* finish on <var_4:IndexedIterator[MPropDef]>*/
5770 var72
= core___core__AbstractArrayRead___core__abstract_collection__Collection__is_empty(var_res
);
5774 if (unlikely(varonce
==NULL
)) {
5775 var74
= NEW_core__NativeArray(2l, &type_core__NativeArray__core__String
);
5776 if (likely(varonce75
!=NULL
)) {
5779 var77
= "All lost! ";
5780 var78
= core__flat___NativeString___to_s_full(var77
, 10l, 10l);
5784 ((struct instance_core__NativeArray
*)var74
)->values
[0]=var76
;
5789 if (likely(varonce79
!=NULL
)) {
5793 var82
= core__flat___NativeString___to_s_full(var81
, 2l, 2l);
5798 var83
= core__abstract_text___Collection___join(var_candidates
, var80
);
5800 ((struct instance_core__NativeArray
*)var74
)->values
[1]=var83
;
5802 var84
= ((val
*(*)(val
* self
))(var74
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var74
); /* native_to_s on <var74:NativeArray[String]>*/
5806 core__file___Sys___print(var73
, var84
); /* Direct call file#Sys#print on <var73:Sys>*/
5815 /* method model#MProperty#lookup_first_definition for (self: MProperty, MModule, MType): MPropDef */
5816 val
* nitc___nitc__MProperty___lookup_first_definition(val
* self
, val
* p0
, val
* p1
) {
5817 val
* var
/* : MPropDef */;
5818 val
* var_mmodule
/* var mmodule: MModule */;
5819 val
* var_mtype
/* var mtype: MType */;
5820 val
* var1
/* : Array[MPropDef] */;
5821 val
* var2
/* : nullable Object */;
5825 var1
= nitc___nitc__MProperty___lookup_all_definitions(self
, var_mmodule
, var_mtype
);
5828 var2
= core___core__SequenceRead___Collection__first(var1
);
5835 /* method model#MProperty#lookup_all_definitions for (self: MProperty, MModule, MType): Array[MPropDef] */
5836 val
* nitc___nitc__MProperty___lookup_all_definitions(val
* self
, val
* p0
, val
* p1
) {
5837 val
* var
/* : Array[MPropDef] */;
5838 val
* var_mmodule
/* var mmodule: MModule */;
5839 val
* var_mtype
/* var mtype: MType */;
5840 val
* var1
/* : MType */;
5841 val
* var2
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5842 val
* var4
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5843 val
* var5
/* : nullable Object */;
5844 val
* var_cache
/* var cache: nullable Array[MPropDef] */;
5845 short int var6
/* : Bool */;
5846 short int var7
/* : Bool */;
5847 val
* var_other
/* var other: nullable Object */;
5848 short int var9
/* : Bool */;
5849 short int var10
/* : Bool */;
5850 short int var11
/* : Bool */;
5851 short int var12
/* : Bool */;
5852 short int var13
/* : Bool */;
5853 val
* var14
/* : Array[MPropDef] */;
5854 val
* var_candidates
/* var candidates: Array[MPropDef] */;
5855 val
* var15
/* : Array[MPropDef] */;
5856 val
* var17
/* : Array[MPropDef] */;
5857 val
* var_
/* var : Array[MPropDef] */;
5858 val
* var18
/* : IndexedIterator[nullable Object] */;
5859 val
* var_19
/* var : IndexedIterator[MPropDef] */;
5860 short int var20
/* : Bool */;
5861 val
* var21
/* : nullable Object */;
5862 val
* var_mpropdef
/* var mpropdef: MPropDef */;
5863 val
* var22
/* : POSetElement[MModule] */;
5864 val
* var24
/* : POSetElement[MModule] */;
5865 val
* var25
/* : MClassDef */;
5866 val
* var27
/* : MClassDef */;
5867 val
* var28
/* : MModule */;
5868 val
* var30
/* : MModule */;
5869 short int var31
/* : Bool */;
5870 short int var32
/* : Bool */;
5871 val
* var34
/* : MClassDef */;
5872 val
* var36
/* : MClassDef */;
5873 val
* var37
/* : MClassType */;
5874 val
* var39
/* : MClassType */;
5875 short int var40
/* : Bool */;
5876 short int var41
/* : Bool */;
5877 long var42
/* : Int */;
5878 long var44
/* : Int */;
5879 short int var45
/* : Bool */;
5880 short int var47
/* : Bool */;
5883 const char* var_class_name
;
5884 short int var48
/* : Bool */;
5885 val
* var49
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5886 val
* var51
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5887 val
* var52
/* : Array[nullable Object] */;
5888 val
* var53
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5889 val
* var55
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
5893 var1
= ((val
*(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nitc__model__MType__undecorate
]))(var_mtype
); /* undecorate on <var_mtype:MType>*/
5897 { /* Inline model#MProperty#lookup_all_definitions_cache (self) on <self:MProperty> */
5898 var4
= self
->attrs
[COLOR_nitc__model__MProperty___lookup_all_definitions_cache
].val
; /* _lookup_all_definitions_cache on <self:MProperty> */
5899 if (unlikely(var4
== NULL
)) {
5900 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_all_definitions_cache");
5901 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2158);
5909 var5
= more_collections___more_collections__HashMap2____91d_93d(var2
, var_mmodule
, var_mtype
);
5912 if (var_cache
== NULL
) {
5913 var6
= 0; /* is null */
5915 var6
= 1; /* arg is null and recv is not */
5918 { /* Inline kernel#Object#!= (var_cache,((val*)NULL)) on <var_cache:nullable Array[MPropDef]> */
5919 var_other
= ((val
*)NULL
);
5921 var9
= ((short int(*)(val
* self
, val
* p0
))(var_cache
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_cache
, var_other
); /* == on <var_cache:nullable Array[MPropDef](Array[MPropDef])>*/
5936 var11
= ((short int(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nitc__model__MType__need_anchor
]))(var_mtype
); /* need_anchor on <var_mtype:MType>*/
5939 if (unlikely(!var12
)) {
5940 PRINT_ERROR("Runtime error: %s", "Assert failed");
5941 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2132);
5945 var13
= nitc___nitc__MType___has_mproperty(var_mtype
, var_mmodule
, self
);
5947 if (unlikely(!var13
)) {
5948 PRINT_ERROR("Runtime error: %s", "Assert failed");
5949 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2133);
5952 var14
= NEW_core__Array(self
->type
->resolution_table
->types
[COLOR_core__Array__nitc__model__MProperty__MPROPDEF
]);
5954 core___core__Array___core__kernel__Object__init(var14
); /* Direct call array#Array#init on <var14:Array[MPropDef]>*/
5956 var_candidates
= var14
;
5958 { /* Inline model#MProperty#mpropdefs (self) on <self:MProperty> */
5959 var17
= self
->attrs
[COLOR_nitc__model__MProperty___mpropdefs
].val
; /* _mpropdefs on <self:MProperty> */
5960 if (unlikely(var17
== NULL
)) {
5961 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mpropdefs");
5962 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1981);
5966 RET_LABEL16
:(void)0;
5971 var18
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_
);
5976 var20
= ((short int(*)(val
* self
))((((long)var_19
&3)?class_info
[((long)var_19
&3)]:var_19
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_19
); /* is_ok on <var_19:IndexedIterator[MPropDef]>*/
5983 var21
= ((val
*(*)(val
* self
))((((long)var_19
&3)?class_info
[((long)var_19
&3)]:var_19
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_19
); /* item on <var_19:IndexedIterator[MPropDef]>*/
5985 var_mpropdef
= var21
;
5987 { /* Inline mmodule#MModule#in_importation (var_mmodule) on <var_mmodule:MModule> */
5988 var24
= var_mmodule
->attrs
[COLOR_nitc__mmodule__MModule___in_importation
].val
; /* _in_importation on <var_mmodule:MModule> */
5989 if (unlikely(var24
== NULL
)) {
5990 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _in_importation");
5991 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__mmodule
, 104);
5995 RET_LABEL23
:(void)0;
5999 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
6000 var27
= var_mpropdef
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
6001 if (unlikely(var27
== NULL
)) {
6002 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6003 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
6007 RET_LABEL26
:(void)0;
6011 { /* Inline model#MClassDef#mmodule (var25) on <var25:MClassDef> */
6012 var30
= var25
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var25:MClassDef> */
6013 if (unlikely(var30
== NULL
)) {
6014 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
6015 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
6019 RET_LABEL29
:(void)0;
6023 var31
= poset___poset__POSetElement____60d_61d(var22
, var28
);
6031 { /* Inline model#MPropDef#mclassdef (var_mpropdef) on <var_mpropdef:MPropDef> */
6032 var36
= var_mpropdef
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <var_mpropdef:MPropDef> */
6033 if (unlikely(var36
== NULL
)) {
6034 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6035 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
6039 RET_LABEL35
:(void)0;
6043 { /* Inline model#MClassDef#bound_mtype (var34) on <var34:MClassDef> */
6044 var39
= var34
->attrs
[COLOR_nitc__model__MClassDef___bound_mtype
].val
; /* _bound_mtype on <var34:MClassDef> */
6045 if (unlikely(var39
== NULL
)) {
6046 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _bound_mtype");
6047 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 579);
6051 RET_LABEL38
:(void)0;
6055 var40
= nitc___nitc__MType___is_subtype(var_mtype
, var_mmodule
, ((val
*)NULL
), var37
);
6063 core___core__Array___core__abstract_collection__SimpleCollection__add(var_candidates
, var_mpropdef
); /* Direct call array#Array#add on <var_candidates:Array[MPropDef]>*/
6065 BREAK_label33
: (void)0;
6067 ((void(*)(val
* self
))((((long)var_19
&3)?class_info
[((long)var_19
&3)]:var_19
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_19
); /* next on <var_19:IndexedIterator[MPropDef]>*/
6070 BREAK_label
: (void)0;
6072 ((void(*)(val
* self
))((((long)var_19
&3)?class_info
[((long)var_19
&3)]:var_19
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_19
); /* finish on <var_19:IndexedIterator[MPropDef]>*/
6075 { /* Inline array#AbstractArrayRead#length (var_candidates) on <var_candidates:Array[MPropDef]> */
6076 var44
= var_candidates
->attrs
[COLOR_core__array__AbstractArrayRead___length
].l
; /* _length on <var_candidates:Array[MPropDef]> */
6078 RET_LABEL43
:(void)0;
6082 { /* Inline kernel#Int#<= (var42,1l) on <var42:Int> */
6083 /* Covariant cast for argument 0 (i) <1l:Int> isa OTHER */
6084 /* <1l:Int> isa OTHER */
6085 var47
= 1; /* easy <1l:Int> isa OTHER*/
6086 if (unlikely(!var47
)) {
6087 var_class_name
= type_core__Int
.name
;
6088 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
6089 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 727);
6092 var48
= var42
<= 1l;
6095 RET_LABEL46
:(void)0;
6100 { /* Inline model#MProperty#lookup_all_definitions_cache (self) on <self:MProperty> */
6101 var51
= self
->attrs
[COLOR_nitc__model__MProperty___lookup_all_definitions_cache
].val
; /* _lookup_all_definitions_cache on <self:MProperty> */
6102 if (unlikely(var51
== NULL
)) {
6103 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_all_definitions_cache");
6104 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2158);
6108 RET_LABEL50
:(void)0;
6112 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]]>*/
6114 var
= var_candidates
;
6119 nitc__model___MModule___linearize_mpropdefs(var_mmodule
, var_candidates
); /* Direct call model#MModule#linearize_mpropdefs on <var_mmodule:MModule>*/
6122 var52
= core___core__AbstractArrayRead___reversed(var_candidates
);
6124 var_candidates
= var52
;
6126 { /* Inline model#MProperty#lookup_all_definitions_cache (self) on <self:MProperty> */
6127 var55
= self
->attrs
[COLOR_nitc__model__MProperty___lookup_all_definitions_cache
].val
; /* _lookup_all_definitions_cache on <self:MProperty> */
6128 if (unlikely(var55
== NULL
)) {
6129 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_all_definitions_cache");
6130 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2158);
6134 RET_LABEL54
:(void)0;
6138 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]]>*/
6140 var
= var_candidates
;
6145 /* method model#MProperty#lookup_all_definitions_cache for (self: MProperty): HashMap2[MModule, MType, Array[MPropDef]] */
6146 val
* nitc___nitc__MProperty___lookup_all_definitions_cache(val
* self
) {
6147 val
* var
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
6148 val
* var1
/* : HashMap2[MModule, MType, Array[MPropDef]] */;
6149 var1
= self
->attrs
[COLOR_nitc__model__MProperty___lookup_all_definitions_cache
].val
; /* _lookup_all_definitions_cache on <self:MProperty> */
6150 if (unlikely(var1
== NULL
)) {
6151 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _lookup_all_definitions_cache");
6152 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2158);
6159 /* method model#MMethod#is_toplevel for (self: MMethod): Bool */
6160 short int nitc___nitc__MMethod___is_toplevel(val
* self
) {
6161 short int var
/* : Bool */;
6162 short int var1
/* : Bool */;
6163 var1
= self
->attrs
[COLOR_nitc__model__MMethod___is_toplevel
].s
; /* _is_toplevel on <self:MMethod> */
6168 /* method model#MMethod#is_toplevel= for (self: MMethod, Bool) */
6169 void nitc___nitc__MMethod___is_toplevel_61d(val
* self
, short int p0
) {
6170 self
->attrs
[COLOR_nitc__model__MMethod___is_toplevel
].s
= p0
; /* _is_toplevel on <self:MMethod> */
6173 /* method model#MMethod#is_init for (self: MMethod): Bool */
6174 short int nitc___nitc__MMethod___is_init(val
* self
) {
6175 short int var
/* : Bool */;
6176 short int var1
/* : Bool */;
6177 var1
= self
->attrs
[COLOR_nitc__model__MMethod___is_init
].s
; /* _is_init on <self:MMethod> */
6182 /* method model#MMethod#is_init= for (self: MMethod, Bool) */
6183 void nitc___nitc__MMethod___is_init_61d(val
* self
, short int p0
) {
6184 self
->attrs
[COLOR_nitc__model__MMethod___is_init
].s
= p0
; /* _is_init on <self:MMethod> */
6187 /* method model#MMethod#is_root_init for (self: MMethod): Bool */
6188 short int nitc___nitc__MMethod___is_root_init(val
* self
) {
6189 short int var
/* : Bool */;
6190 short int var1
/* : Bool */;
6191 var1
= self
->attrs
[COLOR_nitc__model__MMethod___is_root_init
].s
; /* _is_root_init on <self:MMethod> */
6196 /* method model#MMethod#is_root_init= for (self: MMethod, Bool) */
6197 void nitc___nitc__MMethod___is_root_init_61d(val
* self
, short int p0
) {
6198 self
->attrs
[COLOR_nitc__model__MMethod___is_root_init
].s
= p0
; /* _is_root_init on <self:MMethod> */
6201 /* method model#MMethod#is_new for (self: MMethod): Bool */
6202 short int nitc___nitc__MMethod___is_new(val
* self
) {
6203 short int var
/* : Bool */;
6204 short int var1
/* : Bool */;
6205 var1
= self
->attrs
[COLOR_nitc__model__MMethod___is_new
].s
; /* _is_new on <self:MMethod> */
6210 /* method model#MMethod#is_new= for (self: MMethod, Bool) */
6211 void nitc___nitc__MMethod___is_new_61d(val
* self
, short int p0
) {
6212 self
->attrs
[COLOR_nitc__model__MMethod___is_new
].s
= p0
; /* _is_new on <self:MMethod> */
6215 /* method model#MMethod#is_init_for for (self: MMethod, MClass): Bool */
6216 short int nitc___nitc__MMethod___is_init_for(val
* self
, val
* p0
) {
6217 short int var
/* : Bool */;
6218 val
* var_mclass
/* var mclass: MClass */;
6219 short int var1
/* : Bool */;
6220 short int var3
/* : Bool */;
6223 { /* Inline model#MMethod#is_init (self) on <self:MMethod> */
6224 var3
= self
->attrs
[COLOR_nitc__model__MMethod___is_init
].s
; /* _is_init on <self:MMethod> */
6234 /* method model#MMethod#is_null_safe for (self: MMethod): Bool */
6235 short int nitc___nitc__MMethod___is_null_safe(val
* self
) {
6236 short int var
/* : Bool */;
6237 short int var1
/* : Bool */;
6238 short int var2
/* : Bool */;
6239 val
* var3
/* : String */;
6240 val
* var5
/* : String */;
6241 static val
* varonce
;
6242 val
* var6
/* : String */;
6243 char* var7
/* : NativeString */;
6244 val
* var8
/* : String */;
6245 short int var9
/* : Bool */;
6246 short int var_
/* var : Bool */;
6247 val
* var10
/* : String */;
6248 val
* var12
/* : String */;
6249 static val
* varonce13
;
6250 val
* var14
/* : String */;
6251 char* var15
/* : NativeString */;
6252 val
* var16
/* : String */;
6253 short int var17
/* : Bool */;
6254 short int var_18
/* var : Bool */;
6255 val
* var19
/* : String */;
6256 val
* var21
/* : String */;
6257 static val
* varonce22
;
6258 val
* var23
/* : String */;
6259 char* var24
/* : NativeString */;
6260 val
* var25
/* : String */;
6261 short int var26
/* : Bool */;
6263 { /* Inline model#MProperty#name (self) on <self:MMethod> */
6264 var5
= self
->attrs
[COLOR_nitc__model__MProperty___name
].val
; /* _name on <self:MMethod> */
6265 if (unlikely(var5
== NULL
)) {
6266 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
6267 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1951);
6274 if (likely(varonce
!=NULL
)) {
6278 var8
= core__flat___NativeString___to_s_full(var7
, 2l, 2l);
6283 var9
= ((short int(*)(val
* self
, val
* p0
))(var3
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var3
, var6
); /* == on <var3:String>*/
6290 { /* Inline model#MProperty#name (self) on <self:MMethod> */
6291 var12
= self
->attrs
[COLOR_nitc__model__MProperty___name
].val
; /* _name on <self:MMethod> */
6292 if (unlikely(var12
== NULL
)) {
6293 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
6294 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1951);
6298 RET_LABEL11
:(void)0;
6301 if (likely(varonce13
!=NULL
)) {
6305 var16
= core__flat___NativeString___to_s_full(var15
, 2l, 2l);
6310 var17
= ((short int(*)(val
* self
, val
* p0
))(var10
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var10
, var14
); /* == on <var10:String>*/
6319 { /* Inline model#MProperty#name (self) on <self:MMethod> */
6320 var21
= self
->attrs
[COLOR_nitc__model__MProperty___name
].val
; /* _name on <self:MMethod> */
6321 if (unlikely(var21
== NULL
)) {
6322 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
6323 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1951);
6327 RET_LABEL20
:(void)0;
6330 if (likely(varonce22
!=NULL
)) {
6333 var24
= "is_same_instance";
6334 var25
= core__flat___NativeString___to_s_full(var24
, 16l, 16l);
6339 var26
= ((short int(*)(val
* self
, val
* p0
))(var19
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var19
, var23
); /* == on <var19:String>*/
6348 /* method model#MVirtualTypeProp#mvirtualtype for (self: MVirtualTypeProp): MVirtualType */
6349 val
* nitc___nitc__MVirtualTypeProp___mvirtualtype(val
* self
) {
6350 val
* var
/* : MVirtualType */;
6351 val
* var1
/* : MVirtualType */;
6352 var1
= self
->attrs
[COLOR_nitc__model__MVirtualTypeProp___mvirtualtype
].val
; /* _mvirtualtype on <self:MVirtualTypeProp> */
6353 if (unlikely(var1
== NULL
)) {
6354 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mvirtualtype");
6355 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2209);
6362 /* method model#MPropDef#mclassdef for (self: MPropDef): MClassDef */
6363 val
* nitc___nitc__MPropDef___mclassdef(val
* self
) {
6364 val
* var
/* : MClassDef */;
6365 val
* var1
/* : MClassDef */;
6366 var1
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
6367 if (unlikely(var1
== NULL
)) {
6368 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6369 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
6376 /* method model#MPropDef#mclassdef= for (self: MPropDef, MClassDef) */
6377 void nitc___nitc__MPropDef___mclassdef_61d(val
* self
, val
* p0
) {
6378 self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
= p0
; /* _mclassdef on <self:MPropDef> */
6381 /* method model#MPropDef#mproperty for (self: MPropDef): MProperty */
6382 val
* nitc___nitc__MPropDef___mproperty(val
* self
) {
6383 val
* var
/* : MProperty */;
6384 val
* var1
/* : MProperty */;
6385 var1
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6386 if (unlikely(var1
== NULL
)) {
6387 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6388 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
6395 /* method model#MPropDef#mproperty= for (self: MPropDef, MProperty) */
6396 void nitc___nitc__MPropDef___mproperty_61d(val
* self
, val
* p0
) {
6397 short int var
/* : Bool */;
6400 const struct type
* type_struct
;
6401 const char* var_class_name
;
6402 /* Covariant cast for argument 0 (mproperty) <p0:MProperty> isa MPROPERTY */
6403 /* <p0:MProperty> isa MPROPERTY */
6404 type_struct
= self
->type
->resolution_table
->types
[COLOR_nitc__model__MPropDef__MPROPERTY
];
6405 cltype
= type_struct
->color
;
6406 idtype
= type_struct
->id
;
6407 if(cltype
>= p0
->type
->table_size
) {
6410 var
= p0
->type
->type_table
[cltype
] == idtype
;
6412 if (unlikely(!var
)) {
6413 var_class_name
= p0
== NULL ?
"null" : p0
->type
->name
;
6414 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "MPROPERTY", var_class_name
);
6415 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
6418 self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
= p0
; /* _mproperty on <self:MPropDef> */
6421 /* method model#MPropDef#location for (self: MPropDef): Location */
6422 val
* nitc___nitc__MPropDef___location(val
* self
) {
6423 val
* var
/* : Location */;
6424 val
* var1
/* : Location */;
6425 var1
= self
->attrs
[COLOR_nitc__model__MPropDef___location
].val
; /* _location on <self:MPropDef> */
6426 if (unlikely(var1
== NULL
)) {
6427 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _location");
6428 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2233);
6435 /* method model#MPropDef#location= for (self: MPropDef, Location) */
6436 void nitc___nitc__MPropDef___location_61d(val
* self
, val
* p0
) {
6437 self
->attrs
[COLOR_nitc__model__MPropDef___location
].val
= p0
; /* _location on <self:MPropDef> */
6440 /* method model#MPropDef#init for (self: MPropDef) */
6441 void nitc___nitc__MPropDef___core__kernel__Object__init(val
* self
) {
6442 val
* var
/* : MClassDef */;
6443 val
* var2
/* : MClassDef */;
6444 val
* var3
/* : Array[MPropDef] */;
6445 val
* var5
/* : Array[MPropDef] */;
6446 val
* var6
/* : MProperty */;
6447 val
* var8
/* : MProperty */;
6448 val
* var9
/* : Array[MPropDef] */;
6449 val
* var11
/* : Array[MPropDef] */;
6450 val
* var12
/* : MProperty */;
6451 val
* var14
/* : MProperty */;
6452 val
* var15
/* : MClassDef */;
6453 val
* var17
/* : MClassDef */;
6454 val
* var18
/* : MClassDef */;
6455 val
* var20
/* : MClassDef */;
6456 short int var21
/* : Bool */;
6457 val
* var_other
/* var other: nullable Object */;
6458 short int var23
/* : Bool */;
6459 short int var25
/* : Bool */;
6460 val
* var26
/* : MProperty */;
6461 val
* var28
/* : MProperty */;
6462 short int var29
/* : Bool */;
6463 short int var30
/* : Bool */;
6464 val
* var31
/* : MProperty */;
6465 val
* var33
/* : MProperty */;
6466 short int var35
/* : Bool */;
6469 const struct type
* type_struct
;
6470 const char* var_class_name
;
6471 val
* var36
/* : NativeArray[String] */;
6472 static val
* varonce
;
6473 static val
* varonce37
;
6474 val
* var38
/* : String */;
6475 char* var39
/* : NativeString */;
6476 val
* var40
/* : String */;
6477 val
* var41
/* : MClassDef */;
6478 val
* var43
/* : MClassDef */;
6479 val
* var44
/* : String */;
6480 val
* var45
/* : MProperty */;
6481 val
* var47
/* : MProperty */;
6482 val
* var48
/* : String */;
6483 val
* var49
/* : String */;
6485 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nitc___nitc__MPropDef___core__kernel__Object__init
]))(self
); /* init on <self:MPropDef>*/
6488 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
6489 var2
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
6490 if (unlikely(var2
== NULL
)) {
6491 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6492 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
6500 { /* Inline model#MClassDef#mpropdefs (var) on <var:MClassDef> */
6501 var5
= var
->attrs
[COLOR_nitc__model__MClassDef___mpropdefs
].val
; /* _mpropdefs on <var:MClassDef> */
6502 if (unlikely(var5
== NULL
)) {
6503 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mpropdefs");
6504 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 707);
6512 core___core__Array___core__abstract_collection__SimpleCollection__add(var3
, self
); /* Direct call array#Array#add on <var3:Array[MPropDef]>*/
6515 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6516 var8
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6517 if (unlikely(var8
== NULL
)) {
6518 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6519 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
6527 { /* Inline model#MProperty#mpropdefs (var6) on <var6:MProperty> */
6528 var11
= var6
->attrs
[COLOR_nitc__model__MProperty___mpropdefs
].val
; /* _mpropdefs on <var6:MProperty> */
6529 if (unlikely(var11
== NULL
)) {
6530 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mpropdefs");
6531 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1981);
6535 RET_LABEL10
:(void)0;
6539 core___core__Array___core__abstract_collection__SimpleCollection__add(var9
, self
); /* Direct call array#Array#add on <var9:Array[MPropDef]>*/
6542 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6543 var14
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6544 if (unlikely(var14
== NULL
)) {
6545 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6546 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
6550 RET_LABEL13
:(void)0;
6554 { /* Inline model#MProperty#intro_mclassdef (var12) on <var12:MProperty> */
6555 var17
= var12
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var12:MProperty> */
6556 if (unlikely(var17
== NULL
)) {
6557 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
6558 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
6562 RET_LABEL16
:(void)0;
6566 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
6567 var20
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
6568 if (unlikely(var20
== NULL
)) {
6569 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6570 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
6574 RET_LABEL19
:(void)0;
6578 { /* Inline kernel#Object#== (var15,var18) on <var15:MClassDef> */
6581 { /* Inline kernel#Object#is_same_instance (var15,var_other) on <var15:MClassDef> */
6582 var25
= var15
== var_other
;
6585 RET_LABEL24
:(void)0;
6590 RET_LABEL22
:(void)0;
6595 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6596 var28
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6597 if (unlikely(var28
== NULL
)) {
6598 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6599 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
6603 RET_LABEL27
:(void)0;
6606 var29
= var26
->attrs
[COLOR_nitc__model__MProperty___intro
].val
!= NULL
; /* _intro on <var26:MProperty> */
6608 if (unlikely(!var30
)) {
6609 PRINT_ERROR("Runtime error: %s", "Assert failed");
6610 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2241);
6614 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6615 var33
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6616 if (unlikely(var33
== NULL
)) {
6617 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6618 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
6622 RET_LABEL32
:(void)0;
6626 { /* Inline model#MProperty#intro= (var31,self) on <var31:MProperty> */
6627 /* Covariant cast for argument 0 (intro) <self:MPropDef> isa MPROPDEF */
6628 /* <self:MPropDef> isa MPROPDEF */
6629 type_struct
= var31
->type
->resolution_table
->types
[COLOR_nitc__model__MProperty__MPROPDEF
];
6630 cltype
= type_struct
->color
;
6631 idtype
= type_struct
->id
;
6632 if(cltype
>= self
->type
->table_size
) {
6635 var35
= self
->type
->type_table
[cltype
] == idtype
;
6637 if (unlikely(!var35
)) {
6638 var_class_name
= self
== NULL ?
"null" : self
->type
->name
;
6639 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "MPROPDEF", var_class_name
);
6640 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1986);
6643 var31
->attrs
[COLOR_nitc__model__MProperty___intro
].val
= self
; /* _intro on <var31:MProperty> */
6644 RET_LABEL34
:(void)0;
6649 if (unlikely(varonce
==NULL
)) {
6650 var36
= NEW_core__NativeArray(3l, &type_core__NativeArray__core__String
);
6651 if (likely(varonce37
!=NULL
)) {
6655 var40
= core__flat___NativeString___to_s_full(var39
, 1l, 1l);
6659 ((struct instance_core__NativeArray
*)var36
)->values
[1]=var38
;
6665 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
6666 var43
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
6667 if (unlikely(var43
== NULL
)) {
6668 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6669 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
6673 RET_LABEL42
:(void)0;
6677 var44
= ((val
*(*)(val
* self
))(var41
->class->vft
[COLOR_core__abstract_text__Object__to_s
]))(var41
); /* to_s on <var41:MClassDef>*/
6679 ((struct instance_core__NativeArray
*)var36
)->values
[0]=var44
;
6681 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6682 var47
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6683 if (unlikely(var47
== NULL
)) {
6684 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6685 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
6689 RET_LABEL46
:(void)0;
6693 var48
= ((val
*(*)(val
* self
))(var45
->class->vft
[COLOR_core__abstract_text__Object__to_s
]))(var45
); /* to_s on <var45:MProperty>*/
6695 ((struct instance_core__NativeArray
*)var36
)->values
[2]=var48
;
6697 var49
= ((val
*(*)(val
* self
))(var36
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var36
); /* native_to_s on <var36:NativeArray[String]>*/
6701 { /* Inline model#MPropDef#to_s= (self,var49) on <self:MPropDef> */
6702 self
->attrs
[COLOR_nitc__model__MPropDef___to_s
].val
= var49
; /* _to_s on <self:MPropDef> */
6703 RET_LABEL50
:(void)0;
6708 /* method model#MPropDef#name for (self: MPropDef): String */
6709 val
* nitc___nitc__MPropDef___nitc__model_base__MEntity__name(val
* self
) {
6710 val
* var
/* : String */;
6711 val
* var1
/* : MProperty */;
6712 val
* var3
/* : MProperty */;
6713 val
* var4
/* : String */;
6714 val
* var6
/* : String */;
6716 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6717 var3
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6718 if (unlikely(var3
== NULL
)) {
6719 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6720 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
6728 { /* Inline model#MProperty#name (var1) on <var1:MProperty> */
6729 var6
= var1
->attrs
[COLOR_nitc__model__MProperty___name
].val
; /* _name on <var1:MProperty> */
6730 if (unlikely(var6
== NULL
)) {
6731 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
6732 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1951);
6744 /* method model#MPropDef#full_name for (self: MPropDef): String */
6745 val
* nitc___nitc__MPropDef___nitc__model_base__MEntity__full_name(val
* self
) {
6746 val
* var
/* : String */;
6747 short int var1
/* : Bool */;
6748 val
* var2
/* : String */;
6749 val
* var3
/* : String */;
6750 val
* var5
/* : FlatBuffer */;
6751 val
* var_res
/* var res: FlatBuffer */;
6752 val
* var7
/* : MClassDef */;
6753 val
* var9
/* : MClassDef */;
6754 val
* var10
/* : String */;
6755 static val
* varonce
;
6756 val
* var11
/* : String */;
6757 char* var12
/* : NativeString */;
6758 val
* var13
/* : String */;
6759 val
* var14
/* : MClassDef */;
6760 val
* var16
/* : MClassDef */;
6761 val
* var17
/* : MClass */;
6762 val
* var19
/* : MClass */;
6763 val
* var20
/* : MProperty */;
6764 val
* var22
/* : MProperty */;
6765 val
* var23
/* : MClassDef */;
6766 val
* var25
/* : MClassDef */;
6767 val
* var26
/* : MClass */;
6768 val
* var28
/* : MClass */;
6769 short int var29
/* : Bool */;
6770 val
* var_other
/* var other: nullable Object */;
6771 short int var31
/* : Bool */;
6772 short int var33
/* : Bool */;
6773 val
* var34
/* : String */;
6774 val
* var35
/* : MClassDef */;
6775 val
* var37
/* : MClassDef */;
6776 val
* var38
/* : MModule */;
6777 val
* var40
/* : MModule */;
6778 val
* var41
/* : nullable MPackage */;
6779 val
* var42
/* : MProperty */;
6780 val
* var44
/* : MProperty */;
6781 val
* var45
/* : MClassDef */;
6782 val
* var47
/* : MClassDef */;
6783 val
* var48
/* : MModule */;
6784 val
* var50
/* : MModule */;
6785 val
* var51
/* : nullable MPackage */;
6786 short int var52
/* : Bool */;
6787 short int var53
/* : Bool */;
6788 val
* var_other55
/* var other: nullable Object */;
6789 short int var56
/* : Bool */;
6790 short int var57
/* : Bool */;
6791 val
* var58
/* : MProperty */;
6792 val
* var60
/* : MProperty */;
6793 val
* var61
/* : MClassDef */;
6794 val
* var63
/* : MClassDef */;
6795 val
* var64
/* : MModule */;
6796 val
* var66
/* : MModule */;
6797 val
* var67
/* : String */;
6798 static val
* varonce68
;
6799 val
* var69
/* : String */;
6800 char* var70
/* : NativeString */;
6801 val
* var71
/* : String */;
6802 val
* var72
/* : MProperty */;
6803 val
* var74
/* : MProperty */;
6804 val
* var75
/* : MVisibility */;
6805 val
* var77
/* : MVisibility */;
6806 val
* var78
/* : Sys */;
6807 val
* var79
/* : MVisibility */;
6808 short int var80
/* : Bool */;
6809 val
* var81
/* : MClassDef */;
6810 val
* var83
/* : MClassDef */;
6811 val
* var84
/* : MModule */;
6812 val
* var86
/* : MModule */;
6813 val
* var87
/* : MClassDef */;
6814 val
* var89
/* : MClassDef */;
6815 val
* var90
/* : MClass */;
6816 val
* var92
/* : MClass */;
6817 val
* var93
/* : MVisibility */;
6818 val
* var95
/* : MVisibility */;
6819 val
* var96
/* : String */;
6820 val
* var97
/* : MProperty */;
6821 val
* var99
/* : MProperty */;
6822 val
* var100
/* : MClassDef */;
6823 val
* var102
/* : MClassDef */;
6824 val
* var103
/* : MModule */;
6825 val
* var105
/* : MModule */;
6826 val
* var106
/* : nullable MPackage */;
6827 short int var107
/* : Bool */;
6828 short int var109
/* : Bool */;
6829 short int var110
/* : Bool */;
6830 static val
* varonce111
;
6831 val
* var112
/* : String */;
6832 char* var113
/* : NativeString */;
6833 val
* var114
/* : String */;
6834 val
* var115
/* : MProperty */;
6835 val
* var117
/* : MProperty */;
6836 val
* var118
/* : MClassDef */;
6837 val
* var120
/* : MClassDef */;
6838 val
* var121
/* : MModule */;
6839 val
* var123
/* : MModule */;
6840 val
* var124
/* : String */;
6841 val
* var126
/* : String */;
6842 static val
* varonce127
;
6843 val
* var128
/* : String */;
6844 char* var129
/* : NativeString */;
6845 val
* var130
/* : String */;
6846 val
* var131
/* : MClassDef */;
6847 val
* var133
/* : MClassDef */;
6848 val
* var134
/* : MClass */;
6849 val
* var136
/* : MClass */;
6850 val
* var137
/* : MProperty */;
6851 val
* var139
/* : MProperty */;
6852 val
* var140
/* : MClassDef */;
6853 val
* var142
/* : MClassDef */;
6854 val
* var143
/* : MClass */;
6855 val
* var145
/* : MClass */;
6856 short int var146
/* : Bool */;
6857 short int var148
/* : Bool */;
6858 short int var149
/* : Bool */;
6859 val
* var150
/* : MProperty */;
6860 val
* var152
/* : MProperty */;
6861 val
* var153
/* : MClassDef */;
6862 val
* var155
/* : MClassDef */;
6863 val
* var156
/* : String */;
6864 static val
* varonce157
;
6865 val
* var158
/* : String */;
6866 char* var159
/* : NativeString */;
6867 val
* var160
/* : String */;
6868 val
* var161
/* : MProperty */;
6869 val
* var163
/* : MProperty */;
6870 val
* var164
/* : String */;
6871 val
* var166
/* : String */;
6872 val
* var167
/* : String */;
6873 var1
= self
->attrs
[COLOR_nitc__model__MPropDef___full_name
].val
!= NULL
; /* _full_name on <self:MPropDef> */
6875 var2
= self
->attrs
[COLOR_nitc__model__MPropDef___full_name
].val
; /* _full_name on <self:MPropDef> */
6876 if (unlikely(var2
== NULL
)) {
6877 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _full_name");
6878 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2250);
6883 var5
= NEW_core__FlatBuffer(&type_core__FlatBuffer
);
6885 { /* Inline flat#FlatBuffer#init (var5) on <var5:FlatBuffer> */
6887 ((void(*)(val
* self
))(var5
->class->vft
[COLOR_core___core__FlatBuffer___core__kernel__Object__init
]))(var5
); /* init on <var5:FlatBuffer>*/
6894 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
6895 var9
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
6896 if (unlikely(var9
== NULL
)) {
6897 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6898 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
6906 var10
= nitc___nitc__MClassDef___nitc__model_base__MEntity__full_name(var7
);
6909 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var10
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
6911 if (likely(varonce
!=NULL
)) {
6915 var13
= core__flat___NativeString___to_s_full(var12
, 1l, 1l);
6920 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var11
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
6923 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
6924 var16
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
6925 if (unlikely(var16
== NULL
)) {
6926 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
6927 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
6931 RET_LABEL15
:(void)0;
6935 { /* Inline model#MClassDef#mclass (var14) on <var14:MClassDef> */
6936 var19
= var14
->attrs
[COLOR_nitc__model__MClassDef___mclass
].val
; /* _mclass on <var14:MClassDef> */
6937 if (unlikely(var19
== NULL
)) {
6938 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
6939 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 576);
6943 RET_LABEL18
:(void)0;
6947 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
6948 var22
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
6949 if (unlikely(var22
== NULL
)) {
6950 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
6951 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
6955 RET_LABEL21
:(void)0;
6959 { /* Inline model#MProperty#intro_mclassdef (var20) on <var20:MProperty> */
6960 var25
= var20
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var20:MProperty> */
6961 if (unlikely(var25
== NULL
)) {
6962 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
6963 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
6967 RET_LABEL24
:(void)0;
6971 { /* Inline model#MClassDef#mclass (var23) on <var23:MClassDef> */
6972 var28
= var23
->attrs
[COLOR_nitc__model__MClassDef___mclass
].val
; /* _mclass on <var23:MClassDef> */
6973 if (unlikely(var28
== NULL
)) {
6974 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
6975 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 576);
6979 RET_LABEL27
:(void)0;
6983 { /* Inline kernel#Object#== (var17,var26) on <var17:MClass> */
6986 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:MClass> */
6987 var33
= var17
== var_other
;
6990 RET_LABEL32
:(void)0;
6995 RET_LABEL30
:(void)0;
7000 var34
= nitc___nitc__MPropDef___nitc__model_base__MEntity__name(self
);
7003 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var34
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7007 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7008 var37
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7009 if (unlikely(var37
== NULL
)) {
7010 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7011 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
7015 RET_LABEL36
:(void)0;
7019 { /* Inline model#MClassDef#mmodule (var35) on <var35:MClassDef> */
7020 var40
= var35
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var35:MClassDef> */
7021 if (unlikely(var40
== NULL
)) {
7022 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7023 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
7027 RET_LABEL39
:(void)0;
7031 var41
= nitc___nitc__MModule___mpackage(var38
);
7034 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7035 var44
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7036 if (unlikely(var44
== NULL
)) {
7037 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7038 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
7042 RET_LABEL43
:(void)0;
7046 { /* Inline model#MProperty#intro_mclassdef (var42) on <var42:MProperty> */
7047 var47
= var42
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var42:MProperty> */
7048 if (unlikely(var47
== NULL
)) {
7049 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7050 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
7054 RET_LABEL46
:(void)0;
7058 { /* Inline model#MClassDef#mmodule (var45) on <var45:MClassDef> */
7059 var50
= var45
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var45:MClassDef> */
7060 if (unlikely(var50
== NULL
)) {
7061 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7062 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
7066 RET_LABEL49
:(void)0;
7070 var51
= nitc___nitc__MModule___mpackage(var48
);
7072 if (var41
== NULL
) {
7073 var52
= (var51
!= NULL
);
7075 { /* Inline kernel#Object#!= (var41,var51) on <var41:nullable MPackage> */
7076 var_other55
= var51
;
7078 var56
= ((short int(*)(val
* self
, val
* p0
))(var41
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var41
, var_other55
); /* == on <var41:nullable MPackage(MPackage)>*/
7083 RET_LABEL54
:(void)0;
7089 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7090 var60
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7091 if (unlikely(var60
== NULL
)) {
7092 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7093 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
7097 RET_LABEL59
:(void)0;
7101 { /* Inline model#MProperty#intro_mclassdef (var58) on <var58:MProperty> */
7102 var63
= var58
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var58:MProperty> */
7103 if (unlikely(var63
== NULL
)) {
7104 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7105 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
7109 RET_LABEL62
:(void)0;
7113 { /* Inline model#MClassDef#mmodule (var61) on <var61:MClassDef> */
7114 var66
= var61
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var61:MClassDef> */
7115 if (unlikely(var66
== NULL
)) {
7116 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7117 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
7121 RET_LABEL65
:(void)0;
7125 var67
= nitc___nitc__MModule___nitc__model_base__MEntity__full_name(var64
);
7128 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var67
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7130 if (likely(varonce68
!=NULL
)) {
7134 var71
= core__flat___NativeString___to_s_full(var70
, 2l, 2l);
7139 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var69
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7143 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7144 var74
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7145 if (unlikely(var74
== NULL
)) {
7146 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7147 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
7151 RET_LABEL73
:(void)0;
7155 { /* Inline model#MProperty#visibility (var72) on <var72:MProperty> */
7156 var77
= var72
->attrs
[COLOR_nitc__model__MProperty___visibility
].val
; /* _visibility on <var72:MProperty> */
7157 if (unlikely(var77
== NULL
)) {
7158 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _visibility");
7159 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1967);
7163 RET_LABEL76
:(void)0;
7168 var79
= nitc__model_base___core__Sys___private_visibility(var78
);
7171 var80
= core___core__Comparable____60d_61d(var75
, var79
);
7175 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7176 var83
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7177 if (unlikely(var83
== NULL
)) {
7178 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7179 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
7183 RET_LABEL82
:(void)0;
7187 { /* Inline model#MClassDef#mmodule (var81) on <var81:MClassDef> */
7188 var86
= var81
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var81:MClassDef> */
7189 if (unlikely(var86
== NULL
)) {
7190 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7191 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
7195 RET_LABEL85
:(void)0;
7199 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7200 var89
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7201 if (unlikely(var89
== NULL
)) {
7202 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7203 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
7207 RET_LABEL88
:(void)0;
7211 { /* Inline model#MClassDef#mclass (var87) on <var87:MClassDef> */
7212 var92
= var87
->attrs
[COLOR_nitc__model__MClassDef___mclass
].val
; /* _mclass on <var87:MClassDef> */
7213 if (unlikely(var92
== NULL
)) {
7214 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7215 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 576);
7219 RET_LABEL91
:(void)0;
7223 { /* Inline model#MClass#visibility (var90) on <var90:MClass> */
7224 var95
= var90
->attrs
[COLOR_nitc__model__MClass___visibility
].val
; /* _visibility on <var90:MClass> */
7225 if (unlikely(var95
== NULL
)) {
7226 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _visibility");
7227 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 463);
7231 RET_LABEL94
:(void)0;
7235 var96
= nitc___nitc__MModule___namespace_for(var84
, var93
);
7238 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7239 var99
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7240 if (unlikely(var99
== NULL
)) {
7241 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7242 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
7246 RET_LABEL98
:(void)0;
7250 { /* Inline model#MProperty#intro_mclassdef (var97) on <var97:MProperty> */
7251 var102
= var97
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var97:MProperty> */
7252 if (unlikely(var102
== NULL
)) {
7253 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7254 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
7258 RET_LABEL101
:(void)0;
7262 { /* Inline model#MClassDef#mmodule (var100) on <var100:MClassDef> */
7263 var105
= var100
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var100:MClassDef> */
7264 if (unlikely(var105
== NULL
)) {
7265 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7266 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
7270 RET_LABEL104
:(void)0;
7274 var106
= nitc___nitc__MModule___mpackage(var103
);
7277 { /* Inline kernel#Object#!= (var96,var106) on <var96:String> */
7278 var_other55
= var106
;
7280 var109
= ((short int(*)(val
* self
, val
* p0
))(var96
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var96
, var_other55
); /* == on <var96:String>*/
7285 RET_LABEL108
:(void)0;
7289 if (likely(varonce111
!=NULL
)) {
7290 var112
= varonce111
;
7293 var114
= core__flat___NativeString___to_s_full(var113
, 2l, 2l);
7295 varonce111
= var112
;
7298 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var112
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7301 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7302 var117
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7303 if (unlikely(var117
== NULL
)) {
7304 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7305 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
7309 RET_LABEL116
:(void)0;
7313 { /* Inline model#MProperty#intro_mclassdef (var115) on <var115:MProperty> */
7314 var120
= var115
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var115:MProperty> */
7315 if (unlikely(var120
== NULL
)) {
7316 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7317 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
7321 RET_LABEL119
:(void)0;
7325 { /* Inline model#MClassDef#mmodule (var118) on <var118:MClassDef> */
7326 var123
= var118
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var118:MClassDef> */
7327 if (unlikely(var123
== NULL
)) {
7328 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7329 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
7333 RET_LABEL122
:(void)0;
7337 { /* Inline mmodule#MModule#name (var121) on <var121:MModule> */
7338 var126
= var121
->attrs
[COLOR_nitc__mmodule__MModule___name
].val
; /* _name on <var121:MModule> */
7339 if (unlikely(var126
== NULL
)) {
7340 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
7341 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__mmodule
, 95);
7345 RET_LABEL125
:(void)0;
7349 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var124
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7351 if (likely(varonce127
!=NULL
)) {
7352 var128
= varonce127
;
7355 var130
= core__flat___NativeString___to_s_full(var129
, 2l, 2l);
7357 varonce127
= var128
;
7360 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var128
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7368 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7369 var133
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7370 if (unlikely(var133
== NULL
)) {
7371 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7372 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
7376 RET_LABEL132
:(void)0;
7380 { /* Inline model#MClassDef#mclass (var131) on <var131:MClassDef> */
7381 var136
= var131
->attrs
[COLOR_nitc__model__MClassDef___mclass
].val
; /* _mclass on <var131:MClassDef> */
7382 if (unlikely(var136
== NULL
)) {
7383 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7384 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 576);
7388 RET_LABEL135
:(void)0;
7392 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7393 var139
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7394 if (unlikely(var139
== NULL
)) {
7395 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7396 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
7400 RET_LABEL138
:(void)0;
7404 { /* Inline model#MProperty#intro_mclassdef (var137) on <var137:MProperty> */
7405 var142
= var137
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var137:MProperty> */
7406 if (unlikely(var142
== NULL
)) {
7407 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7408 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
7412 RET_LABEL141
:(void)0;
7416 { /* Inline model#MClassDef#mclass (var140) on <var140:MClassDef> */
7417 var145
= var140
->attrs
[COLOR_nitc__model__MClassDef___mclass
].val
; /* _mclass on <var140:MClassDef> */
7418 if (unlikely(var145
== NULL
)) {
7419 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7420 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 576);
7424 RET_LABEL144
:(void)0;
7428 { /* Inline kernel#Object#!= (var134,var143) on <var134:MClass> */
7429 var_other55
= var143
;
7431 var148
= ((short int(*)(val
* self
, val
* p0
))(var134
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var134
, var_other55
); /* == on <var134:MClass>*/
7436 RET_LABEL147
:(void)0;
7441 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7442 var152
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7443 if (unlikely(var152
== NULL
)) {
7444 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7445 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
7449 RET_LABEL151
:(void)0;
7453 { /* Inline model#MProperty#intro_mclassdef (var150) on <var150:MProperty> */
7454 var155
= var150
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var150:MProperty> */
7455 if (unlikely(var155
== NULL
)) {
7456 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7457 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
7461 RET_LABEL154
:(void)0;
7465 var156
= nitc___nitc__MClassDef___nitc__model_base__MEntity__name(var153
);
7468 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var156
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7470 if (likely(varonce157
!=NULL
)) {
7471 var158
= varonce157
;
7474 var160
= core__flat___NativeString___to_s_full(var159
, 2l, 2l);
7476 varonce157
= var158
;
7479 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var158
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7484 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7485 var163
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7486 if (unlikely(var163
== NULL
)) {
7487 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7488 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
7492 RET_LABEL162
:(void)0;
7496 { /* Inline model#MProperty#name (var161) on <var161:MProperty> */
7497 var166
= var161
->attrs
[COLOR_nitc__model__MProperty___name
].val
; /* _name on <var161:MProperty> */
7498 if (unlikely(var166
== NULL
)) {
7499 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
7500 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1951);
7504 RET_LABEL165
:(void)0;
7508 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var164
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7512 var167
= core___core__FlatBuffer___core__abstract_text__Object__to_s(var_res
);
7518 self
->attrs
[COLOR_nitc__model__MPropDef___full_name
].val
= var3
; /* _full_name on <self:MPropDef> */
7525 /* method model#MPropDef#c_name for (self: MPropDef): String */
7526 val
* nitc___nitc__MPropDef___nitc__model_base__MEntity__c_name(val
* self
) {
7527 val
* var
/* : String */;
7528 short int var1
/* : Bool */;
7529 val
* var2
/* : String */;
7530 val
* var3
/* : String */;
7531 val
* var5
/* : FlatBuffer */;
7532 val
* var_res
/* var res: FlatBuffer */;
7533 val
* var7
/* : MClassDef */;
7534 val
* var9
/* : MClassDef */;
7535 val
* var10
/* : String */;
7536 static val
* varonce
;
7537 val
* var11
/* : String */;
7538 char* var12
/* : NativeString */;
7539 val
* var13
/* : String */;
7540 val
* var14
/* : MClassDef */;
7541 val
* var16
/* : MClassDef */;
7542 val
* var17
/* : MClass */;
7543 val
* var19
/* : MClass */;
7544 val
* var20
/* : MProperty */;
7545 val
* var22
/* : MProperty */;
7546 val
* var23
/* : MClassDef */;
7547 val
* var25
/* : MClassDef */;
7548 val
* var26
/* : MClass */;
7549 val
* var28
/* : MClass */;
7550 short int var29
/* : Bool */;
7551 val
* var_other
/* var other: nullable Object */;
7552 short int var31
/* : Bool */;
7553 short int var33
/* : Bool */;
7554 val
* var34
/* : String */;
7555 val
* var35
/* : String */;
7556 val
* var36
/* : MClassDef */;
7557 val
* var38
/* : MClassDef */;
7558 val
* var39
/* : MModule */;
7559 val
* var41
/* : MModule */;
7560 val
* var42
/* : MProperty */;
7561 val
* var44
/* : MProperty */;
7562 val
* var45
/* : MClassDef */;
7563 val
* var47
/* : MClassDef */;
7564 val
* var48
/* : MModule */;
7565 val
* var50
/* : MModule */;
7566 short int var51
/* : Bool */;
7567 val
* var_other53
/* var other: nullable Object */;
7568 short int var54
/* : Bool */;
7569 short int var55
/* : Bool */;
7570 val
* var56
/* : MProperty */;
7571 val
* var58
/* : MProperty */;
7572 val
* var59
/* : MClassDef */;
7573 val
* var61
/* : MClassDef */;
7574 val
* var62
/* : MModule */;
7575 val
* var64
/* : MModule */;
7576 val
* var65
/* : String */;
7577 static val
* varonce66
;
7578 val
* var67
/* : String */;
7579 char* var68
/* : NativeString */;
7580 val
* var69
/* : String */;
7581 val
* var70
/* : MClassDef */;
7582 val
* var72
/* : MClassDef */;
7583 val
* var73
/* : MClass */;
7584 val
* var75
/* : MClass */;
7585 val
* var76
/* : MProperty */;
7586 val
* var78
/* : MProperty */;
7587 val
* var79
/* : MClassDef */;
7588 val
* var81
/* : MClassDef */;
7589 val
* var82
/* : MClass */;
7590 val
* var84
/* : MClass */;
7591 short int var85
/* : Bool */;
7592 short int var87
/* : Bool */;
7593 short int var88
/* : Bool */;
7594 val
* var89
/* : MProperty */;
7595 val
* var91
/* : MProperty */;
7596 val
* var92
/* : MClassDef */;
7597 val
* var94
/* : MClassDef */;
7598 val
* var95
/* : String */;
7599 val
* var96
/* : String */;
7600 static val
* varonce97
;
7601 val
* var98
/* : String */;
7602 char* var99
/* : NativeString */;
7603 val
* var100
/* : String */;
7604 val
* var101
/* : MProperty */;
7605 val
* var103
/* : MProperty */;
7606 val
* var104
/* : String */;
7607 val
* var106
/* : String */;
7608 val
* var107
/* : String */;
7609 val
* var108
/* : String */;
7610 var1
= self
->attrs
[COLOR_nitc__model__MPropDef___c_name
].val
!= NULL
; /* _c_name on <self:MPropDef> */
7612 var2
= self
->attrs
[COLOR_nitc__model__MPropDef___c_name
].val
; /* _c_name on <self:MPropDef> */
7613 if (unlikely(var2
== NULL
)) {
7614 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _c_name");
7615 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2299);
7620 var5
= NEW_core__FlatBuffer(&type_core__FlatBuffer
);
7622 { /* Inline flat#FlatBuffer#init (var5) on <var5:FlatBuffer> */
7624 ((void(*)(val
* self
))(var5
->class->vft
[COLOR_core___core__FlatBuffer___core__kernel__Object__init
]))(var5
); /* init on <var5:FlatBuffer>*/
7631 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7632 var9
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7633 if (unlikely(var9
== NULL
)) {
7634 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7635 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
7643 var10
= nitc___nitc__MClassDef___nitc__model_base__MEntity__c_name(var7
);
7646 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var10
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7648 if (likely(varonce
!=NULL
)) {
7652 var13
= core__flat___NativeString___to_s_full(var12
, 3l, 3l);
7657 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var11
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7660 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7661 var16
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7662 if (unlikely(var16
== NULL
)) {
7663 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7664 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
7668 RET_LABEL15
:(void)0;
7672 { /* Inline model#MClassDef#mclass (var14) on <var14:MClassDef> */
7673 var19
= var14
->attrs
[COLOR_nitc__model__MClassDef___mclass
].val
; /* _mclass on <var14:MClassDef> */
7674 if (unlikely(var19
== NULL
)) {
7675 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7676 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 576);
7680 RET_LABEL18
:(void)0;
7684 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7685 var22
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7686 if (unlikely(var22
== NULL
)) {
7687 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7688 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
7692 RET_LABEL21
:(void)0;
7696 { /* Inline model#MProperty#intro_mclassdef (var20) on <var20:MProperty> */
7697 var25
= var20
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var20:MProperty> */
7698 if (unlikely(var25
== NULL
)) {
7699 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7700 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
7704 RET_LABEL24
:(void)0;
7708 { /* Inline model#MClassDef#mclass (var23) on <var23:MClassDef> */
7709 var28
= var23
->attrs
[COLOR_nitc__model__MClassDef___mclass
].val
; /* _mclass on <var23:MClassDef> */
7710 if (unlikely(var28
== NULL
)) {
7711 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7712 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 576);
7716 RET_LABEL27
:(void)0;
7720 { /* Inline kernel#Object#== (var17,var26) on <var17:MClass> */
7723 { /* Inline kernel#Object#is_same_instance (var17,var_other) on <var17:MClass> */
7724 var33
= var17
== var_other
;
7727 RET_LABEL32
:(void)0;
7732 RET_LABEL30
:(void)0;
7737 var34
= nitc___nitc__MPropDef___nitc__model_base__MEntity__name(self
);
7740 var35
= core___core__Text___to_cmangle(var34
);
7743 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var35
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7747 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7748 var38
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7749 if (unlikely(var38
== NULL
)) {
7750 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7751 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
7755 RET_LABEL37
:(void)0;
7759 { /* Inline model#MClassDef#mmodule (var36) on <var36:MClassDef> */
7760 var41
= var36
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var36:MClassDef> */
7761 if (unlikely(var41
== NULL
)) {
7762 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7763 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
7767 RET_LABEL40
:(void)0;
7771 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7772 var44
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7773 if (unlikely(var44
== NULL
)) {
7774 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7775 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
7779 RET_LABEL43
:(void)0;
7783 { /* Inline model#MProperty#intro_mclassdef (var42) on <var42:MProperty> */
7784 var47
= var42
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var42:MProperty> */
7785 if (unlikely(var47
== NULL
)) {
7786 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7787 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
7791 RET_LABEL46
:(void)0;
7795 { /* Inline model#MClassDef#mmodule (var45) on <var45:MClassDef> */
7796 var50
= var45
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var45:MClassDef> */
7797 if (unlikely(var50
== NULL
)) {
7798 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7799 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
7803 RET_LABEL49
:(void)0;
7807 { /* Inline kernel#Object#!= (var39,var48) on <var39:MModule> */
7808 var_other53
= var48
;
7810 var54
= ((short int(*)(val
* self
, val
* p0
))(var39
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var39
, var_other53
); /* == on <var39:MModule>*/
7815 RET_LABEL52
:(void)0;
7820 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7821 var58
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7822 if (unlikely(var58
== NULL
)) {
7823 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7824 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
7828 RET_LABEL57
:(void)0;
7832 { /* Inline model#MProperty#intro_mclassdef (var56) on <var56:MProperty> */
7833 var61
= var56
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var56:MProperty> */
7834 if (unlikely(var61
== NULL
)) {
7835 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7836 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
7840 RET_LABEL60
:(void)0;
7844 { /* Inline model#MClassDef#mmodule (var59) on <var59:MClassDef> */
7845 var64
= var59
->attrs
[COLOR_nitc__model__MClassDef___mmodule
].val
; /* _mmodule on <var59:MClassDef> */
7846 if (unlikely(var64
== NULL
)) {
7847 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mmodule");
7848 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 573);
7852 RET_LABEL63
:(void)0;
7856 var65
= nitc___nitc__MModule___nitc__model_base__MEntity__c_name(var62
);
7859 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var65
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7861 if (likely(varonce66
!=NULL
)) {
7865 var69
= core__flat___NativeString___to_s_full(var68
, 2l, 2l);
7870 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var67
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7875 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
7876 var72
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
7877 if (unlikely(var72
== NULL
)) {
7878 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
7879 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
7883 RET_LABEL71
:(void)0;
7887 { /* Inline model#MClassDef#mclass (var70) on <var70:MClassDef> */
7888 var75
= var70
->attrs
[COLOR_nitc__model__MClassDef___mclass
].val
; /* _mclass on <var70:MClassDef> */
7889 if (unlikely(var75
== NULL
)) {
7890 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7891 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 576);
7895 RET_LABEL74
:(void)0;
7899 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7900 var78
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7901 if (unlikely(var78
== NULL
)) {
7902 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7903 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
7907 RET_LABEL77
:(void)0;
7911 { /* Inline model#MProperty#intro_mclassdef (var76) on <var76:MProperty> */
7912 var81
= var76
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var76:MProperty> */
7913 if (unlikely(var81
== NULL
)) {
7914 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7915 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
7919 RET_LABEL80
:(void)0;
7923 { /* Inline model#MClassDef#mclass (var79) on <var79:MClassDef> */
7924 var84
= var79
->attrs
[COLOR_nitc__model__MClassDef___mclass
].val
; /* _mclass on <var79:MClassDef> */
7925 if (unlikely(var84
== NULL
)) {
7926 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclass");
7927 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 576);
7931 RET_LABEL83
:(void)0;
7935 { /* Inline kernel#Object#!= (var73,var82) on <var73:MClass> */
7936 var_other53
= var82
;
7938 var87
= ((short int(*)(val
* self
, val
* p0
))(var73
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var73
, var_other53
); /* == on <var73:MClass>*/
7943 RET_LABEL86
:(void)0;
7948 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7949 var91
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7950 if (unlikely(var91
== NULL
)) {
7951 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7952 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
7956 RET_LABEL90
:(void)0;
7960 { /* Inline model#MProperty#intro_mclassdef (var89) on <var89:MProperty> */
7961 var94
= var89
->attrs
[COLOR_nitc__model__MProperty___intro_mclassdef
].val
; /* _intro_mclassdef on <var89:MProperty> */
7962 if (unlikely(var94
== NULL
)) {
7963 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro_mclassdef");
7964 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1946);
7968 RET_LABEL93
:(void)0;
7972 var95
= nitc___nitc__MClassDef___nitc__model_base__MEntity__name(var92
);
7975 var96
= core___core__Text___to_cmangle(var95
);
7978 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var96
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7980 if (likely(varonce97
!=NULL
)) {
7984 var100
= core__flat___NativeString___to_s_full(var99
, 2l, 2l);
7989 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var98
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
7994 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
7995 var103
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
7996 if (unlikely(var103
== NULL
)) {
7997 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
7998 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
8002 RET_LABEL102
:(void)0;
8006 { /* Inline model#MProperty#name (var101) on <var101:MProperty> */
8007 var106
= var101
->attrs
[COLOR_nitc__model__MProperty___name
].val
; /* _name on <var101:MProperty> */
8008 if (unlikely(var106
== NULL
)) {
8009 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _name");
8010 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1951);
8014 RET_LABEL105
:(void)0;
8018 var107
= core___core__Text___to_cmangle(var104
);
8021 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_res
, var107
); /* Direct call flat#FlatBuffer#append on <var_res:FlatBuffer>*/
8025 var108
= core___core__FlatBuffer___core__abstract_text__Object__to_s(var_res
);
8031 self
->attrs
[COLOR_nitc__model__MPropDef___c_name
].val
= var3
; /* _c_name on <self:MPropDef> */
8038 /* method model#MPropDef#model for (self: MPropDef): Model */
8039 val
* nitc___nitc__MPropDef___nitc__model_base__MEntity__model(val
* self
) {
8040 val
* var
/* : Model */;
8041 val
* var1
/* : MClassDef */;
8042 val
* var3
/* : MClassDef */;
8043 val
* var4
/* : Model */;
8045 { /* Inline model#MPropDef#mclassdef (self) on <self:MPropDef> */
8046 var3
= self
->attrs
[COLOR_nitc__model__MPropDef___mclassdef
].val
; /* _mclassdef on <self:MPropDef> */
8047 if (unlikely(var3
== NULL
)) {
8048 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mclassdef");
8049 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2227);
8057 var4
= nitc___nitc__MClassDef___nitc__model_base__MEntity__model(var1
);
8064 /* method model#MPropDef#to_s for (self: MPropDef): String */
8065 val
* nitc___nitc__MPropDef___core__abstract_text__Object__to_s(val
* self
) {
8066 val
* var
/* : String */;
8067 val
* var1
/* : String */;
8068 var1
= self
->attrs
[COLOR_nitc__model__MPropDef___to_s
].val
; /* _to_s on <self:MPropDef> */
8069 if (unlikely(var1
== NULL
)) {
8070 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _to_s");
8071 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2321);
8078 /* method model#MPropDef#to_s= for (self: MPropDef, String) */
8079 void nitc___nitc__MPropDef___to_s_61d(val
* self
, val
* p0
) {
8080 self
->attrs
[COLOR_nitc__model__MPropDef___to_s
].val
= p0
; /* _to_s on <self:MPropDef> */
8083 /* method model#MPropDef#is_intro for (self: MPropDef): Bool */
8084 short int nitc___nitc__MPropDef___is_intro(val
* self
) {
8085 short int var
/* : Bool */;
8086 short int var1
/* : Bool */;
8087 val
* var2
/* : MProperty */;
8088 val
* var4
/* : MProperty */;
8089 short int var5
/* : Bool */;
8090 short int var_
/* var : Bool */;
8091 val
* var6
/* : MProperty */;
8092 val
* var8
/* : MProperty */;
8093 val
* var9
/* : MPropDef */;
8094 val
* var11
/* : MPropDef */;
8095 short int var12
/* : Bool */;
8096 val
* var_other
/* var other: nullable Object */;
8097 short int var14
/* : Bool */;
8098 short int var16
/* : Bool */;
8100 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
8101 var4
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
8102 if (unlikely(var4
== NULL
)) {
8103 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
8104 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
8111 var5
= var2
->attrs
[COLOR_nitc__model__MProperty___intro
].val
!= NULL
; /* _intro on <var2:MProperty> */
8115 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
8116 var8
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
8117 if (unlikely(var8
== NULL
)) {
8118 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
8119 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
8127 { /* Inline model#MProperty#intro (var6) on <var6:MProperty> */
8128 var11
= var6
->attrs
[COLOR_nitc__model__MProperty___intro
].val
; /* _intro on <var6:MProperty> */
8129 if (unlikely(var11
== NULL
)) {
8130 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _intro");
8131 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 1986);
8135 RET_LABEL10
:(void)0;
8139 { /* Inline kernel#Object#== (var9,self) on <var9:MPropDef> */
8142 { /* Inline kernel#Object#is_same_instance (var9,var_other) on <var9:MPropDef> */
8143 var16
= var9
== var_other
;
8146 RET_LABEL15
:(void)0;
8151 RET_LABEL13
:(void)0;
8163 /* method model#MPropDef#lookup_next_definition for (self: MPropDef, MModule, MType): MPropDef */
8164 val
* nitc___nitc__MPropDef___lookup_next_definition(val
* self
, val
* p0
, val
* p1
) {
8165 val
* var
/* : MPropDef */;
8166 val
* var_mmodule
/* var mmodule: MModule */;
8167 val
* var_mtype
/* var mtype: MType */;
8168 short int var1
/* : Bool */;
8169 short int var2
/* : Bool */;
8170 val
* var3
/* : MProperty */;
8171 val
* var5
/* : MProperty */;
8172 val
* var6
/* : Array[MPropDef] */;
8173 val
* var_mpropdefs
/* var mpropdefs: Array[MPropDef] */;
8174 val
* var7
/* : IndexedIterator[nullable Object] */;
8175 val
* var_i
/* var i: IndexedIterator[MPropDef] */;
8176 short int var8
/* : Bool */;
8177 short int var9
/* : Bool */;
8178 short int var_
/* var : Bool */;
8179 val
* var10
/* : nullable Object */;
8180 short int var11
/* : Bool */;
8181 val
* var_other
/* var other: nullable Object */;
8182 short int var13
/* : Bool */;
8183 short int var14
/* : Bool */;
8184 short int var15
/* : Bool */;
8185 short int var16
/* : Bool */;
8186 val
* var17
/* : nullable Object */;
8187 short int var18
/* : Bool */;
8190 const struct type
* type_struct
;
8191 const char* var_class_name
;
8195 var1
= ((short int(*)(val
* self
))(var_mtype
->class->vft
[COLOR_nitc__model__MType__need_anchor
]))(var_mtype
); /* need_anchor on <var_mtype:MType>*/
8198 if (unlikely(!var2
)) {
8199 PRINT_ERROR("Runtime error: %s", "Assert failed");
8200 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2335);
8204 { /* Inline model#MPropDef#mproperty (self) on <self:MPropDef> */
8205 var5
= self
->attrs
[COLOR_nitc__model__MPropDef___mproperty
].val
; /* _mproperty on <self:MPropDef> */
8206 if (unlikely(var5
== NULL
)) {
8207 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _mproperty");
8208 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2230);
8216 var6
= nitc___nitc__MProperty___lookup_all_definitions(var3
, var_mmodule
, var_mtype
);
8218 var_mpropdefs
= var6
;
8220 var7
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_mpropdefs
);
8225 var9
= ((short int(*)(val
* self
))((((long)var_i
&3)?class_info
[((long)var_i
&3)]:var_i
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_i
); /* is_ok on <var_i:IndexedIterator[MPropDef]>*/
8230 var10
= ((val
*(*)(val
* self
))((((long)var_i
&3)?class_info
[((long)var_i
&3)]:var_i
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_i
); /* item on <var_i:IndexedIterator[MPropDef]>*/
8233 { /* Inline kernel#Object#!= (var10,self) on <var10:nullable Object(MPropDef)> */
8236 var13
= ((short int(*)(val
* self
, val
* p0
))(var10
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var10
, var_other
); /* == on <var10:nullable Object(MPropDef)>*/
8241 RET_LABEL12
:(void)0;
8250 ((void(*)(val
* self
))((((long)var_i
&3)?class_info
[((long)var_i
&3)]:var_i
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_i
); /* next on <var_i:IndexedIterator[MPropDef]>*/
8256 BREAK_label
: (void)0;
8258 var15
= ((short int(*)(val
* self
))((((long)var_i
&3)?class_info
[((long)var_i
&3)]:var_i
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_i
); /* is_ok on <var_i:IndexedIterator[MPropDef]>*/
8260 if (unlikely(!var15
)) {
8261 PRINT_ERROR("Runtime error: %s", "Assert \'has_property\' failed");
8262 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2340);
8266 ((void(*)(val
* self
))((((long)var_i
&3)?class_info
[((long)var_i
&3)]:var_i
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_i
); /* next on <var_i:IndexedIterator[MPropDef]>*/
8269 var16
= ((short int(*)(val
* self
))((((long)var_i
&3)?class_info
[((long)var_i
&3)]:var_i
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_i
); /* is_ok on <var_i:IndexedIterator[MPropDef]>*/
8271 if (unlikely(!var16
)) {
8272 PRINT_ERROR("Runtime error: %s", "Assert \'has_next_property\' failed");
8273 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2342);
8277 var17
= ((val
*(*)(val
* self
))((((long)var_i
&3)?class_info
[((long)var_i
&3)]:var_i
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_i
); /* item on <var_i:IndexedIterator[MPropDef]>*/
8279 /* <var17:nullable Object(MPropDef)> isa MPROPDEF */
8280 type_struct
= self
->type
->resolution_table
->types
[COLOR_nitc__model__MPropDef__MPROPDEF
];
8281 cltype
= type_struct
->color
;
8282 idtype
= type_struct
->id
;
8283 if(cltype
>= var17
->type
->table_size
) {
8286 var18
= var17
->type
->type_table
[cltype
] == idtype
;
8288 if (unlikely(!var18
)) {
8289 var_class_name
= var17
== NULL ?
"null" : var17
->type
->name
;
8290 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "MPROPDEF", var_class_name
);
8291 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2343);
8299 /* method model#MMethodDef#msignature for (self: MMethodDef): nullable MSignature */
8300 val
* nitc___nitc__MMethodDef___msignature(val
* self
) {
8301 val
* var
/* : nullable MSignature */;
8302 val
* var1
/* : nullable MSignature */;
8303 var1
= self
->attrs
[COLOR_nitc__model__MMethodDef___msignature
].val
; /* _msignature on <self:MMethodDef> */
8308 /* method model#MMethodDef#msignature= for (self: MMethodDef, nullable MSignature) */
8309 void nitc___nitc__MMethodDef___msignature_61d(val
* self
, val
* p0
) {
8310 self
->attrs
[COLOR_nitc__model__MMethodDef___msignature
].val
= p0
; /* _msignature on <self:MMethodDef> */
8313 /* method model#MMethodDef#new_msignature for (self: MMethodDef): nullable MSignature */
8314 val
* nitc___nitc__MMethodDef___new_msignature(val
* self
) {
8315 val
* var
/* : nullable MSignature */;
8316 val
* var1
/* : nullable MSignature */;
8317 var1
= self
->attrs
[COLOR_nitc__model__MMethodDef___new_msignature
].val
; /* _new_msignature on <self:MMethodDef> */
8322 /* method model#MMethodDef#new_msignature= for (self: MMethodDef, nullable MSignature) */
8323 void nitc___nitc__MMethodDef___new_msignature_61d(val
* self
, val
* p0
) {
8324 self
->attrs
[COLOR_nitc__model__MMethodDef___new_msignature
].val
= p0
; /* _new_msignature on <self:MMethodDef> */
8327 /* method model#MMethodDef#initializers for (self: MMethodDef): Array[MProperty] */
8328 val
* nitc___nitc__MMethodDef___initializers(val
* self
) {
8329 val
* var
/* : Array[MProperty] */;
8330 val
* var1
/* : Array[MProperty] */;
8331 var1
= self
->attrs
[COLOR_nitc__model__MMethodDef___initializers
].val
; /* _initializers on <self:MMethodDef> */
8332 if (unlikely(var1
== NULL
)) {
8333 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _initializers");
8334 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2363);
8341 /* method model#MMethodDef#is_abstract for (self: MMethodDef): Bool */
8342 short int nitc___nitc__MMethodDef___is_abstract(val
* self
) {
8343 short int var
/* : Bool */;
8344 short int var1
/* : Bool */;
8345 var1
= self
->attrs
[COLOR_nitc__model__MMethodDef___is_abstract
].s
; /* _is_abstract on <self:MMethodDef> */
8350 /* method model#MMethodDef#is_abstract= for (self: MMethodDef, Bool) */
8351 void nitc___nitc__MMethodDef___is_abstract_61d(val
* self
, short int p0
) {
8352 self
->attrs
[COLOR_nitc__model__MMethodDef___is_abstract
].s
= p0
; /* _is_abstract on <self:MMethodDef> */
8355 /* method model#MMethodDef#is_intern for (self: MMethodDef): Bool */
8356 short int nitc___nitc__MMethodDef___is_intern(val
* self
) {
8357 short int var
/* : Bool */;
8358 short int var1
/* : Bool */;
8359 var1
= self
->attrs
[COLOR_nitc__model__MMethodDef___is_intern
].s
; /* _is_intern on <self:MMethodDef> */
8364 /* method model#MMethodDef#is_intern= for (self: MMethodDef, Bool) */
8365 void nitc___nitc__MMethodDef___is_intern_61d(val
* self
, short int p0
) {
8366 self
->attrs
[COLOR_nitc__model__MMethodDef___is_intern
].s
= p0
; /* _is_intern on <self:MMethodDef> */
8369 /* method model#MMethodDef#is_extern for (self: MMethodDef): Bool */
8370 short int nitc___nitc__MMethodDef___is_extern(val
* self
) {
8371 short int var
/* : Bool */;
8372 short int var1
/* : Bool */;
8373 var1
= self
->attrs
[COLOR_nitc__model__MMethodDef___is_extern
].s
; /* _is_extern on <self:MMethodDef> */
8378 /* method model#MMethodDef#is_extern= for (self: MMethodDef, Bool) */
8379 void nitc___nitc__MMethodDef___is_extern_61d(val
* self
, short int p0
) {
8380 self
->attrs
[COLOR_nitc__model__MMethodDef___is_extern
].s
= p0
; /* _is_extern on <self:MMethodDef> */
8383 /* method model#MMethodDef#constant_value for (self: MMethodDef): nullable Object */
8384 val
* nitc___nitc__MMethodDef___constant_value(val
* self
) {
8385 val
* var
/* : nullable Object */;
8386 val
* var1
/* : nullable Object */;
8387 var1
= self
->attrs
[COLOR_nitc__model__MMethodDef___constant_value
].val
; /* _constant_value on <self:MMethodDef> */
8392 /* method model#MMethodDef#constant_value= for (self: MMethodDef, nullable Object) */
8393 void nitc___nitc__MMethodDef___constant_value_61d(val
* self
, val
* p0
) {
8394 self
->attrs
[COLOR_nitc__model__MMethodDef___constant_value
].val
= p0
; /* _constant_value on <self:MMethodDef> */
8397 /* method model#MAttributeDef#static_mtype for (self: MAttributeDef): nullable MType */
8398 val
* nitc___nitc__MAttributeDef___static_mtype(val
* self
) {
8399 val
* var
/* : nullable MType */;
8400 val
* var1
/* : nullable MType */;
8401 var1
= self
->attrs
[COLOR_nitc__model__MAttributeDef___static_mtype
].val
; /* _static_mtype on <self:MAttributeDef> */
8406 /* method model#MAttributeDef#static_mtype= for (self: MAttributeDef, nullable MType) */
8407 void nitc___nitc__MAttributeDef___static_mtype_61d(val
* self
, val
* p0
) {
8408 self
->attrs
[COLOR_nitc__model__MAttributeDef___static_mtype
].val
= p0
; /* _static_mtype on <self:MAttributeDef> */
8411 /* method model#MVirtualTypeDef#bound for (self: MVirtualTypeDef): nullable MType */
8412 val
* nitc___nitc__MVirtualTypeDef___bound(val
* self
) {
8413 val
* var
/* : nullable MType */;
8414 val
* var1
/* : nullable MType */;
8415 var1
= self
->attrs
[COLOR_nitc__model__MVirtualTypeDef___bound
].val
; /* _bound on <self:MVirtualTypeDef> */
8420 /* method model#MVirtualTypeDef#bound= for (self: MVirtualTypeDef, nullable MType) */
8421 void nitc___nitc__MVirtualTypeDef___bound_61d(val
* self
, val
* p0
) {
8422 self
->attrs
[COLOR_nitc__model__MVirtualTypeDef___bound
].val
= p0
; /* _bound on <self:MVirtualTypeDef> */
8425 /* method model#MVirtualTypeDef#is_fixed for (self: MVirtualTypeDef): Bool */
8426 short int nitc___nitc__MVirtualTypeDef___is_fixed(val
* self
) {
8427 short int var
/* : Bool */;
8428 short int var1
/* : Bool */;
8429 var1
= self
->attrs
[COLOR_nitc__model__MVirtualTypeDef___is_fixed
].s
; /* _is_fixed on <self:MVirtualTypeDef> */
8434 /* method model#MVirtualTypeDef#is_fixed= for (self: MVirtualTypeDef, Bool) */
8435 void nitc___nitc__MVirtualTypeDef___is_fixed_61d(val
* self
, short int p0
) {
8436 self
->attrs
[COLOR_nitc__model__MVirtualTypeDef___is_fixed
].s
= p0
; /* _is_fixed on <self:MVirtualTypeDef> */
8439 /* method model#MClassKind#to_s for (self: MClassKind): String */
8440 val
* nitc___nitc__MClassKind___core__abstract_text__Object__to_s(val
* self
) {
8441 val
* var
/* : String */;
8442 val
* var1
/* : String */;
8443 var1
= self
->attrs
[COLOR_nitc__model__MClassKind___to_s
].val
; /* _to_s on <self:MClassKind> */
8444 if (unlikely(var1
== NULL
)) {
8445 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _to_s");
8446 PRINT_ERROR(" (%s:%d)\n", FILE_nitc__model
, 2426);
8453 /* method model#MClassKind#to_s= for (self: MClassKind, String) */
8454 void nitc___nitc__MClassKind___to_s_61d(val
* self
, val
* p0
) {
8455 self
->attrs
[COLOR_nitc__model__MClassKind___to_s
].val
= p0
; /* _to_s on <self:MClassKind> */
8458 /* method model#MClassKind#need_init for (self: MClassKind): Bool */
8459 short int nitc___nitc__MClassKind___need_init(val
* self
) {
8460 short int var
/* : Bool */;
8461 short int var1
/* : Bool */;
8462 var1
= self
->attrs
[COLOR_nitc__model__MClassKind___need_init
].s
; /* _need_init on <self:MClassKind> */
8467 /* method model#MClassKind#need_init= for (self: MClassKind, Bool) */
8468 void nitc___nitc__MClassKind___need_init_61d(val
* self
, short int p0
) {
8469 self
->attrs
[COLOR_nitc__model__MClassKind___need_init
].s
= p0
; /* _need_init on <self:MClassKind> */
8472 /* method model#MClassKind#can_specialize for (self: MClassKind, MClassKind): Bool */
8473 short int nitc___nitc__MClassKind___can_specialize(val
* self
, val
* p0
) {
8474 short int var
/* : Bool */;
8475 val
* var_other
/* var other: MClassKind */;
8476 val
* var1
/* : Sys */;
8477 val
* var2
/* : MClassKind */;
8478 short int var3
/* : Bool */;
8479 val
* var_other5
/* var other: nullable Object */;
8480 short int var6
/* : Bool */;
8481 short int var8
/* : Bool */;
8482 short int var9
/* : Bool */;
8483 val
* var10
/* : Sys */;
8484 val
* var11
/* : MClassKind */;
8485 short int var12
/* : Bool */;
8486 short int var14
/* : Bool */;
8487 short int var16
/* : Bool */;
8488 short int var_
/* var : Bool */;
8489 val
* var17
/* : Sys */;
8490 val
* var18
/* : MClassKind */;
8491 short int var19
/* : Bool */;
8492 short int var21
/* : Bool */;
8493 short int var23
/* : Bool */;
8494 val
* var24
/* : Sys */;
8495 val
* var25
/* : MClassKind */;
8496 short int var26
/* : Bool */;
8497 short int var28
/* : Bool */;
8498 short int var30
/* : Bool */;
8499 short int var31
/* : Bool */;
8500 short int var33
/* : Bool */;
8501 short int var35
/* : Bool */;
8502 short int var36
/* : Bool */;
8503 val
* var37
/* : Sys */;
8504 val
* var38
/* : MClassKind */;
8505 short int var39
/* : Bool */;
8506 short int var41
/* : Bool */;
8507 short int var43
/* : Bool */;
8508 short int var_44
/* var : Bool */;
8509 val
* var45
/* : Sys */;
8510 val
* var46
/* : MClassKind */;
8511 short int var47
/* : Bool */;
8512 short int var49
/* : Bool */;
8513 short int var51
/* : Bool */;
8517 var2
= nitc__model___core__Sys___interface_kind(var1
);
8520 { /* Inline kernel#Object#== (var_other,var2) on <var_other:MClassKind> */
8523 { /* Inline kernel#Object#is_same_instance (var_other,var_other5) on <var_other:MClassKind> */
8524 var8
= var_other
== var_other5
;
8542 var11
= nitc__model___core__Sys___interface_kind(var10
);
8545 { /* Inline kernel#Object#== (self,var11) on <self:MClassKind> */
8548 { /* Inline kernel#Object#is_same_instance (self,var_other5) on <self:MClassKind> */
8549 var16
= self
== var_other5
;
8552 RET_LABEL15
:(void)0;
8557 RET_LABEL13
:(void)0;
8566 var18
= nitc__model___core__Sys___enum_kind(var17
);
8569 { /* Inline kernel#Object#== (self,var18) on <self:MClassKind> */
8572 { /* Inline kernel#Object#is_same_instance (self,var_other5) on <self:MClassKind> */
8573 var23
= self
== var_other5
;
8576 RET_LABEL22
:(void)0;
8581 RET_LABEL20
:(void)0;
8592 var25
= nitc__model___core__Sys___extern_kind(var24
);
8595 { /* Inline kernel#Object#== (self,var25) on <self:MClassKind> */
8598 { /* Inline kernel#Object#is_same_instance (self,var_other5) on <self:MClassKind> */
8599 var30
= self
== var_other5
;
8602 RET_LABEL29
:(void)0;
8607 RET_LABEL27
:(void)0;
8612 { /* Inline kernel#Object#== (self,var_other) on <self:MClassKind> */
8613 var_other5
= var_other
;
8615 { /* Inline kernel#Object#is_same_instance (self,var_other5) on <self:MClassKind> */
8616 var35
= self
== var_other5
;
8619 RET_LABEL34
:(void)0;
8624 RET_LABEL32
:(void)0;
8632 var38
= nitc__model___core__Sys___enum_kind(var37
);
8635 { /* Inline kernel#Object#== (var_other,var38) on <var_other:MClassKind> */
8638 { /* Inline kernel#Object#is_same_instance (var_other,var_other5) on <var_other:MClassKind> */
8639 var43
= var_other
== var_other5
;
8642 RET_LABEL42
:(void)0;
8647 RET_LABEL40
:(void)0;
8656 var46
= nitc__model___core__Sys___extern_kind(var45
);
8659 { /* Inline kernel#Object#== (var_other,var46) on <var_other:MClassKind> */
8662 { /* Inline kernel#Object#is_same_instance (var_other,var_other5) on <var_other:MClassKind> */
8663 var51
= var_other
== var_other5
;
8666 RET_LABEL50
:(void)0;
8671 RET_LABEL48
:(void)0;
8688 /* method model#MClassKind#init for (self: MClassKind) */
8689 void nitc___nitc__MClassKind___core__kernel__Object__init(val
* self
) {
8691 ((void(*)(val
* self
))(self
->class->vft
[COLOR_nitc___nitc__MClassKind___core__kernel__Object__init
]))(self
); /* init on <self:MClassKind>*/
8695 /* method model#Sys#abstract_kind for (self: Sys): MClassKind */
8696 val
* nitc__model___core__Sys___abstract_kind(val
* self
) {
8697 val
* var
/* : MClassKind */;
8698 static val
* varonce
;
8699 static int varonce_guard
;
8700 val
* var1
/* : MClassKind */;
8701 val
* var2
/* : MClassKind */;
8702 static val
* varonce3
;
8703 val
* var4
/* : String */;
8704 char* var5
/* : NativeString */;
8705 val
* var6
/* : String */;
8706 if (likely(varonce_guard
)) {
8709 var2
= NEW_nitc__MClassKind(&type_nitc__MClassKind
);
8710 if (likely(varonce3
!=NULL
)) {
8713 var5
= "abstract class";
8714 var6
= core__flat___NativeString___to_s_full(var5
, 14l, 14l);
8719 ((void(*)(val
* self
, val
* p0
))(var2
->class->vft
[COLOR_nitc__model__MClassKind__to_s_61d
]))(var2
, var4
); /* to_s= on <var2:MClassKind>*/
8722 ((void(*)(val
* self
, short int p0
))(var2
->class->vft
[COLOR_nitc__model__MClassKind__need_init_61d
]))(var2
, 1); /* need_init= on <var2:MClassKind>*/
8725 ((void(*)(val
* self
))(var2
->class->vft
[COLOR_core__kernel__Object__init
]))(var2
); /* init on <var2:MClassKind>*/
8736 /* method model#Sys#concrete_kind for (self: Sys): MClassKind */
8737 val
* nitc__model___core__Sys___concrete_kind(val
* self
) {
8738 val
* var
/* : MClassKind */;
8739 static val
* varonce
;
8740 static int varonce_guard
;
8741 val
* var1
/* : MClassKind */;
8742 val
* var2
/* : MClassKind */;
8743 static val
* varonce3
;
8744 val
* var4
/* : String */;
8745 char* var5
/* : NativeString */;
8746 val
* var6
/* : String */;
8747 if (likely(varonce_guard
)) {
8750 var2
= NEW_nitc__MClassKind(&type_nitc__MClassKind
);
8751 if (likely(varonce3
!=NULL
)) {
8755 var6
= core__flat___NativeString___to_s_full(var5
, 5l, 5l);
8760 ((void(*)(val
* self
, val
* p0
))(var2
->class->vft
[COLOR_nitc__model__MClassKind__to_s_61d
]))(var2
, var4
); /* to_s= on <var2:MClassKind>*/
8763 ((void(*)(val
* self
, short int p0
))(var2
->class->vft
[COLOR_nitc__model__MClassKind__need_init_61d
]))(var2
, 1); /* need_init= on <var2:MClassKind>*/
8766 ((void(*)(val
* self
))(var2
->class->vft
[COLOR_core__kernel__Object__init
]))(var2
); /* init on <var2:MClassKind>*/
8777 /* method model#Sys#interface_kind for (self: Sys): MClassKind */
8778 val
* nitc__model___core__Sys___interface_kind(val
* self
) {
8779 val
* var
/* : MClassKind */;
8780 static val
* varonce
;
8781 static int varonce_guard
;
8782 val
* var1
/* : MClassKind */;
8783 val
* var2
/* : MClassKind */;
8784 static val
* varonce3
;
8785 val
* var4
/* : String */;
8786 char* var5
/* : NativeString */;
8787 val
* var6
/* : String */;
8788 if (likely(varonce_guard
)) {
8791 var2
= NEW_nitc__MClassKind(&type_nitc__MClassKind
);
8792 if (likely(varonce3
!=NULL
)) {
8796 var6
= core__flat___NativeString___to_s_full(var5
, 9l, 9l);
8801 ((void(*)(val
* self
, val
* p0
))(var2
->class->vft
[COLOR_nitc__model__MClassKind__to_s_61d
]))(var2
, var4
); /* to_s= on <var2:MClassKind>*/
8804 ((void(*)(val
* self
, short int p0
))(var2
->class->vft
[COLOR_nitc__model__MClassKind__need_init_61d
]))(var2
, 0); /* need_init= on <var2:MClassKind>*/
8807 ((void(*)(val
* self
))(var2
->class->vft
[COLOR_core__kernel__Object__init
]))(var2
); /* init on <var2:MClassKind>*/
8818 /* method model#Sys#enum_kind for (self: Sys): MClassKind */
8819 val
* nitc__model___core__Sys___enum_kind(val
* self
) {
8820 val
* var
/* : MClassKind */;
8821 static val
* varonce
;
8822 static int varonce_guard
;
8823 val
* var1
/* : MClassKind */;
8824 val
* var2
/* : MClassKind */;
8825 static val
* varonce3
;
8826 val
* var4
/* : String */;
8827 char* var5
/* : NativeString */;
8828 val
* var6
/* : String */;
8829 if (likely(varonce_guard
)) {
8832 var2
= NEW_nitc__MClassKind(&type_nitc__MClassKind
);
8833 if (likely(varonce3
!=NULL
)) {
8837 var6
= core__flat___NativeString___to_s_full(var5
, 4l, 4l);
8842 ((void(*)(val
* self
, val
* p0
))(var2
->class->vft
[COLOR_nitc__model__MClassKind__to_s_61d
]))(var2
, var4
); /* to_s= on <var2:MClassKind>*/
8845 ((void(*)(val
* self
, short int p0
))(var2
->class->vft
[COLOR_nitc__model__MClassKind__need_init_61d
]))(var2
, 0); /* need_init= on <var2:MClassKind>*/
8848 ((void(*)(val
* self
))(var2
->class->vft
[COLOR_core__kernel__Object__init
]))(var2
); /* init on <var2:MClassKind>*/
8859 /* method model#Sys#extern_kind for (self: Sys): MClassKind */
8860 val
* nitc__model___core__Sys___extern_kind(val
* self
) {
8861 val
* var
/* : MClassKind */;
8862 static val
* varonce
;
8863 static int varonce_guard
;
8864 val
* var1
/* : MClassKind */;
8865 val
* var2
/* : MClassKind */;
8866 static val
* varonce3
;
8867 val
* var4
/* : String */;
8868 char* var5
/* : NativeString */;
8869 val
* var6
/* : String */;
8870 if (likely(varonce_guard
)) {
8873 var2
= NEW_nitc__MClassKind(&type_nitc__MClassKind
);
8874 if (likely(varonce3
!=NULL
)) {
8877 var5
= "extern class";
8878 var6
= core__flat___NativeString___to_s_full(var5
, 12l, 12l);
8883 ((void(*)(val
* self
, val
* p0
))(var2
->class->vft
[COLOR_nitc__model__MClassKind__to_s_61d
]))(var2
, var4
); /* to_s= on <var2:MClassKind>*/
8886 ((void(*)(val
* self
, short int p0
))(var2
->class->vft
[COLOR_nitc__model__MClassKind__need_init_61d
]))(var2
, 0); /* need_init= on <var2:MClassKind>*/
8889 ((void(*)(val
* self
))(var2
->class->vft
[COLOR_core__kernel__Object__init
]))(var2
); /* init on <var2:MClassKind>*/