c_src: regenerate
[nit.git] / c_src / nit__nith.sep.1.c
similarity index 55%
rename from c_src/nith.sep.1.c
rename to c_src/nit__nith.sep.1.c
index 95412b0..14bded5 100644 (file)
@@ -1,6 +1,6 @@
-#include "nith.sep.0.h"
+#include "nit__nith.sep.0.h"
 /* method nith#ToolContext#process_options for (self: ToolContext, Sequence[String]) */
-void nith__ToolContext__process_options(val* self, val* p0) {
+void nit__nith___ToolContext___process_options(val* self, val* p0) {
 val* var_args /* var args: Sequence[String] */;
 val* var /* : OptionBool */;
 val* var2 /* : OptionBool */;
@@ -36,27 +36,26 @@ val* var31 /* : FlatString */;
 long var32 /* : Int */;
 long var34 /* : Int */;
 short int var35 /* : Bool */;
-short int var36 /* : Bool */;
-short int var38 /* : Bool */;
-val* var39 /* : OptionBool */;
-val* var41 /* : OptionBool */;
-short int var42 /* : Bool */;
-short int var44 /* : Bool */;
-int cltype45;
-int idtype46;
+short int var37 /* : Bool */;
+val* var38 /* : OptionBool */;
+val* var40 /* : OptionBool */;
+short int var41 /* : Bool */;
+short int var43 /* : Bool */;
+int cltype44;
+int idtype45;
 const struct type* type_struct;
-const char* var_class_name47;
-val* var48 /* : nullable Object */;
+const char* var_class_name46;
+val* var47 /* : nullable Object */;
 var_args = p0;
 {
-((void (*)(val*, val*))(self->class->vft[COLOR_nith__ToolContext__process_options]))(self, p0) /* process_options on <self:ToolContext>*/;
+((void (*)(val* self, val* p0))(self->class->vft[COLOR_nit__nith___ToolContext___process_options]))(self, p0) /* process_options on <self:ToolContext>*/;
 }
 {
 { /* Inline separate_compiler#ToolContext#opt_separate (self) on <self:ToolContext> */
-var2 = self->attrs[COLOR_separate_compiler__ToolContext___opt_separate].val; /* _opt_separate on <self:ToolContext> */
+var2 = self->attrs[COLOR_nit__separate_compiler__ToolContext___opt_separate].val; /* _opt_separate on <self:ToolContext> */
 if (unlikely(var2 == NULL)) {
 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _opt_separate");
-PRINT_ERROR(" (%s:%d)\n", "compiler/separate_compiler.nit", 24);
+PRINT_ERROR(" (%s:%d)\n", FILE_nit__separate_compiler, 24);
 show_backtrace(1);
 }
 var = var2;
@@ -71,15 +70,15 @@ RET_LABEL4:(void)0;
 }
 }
 {
-var7 = ((struct instance_kernel__Bool*)var3)->value; /* autounbox from nullable Object to Bool */;
-var6 = kernel__Bool__to_i(var7);
+var7 = ((struct instance_standard__Bool*)var3)->value; /* autounbox from nullable Object to Bool */;
+var6 = standard___standard__Bool___to_i(var7);
 }
 {
 { /* Inline separate_erasure_compiler#ToolContext#opt_erasure (self) on <self:ToolContext> */
-var10 = self->attrs[COLOR_separate_erasure_compiler__ToolContext___opt_erasure].val; /* _opt_erasure on <self:ToolContext> */
+var10 = self->attrs[COLOR_nit__separate_erasure_compiler__ToolContext___opt_erasure].val; /* _opt_erasure on <self:ToolContext> */
 if (unlikely(var10 == NULL)) {
 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _opt_erasure");
-PRINT_ERROR(" (%s:%d)\n", "compiler/separate_erasure_compiler.nit", 22);
+PRINT_ERROR(" (%s:%d)\n", FILE_nit__separate_erasure_compiler, 22);
 show_backtrace(1);
 }
 var8 = var10;
@@ -94,8 +93,8 @@ RET_LABEL12:(void)0;
 }
 }
 {
-var15 = ((struct instance_kernel__Bool*)var11)->value; /* autounbox from nullable Object to Bool */;
-var14 = kernel__Bool__to_i(var15);
+var15 = ((struct instance_standard__Bool*)var11)->value; /* autounbox from nullable Object to Bool */;
+var14 = standard___standard__Bool___to_i(var15);
 }
 {
 { /* Inline kernel#Int#+ (var6,var14) on <var6:Int> */
@@ -103,9 +102,9 @@ var14 = kernel__Bool__to_i(var15);
 /* <var14:Int> isa OTHER */
 var18 = 1; /* easy <var14:Int> isa OTHER*/
 if (unlikely(!var18)) {
-var_class_name = type_kernel__Int.name;
+var_class_name = type_standard__Int.name;
 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name);
-PRINT_ERROR(" (%s:%d)\n", "../lib/standard/kernel.nit", 374);
+PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 413);
 show_backtrace(1);
 }
 var19 = var6 + var14;
@@ -122,9 +121,9 @@ var20 = 1;
 /* <var20:Int> isa OTHER */
 var23 = 1; /* easy <var20:Int> isa OTHER*/
 if (unlikely(!var23)) {
-var_class_name26 = type_kernel__Int.name;
+var_class_name26 = type_standard__Int.name;
 PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name26);
-PRINT_ERROR(" (%s:%d)\n", "../lib/standard/kernel.nit", 373);
+PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 412);
 show_backtrace(1);
 }
 var27 = var_sum > var20;
@@ -139,12 +138,12 @@ var28 = varonce;
 } else {
 var29 = "Options --separate and --erasure are exclusive";
 var30 = 46;
-var31 = string__NativeString__to_s_with_length(var29, var30);
+var31 = standard___standard__NativeString___to_s_with_length(var29, var30);
 var28 = var31;
 varonce = var28;
 }
 {
-file__Object__print(self, var28); /* Direct call file#Object#print on <self:ToolContext>*/
+standard__file___Object___print(self, var28); /* Direct call file#Object#print on <self:ToolContext>*/
 }
 var32 = 1;
 {
@@ -157,48 +156,47 @@ RET_LABEL33:(void)0;
 var34 = 0;
 {
 { /* Inline kernel#Int#== (var_sum,var34) on <var_sum:Int> */
-var38 = var_sum == var34;
-var36 = var38;
-goto RET_LABEL37;
-RET_LABEL37:(void)0;
+var37 = var_sum == var34;
+var35 = var37;
+goto RET_LABEL36;
+RET_LABEL36:(void)0;
 }
-var35 = var36;
 }
 if (var35){
 {
 { /* Inline separate_compiler#ToolContext#opt_separate (self) on <self:ToolContext> */
-var41 = self->attrs[COLOR_separate_compiler__ToolContext___opt_separate].val; /* _opt_separate on <self:ToolContext> */
-if (unlikely(var41 == NULL)) {
+var40 = self->attrs[COLOR_nit__separate_compiler__ToolContext___opt_separate].val; /* _opt_separate on <self:ToolContext> */
+if (unlikely(var40 == NULL)) {
 PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _opt_separate");
-PRINT_ERROR(" (%s:%d)\n", "compiler/separate_compiler.nit", 24);
+PRINT_ERROR(" (%s:%d)\n", FILE_nit__separate_compiler, 24);
 show_backtrace(1);
 }
-var39 = var41;
-RET_LABEL40:(void)0;
+var38 = var40;
+RET_LABEL39:(void)0;
 }
 }
-var42 = 1;
+var41 = 1;
 {
-{ /* Inline opts#Option#value= (var39,var42) on <var39:OptionBool> */
-/* Covariant cast for argument 0 (value) <var42:Bool> isa VALUE */
-/* <var42:Bool> isa VALUE */
-type_struct = var39->type->resolution_table->types[COLOR_opts__Option_VTVALUE];
-cltype45 = type_struct->color;
-idtype46 = type_struct->id;
-if(cltype45 >= (&type_kernel__Bool)->table_size) {
-var44 = 0;
+{ /* Inline opts#Option#value= (var38,var41) on <var38:OptionBool> */
+/* Covariant cast for argument 0 (value) <var41:Bool> isa VALUE */
+/* <var41:Bool> isa VALUE */
+type_struct = var38->type->resolution_table->types[COLOR_opts__Option__VALUE];
+cltype44 = type_struct->color;
+idtype45 = type_struct->id;
+if(cltype44 >= (&type_standard__Bool)->table_size) {
+var43 = 0;
 } else {
-var44 = (&type_kernel__Bool)->type_table[cltype45] == idtype46;
+var43 = (&type_standard__Bool)->type_table[cltype44] == idtype45;
 }
-if (unlikely(!var44)) {
-var_class_name47 = type_kernel__Bool.name;
-PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name47);
-PRINT_ERROR(" (%s:%d)\n", "../lib/opts.nit", 40);
+if (unlikely(!var43)) {
+var_class_name46 = type_standard__Bool.name;
+PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "VALUE", var_class_name46);
+PRINT_ERROR(" (%s:%d)\n", FILE_opts, 40);
 show_backtrace(1);
 }
-var48 = BOX_kernel__Bool(var42); /* autobox from Bool to nullable Object */
-var39->attrs[COLOR_opts__Option___value].val = var48; /* _value on <var39:OptionBool> */
-RET_LABEL43:(void)0;
+var47 = BOX_standard__Bool(var41); /* autobox from Bool to nullable Object */
+var38->attrs[COLOR_opts__Option___value].val = var47; /* _value on <var38:OptionBool> */
+RET_LABEL42:(void)0;
 }
 }
 } else {
@@ -206,8 +204,3 @@ RET_LABEL43:(void)0;
 }
 RET_LABEL:;
 }
-/* method nith#ToolContext#process_options for (self: Object, Sequence[String]) */
-void VIRTUAL_nith__ToolContext__process_options(val* self, val* p0) {
-nith__ToolContext__process_options(self, p0); /* Direct call nith#ToolContext#process_options on <self:Object(ToolContext)>*/
-RET_LABEL:;
-}