1 #include "nit__platform.sep.0.h"
2 /* method platform#ToolContext#platform_from_name for (self: ToolContext, String): nullable Platform */
3 val
* nit__platform___ToolContext___platform_from_name(val
* self
, val
* p0
) {
4 val
* var
/* : nullable Platform */;
5 val
* var_name
/* var name: String */;
12 /* method platform#PlatformPhase#process_annotated_node for (self: PlatformPhase, ANode, AAnnotation) */
13 void nit__platform___nit__platform__PlatformPhase___nit__phase__Phase__process_annotated_node(val
* self
, val
* p0
, val
* p1
) {
14 val
* var_nmoduledecl
/* var nmoduledecl: ANode */;
15 val
* var_nat
/* var nat: AAnnotation */;
17 val
* var
/* : String */;
18 char* var1
/* : NativeString */;
19 val
* var2
/* : FlatString */;
20 val
* var_annotation_name
/* var annotation_name: String */;
21 val
* var3
/* : String */;
22 short int var4
/* : Bool */;
23 val
* var_other
/* var other: nullable Object */;
24 short int var6
/* : Bool */;
25 short int var7
/* : Bool */;
26 val
* var8
/* : ToolContext */;
27 val
* var10
/* : ToolContext */;
28 val
* var11
/* : ModelBuilder */;
29 val
* var_modelbuilder
/* var modelbuilder: ModelBuilder */;
30 short int var12
/* : Bool */;
33 short int var13
/* : Bool */;
34 val
* var15
/* : NativeArray[String] */;
35 static val
* varonce14
;
36 static val
* varonce16
;
37 val
* var17
/* : String */;
38 char* var18
/* : NativeString */;
39 val
* var19
/* : FlatString */;
40 static val
* varonce20
;
41 val
* var21
/* : String */;
42 char* var22
/* : NativeString */;
43 val
* var23
/* : FlatString */;
44 val
* var24
/* : String */;
45 val
* var25
/* : ANodes[AExpr] */;
46 val
* var27
/* : ANodes[AExpr] */;
47 val
* var_args
/* var args: ANodes[AExpr] */;
48 long var28
/* : Int */;
49 short int var29
/* : Bool */;
50 short int var31
/* : Bool */;
53 const char* var_class_name
;
54 short int var34
/* : Bool */;
55 val
* var36
/* : NativeArray[String] */;
56 static val
* varonce35
;
57 static val
* varonce37
;
58 val
* var38
/* : String */;
59 char* var39
/* : NativeString */;
60 val
* var40
/* : FlatString */;
61 static val
* varonce41
;
62 val
* var42
/* : String */;
63 char* var43
/* : NativeString */;
64 val
* var44
/* : FlatString */;
65 val
* var45
/* : String */;
66 short int var46
/* : Bool */;
67 val
* var47
/* : AModuleName */;
68 val
* var49
/* : AModuleName */;
69 val
* var50
/* : String */;
70 val
* var_platform_name
/* var platform_name: nullable Object */;
71 val
* var51
/* : nullable Object */;
72 val
* var52
/* : nullable String */;
73 short int var53
/* : Bool */;
74 short int var54
/* : Bool */;
75 val
* var56
/* : NativeArray[String] */;
76 static val
* varonce55
;
77 static val
* varonce57
;
78 val
* var58
/* : String */;
79 char* var59
/* : NativeString */;
80 val
* var60
/* : FlatString */;
81 static val
* varonce61
;
82 val
* var62
/* : String */;
83 char* var63
/* : NativeString */;
84 val
* var64
/* : FlatString */;
85 val
* var65
/* : String */;
86 val
* var_format_error
/* var format_error: String */;
87 val
* var66
/* : nullable ANode */;
88 val
* var68
/* : nullable ANode */;
89 short int var69
/* : Bool */;
92 const char* var_class_name72
;
93 val
* var_nmodule
/* var nmodule: AModule */;
94 val
* var73
/* : nullable MModule */;
95 val
* var75
/* : nullable MModule */;
96 val
* var_mmodule
/* var mmodule: nullable MModule */;
97 val
* var76
/* : ToolContext */;
98 val
* var78
/* : ToolContext */;
99 val
* var79
/* : nullable Platform */;
100 val
* var_platform
/* var platform: nullable Platform */;
101 short int var80
/* : Bool */;
102 short int var81
/* : Bool */;
103 val
* var_other83
/* var other: nullable Object */;
104 short int var84
/* : Bool */;
105 short int var86
/* : Bool */;
106 val
* var87
/* : ToolContext */;
107 val
* var89
/* : ToolContext */;
108 val
* var90
/* : Location */;
109 val
* var92
/* : Location */;
110 val
* var94
/* : NativeArray[String] */;
111 static val
* varonce93
;
112 static val
* varonce95
;
113 val
* var96
/* : String */;
114 char* var97
/* : NativeString */;
115 val
* var98
/* : FlatString */;
116 static val
* varonce99
;
117 val
* var100
/* : String */;
118 char* var101
/* : NativeString */;
119 val
* var102
/* : FlatString */;
120 val
* var103
/* : String */;
121 val
* var104
/* : Message */;
122 val
* var105
/* : nullable Platform */;
123 val
* var_previous_target_platform
/* var previous_target_platform: nullable Platform */;
124 short int var106
/* : Bool */;
125 short int var107
/* : Bool */;
126 short int var108
/* : Bool */;
127 short int var110
/* : Bool */;
128 short int var111
/* : Bool */;
129 short int var_
/* var : Bool */;
130 short int var112
/* : Bool */;
131 short int var114
/* : Bool */;
132 short int var115
/* : Bool */;
133 val
* var117
/* : NativeArray[String] */;
134 static val
* varonce116
;
135 static val
* varonce118
;
136 val
* var119
/* : String */;
137 char* var120
/* : NativeString */;
138 val
* var121
/* : FlatString */;
139 static val
* varonce122
;
140 val
* var123
/* : String */;
141 char* var124
/* : NativeString */;
142 val
* var125
/* : FlatString */;
143 val
* var126
/* : String */;
144 val
* var127
/* : String */;
145 var_nmoduledecl
= p0
;
147 if (likely(varonce
!=NULL
)) {
151 var2
= standard___standard__NativeString___to_s_with_length(var1
, 8l);
155 var_annotation_name
= var
;
157 var3
= nit___nit__AAnnotation___name(var_nat
);
160 { /* Inline kernel#Object#!= (var3,var_annotation_name) on <var3:String> */
161 var_other
= var_annotation_name
;
163 var6
= ((short int(*)(val
* self
, val
* p0
))(var3
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var3
, var_other
); /* == on <var3:String>*/
176 { /* Inline phase#Phase#toolcontext (self) on <self:PlatformPhase> */
177 var10
= self
->attrs
[COLOR_nit__phase__Phase___toolcontext
].val
; /* _toolcontext on <self:PlatformPhase> */
178 if (unlikely(var10
== NULL
)) {
179 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _toolcontext");
180 PRINT_ERROR(" (%s:%d)\n", FILE_nit__phase
, 200);
188 var11
= nit__modelbuilder_base___ToolContext___modelbuilder(var8
);
190 var_modelbuilder
= var11
;
191 /* <var_nmoduledecl:ANode> isa AModuledecl */
192 cltype
= type_nit__AModuledecl
.color
;
193 idtype
= type_nit__AModuledecl
.id
;
194 if(cltype
>= var_nmoduledecl
->type
->table_size
) {
197 var12
= var_nmoduledecl
->type
->type_table
[cltype
] == idtype
;
201 if (unlikely(varonce14
==NULL
)) {
202 var15
= NEW_standard__NativeArray(3l, &type_standard__NativeArray__standard__String
);
203 if (likely(varonce16
!=NULL
)) {
206 var18
= "Syntax Error: only the declaration of modules may use `";
207 var19
= standard___standard__NativeString___to_s_with_length(var18
, 55l);
211 ((struct instance_standard__NativeArray
*)var15
)->values
[0]=var17
;
212 if (likely(varonce20
!=NULL
)) {
216 var23
= standard___standard__NativeString___to_s_with_length(var22
, 2l);
220 ((struct instance_standard__NativeArray
*)var15
)->values
[2]=var21
;
225 ((struct instance_standard__NativeArray
*)var15
)->values
[1]=var_annotation_name
;
227 var24
= ((val
*(*)(val
* self
))(var15
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var15
); /* native_to_s on <var15:NativeArray[String]>*/
231 nit___nit__ModelBuilder___error(var_modelbuilder
, var_nat
, var24
); /* Direct call modelbuilder_base#ModelBuilder#error on <var_modelbuilder:ModelBuilder>*/
237 { /* Inline parser_nodes#AAnnotation#n_args (var_nat) on <var_nat:AAnnotation> */
238 var27
= var_nat
->attrs
[COLOR_nit__parser_nodes__AAnnotation___n_args
].val
; /* _n_args on <var_nat:AAnnotation> */
239 if (unlikely(var27
== NULL
)) {
240 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args");
241 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 2988);
250 var28
= nit___nit__ANodes___standard__abstract_collection__Collection__length(var_args
);
253 { /* Inline kernel#Int#> (var28,1l) on <var28:Int> */
254 /* Covariant cast for argument 0 (i) <1l:Int> isa OTHER */
255 /* <1l:Int> isa OTHER */
256 var31
= 1; /* easy <1l:Int> isa OTHER*/
257 if (unlikely(!var31
)) {
258 var_class_name
= type_standard__Int
.name
;
259 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
260 PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel
, 536);
270 if (unlikely(varonce35
==NULL
)) {
271 var36
= NEW_standard__NativeArray(3l, &type_standard__NativeArray__standard__String
);
272 if (likely(varonce37
!=NULL
)) {
275 var39
= "Syntax Error: `";
276 var40
= standard___standard__NativeString___to_s_with_length(var39
, 15l);
280 ((struct instance_standard__NativeArray
*)var36
)->values
[0]=var38
;
281 if (likely(varonce41
!=NULL
)) {
284 var43
= "` expects at most a single argument.";
285 var44
= standard___standard__NativeString___to_s_with_length(var43
, 36l);
289 ((struct instance_standard__NativeArray
*)var36
)->values
[2]=var42
;
294 ((struct instance_standard__NativeArray
*)var36
)->values
[1]=var_annotation_name
;
296 var45
= ((val
*(*)(val
* self
))(var36
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var36
); /* native_to_s on <var36:NativeArray[String]>*/
300 nit___nit__ModelBuilder___error(var_modelbuilder
, var_nat
, var45
); /* Direct call modelbuilder_base#ModelBuilder#error on <var_modelbuilder:ModelBuilder>*/
305 var46
= nit___nit__ANodes___standard__abstract_collection__Collection__is_empty(var_args
);
309 { /* Inline parser_nodes#AModuledecl#n_name (var_nmoduledecl) on <var_nmoduledecl:ANode(AModuledecl)> */
310 var49
= var_nmoduledecl
->attrs
[COLOR_nit__parser_nodes__AModuledecl___n_name
].val
; /* _n_name on <var_nmoduledecl:ANode(AModuledecl)> */
311 if (unlikely(var49
== NULL
)) {
312 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_name");
313 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 1120);
321 var50
= nit__parser_work___Prod___collect_text(var47
);
323 var_platform_name
= var50
;
326 var51
= standard___standard__SequenceRead___Collection__first(var_args
);
329 var52
= nit__literal___AExpr___as_string(var51
);
331 var_platform_name
= var52
;
332 if (var_platform_name
== NULL
) {
333 var53
= 1; /* is null */
335 var53
= 0; /* arg is null but recv is not */
338 var54
= ((short int(*)(val
* self
, val
* p0
))(var_platform_name
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_platform_name
, ((val
*)NULL
)); /* == on <var_platform_name:nullable Object(nullable String)>*/
342 if (unlikely(varonce55
==NULL
)) {
343 var56
= NEW_standard__NativeArray(3l, &type_standard__NativeArray__standard__String
);
344 if (likely(varonce57
!=NULL
)) {
347 var59
= "Syntax Error: `";
348 var60
= standard___standard__NativeString___to_s_with_length(var59
, 15l);
352 ((struct instance_standard__NativeArray
*)var56
)->values
[0]=var58
;
353 if (likely(varonce61
!=NULL
)) {
356 var63
= "` expects its argument to be the name of the target platform as a String literal.";
357 var64
= standard___standard__NativeString___to_s_with_length(var63
, 81l);
361 ((struct instance_standard__NativeArray
*)var56
)->values
[2]=var62
;
366 ((struct instance_standard__NativeArray
*)var56
)->values
[1]=var_annotation_name
;
368 var65
= ((val
*(*)(val
* self
))(var56
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var56
); /* native_to_s on <var56:NativeArray[String]>*/
371 var_format_error
= var65
;
373 nit___nit__ModelBuilder___error(var_modelbuilder
, var_nat
, var_format_error
); /* Direct call modelbuilder_base#ModelBuilder#error on <var_modelbuilder:ModelBuilder>*/
381 { /* Inline parser_nodes#ANode#parent (var_nmoduledecl) on <var_nmoduledecl:ANode(AModuledecl)> */
382 var68
= var_nmoduledecl
->attrs
[COLOR_nit__parser_nodes__ANode___parent
].val
; /* _parent on <var_nmoduledecl:ANode(AModuledecl)> */
387 /* <var66:nullable ANode> isa AModule */
388 cltype70
= type_nit__AModule
.color
;
389 idtype71
= type_nit__AModule
.id
;
393 if(cltype70
>= var66
->type
->table_size
) {
396 var69
= var66
->type
->type_table
[cltype70
] == idtype71
;
399 if (unlikely(!var69
)) {
400 var_class_name72
= var66
== NULL ?
"null" : var66
->type
->name
;
401 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AModule", var_class_name72
);
402 PRINT_ERROR(" (%s:%d)\n", FILE_nit__platform
, 67);
407 { /* Inline loader#AModule#mmodule (var_nmodule) on <var_nmodule:AModule> */
408 var75
= var_nmodule
->attrs
[COLOR_nit__loader__AModule___mmodule
].val
; /* _mmodule on <var_nmodule:AModule> */
415 { /* Inline phase#Phase#toolcontext (self) on <self:PlatformPhase> */
416 var78
= self
->attrs
[COLOR_nit__phase__Phase___toolcontext
].val
; /* _toolcontext on <self:PlatformPhase> */
417 if (unlikely(var78
== NULL
)) {
418 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _toolcontext");
419 PRINT_ERROR(" (%s:%d)\n", FILE_nit__phase
, 200);
427 var79
= nit__platform___ToolContext___platform_from_name(var76
, var_platform_name
);
429 var_platform
= var79
;
430 if (var_platform
== NULL
) {
431 var80
= 1; /* is null */
433 var80
= 0; /* arg is null but recv is not */
436 { /* Inline kernel#Object#== (var_platform,((val*)NULL)) on <var_platform:nullable Platform> */
437 var_other83
= ((val
*)NULL
);
439 { /* Inline kernel#Object#is_same_instance (var_platform,var_other83) on <var_platform:nullable Platform(Platform)> */
440 var86
= var_platform
== var_other83
;
454 { /* Inline phase#Phase#toolcontext (self) on <self:PlatformPhase> */
455 var89
= self
->attrs
[COLOR_nit__phase__Phase___toolcontext
].val
; /* _toolcontext on <self:PlatformPhase> */
456 if (unlikely(var89
== NULL
)) {
457 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _toolcontext");
458 PRINT_ERROR(" (%s:%d)\n", FILE_nit__phase
, 200);
466 { /* Inline parser_nodes#ANode#location (var_nat) on <var_nat:AAnnotation> */
467 var92
= var_nat
->attrs
[COLOR_nit__parser_nodes__ANode___location
].val
; /* _location on <var_nat:AAnnotation> */
468 if (unlikely(var92
== NULL
)) {
469 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _location");
470 PRINT_ERROR(" (%s:%d)\n", FILE_nit__parser_nodes
, 24);
477 if (unlikely(varonce93
==NULL
)) {
478 var94
= NEW_standard__NativeArray(3l, &type_standard__NativeArray__standard__String
);
479 if (likely(varonce95
!=NULL
)) {
482 var97
= "Error: target platform `";
483 var98
= standard___standard__NativeString___to_s_with_length(var97
, 24l);
487 ((struct instance_standard__NativeArray
*)var94
)->values
[0]=var96
;
488 if (likely(varonce99
!=NULL
)) {
491 var101
= "` unknown.";
492 var102
= standard___standard__NativeString___to_s_with_length(var101
, 10l);
496 ((struct instance_standard__NativeArray
*)var94
)->values
[2]=var100
;
501 ((struct instance_standard__NativeArray
*)var94
)->values
[1]=var_platform_name
;
503 var103
= ((val
*(*)(val
* self
))(var94
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var94
); /* native_to_s on <var94:NativeArray[String]>*/
507 var104
= nit___nit__ToolContext___error(var87
, var90
, var103
);
512 if (var_mmodule
== NULL
) {
513 PRINT_ERROR("Runtime error: %s", "Receiver is null");
514 PRINT_ERROR(" (%s:%d)\n", FILE_nit__platform
, 76);
517 var105
= nit__platform___MModule___target_platform(var_mmodule
);
519 var_previous_target_platform
= var105
;
520 if (var_previous_target_platform
== NULL
) {
521 var107
= 0; /* is null */
523 var107
= 1; /* arg is null and recv is not */
526 { /* Inline kernel#Object#!= (var_previous_target_platform,((val*)NULL)) on <var_previous_target_platform:nullable Platform> */
527 var_other
= ((val
*)NULL
);
529 var110
= ((short int(*)(val
* self
, val
* p0
))(var_previous_target_platform
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_previous_target_platform
, var_other
); /* == on <var_previous_target_platform:nullable Platform(Platform)>*/
534 RET_LABEL109
:(void)0;
541 { /* Inline kernel#Object#!= (var_previous_target_platform,var_platform) on <var_previous_target_platform:nullable Platform(Platform)> */
542 var_other
= var_platform
;
544 var114
= ((short int(*)(val
* self
, val
* p0
))(var_previous_target_platform
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_previous_target_platform
, var_other
); /* == on <var_previous_target_platform:nullable Platform(Platform)>*/
549 RET_LABEL113
:(void)0;
557 if (unlikely(varonce116
==NULL
)) {
558 var117
= NEW_standard__NativeArray(3l, &type_standard__NativeArray__standard__String
);
559 if (likely(varonce118
!=NULL
)) {
562 var120
= "Syntax Error: a target platform has already been defined as `";
563 var121
= standard___standard__NativeString___to_s_with_length(var120
, 61l);
567 ((struct instance_standard__NativeArray
*)var117
)->values
[0]=var119
;
568 if (likely(varonce122
!=NULL
)) {
572 var125
= standard___standard__NativeString___to_s_with_length(var124
, 2l);
576 ((struct instance_standard__NativeArray
*)var117
)->values
[2]=var123
;
582 var126
= ((val
*(*)(val
* self
))(var_previous_target_platform
->class->vft
[COLOR_standard__string__Object__to_s
]))(var_previous_target_platform
); /* to_s on <var_previous_target_platform:nullable Platform(Platform)>*/
584 ((struct instance_standard__NativeArray
*)var117
)->values
[1]=var126
;
586 var127
= ((val
*(*)(val
* self
))(var117
->class->vft
[COLOR_standard__string__NativeArray__native_to_s
]))(var117
); /* native_to_s on <var117:NativeArray[String]>*/
590 nit___nit__ModelBuilder___error(var_modelbuilder
, var_nat
, var127
); /* Direct call modelbuilder_base#ModelBuilder#error on <var_modelbuilder:ModelBuilder>*/
594 if (var_mmodule
== NULL
) {
595 PRINT_ERROR("Runtime error: %s", "Receiver is null");
596 PRINT_ERROR(" (%s:%d)\n", FILE_nit__platform
, 81);
599 { /* Inline platform#MModule#local_target_platform= (var_mmodule,var_platform) on <var_mmodule:nullable MModule> */
600 if (unlikely(var_mmodule
== NULL
)) {
601 PRINT_ERROR("Runtime error: %s", "Receiver is null");
602 PRINT_ERROR(" (%s:%d)\n", FILE_nit__platform
, 86);
605 var_mmodule
->attrs
[COLOR_nit__platform__MModule___local_target_platform
].val
= var_platform
; /* _local_target_platform on <var_mmodule:nullable MModule> */
606 RET_LABEL128
:(void)0;
611 /* method platform#MModule#local_target_platform for (self: MModule): nullable Platform */
612 val
* nit__platform___MModule___local_target_platform(val
* self
) {
613 val
* var
/* : nullable Platform */;
614 val
* var1
/* : nullable Platform */;
615 var1
= self
->attrs
[COLOR_nit__platform__MModule___local_target_platform
].val
; /* _local_target_platform on <self:MModule> */
620 /* method platform#MModule#local_target_platform= for (self: MModule, nullable Platform) */
621 void nit__platform___MModule___local_target_platform_61d(val
* self
, val
* p0
) {
622 self
->attrs
[COLOR_nit__platform__MModule___local_target_platform
].val
= p0
; /* _local_target_platform on <self:MModule> */
625 /* method platform#MModule#target_platform for (self: MModule): nullable Platform */
626 val
* nit__platform___MModule___target_platform(val
* self
) {
627 val
* var
/* : nullable Platform */;
628 val
* var1
/* : nullable Platform */;
629 val
* var3
/* : nullable Platform */;
630 val
* var_ltp
/* var ltp: nullable Platform */;
631 short int var4
/* : Bool */;
632 short int var5
/* : Bool */;
633 val
* var_other
/* var other: nullable Object */;
634 short int var7
/* : Bool */;
635 short int var8
/* : Bool */;
636 val
* var9
/* : POSetElement[MModule] */;
637 val
* var11
/* : POSetElement[MModule] */;
638 val
* var12
/* : Collection[nullable Object] */;
639 val
* var_
/* var : Collection[MModule] */;
640 val
* var13
/* : Iterator[nullable Object] */;
641 val
* var_14
/* var : Iterator[MModule] */;
642 short int var15
/* : Bool */;
643 val
* var16
/* : nullable Object */;
644 val
* var_mmodule
/* var mmodule: MModule */;
645 val
* var17
/* : nullable Platform */;
646 val
* var19
/* : nullable Platform */;
647 short int var20
/* : Bool */;
648 short int var21
/* : Bool */;
649 short int var23
/* : Bool */;
650 short int var24
/* : Bool */;
652 { /* Inline platform#MModule#local_target_platform (self) on <self:MModule> */
653 var3
= self
->attrs
[COLOR_nit__platform__MModule___local_target_platform
].val
; /* _local_target_platform on <self:MModule> */
659 if (var_ltp
== NULL
) {
660 var4
= 0; /* is null */
662 var4
= 1; /* arg is null and recv is not */
665 { /* Inline kernel#Object#!= (var_ltp,((val*)NULL)) on <var_ltp:nullable Platform> */
666 var_other
= ((val
*)NULL
);
668 var7
= ((short int(*)(val
* self
, val
* p0
))(var_ltp
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_ltp
, var_other
); /* == on <var_ltp:nullable Platform(Platform)>*/
683 { /* Inline mmodule#MModule#in_importation (self) on <self:MModule> */
684 var11
= self
->attrs
[COLOR_nit__mmodule__MModule___in_importation
].val
; /* _in_importation on <self:MModule> */
685 if (unlikely(var11
== NULL
)) {
686 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _in_importation");
687 PRINT_ERROR(" (%s:%d)\n", FILE_nit__mmodule
, 96);
695 var12
= poset___poset__POSetElement___greaters(var9
);
699 var13
= ((val
*(*)(val
* self
))((((long)var_
&3)?class_info
[((long)var_
&3)]:var_
->class)->vft
[COLOR_standard__abstract_collection__Collection__iterator
]))(var_
); /* iterator on <var_:Collection[MModule]>*/
704 var15
= ((short int(*)(val
* self
))((((long)var_14
&3)?class_info
[((long)var_14
&3)]:var_14
->class)->vft
[COLOR_standard__abstract_collection__Iterator__is_ok
]))(var_14
); /* is_ok on <var_14:Iterator[MModule]>*/
708 var16
= ((val
*(*)(val
* self
))((((long)var_14
&3)?class_info
[((long)var_14
&3)]:var_14
->class)->vft
[COLOR_standard__abstract_collection__Iterator__item
]))(var_14
); /* item on <var_14:Iterator[MModule]>*/
712 { /* Inline platform#MModule#local_target_platform (var_mmodule) on <var_mmodule:MModule> */
713 var19
= var_mmodule
->attrs
[COLOR_nit__platform__MModule___local_target_platform
].val
; /* _local_target_platform on <var_mmodule:MModule> */
719 if (var_ltp
== NULL
) {
720 var20
= 0; /* is null */
722 var20
= 1; /* arg is null and recv is not */
725 { /* Inline kernel#Object#!= (var_ltp,((val*)NULL)) on <var_ltp:nullable Platform> */
726 var_other
= ((val
*)NULL
);
728 var23
= ((short int(*)(val
* self
, val
* p0
))(var_ltp
->class->vft
[COLOR_standard__kernel__Object___61d_61d
]))(var_ltp
, var_other
); /* == on <var_ltp:nullable Platform(Platform)>*/
743 ((void(*)(val
* self
))((((long)var_14
&3)?class_info
[((long)var_14
&3)]:var_14
->class)->vft
[COLOR_standard__abstract_collection__Iterator__next
]))(var_14
); /* next on <var_14:Iterator[MModule]>*/
749 BREAK_label
: (void)0;
751 ((void(*)(val
* self
))((((long)var_14
&3)?class_info
[((long)var_14
&3)]:var_14
->class)->vft
[COLOR_standard__abstract_collection__Iterator__finish
]))(var_14
); /* finish on <var_14:Iterator[MModule]>*/
758 /* method platform#Platform#supports_libunwind for (self: Platform): Bool */
759 short int nit___nit__Platform___supports_libunwind(val
* self
) {
760 short int var
/* : Bool */;
766 /* method platform#Platform#supports_libgc for (self: Platform): Bool */
767 short int nit___nit__Platform___supports_libgc(val
* self
) {
768 short int var
/* : Bool */;
774 /* method platform#Platform#no_main for (self: Platform): Bool */
775 short int nit___nit__Platform___no_main(val
* self
) {
776 short int var
/* : Bool */;
782 /* method platform#Platform#supports_linker_script for (self: Platform): Bool */
783 short int nit___nit__Platform___supports_linker_script(val
* self
) {
784 short int var
/* : Bool */;