1 #include "opts.sep.0.h"
2 /* method opts$Option$names for (self: Option): Array[String] */
3 val
* opts___opts__Option___names(val
* self
) {
4 val
* var
/* : Array[String] */;
5 val
* var1
/* : Array[String] */;
6 var1
= self
->attrs
[COLOR_opts__Option___names
].val
; /* _names on <self:Option> */
7 if (unlikely(var1
== NULL
)) {
8 if(catchStack
.cursor
>= 0){
9 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
11 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _names");
12 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 19);
19 /* method opts$Option$names= for (self: Option, Array[String]) */
20 void opts___opts__Option___names_61d(val
* self
, val
* p0
) {
21 self
->attrs
[COLOR_opts__Option___names
].val
= p0
; /* _names on <self:Option> */
24 /* method opts$Option$helptext for (self: Option): String */
25 val
* opts___opts__Option___helptext(val
* self
) {
26 val
* var
/* : String */;
27 val
* var1
/* : String */;
28 var1
= self
->attrs
[COLOR_opts__Option___helptext
].val
; /* _helptext on <self:Option> */
29 if (unlikely(var1
== NULL
)) {
30 if(catchStack
.cursor
>= 0){
31 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
33 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _helptext");
34 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 25);
41 /* method opts$Option$helptext= for (self: Option, String) */
42 void opts___opts__Option___helptext_61d(val
* self
, val
* p0
) {
43 self
->attrs
[COLOR_opts__Option___helptext
].val
= p0
; /* _helptext on <self:Option> */
46 /* method opts$Option$errors for (self: Option): Array[String] */
47 val
* opts___opts__Option___errors(val
* self
) {
48 val
* var
/* : Array[String] */;
49 val
* var1
/* : Array[String] */;
50 var1
= self
->attrs
[COLOR_opts__Option___errors
].val
; /* _errors on <self:Option> */
51 if (unlikely(var1
== NULL
)) {
52 if(catchStack
.cursor
>= 0){
53 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
55 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _errors");
56 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 28);
63 /* method opts$Option$mandatory for (self: Option): Bool */
64 short int opts___opts__Option___mandatory(val
* self
) {
65 short int var
/* : Bool */;
66 short int var1
/* : Bool */;
67 var1
= self
->attrs
[COLOR_opts__Option___mandatory
].s
; /* _mandatory on <self:Option> */
72 /* method opts$Option$hidden for (self: Option): Bool */
73 short int opts___opts__Option___hidden(val
* self
) {
74 short int var
/* : Bool */;
75 short int var1
/* : Bool */;
76 var1
= self
->attrs
[COLOR_opts__Option___hidden
].s
; /* _hidden on <self:Option> */
81 /* method opts$Option$hidden= for (self: Option, Bool) */
82 void opts___opts__Option___hidden_61d(val
* self
, short int p0
) {
83 self
->attrs
[COLOR_opts__Option___hidden
].s
= p0
; /* _hidden on <self:Option> */
86 /* method opts$Option$read for (self: Option): Bool */
87 short int opts___opts__Option___read(val
* self
) {
88 short int var
/* : Bool */;
89 short int var1
/* : Bool */;
90 var1
= self
->attrs
[COLOR_opts__Option___read
].s
; /* _read on <self:Option> */
95 /* method opts$Option$read= for (self: Option, Bool) */
96 void opts___opts__Option___read_61d(val
* self
, short int p0
) {
97 self
->attrs
[COLOR_opts__Option___read
].s
= p0
; /* _read on <self:Option> */
100 /* method opts$Option$value for (self: Option): nullable Object */
101 val
* opts___opts__Option___value(val
* self
) {
102 val
* var
/* : nullable Object */;
103 val
* var1
/* : nullable Object */;
104 var1
= self
->attrs
[COLOR_opts__Option___value
].val
; /* _value on <self:Option> */
109 /* method opts$Option$value= for (self: Option, nullable Object) */
110 void opts___opts__Option___value_61d(val
* self
, val
* p0
) {
111 short int var
/* : Bool */;
114 const struct type
* type_struct
;
115 short int is_nullable
;
116 const char* var_class_name
;
117 /* Covariant cast for argument 0 (value) <p0:nullable Object> isa VALUE */
118 /* <p0:nullable Object> isa VALUE */
119 type_struct
= self
->type
->resolution_table
->types
[COLOR_opts__Option__VALUE
];
120 cltype
= type_struct
->color
;
121 idtype
= type_struct
->id
;
122 is_nullable
= type_struct
->is_nullable
;
126 if(cltype
>= (((long)p0
&3)?type_info
[((long)p0
&3)]:p0
->type
)->table_size
) {
129 var
= (((long)p0
&3)?type_info
[((long)p0
&3)]:p0
->type
)->type_table
[cltype
] == idtype
;
132 if (unlikely(!var
)) {
133 var_class_name
= p0
== NULL ?
"null" : (((long)p0
&3)?type_info
[((long)p0
&3)]:p0
->type
)->name
;
134 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name
);
135 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 40);
138 self
->attrs
[COLOR_opts__Option___value
].val
= p0
; /* _value on <self:Option> */
141 /* method opts$Option$default_value= for (self: Option, nullable Object) */
142 void opts___opts__Option___default_value_61d(val
* self
, val
* p0
) {
143 short int var
/* : Bool */;
146 const struct type
* type_struct
;
147 short int is_nullable
;
148 const char* var_class_name
;
149 /* Covariant cast for argument 0 (default_value) <p0:nullable Object> isa VALUE */
150 /* <p0:nullable Object> isa VALUE */
151 type_struct
= self
->type
->resolution_table
->types
[COLOR_opts__Option__VALUE
];
152 cltype
= type_struct
->color
;
153 idtype
= type_struct
->id
;
154 is_nullable
= type_struct
->is_nullable
;
158 if(cltype
>= (((long)p0
&3)?type_info
[((long)p0
&3)]:p0
->type
)->table_size
) {
161 var
= (((long)p0
&3)?type_info
[((long)p0
&3)]:p0
->type
)->type_table
[cltype
] == idtype
;
164 if (unlikely(!var
)) {
165 var_class_name
= p0
== NULL ?
"null" : (((long)p0
&3)?type_info
[((long)p0
&3)]:p0
->type
)->name
;
166 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name
);
167 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 43);
170 self
->attrs
[COLOR_opts__Option___default_value
].val
= p0
; /* _default_value on <self:Option> */
173 /* method opts$Option$init for (self: Option, String, nullable Object, nullable Array[String]) */
174 void opts___opts__Option___init(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
175 short int var
/* : Bool */;
178 const struct type
* type_struct
;
179 short int is_nullable
;
180 const char* var_class_name
;
181 val
* var_help
/* var help: String */;
182 val
* var_default
/* var default: nullable Object */;
183 val
* var_names
/* var names: nullable Array[String] */;
184 /* Covariant cast for argument 1 (default) <p1:nullable Object> isa VALUE */
185 /* <p1:nullable Object> isa VALUE */
186 type_struct
= self
->type
->resolution_table
->types
[COLOR_opts__Option__VALUE
];
187 cltype
= type_struct
->color
;
188 idtype
= type_struct
->id
;
189 is_nullable
= type_struct
->is_nullable
;
193 if(cltype
>= (((long)p1
&3)?type_info
[((long)p1
&3)]:p1
->type
)->table_size
) {
196 var
= (((long)p1
&3)?type_info
[((long)p1
&3)]:p1
->type
)->type_table
[cltype
] == idtype
;
199 if (unlikely(!var
)) {
200 var_class_name
= p1
== NULL ?
"null" : (((long)p1
&3)?type_info
[((long)p1
&3)]:p1
->type
)->name
;
201 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name
);
202 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 46);
206 { /* Inline kernel$Object$init (self) on <self:Option> */
214 opts___opts__Option___init_opt(self
, var_help
, var_default
, var_names
); /* Direct call opts$Option$init_opt on <self:Option>*/
218 /* method opts$Option$init_opt for (self: Option, String, nullable Object, nullable Array[String]) */
219 void opts___opts__Option___init_opt(val
* self
, val
* p0
, val
* p1
, val
* p2
) {
220 short int var
/* : Bool */;
223 const struct type
* type_struct
;
224 short int is_nullable
;
225 const char* var_class_name
;
226 val
* var_help
/* var help: String */;
227 val
* var_default
/* var default: nullable Object */;
228 val
* var_names
/* var names: nullable Array[String] */;
229 short int var1
/* : Bool */;
230 short int var2
/* : Bool */;
231 val
* var3
/* : Array[String] */;
232 val
* var5
/* : Array[nullable Object] */;
233 short int var9
/* : Bool */;
236 const struct type
* type_struct12
;
237 short int is_nullable13
;
238 const char* var_class_name14
;
239 short int var16
/* : Bool */;
242 const struct type
* type_struct19
;
243 short int is_nullable20
;
244 const char* var_class_name21
;
245 /* Covariant cast for argument 1 (default) <p1:nullable Object> isa VALUE */
246 /* <p1:nullable Object> isa VALUE */
247 type_struct
= self
->type
->resolution_table
->types
[COLOR_opts__Option__VALUE
];
248 cltype
= type_struct
->color
;
249 idtype
= type_struct
->id
;
250 is_nullable
= type_struct
->is_nullable
;
254 if(cltype
>= (((long)p1
&3)?type_info
[((long)p1
&3)]:p1
->type
)->table_size
) {
257 var
= (((long)p1
&3)?type_info
[((long)p1
&3)]:p1
->type
)->type_table
[cltype
] == idtype
;
260 if (unlikely(!var
)) {
261 var_class_name
= p1
== NULL ?
"null" : (((long)p1
&3)?type_info
[((long)p1
&3)]:p1
->type
)->name
;
262 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name
);
263 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 51);
269 if (var_names
== NULL
) {
270 var1
= 1; /* is null */
272 var1
= 0; /* arg is null but recv is not */
275 var2
= core___core__Array___core__kernel__Object___61d_61d(var_names
, ((val
*)NULL
));
279 var3
= NEW_core__Array(&type_core__Array__core__String
);
281 core___core__Array___core__kernel__Object__init(var3
); /* Direct call array$Array$init on <var3:Array[String]>*/
284 { /* Inline opts$Option$names= (self,var3) on <self:Option> */
285 self
->attrs
[COLOR_opts__Option___names
].val
= var3
; /* _names on <self:Option> */
291 var5
= core__array___Collection___to_a(var_names
);
294 { /* Inline opts$Option$names= (self,var5) on <self:Option> */
295 self
->attrs
[COLOR_opts__Option___names
].val
= var5
; /* _names on <self:Option> */
301 { /* Inline opts$Option$helptext= (self,var_help) on <self:Option> */
302 self
->attrs
[COLOR_opts__Option___helptext
].val
= var_help
; /* _helptext on <self:Option> */
307 { /* Inline opts$Option$default_value= (self,var_default) on <self:Option> */
308 /* Covariant cast for argument 0 (default_value) <var_default:nullable Object> isa VALUE */
309 /* <var_default:nullable Object> isa VALUE */
310 type_struct12
= self
->type
->resolution_table
->types
[COLOR_opts__Option__VALUE
];
311 cltype10
= type_struct12
->color
;
312 idtype11
= type_struct12
->id
;
313 is_nullable13
= type_struct12
->is_nullable
;
314 if(var_default
== NULL
) {
315 var9
= is_nullable13
;
317 if(cltype10
>= (((long)var_default
&3)?type_info
[((long)var_default
&3)]:var_default
->type
)->table_size
) {
320 var9
= (((long)var_default
&3)?type_info
[((long)var_default
&3)]:var_default
->type
)->type_table
[cltype10
] == idtype11
;
323 if (unlikely(!var9
)) {
324 var_class_name14
= var_default
== NULL ?
"null" : (((long)var_default
&3)?type_info
[((long)var_default
&3)]:var_default
->type
)->name
;
325 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name14
);
326 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 43);
329 self
->attrs
[COLOR_opts__Option___default_value
].val
= var_default
; /* _default_value on <self:Option> */
334 { /* Inline opts$Option$value= (self,var_default) on <self:Option> */
335 /* Covariant cast for argument 0 (value) <var_default:nullable Object> isa VALUE */
336 /* <var_default:nullable Object> isa VALUE */
337 type_struct19
= self
->type
->resolution_table
->types
[COLOR_opts__Option__VALUE
];
338 cltype17
= type_struct19
->color
;
339 idtype18
= type_struct19
->id
;
340 is_nullable20
= type_struct19
->is_nullable
;
341 if(var_default
== NULL
) {
342 var16
= is_nullable20
;
344 if(cltype17
>= (((long)var_default
&3)?type_info
[((long)var_default
&3)]:var_default
->type
)->table_size
) {
347 var16
= (((long)var_default
&3)?type_info
[((long)var_default
&3)]:var_default
->type
)->type_table
[cltype17
] == idtype18
;
350 if (unlikely(!var16
)) {
351 var_class_name21
= var_default
== NULL ?
"null" : (((long)var_default
&3)?type_info
[((long)var_default
&3)]:var_default
->type
)->name
;
352 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name21
);
353 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 40);
356 self
->attrs
[COLOR_opts__Option___value
].val
= var_default
; /* _value on <self:Option> */
362 /* method opts$Option$to_s for (self: Option): String */
363 val
* opts___opts__Option___core__abstract_text__Object__to_s(val
* self
) {
364 val
* var
/* : String */;
365 val
* var1
/* : String */;
367 var1
= opts___opts__Option___pretty(self
, 2l);
374 /* method opts$Option$pretty for (self: Option, Int): String */
375 val
* opts___opts__Option___pretty(val
* self
, long p0
) {
376 val
* var
/* : String */;
377 long var_off
/* var off: Int */;
378 val
* var1
/* : FlatBuffer */;
380 val
* var2
/* : String */;
381 char* var3
/* : CString */;
382 val
* var4
/* : String */;
383 val
* var5
/* : nullable Int */;
384 val
* var6
/* : nullable Int */;
385 val
* var7
/* : nullable Bool */;
386 val
* var8
/* : nullable Bool */;
387 val
* var_text
/* var text: FlatBuffer */;
388 val
* var9
/* : Array[String] */;
389 val
* var11
/* : Array[String] */;
390 static val
* varonce12
;
391 val
* var13
/* : String */;
392 char* var14
/* : CString */;
393 val
* var15
/* : String */;
394 val
* var16
/* : nullable Int */;
395 val
* var17
/* : nullable Int */;
396 val
* var18
/* : nullable Bool */;
397 val
* var19
/* : nullable Bool */;
398 val
* var20
/* : String */;
399 static val
* varonce21
;
400 val
* var22
/* : String */;
401 char* var23
/* : CString */;
402 val
* var24
/* : String */;
403 val
* var25
/* : nullable Int */;
404 val
* var26
/* : nullable Int */;
405 val
* var27
/* : nullable Bool */;
406 val
* var28
/* : nullable Bool */;
407 long var29
/* : Int */;
408 long var31
/* : Int */;
409 long var32
/* : Int */;
410 short int var34
/* : Bool */;
413 const char* var_class_name
;
414 long var35
/* : Int */;
415 long var_rest
/* var rest: Int */;
416 short int var36
/* : Bool */;
417 short int var38
/* : Bool */;
420 const char* var_class_name41
;
421 short int var42
/* : Bool */;
422 static val
* varonce43
;
423 val
* var44
/* : String */;
424 char* var45
/* : CString */;
425 val
* var46
/* : String */;
426 val
* var47
/* : nullable Int */;
427 val
* var48
/* : nullable Int */;
428 val
* var49
/* : nullable Bool */;
429 val
* var50
/* : nullable Bool */;
430 val
* var51
/* : Text */;
431 val
* var52
/* : String */;
432 val
* var54
/* : String */;
433 val
* var55
/* : String */;
435 var1
= NEW_core__FlatBuffer(&type_core__FlatBuffer
);
436 if (likely(varonce
!=NULL
)) {
440 var5
= (val
*)(2l<<2|1);
441 var6
= (val
*)(2l<<2|1);
442 var7
= (val
*)((long)(0)<<2|3);
443 var8
= (val
*)((long)(0)<<2|3);
444 var4
= core__flat___CString___to_s_unsafe(var3
, var5
, var6
, var7
, var8
);
449 core___core__FlatBuffer___from(var1
, var2
); /* Direct call flat$FlatBuffer$from on <var1:FlatBuffer>*/
453 { /* Inline opts$Option$names (self) on <self:Option> */
454 var11
= self
->attrs
[COLOR_opts__Option___names
].val
; /* _names on <self:Option> */
455 if (unlikely(var11
== NULL
)) {
456 if(catchStack
.cursor
>= 0){
457 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
459 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _names");
460 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 19);
467 if (likely(varonce12
!=NULL
)) {
471 var16
= (val
*)(2l<<2|1);
472 var17
= (val
*)(2l<<2|1);
473 var18
= (val
*)((long)(0)<<2|3);
474 var19
= (val
*)((long)(0)<<2|3);
475 var15
= core__flat___CString___to_s_unsafe(var14
, var16
, var17
, var18
, var19
);
480 var20
= core__abstract_text___Collection___join(var9
, var13
, ((val
*)NULL
));
483 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_text
, var20
); /* Direct call flat$FlatBuffer$append on <var_text:FlatBuffer>*/
485 if (likely(varonce21
!=NULL
)) {
489 var25
= (val
*)(2l<<2|1);
490 var26
= (val
*)(2l<<2|1);
491 var27
= (val
*)((long)(0)<<2|3);
492 var28
= (val
*)((long)(0)<<2|3);
493 var24
= core__flat___CString___to_s_unsafe(var23
, var25
, var26
, var27
, var28
);
498 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_text
, var22
); /* Direct call flat$FlatBuffer$append on <var_text:FlatBuffer>*/
501 { /* Inline abstract_text$FlatText$length (var_text) on <var_text:FlatBuffer> */
502 var31
= var_text
->attrs
[COLOR_core__abstract_text__FlatText___length
].l
; /* _length on <var_text:FlatBuffer> */
508 { /* Inline kernel$Int$- (var_off,var29) on <var_off:Int> */
509 /* Covariant cast for argument 0 (i) <var29:Int> isa OTHER */
510 /* <var29:Int> isa OTHER */
511 var34
= 1; /* easy <var29:Int> isa OTHER*/
512 if (unlikely(!var34
)) {
513 var_class_name
= type_core__Int
.name
;
514 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
515 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 731);
518 var35
= var_off
- var29
;
526 { /* Inline kernel$Int$> (var_rest,0l) on <var_rest:Int> */
527 /* Covariant cast for argument 0 (i) <0l:Int> isa OTHER */
528 /* <0l:Int> isa OTHER */
529 var38
= 1; /* easy <0l:Int> isa OTHER*/
530 if (unlikely(!var38
)) {
531 var_class_name41
= type_core__Int
.name
;
532 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name41
);
533 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 727);
536 var42
= var_rest
> 0l;
543 if (likely(varonce43
!=NULL
)) {
547 var47
= (val
*)(1l<<2|1);
548 var48
= (val
*)(1l<<2|1);
549 var49
= (val
*)((long)(0)<<2|3);
550 var50
= (val
*)((long)(0)<<2|3);
551 var46
= core__flat___CString___to_s_unsafe(var45
, var47
, var48
, var49
, var50
);
556 var51
= ((val
*(*)(val
* self
, long p0
))(var44
->class->vft
[COLOR_core__abstract_text__Text___42d
]))(var44
, var_rest
); /* * on <var44:String>*/
559 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_text
, var51
); /* Direct call flat$FlatBuffer$append on <var_text:FlatBuffer>*/
564 { /* Inline opts$Option$helptext (self) on <self:Option> */
565 var54
= self
->attrs
[COLOR_opts__Option___helptext
].val
; /* _helptext on <self:Option> */
566 if (unlikely(var54
== NULL
)) {
567 if(catchStack
.cursor
>= 0){
568 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
570 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _helptext");
571 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 25);
579 core___core__FlatBuffer___core__abstract_text__Buffer__append(var_text
, var52
); /* Direct call flat$FlatBuffer$append on <var_text:FlatBuffer>*/
582 var55
= core___core__FlatBuffer___core__abstract_text__Object__to_s(var_text
);
589 /* method opts$Option$read_param for (self: Option, OptionContext, Iterator[String]) */
590 void opts___opts__Option___read_param(val
* self
, val
* p0
, val
* p1
) {
591 val
* var_opts
/* var opts: OptionContext */;
592 val
* var_it
/* var it: Iterator[String] */;
596 { /* Inline opts$Option$read= (self,1) on <self:Option> */
597 self
->attrs
[COLOR_opts__Option___read
].s
= 1; /* _read on <self:Option> */
603 /* method opts$OptionBool$init for (self: OptionBool, String, Array[String]) */
604 void opts___opts__OptionBool___init(val
* self
, val
* p0
, val
* p1
) {
605 val
* var_help
/* var help: String */;
606 val
* var_names
/* var names: Array[String] */;
607 val
* var
/* : nullable Object */;
611 var
= (val
*)((long)(0)<<2|3);
612 opts___opts__Option___init(self
, var_help
, var
, var_names
); /* Direct call opts$Option$init on <self:OptionBool>*/
616 /* method opts$OptionBool$read_param for (self: OptionBool, OptionContext, Iterator[String]) */
617 void opts___opts__OptionBool___Option__read_param(val
* self
, val
* p0
, val
* p1
) {
618 val
* var_opts
/* var opts: OptionContext */;
619 val
* var_it
/* var it: Iterator[String] */;
620 short int var
/* : Bool */;
623 const struct type
* type_struct
;
624 const char* var_class_name
;
625 val
* var2
/* : nullable Object */;
629 ((void(*)(val
* self
, val
* p0
, val
* p1
))(self
->class->vft
[COLOR_opts___opts__OptionBool___Option__read_param
]))(self
, p0
, p1
); /* read_param on <self:OptionBool>*/
632 { /* Inline opts$Option$value= (self,1) on <self:OptionBool> */
633 /* Covariant cast for argument 0 (value) <1:Bool> isa VALUE */
634 /* <1:Bool> isa VALUE */
635 type_struct
= self
->type
->resolution_table
->types
[COLOR_opts__Option__VALUE
];
636 cltype
= type_struct
->color
;
637 idtype
= type_struct
->id
;
638 if(cltype
>= (&type_core__Bool
)->table_size
) {
641 var
= (&type_core__Bool
)->type_table
[cltype
] == idtype
;
643 if (unlikely(!var
)) {
644 var_class_name
= type_core__Bool
.name
;
645 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name
);
646 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 40);
649 var2
= (val
*)((long)(1)<<2|3);
650 self
->attrs
[COLOR_opts__Option___value
].val
= var2
; /* _value on <self:OptionBool> */
656 /* method opts$OptionCount$init for (self: OptionCount, String, Array[String]) */
657 void opts___opts__OptionCount___init(val
* self
, val
* p0
, val
* p1
) {
658 val
* var_help
/* var help: String */;
659 val
* var_names
/* var names: Array[String] */;
660 val
* var
/* : nullable Object */;
664 var
= (val
*)(0l<<2|1);
665 opts___opts__Option___init(self
, var_help
, var
, var_names
); /* Direct call opts$Option$init on <self:OptionCount>*/
669 /* method opts$OptionCount$read_param for (self: OptionCount, OptionContext, Iterator[String]) */
670 void opts___opts__OptionCount___Option__read_param(val
* self
, val
* p0
, val
* p1
) {
671 val
* var_opts
/* var opts: OptionContext */;
672 val
* var_it
/* var it: Iterator[String] */;
673 val
* var_
/* var : OptionCount */;
674 val
* var
/* : nullable Object */;
675 val
* var2
/* : nullable Object */;
676 long var3
/* : Int */;
677 short int var5
/* : Bool */;
680 const char* var_class_name
;
681 long var6
/* : Int */;
682 long var7
/* : Int */;
683 short int var9
/* : Bool */;
686 const struct type
* type_struct
;
687 const char* var_class_name12
;
688 val
* var13
/* : nullable Object */;
692 ((void(*)(val
* self
, val
* p0
, val
* p1
))(self
->class->vft
[COLOR_opts___opts__OptionCount___Option__read_param
]))(self
, p0
, p1
); /* read_param on <self:OptionCount>*/
696 { /* Inline opts$Option$value (var_) on <var_:OptionCount> */
697 var2
= var_
->attrs
[COLOR_opts__Option___value
].val
; /* _value on <var_:OptionCount> */
703 { /* Inline kernel$Int$+ (var,1l) on <var:nullable Object(Int)> */
704 /* Covariant cast for argument 0 (i) <1l:Int> isa OTHER */
705 /* <1l:Int> isa OTHER */
706 var5
= 1; /* easy <1l:Int> isa OTHER*/
707 if (unlikely(!var5
)) {
708 var_class_name
= type_core__Int
.name
;
709 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
710 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 728);
713 var6
= (long)(var
)>>2;
721 { /* Inline opts$Option$value= (var_,var3) on <var_:OptionCount> */
722 /* Covariant cast for argument 0 (value) <var3:Int> isa VALUE */
723 /* <var3:Int> isa VALUE */
724 type_struct
= var_
->type
->resolution_table
->types
[COLOR_opts__Option__VALUE
];
725 cltype10
= type_struct
->color
;
726 idtype11
= type_struct
->id
;
727 if(cltype10
>= (&type_core__Int
)->table_size
) {
730 var9
= (&type_core__Int
)->type_table
[cltype10
] == idtype11
;
732 if (unlikely(!var9
)) {
733 var_class_name12
= type_core__Int
.name
;
734 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name12
);
735 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 40);
738 var13
= (val
*)(var3
<<2|1);
739 var_
->attrs
[COLOR_opts__Option___value
].val
= var13
; /* _value on <var_:OptionCount> */
745 /* method opts$OptionParameter$parameter_mandatory for (self: OptionParameter): Bool */
746 short int opts___opts__OptionParameter___parameter_mandatory(val
* self
) {
747 short int var
/* : Bool */;
748 short int var1
/* : Bool */;
749 var1
= self
->attrs
[COLOR_opts__OptionParameter___parameter_mandatory
].s
; /* _parameter_mandatory on <self:OptionParameter> */
754 /* method opts$OptionParameter$read_param for (self: OptionParameter, OptionContext, Iterator[String]) */
755 void opts___opts__OptionParameter___Option__read_param(val
* self
, val
* p0
, val
* p1
) {
756 val
* var_opts
/* var opts: OptionContext */;
757 val
* var_it
/* var it: Iterator[String] */;
758 short int var
/* : Bool */;
759 short int var_ok
/* var ok: Bool */;
760 short int var1
/* : Bool */;
761 short int var2
/* : Bool */;
762 short int var3
/* : Bool */;
763 short int var_
/* var : Bool */;
764 short int var4
/* : Bool */;
765 short int var6
/* : Bool */;
766 short int var7
/* : Bool */;
767 short int var_8
/* var : Bool */;
768 val
* var9
/* : nullable Object */;
769 short int var10
/* : Bool */;
770 short int var11
/* : Bool */;
771 short int var_12
/* var : Bool */;
772 val
* var13
/* : nullable Object */;
773 val
* var14
/* : SequenceRead[Char] */;
774 val
* var15
/* : nullable Object */;
775 short int var16
/* : Bool */;
776 short int var18
/* : Bool */;
777 uint32_t var19
/* : Char */;
778 val
* var20
/* : Array[Option] */;
779 val
* var22
/* : Array[Option] */;
780 val
* var_23
/* var : Array[Option] */;
781 val
* var24
/* : IndexedIterator[nullable Object] */;
782 val
* var_25
/* var : IndexedIterator[Option] */;
783 short int var26
/* : Bool */;
784 val
* var27
/* : nullable Object */;
785 val
* var_opt
/* var opt: Option */;
786 val
* var28
/* : Array[String] */;
787 val
* var30
/* : Array[String] */;
788 val
* var31
/* : nullable Object */;
789 short int var32
/* : Bool */;
790 val
* var33
/* : nullable Object */;
791 val
* var34
/* : nullable Object */;
792 short int var36
/* : Bool */;
795 const struct type
* type_struct
;
796 short int is_nullable
;
797 const char* var_class_name
;
798 val
* var37
/* : Array[String] */;
799 val
* var39
/* : Array[String] */;
800 val
* var40
/* : NativeArray[String] */;
802 static val
* varonce41
;
803 val
* var42
/* : String */;
804 char* var43
/* : CString */;
805 val
* var44
/* : String */;
806 val
* var45
/* : nullable Int */;
807 val
* var46
/* : nullable Int */;
808 val
* var47
/* : nullable Bool */;
809 val
* var48
/* : nullable Bool */;
810 static val
* varonce49
;
811 val
* var50
/* : String */;
812 char* var51
/* : CString */;
813 val
* var52
/* : String */;
814 val
* var53
/* : nullable Int */;
815 val
* var54
/* : nullable Int */;
816 val
* var55
/* : nullable Bool */;
817 val
* var56
/* : nullable Bool */;
818 val
* var57
/* : Array[String] */;
819 val
* var59
/* : Array[String] */;
820 val
* var60
/* : nullable Object */;
821 val
* var61
/* : String */;
825 ((void(*)(val
* self
, val
* p0
, val
* p1
))(self
->class->vft
[COLOR_opts___opts__OptionParameter___Option__read_param
]))(self
, p0
, p1
); /* read_param on <self:OptionParameter>*/
828 var
= ((short int(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_it
); /* is_ok on <var_it:Iterator[String]>*/
834 { /* Inline opts$OptionParameter$parameter_mandatory (self) on <self:OptionParameter> */
835 var6
= self
->attrs
[COLOR_opts__OptionParameter___parameter_mandatory
].s
; /* _parameter_mandatory on <self:OptionParameter> */
848 var9
= ((val
*(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_it
); /* item on <var_it:Iterator[String]>*/
851 var10
= ((short int(*)(val
* self
))(var9
->class->vft
[COLOR_core__abstract_text__Text__is_empty
]))(var9
); /* is_empty on <var9:nullable Object(String)>*/
861 var13
= ((val
*(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_it
); /* item on <var_it:Iterator[String]>*/
864 var14
= ((val
*(*)(val
* self
))(var13
->class->vft
[COLOR_core__abstract_text__Text__chars
]))(var13
); /* chars on <var13:nullable Object(String)>*/
867 var15
= ((val
*(*)(val
* self
))((((long)var14
&3)?class_info
[((long)var14
&3)]:var14
->class)->vft
[COLOR_core__abstract_collection__Collection__first
]))(var14
); /* first on <var14:SequenceRead[Char]>*/
870 { /* Inline kernel$Char$== (var15,'-') on <var15:nullable Object(Char)> */
871 var19
= (uint32_t)((long)(var15
)>>2);
872 var18
= var19
== '-';
884 { /* Inline opts$OptionContext$options (var_opts) on <var_opts:OptionContext> */
885 var22
= var_opts
->attrs
[COLOR_opts__OptionContext___options
].val
; /* _options on <var_opts:OptionContext> */
886 if (unlikely(var22
== NULL
)) {
887 if(catchStack
.cursor
>= 0){
888 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
890 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _options");
891 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 283);
900 var24
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_23
);
905 var26
= ((short int(*)(val
* self
))((((long)var_25
&3)?class_info
[((long)var_25
&3)]:var_25
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_25
); /* is_ok on <var_25:IndexedIterator[Option]>*/
912 var27
= ((val
*(*)(val
* self
))((((long)var_25
&3)?class_info
[((long)var_25
&3)]:var_25
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_25
); /* item on <var_25:IndexedIterator[Option]>*/
916 { /* Inline opts$Option$names (var_opt) on <var_opt:Option> */
917 var30
= var_opt
->attrs
[COLOR_opts__Option___names
].val
; /* _names on <var_opt:Option> */
918 if (unlikely(var30
== NULL
)) {
919 if(catchStack
.cursor
>= 0){
920 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
922 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _names");
923 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 19);
931 var31
= ((val
*(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_it
); /* item on <var_it:Iterator[String]>*/
934 var32
= core___core__AbstractArrayRead___core__abstract_collection__Collection__has(var28
, var31
);
942 ((void(*)(val
* self
))((((long)var_25
&3)?class_info
[((long)var_25
&3)]:var_25
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_25
); /* next on <var_25:IndexedIterator[Option]>*/
945 BREAK_label
: (void)0;
947 ((void(*)(val
* self
))((((long)var_25
&3)?class_info
[((long)var_25
&3)]:var_25
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_25
); /* finish on <var_25:IndexedIterator[Option]>*/
953 var33
= ((val
*(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_it
); /* item on <var_it:Iterator[String]>*/
956 var34
= ((val
*(*)(val
* self
, val
* p0
))(self
->class->vft
[COLOR_opts__OptionParameter__convert
]))(self
, var33
); /* convert on <self:OptionParameter>*/
959 { /* Inline opts$Option$value= (self,var34) on <self:OptionParameter> */
960 /* Covariant cast for argument 0 (value) <var34:nullable Object> isa VALUE */
961 /* <var34:nullable Object> isa VALUE */
962 type_struct
= self
->type
->resolution_table
->types
[COLOR_opts__Option__VALUE
];
963 cltype
= type_struct
->color
;
964 idtype
= type_struct
->id
;
965 is_nullable
= type_struct
->is_nullable
;
969 if(cltype
>= (((long)var34
&3)?type_info
[((long)var34
&3)]:var34
->type
)->table_size
) {
972 var36
= (((long)var34
&3)?type_info
[((long)var34
&3)]:var34
->type
)->type_table
[cltype
] == idtype
;
975 if (unlikely(!var36
)) {
976 var_class_name
= var34
== NULL ?
"null" : (((long)var34
&3)?type_info
[((long)var34
&3)]:var34
->type
)->name
;
977 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name
);
978 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 40);
981 self
->attrs
[COLOR_opts__Option___value
].val
= var34
; /* _value on <self:OptionParameter> */
986 ((void(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_it
); /* next on <var_it:Iterator[String]>*/
990 { /* Inline opts$Option$errors (self) on <self:OptionParameter> */
991 var39
= self
->attrs
[COLOR_opts__Option___errors
].val
; /* _errors on <self:OptionParameter> */
992 if (unlikely(var39
== NULL
)) {
993 if(catchStack
.cursor
>= 0){
994 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
996 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _errors");
997 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 28);
1001 RET_LABEL38
:(void)0;
1004 if (unlikely(varonce
==NULL
)) {
1005 var40
= NEW_core__NativeArray((int)3l, &type_core__NativeArray__core__String
);
1006 if (likely(varonce41
!=NULL
)) {
1009 var43
= "Parameter expected for option ";
1010 var45
= (val
*)(30l<<2|1);
1011 var46
= (val
*)(30l<<2|1);
1012 var47
= (val
*)((long)(0)<<2|3);
1013 var48
= (val
*)((long)(0)<<2|3);
1014 var44
= core__flat___CString___to_s_unsafe(var43
, var45
, var46
, var47
, var48
);
1018 ((struct instance_core__NativeArray
*)var40
)->values
[0]=var42
;
1019 if (likely(varonce49
!=NULL
)) {
1023 var53
= (val
*)(1l<<2|1);
1024 var54
= (val
*)(1l<<2|1);
1025 var55
= (val
*)((long)(0)<<2|3);
1026 var56
= (val
*)((long)(0)<<2|3);
1027 var52
= core__flat___CString___to_s_unsafe(var51
, var53
, var54
, var55
, var56
);
1031 ((struct instance_core__NativeArray
*)var40
)->values
[2]=var50
;
1037 { /* Inline opts$Option$names (self) on <self:OptionParameter> */
1038 var59
= self
->attrs
[COLOR_opts__Option___names
].val
; /* _names on <self:OptionParameter> */
1039 if (unlikely(var59
== NULL
)) {
1040 if(catchStack
.cursor
>= 0){
1041 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1043 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _names");
1044 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 19);
1048 RET_LABEL58
:(void)0;
1052 var60
= core___core__SequenceRead___Collection__first(var57
);
1054 ((struct instance_core__NativeArray
*)var40
)->values
[1]=var60
;
1056 var61
= ((val
*(*)(val
* self
))(var40
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var40
); /* native_to_s on <var40:NativeArray[String]>*/
1060 core___core__Array___core__abstract_collection__SimpleCollection__add(var37
, var61
); /* Direct call array$Array$add on <var37:Array[String]>*/
1065 /* method opts$OptionString$init for (self: OptionString, String, Array[String]) */
1066 void opts___opts__OptionString___init(val
* self
, val
* p0
, val
* p1
) {
1067 val
* var_help
/* var help: String */;
1068 val
* var_names
/* var names: Array[String] */;
1069 short int var
/* : Bool */;
1072 const struct type
* type_struct
;
1073 short int is_nullable
;
1074 const char* var_class_name
;
1077 /* <((val*)NULL):null> isa VALUE */
1078 type_struct
= self
->type
->resolution_table
->types
[COLOR_opts__Option__VALUE
];
1079 cltype
= type_struct
->color
;
1080 idtype
= type_struct
->id
;
1081 is_nullable
= type_struct
->is_nullable
;
1082 if(((val
*)NULL
) == NULL
) {
1085 if(cltype
>= ((val
*)NULL
)->type
->table_size
) {
1088 var
= ((val
*)NULL
)->type
->type_table
[cltype
] == idtype
;
1091 if (unlikely(!var
)) {
1092 var_class_name
= ((val
*)NULL
) == NULL ?
"null" : ((val
*)NULL
)->type
->name
;
1093 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name
);
1094 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 184);
1098 opts___opts__Option___init(self
, var_help
, ((val
*)NULL
), var_names
); /* Direct call opts$Option$init on <self:OptionString>*/
1102 /* method opts$OptionString$convert for (self: OptionString, String): nullable String */
1103 val
* opts___opts__OptionString___OptionParameter__convert(val
* self
, val
* p0
) {
1104 val
* var
/* : nullable String */;
1105 val
* var_str
/* var str: String */;
1106 short int var1
/* : Bool */;
1109 const struct type
* type_struct
;
1110 const char* var_class_name
;
1112 /* <var_str:String> isa VALUE */
1113 type_struct
= self
->type
->resolution_table
->types
[COLOR_opts__Option__VALUE
];
1114 cltype
= type_struct
->color
;
1115 idtype
= type_struct
->id
;
1116 if(cltype
>= var_str
->type
->table_size
) {
1119 var1
= var_str
->type
->type_table
[cltype
] == idtype
;
1121 if (unlikely(!var1
)) {
1122 var_class_name
= var_str
== NULL ?
"null" : var_str
->type
->name
;
1123 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name
);
1124 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 186);
1132 /* method opts$OptionInt$init for (self: OptionInt, String, Int, Array[String]) */
1133 void opts___opts__OptionInt___init(val
* self
, val
* p0
, long p1
, val
* p2
) {
1134 val
* var_help
/* var help: String */;
1135 long var_default
/* var default: Int */;
1136 val
* var_names
/* var names: Array[String] */;
1137 val
* var
/* : nullable Object */;
1142 var
= (val
*)(var_default
<<2|1);
1143 opts___opts__Option___init(self
, var_help
, var
, var_names
); /* Direct call opts$Option$init on <self:OptionInt>*/
1147 /* method opts$OptionInt$convert for (self: OptionInt, String): Int */
1148 long opts___opts__OptionInt___OptionParameter__convert(val
* self
, val
* p0
) {
1149 long var
/* : Int */;
1150 val
* var_str
/* var str: String */;
1151 short int var1
/* : Bool */;
1152 long var2
/* : Int */;
1153 val
* var3
/* : Array[String] */;
1154 val
* var5
/* : Array[String] */;
1155 val
* var6
/* : NativeArray[String] */;
1156 static val
* varonce
;
1157 static val
* varonce7
;
1158 val
* var8
/* : String */;
1159 char* var9
/* : CString */;
1160 val
* var10
/* : String */;
1161 val
* var11
/* : nullable Int */;
1162 val
* var12
/* : nullable Int */;
1163 val
* var13
/* : nullable Bool */;
1164 val
* var14
/* : nullable Bool */;
1165 static val
* varonce15
;
1166 val
* var16
/* : String */;
1167 char* var17
/* : CString */;
1168 val
* var18
/* : String */;
1169 val
* var19
/* : nullable Int */;
1170 val
* var20
/* : nullable Int */;
1171 val
* var21
/* : nullable Bool */;
1172 val
* var22
/* : nullable Bool */;
1173 val
* var23
/* : Array[String] */;
1174 val
* var25
/* : Array[String] */;
1175 static val
* varonce26
;
1176 val
* var27
/* : String */;
1177 char* var28
/* : CString */;
1178 val
* var29
/* : String */;
1179 val
* var30
/* : nullable Int */;
1180 val
* var31
/* : nullable Int */;
1181 val
* var32
/* : nullable Bool */;
1182 val
* var33
/* : nullable Bool */;
1183 val
* var34
/* : String */;
1184 val
* var35
/* : String */;
1187 var1
= core__fixed_ints_text___Text___is_int(var_str
);
1191 var2
= core__fixed_ints_text___Text___to_i(var_str
);
1198 { /* Inline opts$Option$errors (self) on <self:OptionInt> */
1199 var5
= self
->attrs
[COLOR_opts__Option___errors
].val
; /* _errors on <self:OptionInt> */
1200 if (unlikely(var5
== NULL
)) {
1201 if(catchStack
.cursor
>= 0){
1202 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1204 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _errors");
1205 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 28);
1212 if (unlikely(varonce
==NULL
)) {
1213 var6
= NEW_core__NativeArray((int)3l, &type_core__NativeArray__core__String
);
1214 if (likely(varonce7
!=NULL
)) {
1217 var9
= "Expected an integer for option ";
1218 var11
= (val
*)(31l<<2|1);
1219 var12
= (val
*)(31l<<2|1);
1220 var13
= (val
*)((long)(0)<<2|3);
1221 var14
= (val
*)((long)(0)<<2|3);
1222 var10
= core__flat___CString___to_s_unsafe(var9
, var11
, var12
, var13
, var14
);
1226 ((struct instance_core__NativeArray
*)var6
)->values
[0]=var8
;
1227 if (likely(varonce15
!=NULL
)) {
1231 var19
= (val
*)(1l<<2|1);
1232 var20
= (val
*)(1l<<2|1);
1233 var21
= (val
*)((long)(0)<<2|3);
1234 var22
= (val
*)((long)(0)<<2|3);
1235 var18
= core__flat___CString___to_s_unsafe(var17
, var19
, var20
, var21
, var22
);
1239 ((struct instance_core__NativeArray
*)var6
)->values
[2]=var16
;
1245 { /* Inline opts$Option$names (self) on <self:OptionInt> */
1246 var25
= self
->attrs
[COLOR_opts__Option___names
].val
; /* _names on <self:OptionInt> */
1247 if (unlikely(var25
== NULL
)) {
1248 if(catchStack
.cursor
>= 0){
1249 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1251 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _names");
1252 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 19);
1256 RET_LABEL24
:(void)0;
1259 if (likely(varonce26
!=NULL
)) {
1263 var30
= (val
*)(2l<<2|1);
1264 var31
= (val
*)(2l<<2|1);
1265 var32
= (val
*)((long)(0)<<2|3);
1266 var33
= (val
*)((long)(0)<<2|3);
1267 var29
= core__flat___CString___to_s_unsafe(var28
, var30
, var31
, var32
, var33
);
1272 var34
= core__abstract_text___Collection___join(var23
, var27
, ((val
*)NULL
));
1274 ((struct instance_core__NativeArray
*)var6
)->values
[1]=var34
;
1276 var35
= ((val
*(*)(val
* self
))(var6
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var6
); /* native_to_s on <var6:NativeArray[String]>*/
1280 core___core__Array___core__abstract_collection__SimpleCollection__add(var3
, var35
); /* Direct call array$Array$add on <var3:Array[String]>*/
1287 /* method opts$OptionInt$convert for (self: OptionParameter, String): nullable Object */
1288 val
* VIRTUAL_opts___opts__OptionInt___OptionParameter__convert(val
* self
, val
* p0
) {
1289 val
* var
/* : nullable Object */;
1290 long var1
/* : Int */;
1291 val
* var2
/* : nullable Object */;
1292 var1
= opts___opts__OptionInt___OptionParameter__convert(self
, p0
);
1293 var2
= (val
*)(var1
<<2|1);
1298 /* method opts$OptionArray$init for (self: OptionArray, String, Array[String]) */
1299 void opts___opts__OptionArray___init(val
* self
, val
* p0
, val
* p1
) {
1300 val
* var_help
/* var help: String */;
1301 val
* var_names
/* var names: Array[String] */;
1302 val
* var
/* : Array[String] */;
1303 val
* var2
/* : Array[String] */;
1304 val
* var4
/* : Array[String] */;
1305 short int var5
/* : Bool */;
1308 const struct type
* type_struct
;
1309 const char* var_class_name
;
1312 var
= NEW_core__Array(&type_core__Array__core__String
);
1314 core___core__Array___core__kernel__Object__init(var
); /* Direct call array$Array$init on <var:Array[String]>*/
1317 { /* Inline opts$OptionArray$values= (self,var) on <self:OptionArray> */
1318 self
->attrs
[COLOR_opts__OptionArray___values
].val
= var
; /* _values on <self:OptionArray> */
1323 { /* Inline opts$OptionArray$values (self) on <self:OptionArray> */
1324 var4
= self
->attrs
[COLOR_opts__OptionArray___values
].val
; /* _values on <self:OptionArray> */
1325 if (unlikely(var4
== NULL
)) {
1326 if(catchStack
.cursor
>= 0){
1327 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1329 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _values");
1330 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 273);
1337 /* <var2:Array[String]> isa VALUE */
1338 type_struct
= self
->type
->resolution_table
->types
[COLOR_opts__Option__VALUE
];
1339 cltype
= type_struct
->color
;
1340 idtype
= type_struct
->id
;
1341 if(cltype
>= var2
->type
->table_size
) {
1344 var5
= var2
->type
->type_table
[cltype
] == idtype
;
1346 if (unlikely(!var5
)) {
1347 var_class_name
= var2
== NULL ?
"null" : var2
->type
->name
;
1348 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name
);
1349 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 270);
1353 opts___opts__Option___init(self
, var_help
, var2
, var_names
); /* Direct call opts$Option$init on <self:OptionArray>*/
1357 /* method opts$OptionArray$values for (self: OptionArray): Array[String] */
1358 val
* opts___opts__OptionArray___values(val
* self
) {
1359 val
* var
/* : Array[String] */;
1360 val
* var1
/* : Array[String] */;
1361 var1
= self
->attrs
[COLOR_opts__OptionArray___values
].val
; /* _values on <self:OptionArray> */
1362 if (unlikely(var1
== NULL
)) {
1363 if(catchStack
.cursor
>= 0){
1364 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1366 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _values");
1367 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 273);
1374 /* method opts$OptionArray$values= for (self: OptionArray, Array[String]) */
1375 void opts___opts__OptionArray___values_61d(val
* self
, val
* p0
) {
1376 self
->attrs
[COLOR_opts__OptionArray___values
].val
= p0
; /* _values on <self:OptionArray> */
1379 /* method opts$OptionArray$convert for (self: OptionArray, String): Array[String] */
1380 val
* opts___opts__OptionArray___OptionParameter__convert(val
* self
, val
* p0
) {
1381 val
* var
/* : Array[String] */;
1382 val
* var_str
/* var str: String */;
1383 val
* var1
/* : Array[String] */;
1384 val
* var3
/* : Array[String] */;
1385 val
* var4
/* : Array[String] */;
1386 val
* var6
/* : Array[String] */;
1387 short int var7
/* : Bool */;
1390 const struct type
* type_struct
;
1391 const char* var_class_name
;
1394 { /* Inline opts$OptionArray$values (self) on <self:OptionArray> */
1395 var3
= self
->attrs
[COLOR_opts__OptionArray___values
].val
; /* _values on <self:OptionArray> */
1396 if (unlikely(var3
== NULL
)) {
1397 if(catchStack
.cursor
>= 0){
1398 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1400 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _values");
1401 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 273);
1409 core___core__Array___core__abstract_collection__SimpleCollection__add(var1
, var_str
); /* Direct call array$Array$add on <var1:Array[String]>*/
1412 { /* Inline opts$OptionArray$values (self) on <self:OptionArray> */
1413 var6
= self
->attrs
[COLOR_opts__OptionArray___values
].val
; /* _values on <self:OptionArray> */
1414 if (unlikely(var6
== NULL
)) {
1415 if(catchStack
.cursor
>= 0){
1416 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1418 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _values");
1419 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 273);
1426 /* <var4:Array[String]> isa VALUE */
1427 type_struct
= self
->type
->resolution_table
->types
[COLOR_opts__Option__VALUE
];
1428 cltype
= type_struct
->color
;
1429 idtype
= type_struct
->id
;
1430 if(cltype
>= var4
->type
->table_size
) {
1433 var7
= var4
->type
->type_table
[cltype
] == idtype
;
1435 if (unlikely(!var7
)) {
1436 var_class_name
= var4
== NULL ?
"null" : var4
->type
->name
;
1437 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name
);
1438 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 277);
1446 /* method opts$OptionContext$options for (self: OptionContext): Array[Option] */
1447 val
* opts___opts__OptionContext___options(val
* self
) {
1448 val
* var
/* : Array[Option] */;
1449 val
* var1
/* : Array[Option] */;
1450 var1
= self
->attrs
[COLOR_opts__OptionContext___options
].val
; /* _options on <self:OptionContext> */
1451 if (unlikely(var1
== NULL
)) {
1452 if(catchStack
.cursor
>= 0){
1453 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1455 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _options");
1456 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 283);
1463 /* method opts$OptionContext$rest for (self: OptionContext): Array[String] */
1464 val
* opts___opts__OptionContext___rest(val
* self
) {
1465 val
* var
/* : Array[String] */;
1466 val
* var1
/* : Array[String] */;
1467 var1
= self
->attrs
[COLOR_opts__OptionContext___rest
].val
; /* _rest on <self:OptionContext> */
1468 if (unlikely(var1
== NULL
)) {
1469 if(catchStack
.cursor
>= 0){
1470 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1472 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _rest");
1473 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 286);
1480 /* method opts$OptionContext$context_errors for (self: OptionContext): Array[String] */
1481 val
* opts___opts__OptionContext___context_errors(val
* self
) {
1482 val
* var
/* : Array[String] */;
1483 val
* var1
/* : Array[String] */;
1484 var1
= self
->attrs
[COLOR_opts__OptionContext___context_errors
].val
; /* _context_errors on <self:OptionContext> */
1485 if (unlikely(var1
== NULL
)) {
1486 if(catchStack
.cursor
>= 0){
1487 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1489 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _context_errors");
1490 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 289);
1497 /* method opts$OptionContext$optmap for (self: OptionContext): HashMap[String, Option] */
1498 val
* opts___opts__OptionContext___optmap(val
* self
) {
1499 val
* var
/* : HashMap[String, Option] */;
1500 val
* var1
/* : HashMap[String, Option] */;
1501 var1
= self
->attrs
[COLOR_opts__OptionContext___optmap
].val
; /* _optmap on <self:OptionContext> */
1502 if (unlikely(var1
== NULL
)) {
1503 if(catchStack
.cursor
>= 0){
1504 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1506 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _optmap");
1507 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 292);
1514 /* method opts$OptionContext$add_option for (self: OptionContext, Array[Option]) */
1515 void opts___opts__OptionContext___add_option(val
* self
, val
* p0
) {
1516 val
* var_opts
/* var opts: Array[Option] */;
1517 val
* var
/* : Array[Option] */;
1518 val
* var2
/* : Array[Option] */;
1521 { /* Inline opts$OptionContext$options (self) on <self:OptionContext> */
1522 var2
= self
->attrs
[COLOR_opts__OptionContext___options
].val
; /* _options on <self:OptionContext> */
1523 if (unlikely(var2
== NULL
)) {
1524 if(catchStack
.cursor
>= 0){
1525 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1527 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _options");
1528 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 283);
1536 core___core__Array___core__abstract_collection__SimpleCollection__add_all(var
, var_opts
); /* Direct call array$Array$add_all on <var:Array[Option]>*/
1540 /* method opts$OptionContext$usage for (self: OptionContext) */
1541 void opts___opts__OptionContext___usage(val
* self
) {
1542 long var_lmax
/* var lmax: Int */;
1543 val
* var
/* : Array[Option] */;
1544 val
* var2
/* : Array[Option] */;
1545 val
* var_
/* var : Array[Option] */;
1546 val
* var3
/* : IndexedIterator[nullable Object] */;
1547 val
* var_4
/* var : IndexedIterator[Option] */;
1548 short int var5
/* : Bool */;
1549 val
* var6
/* : nullable Object */;
1550 val
* var_i
/* var i: Option */;
1551 long var_l
/* var l: Int */;
1552 val
* var7
/* : Array[String] */;
1553 val
* var9
/* : Array[String] */;
1554 val
* var_10
/* var : Array[String] */;
1555 val
* var11
/* : IndexedIterator[nullable Object] */;
1556 val
* var_12
/* var : IndexedIterator[String] */;
1557 short int var13
/* : Bool */;
1558 val
* var15
/* : nullable Object */;
1559 val
* var_n
/* var n: String */;
1560 long var16
/* : Int */;
1561 long var17
/* : Int */;
1562 short int var19
/* : Bool */;
1565 const char* var_class_name
;
1566 long var20
/* : Int */;
1567 long var21
/* : Int */;
1568 short int var23
/* : Bool */;
1571 const char* var_class_name26
;
1572 long var27
/* : Int */;
1573 short int var28
/* : Bool */;
1574 short int var30
/* : Bool */;
1577 const char* var_class_name33
;
1578 short int var34
/* : Bool */;
1579 val
* var35
/* : Array[Option] */;
1580 val
* var37
/* : Array[Option] */;
1581 val
* var_38
/* var : Array[Option] */;
1582 val
* var39
/* : IndexedIterator[nullable Object] */;
1583 val
* var_40
/* var : IndexedIterator[Option] */;
1584 short int var41
/* : Bool */;
1585 val
* var43
/* : nullable Object */;
1586 val
* var_i44
/* var i: Option */;
1587 short int var45
/* : Bool */;
1588 short int var47
/* : Bool */;
1589 short int var48
/* : Bool */;
1590 val
* var49
/* : Sys */;
1591 val
* var50
/* : String */;
1594 { /* Inline opts$OptionContext$options (self) on <self:OptionContext> */
1595 var2
= self
->attrs
[COLOR_opts__OptionContext___options
].val
; /* _options on <self:OptionContext> */
1596 if (unlikely(var2
== NULL
)) {
1597 if(catchStack
.cursor
>= 0){
1598 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1600 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _options");
1601 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 283);
1610 var3
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_
);
1615 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[Option]>*/
1622 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[Option]>*/
1627 { /* Inline opts$Option$names (var_i) on <var_i:Option> */
1628 var9
= var_i
->attrs
[COLOR_opts__Option___names
].val
; /* _names on <var_i:Option> */
1629 if (unlikely(var9
== NULL
)) {
1630 if(catchStack
.cursor
>= 0){
1631 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1633 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _names");
1634 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 19);
1643 var11
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_10
);
1648 var13
= ((short int(*)(val
* self
))((((long)var_12
&3)?class_info
[((long)var_12
&3)]:var_12
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_12
); /* is_ok on <var_12:IndexedIterator[String]>*/
1655 var15
= ((val
*(*)(val
* self
))((((long)var_12
&3)?class_info
[((long)var_12
&3)]:var_12
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_12
); /* item on <var_12:IndexedIterator[String]>*/
1659 var16
= ((long(*)(val
* self
))(var_n
->class->vft
[COLOR_core__abstract_text__Text__length
]))(var_n
); /* length on <var_n:String>*/
1662 { /* Inline kernel$Int$+ (var16,2l) on <var16:Int> */
1663 /* Covariant cast for argument 0 (i) <2l:Int> isa OTHER */
1664 /* <2l:Int> isa OTHER */
1665 var19
= 1; /* easy <2l:Int> isa OTHER*/
1666 if (unlikely(!var19
)) {
1667 var_class_name
= type_core__Int
.name
;
1668 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
1669 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 728);
1675 RET_LABEL18
:(void)0;
1679 { /* Inline kernel$Int$+ (var_l,var17) on <var_l:Int> */
1680 /* Covariant cast for argument 0 (i) <var17:Int> isa OTHER */
1681 /* <var17:Int> isa OTHER */
1682 var23
= 1; /* easy <var17:Int> isa OTHER*/
1683 if (unlikely(!var23
)) {
1684 var_class_name26
= type_core__Int
.name
;
1685 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name26
);
1686 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 728);
1689 var27
= var_l
+ var17
;
1692 RET_LABEL22
:(void)0;
1697 ((void(*)(val
* self
))((((long)var_12
&3)?class_info
[((long)var_12
&3)]:var_12
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_12
); /* next on <var_12:IndexedIterator[String]>*/
1700 BREAK_label14
: (void)0;
1702 ((void(*)(val
* self
))((((long)var_12
&3)?class_info
[((long)var_12
&3)]:var_12
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_12
); /* finish on <var_12:IndexedIterator[String]>*/
1705 { /* Inline kernel$Int$< (var_lmax,var_l) on <var_lmax:Int> */
1706 /* Covariant cast for argument 0 (i) <var_l:Int> isa OTHER */
1707 /* <var_l:Int> isa OTHER */
1708 var30
= 1; /* easy <var_l:Int> isa OTHER*/
1709 if (unlikely(!var30
)) {
1710 var_class_name33
= type_core__Int
.name
;
1711 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name33
);
1712 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 725);
1715 var34
= var_lmax
< var_l
;
1718 RET_LABEL29
:(void)0;
1726 ((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[Option]>*/
1729 BREAK_label
: (void)0;
1731 ((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[Option]>*/
1734 { /* Inline opts$OptionContext$options (self) on <self:OptionContext> */
1735 var37
= self
->attrs
[COLOR_opts__OptionContext___options
].val
; /* _options on <self:OptionContext> */
1736 if (unlikely(var37
== NULL
)) {
1737 if(catchStack
.cursor
>= 0){
1738 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1740 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _options");
1741 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 283);
1745 RET_LABEL36
:(void)0;
1750 var39
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_38
);
1755 var41
= ((short int(*)(val
* self
))((((long)var_40
&3)?class_info
[((long)var_40
&3)]:var_40
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_40
); /* is_ok on <var_40:IndexedIterator[Option]>*/
1762 var43
= ((val
*(*)(val
* self
))((((long)var_40
&3)?class_info
[((long)var_40
&3)]:var_40
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_40
); /* item on <var_40:IndexedIterator[Option]>*/
1766 { /* Inline opts$Option$hidden (var_i44) on <var_i44:Option> */
1767 var47
= var_i44
->attrs
[COLOR_opts__Option___hidden
].s
; /* _hidden on <var_i44:Option> */
1769 RET_LABEL46
:(void)0;
1776 var50
= opts___opts__Option___pretty(var_i44
, var_lmax
);
1779 core__file___Sys___print(var49
, var50
); /* Direct call file$Sys$print on <var49:Sys>*/
1784 ((void(*)(val
* self
))((((long)var_40
&3)?class_info
[((long)var_40
&3)]:var_40
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_40
); /* next on <var_40:IndexedIterator[Option]>*/
1787 BREAK_label42
: (void)0;
1789 ((void(*)(val
* self
))((((long)var_40
&3)?class_info
[((long)var_40
&3)]:var_40
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_40
); /* finish on <var_40:IndexedIterator[Option]>*/
1793 /* method opts$OptionContext$parse for (self: OptionContext, nullable Collection[String]) */
1794 void opts___opts__OptionContext___parse(val
* self
, val
* p0
) {
1795 val
* var_argv
/* var argv: nullable Collection[String] */;
1796 short int var
/* : Bool */;
1797 short int var1
/* : Bool */;
1798 val
* var2
/* : Sys */;
1799 val
* var3
/* : Sequence[String] */;
1800 val
* var4
/* : Iterator[nullable Object] */;
1801 val
* var_it
/* var it: Iterator[String] */;
1803 if (var_argv
== NULL
) {
1804 var
= 1; /* is null */
1806 var
= 0; /* arg is null but recv is not */
1809 var1
= ((short int(*)(val
* self
, val
* p0
))((((long)var_argv
&3)?class_info
[((long)var_argv
&3)]:var_argv
->class)->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_argv
, ((val
*)NULL
)); /* == on <var_argv:nullable Collection[String]>*/
1815 var3
= core__abstract_text___Sys___args(var2
);
1821 var4
= ((val
*(*)(val
* self
))((((long)var_argv
&3)?class_info
[((long)var_argv
&3)]:var_argv
->class)->vft
[COLOR_core__abstract_collection__Collection__iterator
]))(var_argv
); /* iterator on <var_argv:nullable Collection[String](Collection[String])>*/
1825 opts___opts__OptionContext___parse_intern(self
, var_it
); /* Direct call opts$OptionContext$parse_intern on <self:OptionContext>*/
1829 /* method opts$OptionContext$options_before_rest for (self: OptionContext): Bool */
1830 short int opts___opts__OptionContext___options_before_rest(val
* self
) {
1831 short int var
/* : Bool */;
1832 short int var1
/* : Bool */;
1833 var1
= self
->attrs
[COLOR_opts__OptionContext___options_before_rest
].s
; /* _options_before_rest on <self:OptionContext> */
1838 /* method opts$OptionContext$parse_intern for (self: OptionContext, Iterator[String]) */
1839 void opts___opts__OptionContext___parse_intern(val
* self
, val
* p0
) {
1840 val
* var_it
/* var it: Iterator[String] */;
1841 short int var_parseargs
/* var parseargs: Bool */;
1842 val
* var
/* : Array[String] */;
1843 val
* var2
/* : Array[String] */;
1844 val
* var_rest
/* var rest: Array[String] */;
1845 short int var3
/* : Bool */;
1846 short int var_
/* var : Bool */;
1847 short int var4
/* : Bool */;
1848 val
* var5
/* : nullable Object */;
1849 val
* var_str
/* var str: String */;
1850 static val
* varonce
;
1851 val
* var6
/* : String */;
1852 char* var7
/* : CString */;
1853 val
* var8
/* : String */;
1854 val
* var9
/* : nullable Int */;
1855 val
* var10
/* : nullable Int */;
1856 val
* var11
/* : nullable Bool */;
1857 val
* var12
/* : nullable Bool */;
1858 short int var13
/* : Bool */;
1859 val
* var14
/* : Array[nullable Object] */;
1860 short int var15
/* : Bool */;
1861 val
* var16
/* : SequenceRead[Char] */;
1862 val
* var17
/* : nullable Object */;
1863 long var18
/* : Int */;
1864 short int var19
/* : Bool */;
1865 short int var21
/* : Bool */;
1866 short int var_22
/* var : Bool */;
1867 long var23
/* : Int */;
1868 short int var24
/* : Bool */;
1869 short int var26
/* : Bool */;
1872 const char* var_class_name
;
1873 short int var27
/* : Bool */;
1874 short int var_next_called
/* var next_called: Bool */;
1875 long var_i
/* var i: Int */;
1876 long var28
/* : Int */;
1877 long var_29
/* var : Int */;
1878 short int var30
/* : Bool */;
1879 short int var32
/* : Bool */;
1882 const char* var_class_name35
;
1883 short int var36
/* : Bool */;
1884 static val
* varonce37
;
1885 val
* var38
/* : String */;
1886 char* var39
/* : CString */;
1887 val
* var40
/* : String */;
1888 val
* var41
/* : nullable Int */;
1889 val
* var42
/* : nullable Int */;
1890 val
* var43
/* : nullable Bool */;
1891 val
* var44
/* : nullable Bool */;
1892 val
* var45
/* : SequenceRead[Char] */;
1893 val
* var46
/* : nullable Object */;
1894 val
* var47
/* : String */;
1895 uint32_t var48
/* : Char */;
1896 val
* var49
/* : Text */;
1897 val
* var_short_opt
/* var short_opt: String */;
1898 val
* var50
/* : HashMap[String, Option] */;
1899 val
* var52
/* : HashMap[String, Option] */;
1900 short int var53
/* : Bool */;
1901 val
* var54
/* : HashMap[String, Option] */;
1902 val
* var56
/* : HashMap[String, Option] */;
1903 val
* var57
/* : nullable Object */;
1904 val
* var_option
/* var option: Option */;
1905 short int var58
/* : Bool */;
1908 long var61
/* : Int */;
1909 short int var62
/* : Bool */;
1910 val
* var63
/* : HashMap[String, Option] */;
1911 val
* var65
/* : HashMap[String, Option] */;
1912 short int var66
/* : Bool */;
1913 val
* var67
/* : HashMap[String, Option] */;
1914 val
* var69
/* : HashMap[String, Option] */;
1915 val
* var70
/* : nullable Object */;
1916 val
* var_opt
/* var opt: Option */;
1917 val
* var71
/* : nullable Object */;
1918 short int var72
/* : Bool */;
1919 short int var74
/* : Bool */;
1920 val
* var75
/* : Array[nullable Object] */;
1921 val
* var77
/* : Array[Option] */;
1922 val
* var79
/* : Array[Option] */;
1923 val
* var_80
/* var : Array[Option] */;
1924 val
* var81
/* : IndexedIterator[nullable Object] */;
1925 val
* var_82
/* var : IndexedIterator[Option] */;
1926 short int var83
/* : Bool */;
1927 val
* var85
/* : nullable Object */;
1928 val
* var_opt86
/* var opt: Option */;
1929 short int var87
/* : Bool */;
1930 short int var88
/* : Bool */;
1931 short int var90
/* : Bool */;
1932 short int var_91
/* var : Bool */;
1933 short int var92
/* : Bool */;
1934 short int var94
/* : Bool */;
1935 short int var95
/* : Bool */;
1936 val
* var96
/* : Array[String] */;
1937 val
* var98
/* : Array[String] */;
1938 val
* var100
/* : NativeArray[String] */;
1939 static val
* varonce99
;
1940 static val
* varonce101
;
1941 val
* var102
/* : String */;
1942 char* var103
/* : CString */;
1943 val
* var104
/* : String */;
1944 val
* var105
/* : nullable Int */;
1945 val
* var106
/* : nullable Int */;
1946 val
* var107
/* : nullable Bool */;
1947 val
* var108
/* : nullable Bool */;
1948 static val
* varonce109
;
1949 val
* var110
/* : String */;
1950 char* var111
/* : CString */;
1951 val
* var112
/* : String */;
1952 val
* var113
/* : nullable Int */;
1953 val
* var114
/* : nullable Int */;
1954 val
* var115
/* : nullable Bool */;
1955 val
* var116
/* : nullable Bool */;
1956 val
* var117
/* : Array[String] */;
1957 val
* var119
/* : Array[String] */;
1958 static val
* varonce120
;
1959 val
* var121
/* : String */;
1960 char* var122
/* : CString */;
1961 val
* var123
/* : String */;
1962 val
* var124
/* : nullable Int */;
1963 val
* var125
/* : nullable Int */;
1964 val
* var126
/* : nullable Bool */;
1965 val
* var127
/* : nullable Bool */;
1966 val
* var128
/* : String */;
1967 val
* var129
/* : String */;
1971 opts___opts__OptionContext___build(self
); /* Direct call opts$OptionContext$build on <self:OptionContext>*/
1974 { /* Inline opts$OptionContext$rest (self) on <self:OptionContext> */
1975 var2
= self
->attrs
[COLOR_opts__OptionContext___rest
].val
; /* _rest on <self:OptionContext> */
1976 if (unlikely(var2
== NULL
)) {
1977 if(catchStack
.cursor
>= 0){
1978 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
1980 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _rest");
1981 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 286);
1990 var_
= var_parseargs
;
1993 var4
= ((short int(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_it
); /* is_ok on <var_it:Iterator[String]>*/
2001 var5
= ((val
*(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_it
); /* item on <var_it:Iterator[String]>*/
2004 if (likely(varonce
!=NULL
)) {
2008 var9
= (val
*)(2l<<2|1);
2009 var10
= (val
*)(2l<<2|1);
2010 var11
= (val
*)((long)(0)<<2|3);
2011 var12
= (val
*)((long)(0)<<2|3);
2012 var8
= core__flat___CString___to_s_unsafe(var7
, var9
, var10
, var11
, var12
);
2017 var13
= ((short int(*)(val
* self
, val
* p0
))(var_str
->class->vft
[COLOR_core__kernel__Object___61d_61d
]))(var_str
, var6
); /* == on <var_str:String>*/
2021 ((void(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_it
); /* next on <var_it:Iterator[String]>*/
2024 var14
= core__array___Iterator___to_a(var_it
);
2027 core___core__Array___core__abstract_collection__SimpleCollection__add_all(var_rest
, var14
); /* Direct call array$Array$add_all on <var_rest:Array[String]>*/
2032 var16
= ((val
*(*)(val
* self
))(var_str
->class->vft
[COLOR_core__abstract_text__Text__chars
]))(var_str
); /* chars on <var_str:String>*/
2035 var17
= (val
*)((long)('-')<<2|2);
2036 var18
= ((long(*)(val
* self
, val
* p0
))((((long)var16
&3)?class_info
[((long)var16
&3)]:var16
->class)->vft
[COLOR_core__abstract_collection__SequenceRead__last_index_of
]))(var16
, var17
); /* last_index_of on <var16:SequenceRead[Char]>*/
2039 { /* Inline kernel$Int$== (var18,0l) on <var18:Int> */
2040 var21
= var18
== 0l;
2043 RET_LABEL20
:(void)0;
2049 var23
= ((long(*)(val
* self
))(var_str
->class->vft
[COLOR_core__abstract_text__Text__length
]))(var_str
); /* length on <var_str:String>*/
2052 { /* Inline kernel$Int$> (var23,2l) on <var23:Int> */
2053 /* Covariant cast for argument 0 (i) <2l:Int> isa OTHER */
2054 /* <2l:Int> isa OTHER */
2055 var26
= 1; /* easy <2l:Int> isa OTHER*/
2056 if (unlikely(!var26
)) {
2057 var_class_name
= type_core__Int
.name
;
2058 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name
);
2059 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 727);
2065 RET_LABEL25
:(void)0;
2073 var_next_called
= 0;
2076 var28
= ((long(*)(val
* self
))(var_str
->class->vft
[COLOR_core__abstract_text__Text__length
]))(var_str
); /* length on <var_str:String>*/
2081 { /* Inline kernel$Int$< (var_i,var_29) on <var_i:Int> */
2082 /* Covariant cast for argument 0 (i) <var_29:Int> isa OTHER */
2083 /* <var_29:Int> isa OTHER */
2084 var32
= 1; /* easy <var_29:Int> isa OTHER*/
2085 if (unlikely(!var32
)) {
2086 var_class_name35
= type_core__Int
.name
;
2087 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name35
);
2088 PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel
, 725);
2091 var36
= var_i
< var_29
;
2094 RET_LABEL31
:(void)0;
2101 if (likely(varonce37
!=NULL
)) {
2105 var41
= (val
*)(1l<<2|1);
2106 var42
= (val
*)(1l<<2|1);
2107 var43
= (val
*)((long)(0)<<2|3);
2108 var44
= (val
*)((long)(0)<<2|3);
2109 var40
= core__flat___CString___to_s_unsafe(var39
, var41
, var42
, var43
, var44
);
2114 var45
= ((val
*(*)(val
* self
))(var_str
->class->vft
[COLOR_core__abstract_text__Text__chars
]))(var_str
); /* chars on <var_str:String>*/
2117 var46
= ((val
*(*)(val
* self
, long p0
))((((long)var45
&3)?class_info
[((long)var45
&3)]:var45
->class)->vft
[COLOR_core__abstract_collection__SequenceRead___91d_93d
]))(var45
, var_i
); /* [] on <var45:SequenceRead[Char]>*/
2120 var48
= (uint32_t)((long)(var46
)>>2);
2121 var47
= core__abstract_text___Char___Object__to_s(var48
);
2124 var49
= ((val
*(*)(val
* self
, val
* p0
))(var38
->class->vft
[COLOR_core__abstract_text__Text___43d
]))(var38
, var47
); /* + on <var38:String>*/
2126 var_short_opt
= var49
;
2128 { /* Inline opts$OptionContext$optmap (self) on <self:OptionContext> */
2129 var52
= self
->attrs
[COLOR_opts__OptionContext___optmap
].val
; /* _optmap on <self:OptionContext> */
2130 if (unlikely(var52
== NULL
)) {
2131 if(catchStack
.cursor
>= 0){
2132 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
2134 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _optmap");
2135 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 292);
2139 RET_LABEL51
:(void)0;
2143 var53
= core___core__HashMap___core__abstract_collection__MapRead__has_key(var50
, var_short_opt
);
2147 { /* Inline opts$OptionContext$optmap (self) on <self:OptionContext> */
2148 var56
= self
->attrs
[COLOR_opts__OptionContext___optmap
].val
; /* _optmap on <self:OptionContext> */
2149 if (unlikely(var56
== NULL
)) {
2150 if(catchStack
.cursor
>= 0){
2151 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
2153 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _optmap");
2154 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 292);
2158 RET_LABEL55
:(void)0;
2162 var57
= core___core__HashMap___core__abstract_collection__MapRead___91d_93d(var54
, var_short_opt
);
2165 /* <var_option:Option> isa OptionParameter */
2166 cltype59
= type_opts__OptionParameter
.color
;
2167 idtype60
= type_opts__OptionParameter
.id
;
2168 if(cltype59
>= var_option
->type
->table_size
) {
2171 var58
= var_option
->type
->type_table
[cltype59
] == idtype60
;
2175 ((void(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_it
); /* next on <var_it:Iterator[String]>*/
2177 var_next_called
= 1;
2181 ((void(*)(val
* self
, val
* p0
, val
* p1
))(var_option
->class->vft
[COLOR_opts__Option__read_param
]))(var_option
, self
, var_it
); /* read_param on <var_option:Option>*/
2186 var61
= core___core__Int___Discrete__successor(var_i
, 1l);
2190 BREAK_label
: (void)0;
2191 var62
= !var_next_called
;
2194 ((void(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_it
); /* next on <var_it:Iterator[String]>*/
2200 { /* Inline opts$OptionContext$optmap (self) on <self:OptionContext> */
2201 var65
= self
->attrs
[COLOR_opts__OptionContext___optmap
].val
; /* _optmap on <self:OptionContext> */
2202 if (unlikely(var65
== NULL
)) {
2203 if(catchStack
.cursor
>= 0){
2204 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
2206 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _optmap");
2207 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 292);
2211 RET_LABEL64
:(void)0;
2215 var66
= core___core__HashMap___core__abstract_collection__MapRead__has_key(var63
, var_str
);
2219 { /* Inline opts$OptionContext$optmap (self) on <self:OptionContext> */
2220 var69
= self
->attrs
[COLOR_opts__OptionContext___optmap
].val
; /* _optmap on <self:OptionContext> */
2221 if (unlikely(var69
== NULL
)) {
2222 if(catchStack
.cursor
>= 0){
2223 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
2225 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _optmap");
2226 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 292);
2230 RET_LABEL68
:(void)0;
2234 var70
= core___core__HashMap___core__abstract_collection__MapRead___91d_93d(var67
, var_str
);
2238 ((void(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_it
); /* next on <var_it:Iterator[String]>*/
2241 ((void(*)(val
* self
, val
* p0
, val
* p1
))(var_opt
->class->vft
[COLOR_opts__Option__read_param
]))(var_opt
, self
, var_it
); /* read_param on <var_opt:Option>*/
2245 var71
= ((val
*(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_it
); /* item on <var_it:Iterator[String]>*/
2248 core___core__Array___core__abstract_collection__SimpleCollection__add(var_rest
, var71
); /* Direct call array$Array$add on <var_rest:Array[String]>*/
2251 ((void(*)(val
* self
))((((long)var_it
&3)?class_info
[((long)var_it
&3)]:var_it
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_it
); /* next on <var_it:Iterator[String]>*/
2254 { /* Inline opts$OptionContext$options_before_rest (self) on <self:OptionContext> */
2255 var74
= self
->attrs
[COLOR_opts__OptionContext___options_before_rest
].s
; /* _options_before_rest on <self:OptionContext> */
2257 RET_LABEL73
:(void)0;
2262 var75
= core__array___Iterator___to_a(var_it
);
2265 core___core__Array___core__abstract_collection__SimpleCollection__add_all(var_rest
, var75
); /* Direct call array$Array$add_all on <var_rest:Array[String]>*/
2277 BREAK_label76
: (void)0;
2279 { /* Inline opts$OptionContext$options (self) on <self:OptionContext> */
2280 var79
= self
->attrs
[COLOR_opts__OptionContext___options
].val
; /* _options on <self:OptionContext> */
2281 if (unlikely(var79
== NULL
)) {
2282 if(catchStack
.cursor
>= 0){
2283 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
2285 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _options");
2286 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 283);
2290 RET_LABEL78
:(void)0;
2295 var81
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_80
);
2300 var83
= ((short int(*)(val
* self
))((((long)var_82
&3)?class_info
[((long)var_82
&3)]:var_82
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_82
); /* is_ok on <var_82:IndexedIterator[Option]>*/
2307 var85
= ((val
*(*)(val
* self
))((((long)var_82
&3)?class_info
[((long)var_82
&3)]:var_82
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_82
); /* item on <var_82:IndexedIterator[Option]>*/
2311 { /* Inline opts$Option$mandatory (var_opt86) on <var_opt86:Option> */
2312 var90
= var_opt86
->attrs
[COLOR_opts__Option___mandatory
].s
; /* _mandatory on <var_opt86:Option> */
2314 RET_LABEL89
:(void)0;
2320 { /* Inline opts$Option$read (var_opt86) on <var_opt86:Option> */
2321 var94
= var_opt86
->attrs
[COLOR_opts__Option___read
].s
; /* _read on <var_opt86:Option> */
2323 RET_LABEL93
:(void)0;
2333 { /* Inline opts$OptionContext$context_errors (self) on <self:OptionContext> */
2334 var98
= self
->attrs
[COLOR_opts__OptionContext___context_errors
].val
; /* _context_errors on <self:OptionContext> */
2335 if (unlikely(var98
== NULL
)) {
2336 if(catchStack
.cursor
>= 0){
2337 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
2339 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _context_errors");
2340 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 289);
2344 RET_LABEL97
:(void)0;
2347 if (unlikely(varonce99
==NULL
)) {
2348 var100
= NEW_core__NativeArray((int)3l, &type_core__NativeArray__core__String
);
2349 if (likely(varonce101
!=NULL
)) {
2350 var102
= varonce101
;
2352 var103
= "Mandatory option ";
2353 var105
= (val
*)(17l<<2|1);
2354 var106
= (val
*)(17l<<2|1);
2355 var107
= (val
*)((long)(0)<<2|3);
2356 var108
= (val
*)((long)(0)<<2|3);
2357 var104
= core__flat___CString___to_s_unsafe(var103
, var105
, var106
, var107
, var108
);
2359 varonce101
= var102
;
2361 ((struct instance_core__NativeArray
*)var100
)->values
[0]=var102
;
2362 if (likely(varonce109
!=NULL
)) {
2363 var110
= varonce109
;
2365 var111
= " not found.";
2366 var113
= (val
*)(11l<<2|1);
2367 var114
= (val
*)(11l<<2|1);
2368 var115
= (val
*)((long)(0)<<2|3);
2369 var116
= (val
*)((long)(0)<<2|3);
2370 var112
= core__flat___CString___to_s_unsafe(var111
, var113
, var114
, var115
, var116
);
2372 varonce109
= var110
;
2374 ((struct instance_core__NativeArray
*)var100
)->values
[2]=var110
;
2380 { /* Inline opts$Option$names (var_opt86) on <var_opt86:Option> */
2381 var119
= var_opt86
->attrs
[COLOR_opts__Option___names
].val
; /* _names on <var_opt86:Option> */
2382 if (unlikely(var119
== NULL
)) {
2383 if(catchStack
.cursor
>= 0){
2384 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
2386 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _names");
2387 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 19);
2391 RET_LABEL118
:(void)0;
2394 if (likely(varonce120
!=NULL
)) {
2395 var121
= varonce120
;
2398 var124
= (val
*)(2l<<2|1);
2399 var125
= (val
*)(2l<<2|1);
2400 var126
= (val
*)((long)(0)<<2|3);
2401 var127
= (val
*)((long)(0)<<2|3);
2402 var123
= core__flat___CString___to_s_unsafe(var122
, var124
, var125
, var126
, var127
);
2404 varonce120
= var121
;
2407 var128
= core__abstract_text___Collection___join(var117
, var121
, ((val
*)NULL
));
2409 ((struct instance_core__NativeArray
*)var100
)->values
[1]=var128
;
2411 var129
= ((val
*(*)(val
* self
))(var100
->class->vft
[COLOR_core__abstract_text__NativeArray__native_to_s
]))(var100
); /* native_to_s on <var100:NativeArray[String]>*/
2415 core___core__Array___core__abstract_collection__SimpleCollection__add(var96
, var129
); /* Direct call array$Array$add on <var96:Array[String]>*/
2420 ((void(*)(val
* self
))((((long)var_82
&3)?class_info
[((long)var_82
&3)]:var_82
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_82
); /* next on <var_82:IndexedIterator[Option]>*/
2423 BREAK_label84
: (void)0;
2425 ((void(*)(val
* self
))((((long)var_82
&3)?class_info
[((long)var_82
&3)]:var_82
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_82
); /* finish on <var_82:IndexedIterator[Option]>*/
2429 /* method opts$OptionContext$build for (self: OptionContext) */
2430 void opts___opts__OptionContext___build(val
* self
) {
2431 val
* var
/* : Array[Option] */;
2432 val
* var2
/* : Array[Option] */;
2433 val
* var_
/* var : Array[Option] */;
2434 val
* var3
/* : IndexedIterator[nullable Object] */;
2435 val
* var_4
/* var : IndexedIterator[Option] */;
2436 short int var5
/* : Bool */;
2437 val
* var6
/* : nullable Object */;
2438 val
* var_o
/* var o: Option */;
2439 val
* var7
/* : Array[String] */;
2440 val
* var9
/* : Array[String] */;
2441 val
* var_10
/* var : Array[String] */;
2442 val
* var11
/* : IndexedIterator[nullable Object] */;
2443 val
* var_12
/* var : IndexedIterator[String] */;
2444 short int var13
/* : Bool */;
2445 val
* var15
/* : nullable Object */;
2446 val
* var_n
/* var n: String */;
2447 val
* var16
/* : HashMap[String, Option] */;
2448 val
* var18
/* : HashMap[String, Option] */;
2450 { /* Inline opts$OptionContext$options (self) on <self:OptionContext> */
2451 var2
= self
->attrs
[COLOR_opts__OptionContext___options
].val
; /* _options on <self:OptionContext> */
2452 if (unlikely(var2
== NULL
)) {
2453 if(catchStack
.cursor
>= 0){
2454 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
2456 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _options");
2457 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 283);
2466 var3
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_
);
2471 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[Option]>*/
2478 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[Option]>*/
2482 { /* Inline opts$Option$names (var_o) on <var_o:Option> */
2483 var9
= var_o
->attrs
[COLOR_opts__Option___names
].val
; /* _names on <var_o:Option> */
2484 if (unlikely(var9
== NULL
)) {
2485 if(catchStack
.cursor
>= 0){
2486 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
2488 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _names");
2489 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 19);
2498 var11
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_10
);
2503 var13
= ((short int(*)(val
* self
))((((long)var_12
&3)?class_info
[((long)var_12
&3)]:var_12
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_12
); /* is_ok on <var_12:IndexedIterator[String]>*/
2510 var15
= ((val
*(*)(val
* self
))((((long)var_12
&3)?class_info
[((long)var_12
&3)]:var_12
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_12
); /* item on <var_12:IndexedIterator[String]>*/
2514 { /* Inline opts$OptionContext$optmap (self) on <self:OptionContext> */
2515 var18
= self
->attrs
[COLOR_opts__OptionContext___optmap
].val
; /* _optmap on <self:OptionContext> */
2516 if (unlikely(var18
== NULL
)) {
2517 if(catchStack
.cursor
>= 0){
2518 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
2520 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _optmap");
2521 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 292);
2525 RET_LABEL17
:(void)0;
2529 core___core__HashMap___core__abstract_collection__Map___91d_93d_61d(var16
, var_n
, var_o
); /* Direct call hash_collection$HashMap$[]= on <var16:HashMap[String, Option]>*/
2532 ((void(*)(val
* self
))((((long)var_12
&3)?class_info
[((long)var_12
&3)]:var_12
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_12
); /* next on <var_12:IndexedIterator[String]>*/
2535 BREAK_label14
: (void)0;
2537 ((void(*)(val
* self
))((((long)var_12
&3)?class_info
[((long)var_12
&3)]:var_12
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_12
); /* finish on <var_12:IndexedIterator[String]>*/
2540 ((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[Option]>*/
2543 BREAK_label
: (void)0;
2545 ((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[Option]>*/
2549 /* method opts$OptionContext$errors for (self: OptionContext): Array[String] */
2550 val
* opts___opts__OptionContext___errors(val
* self
) {
2551 val
* var
/* : Array[String] */;
2552 val
* var1
/* : Array[String] */;
2553 val
* var_errors
/* var errors: Array[String] */;
2554 val
* var2
/* : Array[String] */;
2555 val
* var4
/* : Array[String] */;
2556 val
* var5
/* : Array[Option] */;
2557 val
* var7
/* : Array[Option] */;
2558 val
* var_
/* var : Array[Option] */;
2559 val
* var8
/* : IndexedIterator[nullable Object] */;
2560 val
* var_9
/* var : IndexedIterator[Option] */;
2561 short int var10
/* : Bool */;
2562 val
* var11
/* : nullable Object */;
2563 val
* var_o
/* var o: Option */;
2564 val
* var12
/* : Array[String] */;
2565 val
* var14
/* : Array[String] */;
2566 val
* var_15
/* var : Array[String] */;
2567 val
* var16
/* : IndexedIterator[nullable Object] */;
2568 val
* var_17
/* var : IndexedIterator[String] */;
2569 short int var18
/* : Bool */;
2570 val
* var20
/* : nullable Object */;
2571 val
* var_e
/* var e: String */;
2572 var1
= NEW_core__Array(&type_core__Array__core__String
);
2574 core___core__Array___core__kernel__Object__init(var1
); /* Direct call array$Array$init on <var1:Array[String]>*/
2578 { /* Inline opts$OptionContext$context_errors (self) on <self:OptionContext> */
2579 var4
= self
->attrs
[COLOR_opts__OptionContext___context_errors
].val
; /* _context_errors on <self:OptionContext> */
2580 if (unlikely(var4
== NULL
)) {
2581 if(catchStack
.cursor
>= 0){
2582 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
2584 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _context_errors");
2585 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 289);
2593 core___core__Array___core__abstract_collection__SimpleCollection__add_all(var_errors
, var2
); /* Direct call array$Array$add_all on <var_errors:Array[String]>*/
2596 { /* Inline opts$OptionContext$options (self) on <self:OptionContext> */
2597 var7
= self
->attrs
[COLOR_opts__OptionContext___options
].val
; /* _options on <self:OptionContext> */
2598 if (unlikely(var7
== NULL
)) {
2599 if(catchStack
.cursor
>= 0){
2600 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
2602 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _options");
2603 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 283);
2612 var8
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_
);
2617 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[Option]>*/
2624 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[Option]>*/
2628 { /* Inline opts$Option$errors (var_o) on <var_o:Option> */
2629 var14
= var_o
->attrs
[COLOR_opts__Option___errors
].val
; /* _errors on <var_o:Option> */
2630 if (unlikely(var14
== NULL
)) {
2631 if(catchStack
.cursor
>= 0){
2632 longjmp(catchStack
.envs
[catchStack
.cursor
], 1);
2634 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _errors");
2635 PRINT_ERROR(" (%s:%d)\n", FILE_opts
, 28);
2639 RET_LABEL13
:(void)0;
2644 var16
= core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(var_15
);
2649 var18
= ((short int(*)(val
* self
))((((long)var_17
&3)?class_info
[((long)var_17
&3)]:var_17
->class)->vft
[COLOR_core__abstract_collection__Iterator__is_ok
]))(var_17
); /* is_ok on <var_17:IndexedIterator[String]>*/
2656 var20
= ((val
*(*)(val
* self
))((((long)var_17
&3)?class_info
[((long)var_17
&3)]:var_17
->class)->vft
[COLOR_core__abstract_collection__Iterator__item
]))(var_17
); /* item on <var_17:IndexedIterator[String]>*/
2660 core___core__Array___core__abstract_collection__SimpleCollection__add(var_errors
, var_e
); /* Direct call array$Array$add on <var_errors:Array[String]>*/
2663 ((void(*)(val
* self
))((((long)var_17
&3)?class_info
[((long)var_17
&3)]:var_17
->class)->vft
[COLOR_core__abstract_collection__Iterator__next
]))(var_17
); /* next on <var_17:IndexedIterator[String]>*/
2666 BREAK_label19
: (void)0;
2668 ((void(*)(val
* self
))((((long)var_17
&3)?class_info
[((long)var_17
&3)]:var_17
->class)->vft
[COLOR_core__abstract_collection__Iterator__finish
]))(var_17
); /* finish on <var_17:IndexedIterator[String]>*/
2671 ((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[Option]>*/
2674 BREAK_label
: (void)0;
2676 ((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[Option]>*/