X-Git-Url: http://nitlanguage.org diff --git a/c_src/parser_prod.sep.5.c b/c_src/parser_prod.sep.5.c index 91f342c..e4fae3d 100644 --- a/c_src/parser_prod.sep.5.c +++ b/c_src/parser_prod.sep.5.c @@ -1,7 +1,3921 @@ #include "parser_prod.sep.0.h" +/* method parser_prod#AAsNotnullExpr#replace_child for (self: AAsNotnullExpr, ANode, nullable ANode) */ +void parser_prod__AAsNotnullExpr__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : AExpr */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var8 /* : TKwas */; +short int var9 /* : Bool */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; +val* var19 /* : nullable TOpar */; +short int var20 /* : Bool */; +short int var21 /* : Bool */; +short int var23 /* : Bool */; +short int var25 /* : Bool */; +short int var26 /* : Bool */; +int cltype27; +int idtype28; +const char* var_class_name29; +val* var30 /* : TKwnot */; +short int var31 /* : Bool */; +short int var32 /* : Bool */; +short int var34 /* : Bool */; +short int var36 /* : Bool */; +short int var37 /* : Bool */; +int cltype38; +int idtype39; +const char* var_class_name40; +val* var41 /* : TKwnull */; +short int var42 /* : Bool */; +short int var43 /* : Bool */; +short int var45 /* : Bool */; +short int var47 /* : Bool */; +short int var48 /* : Bool */; +int cltype49; +int idtype50; +const char* var_class_name51; +val* var52 /* : nullable TCpar */; +short int var53 /* : Bool */; +short int var54 /* : Bool */; +short int var56 /* : Bool */; +short int var58 /* : Bool */; +short int var59 /* : Bool */; +int cltype60; +int idtype61; +const char* var_class_name62; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_expr].val; /* _n_expr on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5822); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa AExpr */ +cltype = type_parser_nodes__AExpr.color; +idtype = type_parser_nodes__AExpr.id; +if(var_new_child == NULL) { +var7 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5823); +show_backtrace(1); +} +{ +parser_prod__AAsNotnullExpr__n_expr_61d(self, var_new_child); /* Direct call parser_prod#AAsNotnullExpr#n_expr= on */ +} +goto RET_LABEL; +} else { +} +var8 = self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_kwas].val; /* _n_kwas on */ +if (unlikely(var8 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5826); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; +} +} +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; +} +var9 = var10; +} +if (var9){ +/* isa TKwas */ +cltype16 = type_parser_nodes__TKwas.color; +idtype17 = type_parser_nodes__TKwas.id; +if(var_new_child == NULL) { +var15 = 0; +} else { +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; +} else { +var15 = var_new_child->type->type_table[cltype16] == idtype17; +} +} +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5827); +show_backtrace(1); +} +{ +parser_prod__AAsNotnullExpr__n_kwas_61d(self, var_new_child); /* Direct call parser_prod#AAsNotnullExpr#n_kwas= on */ +} +goto RET_LABEL; +} else { +} +var19 = self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_opar].val; /* _n_opar on */ +if (var19 == NULL) { +var20 = 0; /* cannot be null */ +} else { +{ /* Inline kernel#Object#== (var19,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var19,var_other) on */ +var25 = var19 == var_other; +var23 = var25; +goto RET_LABEL24; +RET_LABEL24:(void)0; +} +} +var21 = var23; +goto RET_LABEL22; +RET_LABEL22:(void)0; +} +var20 = var21; +} +if (var20){ +/* isa nullable TOpar */ +cltype27 = type_nullable_parser_nodes__TOpar.color; +idtype28 = type_nullable_parser_nodes__TOpar.id; +if(var_new_child == NULL) { +var26 = 1; +} else { +if(cltype27 >= var_new_child->type->table_size) { +var26 = 0; +} else { +var26 = var_new_child->type->type_table[cltype27] == idtype28; +} +} +if (unlikely(!var26)) { +var_class_name29 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name29); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5831); +show_backtrace(1); +} +{ +parser_prod__AAsNotnullExpr__n_opar_61d(self, var_new_child); /* Direct call parser_prod#AAsNotnullExpr#n_opar= on */ +} +goto RET_LABEL; +} else { +} +var30 = self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_kwnot].val; /* _n_kwnot on */ +if (unlikely(var30 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5834); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var30,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var30,var_other) on */ +var36 = var30 == var_other; +var34 = var36; +goto RET_LABEL35; +RET_LABEL35:(void)0; +} +} +var32 = var34; +goto RET_LABEL33; +RET_LABEL33:(void)0; +} +var31 = var32; +} +if (var31){ +/* isa TKwnot */ +cltype38 = type_parser_nodes__TKwnot.color; +idtype39 = type_parser_nodes__TKwnot.id; +if(var_new_child == NULL) { +var37 = 0; +} else { +if(cltype38 >= var_new_child->type->table_size) { +var37 = 0; +} else { +var37 = var_new_child->type->type_table[cltype38] == idtype39; +} +} +if (unlikely(!var37)) { +var_class_name40 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnot", var_class_name40); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5835); +show_backtrace(1); +} +{ +parser_prod__AAsNotnullExpr__n_kwnot_61d(self, var_new_child); /* Direct call parser_prod#AAsNotnullExpr#n_kwnot= on */ +} +goto RET_LABEL; +} else { +} +var41 = self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_kwnull].val; /* _n_kwnull on */ +if (unlikely(var41 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5838); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var41,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var41,var_other) on */ +var47 = var41 == var_other; +var45 = var47; +goto RET_LABEL46; +RET_LABEL46:(void)0; +} +} +var43 = var45; +goto RET_LABEL44; +RET_LABEL44:(void)0; +} +var42 = var43; +} +if (var42){ +/* isa TKwnull */ +cltype49 = type_parser_nodes__TKwnull.color; +idtype50 = type_parser_nodes__TKwnull.id; +if(var_new_child == NULL) { +var48 = 0; +} else { +if(cltype49 >= var_new_child->type->table_size) { +var48 = 0; +} else { +var48 = var_new_child->type->type_table[cltype49] == idtype50; +} +} +if (unlikely(!var48)) { +var_class_name51 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnull", var_class_name51); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5839); +show_backtrace(1); +} +{ +parser_prod__AAsNotnullExpr__n_kwnull_61d(self, var_new_child); /* Direct call parser_prod#AAsNotnullExpr#n_kwnull= on */ +} +goto RET_LABEL; +} else { +} +var52 = self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_cpar].val; /* _n_cpar on */ +if (var52 == NULL) { +var53 = 0; /* cannot be null */ +} else { +{ /* Inline kernel#Object#== (var52,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var52,var_other) on */ +var58 = var52 == var_other; +var56 = var58; +goto RET_LABEL57; +RET_LABEL57:(void)0; +} +} +var54 = var56; +goto RET_LABEL55; +RET_LABEL55:(void)0; +} +var53 = var54; +} +if (var53){ +/* isa nullable TCpar */ +cltype60 = type_nullable_parser_nodes__TCpar.color; +idtype61 = type_nullable_parser_nodes__TCpar.id; +if(var_new_child == NULL) { +var59 = 1; +} else { +if(cltype60 >= var_new_child->type->table_size) { +var59 = 0; +} else { +var59 = var_new_child->type->type_table[cltype60] == idtype61; +} +} +if (unlikely(!var59)) { +var_class_name62 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name62); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5843); +show_backtrace(1); +} +{ +parser_prod__AAsNotnullExpr__n_cpar_61d(self, var_new_child); /* Direct call parser_prod#AAsNotnullExpr#n_cpar= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AAsNotnullExpr__replace_child(val* self, val* p0, val* p1) { +parser_prod__AAsNotnullExpr__replace_child(self, p0, p1); /* Direct call parser_prod#AAsNotnullExpr#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#n_expr= for (self: AAsNotnullExpr, AExpr) */ +void parser_prod__AAsNotnullExpr__n_expr_61d(val* self, val* p0) { +val* var_node /* var node: AExpr */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_expr].val = var_node; /* _n_expr on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#n_expr= for (self: Object, AExpr) */ +void VIRTUAL_parser_prod__AAsNotnullExpr__n_expr_61d(val* self, val* p0) { +parser_prod__AAsNotnullExpr__n_expr_61d(self, p0); /* Direct call parser_prod#AAsNotnullExpr#n_expr= on */ +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#n_kwas= for (self: AAsNotnullExpr, TKwas) */ +void parser_prod__AAsNotnullExpr__n_kwas_61d(val* self, val* p0) { +val* var_node /* var node: TKwas */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_kwas].val = var_node; /* _n_kwas on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#n_kwas= for (self: Object, TKwas) */ +void VIRTUAL_parser_prod__AAsNotnullExpr__n_kwas_61d(val* self, val* p0) { +parser_prod__AAsNotnullExpr__n_kwas_61d(self, p0); /* Direct call parser_prod#AAsNotnullExpr#n_kwas= on */ +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#n_opar= for (self: AAsNotnullExpr, nullable TOpar) */ +void parser_prod__AAsNotnullExpr__n_opar_61d(val* self, val* p0) { +val* var_node /* var node: nullable TOpar */; +val* var /* : null */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_opar].val = var_node; /* _n_opar on */ +var = NULL; +if (var_node == NULL) { +var1 = 0; /* is null */ +} else { +var1 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} +} else { +} +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#n_opar= for (self: Object, nullable TOpar) */ +void VIRTUAL_parser_prod__AAsNotnullExpr__n_opar_61d(val* self, val* p0) { +parser_prod__AAsNotnullExpr__n_opar_61d(self, p0); /* Direct call parser_prod#AAsNotnullExpr#n_opar= on */ +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#n_kwnot= for (self: AAsNotnullExpr, TKwnot) */ +void parser_prod__AAsNotnullExpr__n_kwnot_61d(val* self, val* p0) { +val* var_node /* var node: TKwnot */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_kwnot].val = var_node; /* _n_kwnot on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#n_kwnot= for (self: Object, TKwnot) */ +void VIRTUAL_parser_prod__AAsNotnullExpr__n_kwnot_61d(val* self, val* p0) { +parser_prod__AAsNotnullExpr__n_kwnot_61d(self, p0); /* Direct call parser_prod#AAsNotnullExpr#n_kwnot= on */ +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#n_kwnull= for (self: AAsNotnullExpr, TKwnull) */ +void parser_prod__AAsNotnullExpr__n_kwnull_61d(val* self, val* p0) { +val* var_node /* var node: TKwnull */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_kwnull].val = var_node; /* _n_kwnull on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#n_kwnull= for (self: Object, TKwnull) */ +void VIRTUAL_parser_prod__AAsNotnullExpr__n_kwnull_61d(val* self, val* p0) { +parser_prod__AAsNotnullExpr__n_kwnull_61d(self, p0); /* Direct call parser_prod#AAsNotnullExpr#n_kwnull= on */ +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#n_cpar= for (self: AAsNotnullExpr, nullable TCpar) */ +void parser_prod__AAsNotnullExpr__n_cpar_61d(val* self, val* p0) { +val* var_node /* var node: nullable TCpar */; +val* var /* : null */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_cpar].val = var_node; /* _n_cpar on */ +var = NULL; +if (var_node == NULL) { +var1 = 0; /* is null */ +} else { +var1 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} +} else { +} +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#n_cpar= for (self: Object, nullable TCpar) */ +void VIRTUAL_parser_prod__AAsNotnullExpr__n_cpar_61d(val* self, val* p0) { +parser_prod__AAsNotnullExpr__n_cpar_61d(self, p0); /* Direct call parser_prod#AAsNotnullExpr#n_cpar= on */ +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#visit_all for (self: AAsNotnullExpr, Visitor) */ +void parser_prod__AAsNotnullExpr__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : AExpr */; +val* var1 /* : TKwas */; +val* var2 /* : nullable TOpar */; +val* var3 /* : TKwnot */; +val* var4 /* : TKwnull */; +val* var5 /* : nullable TCpar */; +var_v = p0; +var = self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_expr].val; /* _n_expr on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5882); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var1 = self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_kwas].val; /* _n_kwas on */ +if (unlikely(var1 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5883); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var2 = self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_opar].val; /* _n_opar on */ +{ +parser_nodes__Visitor__enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var3 = self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_kwnot].val; /* _n_kwnot on */ +if (unlikely(var3 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5885); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var3); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var4 = self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_kwnull].val; /* _n_kwnull on */ +if (unlikely(var4 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnull"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5886); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var4); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var5 = self->attrs[COLOR_parser_nodes__AAsNotnullExpr___n_cpar].val; /* _n_cpar on */ +{ +parser_nodes__Visitor__enter_visit(var_v, var5); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod#AAsNotnullExpr#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AAsNotnullExpr__visit_all(val* self, val* p0) { +parser_prod__AAsNotnullExpr__visit_all(self, p0); /* Direct call parser_prod#AAsNotnullExpr#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#AIssetAttrExpr#init_aissetattrexpr for (self: AIssetAttrExpr, nullable TKwisset, nullable AExpr, nullable TAttrid) */ +void parser_prod__AIssetAttrExpr__init_aissetattrexpr(val* self, val* p0, val* p1, val* p2) { +val* var_n_kwisset /* var n_kwisset: nullable TKwisset */; +val* var_n_expr /* var n_expr: nullable AExpr */; +val* var_n_id /* var n_id: nullable TAttrid */; +var_n_kwisset = p0; +var_n_expr = p1; +var_n_id = p2; +if (unlikely(var_n_kwisset == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5897); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__AIssetAttrExpr___n_kwisset].val = var_n_kwisset; /* _n_kwisset on */ +if (var_n_kwisset == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5898); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_kwisset,self) on */ +if (unlikely(var_n_kwisset == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_kwisset->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +if (unlikely(var_n_expr == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5899); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__AAttrFormExpr___n_expr].val = var_n_expr; /* _n_expr on */ +if (var_n_expr == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5900); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on */ +if (unlikely(var_n_expr == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_expr->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; +} +} +if (unlikely(var_n_id == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5901); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__AAttrFormExpr___n_id].val = var_n_id; /* _n_id on */ +if (var_n_id == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5902); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_id,self) on */ +if (unlikely(var_n_id == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_id->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL3:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AIssetAttrExpr#init_aissetattrexpr for (self: Object, nullable TKwisset, nullable AExpr, nullable TAttrid) */ +void VIRTUAL_parser_prod__AIssetAttrExpr__init_aissetattrexpr(val* self, val* p0, val* p1, val* p2) { +parser_prod__AIssetAttrExpr__init_aissetattrexpr(self, p0, p1, p2); /* Direct call parser_prod#AIssetAttrExpr#init_aissetattrexpr on */ +RET_LABEL:; +} +/* method parser_prod#AIssetAttrExpr#replace_child for (self: AIssetAttrExpr, ANode, nullable ANode) */ +void parser_prod__AIssetAttrExpr__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : TKwisset */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var8 /* : AExpr */; +short int var9 /* : Bool */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; +val* var19 /* : TAttrid */; +short int var20 /* : Bool */; +short int var21 /* : Bool */; +short int var23 /* : Bool */; +short int var25 /* : Bool */; +short int var26 /* : Bool */; +int cltype27; +int idtype28; +const char* var_class_name29; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__AIssetAttrExpr___n_kwisset].val; /* _n_kwisset on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwisset"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5907); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa TKwisset */ +cltype = type_parser_nodes__TKwisset.color; +idtype = type_parser_nodes__TKwisset.id; +if(var_new_child == NULL) { +var7 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwisset", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5908); +show_backtrace(1); +} +{ +parser_prod__AIssetAttrExpr__n_kwisset_61d(self, var_new_child); /* Direct call parser_prod#AIssetAttrExpr#n_kwisset= on */ +} +goto RET_LABEL; +} else { +} +var8 = self->attrs[COLOR_parser_nodes__AAttrFormExpr___n_expr].val; /* _n_expr on */ +if (unlikely(var8 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5911); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; +} +} +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; +} +var9 = var10; +} +if (var9){ +/* isa AExpr */ +cltype16 = type_parser_nodes__AExpr.color; +idtype17 = type_parser_nodes__AExpr.id; +if(var_new_child == NULL) { +var15 = 0; +} else { +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; +} else { +var15 = var_new_child->type->type_table[cltype16] == idtype17; +} +} +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5912); +show_backtrace(1); +} +{ +parser_prod__AIssetAttrExpr__n_expr_61d(self, var_new_child); /* Direct call parser_prod#AIssetAttrExpr#n_expr= on */ +} +goto RET_LABEL; +} else { +} +var19 = self->attrs[COLOR_parser_nodes__AAttrFormExpr___n_id].val; /* _n_id on */ +if (unlikely(var19 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5915); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var19,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var19,var_other) on */ +var25 = var19 == var_other; +var23 = var25; +goto RET_LABEL24; +RET_LABEL24:(void)0; +} +} +var21 = var23; +goto RET_LABEL22; +RET_LABEL22:(void)0; +} +var20 = var21; +} +if (var20){ +/* isa TAttrid */ +cltype27 = type_parser_nodes__TAttrid.color; +idtype28 = type_parser_nodes__TAttrid.id; +if(var_new_child == NULL) { +var26 = 0; +} else { +if(cltype27 >= var_new_child->type->table_size) { +var26 = 0; +} else { +var26 = var_new_child->type->type_table[cltype27] == idtype28; +} +} +if (unlikely(!var26)) { +var_class_name29 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TAttrid", var_class_name29); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5916); +show_backtrace(1); +} +{ +parser_prod__AIssetAttrExpr__n_id_61d(self, var_new_child); /* Direct call parser_prod#AIssetAttrExpr#n_id= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#AIssetAttrExpr#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AIssetAttrExpr__replace_child(val* self, val* p0, val* p1) { +parser_prod__AIssetAttrExpr__replace_child(self, p0, p1); /* Direct call parser_prod#AIssetAttrExpr#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#AIssetAttrExpr#n_kwisset= for (self: AIssetAttrExpr, TKwisset) */ +void parser_prod__AIssetAttrExpr__n_kwisset_61d(val* self, val* p0) { +val* var_node /* var node: TKwisset */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AIssetAttrExpr___n_kwisset].val = var_node; /* _n_kwisset on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AIssetAttrExpr#n_kwisset= for (self: Object, TKwisset) */ +void VIRTUAL_parser_prod__AIssetAttrExpr__n_kwisset_61d(val* self, val* p0) { +parser_prod__AIssetAttrExpr__n_kwisset_61d(self, p0); /* Direct call parser_prod#AIssetAttrExpr#n_kwisset= on */ +RET_LABEL:; +} +/* method parser_prod#AIssetAttrExpr#n_expr= for (self: AIssetAttrExpr, AExpr) */ +void parser_prod__AIssetAttrExpr__n_expr_61d(val* self, val* p0) { +val* var_node /* var node: AExpr */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AAttrFormExpr___n_expr].val = var_node; /* _n_expr on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AIssetAttrExpr#n_expr= for (self: Object, AExpr) */ +void VIRTUAL_parser_prod__AIssetAttrExpr__n_expr_61d(val* self, val* p0) { +parser_prod__AIssetAttrExpr__n_expr_61d(self, p0); /* Direct call parser_prod#AIssetAttrExpr#n_expr= on */ +RET_LABEL:; +} +/* method parser_prod#AIssetAttrExpr#n_id= for (self: AIssetAttrExpr, TAttrid) */ +void parser_prod__AIssetAttrExpr__n_id_61d(val* self, val* p0) { +val* var_node /* var node: TAttrid */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AAttrFormExpr___n_id].val = var_node; /* _n_id on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AIssetAttrExpr#n_id= for (self: Object, TAttrid) */ +void VIRTUAL_parser_prod__AIssetAttrExpr__n_id_61d(val* self, val* p0) { +parser_prod__AIssetAttrExpr__n_id_61d(self, p0); /* Direct call parser_prod#AIssetAttrExpr#n_id= on */ +RET_LABEL:; +} +/* method parser_prod#AIssetAttrExpr#visit_all for (self: AIssetAttrExpr, Visitor) */ +void parser_prod__AIssetAttrExpr__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : TKwisset */; +val* var1 /* : AExpr */; +val* var2 /* : TAttrid */; +var_v = p0; +var = self->attrs[COLOR_parser_nodes__AIssetAttrExpr___n_kwisset].val; /* _n_kwisset on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwisset"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5940); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var1 = self->attrs[COLOR_parser_nodes__AAttrFormExpr___n_expr].val; /* _n_expr on */ +if (unlikely(var1 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5941); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var2 = self->attrs[COLOR_parser_nodes__AAttrFormExpr___n_id].val; /* _n_id on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5942); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod#AIssetAttrExpr#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AIssetAttrExpr__visit_all(val* self, val* p0) { +parser_prod__AIssetAttrExpr__visit_all(self, p0); /* Direct call parser_prod#AIssetAttrExpr#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#init_adebugtypeexpr for (self: ADebugTypeExpr, nullable TKwdebug, nullable TKwtype, nullable AExpr, nullable AType) */ +void parser_prod__ADebugTypeExpr__init_adebugtypeexpr(val* self, val* p0, val* p1, val* p2, val* p3) { +val* var_n_kwdebug /* var n_kwdebug: nullable TKwdebug */; +val* var_n_kwtype /* var n_kwtype: nullable TKwtype */; +val* var_n_expr /* var n_expr: nullable AExpr */; +val* var_n_type /* var n_type: nullable AType */; +var_n_kwdebug = p0; +var_n_kwtype = p1; +var_n_expr = p2; +var_n_type = p3; +if (unlikely(var_n_kwdebug == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5953); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_kwdebug].val = var_n_kwdebug; /* _n_kwdebug on */ +if (var_n_kwdebug == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5954); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_kwdebug,self) on */ +if (unlikely(var_n_kwdebug == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_kwdebug->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +if (unlikely(var_n_kwtype == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5955); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_kwtype].val = var_n_kwtype; /* _n_kwtype on */ +if (var_n_kwtype == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5956); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_kwtype,self) on */ +if (unlikely(var_n_kwtype == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_kwtype->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; +} +} +if (unlikely(var_n_expr == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5957); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_expr].val = var_n_expr; /* _n_expr on */ +if (var_n_expr == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5958); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on */ +if (unlikely(var_n_expr == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_expr->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL3:(void)0; +} +} +if (unlikely(var_n_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5959); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_type].val = var_n_type; /* _n_type on */ +if (var_n_type == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5960); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_type,self) on */ +if (unlikely(var_n_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_type->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL4:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#init_adebugtypeexpr for (self: Object, nullable TKwdebug, nullable TKwtype, nullable AExpr, nullable AType) */ +void VIRTUAL_parser_prod__ADebugTypeExpr__init_adebugtypeexpr(val* self, val* p0, val* p1, val* p2, val* p3) { +parser_prod__ADebugTypeExpr__init_adebugtypeexpr(self, p0, p1, p2, p3); /* Direct call parser_prod#ADebugTypeExpr#init_adebugtypeexpr on */ +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#replace_child for (self: ADebugTypeExpr, ANode, nullable ANode) */ +void parser_prod__ADebugTypeExpr__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : TKwdebug */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var8 /* : TKwtype */; +short int var9 /* : Bool */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; +val* var19 /* : AExpr */; +short int var20 /* : Bool */; +short int var21 /* : Bool */; +short int var23 /* : Bool */; +short int var25 /* : Bool */; +short int var26 /* : Bool */; +int cltype27; +int idtype28; +const char* var_class_name29; +val* var30 /* : AType */; +short int var31 /* : Bool */; +short int var32 /* : Bool */; +short int var34 /* : Bool */; +short int var36 /* : Bool */; +short int var37 /* : Bool */; +int cltype38; +int idtype39; +const char* var_class_name40; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_kwdebug].val; /* _n_kwdebug on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdebug"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5965); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa TKwdebug */ +cltype = type_parser_nodes__TKwdebug.color; +idtype = type_parser_nodes__TKwdebug.id; +if(var_new_child == NULL) { +var7 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwdebug", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5966); +show_backtrace(1); +} +{ +parser_prod__ADebugTypeExpr__n_kwdebug_61d(self, var_new_child); /* Direct call parser_prod#ADebugTypeExpr#n_kwdebug= on */ +} +goto RET_LABEL; +} else { +} +var8 = self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_kwtype].val; /* _n_kwtype on */ +if (unlikely(var8 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5969); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; +} +} +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; +} +var9 = var10; +} +if (var9){ +/* isa TKwtype */ +cltype16 = type_parser_nodes__TKwtype.color; +idtype17 = type_parser_nodes__TKwtype.id; +if(var_new_child == NULL) { +var15 = 0; +} else { +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; +} else { +var15 = var_new_child->type->type_table[cltype16] == idtype17; +} +} +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwtype", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5970); +show_backtrace(1); +} +{ +parser_prod__ADebugTypeExpr__n_kwtype_61d(self, var_new_child); /* Direct call parser_prod#ADebugTypeExpr#n_kwtype= on */ +} +goto RET_LABEL; +} else { +} +var19 = self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_expr].val; /* _n_expr on */ +if (unlikely(var19 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5973); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var19,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var19,var_other) on */ +var25 = var19 == var_other; +var23 = var25; +goto RET_LABEL24; +RET_LABEL24:(void)0; +} +} +var21 = var23; +goto RET_LABEL22; +RET_LABEL22:(void)0; +} +var20 = var21; +} +if (var20){ +/* isa AExpr */ +cltype27 = type_parser_nodes__AExpr.color; +idtype28 = type_parser_nodes__AExpr.id; +if(var_new_child == NULL) { +var26 = 0; +} else { +if(cltype27 >= var_new_child->type->table_size) { +var26 = 0; +} else { +var26 = var_new_child->type->type_table[cltype27] == idtype28; +} +} +if (unlikely(!var26)) { +var_class_name29 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name29); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5974); +show_backtrace(1); +} +{ +parser_prod__ADebugTypeExpr__n_expr_61d(self, var_new_child); /* Direct call parser_prod#ADebugTypeExpr#n_expr= on */ +} +goto RET_LABEL; +} else { +} +var30 = self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_type].val; /* _n_type on */ +if (unlikely(var30 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5977); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var30,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var30,var_other) on */ +var36 = var30 == var_other; +var34 = var36; +goto RET_LABEL35; +RET_LABEL35:(void)0; +} +} +var32 = var34; +goto RET_LABEL33; +RET_LABEL33:(void)0; +} +var31 = var32; +} +if (var31){ +/* isa AType */ +cltype38 = type_parser_nodes__AType.color; +idtype39 = type_parser_nodes__AType.id; +if(var_new_child == NULL) { +var37 = 0; +} else { +if(cltype38 >= var_new_child->type->table_size) { +var37 = 0; +} else { +var37 = var_new_child->type->type_table[cltype38] == idtype39; +} +} +if (unlikely(!var37)) { +var_class_name40 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name40); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 5978); +show_backtrace(1); +} +{ +parser_prod__ADebugTypeExpr__n_type_61d(self, var_new_child); /* Direct call parser_prod#ADebugTypeExpr#n_type= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__ADebugTypeExpr__replace_child(val* self, val* p0, val* p1) { +parser_prod__ADebugTypeExpr__replace_child(self, p0, p1); /* Direct call parser_prod#ADebugTypeExpr#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#n_kwdebug= for (self: ADebugTypeExpr, TKwdebug) */ +void parser_prod__ADebugTypeExpr__n_kwdebug_61d(val* self, val* p0) { +val* var_node /* var node: TKwdebug */; +var_node = p0; +self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_kwdebug].val = var_node; /* _n_kwdebug on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#n_kwdebug= for (self: Object, TKwdebug) */ +void VIRTUAL_parser_prod__ADebugTypeExpr__n_kwdebug_61d(val* self, val* p0) { +parser_prod__ADebugTypeExpr__n_kwdebug_61d(self, p0); /* Direct call parser_prod#ADebugTypeExpr#n_kwdebug= on */ +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#n_kwtype= for (self: ADebugTypeExpr, TKwtype) */ +void parser_prod__ADebugTypeExpr__n_kwtype_61d(val* self, val* p0) { +val* var_node /* var node: TKwtype */; +var_node = p0; +self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_kwtype].val = var_node; /* _n_kwtype on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#n_kwtype= for (self: Object, TKwtype) */ +void VIRTUAL_parser_prod__ADebugTypeExpr__n_kwtype_61d(val* self, val* p0) { +parser_prod__ADebugTypeExpr__n_kwtype_61d(self, p0); /* Direct call parser_prod#ADebugTypeExpr#n_kwtype= on */ +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#n_expr= for (self: ADebugTypeExpr, AExpr) */ +void parser_prod__ADebugTypeExpr__n_expr_61d(val* self, val* p0) { +val* var_node /* var node: AExpr */; +var_node = p0; +self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_expr].val = var_node; /* _n_expr on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#n_expr= for (self: Object, AExpr) */ +void VIRTUAL_parser_prod__ADebugTypeExpr__n_expr_61d(val* self, val* p0) { +parser_prod__ADebugTypeExpr__n_expr_61d(self, p0); /* Direct call parser_prod#ADebugTypeExpr#n_expr= on */ +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#n_type= for (self: ADebugTypeExpr, AType) */ +void parser_prod__ADebugTypeExpr__n_type_61d(val* self, val* p0) { +val* var_node /* var node: AType */; +var_node = p0; +self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_type].val = var_node; /* _n_type on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#n_type= for (self: Object, AType) */ +void VIRTUAL_parser_prod__ADebugTypeExpr__n_type_61d(val* self, val* p0) { +parser_prod__ADebugTypeExpr__n_type_61d(self, p0); /* Direct call parser_prod#ADebugTypeExpr#n_type= on */ +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#visit_all for (self: ADebugTypeExpr, Visitor) */ +void parser_prod__ADebugTypeExpr__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : TKwdebug */; +val* var1 /* : TKwtype */; +val* var2 /* : AExpr */; +val* var3 /* : AType */; +var_v = p0; +var = self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_kwdebug].val; /* _n_kwdebug on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwdebug"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6007); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var1 = self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_kwtype].val; /* _n_kwtype on */ +if (unlikely(var1 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwtype"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6008); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var2 = self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_expr].val; /* _n_expr on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6009); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var3 = self->attrs[COLOR_parser_nodes__ADebugTypeExpr___n_type].val; /* _n_type on */ +if (unlikely(var3 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6010); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var3); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod#ADebugTypeExpr#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__ADebugTypeExpr__visit_all(val* self, val* p0) { +parser_prod__ADebugTypeExpr__visit_all(self, p0); /* Direct call parser_prod#ADebugTypeExpr#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#AVarargExpr#init_avarargexpr for (self: AVarargExpr, nullable AExpr, nullable TDotdotdot) */ +void parser_prod__AVarargExpr__init_avarargexpr(val* self, val* p0, val* p1) { +val* var_n_expr /* var n_expr: nullable AExpr */; +val* var_n_dotdotdot /* var n_dotdotdot: nullable TDotdotdot */; +var_n_expr = p0; +var_n_dotdotdot = p1; +if (unlikely(var_n_expr == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6019); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__AVarargExpr___n_expr].val = var_n_expr; /* _n_expr on */ +if (var_n_expr == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6020); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on */ +if (unlikely(var_n_expr == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_expr->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +if (unlikely(var_n_dotdotdot == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6021); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__AVarargExpr___n_dotdotdot].val = var_n_dotdotdot; /* _n_dotdotdot on */ +if (var_n_dotdotdot == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6022); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_dotdotdot,self) on */ +if (unlikely(var_n_dotdotdot == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_dotdotdot->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AVarargExpr#init_avarargexpr for (self: Object, nullable AExpr, nullable TDotdotdot) */ +void VIRTUAL_parser_prod__AVarargExpr__init_avarargexpr(val* self, val* p0, val* p1) { +parser_prod__AVarargExpr__init_avarargexpr(self, p0, p1); /* Direct call parser_prod#AVarargExpr#init_avarargexpr on */ +RET_LABEL:; +} +/* method parser_prod#AVarargExpr#replace_child for (self: AVarargExpr, ANode, nullable ANode) */ +void parser_prod__AVarargExpr__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : AExpr */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var8 /* : TDotdotdot */; +short int var9 /* : Bool */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__AVarargExpr___n_expr].val; /* _n_expr on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6027); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa AExpr */ +cltype = type_parser_nodes__AExpr.color; +idtype = type_parser_nodes__AExpr.id; +if(var_new_child == NULL) { +var7 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6028); +show_backtrace(1); +} +{ +parser_prod__AVarargExpr__n_expr_61d(self, var_new_child); /* Direct call parser_prod#AVarargExpr#n_expr= on */ +} +goto RET_LABEL; +} else { +} +var8 = self->attrs[COLOR_parser_nodes__AVarargExpr___n_dotdotdot].val; /* _n_dotdotdot on */ +if (unlikely(var8 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdotdot"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6031); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; +} +} +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; +} +var9 = var10; +} +if (var9){ +/* isa TDotdotdot */ +cltype16 = type_parser_nodes__TDotdotdot.color; +idtype17 = type_parser_nodes__TDotdotdot.id; +if(var_new_child == NULL) { +var15 = 0; +} else { +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; +} else { +var15 = var_new_child->type->type_table[cltype16] == idtype17; +} +} +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TDotdotdot", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6032); +show_backtrace(1); +} +{ +parser_prod__AVarargExpr__n_dotdotdot_61d(self, var_new_child); /* Direct call parser_prod#AVarargExpr#n_dotdotdot= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#AVarargExpr#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AVarargExpr__replace_child(val* self, val* p0, val* p1) { +parser_prod__AVarargExpr__replace_child(self, p0, p1); /* Direct call parser_prod#AVarargExpr#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#AVarargExpr#n_expr= for (self: AVarargExpr, AExpr) */ +void parser_prod__AVarargExpr__n_expr_61d(val* self, val* p0) { +val* var_node /* var node: AExpr */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AVarargExpr___n_expr].val = var_node; /* _n_expr on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AVarargExpr#n_expr= for (self: Object, AExpr) */ +void VIRTUAL_parser_prod__AVarargExpr__n_expr_61d(val* self, val* p0) { +parser_prod__AVarargExpr__n_expr_61d(self, p0); /* Direct call parser_prod#AVarargExpr#n_expr= on */ +RET_LABEL:; +} +/* method parser_prod#AVarargExpr#n_dotdotdot= for (self: AVarargExpr, TDotdotdot) */ +void parser_prod__AVarargExpr__n_dotdotdot_61d(val* self, val* p0) { +val* var_node /* var node: TDotdotdot */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AVarargExpr___n_dotdotdot].val = var_node; /* _n_dotdotdot on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AVarargExpr#n_dotdotdot= for (self: Object, TDotdotdot) */ +void VIRTUAL_parser_prod__AVarargExpr__n_dotdotdot_61d(val* self, val* p0) { +parser_prod__AVarargExpr__n_dotdotdot_61d(self, p0); /* Direct call parser_prod#AVarargExpr#n_dotdotdot= on */ +RET_LABEL:; +} +/* method parser_prod#AVarargExpr#visit_all for (self: AVarargExpr, Visitor) */ +void parser_prod__AVarargExpr__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : AExpr */; +val* var1 /* : TDotdotdot */; +var_v = p0; +var = self->attrs[COLOR_parser_nodes__AVarargExpr___n_expr].val; /* _n_expr on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6051); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var1 = self->attrs[COLOR_parser_nodes__AVarargExpr___n_dotdotdot].val; /* _n_dotdotdot on */ +if (unlikely(var1 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_dotdotdot"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6052); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod#AVarargExpr#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AVarargExpr__visit_all(val* self, val* p0) { +parser_prod__AVarargExpr__visit_all(self, p0); /* Direct call parser_prod#AVarargExpr#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#ATypeExpr#init_atypeexpr for (self: ATypeExpr, nullable AType) */ +void parser_prod__ATypeExpr__init_atypeexpr(val* self, val* p0) { +val* var_n_type /* var n_type: nullable AType */; +var_n_type = p0; +if (unlikely(var_n_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6060); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__ATypeExpr___n_type].val = var_n_type; /* _n_type on */ +if (var_n_type == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6061); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_type,self) on */ +if (unlikely(var_n_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_type->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#ATypeExpr#init_atypeexpr for (self: Object, nullable AType) */ +void VIRTUAL_parser_prod__ATypeExpr__init_atypeexpr(val* self, val* p0) { +parser_prod__ATypeExpr__init_atypeexpr(self, p0); /* Direct call parser_prod#ATypeExpr#init_atypeexpr on */ +RET_LABEL:; +} +/* method parser_prod#ATypeExpr#replace_child for (self: ATypeExpr, ANode, nullable ANode) */ +void parser_prod__ATypeExpr__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : AType */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__ATypeExpr___n_type].val; /* _n_type on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6066); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa AType */ +cltype = type_parser_nodes__AType.color; +idtype = type_parser_nodes__AType.id; +if(var_new_child == NULL) { +var7 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6067); +show_backtrace(1); +} +{ +parser_prod__ATypeExpr__n_type_61d(self, var_new_child); /* Direct call parser_prod#ATypeExpr#n_type= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#ATypeExpr#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__ATypeExpr__replace_child(val* self, val* p0, val* p1) { +parser_prod__ATypeExpr__replace_child(self, p0, p1); /* Direct call parser_prod#ATypeExpr#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#ATypeExpr#n_type= for (self: ATypeExpr, AType) */ +void parser_prod__ATypeExpr__n_type_61d(val* self, val* p0) { +val* var_node /* var node: AType */; +var_node = p0; +self->attrs[COLOR_parser_nodes__ATypeExpr___n_type].val = var_node; /* _n_type on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#ATypeExpr#n_type= for (self: Object, AType) */ +void VIRTUAL_parser_prod__ATypeExpr__n_type_61d(val* self, val* p0) { +parser_prod__ATypeExpr__n_type_61d(self, p0); /* Direct call parser_prod#ATypeExpr#n_type= on */ +RET_LABEL:; +} +/* method parser_prod#ATypeExpr#visit_all for (self: ATypeExpr, Visitor) */ +void parser_prod__ATypeExpr__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : AType */; +var_v = p0; +var = self->attrs[COLOR_parser_nodes__ATypeExpr___n_type].val; /* _n_type on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6081); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod#ATypeExpr#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__ATypeExpr__visit_all(val* self, val* p0) { +parser_prod__ATypeExpr__visit_all(self, p0); /* Direct call parser_prod#ATypeExpr#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#AMethidExpr#init_amethidexpr for (self: AMethidExpr, nullable AExpr, nullable AMethid) */ +void parser_prod__AMethidExpr__init_amethidexpr(val* self, val* p0, val* p1) { +val* var_n_expr /* var n_expr: nullable AExpr */; +val* var_n_id /* var n_id: nullable AMethid */; +var_n_expr = p0; +var_n_id = p1; +if (unlikely(var_n_expr == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6090); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__AMethidExpr___n_expr].val = var_n_expr; /* _n_expr on */ +if (var_n_expr == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6091); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_expr,self) on */ +if (unlikely(var_n_expr == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_expr->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +if (unlikely(var_n_id == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6092); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__AMethidExpr___n_id].val = var_n_id; /* _n_id on */ +if (var_n_id == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6093); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_id,self) on */ +if (unlikely(var_n_id == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_id->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AMethidExpr#init_amethidexpr for (self: Object, nullable AExpr, nullable AMethid) */ +void VIRTUAL_parser_prod__AMethidExpr__init_amethidexpr(val* self, val* p0, val* p1) { +parser_prod__AMethidExpr__init_amethidexpr(self, p0, p1); /* Direct call parser_prod#AMethidExpr#init_amethidexpr on */ +RET_LABEL:; +} +/* method parser_prod#AMethidExpr#replace_child for (self: AMethidExpr, ANode, nullable ANode) */ +void parser_prod__AMethidExpr__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : AExpr */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var8 /* : AMethid */; +short int var9 /* : Bool */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__AMethidExpr___n_expr].val; /* _n_expr on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6098); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa AExpr */ +cltype = type_parser_nodes__AExpr.color; +idtype = type_parser_nodes__AExpr.id; +if(var_new_child == NULL) { +var7 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AExpr", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6099); +show_backtrace(1); +} +{ +parser_prod__AMethidExpr__n_expr_61d(self, var_new_child); /* Direct call parser_prod#AMethidExpr#n_expr= on */ +} +goto RET_LABEL; +} else { +} +var8 = self->attrs[COLOR_parser_nodes__AMethidExpr___n_id].val; /* _n_id on */ +if (unlikely(var8 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6102); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; +} +} +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; +} +var9 = var10; +} +if (var9){ +/* isa AMethid */ +cltype16 = type_parser_nodes__AMethid.color; +idtype17 = type_parser_nodes__AMethid.id; +if(var_new_child == NULL) { +var15 = 0; +} else { +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; +} else { +var15 = var_new_child->type->type_table[cltype16] == idtype17; +} +} +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AMethid", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6103); +show_backtrace(1); +} +{ +parser_prod__AMethidExpr__n_id_61d(self, var_new_child); /* Direct call parser_prod#AMethidExpr#n_id= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#AMethidExpr#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AMethidExpr__replace_child(val* self, val* p0, val* p1) { +parser_prod__AMethidExpr__replace_child(self, p0, p1); /* Direct call parser_prod#AMethidExpr#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#AMethidExpr#n_expr= for (self: AMethidExpr, AExpr) */ +void parser_prod__AMethidExpr__n_expr_61d(val* self, val* p0) { +val* var_node /* var node: AExpr */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AMethidExpr___n_expr].val = var_node; /* _n_expr on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AMethidExpr#n_expr= for (self: Object, AExpr) */ +void VIRTUAL_parser_prod__AMethidExpr__n_expr_61d(val* self, val* p0) { +parser_prod__AMethidExpr__n_expr_61d(self, p0); /* Direct call parser_prod#AMethidExpr#n_expr= on */ +RET_LABEL:; +} +/* method parser_prod#AMethidExpr#n_id= for (self: AMethidExpr, AMethid) */ +void parser_prod__AMethidExpr__n_id_61d(val* self, val* p0) { +val* var_node /* var node: AMethid */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AMethidExpr___n_id].val = var_node; /* _n_id on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AMethidExpr#n_id= for (self: Object, AMethid) */ +void VIRTUAL_parser_prod__AMethidExpr__n_id_61d(val* self, val* p0) { +parser_prod__AMethidExpr__n_id_61d(self, p0); /* Direct call parser_prod#AMethidExpr#n_id= on */ +RET_LABEL:; +} +/* method parser_prod#AMethidExpr#visit_all for (self: AMethidExpr, Visitor) */ +void parser_prod__AMethidExpr__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : AExpr */; +val* var1 /* : AMethid */; +var_v = p0; +var = self->attrs[COLOR_parser_nodes__AMethidExpr___n_expr].val; /* _n_expr on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_expr"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6122); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var1 = self->attrs[COLOR_parser_nodes__AMethidExpr___n_id].val; /* _n_id on */ +if (unlikely(var1 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6123); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod#AMethidExpr#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AMethidExpr__visit_all(val* self, val* p0) { +parser_prod__AMethidExpr__visit_all(self, p0); /* Direct call parser_prod#AMethidExpr#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#AAtExpr#init_aatexpr for (self: AAtExpr, nullable AAnnotations) */ +void parser_prod__AAtExpr__init_aatexpr(val* self, val* p0) { +val* var_n_annotations /* var n_annotations: nullable AAnnotations */; +var_n_annotations = p0; +if (unlikely(var_n_annotations == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6131); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__Prod___n_annotations].val = var_n_annotations; /* _n_annotations on */ +if (var_n_annotations == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6132); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on */ +if (unlikely(var_n_annotations == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_annotations->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AAtExpr#init_aatexpr for (self: Object, nullable AAnnotations) */ +void VIRTUAL_parser_prod__AAtExpr__init_aatexpr(val* self, val* p0) { +parser_prod__AAtExpr__init_aatexpr(self, p0); /* Direct call parser_prod#AAtExpr#init_aatexpr on */ +RET_LABEL:; +} +/* method parser_prod#AAtExpr#replace_child for (self: AAtExpr, ANode, nullable ANode) */ +void parser_prod__AAtExpr__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : nullable AAnnotations */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ +if (var == NULL) { +var1 = 0; /* cannot be null */ +} else { +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa AAnnotations */ +cltype = type_parser_nodes__AAnnotations.color; +idtype = type_parser_nodes__AAnnotations.id; +if(var_new_child == NULL) { +var7 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAnnotations", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6138); +show_backtrace(1); +} +{ +parser_prod__AAtExpr__n_annotations_61d(self, var_new_child); /* Direct call parser_prod#AAtExpr#n_annotations= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#AAtExpr#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AAtExpr__replace_child(val* self, val* p0, val* p1) { +parser_prod__AAtExpr__replace_child(self, p0, p1); /* Direct call parser_prod#AAtExpr#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#AAtExpr#n_annotations= for (self: AAtExpr, nullable AAnnotations) */ +void parser_prod__AAtExpr__n_annotations_61d(val* self, val* p0) { +val* var_node /* var node: nullable AAnnotations */; +var_node = p0; +self->attrs[COLOR_parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ +if (var_node == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6146); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +if (unlikely(var_node == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AAtExpr#n_annotations= for (self: Object, nullable AAnnotations) */ +void VIRTUAL_parser_prod__AAtExpr__n_annotations_61d(val* self, val* p0) { +parser_prod__AAtExpr__n_annotations_61d(self, p0); /* Direct call parser_prod#AAtExpr#n_annotations= on */ +RET_LABEL:; +} +/* method parser_prod#AAtExpr#visit_all for (self: AAtExpr, Visitor) */ +void parser_prod__AAtExpr__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : nullable AAnnotations */; +var_v = p0; +var = self->attrs[COLOR_parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod#AAtExpr#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AAtExpr__visit_all(val* self, val* p0) { +parser_prod__AAtExpr__visit_all(self, p0); /* Direct call parser_prod#AAtExpr#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#AManyExpr#init_amanyexpr for (self: AManyExpr, Collection[Object]) */ +void parser_prod__AManyExpr__init_amanyexpr(val* self, val* p0) { +val* var_n_exprs /* var n_exprs: Collection[Object] */; +val* var /* : ANodes[AExpr] */; +val* var2 /* : ANodes[AExpr] */; +var_n_exprs = p0; +{ +{ /* Inline parser_nodes#AManyExpr#n_exprs (self) on */ +var2 = self->attrs[COLOR_parser_nodes__AManyExpr___n_exprs].val; /* _n_exprs on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1909); +show_backtrace(1); +} +var = var2; +RET_LABEL1:(void)0; +} +} +{ +parser_nodes__ANodes__unsafe_add_all(var, var_n_exprs); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ +} +RET_LABEL:; +} +/* method parser_prod#AManyExpr#init_amanyexpr for (self: Object, Collection[Object]) */ +void VIRTUAL_parser_prod__AManyExpr__init_amanyexpr(val* self, val* p0) { +parser_prod__AManyExpr__init_amanyexpr(self, p0); /* Direct call parser_prod#AManyExpr#init_amanyexpr on */ +RET_LABEL:; +} +/* method parser_prod#AManyExpr#replace_child for (self: AManyExpr, ANode, nullable ANode) */ +void parser_prod__AManyExpr__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : ANodes[AExpr] */; +val* var2 /* : ANodes[AExpr] */; +short int var3 /* : Bool */; +var_old_child = p0; +var_new_child = p1; +{ +{ /* Inline parser_nodes#AManyExpr#n_exprs (self) on */ +var2 = self->attrs[COLOR_parser_nodes__AManyExpr___n_exprs].val; /* _n_exprs on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1909); +show_backtrace(1); +} +var = var2; +RET_LABEL1:(void)0; +} +} +{ +var3 = parser_nodes__ANodes__replace_child(var, var_old_child, var_new_child); +} +if (var3){ +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#AManyExpr#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AManyExpr__replace_child(val* self, val* p0, val* p1) { +parser_prod__AManyExpr__replace_child(self, p0, p1); /* Direct call parser_prod#AManyExpr#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#AManyExpr#visit_all for (self: AManyExpr, Visitor) */ +void parser_prod__AManyExpr__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : ANodes[AExpr] */; +val* var2 /* : ANodes[AExpr] */; +var_v = p0; +{ +{ /* Inline parser_nodes#AManyExpr#n_exprs (self) on */ +var2 = self->attrs[COLOR_parser_nodes__AManyExpr___n_exprs].val; /* _n_exprs on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1909); +show_backtrace(1); +} +var = var2; +RET_LABEL1:(void)0; +} +} +{ +parser_nodes__ANodes__visit_all(var, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ +} +RET_LABEL:; +} +/* method parser_prod#AManyExpr#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AManyExpr__visit_all(val* self, val* p0) { +parser_prod__AManyExpr__visit_all(self, p0); /* Direct call parser_prod#AManyExpr#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#AListExprs#init_alistexprs for (self: AListExprs, Collection[Object]) */ +void parser_prod__AListExprs__init_alistexprs(val* self, val* p0) { +val* var_n_exprs /* var n_exprs: Collection[Object] */; +val* var /* : ANodes[AExpr] */; +val* var2 /* : ANodes[AExpr] */; +var_n_exprs = p0; +{ +{ /* Inline parser_nodes#AExprs#n_exprs (self) on */ +var2 = self->attrs[COLOR_parser_nodes__AExprs___n_exprs].val; /* _n_exprs on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946); +show_backtrace(1); +} +var = var2; +RET_LABEL1:(void)0; +} +} +{ +parser_nodes__ANodes__unsafe_add_all(var, var_n_exprs); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ +} +RET_LABEL:; +} +/* method parser_prod#AListExprs#init_alistexprs for (self: Object, Collection[Object]) */ +void VIRTUAL_parser_prod__AListExprs__init_alistexprs(val* self, val* p0) { +parser_prod__AListExprs__init_alistexprs(self, p0); /* Direct call parser_prod#AListExprs#init_alistexprs on */ +RET_LABEL:; +} +/* method parser_prod#AListExprs#replace_child for (self: AListExprs, ANode, nullable ANode) */ +void parser_prod__AListExprs__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : ANodes[AExpr] */; +val* var2 /* : ANodes[AExpr] */; +short int var3 /* : Bool */; +var_old_child = p0; +var_new_child = p1; +{ +{ /* Inline parser_nodes#AExprs#n_exprs (self) on */ +var2 = self->attrs[COLOR_parser_nodes__AExprs___n_exprs].val; /* _n_exprs on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946); +show_backtrace(1); +} +var = var2; +RET_LABEL1:(void)0; +} +} +{ +var3 = parser_nodes__ANodes__replace_child(var, var_old_child, var_new_child); +} +if (var3){ +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#AListExprs#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AListExprs__replace_child(val* self, val* p0, val* p1) { +parser_prod__AListExprs__replace_child(self, p0, p1); /* Direct call parser_prod#AListExprs#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#AListExprs#visit_all for (self: AListExprs, Visitor) */ +void parser_prod__AListExprs__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : ANodes[AExpr] */; +val* var2 /* : ANodes[AExpr] */; +var_v = p0; +{ +{ /* Inline parser_nodes#AExprs#n_exprs (self) on */ +var2 = self->attrs[COLOR_parser_nodes__AExprs___n_exprs].val; /* _n_exprs on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946); +show_backtrace(1); +} +var = var2; +RET_LABEL1:(void)0; +} +} +{ +parser_nodes__ANodes__visit_all(var, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ +} +RET_LABEL:; +} +/* method parser_prod#AListExprs#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AListExprs__visit_all(val* self, val* p0) { +parser_prod__AListExprs__visit_all(self, p0); /* Direct call parser_prod#AListExprs#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#AParExprs#init_aparexprs for (self: AParExprs, nullable TOpar, Collection[Object], nullable TCpar) */ +void parser_prod__AParExprs__init_aparexprs(val* self, val* p0, val* p1, val* p2) { +val* var_n_opar /* var n_opar: nullable TOpar */; +val* var_n_exprs /* var n_exprs: Collection[Object] */; +val* var_n_cpar /* var n_cpar: nullable TCpar */; +val* var /* : ANodes[AExpr] */; +val* var3 /* : ANodes[AExpr] */; +var_n_opar = p0; +var_n_exprs = p1; +var_n_cpar = p2; +if (unlikely(var_n_opar == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6202); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__AParExprs___n_opar].val = var_n_opar; /* _n_opar on */ +if (var_n_opar == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6203); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on */ +if (unlikely(var_n_opar == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_opar->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +{ +{ /* Inline parser_nodes#AExprs#n_exprs (self) on */ +var3 = self->attrs[COLOR_parser_nodes__AExprs___n_exprs].val; /* _n_exprs on */ +if (unlikely(var3 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946); +show_backtrace(1); +} +var = var3; +RET_LABEL2:(void)0; +} +} +{ +parser_nodes__ANodes__unsafe_add_all(var, var_n_exprs); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ +} +if (unlikely(var_n_cpar == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6205); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__AParExprs___n_cpar].val = var_n_cpar; /* _n_cpar on */ +if (var_n_cpar == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6206); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on */ +if (unlikely(var_n_cpar == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_cpar->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL4:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AParExprs#init_aparexprs for (self: Object, nullable TOpar, Collection[Object], nullable TCpar) */ +void VIRTUAL_parser_prod__AParExprs__init_aparexprs(val* self, val* p0, val* p1, val* p2) { +parser_prod__AParExprs__init_aparexprs(self, p0, p1, p2); /* Direct call parser_prod#AParExprs#init_aparexprs on */ +RET_LABEL:; +} +/* method parser_prod#AParExprs#replace_child for (self: AParExprs, ANode, nullable ANode) */ +void parser_prod__AParExprs__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : TOpar */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var8 /* : ANodes[AExpr] */; +val* var10 /* : ANodes[AExpr] */; +short int var11 /* : Bool */; +val* var12 /* : TCpar */; +short int var13 /* : Bool */; +short int var14 /* : Bool */; +short int var16 /* : Bool */; +short int var18 /* : Bool */; +short int var19 /* : Bool */; +int cltype20; +int idtype21; +const char* var_class_name22; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__AParExprs___n_opar].val; /* _n_opar on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6211); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa TOpar */ +cltype = type_parser_nodes__TOpar.color; +idtype = type_parser_nodes__TOpar.id; +if(var_new_child == NULL) { +var7 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TOpar", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6212); +show_backtrace(1); +} +{ +parser_prod__AParExprs__n_opar_61d(self, var_new_child); /* Direct call parser_prod#AParExprs#n_opar= on */ +} +goto RET_LABEL; +} else { +} +{ +{ /* Inline parser_nodes#AExprs#n_exprs (self) on */ +var10 = self->attrs[COLOR_parser_nodes__AExprs___n_exprs].val; /* _n_exprs on */ +if (unlikely(var10 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946); +show_backtrace(1); +} +var8 = var10; +RET_LABEL9:(void)0; +} +} +{ +var11 = parser_nodes__ANodes__replace_child(var8, var_old_child, var_new_child); +} +if (var11){ +goto RET_LABEL; +} else { +} +var12 = self->attrs[COLOR_parser_nodes__AParExprs___n_cpar].val; /* _n_cpar on */ +if (unlikely(var12 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6216); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var12,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var12,var_other) on */ +var18 = var12 == var_other; +var16 = var18; +goto RET_LABEL17; +RET_LABEL17:(void)0; +} +} +var14 = var16; +goto RET_LABEL15; +RET_LABEL15:(void)0; +} +var13 = var14; +} +if (var13){ +/* isa TCpar */ +cltype20 = type_parser_nodes__TCpar.color; +idtype21 = type_parser_nodes__TCpar.id; +if(var_new_child == NULL) { +var19 = 0; +} else { +if(cltype20 >= var_new_child->type->table_size) { +var19 = 0; +} else { +var19 = var_new_child->type->type_table[cltype20] == idtype21; +} +} +if (unlikely(!var19)) { +var_class_name22 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCpar", var_class_name22); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6217); +show_backtrace(1); +} +{ +parser_prod__AParExprs__n_cpar_61d(self, var_new_child); /* Direct call parser_prod#AParExprs#n_cpar= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#AParExprs#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AParExprs__replace_child(val* self, val* p0, val* p1) { +parser_prod__AParExprs__replace_child(self, p0, p1); /* Direct call parser_prod#AParExprs#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#AParExprs#n_opar= for (self: AParExprs, TOpar) */ +void parser_prod__AParExprs__n_opar_61d(val* self, val* p0) { +val* var_node /* var node: TOpar */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AParExprs___n_opar].val = var_node; /* _n_opar on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AParExprs#n_opar= for (self: Object, TOpar) */ +void VIRTUAL_parser_prod__AParExprs__n_opar_61d(val* self, val* p0) { +parser_prod__AParExprs__n_opar_61d(self, p0); /* Direct call parser_prod#AParExprs#n_opar= on */ +RET_LABEL:; +} +/* method parser_prod#AParExprs#n_cpar= for (self: AParExprs, TCpar) */ +void parser_prod__AParExprs__n_cpar_61d(val* self, val* p0) { +val* var_node /* var node: TCpar */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AParExprs___n_cpar].val = var_node; /* _n_cpar on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AParExprs#n_cpar= for (self: Object, TCpar) */ +void VIRTUAL_parser_prod__AParExprs__n_cpar_61d(val* self, val* p0) { +parser_prod__AParExprs__n_cpar_61d(self, p0); /* Direct call parser_prod#AParExprs#n_cpar= on */ +RET_LABEL:; +} +/* method parser_prod#AParExprs#visit_all for (self: AParExprs, Visitor) */ +void parser_prod__AParExprs__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : TOpar */; +val* var1 /* : ANodes[AExpr] */; +val* var3 /* : ANodes[AExpr] */; +val* var4 /* : TCpar */; +var_v = p0; +var = self->attrs[COLOR_parser_nodes__AParExprs___n_opar].val; /* _n_opar on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_opar"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6236); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +{ +{ /* Inline parser_nodes#AExprs#n_exprs (self) on */ +var3 = self->attrs[COLOR_parser_nodes__AExprs___n_exprs].val; /* _n_exprs on */ +if (unlikely(var3 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946); +show_backtrace(1); +} +var1 = var3; +RET_LABEL2:(void)0; +} +} +{ +parser_nodes__ANodes__visit_all(var1, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ +} +var4 = self->attrs[COLOR_parser_nodes__AParExprs___n_cpar].val; /* _n_cpar on */ +if (unlikely(var4 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cpar"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6238); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var4); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod#AParExprs#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AParExprs__visit_all(val* self, val* p0) { +parser_prod__AParExprs__visit_all(self, p0); /* Direct call parser_prod#AParExprs#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#ABraExprs#init_abraexprs for (self: ABraExprs, nullable TObra, Collection[Object], nullable TCbra) */ +void parser_prod__ABraExprs__init_abraexprs(val* self, val* p0, val* p1, val* p2) { +val* var_n_obra /* var n_obra: nullable TObra */; +val* var_n_exprs /* var n_exprs: Collection[Object] */; +val* var_n_cbra /* var n_cbra: nullable TCbra */; +val* var /* : ANodes[AExpr] */; +val* var3 /* : ANodes[AExpr] */; +var_n_obra = p0; +var_n_exprs = p1; +var_n_cbra = p2; +if (unlikely(var_n_obra == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6248); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__ABraExprs___n_obra].val = var_n_obra; /* _n_obra on */ +if (var_n_obra == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6249); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_obra,self) on */ +if (unlikely(var_n_obra == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_obra->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +{ +{ /* Inline parser_nodes#AExprs#n_exprs (self) on */ +var3 = self->attrs[COLOR_parser_nodes__AExprs___n_exprs].val; /* _n_exprs on */ +if (unlikely(var3 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946); +show_backtrace(1); +} +var = var3; +RET_LABEL2:(void)0; +} +} +{ +parser_nodes__ANodes__unsafe_add_all(var, var_n_exprs); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ +} +if (unlikely(var_n_cbra == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6251); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__ABraExprs___n_cbra].val = var_n_cbra; /* _n_cbra on */ +if (var_n_cbra == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6252); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_cbra,self) on */ +if (unlikely(var_n_cbra == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_cbra->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL4:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#ABraExprs#init_abraexprs for (self: Object, nullable TObra, Collection[Object], nullable TCbra) */ +void VIRTUAL_parser_prod__ABraExprs__init_abraexprs(val* self, val* p0, val* p1, val* p2) { +parser_prod__ABraExprs__init_abraexprs(self, p0, p1, p2); /* Direct call parser_prod#ABraExprs#init_abraexprs on */ +RET_LABEL:; +} +/* method parser_prod#ABraExprs#replace_child for (self: ABraExprs, ANode, nullable ANode) */ +void parser_prod__ABraExprs__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : TObra */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var8 /* : ANodes[AExpr] */; +val* var10 /* : ANodes[AExpr] */; +short int var11 /* : Bool */; +val* var12 /* : TCbra */; +short int var13 /* : Bool */; +short int var14 /* : Bool */; +short int var16 /* : Bool */; +short int var18 /* : Bool */; +short int var19 /* : Bool */; +int cltype20; +int idtype21; +const char* var_class_name22; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__ABraExprs___n_obra].val; /* _n_obra on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6257); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa TObra */ +cltype = type_parser_nodes__TObra.color; +idtype = type_parser_nodes__TObra.id; +if(var_new_child == NULL) { +var7 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TObra", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6258); +show_backtrace(1); +} +{ +parser_prod__ABraExprs__n_obra_61d(self, var_new_child); /* Direct call parser_prod#ABraExprs#n_obra= on */ +} +goto RET_LABEL; +} else { +} +{ +{ /* Inline parser_nodes#AExprs#n_exprs (self) on */ +var10 = self->attrs[COLOR_parser_nodes__AExprs___n_exprs].val; /* _n_exprs on */ +if (unlikely(var10 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946); +show_backtrace(1); +} +var8 = var10; +RET_LABEL9:(void)0; +} +} +{ +var11 = parser_nodes__ANodes__replace_child(var8, var_old_child, var_new_child); +} +if (var11){ +goto RET_LABEL; +} else { +} +var12 = self->attrs[COLOR_parser_nodes__ABraExprs___n_cbra].val; /* _n_cbra on */ +if (unlikely(var12 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6262); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var12,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var12,var_other) on */ +var18 = var12 == var_other; +var16 = var18; +goto RET_LABEL17; +RET_LABEL17:(void)0; +} +} +var14 = var16; +goto RET_LABEL15; +RET_LABEL15:(void)0; +} +var13 = var14; +} +if (var13){ +/* isa TCbra */ +cltype20 = type_parser_nodes__TCbra.color; +idtype21 = type_parser_nodes__TCbra.id; +if(var_new_child == NULL) { +var19 = 0; +} else { +if(cltype20 >= var_new_child->type->table_size) { +var19 = 0; +} else { +var19 = var_new_child->type->type_table[cltype20] == idtype21; +} +} +if (unlikely(!var19)) { +var_class_name22 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TCbra", var_class_name22); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6263); +show_backtrace(1); +} +{ +parser_prod__ABraExprs__n_cbra_61d(self, var_new_child); /* Direct call parser_prod#ABraExprs#n_cbra= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#ABraExprs#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__ABraExprs__replace_child(val* self, val* p0, val* p1) { +parser_prod__ABraExprs__replace_child(self, p0, p1); /* Direct call parser_prod#ABraExprs#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#ABraExprs#n_obra= for (self: ABraExprs, TObra) */ +void parser_prod__ABraExprs__n_obra_61d(val* self, val* p0) { +val* var_node /* var node: TObra */; +var_node = p0; +self->attrs[COLOR_parser_nodes__ABraExprs___n_obra].val = var_node; /* _n_obra on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#ABraExprs#n_obra= for (self: Object, TObra) */ +void VIRTUAL_parser_prod__ABraExprs__n_obra_61d(val* self, val* p0) { +parser_prod__ABraExprs__n_obra_61d(self, p0); /* Direct call parser_prod#ABraExprs#n_obra= on */ +RET_LABEL:; +} +/* method parser_prod#ABraExprs#n_cbra= for (self: ABraExprs, TCbra) */ +void parser_prod__ABraExprs__n_cbra_61d(val* self, val* p0) { +val* var_node /* var node: TCbra */; +var_node = p0; +self->attrs[COLOR_parser_nodes__ABraExprs___n_cbra].val = var_node; /* _n_cbra on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#ABraExprs#n_cbra= for (self: Object, TCbra) */ +void VIRTUAL_parser_prod__ABraExprs__n_cbra_61d(val* self, val* p0) { +parser_prod__ABraExprs__n_cbra_61d(self, p0); /* Direct call parser_prod#ABraExprs#n_cbra= on */ +RET_LABEL:; +} +/* method parser_prod#ABraExprs#visit_all for (self: ABraExprs, Visitor) */ +void parser_prod__ABraExprs__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : TObra */; +val* var1 /* : ANodes[AExpr] */; +val* var3 /* : ANodes[AExpr] */; +val* var4 /* : TCbra */; +var_v = p0; +var = self->attrs[COLOR_parser_nodes__ABraExprs___n_obra].val; /* _n_obra on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_obra"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6282); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +{ +{ /* Inline parser_nodes#AExprs#n_exprs (self) on */ +var3 = self->attrs[COLOR_parser_nodes__AExprs___n_exprs].val; /* _n_exprs on */ +if (unlikely(var3 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_exprs"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1946); +show_backtrace(1); +} +var1 = var3; +RET_LABEL2:(void)0; +} +} +{ +parser_nodes__ANodes__visit_all(var1, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ +} +var4 = self->attrs[COLOR_parser_nodes__ABraExprs___n_cbra].val; /* _n_cbra on */ +if (unlikely(var4 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_cbra"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6284); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var4); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod#ABraExprs#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__ABraExprs__visit_all(val* self, val* p0) { +parser_prod__ABraExprs__visit_all(self, p0); /* Direct call parser_prod#ABraExprs#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#APlusAssignOp#init_aplusassignop for (self: APlusAssignOp, nullable TPluseq) */ +void parser_prod__APlusAssignOp__init_aplusassignop(val* self, val* p0) { +val* var_n_pluseq /* var n_pluseq: nullable TPluseq */; +var_n_pluseq = p0; +if (unlikely(var_n_pluseq == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6292); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__APlusAssignOp___n_pluseq].val = var_n_pluseq; /* _n_pluseq on */ +if (var_n_pluseq == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6293); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_pluseq,self) on */ +if (unlikely(var_n_pluseq == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_pluseq->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#APlusAssignOp#init_aplusassignop for (self: Object, nullable TPluseq) */ +void VIRTUAL_parser_prod__APlusAssignOp__init_aplusassignop(val* self, val* p0) { +parser_prod__APlusAssignOp__init_aplusassignop(self, p0); /* Direct call parser_prod#APlusAssignOp#init_aplusassignop on */ +RET_LABEL:; +} +/* method parser_prod#APlusAssignOp#replace_child for (self: APlusAssignOp, ANode, nullable ANode) */ +void parser_prod__APlusAssignOp__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : TPluseq */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__APlusAssignOp___n_pluseq].val; /* _n_pluseq on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_pluseq"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6298); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa TPluseq */ +cltype = type_parser_nodes__TPluseq.color; +idtype = type_parser_nodes__TPluseq.id; +if(var_new_child == NULL) { +var7 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TPluseq", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6299); +show_backtrace(1); +} +{ +parser_prod__APlusAssignOp__n_pluseq_61d(self, var_new_child); /* Direct call parser_prod#APlusAssignOp#n_pluseq= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#APlusAssignOp#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__APlusAssignOp__replace_child(val* self, val* p0, val* p1) { +parser_prod__APlusAssignOp__replace_child(self, p0, p1); /* Direct call parser_prod#APlusAssignOp#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#APlusAssignOp#n_pluseq= for (self: APlusAssignOp, TPluseq) */ +void parser_prod__APlusAssignOp__n_pluseq_61d(val* self, val* p0) { +val* var_node /* var node: TPluseq */; +var_node = p0; +self->attrs[COLOR_parser_nodes__APlusAssignOp___n_pluseq].val = var_node; /* _n_pluseq on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#APlusAssignOp#n_pluseq= for (self: Object, TPluseq) */ +void VIRTUAL_parser_prod__APlusAssignOp__n_pluseq_61d(val* self, val* p0) { +parser_prod__APlusAssignOp__n_pluseq_61d(self, p0); /* Direct call parser_prod#APlusAssignOp#n_pluseq= on */ +RET_LABEL:; +} +/* method parser_prod#APlusAssignOp#visit_all for (self: APlusAssignOp, Visitor) */ +void parser_prod__APlusAssignOp__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : TPluseq */; +var_v = p0; +var = self->attrs[COLOR_parser_nodes__APlusAssignOp___n_pluseq].val; /* _n_pluseq on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_pluseq"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6313); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod#APlusAssignOp#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__APlusAssignOp__visit_all(val* self, val* p0) { +parser_prod__APlusAssignOp__visit_all(self, p0); /* Direct call parser_prod#APlusAssignOp#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#AMinusAssignOp#init_aminusassignop for (self: AMinusAssignOp, nullable TMinuseq) */ +void parser_prod__AMinusAssignOp__init_aminusassignop(val* self, val* p0) { +val* var_n_minuseq /* var n_minuseq: nullable TMinuseq */; +var_n_minuseq = p0; +if (unlikely(var_n_minuseq == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6321); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__AMinusAssignOp___n_minuseq].val = var_n_minuseq; /* _n_minuseq on */ +if (var_n_minuseq == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6322); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_minuseq,self) on */ +if (unlikely(var_n_minuseq == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_minuseq->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AMinusAssignOp#init_aminusassignop for (self: Object, nullable TMinuseq) */ +void VIRTUAL_parser_prod__AMinusAssignOp__init_aminusassignop(val* self, val* p0) { +parser_prod__AMinusAssignOp__init_aminusassignop(self, p0); /* Direct call parser_prod#AMinusAssignOp#init_aminusassignop on */ +RET_LABEL:; +} +/* method parser_prod#AMinusAssignOp#replace_child for (self: AMinusAssignOp, ANode, nullable ANode) */ +void parser_prod__AMinusAssignOp__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : TMinuseq */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__AMinusAssignOp___n_minuseq].val; /* _n_minuseq on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_minuseq"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6327); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa TMinuseq */ +cltype = type_parser_nodes__TMinuseq.color; +idtype = type_parser_nodes__TMinuseq.id; +if(var_new_child == NULL) { +var7 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TMinuseq", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6328); +show_backtrace(1); +} +{ +parser_prod__AMinusAssignOp__n_minuseq_61d(self, var_new_child); /* Direct call parser_prod#AMinusAssignOp#n_minuseq= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#AMinusAssignOp#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AMinusAssignOp__replace_child(val* self, val* p0, val* p1) { +parser_prod__AMinusAssignOp__replace_child(self, p0, p1); /* Direct call parser_prod#AMinusAssignOp#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#AMinusAssignOp#n_minuseq= for (self: AMinusAssignOp, TMinuseq) */ +void parser_prod__AMinusAssignOp__n_minuseq_61d(val* self, val* p0) { +val* var_node /* var node: TMinuseq */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AMinusAssignOp___n_minuseq].val = var_node; /* _n_minuseq on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AMinusAssignOp#n_minuseq= for (self: Object, TMinuseq) */ +void VIRTUAL_parser_prod__AMinusAssignOp__n_minuseq_61d(val* self, val* p0) { +parser_prod__AMinusAssignOp__n_minuseq_61d(self, p0); /* Direct call parser_prod#AMinusAssignOp#n_minuseq= on */ +RET_LABEL:; +} +/* method parser_prod#AMinusAssignOp#visit_all for (self: AMinusAssignOp, Visitor) */ +void parser_prod__AMinusAssignOp__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : TMinuseq */; +var_v = p0; +var = self->attrs[COLOR_parser_nodes__AMinusAssignOp___n_minuseq].val; /* _n_minuseq on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_minuseq"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6342); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod#AMinusAssignOp#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AMinusAssignOp__visit_all(val* self, val* p0) { +parser_prod__AMinusAssignOp__visit_all(self, p0); /* Direct call parser_prod#AMinusAssignOp#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#AModuleName#init_amodulename for (self: AModuleName, nullable TQuad, Collection[Object], nullable TId) */ +void parser_prod__AModuleName__init_amodulename(val* self, val* p0, val* p1, val* p2) { +val* var_n_quad /* var n_quad: nullable TQuad */; +val* var_n_path /* var n_path: Collection[Object] */; +val* var_n_id /* var n_id: nullable TId */; +val* var /* : null */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +val* var8 /* : ANodes[TId] */; +val* var10 /* : ANodes[TId] */; +var_n_quad = p0; +var_n_path = p1; +var_n_id = p2; +self->attrs[COLOR_parser_nodes__AModuleName___n_quad].val = var_n_quad; /* _n_quad on */ +var = NULL; +if (var_n_quad == NULL) { +var1 = 0; /* is null */ +} else { +var1 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel#Object#!= (var_n_quad,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_n_quad->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_quad, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_quad,self) on */ +var_n_quad->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} +} else { +} +{ +{ /* Inline parser_nodes#AModuleName#n_path (self) on */ +var10 = self->attrs[COLOR_parser_nodes__AModuleName___n_path].val; /* _n_path on */ +if (unlikely(var10 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_path"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1989); +show_backtrace(1); +} +var8 = var10; +RET_LABEL9:(void)0; +} +} +{ +parser_nodes__ANodes__unsafe_add_all(var8, var_n_path); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ +} +if (unlikely(var_n_id == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6355); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__AModuleName___n_id].val = var_n_id; /* _n_id on */ +if (var_n_id == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6356); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_id,self) on */ +if (unlikely(var_n_id == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_id->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL11:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AModuleName#init_amodulename for (self: Object, nullable TQuad, Collection[Object], nullable TId) */ +void VIRTUAL_parser_prod__AModuleName__init_amodulename(val* self, val* p0, val* p1, val* p2) { +parser_prod__AModuleName__init_amodulename(self, p0, p1, p2); /* Direct call parser_prod#AModuleName#init_amodulename on */ +RET_LABEL:; +} +/* method parser_prod#AModuleName#replace_child for (self: AModuleName, ANode, nullable ANode) */ +void parser_prod__AModuleName__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : nullable TQuad */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var8 /* : ANodes[TId] */; +val* var10 /* : ANodes[TId] */; +short int var11 /* : Bool */; +val* var12 /* : TId */; +short int var13 /* : Bool */; +short int var14 /* : Bool */; +short int var16 /* : Bool */; +short int var18 /* : Bool */; +short int var19 /* : Bool */; +int cltype20; +int idtype21; +const char* var_class_name22; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__AModuleName___n_quad].val; /* _n_quad on */ +if (var == NULL) { +var1 = 0; /* cannot be null */ +} else { +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa nullable TQuad */ +cltype = type_nullable_parser_nodes__TQuad.color; +idtype = type_nullable_parser_nodes__TQuad.id; +if(var_new_child == NULL) { +var7 = 1; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TQuad", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6362); +show_backtrace(1); +} +{ +parser_prod__AModuleName__n_quad_61d(self, var_new_child); /* Direct call parser_prod#AModuleName#n_quad= on */ +} +goto RET_LABEL; +} else { +} +{ +{ /* Inline parser_nodes#AModuleName#n_path (self) on */ +var10 = self->attrs[COLOR_parser_nodes__AModuleName___n_path].val; /* _n_path on */ +if (unlikely(var10 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_path"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1989); +show_backtrace(1); +} +var8 = var10; +RET_LABEL9:(void)0; +} +} +{ +var11 = parser_nodes__ANodes__replace_child(var8, var_old_child, var_new_child); +} +if (var11){ +goto RET_LABEL; +} else { +} +var12 = self->attrs[COLOR_parser_nodes__AModuleName___n_id].val; /* _n_id on */ +if (unlikely(var12 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6366); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var12,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var12,var_other) on */ +var18 = var12 == var_other; +var16 = var18; +goto RET_LABEL17; +RET_LABEL17:(void)0; +} +} +var14 = var16; +goto RET_LABEL15; +RET_LABEL15:(void)0; +} +var13 = var14; +} +if (var13){ +/* isa TId */ +cltype20 = type_parser_nodes__TId.color; +idtype21 = type_parser_nodes__TId.id; +if(var_new_child == NULL) { +var19 = 0; +} else { +if(cltype20 >= var_new_child->type->table_size) { +var19 = 0; +} else { +var19 = var_new_child->type->type_table[cltype20] == idtype21; +} +} +if (unlikely(!var19)) { +var_class_name22 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name22); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6367); +show_backtrace(1); +} +{ +parser_prod__AModuleName__n_id_61d(self, var_new_child); /* Direct call parser_prod#AModuleName#n_id= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#AModuleName#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AModuleName__replace_child(val* self, val* p0, val* p1) { +parser_prod__AModuleName__replace_child(self, p0, p1); /* Direct call parser_prod#AModuleName#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#AModuleName#n_quad= for (self: AModuleName, nullable TQuad) */ +void parser_prod__AModuleName__n_quad_61d(val* self, val* p0) { +val* var_node /* var node: nullable TQuad */; +val* var /* : null */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AModuleName___n_quad].val = var_node; /* _n_quad on */ +var = NULL; +if (var_node == NULL) { +var1 = 0; /* is null */ +} else { +var1 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} +} else { +} +RET_LABEL:; +} +/* method parser_prod#AModuleName#n_quad= for (self: Object, nullable TQuad) */ +void VIRTUAL_parser_prod__AModuleName__n_quad_61d(val* self, val* p0) { +parser_prod__AModuleName__n_quad_61d(self, p0); /* Direct call parser_prod#AModuleName#n_quad= on */ +RET_LABEL:; +} +/* method parser_prod#AModuleName#n_id= for (self: AModuleName, TId) */ +void parser_prod__AModuleName__n_id_61d(val* self, val* p0) { +val* var_node /* var node: TId */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AModuleName___n_id].val = var_node; /* _n_id on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AModuleName#n_id= for (self: Object, TId) */ +void VIRTUAL_parser_prod__AModuleName__n_id_61d(val* self, val* p0) { +parser_prod__AModuleName__n_id_61d(self, p0); /* Direct call parser_prod#AModuleName#n_id= on */ +RET_LABEL:; +} +/* method parser_prod#AModuleName#visit_all for (self: AModuleName, Visitor) */ +void parser_prod__AModuleName__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : nullable TQuad */; +val* var1 /* : ANodes[TId] */; +val* var3 /* : ANodes[TId] */; +val* var4 /* : TId */; +var_v = p0; +var = self->attrs[COLOR_parser_nodes__AModuleName___n_quad].val; /* _n_quad on */ +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +{ +{ /* Inline parser_nodes#AModuleName#n_path (self) on */ +var3 = self->attrs[COLOR_parser_nodes__AModuleName___n_path].val; /* _n_path on */ +if (unlikely(var3 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_path"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1989); +show_backtrace(1); +} +var1 = var3; +RET_LABEL2:(void)0; +} +} +{ +parser_nodes__ANodes__visit_all(var1, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ +} +var4 = self->attrs[COLOR_parser_nodes__AModuleName___n_id].val; /* _n_id on */ +if (unlikely(var4 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6388); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var4); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +RET_LABEL:; +} +/* method parser_prod#AModuleName#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AModuleName__visit_all(val* self, val* p0) { +parser_prod__AModuleName__visit_all(self, p0); /* Direct call parser_prod#AModuleName#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#AExternCalls#init_aexterncalls for (self: AExternCalls, nullable TKwimport, Collection[Object]) */ +void parser_prod__AExternCalls__init_aexterncalls(val* self, val* p0, val* p1) { +val* var_n_kwimport /* var n_kwimport: nullable TKwimport */; +val* var_n_extern_calls /* var n_extern_calls: Collection[Object] */; +val* var /* : ANodes[AExternCall] */; +val* var3 /* : ANodes[AExternCall] */; +var_n_kwimport = p0; +var_n_extern_calls = p1; +if (unlikely(var_n_kwimport == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6397); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__AExternCalls___n_kwimport].val = var_n_kwimport; /* _n_kwimport on */ +if (var_n_kwimport == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6398); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_kwimport,self) on */ +if (unlikely(var_n_kwimport == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_kwimport->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +{ +{ /* Inline parser_nodes#AExternCalls#n_extern_calls (self) on */ +var3 = self->attrs[COLOR_parser_nodes__AExternCalls___n_extern_calls].val; /* _n_extern_calls on */ +if (unlikely(var3 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_calls"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1073); +show_backtrace(1); +} +var = var3; +RET_LABEL2:(void)0; +} +} +{ +parser_nodes__ANodes__unsafe_add_all(var, var_n_extern_calls); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ +} +RET_LABEL:; +} +/* method parser_prod#AExternCalls#init_aexterncalls for (self: Object, nullable TKwimport, Collection[Object]) */ +void VIRTUAL_parser_prod__AExternCalls__init_aexterncalls(val* self, val* p0, val* p1) { +parser_prod__AExternCalls__init_aexterncalls(self, p0, p1); /* Direct call parser_prod#AExternCalls#init_aexterncalls on */ +RET_LABEL:; +} +/* method parser_prod#AExternCalls#replace_child for (self: AExternCalls, ANode, nullable ANode) */ +void parser_prod__AExternCalls__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : TKwimport */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +val* var8 /* : ANodes[AExternCall] */; +val* var10 /* : ANodes[AExternCall] */; +short int var11 /* : Bool */; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__AExternCalls___n_kwimport].val; /* _n_kwimport on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6404); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa TKwimport */ +cltype = type_parser_nodes__TKwimport.color; +idtype = type_parser_nodes__TKwimport.id; +if(var_new_child == NULL) { +var7 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwimport", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6405); +show_backtrace(1); +} +{ +parser_prod__AExternCalls__n_kwimport_61d(self, var_new_child); /* Direct call parser_prod#AExternCalls#n_kwimport= on */ +} +goto RET_LABEL; +} else { +} +{ +{ /* Inline parser_nodes#AExternCalls#n_extern_calls (self) on */ +var10 = self->attrs[COLOR_parser_nodes__AExternCalls___n_extern_calls].val; /* _n_extern_calls on */ +if (unlikely(var10 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_calls"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1073); +show_backtrace(1); +} +var8 = var10; +RET_LABEL9:(void)0; +} +} +{ +var11 = parser_nodes__ANodes__replace_child(var8, var_old_child, var_new_child); +} +if (var11){ +goto RET_LABEL; +} else { +} +RET_LABEL:; +} +/* method parser_prod#AExternCalls#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AExternCalls__replace_child(val* self, val* p0, val* p1) { +parser_prod__AExternCalls__replace_child(self, p0, p1); /* Direct call parser_prod#AExternCalls#replace_child on */ +RET_LABEL:; +} +/* method parser_prod#AExternCalls#n_kwimport= for (self: AExternCalls, TKwimport) */ +void parser_prod__AExternCalls__n_kwimport_61d(val* self, val* p0) { +val* var_node /* var node: TKwimport */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AExternCalls___n_kwimport].val = var_node; /* _n_kwimport on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#AExternCalls#n_kwimport= for (self: Object, TKwimport) */ +void VIRTUAL_parser_prod__AExternCalls__n_kwimport_61d(val* self, val* p0) { +parser_prod__AExternCalls__n_kwimport_61d(self, p0); /* Direct call parser_prod#AExternCalls#n_kwimport= on */ +RET_LABEL:; +} +/* method parser_prod#AExternCalls#visit_all for (self: AExternCalls, Visitor) */ +void parser_prod__AExternCalls__visit_all(val* self, val* p0) { +val* var_v /* var v: Visitor */; +val* var /* : TKwimport */; +val* var1 /* : ANodes[AExternCall] */; +val* var3 /* : ANodes[AExternCall] */; +var_v = p0; +var = self->attrs[COLOR_parser_nodes__AExternCalls___n_kwimport].val; /* _n_kwimport on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwimport"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6420); +show_backtrace(1); +} +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +{ +{ /* Inline parser_nodes#AExternCalls#n_extern_calls (self) on */ +var3 = self->attrs[COLOR_parser_nodes__AExternCalls___n_extern_calls].val; /* _n_extern_calls on */ +if (unlikely(var3 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_calls"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 1073); +show_backtrace(1); +} +var1 = var3; +RET_LABEL2:(void)0; +} +} +{ +parser_nodes__ANodes__visit_all(var1, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ +} +RET_LABEL:; +} +/* method parser_prod#AExternCalls#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AExternCalls__visit_all(val* self, val* p0) { +parser_prod__AExternCalls__visit_all(self, p0); /* Direct call parser_prod#AExternCalls#visit_all on */ +RET_LABEL:; +} +/* method parser_prod#ASuperExternCall#init_asuperexterncall for (self: ASuperExternCall, nullable TKwsuper) */ +void parser_prod__ASuperExternCall__init_asuperexterncall(val* self, val* p0) { +val* var_n_kwsuper /* var n_kwsuper: nullable TKwsuper */; +var_n_kwsuper = p0; +if (unlikely(var_n_kwsuper == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6444); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__ASuperExternCall___n_kwsuper].val = var_n_kwsuper; /* _n_kwsuper on */ +if (var_n_kwsuper == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6445); +show_backtrace(1); +} else { +{ /* Inline parser_nodes#ANode#parent= (var_n_kwsuper,self) on */ +if (unlikely(var_n_kwsuper == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_kwsuper->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +RET_LABEL:; +} +/* method parser_prod#ASuperExternCall#init_asuperexterncall for (self: Object, nullable TKwsuper) */ +void VIRTUAL_parser_prod__ASuperExternCall__init_asuperexterncall(val* self, val* p0) { +parser_prod__ASuperExternCall__init_asuperexterncall(self, p0); /* Direct call parser_prod#ASuperExternCall#init_asuperexterncall on */ +RET_LABEL:; +} +/* method parser_prod#ASuperExternCall#replace_child for (self: ASuperExternCall, ANode, nullable ANode) */ +void parser_prod__ASuperExternCall__replace_child(val* self, val* p0, val* p1) { +val* var_old_child /* var old_child: ANode */; +val* var_new_child /* var new_child: nullable ANode */; +val* var /* : TKwsuper */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +int cltype; +int idtype; +const char* var_class_name; +var_old_child = p0; +var_new_child = p1; +var = self->attrs[COLOR_parser_nodes__ASuperExternCall___n_kwsuper].val; /* _n_kwsuper on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6450); +show_backtrace(1); +} +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa TKwsuper */ +cltype = type_parser_nodes__TKwsuper.color; +idtype = type_parser_nodes__TKwsuper.id; +if(var_new_child == NULL) { +var7 = 0; +} else { +if(cltype >= var_new_child->type->table_size) { +var7 = 0; +} else { +var7 = var_new_child->type->type_table[cltype] == idtype; +} +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwsuper", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6451); +show_backtrace(1); +} +{ +parser_prod__ASuperExternCall__n_kwsuper_61d(self, var_new_child); /* Direct call parser_prod#ASuperExternCall#n_kwsuper= on */ +} +goto RET_LABEL; +} else { +} +RET_LABEL:; +} /* method parser_prod#ASuperExternCall#replace_child for (self: Object, ANode, nullable ANode) */ void VIRTUAL_parser_prod__ASuperExternCall__replace_child(val* self, val* p0, val* p1) { -parser_prod__ASuperExternCall__replace_child(self, p0, p1); +parser_prod__ASuperExternCall__replace_child(self, p0, p1); /* Direct call parser_prod#ASuperExternCall#replace_child on */ RET_LABEL:; } /* method parser_prod#ASuperExternCall#n_kwsuper= for (self: ASuperExternCall, TKwsuper) */ @@ -9,12 +3923,17 @@ void parser_prod__ASuperExternCall__n_kwsuper_61d(val* self, val* p0) { val* var_node /* var node: TKwsuper */; var_node = p0; self->attrs[COLOR_parser_nodes__ASuperExternCall___n_kwsuper].val = var_node; /* _n_kwsuper on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#ASuperExternCall#n_kwsuper= for (self: Object, TKwsuper) */ void VIRTUAL_parser_prod__ASuperExternCall__n_kwsuper_61d(val* self, val* p0) { -parser_prod__ASuperExternCall__n_kwsuper_61d(self, p0); +parser_prod__ASuperExternCall__n_kwsuper_61d(self, p0); /* Direct call parser_prod#ASuperExternCall#n_kwsuper= on */ RET_LABEL:; } /* method parser_prod#ASuperExternCall#visit_all for (self: ASuperExternCall, Visitor) */ @@ -23,51 +3942,51 @@ val* var_v /* var v: Visitor */; val* var /* : TKwsuper */; var_v = p0; var = self->attrs[COLOR_parser_nodes__ASuperExternCall___n_kwsuper].val; /* _n_kwsuper on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwsuper"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10365); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwsuper"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6465); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} RET_LABEL:; } /* method parser_prod#ASuperExternCall#visit_all for (self: Object, Visitor) */ void VIRTUAL_parser_prod__ASuperExternCall__visit_all(val* self, val* p0) { -parser_prod__ASuperExternCall__visit_all(self, p0); -RET_LABEL:; -} -/* method parser_prod#ALocalPropExternCall#empty_init for (self: ALocalPropExternCall) */ -void parser_prod__ALocalPropExternCall__empty_init(val* self) { -RET_LABEL:; -} -/* method parser_prod#ALocalPropExternCall#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__ALocalPropExternCall__empty_init(val* self) { -parser_prod__ALocalPropExternCall__empty_init(self); +parser_prod__ASuperExternCall__visit_all(self, p0); /* Direct call parser_prod#ASuperExternCall#visit_all on */ RET_LABEL:; } /* method parser_prod#ALocalPropExternCall#init_alocalpropexterncall for (self: ALocalPropExternCall, nullable AMethid) */ void parser_prod__ALocalPropExternCall__init_alocalpropexterncall(val* self, val* p0) { val* var_n_methid /* var n_methid: nullable AMethid */; var_n_methid = p0; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__ALocalPropExternCall__empty_init]))(self) /* empty_init on */; -if (var_n_methid == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10376); +if (unlikely(var_n_methid == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6473); show_backtrace(1); } self->attrs[COLOR_parser_nodes__ALocalPropExternCall___n_methid].val = var_n_methid; /* _n_methid on */ if (var_n_methid == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10377); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6474); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_methid->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_methid, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_methid,self) on */ +if (unlikely(var_n_methid == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_methid->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} } RET_LABEL:; } /* method parser_prod#ALocalPropExternCall#init_alocalpropexterncall for (self: Object, nullable AMethid) */ void VIRTUAL_parser_prod__ALocalPropExternCall__init_alocalpropexterncall(val* self, val* p0) { -parser_prod__ALocalPropExternCall__init_alocalpropexterncall(self, p0); +parser_prod__ALocalPropExternCall__init_alocalpropexterncall(self, p0); /* Direct call parser_prod#ALocalPropExternCall#init_alocalpropexterncall on */ RET_LABEL:; } /* method parser_prod#ALocalPropExternCall#replace_child for (self: ALocalPropExternCall, ANode, nullable ANode) */ @@ -76,48 +3995,61 @@ val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : AMethid */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; +const char* var_class_name; var_old_child = p0; var_new_child = p1; var = self->attrs[COLOR_parser_nodes__ALocalPropExternCall___n_methid].val; /* _n_methid on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_methid"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10382); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_methid"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6479); show_backtrace(1); } -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; -if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ -} else { -var3 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; } -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AMethid */ +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa AMethid */ cltype = type_parser_nodes__AMethid.color; idtype = type_parser_nodes__AMethid.id; +if(var_new_child == NULL) { +var7 = 0; +} else { if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var7 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10385); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__ALocalPropExternCall___n_methid].val = var_new_child; /* _n_methid on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10388); +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AMethid", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6480); show_backtrace(1); } +{ +parser_prod__ALocalPropExternCall__n_methid_61d(self, var_new_child); /* Direct call parser_prod#ALocalPropExternCall#n_methid= on */ +} goto RET_LABEL; } else { } @@ -125,7 +4057,7 @@ RET_LABEL:; } /* method parser_prod#ALocalPropExternCall#replace_child for (self: Object, ANode, nullable ANode) */ void VIRTUAL_parser_prod__ALocalPropExternCall__replace_child(val* self, val* p0, val* p1) { -parser_prod__ALocalPropExternCall__replace_child(self, p0, p1); +parser_prod__ALocalPropExternCall__replace_child(self, p0, p1); /* Direct call parser_prod#ALocalPropExternCall#replace_child on */ RET_LABEL:; } /* method parser_prod#ALocalPropExternCall#n_methid= for (self: ALocalPropExternCall, AMethid) */ @@ -133,12 +4065,17 @@ void parser_prod__ALocalPropExternCall__n_methid_61d(val* self, val* p0) { val* var_node /* var node: AMethid */; var_node = p0; self->attrs[COLOR_parser_nodes__ALocalPropExternCall___n_methid].val = var_node; /* _n_methid on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#ALocalPropExternCall#n_methid= for (self: Object, AMethid) */ void VIRTUAL_parser_prod__ALocalPropExternCall__n_methid_61d(val* self, val* p0) { -parser_prod__ALocalPropExternCall__n_methid_61d(self, p0); +parser_prod__ALocalPropExternCall__n_methid_61d(self, p0); /* Direct call parser_prod#ALocalPropExternCall#n_methid= on */ RET_LABEL:; } /* method parser_prod#ALocalPropExternCall#visit_all for (self: ALocalPropExternCall, Visitor) */ @@ -147,26 +4084,19 @@ val* var_v /* var v: Visitor */; val* var /* : AMethid */; var_v = p0; var = self->attrs[COLOR_parser_nodes__ALocalPropExternCall___n_methid].val; /* _n_methid on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_methid"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10403); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_methid"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6494); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} RET_LABEL:; } /* method parser_prod#ALocalPropExternCall#visit_all for (self: Object, Visitor) */ void VIRTUAL_parser_prod__ALocalPropExternCall__visit_all(val* self, val* p0) { -parser_prod__ALocalPropExternCall__visit_all(self, p0); -RET_LABEL:; -} -/* method parser_prod#AFullPropExternCall#empty_init for (self: AFullPropExternCall) */ -void parser_prod__AFullPropExternCall__empty_init(val* self) { -RET_LABEL:; -} -/* method parser_prod#AFullPropExternCall#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AFullPropExternCall__empty_init(val* self) { -parser_prod__AFullPropExternCall__empty_init(self); +parser_prod__ALocalPropExternCall__visit_all(self, p0); /* Direct call parser_prod#ALocalPropExternCall#visit_all on */ RET_LABEL:; } /* method parser_prod#AFullPropExternCall#init_afullpropexterncall for (self: AFullPropExternCall, nullable AType, nullable TDot, nullable AMethid) */ @@ -175,53 +4105,92 @@ val* var_n_type /* var n_type: nullable AType */; val* var_n_dot /* var n_dot: nullable TDot */; val* var_n_methid /* var n_methid: nullable AMethid */; val* var /* : null */; -short int var1 /* : Bool */; +short int var2 /* : Bool */; +short int var3 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; var_n_type = p0; var_n_dot = p1; var_n_methid = p2; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AFullPropExternCall__empty_init]))(self) /* empty_init on */; -if (var_n_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10416); +if (unlikely(var_n_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6504); show_backtrace(1); } self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_type].val = var_n_type; /* _n_type on */ if (var_n_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10417); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6505); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_type->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_type, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_type,self) on */ +if (unlikely(var_n_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_type->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} } self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_dot].val = var_n_dot; /* _n_dot on */ var = NULL; if (var_n_dot == NULL) { -var1 = 0; /* is null */ +var2 = 0; /* is null */ } else { -var1 = 1; /* arg is null and recv is not */ +var2 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel#Object#!= (var_n_dot,var) on */ +var_other = var; +{ +var6 = ((short int (*)(val*, val*))(var_n_dot->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_dot, var_other) /* == on */; +var5 = var6; +} +var7 = !var5; +var3 = var7; +goto RET_LABEL4; +RET_LABEL4:(void)0; +} +var2 = var3; +} +if (var2){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_dot,self) on */ +var_n_dot->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL8:(void)0; +} } -if (var1){ -((void (*)(val*, val*))(var_n_dot->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_dot, self) /* parent= on */; } else { } -if (var_n_methid == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10422); +if (unlikely(var_n_methid == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6508); show_backtrace(1); } self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_methid].val = var_n_methid; /* _n_methid on */ if (var_n_methid == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10423); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6509); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_methid->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_methid, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_methid,self) on */ +if (unlikely(var_n_methid == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_methid->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL9:(void)0; +} } RET_LABEL:; } /* method parser_prod#AFullPropExternCall#init_afullpropexterncall for (self: Object, nullable AType, nullable TDot, nullable AMethid) */ void VIRTUAL_parser_prod__AFullPropExternCall__init_afullpropexterncall(val* self, val* p0, val* p1, val* p2) { -parser_prod__AFullPropExternCall__init_afullpropexterncall(self, p0, p1, p2); +parser_prod__AFullPropExternCall__init_afullpropexterncall(self, p0, p1, p2); /* Direct call parser_prod#AFullPropExternCall#init_afullpropexterncall on */ RET_LABEL:; } /* method parser_prod#AFullPropExternCall#replace_child for (self: AFullPropExternCall, ANode, nullable ANode) */ @@ -230,137 +4199,172 @@ val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : AType */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; -val* var5 /* : nullable TDot */; -short int var6 /* : Bool */; -val* var7 /* : null */; -short int var8 /* : Bool */; +const char* var_class_name; +val* var8 /* : nullable TDot */; short int var9 /* : Bool */; -int cltype10; -int idtype11; -val* var12 /* : null */; -val* var13 /* : AMethid */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; short int var14 /* : Bool */; -val* var15 /* : null */; -short int var16 /* : Bool */; -short int var17 /* : Bool */; -int cltype18; -int idtype19; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; +val* var19 /* : AMethid */; +short int var20 /* : Bool */; +short int var21 /* : Bool */; +short int var23 /* : Bool */; +short int var25 /* : Bool */; +short int var26 /* : Bool */; +int cltype27; +int idtype28; +const char* var_class_name29; var_old_child = p0; var_new_child = p1; var = self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_type].val; /* _n_type on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10428); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6514); show_backtrace(1); } -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; -if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ -} else { -var3 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; } -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AType */ +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa AType */ cltype = type_parser_nodes__AType.color; idtype = type_parser_nodes__AType.id; +if(var_new_child == NULL) { +var7 = 0; +} else { if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var7 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10431); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_type].val = var_new_child; /* _n_type on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10434); +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6515); show_backtrace(1); } +{ +parser_prod__AFullPropExternCall__n_type_61d(self, var_new_child); /* Direct call parser_prod#AFullPropExternCall#n_type= on */ +} goto RET_LABEL; } else { } -var5 = self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_dot].val; /* _n_dot on */ -if (var5 == NULL) { -var6 = 0; /* cannot be null */ +var8 = self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_dot].val; /* _n_dot on */ +if (var8 == NULL) { +var9 = 0; /* cannot be null */ } else { -var6 = ((short int (*)(val*, val*))(var5->class->vft[COLOR_kernel__Object___61d_61d]))(var5, var_old_child) /* == on */; +{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; } -if (var6){ -var7 = NULL; -if (var_new_child == NULL) { -var8 = 0; /* is null */ -} else { -var8 = 1; /* arg is null and recv is not */ } -if (var8){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TDot */ -cltype10 = type_parser_nodes__TDot.color; -idtype11 = type_parser_nodes__TDot.id; -if(cltype10 >= var_new_child->type->table_size) { -var9 = 0; +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; +} +var9 = var10; +} +if (var9){ +/* isa nullable TDot */ +cltype16 = type_nullable_parser_nodes__TDot.color; +idtype17 = type_nullable_parser_nodes__TDot.id; +if(var_new_child == NULL) { +var15 = 1; +} else { +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; } else { -var9 = var_new_child->type->type_table[cltype10] == idtype11; +var15 = var_new_child->type->type_table[cltype16] == idtype17; } -if (!var9) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10441); +} +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TDot", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6519); show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_dot].val = var_new_child; /* _n_dot on */ -} else { -var12 = NULL; -self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_dot].val = var12; /* _n_dot on */ +{ +parser_prod__AFullPropExternCall__n_dot_61d(self, var_new_child); /* Direct call parser_prod#AFullPropExternCall#n_dot= on */ } goto RET_LABEL; } else { } -var13 = self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_methid].val; /* _n_methid on */ -if (var13 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_methid"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10448); +var19 = self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_methid].val; /* _n_methid on */ +if (unlikely(var19 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_methid"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6522); show_backtrace(1); } -var14 = ((short int (*)(val*, val*))(var13->class->vft[COLOR_kernel__Object___61d_61d]))(var13, var_old_child) /* == on */; -if (var14){ -var15 = NULL; -if (var_new_child == NULL) { -var16 = 0; /* is null */ -} else { -var16 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var19,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var19,var_other) on */ +var25 = var19 == var_other; +var23 = var25; +goto RET_LABEL24; +RET_LABEL24:(void)0; } -if (var16){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AMethid */ -cltype18 = type_parser_nodes__AMethid.color; -idtype19 = type_parser_nodes__AMethid.id; -if(cltype18 >= var_new_child->type->table_size) { -var17 = 0; -} else { -var17 = var_new_child->type->type_table[cltype18] == idtype19; } -if (!var17) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10451); -show_backtrace(1); +var21 = var23; +goto RET_LABEL22; +RET_LABEL22:(void)0; } -self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_methid].val = var_new_child; /* _n_methid on */ +var20 = var21; +} +if (var20){ +/* isa AMethid */ +cltype27 = type_parser_nodes__AMethid.color; +idtype28 = type_parser_nodes__AMethid.id; +if(var_new_child == NULL) { +var26 = 0; } else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10454); +if(cltype27 >= var_new_child->type->table_size) { +var26 = 0; +} else { +var26 = var_new_child->type->type_table[cltype27] == idtype28; +} +} +if (unlikely(!var26)) { +var_class_name29 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AMethid", var_class_name29); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6523); show_backtrace(1); } +{ +parser_prod__AFullPropExternCall__n_methid_61d(self, var_new_child); /* Direct call parser_prod#AFullPropExternCall#n_methid= on */ +} goto RET_LABEL; } else { } @@ -368,7 +4372,7 @@ RET_LABEL:; } /* method parser_prod#AFullPropExternCall#replace_child for (self: Object, ANode, nullable ANode) */ void VIRTUAL_parser_prod__AFullPropExternCall__replace_child(val* self, val* p0, val* p1) { -parser_prod__AFullPropExternCall__replace_child(self, p0, p1); +parser_prod__AFullPropExternCall__replace_child(self, p0, p1); /* Direct call parser_prod#AFullPropExternCall#replace_child on */ RET_LABEL:; } /* method parser_prod#AFullPropExternCall#n_type= for (self: AFullPropExternCall, AType) */ @@ -376,12 +4380,17 @@ void parser_prod__AFullPropExternCall__n_type_61d(val* self, val* p0) { val* var_node /* var node: AType */; var_node = p0; self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_type].val = var_node; /* _n_type on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#AFullPropExternCall#n_type= for (self: Object, AType) */ void VIRTUAL_parser_prod__AFullPropExternCall__n_type_61d(val* self, val* p0) { -parser_prod__AFullPropExternCall__n_type_61d(self, p0); +parser_prod__AFullPropExternCall__n_type_61d(self, p0); /* Direct call parser_prod#AFullPropExternCall#n_type= on */ RET_LABEL:; } /* method parser_prod#AFullPropExternCall#n_dot= for (self: AFullPropExternCall, nullable TDot) */ @@ -389,6 +4398,11 @@ void parser_prod__AFullPropExternCall__n_dot_61d(val* self, val* p0) { val* var_node /* var node: nullable TDot */; val* var /* : null */; short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; var_node = p0; self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_dot].val = var_node; /* _n_dot on */ var = NULL; @@ -397,15 +4411,34 @@ var1 = 0; /* is null */ } else { var1 = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} if (var1){ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} } else { } RET_LABEL:; } /* method parser_prod#AFullPropExternCall#n_dot= for (self: Object, nullable TDot) */ void VIRTUAL_parser_prod__AFullPropExternCall__n_dot_61d(val* self, val* p0) { -parser_prod__AFullPropExternCall__n_dot_61d(self, p0); +parser_prod__AFullPropExternCall__n_dot_61d(self, p0); /* Direct call parser_prod#AFullPropExternCall#n_dot= on */ RET_LABEL:; } /* method parser_prod#AFullPropExternCall#n_methid= for (self: AFullPropExternCall, AMethid) */ @@ -413,12 +4446,17 @@ void parser_prod__AFullPropExternCall__n_methid_61d(val* self, val* p0) { val* var_node /* var node: AMethid */; var_node = p0; self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_methid].val = var_node; /* _n_methid on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#AFullPropExternCall#n_methid= for (self: Object, AMethid) */ void VIRTUAL_parser_prod__AFullPropExternCall__n_methid_61d(val* self, val* p0) { -parser_prod__AFullPropExternCall__n_methid_61d(self, p0); +parser_prod__AFullPropExternCall__n_methid_61d(self, p0); /* Direct call parser_prod#AFullPropExternCall#n_methid= on */ RET_LABEL:; } /* method parser_prod#AFullPropExternCall#visit_all for (self: AFullPropExternCall, Visitor) */ @@ -426,81 +4464,67 @@ void parser_prod__AFullPropExternCall__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : AType */; val* var1 /* : nullable TDot */; -val* var2 /* : null */; -short int var3 /* : Bool */; -val* var4 /* : nullable TDot */; -val* var5 /* : AMethid */; +val* var2 /* : AMethid */; var_v = p0; var = self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_type].val; /* _n_type on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10481); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6547); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} var1 = self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_dot].val; /* _n_dot on */ -var2 = NULL; -if (var1 == NULL) { -var3 = 0; /* is null */ -} else { -var3 = 1; /* arg is null and recv is not */ +{ +parser_nodes__Visitor__enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ } -if (var3){ -var4 = self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_dot].val; /* _n_dot on */ -if (var4 == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10483); +var2 = self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_methid].val; /* _n_methid on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_methid"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6549); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var4) /* enter_visit on */; -} else { -} -var5 = self->attrs[COLOR_parser_nodes__AFullPropExternCall___n_methid].val; /* _n_methid on */ -if (var5 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_methid"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10485); -show_backtrace(1); +{ +parser_nodes__Visitor__enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var5) /* enter_visit on */; RET_LABEL:; } /* method parser_prod#AFullPropExternCall#visit_all for (self: Object, Visitor) */ void VIRTUAL_parser_prod__AFullPropExternCall__visit_all(val* self, val* p0) { -parser_prod__AFullPropExternCall__visit_all(self, p0); -RET_LABEL:; -} -/* method parser_prod#AInitPropExternCall#empty_init for (self: AInitPropExternCall) */ -void parser_prod__AInitPropExternCall__empty_init(val* self) { -RET_LABEL:; -} -/* method parser_prod#AInitPropExternCall#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AInitPropExternCall__empty_init(val* self) { -parser_prod__AInitPropExternCall__empty_init(self); +parser_prod__AFullPropExternCall__visit_all(self, p0); /* Direct call parser_prod#AFullPropExternCall#visit_all on */ RET_LABEL:; } /* method parser_prod#AInitPropExternCall#init_ainitpropexterncall for (self: AInitPropExternCall, nullable AType) */ void parser_prod__AInitPropExternCall__init_ainitpropexterncall(val* self, val* p0) { val* var_n_type /* var n_type: nullable AType */; var_n_type = p0; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AInitPropExternCall__empty_init]))(self) /* empty_init on */; -if (var_n_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10496); +if (unlikely(var_n_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6557); show_backtrace(1); } self->attrs[COLOR_parser_nodes__AInitPropExternCall___n_type].val = var_n_type; /* _n_type on */ if (var_n_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10497); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6558); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_type->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_type, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_type,self) on */ +if (unlikely(var_n_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_type->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} } RET_LABEL:; } /* method parser_prod#AInitPropExternCall#init_ainitpropexterncall for (self: Object, nullable AType) */ void VIRTUAL_parser_prod__AInitPropExternCall__init_ainitpropexterncall(val* self, val* p0) { -parser_prod__AInitPropExternCall__init_ainitpropexterncall(self, p0); +parser_prod__AInitPropExternCall__init_ainitpropexterncall(self, p0); /* Direct call parser_prod#AInitPropExternCall#init_ainitpropexterncall on */ RET_LABEL:; } /* method parser_prod#AInitPropExternCall#replace_child for (self: AInitPropExternCall, ANode, nullable ANode) */ @@ -509,48 +4533,61 @@ val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : AType */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; +const char* var_class_name; var_old_child = p0; var_new_child = p1; var = self->attrs[COLOR_parser_nodes__AInitPropExternCall___n_type].val; /* _n_type on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10502); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6563); show_backtrace(1); } -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; -if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ -} else { -var3 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; } -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AType */ +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa AType */ cltype = type_parser_nodes__AType.color; idtype = type_parser_nodes__AType.id; +if(var_new_child == NULL) { +var7 = 0; +} else { if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var7 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10505); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AInitPropExternCall___n_type].val = var_new_child; /* _n_type on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10508); +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6564); show_backtrace(1); } +{ +parser_prod__AInitPropExternCall__n_type_61d(self, var_new_child); /* Direct call parser_prod#AInitPropExternCall#n_type= on */ +} goto RET_LABEL; } else { } @@ -558,7 +4595,7 @@ RET_LABEL:; } /* method parser_prod#AInitPropExternCall#replace_child for (self: Object, ANode, nullable ANode) */ void VIRTUAL_parser_prod__AInitPropExternCall__replace_child(val* self, val* p0, val* p1) { -parser_prod__AInitPropExternCall__replace_child(self, p0, p1); +parser_prod__AInitPropExternCall__replace_child(self, p0, p1); /* Direct call parser_prod#AInitPropExternCall#replace_child on */ RET_LABEL:; } /* method parser_prod#AInitPropExternCall#n_type= for (self: AInitPropExternCall, AType) */ @@ -566,12 +4603,17 @@ void parser_prod__AInitPropExternCall__n_type_61d(val* self, val* p0) { val* var_node /* var node: AType */; var_node = p0; self->attrs[COLOR_parser_nodes__AInitPropExternCall___n_type].val = var_node; /* _n_type on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#AInitPropExternCall#n_type= for (self: Object, AType) */ void VIRTUAL_parser_prod__AInitPropExternCall__n_type_61d(val* self, val* p0) { -parser_prod__AInitPropExternCall__n_type_61d(self, p0); +parser_prod__AInitPropExternCall__n_type_61d(self, p0); /* Direct call parser_prod#AInitPropExternCall#n_type= on */ RET_LABEL:; } /* method parser_prod#AInitPropExternCall#visit_all for (self: AInitPropExternCall, Visitor) */ @@ -580,26 +4622,19 @@ val* var_v /* var v: Visitor */; val* var /* : AType */; var_v = p0; var = self->attrs[COLOR_parser_nodes__AInitPropExternCall___n_type].val; /* _n_type on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10523); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6578); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} RET_LABEL:; } /* method parser_prod#AInitPropExternCall#visit_all for (self: Object, Visitor) */ void VIRTUAL_parser_prod__AInitPropExternCall__visit_all(val* self, val* p0) { -parser_prod__AInitPropExternCall__visit_all(self, p0); -RET_LABEL:; -} -/* method parser_prod#ACastAsExternCall#empty_init for (self: ACastAsExternCall) */ -void parser_prod__ACastAsExternCall__empty_init(val* self) { -RET_LABEL:; -} -/* method parser_prod#ACastAsExternCall#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__ACastAsExternCall__empty_init(val* self) { -parser_prod__ACastAsExternCall__empty_init(self); +parser_prod__AInitPropExternCall__visit_all(self, p0); /* Direct call parser_prod#AInitPropExternCall#visit_all on */ RET_LABEL:; } /* method parser_prod#ACastAsExternCall#init_acastasexterncall for (self: ACastAsExternCall, nullable AType, nullable TDot, nullable TKwas, nullable AType) */ @@ -609,67 +4644,114 @@ val* var_n_dot /* var n_dot: nullable TDot */; val* var_n_kwas /* var n_kwas: nullable TKwas */; val* var_n_to_type /* var n_to_type: nullable AType */; val* var /* : null */; -short int var1 /* : Bool */; +short int var2 /* : Bool */; +short int var3 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; var_n_from_type = p0; var_n_dot = p1; var_n_kwas = p2; var_n_to_type = p3; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__ACastAsExternCall__empty_init]))(self) /* empty_init on */; -if (var_n_from_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10537); +if (unlikely(var_n_from_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6589); show_backtrace(1); } self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_from_type].val = var_n_from_type; /* _n_from_type on */ if (var_n_from_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10538); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6590); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_from_type->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_from_type, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_from_type,self) on */ +if (unlikely(var_n_from_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_from_type->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} } self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_dot].val = var_n_dot; /* _n_dot on */ var = NULL; if (var_n_dot == NULL) { -var1 = 0; /* is null */ +var2 = 0; /* is null */ } else { -var1 = 1; /* arg is null and recv is not */ +var2 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel#Object#!= (var_n_dot,var) on */ +var_other = var; +{ +var6 = ((short int (*)(val*, val*))(var_n_dot->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_dot, var_other) /* == on */; +var5 = var6; +} +var7 = !var5; +var3 = var7; +goto RET_LABEL4; +RET_LABEL4:(void)0; +} +var2 = var3; +} +if (var2){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_dot,self) on */ +var_n_dot->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL8:(void)0; +} } -if (var1){ -((void (*)(val*, val*))(var_n_dot->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_dot, self) /* parent= on */; } else { } -if (var_n_kwas == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10543); +if (unlikely(var_n_kwas == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6593); show_backtrace(1); } self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_kwas].val = var_n_kwas; /* _n_kwas on */ if (var_n_kwas == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10544); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6594); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_kwas->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_kwas, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on */ +if (unlikely(var_n_kwas == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); } -if (var_n_to_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10545); +var_n_kwas->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL9:(void)0; +} +} +if (unlikely(var_n_to_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6595); show_backtrace(1); } self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_to_type].val = var_n_to_type; /* _n_to_type on */ if (var_n_to_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10546); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6596); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_to_type->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_to_type, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_to_type,self) on */ +if (unlikely(var_n_to_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_to_type->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL10:(void)0; +} } RET_LABEL:; } /* method parser_prod#ACastAsExternCall#init_acastasexterncall for (self: Object, nullable AType, nullable TDot, nullable TKwas, nullable AType) */ void VIRTUAL_parser_prod__ACastAsExternCall__init_acastasexterncall(val* self, val* p0, val* p1, val* p2, val* p3) { -parser_prod__ACastAsExternCall__init_acastasexterncall(self, p0, p1, p2, p3); +parser_prod__ACastAsExternCall__init_acastasexterncall(self, p0, p1, p2, p3); /* Direct call parser_prod#ACastAsExternCall#init_acastasexterncall on */ RET_LABEL:; } /* method parser_prod#ACastAsExternCall#replace_child for (self: ACastAsExternCall, ANode, nullable ANode) */ @@ -678,182 +4760,229 @@ val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : AType */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; -val* var5 /* : nullable TDot */; -short int var6 /* : Bool */; -val* var7 /* : null */; -short int var8 /* : Bool */; +const char* var_class_name; +val* var8 /* : nullable TDot */; short int var9 /* : Bool */; -int cltype10; -int idtype11; -val* var12 /* : null */; -val* var13 /* : TKwas */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; short int var14 /* : Bool */; -val* var15 /* : null */; -short int var16 /* : Bool */; -short int var17 /* : Bool */; -int cltype18; -int idtype19; -val* var20 /* : AType */; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; +val* var19 /* : TKwas */; +short int var20 /* : Bool */; short int var21 /* : Bool */; -val* var22 /* : null */; short int var23 /* : Bool */; -short int var24 /* : Bool */; -int cltype25; -int idtype26; +short int var25 /* : Bool */; +short int var26 /* : Bool */; +int cltype27; +int idtype28; +const char* var_class_name29; +val* var30 /* : AType */; +short int var31 /* : Bool */; +short int var32 /* : Bool */; +short int var34 /* : Bool */; +short int var36 /* : Bool */; +short int var37 /* : Bool */; +int cltype38; +int idtype39; +const char* var_class_name40; var_old_child = p0; var_new_child = p1; var = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_from_type].val; /* _n_from_type on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_from_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10551); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_from_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6601); show_backtrace(1); } -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; -if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ -} else { -var3 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; } -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AType */ +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa AType */ cltype = type_parser_nodes__AType.color; idtype = type_parser_nodes__AType.id; +if(var_new_child == NULL) { +var7 = 0; +} else { if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var7 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10554); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_from_type].val = var_new_child; /* _n_from_type on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10557); +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6602); show_backtrace(1); } +{ +parser_prod__ACastAsExternCall__n_from_type_61d(self, var_new_child); /* Direct call parser_prod#ACastAsExternCall#n_from_type= on */ +} goto RET_LABEL; } else { } -var5 = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_dot].val; /* _n_dot on */ -if (var5 == NULL) { -var6 = 0; /* cannot be null */ +var8 = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_dot].val; /* _n_dot on */ +if (var8 == NULL) { +var9 = 0; /* cannot be null */ } else { -var6 = ((short int (*)(val*, val*))(var5->class->vft[COLOR_kernel__Object___61d_61d]))(var5, var_old_child) /* == on */; +{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; } -if (var6){ -var7 = NULL; -if (var_new_child == NULL) { -var8 = 0; /* is null */ -} else { -var8 = 1; /* arg is null and recv is not */ } -if (var8){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TDot */ -cltype10 = type_parser_nodes__TDot.color; -idtype11 = type_parser_nodes__TDot.id; -if(cltype10 >= var_new_child->type->table_size) { -var9 = 0; +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; +} +var9 = var10; +} +if (var9){ +/* isa nullable TDot */ +cltype16 = type_nullable_parser_nodes__TDot.color; +idtype17 = type_nullable_parser_nodes__TDot.id; +if(var_new_child == NULL) { +var15 = 1; +} else { +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; } else { -var9 = var_new_child->type->type_table[cltype10] == idtype11; +var15 = var_new_child->type->type_table[cltype16] == idtype17; } -if (!var9) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10564); +} +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TDot", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6606); show_backtrace(1); } -self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_dot].val = var_new_child; /* _n_dot on */ -} else { -var12 = NULL; -self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_dot].val = var12; /* _n_dot on */ +{ +parser_prod__ACastAsExternCall__n_dot_61d(self, var_new_child); /* Direct call parser_prod#ACastAsExternCall#n_dot= on */ } goto RET_LABEL; } else { } -var13 = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_kwas].val; /* _n_kwas on */ -if (var13 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwas"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10571); +var19 = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_kwas].val; /* _n_kwas on */ +if (unlikely(var19 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6609); show_backtrace(1); } -var14 = ((short int (*)(val*, val*))(var13->class->vft[COLOR_kernel__Object___61d_61d]))(var13, var_old_child) /* == on */; -if (var14){ -var15 = NULL; -if (var_new_child == NULL) { -var16 = 0; /* is null */ -} else { -var16 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var19,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var19,var_other) on */ +var25 = var19 == var_other; +var23 = var25; +goto RET_LABEL24; +RET_LABEL24:(void)0; } -if (var16){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TKwas */ -cltype18 = type_parser_nodes__TKwas.color; -idtype19 = type_parser_nodes__TKwas.id; -if(cltype18 >= var_new_child->type->table_size) { -var17 = 0; -} else { -var17 = var_new_child->type->type_table[cltype18] == idtype19; } -if (!var17) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10574); -show_backtrace(1); +var21 = var23; +goto RET_LABEL22; +RET_LABEL22:(void)0; } -self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_kwas].val = var_new_child; /* _n_kwas on */ +var20 = var21; +} +if (var20){ +/* isa TKwas */ +cltype27 = type_parser_nodes__TKwas.color; +idtype28 = type_parser_nodes__TKwas.id; +if(var_new_child == NULL) { +var26 = 0; } else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10577); +if(cltype27 >= var_new_child->type->table_size) { +var26 = 0; +} else { +var26 = var_new_child->type->type_table[cltype27] == idtype28; +} +} +if (unlikely(!var26)) { +var_class_name29 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name29); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6610); show_backtrace(1); } +{ +parser_prod__ACastAsExternCall__n_kwas_61d(self, var_new_child); /* Direct call parser_prod#ACastAsExternCall#n_kwas= on */ +} goto RET_LABEL; } else { } -var20 = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_to_type].val; /* _n_to_type on */ -if (var20 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_to_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10581); +var30 = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_to_type].val; /* _n_to_type on */ +if (unlikely(var30 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_to_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6613); show_backtrace(1); } -var21 = ((short int (*)(val*, val*))(var20->class->vft[COLOR_kernel__Object___61d_61d]))(var20, var_old_child) /* == on */; -if (var21){ -var22 = NULL; -if (var_new_child == NULL) { -var23 = 0; /* is null */ -} else { -var23 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var30,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var30,var_other) on */ +var36 = var30 == var_other; +var34 = var36; +goto RET_LABEL35; +RET_LABEL35:(void)0; } -if (var23){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AType */ -cltype25 = type_parser_nodes__AType.color; -idtype26 = type_parser_nodes__AType.id; -if(cltype25 >= var_new_child->type->table_size) { -var24 = 0; -} else { -var24 = var_new_child->type->type_table[cltype25] == idtype26; } -if (!var24) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10584); -show_backtrace(1); +var32 = var34; +goto RET_LABEL33; +RET_LABEL33:(void)0; } -self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_to_type].val = var_new_child; /* _n_to_type on */ +var31 = var32; +} +if (var31){ +/* isa AType */ +cltype38 = type_parser_nodes__AType.color; +idtype39 = type_parser_nodes__AType.id; +if(var_new_child == NULL) { +var37 = 0; +} else { +if(cltype38 >= var_new_child->type->table_size) { +var37 = 0; } else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10587); +var37 = var_new_child->type->type_table[cltype38] == idtype39; +} +} +if (unlikely(!var37)) { +var_class_name40 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name40); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6614); show_backtrace(1); } +{ +parser_prod__ACastAsExternCall__n_to_type_61d(self, var_new_child); /* Direct call parser_prod#ACastAsExternCall#n_to_type= on */ +} goto RET_LABEL; } else { } @@ -861,7 +4990,7 @@ RET_LABEL:; } /* method parser_prod#ACastAsExternCall#replace_child for (self: Object, ANode, nullable ANode) */ void VIRTUAL_parser_prod__ACastAsExternCall__replace_child(val* self, val* p0, val* p1) { -parser_prod__ACastAsExternCall__replace_child(self, p0, p1); +parser_prod__ACastAsExternCall__replace_child(self, p0, p1); /* Direct call parser_prod#ACastAsExternCall#replace_child on */ RET_LABEL:; } /* method parser_prod#ACastAsExternCall#n_from_type= for (self: ACastAsExternCall, AType) */ @@ -869,12 +4998,17 @@ void parser_prod__ACastAsExternCall__n_from_type_61d(val* self, val* p0) { val* var_node /* var node: AType */; var_node = p0; self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_from_type].val = var_node; /* _n_from_type on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#ACastAsExternCall#n_from_type= for (self: Object, AType) */ void VIRTUAL_parser_prod__ACastAsExternCall__n_from_type_61d(val* self, val* p0) { -parser_prod__ACastAsExternCall__n_from_type_61d(self, p0); +parser_prod__ACastAsExternCall__n_from_type_61d(self, p0); /* Direct call parser_prod#ACastAsExternCall#n_from_type= on */ RET_LABEL:; } /* method parser_prod#ACastAsExternCall#n_dot= for (self: ACastAsExternCall, nullable TDot) */ @@ -882,6 +5016,11 @@ void parser_prod__ACastAsExternCall__n_dot_61d(val* self, val* p0) { val* var_node /* var node: nullable TDot */; val* var /* : null */; short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; var_node = p0; self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_dot].val = var_node; /* _n_dot on */ var = NULL; @@ -890,15 +5029,34 @@ var1 = 0; /* is null */ } else { var1 = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} if (var1){ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} } else { } RET_LABEL:; } /* method parser_prod#ACastAsExternCall#n_dot= for (self: Object, nullable TDot) */ void VIRTUAL_parser_prod__ACastAsExternCall__n_dot_61d(val* self, val* p0) { -parser_prod__ACastAsExternCall__n_dot_61d(self, p0); +parser_prod__ACastAsExternCall__n_dot_61d(self, p0); /* Direct call parser_prod#ACastAsExternCall#n_dot= on */ RET_LABEL:; } /* method parser_prod#ACastAsExternCall#n_kwas= for (self: ACastAsExternCall, TKwas) */ @@ -906,12 +5064,17 @@ void parser_prod__ACastAsExternCall__n_kwas_61d(val* self, val* p0) { val* var_node /* var node: TKwas */; var_node = p0; self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_kwas].val = var_node; /* _n_kwas on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#ACastAsExternCall#n_kwas= for (self: Object, TKwas) */ void VIRTUAL_parser_prod__ACastAsExternCall__n_kwas_61d(val* self, val* p0) { -parser_prod__ACastAsExternCall__n_kwas_61d(self, p0); +parser_prod__ACastAsExternCall__n_kwas_61d(self, p0); /* Direct call parser_prod#ACastAsExternCall#n_kwas= on */ RET_LABEL:; } /* method parser_prod#ACastAsExternCall#n_to_type= for (self: ACastAsExternCall, AType) */ @@ -919,12 +5082,17 @@ void parser_prod__ACastAsExternCall__n_to_type_61d(val* self, val* p0) { val* var_node /* var node: AType */; var_node = p0; self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_to_type].val = var_node; /* _n_to_type on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#ACastAsExternCall#n_to_type= for (self: Object, AType) */ void VIRTUAL_parser_prod__ACastAsExternCall__n_to_type_61d(val* self, val* p0) { -parser_prod__ACastAsExternCall__n_to_type_61d(self, p0); +parser_prod__ACastAsExternCall__n_to_type_61d(self, p0); /* Direct call parser_prod#ACastAsExternCall#n_to_type= on */ RET_LABEL:; } /* method parser_prod#ACastAsExternCall#visit_all for (self: ACastAsExternCall, Visitor) */ @@ -932,64 +5100,45 @@ void parser_prod__ACastAsExternCall__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : AType */; val* var1 /* : nullable TDot */; -val* var2 /* : null */; -short int var3 /* : Bool */; -val* var4 /* : nullable TDot */; -val* var5 /* : TKwas */; -val* var6 /* : AType */; +val* var2 /* : TKwas */; +val* var3 /* : AType */; var_v = p0; var = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_from_type].val; /* _n_from_type on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_from_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10619); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_from_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6643); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} var1 = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_dot].val; /* _n_dot on */ -var2 = NULL; -if (var1 == NULL) { -var3 = 0; /* is null */ -} else { -var3 = 1; /* arg is null and recv is not */ +{ +parser_nodes__Visitor__enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ } -if (var3){ -var4 = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_dot].val; /* _n_dot on */ -if (var4 == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10621); +var2 = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_kwas].val; /* _n_kwas on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6645); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var4) /* enter_visit on */; -} else { +{ +parser_nodes__Visitor__enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ } -var5 = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_kwas].val; /* _n_kwas on */ -if (var5 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwas"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10623); +var3 = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_to_type].val; /* _n_to_type on */ +if (unlikely(var3 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_to_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6646); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var5) /* enter_visit on */; -var6 = self->attrs[COLOR_parser_nodes__ACastAsExternCall___n_to_type].val; /* _n_to_type on */ -if (var6 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_to_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10624); -show_backtrace(1); +{ +parser_nodes__Visitor__enter_visit(var_v, var3); /* Direct call parser_nodes#Visitor#enter_visit on */ } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var6) /* enter_visit on */; RET_LABEL:; } /* method parser_prod#ACastAsExternCall#visit_all for (self: Object, Visitor) */ void VIRTUAL_parser_prod__ACastAsExternCall__visit_all(val* self, val* p0) { -parser_prod__ACastAsExternCall__visit_all(self, p0); -RET_LABEL:; -} -/* method parser_prod#AAsNullableExternCall#empty_init for (self: AAsNullableExternCall) */ -void parser_prod__AAsNullableExternCall__empty_init(val* self) { -RET_LABEL:; -} -/* method parser_prod#AAsNullableExternCall#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AAsNullableExternCall__empty_init(val* self) { -parser_prod__AAsNullableExternCall__empty_init(self); +parser_prod__ACastAsExternCall__visit_all(self, p0); /* Direct call parser_prod#ACastAsExternCall#visit_all on */ RET_LABEL:; } /* method parser_prod#AAsNullableExternCall#init_aasnullableexterncall for (self: AAsNullableExternCall, nullable AType, nullable TKwas, nullable TKwnullable) */ @@ -1000,51 +5149,74 @@ val* var_n_kwnullable /* var n_kwnullable: nullable TKwnullable */; var_n_type = p0; var_n_kwas = p1; var_n_kwnullable = p2; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AAsNullableExternCall__empty_init]))(self) /* empty_init on */; -if (var_n_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10637); +if (unlikely(var_n_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6656); show_backtrace(1); } self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_type].val = var_n_type; /* _n_type on */ if (var_n_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10638); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6657); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_type->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_type, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_type,self) on */ +if (unlikely(var_n_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); } -if (var_n_kwas == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10639); +var_n_type->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +if (unlikely(var_n_kwas == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6658); show_backtrace(1); } self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_kwas].val = var_n_kwas; /* _n_kwas on */ if (var_n_kwas == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10640); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6659); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_kwas->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_kwas, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on */ +if (unlikely(var_n_kwas == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); } -if (var_n_kwnullable == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10641); +var_n_kwas->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; +} +} +if (unlikely(var_n_kwnullable == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6660); show_backtrace(1); } self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable].val = var_n_kwnullable; /* _n_kwnullable on */ if (var_n_kwnullable == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10642); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6661); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_kwnullable->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_kwnullable, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_kwnullable,self) on */ +if (unlikely(var_n_kwnullable == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_kwnullable->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL3:(void)0; +} } RET_LABEL:; } /* method parser_prod#AAsNullableExternCall#init_aasnullableexterncall for (self: Object, nullable AType, nullable TKwas, nullable TKwnullable) */ void VIRTUAL_parser_prod__AAsNullableExternCall__init_aasnullableexterncall(val* self, val* p0, val* p1, val* p2) { -parser_prod__AAsNullableExternCall__init_aasnullableexterncall(self, p0, p1, p2); +parser_prod__AAsNullableExternCall__init_aasnullableexterncall(self, p0, p1, p2); /* Direct call parser_prod#AAsNullableExternCall#init_aasnullableexterncall on */ RET_LABEL:; } /* method parser_prod#AAsNullableExternCall#replace_child for (self: AAsNullableExternCall, ANode, nullable ANode) */ @@ -1053,138 +5225,175 @@ val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : AType */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; -val* var5 /* : TKwas */; -short int var6 /* : Bool */; -val* var7 /* : null */; -short int var8 /* : Bool */; +const char* var_class_name; +val* var8 /* : TKwas */; short int var9 /* : Bool */; -int cltype10; -int idtype11; -val* var12 /* : TKwnullable */; -short int var13 /* : Bool */; -val* var14 /* : null */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; +short int var14 /* : Bool */; short int var15 /* : Bool */; -short int var16 /* : Bool */; -int cltype17; -int idtype18; +int cltype16; +int idtype17; +const char* var_class_name18; +val* var19 /* : TKwnullable */; +short int var20 /* : Bool */; +short int var21 /* : Bool */; +short int var23 /* : Bool */; +short int var25 /* : Bool */; +short int var26 /* : Bool */; +int cltype27; +int idtype28; +const char* var_class_name29; var_old_child = p0; var_new_child = p1; var = self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_type].val; /* _n_type on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10647); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6666); show_backtrace(1); } -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; -if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ -} else { -var3 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; } -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AType */ +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa AType */ cltype = type_parser_nodes__AType.color; idtype = type_parser_nodes__AType.id; +if(var_new_child == NULL) { +var7 = 0; +} else { if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var7 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10650); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_type].val = var_new_child; /* _n_type on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10653); +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6667); show_backtrace(1); } +{ +parser_prod__AAsNullableExternCall__n_type_61d(self, var_new_child); /* Direct call parser_prod#AAsNullableExternCall#n_type= on */ +} goto RET_LABEL; } else { } -var5 = self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_kwas].val; /* _n_kwas on */ -if (var5 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwas"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10657); +var8 = self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_kwas].val; /* _n_kwas on */ +if (unlikely(var8 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6670); show_backtrace(1); } -var6 = ((short int (*)(val*, val*))(var5->class->vft[COLOR_kernel__Object___61d_61d]))(var5, var_old_child) /* == on */; -if (var6){ -var7 = NULL; -if (var_new_child == NULL) { -var8 = 0; /* is null */ -} else { -var8 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; } -if (var8){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TKwas */ -cltype10 = type_parser_nodes__TKwas.color; -idtype11 = type_parser_nodes__TKwas.id; -if(cltype10 >= var_new_child->type->table_size) { -var9 = 0; -} else { -var9 = var_new_child->type->type_table[cltype10] == idtype11; } -if (!var9) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10660); -show_backtrace(1); +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; +} +var9 = var10; } -self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_kwas].val = var_new_child; /* _n_kwas on */ +if (var9){ +/* isa TKwas */ +cltype16 = type_parser_nodes__TKwas.color; +idtype17 = type_parser_nodes__TKwas.id; +if(var_new_child == NULL) { +var15 = 0; +} else { +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; } else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10663); +var15 = var_new_child->type->type_table[cltype16] == idtype17; +} +} +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6671); show_backtrace(1); } +{ +parser_prod__AAsNullableExternCall__n_kwas_61d(self, var_new_child); /* Direct call parser_prod#AAsNullableExternCall#n_kwas= on */ +} goto RET_LABEL; } else { } -var12 = self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable].val; /* _n_kwnullable on */ -if (var12 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwnullable"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10667); +var19 = self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable].val; /* _n_kwnullable on */ +if (unlikely(var19 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnullable"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6674); show_backtrace(1); } -var13 = ((short int (*)(val*, val*))(var12->class->vft[COLOR_kernel__Object___61d_61d]))(var12, var_old_child) /* == on */; -if (var13){ -var14 = NULL; -if (var_new_child == NULL) { -var15 = 0; /* is null */ -} else { -var15 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var19,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var19,var_other) on */ +var25 = var19 == var_other; +var23 = var25; +goto RET_LABEL24; +RET_LABEL24:(void)0; } -if (var15){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TKwnullable */ -cltype17 = type_parser_nodes__TKwnullable.color; -idtype18 = type_parser_nodes__TKwnullable.id; -if(cltype17 >= var_new_child->type->table_size) { -var16 = 0; -} else { -var16 = var_new_child->type->type_table[cltype17] == idtype18; } -if (!var16) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10670); -show_backtrace(1); +var21 = var23; +goto RET_LABEL22; +RET_LABEL22:(void)0; } -self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable].val = var_new_child; /* _n_kwnullable on */ +var20 = var21; +} +if (var20){ +/* isa TKwnullable */ +cltype27 = type_parser_nodes__TKwnullable.color; +idtype28 = type_parser_nodes__TKwnullable.id; +if(var_new_child == NULL) { +var26 = 0; } else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10673); +if(cltype27 >= var_new_child->type->table_size) { +var26 = 0; +} else { +var26 = var_new_child->type->type_table[cltype27] == idtype28; +} +} +if (unlikely(!var26)) { +var_class_name29 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnullable", var_class_name29); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6675); show_backtrace(1); } +{ +parser_prod__AAsNullableExternCall__n_kwnullable_61d(self, var_new_child); /* Direct call parser_prod#AAsNullableExternCall#n_kwnullable= on */ +} goto RET_LABEL; } else { } @@ -1192,7 +5401,7 @@ RET_LABEL:; } /* method parser_prod#AAsNullableExternCall#replace_child for (self: Object, ANode, nullable ANode) */ void VIRTUAL_parser_prod__AAsNullableExternCall__replace_child(val* self, val* p0, val* p1) { -parser_prod__AAsNullableExternCall__replace_child(self, p0, p1); +parser_prod__AAsNullableExternCall__replace_child(self, p0, p1); /* Direct call parser_prod#AAsNullableExternCall#replace_child on */ RET_LABEL:; } /* method parser_prod#AAsNullableExternCall#n_type= for (self: AAsNullableExternCall, AType) */ @@ -1200,12 +5409,17 @@ void parser_prod__AAsNullableExternCall__n_type_61d(val* self, val* p0) { val* var_node /* var node: AType */; var_node = p0; self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_type].val = var_node; /* _n_type on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#AAsNullableExternCall#n_type= for (self: Object, AType) */ void VIRTUAL_parser_prod__AAsNullableExternCall__n_type_61d(val* self, val* p0) { -parser_prod__AAsNullableExternCall__n_type_61d(self, p0); +parser_prod__AAsNullableExternCall__n_type_61d(self, p0); /* Direct call parser_prod#AAsNullableExternCall#n_type= on */ RET_LABEL:; } /* method parser_prod#AAsNullableExternCall#n_kwas= for (self: AAsNullableExternCall, TKwas) */ @@ -1213,12 +5427,17 @@ void parser_prod__AAsNullableExternCall__n_kwas_61d(val* self, val* p0) { val* var_node /* var node: TKwas */; var_node = p0; self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_kwas].val = var_node; /* _n_kwas on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#AAsNullableExternCall#n_kwas= for (self: Object, TKwas) */ void VIRTUAL_parser_prod__AAsNullableExternCall__n_kwas_61d(val* self, val* p0) { -parser_prod__AAsNullableExternCall__n_kwas_61d(self, p0); +parser_prod__AAsNullableExternCall__n_kwas_61d(self, p0); /* Direct call parser_prod#AAsNullableExternCall#n_kwas= on */ RET_LABEL:; } /* method parser_prod#AAsNullableExternCall#n_kwnullable= for (self: AAsNullableExternCall, TKwnullable) */ @@ -1226,12 +5445,17 @@ void parser_prod__AAsNullableExternCall__n_kwnullable_61d(val* self, val* p0) { val* var_node /* var node: TKwnullable */; var_node = p0; self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable].val = var_node; /* _n_kwnullable on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#AAsNullableExternCall#n_kwnullable= for (self: Object, TKwnullable) */ void VIRTUAL_parser_prod__AAsNullableExternCall__n_kwnullable_61d(val* self, val* p0) { -parser_prod__AAsNullableExternCall__n_kwnullable_61d(self, p0); +parser_prod__AAsNullableExternCall__n_kwnullable_61d(self, p0); /* Direct call parser_prod#AAsNullableExternCall#n_kwnullable= on */ RET_LABEL:; } /* method parser_prod#AAsNullableExternCall#visit_all for (self: AAsNullableExternCall, Visitor) */ @@ -1242,40 +5466,37 @@ val* var1 /* : TKwas */; val* var2 /* : TKwnullable */; var_v = p0; var = self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_type].val; /* _n_type on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10698); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6699); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} var1 = self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_kwas].val; /* _n_kwas on */ -if (var1 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwas"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10699); +if (unlikely(var1 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6700); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var1) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +} var2 = self->attrs[COLOR_parser_nodes__AAsNullableExternCall___n_kwnullable].val; /* _n_kwnullable on */ -if (var2 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwnullable"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10700); +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnullable"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6701); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var2) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ +} RET_LABEL:; } /* method parser_prod#AAsNullableExternCall#visit_all for (self: Object, Visitor) */ void VIRTUAL_parser_prod__AAsNullableExternCall__visit_all(val* self, val* p0) { -parser_prod__AAsNullableExternCall__visit_all(self, p0); -RET_LABEL:; -} -/* method parser_prod#AAsNotNullableExternCall#empty_init for (self: AAsNotNullableExternCall) */ -void parser_prod__AAsNotNullableExternCall__empty_init(val* self) { -RET_LABEL:; -} -/* method parser_prod#AAsNotNullableExternCall#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AAsNotNullableExternCall__empty_init(val* self) { -parser_prod__AAsNotNullableExternCall__empty_init(self); +parser_prod__AAsNullableExternCall__visit_all(self, p0); /* Direct call parser_prod#AAsNullableExternCall#visit_all on */ RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#init_aasnotnullableexterncall for (self: AAsNotNullableExternCall, nullable AType, nullable TKwas, nullable TKwnot, nullable TKwnullable) */ @@ -1288,64 +5509,95 @@ var_n_type = p0; var_n_kwas = p1; var_n_kwnot = p2; var_n_kwnullable = p3; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AAsNotNullableExternCall__empty_init]))(self) /* empty_init on */; -if (var_n_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10714); +if (unlikely(var_n_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6712); show_backtrace(1); } self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_type].val = var_n_type; /* _n_type on */ if (var_n_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10715); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6713); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_type->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_type, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_type,self) on */ +if (unlikely(var_n_type == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); } -if (var_n_kwas == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10716); +var_n_type->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +if (unlikely(var_n_kwas == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6714); show_backtrace(1); } self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas].val = var_n_kwas; /* _n_kwas on */ if (var_n_kwas == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10717); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6715); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_kwas->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_kwas, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_kwas,self) on */ +if (unlikely(var_n_kwas == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); } -if (var_n_kwnot == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10718); +var_n_kwas->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; +} +} +if (unlikely(var_n_kwnot == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6716); show_backtrace(1); } self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot].val = var_n_kwnot; /* _n_kwnot on */ if (var_n_kwnot == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10719); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6717); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_kwnot->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_kwnot, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_kwnot,self) on */ +if (unlikely(var_n_kwnot == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); } -if (var_n_kwnullable == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10720); +var_n_kwnot->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL3:(void)0; +} +} +if (unlikely(var_n_kwnullable == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6718); show_backtrace(1); } self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable].val = var_n_kwnullable; /* _n_kwnullable on */ if (var_n_kwnullable == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10721); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6719); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_kwnullable->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_kwnullable, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_kwnullable,self) on */ +if (unlikely(var_n_kwnullable == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_kwnullable->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL4:(void)0; +} } RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#init_aasnotnullableexterncall for (self: Object, nullable AType, nullable TKwas, nullable TKwnot, nullable TKwnullable) */ void VIRTUAL_parser_prod__AAsNotNullableExternCall__init_aasnotnullableexterncall(val* self, val* p0, val* p1, val* p2, val* p3) { -parser_prod__AAsNotNullableExternCall__init_aasnotnullableexterncall(self, p0, p1, p2, p3); +parser_prod__AAsNotNullableExternCall__init_aasnotnullableexterncall(self, p0, p1, p2, p3); /* Direct call parser_prod#AAsNotNullableExternCall#init_aasnotnullableexterncall on */ RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#replace_child for (self: AAsNotNullableExternCall, ANode, nullable ANode) */ @@ -1354,183 +5606,232 @@ val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : AType */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; -val* var5 /* : TKwas */; -short int var6 /* : Bool */; -val* var7 /* : null */; -short int var8 /* : Bool */; +const char* var_class_name; +val* var8 /* : TKwas */; short int var9 /* : Bool */; -int cltype10; -int idtype11; -val* var12 /* : TKwnot */; -short int var13 /* : Bool */; -val* var14 /* : null */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; +short int var14 /* : Bool */; short int var15 /* : Bool */; -short int var16 /* : Bool */; -int cltype17; -int idtype18; -val* var19 /* : TKwnullable */; +int cltype16; +int idtype17; +const char* var_class_name18; +val* var19 /* : TKwnot */; short int var20 /* : Bool */; -val* var21 /* : null */; -short int var22 /* : Bool */; +short int var21 /* : Bool */; short int var23 /* : Bool */; -int cltype24; -int idtype25; +short int var25 /* : Bool */; +short int var26 /* : Bool */; +int cltype27; +int idtype28; +const char* var_class_name29; +val* var30 /* : TKwnullable */; +short int var31 /* : Bool */; +short int var32 /* : Bool */; +short int var34 /* : Bool */; +short int var36 /* : Bool */; +short int var37 /* : Bool */; +int cltype38; +int idtype39; +const char* var_class_name40; var_old_child = p0; var_new_child = p1; var = self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_type].val; /* _n_type on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10726); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6724); show_backtrace(1); } -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; -if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ -} else { -var3 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; } -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AType */ +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa AType */ cltype = type_parser_nodes__AType.color; idtype = type_parser_nodes__AType.id; +if(var_new_child == NULL) { +var7 = 0; +} else { if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var7 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10729); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_type].val = var_new_child; /* _n_type on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10732); +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AType", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6725); show_backtrace(1); } +{ +parser_prod__AAsNotNullableExternCall__n_type_61d(self, var_new_child); /* Direct call parser_prod#AAsNotNullableExternCall#n_type= on */ +} goto RET_LABEL; } else { } -var5 = self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas].val; /* _n_kwas on */ -if (var5 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwas"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10736); +var8 = self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas].val; /* _n_kwas on */ +if (unlikely(var8 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6728); show_backtrace(1); } -var6 = ((short int (*)(val*, val*))(var5->class->vft[COLOR_kernel__Object___61d_61d]))(var5, var_old_child) /* == on */; -if (var6){ -var7 = NULL; -if (var_new_child == NULL) { -var8 = 0; /* is null */ -} else { -var8 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; } -if (var8){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TKwas */ -cltype10 = type_parser_nodes__TKwas.color; -idtype11 = type_parser_nodes__TKwas.id; -if(cltype10 >= var_new_child->type->table_size) { -var9 = 0; -} else { -var9 = var_new_child->type->type_table[cltype10] == idtype11; } -if (!var9) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10739); -show_backtrace(1); +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; +} +var9 = var10; } -self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas].val = var_new_child; /* _n_kwas on */ +if (var9){ +/* isa TKwas */ +cltype16 = type_parser_nodes__TKwas.color; +idtype17 = type_parser_nodes__TKwas.id; +if(var_new_child == NULL) { +var15 = 0; +} else { +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; } else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10742); +var15 = var_new_child->type->type_table[cltype16] == idtype17; +} +} +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwas", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6729); show_backtrace(1); } +{ +parser_prod__AAsNotNullableExternCall__n_kwas_61d(self, var_new_child); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwas= on */ +} goto RET_LABEL; } else { } -var12 = self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot].val; /* _n_kwnot on */ -if (var12 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwnot"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10746); +var19 = self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot].val; /* _n_kwnot on */ +if (unlikely(var19 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6732); show_backtrace(1); } -var13 = ((short int (*)(val*, val*))(var12->class->vft[COLOR_kernel__Object___61d_61d]))(var12, var_old_child) /* == on */; -if (var13){ -var14 = NULL; -if (var_new_child == NULL) { -var15 = 0; /* is null */ -} else { -var15 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var19,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var19,var_other) on */ +var25 = var19 == var_other; +var23 = var25; +goto RET_LABEL24; +RET_LABEL24:(void)0; } -if (var15){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TKwnot */ -cltype17 = type_parser_nodes__TKwnot.color; -idtype18 = type_parser_nodes__TKwnot.id; -if(cltype17 >= var_new_child->type->table_size) { -var16 = 0; -} else { -var16 = var_new_child->type->type_table[cltype17] == idtype18; } -if (!var16) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10749); -show_backtrace(1); +var21 = var23; +goto RET_LABEL22; +RET_LABEL22:(void)0; } -self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot].val = var_new_child; /* _n_kwnot on */ +var20 = var21; +} +if (var20){ +/* isa TKwnot */ +cltype27 = type_parser_nodes__TKwnot.color; +idtype28 = type_parser_nodes__TKwnot.id; +if(var_new_child == NULL) { +var26 = 0; } else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10752); +if(cltype27 >= var_new_child->type->table_size) { +var26 = 0; +} else { +var26 = var_new_child->type->type_table[cltype27] == idtype28; +} +} +if (unlikely(!var26)) { +var_class_name29 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnot", var_class_name29); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6733); show_backtrace(1); } +{ +parser_prod__AAsNotNullableExternCall__n_kwnot_61d(self, var_new_child); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwnot= on */ +} goto RET_LABEL; } else { } -var19 = self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable].val; /* _n_kwnullable on */ -if (var19 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwnullable"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10756); +var30 = self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable].val; /* _n_kwnullable on */ +if (unlikely(var30 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnullable"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6736); show_backtrace(1); } -var20 = ((short int (*)(val*, val*))(var19->class->vft[COLOR_kernel__Object___61d_61d]))(var19, var_old_child) /* == on */; -if (var20){ -var21 = NULL; -if (var_new_child == NULL) { -var22 = 0; /* is null */ -} else { -var22 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var30,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var30,var_other) on */ +var36 = var30 == var_other; +var34 = var36; +goto RET_LABEL35; +RET_LABEL35:(void)0; } -if (var22){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TKwnullable */ -cltype24 = type_parser_nodes__TKwnullable.color; -idtype25 = type_parser_nodes__TKwnullable.id; -if(cltype24 >= var_new_child->type->table_size) { -var23 = 0; -} else { -var23 = var_new_child->type->type_table[cltype24] == idtype25; } -if (!var23) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10759); -show_backtrace(1); +var32 = var34; +goto RET_LABEL33; +RET_LABEL33:(void)0; +} +var31 = var32; } -self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable].val = var_new_child; /* _n_kwnullable on */ +if (var31){ +/* isa TKwnullable */ +cltype38 = type_parser_nodes__TKwnullable.color; +idtype39 = type_parser_nodes__TKwnullable.id; +if(var_new_child == NULL) { +var37 = 0; +} else { +if(cltype38 >= var_new_child->type->table_size) { +var37 = 0; } else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10762); +var37 = var_new_child->type->type_table[cltype38] == idtype39; +} +} +if (unlikely(!var37)) { +var_class_name40 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwnullable", var_class_name40); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6737); show_backtrace(1); } +{ +parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(self, var_new_child); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwnullable= on */ +} goto RET_LABEL; } else { } @@ -1538,7 +5839,7 @@ RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#replace_child for (self: Object, ANode, nullable ANode) */ void VIRTUAL_parser_prod__AAsNotNullableExternCall__replace_child(val* self, val* p0, val* p1) { -parser_prod__AAsNotNullableExternCall__replace_child(self, p0, p1); +parser_prod__AAsNotNullableExternCall__replace_child(self, p0, p1); /* Direct call parser_prod#AAsNotNullableExternCall#replace_child on */ RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#n_type= for (self: AAsNotNullableExternCall, AType) */ @@ -1546,12 +5847,17 @@ void parser_prod__AAsNotNullableExternCall__n_type_61d(val* self, val* p0) { val* var_node /* var node: AType */; var_node = p0; self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_type].val = var_node; /* _n_type on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#n_type= for (self: Object, AType) */ void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_type_61d(val* self, val* p0) { -parser_prod__AAsNotNullableExternCall__n_type_61d(self, p0); +parser_prod__AAsNotNullableExternCall__n_type_61d(self, p0); /* Direct call parser_prod#AAsNotNullableExternCall#n_type= on */ RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#n_kwas= for (self: AAsNotNullableExternCall, TKwas) */ @@ -1559,12 +5865,17 @@ void parser_prod__AAsNotNullableExternCall__n_kwas_61d(val* self, val* p0) { val* var_node /* var node: TKwas */; var_node = p0; self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas].val = var_node; /* _n_kwas on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#n_kwas= for (self: Object, TKwas) */ void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_kwas_61d(val* self, val* p0) { -parser_prod__AAsNotNullableExternCall__n_kwas_61d(self, p0); +parser_prod__AAsNotNullableExternCall__n_kwas_61d(self, p0); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwas= on */ RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#n_kwnot= for (self: AAsNotNullableExternCall, TKwnot) */ @@ -1572,12 +5883,17 @@ void parser_prod__AAsNotNullableExternCall__n_kwnot_61d(val* self, val* p0) { val* var_node /* var node: TKwnot */; var_node = p0; self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot].val = var_node; /* _n_kwnot on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#n_kwnot= for (self: Object, TKwnot) */ void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_kwnot_61d(val* self, val* p0) { -parser_prod__AAsNotNullableExternCall__n_kwnot_61d(self, p0); +parser_prod__AAsNotNullableExternCall__n_kwnot_61d(self, p0); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwnot= on */ RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#n_kwnullable= for (self: AAsNotNullableExternCall, TKwnullable) */ @@ -1585,12 +5901,17 @@ void parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(val* self, val* p0) val* var_node /* var node: TKwnullable */; var_node = p0; self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable].val = var_node; /* _n_kwnullable on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#n_kwnullable= for (self: Object, TKwnullable) */ void VIRTUAL_parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(val* self, val* p0) { -parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(self, p0); +parser_prod__AAsNotNullableExternCall__n_kwnullable_61d(self, p0); /* Direct call parser_prod#AAsNotNullableExternCall#n_kwnullable= on */ RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#visit_all for (self: AAsNotNullableExternCall, Visitor) */ @@ -1602,47 +5923,46 @@ val* var2 /* : TKwnot */; val* var3 /* : TKwnullable */; var_v = p0; var = self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_type].val; /* _n_type on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10792); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_type"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6766); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} var1 = self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwas].val; /* _n_kwas on */ -if (var1 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwas"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10793); +if (unlikely(var1 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwas"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6767); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var1) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +} var2 = self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnot].val; /* _n_kwnot on */ -if (var2 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwnot"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10794); +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnot"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6768); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var2) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ +} var3 = self->attrs[COLOR_parser_nodes__AAsNotNullableExternCall___n_kwnullable].val; /* _n_kwnullable on */ -if (var3 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwnullable"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10795); +if (unlikely(var3 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwnullable"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6769); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var3) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var3); /* Direct call parser_nodes#Visitor#enter_visit on */ +} RET_LABEL:; } /* method parser_prod#AAsNotNullableExternCall#visit_all for (self: Object, Visitor) */ void VIRTUAL_parser_prod__AAsNotNullableExternCall__visit_all(val* self, val* p0) { -parser_prod__AAsNotNullableExternCall__visit_all(self, p0); -RET_LABEL:; -} -/* method parser_prod#AInLanguage#empty_init for (self: AInLanguage) */ -void parser_prod__AInLanguage__empty_init(val* self) { -RET_LABEL:; -} -/* method parser_prod#AInLanguage#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AInLanguage__empty_init(val* self) { -parser_prod__AInLanguage__empty_init(self); +parser_prod__AAsNotNullableExternCall__visit_all(self, p0); /* Direct call parser_prod#AAsNotNullableExternCall#visit_all on */ RET_LABEL:; } /* method parser_prod#AInLanguage#init_ainlanguage for (self: AInLanguage, nullable TKwin, nullable TString) */ @@ -1651,38 +5971,53 @@ val* var_n_kwin /* var n_kwin: nullable TKwin */; val* var_n_string /* var n_string: nullable TString */; var_n_kwin = p0; var_n_string = p1; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AInLanguage__empty_init]))(self) /* empty_init on */; -if (var_n_kwin == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10807); +if (unlikely(var_n_kwin == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6778); show_backtrace(1); } self->attrs[COLOR_parser_nodes__AInLanguage___n_kwin].val = var_n_kwin; /* _n_kwin on */ if (var_n_kwin == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10808); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6779); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_kwin->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_kwin, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_kwin,self) on */ +if (unlikely(var_n_kwin == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); } -if (var_n_string == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10809); +var_n_kwin->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} +if (unlikely(var_n_string == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6780); show_backtrace(1); } self->attrs[COLOR_parser_nodes__AInLanguage___n_string].val = var_n_string; /* _n_string on */ if (var_n_string == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10810); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6781); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_string->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_string, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_string,self) on */ +if (unlikely(var_n_string == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_string->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL2:(void)0; +} } RET_LABEL:; } /* method parser_prod#AInLanguage#init_ainlanguage for (self: Object, nullable TKwin, nullable TString) */ void VIRTUAL_parser_prod__AInLanguage__init_ainlanguage(val* self, val* p0, val* p1) { -parser_prod__AInLanguage__init_ainlanguage(self, p0, p1); +parser_prod__AInLanguage__init_ainlanguage(self, p0, p1); /* Direct call parser_prod#AInLanguage#init_ainlanguage on */ RET_LABEL:; } /* method parser_prod#AInLanguage#replace_child for (self: AInLanguage, ANode, nullable ANode) */ @@ -1691,93 +6026,118 @@ val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : TKwin */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; -val* var5 /* : TString */; -short int var6 /* : Bool */; -val* var7 /* : null */; -short int var8 /* : Bool */; +const char* var_class_name; +val* var8 /* : TString */; short int var9 /* : Bool */; -int cltype10; -int idtype11; +short int var10 /* : Bool */; +short int var12 /* : Bool */; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; var_old_child = p0; var_new_child = p1; var = self->attrs[COLOR_parser_nodes__AInLanguage___n_kwin].val; /* _n_kwin on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwin"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10815); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwin"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6786); show_backtrace(1); } -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; -if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ -} else { -var3 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; } -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TKwin */ +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +/* isa TKwin */ cltype = type_parser_nodes__TKwin.color; idtype = type_parser_nodes__TKwin.id; +if(var_new_child == NULL) { +var7 = 0; +} else { if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var7 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10818); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AInLanguage___n_kwin].val = var_new_child; /* _n_kwin on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10821); +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwin", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6787); show_backtrace(1); } +{ +parser_prod__AInLanguage__n_kwin_61d(self, var_new_child); /* Direct call parser_prod#AInLanguage#n_kwin= on */ +} goto RET_LABEL; } else { } -var5 = self->attrs[COLOR_parser_nodes__AInLanguage___n_string].val; /* _n_string on */ -if (var5 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_string"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10825); +var8 = self->attrs[COLOR_parser_nodes__AInLanguage___n_string].val; /* _n_string on */ +if (unlikely(var8 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6790); show_backtrace(1); } -var6 = ((short int (*)(val*, val*))(var5->class->vft[COLOR_kernel__Object___61d_61d]))(var5, var_old_child) /* == on */; -if (var6){ -var7 = NULL; -if (var_new_child == NULL) { -var8 = 0; /* is null */ -} else { -var8 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; } -if (var8){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TString */ -cltype10 = type_parser_nodes__TString.color; -idtype11 = type_parser_nodes__TString.id; -if(cltype10 >= var_new_child->type->table_size) { -var9 = 0; -} else { -var9 = var_new_child->type->type_table[cltype10] == idtype11; } -if (!var9) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10828); -show_backtrace(1); +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; +} +var9 = var10; } -self->attrs[COLOR_parser_nodes__AInLanguage___n_string].val = var_new_child; /* _n_string on */ +if (var9){ +/* isa TString */ +cltype16 = type_parser_nodes__TString.color; +idtype17 = type_parser_nodes__TString.id; +if(var_new_child == NULL) { +var15 = 0; +} else { +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; } else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10831); +var15 = var_new_child->type->type_table[cltype16] == idtype17; +} +} +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TString", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6791); show_backtrace(1); } +{ +parser_prod__AInLanguage__n_string_61d(self, var_new_child); /* Direct call parser_prod#AInLanguage#n_string= on */ +} goto RET_LABEL; } else { } @@ -1785,7 +6145,7 @@ RET_LABEL:; } /* method parser_prod#AInLanguage#replace_child for (self: Object, ANode, nullable ANode) */ void VIRTUAL_parser_prod__AInLanguage__replace_child(val* self, val* p0, val* p1) { -parser_prod__AInLanguage__replace_child(self, p0, p1); +parser_prod__AInLanguage__replace_child(self, p0, p1); /* Direct call parser_prod#AInLanguage#replace_child on */ RET_LABEL:; } /* method parser_prod#AInLanguage#n_kwin= for (self: AInLanguage, TKwin) */ @@ -1793,12 +6153,17 @@ void parser_prod__AInLanguage__n_kwin_61d(val* self, val* p0) { val* var_node /* var node: TKwin */; var_node = p0; self->attrs[COLOR_parser_nodes__AInLanguage___n_kwin].val = var_node; /* _n_kwin on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#AInLanguage#n_kwin= for (self: Object, TKwin) */ void VIRTUAL_parser_prod__AInLanguage__n_kwin_61d(val* self, val* p0) { -parser_prod__AInLanguage__n_kwin_61d(self, p0); +parser_prod__AInLanguage__n_kwin_61d(self, p0); /* Direct call parser_prod#AInLanguage#n_kwin= on */ RET_LABEL:; } /* method parser_prod#AInLanguage#n_string= for (self: AInLanguage, TString) */ @@ -1806,12 +6171,17 @@ void parser_prod__AInLanguage__n_string_61d(val* self, val* p0) { val* var_node /* var node: TString */; var_node = p0; self->attrs[COLOR_parser_nodes__AInLanguage___n_string].val = var_node; /* _n_string on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#AInLanguage#n_string= for (self: Object, TString) */ void VIRTUAL_parser_prod__AInLanguage__n_string_61d(val* self, val* p0) { -parser_prod__AInLanguage__n_string_61d(self, p0); +parser_prod__AInLanguage__n_string_61d(self, p0); /* Direct call parser_prod#AInLanguage#n_string= on */ RET_LABEL:; } /* method parser_prod#AInLanguage#visit_all for (self: AInLanguage, Visitor) */ @@ -1821,33 +6191,28 @@ val* var /* : TKwin */; val* var1 /* : TString */; var_v = p0; var = self->attrs[COLOR_parser_nodes__AInLanguage___n_kwin].val; /* _n_kwin on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_kwin"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10851); +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_kwin"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6810); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} var1 = self->attrs[COLOR_parser_nodes__AInLanguage___n_string].val; /* _n_string on */ -if (var1 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_string"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10852); +if (unlikely(var1 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_string"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6811); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var1) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +} RET_LABEL:; } /* method parser_prod#AInLanguage#visit_all for (self: Object, Visitor) */ void VIRTUAL_parser_prod__AInLanguage__visit_all(val* self, val* p0) { -parser_prod__AInLanguage__visit_all(self, p0); -RET_LABEL:; -} -/* method parser_prod#AExternCodeBlock#empty_init for (self: AExternCodeBlock) */ -void parser_prod__AExternCodeBlock__empty_init(val* self) { -RET_LABEL:; -} -/* method parser_prod#AExternCodeBlock#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AExternCodeBlock__empty_init(val* self) { -parser_prod__AExternCodeBlock__empty_init(self); +parser_prod__AInLanguage__visit_all(self, p0); /* Direct call parser_prod#AInLanguage#visit_all on */ RET_LABEL:; } /* method parser_prod#AExternCodeBlock#init_aexterncodeblock for (self: AExternCodeBlock, nullable AInLanguage, nullable TExternCodeSegment) */ @@ -1856,9 +6221,13 @@ val* var_n_in_language /* var n_in_language: nullable AInLanguage */; val* var_n_extern_code_segment /* var n_extern_code_segment: nullable TExternCodeSegment */; val* var /* : null */; short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; var_n_in_language = p0; var_n_extern_code_segment = p1; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AExternCodeBlock__empty_init]))(self) /* empty_init on */; self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_in_language].val = var_n_in_language; /* _n_in_language on */ var = NULL; if (var_n_in_language == NULL) { @@ -1866,28 +6235,55 @@ var1 = 0; /* is null */ } else { var1 = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel#Object#!= (var_n_in_language,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_n_in_language->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_in_language, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} if (var1){ -((void (*)(val*, val*))(var_n_in_language->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_in_language, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_in_language,self) on */ +var_n_in_language->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} } else { } -if (var_n_extern_code_segment == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10868); +if (unlikely(var_n_extern_code_segment == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6822); show_backtrace(1); } self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment].val = var_n_extern_code_segment; /* _n_extern_code_segment on */ if (var_n_extern_code_segment == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10869); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6823); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_extern_code_segment->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_extern_code_segment, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_extern_code_segment,self) on */ +if (unlikely(var_n_extern_code_segment == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_extern_code_segment->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL8:(void)0; +} } RET_LABEL:; } /* method parser_prod#AExternCodeBlock#init_aexterncodeblock for (self: Object, nullable AInLanguage, nullable TExternCodeSegment) */ void VIRTUAL_parser_prod__AExternCodeBlock__init_aexterncodeblock(val* self, val* p0, val* p1) { -parser_prod__AExternCodeBlock__init_aexterncodeblock(self, p0, p1); +parser_prod__AExternCodeBlock__init_aexterncodeblock(self, p0, p1); /* Direct call parser_prod#AExternCodeBlock#init_aexterncodeblock on */ RET_LABEL:; } /* method parser_prod#AExternCodeBlock#replace_child for (self: AExternCodeBlock, ANode, nullable ANode) */ @@ -1896,92 +6292,115 @@ val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : nullable AInLanguage */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; -val* var5 /* : null */; -val* var6 /* : TExternCodeSegment */; -short int var7 /* : Bool */; -val* var8 /* : null */; +const char* var_class_name; +val* var8 /* : TExternCodeSegment */; short int var9 /* : Bool */; short int var10 /* : Bool */; -int cltype11; -int idtype12; +short int var12 /* : Bool */; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; var_old_child = p0; var_new_child = p1; var = self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_in_language].val; /* _n_in_language on */ if (var == NULL) { var1 = 0; /* cannot be null */ } else { -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; } if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ +/* isa nullable AInLanguage */ +cltype = type_nullable_parser_nodes__AInLanguage.color; +idtype = type_nullable_parser_nodes__AInLanguage.id; +if(var_new_child == NULL) { +var7 = 1; } else { -var3 = 1; /* arg is null and recv is not */ -} -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AInLanguage */ -cltype = type_parser_nodes__AInLanguage.color; -idtype = type_parser_nodes__AInLanguage.id; if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var7 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; +} } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10877); +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AInLanguage", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6829); show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_in_language].val = var_new_child; /* _n_in_language on */ -} else { -var5 = NULL; -self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_in_language].val = var5; /* _n_in_language on */ +{ +parser_prod__AExternCodeBlock__n_in_language_61d(self, var_new_child); /* Direct call parser_prod#AExternCodeBlock#n_in_language= on */ } goto RET_LABEL; } else { } -var6 = self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment].val; /* _n_extern_code_segment on */ -if (var6 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_extern_code_segment"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10884); +var8 = self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment].val; /* _n_extern_code_segment on */ +if (unlikely(var8 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_segment"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6832); show_backtrace(1); } -var7 = ((short int (*)(val*, val*))(var6->class->vft[COLOR_kernel__Object___61d_61d]))(var6, var_old_child) /* == on */; -if (var7){ -var8 = NULL; -if (var_new_child == NULL) { -var9 = 0; /* is null */ -} else { -var9 = 1; /* arg is null and recv is not */ +{ +{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; +} +} +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; +} +var9 = var10; } if (var9){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TExternCodeSegment */ -cltype11 = type_parser_nodes__TExternCodeSegment.color; -idtype12 = type_parser_nodes__TExternCodeSegment.id; -if(cltype11 >= var_new_child->type->table_size) { -var10 = 0; +/* isa TExternCodeSegment */ +cltype16 = type_parser_nodes__TExternCodeSegment.color; +idtype17 = type_parser_nodes__TExternCodeSegment.id; +if(var_new_child == NULL) { +var15 = 0; +} else { +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; } else { -var10 = var_new_child->type->type_table[cltype11] == idtype12; +var15 = var_new_child->type->type_table[cltype16] == idtype17; } -if (!var10) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10887); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment].val = var_new_child; /* _n_extern_code_segment on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10890); +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TExternCodeSegment", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6833); show_backtrace(1); } +{ +parser_prod__AExternCodeBlock__n_extern_code_segment_61d(self, var_new_child); /* Direct call parser_prod#AExternCodeBlock#n_extern_code_segment= on */ +} goto RET_LABEL; } else { } @@ -1989,7 +6408,7 @@ RET_LABEL:; } /* method parser_prod#AExternCodeBlock#replace_child for (self: Object, ANode, nullable ANode) */ void VIRTUAL_parser_prod__AExternCodeBlock__replace_child(val* self, val* p0, val* p1) { -parser_prod__AExternCodeBlock__replace_child(self, p0, p1); +parser_prod__AExternCodeBlock__replace_child(self, p0, p1); /* Direct call parser_prod#AExternCodeBlock#replace_child on */ RET_LABEL:; } /* method parser_prod#AExternCodeBlock#n_in_language= for (self: AExternCodeBlock, nullable AInLanguage) */ @@ -1997,6 +6416,11 @@ void parser_prod__AExternCodeBlock__n_in_language_61d(val* self, val* p0) { val* var_node /* var node: nullable AInLanguage */; val* var /* : null */; short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; var_node = p0; self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_in_language].val = var_node; /* _n_in_language on */ var = NULL; @@ -2005,15 +6429,34 @@ var1 = 0; /* is null */ } else { var1 = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} if (var1){ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} } else { } RET_LABEL:; } /* method parser_prod#AExternCodeBlock#n_in_language= for (self: Object, nullable AInLanguage) */ void VIRTUAL_parser_prod__AExternCodeBlock__n_in_language_61d(val* self, val* p0) { -parser_prod__AExternCodeBlock__n_in_language_61d(self, p0); +parser_prod__AExternCodeBlock__n_in_language_61d(self, p0); /* Direct call parser_prod#AExternCodeBlock#n_in_language= on */ RET_LABEL:; } /* method parser_prod#AExternCodeBlock#n_extern_code_segment= for (self: AExternCodeBlock, TExternCodeSegment) */ @@ -2021,268 +6464,191 @@ void parser_prod__AExternCodeBlock__n_extern_code_segment_61d(val* self, val* p0 val* var_node /* var node: TExternCodeSegment */; var_node = p0; self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment].val = var_node; /* _n_extern_code_segment on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } /* method parser_prod#AExternCodeBlock#n_extern_code_segment= for (self: Object, TExternCodeSegment) */ void VIRTUAL_parser_prod__AExternCodeBlock__n_extern_code_segment_61d(val* self, val* p0) { -parser_prod__AExternCodeBlock__n_extern_code_segment_61d(self, p0); +parser_prod__AExternCodeBlock__n_extern_code_segment_61d(self, p0); /* Direct call parser_prod#AExternCodeBlock#n_extern_code_segment= on */ RET_LABEL:; } /* method parser_prod#AExternCodeBlock#visit_all for (self: AExternCodeBlock, Visitor) */ void parser_prod__AExternCodeBlock__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : nullable AInLanguage */; -val* var1 /* : null */; -short int var2 /* : Bool */; -val* var3 /* : nullable AInLanguage */; -val* var4 /* : TExternCodeSegment */; +val* var1 /* : TExternCodeSegment */; var_v = p0; var = self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_in_language].val; /* _n_in_language on */ -var1 = NULL; -if (var == NULL) { -var2 = 0; /* is null */ -} else { -var2 = 1; /* arg is null and recv is not */ +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ } -if (var2){ -var3 = self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_in_language].val; /* _n_in_language on */ -if (var3 == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10913); +var1 = self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment].val; /* _n_extern_code_segment on */ +if (unlikely(var1 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_extern_code_segment"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6853); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var3) /* enter_visit on */; -} else { -} -var4 = self->attrs[COLOR_parser_nodes__AExternCodeBlock___n_extern_code_segment].val; /* _n_extern_code_segment on */ -if (var4 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_extern_code_segment"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10915); -show_backtrace(1); +{ +parser_nodes__Visitor__enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var4) /* enter_visit on */; RET_LABEL:; } /* method parser_prod#AExternCodeBlock#visit_all for (self: Object, Visitor) */ void VIRTUAL_parser_prod__AExternCodeBlock__visit_all(val* self, val* p0) { -parser_prod__AExternCodeBlock__visit_all(self, p0); -RET_LABEL:; -} -/* method parser_prod#AQualified#empty_init for (self: AQualified) */ -void parser_prod__AQualified__empty_init(val* self) { -RET_LABEL:; -} -/* method parser_prod#AQualified#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AQualified__empty_init(val* self) { -parser_prod__AQualified__empty_init(self); +parser_prod__AExternCodeBlock__visit_all(self, p0); /* Direct call parser_prod#AExternCodeBlock#visit_all on */ RET_LABEL:; } /* method parser_prod#AQualified#init_aqualified for (self: AQualified, Collection[Object], nullable TClassid) */ void parser_prod__AQualified__init_aqualified(val* self, val* p0, val* p1) { val* var_n_id /* var n_id: Collection[Object] */; val* var_n_classid /* var n_classid: nullable TClassid */; -val* var /* : Iterator[nullable Object] */; -short int var1 /* : Bool */; -val* var2 /* : nullable Object */; -val* var_n /* var n: Object */; -short int var3 /* : Bool */; -int cltype; -int idtype; -val* var4 /* : ANodes[TId] */; -val* var5 /* : null */; -short int var6 /* : Bool */; +val* var /* : ANodes[TId] */; +val* var2 /* : ANodes[TId] */; +val* var3 /* : null */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var7 /* : Bool */; +short int var8 /* : Bool */; +short int var9 /* : Bool */; var_n_id = p0; var_n_classid = p1; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AQualified__empty_init]))(self) /* empty_init on */; -var = ((val* (*)(val*))(var_n_id->class->vft[COLOR_abstract_collection__Collection__iterator]))(var_n_id) /* iterator on */; -for(;;) { -var1 = ((short int (*)(val*))(var->class->vft[COLOR_abstract_collection__Iterator__is_ok]))(var) /* is_ok on */; -if(!var1) break; -var2 = ((val* (*)(val*))(var->class->vft[COLOR_abstract_collection__Iterator__item]))(var) /* item on */; -var_n = var2; -/* isa TId */ -cltype = type_parser_nodes__TId.color; -idtype = type_parser_nodes__TId.id; -if(cltype >= var_n->type->table_size) { -var3 = 0; -} else { -var3 = var_n->type->type_table[cltype] == idtype; -} -if (!var3) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10928); +{ +{ /* Inline parser_nodes#AQualified#n_id (self) on */ +var2 = self->attrs[COLOR_parser_nodes__AQualified___n_id].val; /* _n_id on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2011); show_backtrace(1); } -var4 = self->attrs[COLOR_parser_nodes__AQualified___n_id].val; /* _n_id on */ -if (var4 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10929); -show_backtrace(1); +var = var2; +RET_LABEL1:(void)0; +} } -((void (*)(val*, val*))(var4->class->vft[COLOR_abstract_collection__SimpleCollection__add]))(var4, var_n) /* add on */; -((void (*)(val*, val*))(var_n->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n, self) /* parent= on */; -CONTINUE_label: (void)0; -((void (*)(val*))(var->class->vft[COLOR_abstract_collection__Iterator__next]))(var) /* next on */; +{ +parser_nodes__ANodes__unsafe_add_all(var, var_n_id); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ } -BREAK_label: (void)0; self->attrs[COLOR_parser_nodes__AQualified___n_classid].val = var_n_classid; /* _n_classid on */ -var5 = NULL; +var3 = NULL; if (var_n_classid == NULL) { -var6 = 0; /* is null */ +var4 = 0; /* is null */ } else { -var6 = 1; /* arg is null and recv is not */ +var4 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel#Object#!= (var_n_classid,var3) on */ +var_other = var3; +{ +var8 = ((short int (*)(val*, val*))(var_n_classid->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_classid, var_other) /* == on */; +var7 = var8; +} +var9 = !var7; +var5 = var9; +goto RET_LABEL6; +RET_LABEL6:(void)0; +} +var4 = var5; +} +if (var4){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_classid,self) on */ +var_n_classid->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL10:(void)0; +} } -if (var6){ -((void (*)(val*, val*))(var_n_classid->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_classid, self) /* parent= on */; } else { } RET_LABEL:; } /* method parser_prod#AQualified#init_aqualified for (self: Object, Collection[Object], nullable TClassid) */ void VIRTUAL_parser_prod__AQualified__init_aqualified(val* self, val* p0, val* p1) { -parser_prod__AQualified__init_aqualified(self, p0, p1); +parser_prod__AQualified__init_aqualified(self, p0, p1); /* Direct call parser_prod#AQualified#init_aqualified on */ RET_LABEL:; } /* method parser_prod#AQualified#replace_child for (self: AQualified, ANode, nullable ANode) */ void parser_prod__AQualified__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : Range[Int] */; -long var1 /* : Int */; +val* var /* : ANodes[TId] */; val* var2 /* : ANodes[TId] */; -long var3 /* : Int */; -val* var4 /* : Discrete */; -val* var5 /* : Discrete */; -val* var6 /* : Iterator[nullable Object] */; -short int var7 /* : Bool */; -val* var8 /* : nullable Object */; -long var_i /* var i: Int */; -long var9 /* : Int */; -val* var10 /* : ANodes[TId] */; -val* var11 /* : nullable Object */; -short int var12 /* : Bool */; -val* var13 /* : null */; -short int var14 /* : Bool */; -short int var15 /* : Bool */; +short int var3 /* : Bool */; +val* var4 /* : nullable TClassid */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var8 /* : Bool */; +short int var10 /* : Bool */; +short int var11 /* : Bool */; int cltype; int idtype; -val* var16 /* : ANodes[TId] */; -val* var17 /* : ANodes[TId] */; -val* var18 /* : nullable TClassid */; -short int var19 /* : Bool */; -val* var20 /* : null */; -short int var21 /* : Bool */; -short int var22 /* : Bool */; -int cltype23; -int idtype24; -val* var25 /* : null */; +const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = NEW_range__Range(&type_range__Rangekernel__Int); -var1 = 0; +{ +{ /* Inline parser_nodes#AQualified#n_id (self) on */ var2 = self->attrs[COLOR_parser_nodes__AQualified___n_id].val; /* _n_id on */ -if (var2 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10940); -show_backtrace(1); -} -var3 = ((long (*)(val*))(var2->class->vft[COLOR_abstract_collection__Collection__length]))(var2) /* length on */; -var4 = BOX_kernel__Int(var1); /* autobox from Int to Discrete */ -var5 = BOX_kernel__Int(var3); /* autobox from Int to Discrete */ -((void (*)(val*, val*, val*))(var->class->vft[COLOR_range__Range__without_last]))(var, var4, var5) /* without_last on */; -var6 = ((val* (*)(val*))(var->class->vft[COLOR_abstract_collection__Collection__iterator]))(var) /* iterator on */; -for(;;) { -var7 = ((short int (*)(val*))(var6->class->vft[COLOR_abstract_collection__Iterator__is_ok]))(var6) /* is_ok on */; -if(!var7) break; -var8 = ((val* (*)(val*))(var6->class->vft[COLOR_abstract_collection__Iterator__item]))(var6) /* item on */; -var9 = ((struct instance_kernel__Int*)var8)->value; /* autounbox from nullable Object to Int */; -var_i = var9; -var10 = self->attrs[COLOR_parser_nodes__AQualified___n_id].val; /* _n_id on */ -if (var10 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10941); -show_backtrace(1); -} -var11 = ((val* (*)(val*, long))(var10->class->vft[COLOR_abstract_collection__SequenceRead___91d_93d]))(var10, var_i) /* [] on */; -var12 = ((short int (*)(val*, val*))(var11->class->vft[COLOR_kernel__Object___61d_61d]))(var11, var_old_child) /* == on */; -if (var12){ -var13 = NULL; -if (var_new_child == NULL) { -var14 = 0; /* is null */ -} else { -var14 = 1; /* arg is null and recv is not */ -} -if (var14){ -/* isa TId */ -cltype = type_parser_nodes__TId.color; -idtype = type_parser_nodes__TId.id; -if(cltype >= var_new_child->type->table_size) { -var15 = 0; -} else { -var15 = var_new_child->type->type_table[cltype] == idtype; -} -if (!var15) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10943); +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2011); show_backtrace(1); } -var16 = self->attrs[COLOR_parser_nodes__AQualified___n_id].val; /* _n_id on */ -if (var16 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10944); -show_backtrace(1); +var = var2; +RET_LABEL1:(void)0; } -((void (*)(val*, long, val*))(var16->class->vft[COLOR_abstract_collection__Sequence___91d_93d_61d]))(var16, var_i, var_new_child) /* []= on */; -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -} else { -var17 = self->attrs[COLOR_parser_nodes__AQualified___n_id].val; /* _n_id on */ -if (var17 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10947); -show_backtrace(1); } -((void (*)(val*, long))(var17->class->vft[COLOR_abstract_collection__Sequence__remove_at]))(var17, var_i) /* remove_at on */; +{ +var3 = parser_nodes__ANodes__replace_child(var, var_old_child, var_new_child); } +if (var3){ goto RET_LABEL; } else { } -CONTINUE_label: (void)0; -((void (*)(val*))(var6->class->vft[COLOR_abstract_collection__Iterator__next]))(var6) /* next on */; -} -BREAK_label: (void)0; -var18 = self->attrs[COLOR_parser_nodes__AQualified___n_classid].val; /* _n_classid on */ -if (var18 == NULL) { -var19 = 0; /* cannot be null */ +var4 = self->attrs[COLOR_parser_nodes__AQualified___n_classid].val; /* _n_classid on */ +if (var4 == NULL) { +var5 = 0; /* cannot be null */ } else { -var19 = ((short int (*)(val*, val*))(var18->class->vft[COLOR_kernel__Object___61d_61d]))(var18, var_old_child) /* == on */; +{ /* Inline kernel#Object#== (var4,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var4,var_other) on */ +var10 = var4 == var_other; +var8 = var10; +goto RET_LABEL9; +RET_LABEL9:(void)0; } -if (var19){ -var20 = NULL; -if (var_new_child == NULL) { -var21 = 0; /* is null */ -} else { -var21 = 1; /* arg is null and recv is not */ } -if (var21){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TClassid */ -cltype23 = type_parser_nodes__TClassid.color; -idtype24 = type_parser_nodes__TClassid.id; -if(cltype23 >= var_new_child->type->table_size) { -var22 = 0; +var6 = var8; +goto RET_LABEL7; +RET_LABEL7:(void)0; +} +var5 = var6; +} +if (var5){ +/* isa nullable TClassid */ +cltype = type_nullable_parser_nodes__TClassid.color; +idtype = type_nullable_parser_nodes__TClassid.id; +if(var_new_child == NULL) { +var11 = 1; +} else { +if(cltype >= var_new_child->type->table_size) { +var11 = 0; } else { -var22 = var_new_child->type->type_table[cltype23] == idtype24; +var11 = var_new_child->type->type_table[cltype] == idtype; +} } -if (!var22) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10955); +if (unlikely(!var11)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TClassid", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6871); show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AQualified___n_classid].val = var_new_child; /* _n_classid on */ -} else { -var25 = NULL; -self->attrs[COLOR_parser_nodes__AQualified___n_classid].val = var25; /* _n_classid on */ +{ +parser_prod__AQualified__n_classid_61d(self, var_new_child); /* Direct call parser_prod#AQualified#n_classid= on */ } goto RET_LABEL; } else { @@ -2291,7 +6657,7 @@ RET_LABEL:; } /* method parser_prod#AQualified#replace_child for (self: Object, ANode, nullable ANode) */ void VIRTUAL_parser_prod__AQualified__replace_child(val* self, val* p0, val* p1) { -parser_prod__AQualified__replace_child(self, p0, p1); +parser_prod__AQualified__replace_child(self, p0, p1); /* Direct call parser_prod#AQualified#replace_child on */ RET_LABEL:; } /* method parser_prod#AQualified#n_classid= for (self: AQualified, nullable TClassid) */ @@ -2299,6 +6665,11 @@ void parser_prod__AQualified__n_classid_61d(val* self, val* p0) { val* var_node /* var node: nullable TClassid */; val* var /* : null */; short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; var_node = p0; self->attrs[COLOR_parser_nodes__AQualified___n_classid].val = var_node; /* _n_classid on */ var = NULL; @@ -2307,277 +6678,158 @@ var1 = 0; /* is null */ } else { var1 = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} if (var1){ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} } else { } RET_LABEL:; } /* method parser_prod#AQualified#n_classid= for (self: Object, nullable TClassid) */ void VIRTUAL_parser_prod__AQualified__n_classid_61d(val* self, val* p0) { -parser_prod__AQualified__n_classid_61d(self, p0); +parser_prod__AQualified__n_classid_61d(self, p0); /* Direct call parser_prod#AQualified#n_classid= on */ RET_LABEL:; } /* method parser_prod#AQualified#visit_all for (self: AQualified, Visitor) */ void parser_prod__AQualified__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : ANodes[TId] */; -val* var1 /* : Iterator[nullable Object] */; -short int var2 /* : Bool */; -val* var3 /* : nullable Object */; -val* var_n /* var n: TId */; -val* var4 /* : nullable TClassid */; -val* var5 /* : null */; -short int var6 /* : Bool */; -val* var7 /* : nullable TClassid */; +val* var2 /* : ANodes[TId] */; +val* var3 /* : nullable TClassid */; var_v = p0; -var = self->attrs[COLOR_parser_nodes__AQualified___n_id].val; /* _n_id on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10975); +{ +{ /* Inline parser_nodes#AQualified#n_id (self) on */ +var2 = self->attrs[COLOR_parser_nodes__AQualified___n_id].val; /* _n_id on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2011); show_backtrace(1); } -var1 = ((val* (*)(val*))(var->class->vft[COLOR_abstract_collection__Collection__iterator]))(var) /* iterator on */; -for(;;) { -var2 = ((short int (*)(val*))(var1->class->vft[COLOR_abstract_collection__Iterator__is_ok]))(var1) /* is_ok on */; -if(!var2) break; -var3 = ((val* (*)(val*))(var1->class->vft[COLOR_abstract_collection__Iterator__item]))(var1) /* item on */; -var_n = var3; -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var_n) /* enter_visit on */; -CONTINUE_label: (void)0; -((void (*)(val*))(var1->class->vft[COLOR_abstract_collection__Iterator__next]))(var1) /* next on */; +var = var2; +RET_LABEL1:(void)0; } -BREAK_label: (void)0; -var4 = self->attrs[COLOR_parser_nodes__AQualified___n_classid].val; /* _n_classid on */ -var5 = NULL; -if (var4 == NULL) { -var6 = 0; /* is null */ -} else { -var6 = 1; /* arg is null and recv is not */ } -if (var6){ -var7 = self->attrs[COLOR_parser_nodes__AQualified___n_classid].val; /* _n_classid on */ -if (var7 == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10979); -show_backtrace(1); +{ +parser_nodes__ANodes__visit_all(var, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var7) /* enter_visit on */; -} else { +var3 = self->attrs[COLOR_parser_nodes__AQualified___n_classid].val; /* _n_classid on */ +{ +parser_nodes__Visitor__enter_visit(var_v, var3); /* Direct call parser_nodes#Visitor#enter_visit on */ } RET_LABEL:; } /* method parser_prod#AQualified#visit_all for (self: Object, Visitor) */ void VIRTUAL_parser_prod__AQualified__visit_all(val* self, val* p0) { -parser_prod__AQualified__visit_all(self, p0); -RET_LABEL:; -} -/* method parser_prod#ADoc#empty_init for (self: ADoc) */ -void parser_prod__ADoc__empty_init(val* self) { -RET_LABEL:; -} -/* method parser_prod#ADoc#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__ADoc__empty_init(val* self) { -parser_prod__ADoc__empty_init(self); +parser_prod__AQualified__visit_all(self, p0); /* Direct call parser_prod#AQualified#visit_all on */ RET_LABEL:; } /* method parser_prod#ADoc#init_adoc for (self: ADoc, Collection[Object]) */ void parser_prod__ADoc__init_adoc(val* self, val* p0) { val* var_n_comment /* var n_comment: Collection[Object] */; -val* var /* : Iterator[nullable Object] */; -short int var1 /* : Bool */; -val* var2 /* : nullable Object */; -val* var_n /* var n: Object */; -short int var3 /* : Bool */; -int cltype; -int idtype; -val* var4 /* : ANodes[TComment] */; +val* var /* : ANodes[TComment] */; +val* var2 /* : ANodes[TComment] */; var_n_comment = p0; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__ADoc__empty_init]))(self) /* empty_init on */; -var = ((val* (*)(val*))(var_n_comment->class->vft[COLOR_abstract_collection__Collection__iterator]))(var_n_comment) /* iterator on */; -for(;;) { -var1 = ((short int (*)(val*))(var->class->vft[COLOR_abstract_collection__Iterator__is_ok]))(var) /* is_ok on */; -if(!var1) break; -var2 = ((val* (*)(val*))(var->class->vft[COLOR_abstract_collection__Iterator__item]))(var) /* item on */; -var_n = var2; -/* isa TComment */ -cltype = type_parser_nodes__TComment.color; -idtype = type_parser_nodes__TComment.id; -if(cltype >= var_n->type->table_size) { -var3 = 0; -} else { -var3 = var_n->type->type_table[cltype] == idtype; -} -if (!var3) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10992); -show_backtrace(1); -} -var4 = self->attrs[COLOR_parser_nodes__ADoc___n_comment].val; /* _n_comment on */ -if (var4 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_comment"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 10993); +{ +{ /* Inline parser_nodes#ADoc#n_comment (self) on */ +var2 = self->attrs[COLOR_parser_nodes__ADoc___n_comment].val; /* _n_comment on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_comment"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2019); show_backtrace(1); } -((void (*)(val*, val*))(var4->class->vft[COLOR_abstract_collection__SimpleCollection__add]))(var4, var_n) /* add on */; -((void (*)(val*, val*))(var_n->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n, self) /* parent= on */; -CONTINUE_label: (void)0; -((void (*)(val*))(var->class->vft[COLOR_abstract_collection__Iterator__next]))(var) /* next on */; +var = var2; +RET_LABEL1:(void)0; +} +} +{ +parser_nodes__ANodes__unsafe_add_all(var, var_n_comment); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ } -BREAK_label: (void)0; RET_LABEL:; } /* method parser_prod#ADoc#init_adoc for (self: Object, Collection[Object]) */ void VIRTUAL_parser_prod__ADoc__init_adoc(val* self, val* p0) { -parser_prod__ADoc__init_adoc(self, p0); +parser_prod__ADoc__init_adoc(self, p0); /* Direct call parser_prod#ADoc#init_adoc on */ RET_LABEL:; } /* method parser_prod#ADoc#replace_child for (self: ADoc, ANode, nullable ANode) */ void parser_prod__ADoc__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : Range[Int] */; -long var1 /* : Int */; +val* var /* : ANodes[TComment] */; val* var2 /* : ANodes[TComment] */; -long var3 /* : Int */; -val* var4 /* : Discrete */; -val* var5 /* : Discrete */; -val* var6 /* : Iterator[nullable Object] */; -short int var7 /* : Bool */; -val* var8 /* : nullable Object */; -long var_i /* var i: Int */; -long var9 /* : Int */; -val* var10 /* : ANodes[TComment] */; -val* var11 /* : nullable Object */; -short int var12 /* : Bool */; -val* var13 /* : null */; -short int var14 /* : Bool */; -short int var15 /* : Bool */; -int cltype; -int idtype; -val* var16 /* : ANodes[TComment] */; -val* var17 /* : ANodes[TComment] */; +short int var3 /* : Bool */; var_old_child = p0; var_new_child = p1; -var = NEW_range__Range(&type_range__Rangekernel__Int); -var1 = 0; +{ +{ /* Inline parser_nodes#ADoc#n_comment (self) on */ var2 = self->attrs[COLOR_parser_nodes__ADoc___n_comment].val; /* _n_comment on */ -if (var2 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_comment"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11000); -show_backtrace(1); -} -var3 = ((long (*)(val*))(var2->class->vft[COLOR_abstract_collection__Collection__length]))(var2) /* length on */; -var4 = BOX_kernel__Int(var1); /* autobox from Int to Discrete */ -var5 = BOX_kernel__Int(var3); /* autobox from Int to Discrete */ -((void (*)(val*, val*, val*))(var->class->vft[COLOR_range__Range__without_last]))(var, var4, var5) /* without_last on */; -var6 = ((val* (*)(val*))(var->class->vft[COLOR_abstract_collection__Collection__iterator]))(var) /* iterator on */; -for(;;) { -var7 = ((short int (*)(val*))(var6->class->vft[COLOR_abstract_collection__Iterator__is_ok]))(var6) /* is_ok on */; -if(!var7) break; -var8 = ((val* (*)(val*))(var6->class->vft[COLOR_abstract_collection__Iterator__item]))(var6) /* item on */; -var9 = ((struct instance_kernel__Int*)var8)->value; /* autounbox from nullable Object to Int */; -var_i = var9; -var10 = self->attrs[COLOR_parser_nodes__ADoc___n_comment].val; /* _n_comment on */ -if (var10 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_comment"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11001); -show_backtrace(1); -} -var11 = ((val* (*)(val*, long))(var10->class->vft[COLOR_abstract_collection__SequenceRead___91d_93d]))(var10, var_i) /* [] on */; -var12 = ((short int (*)(val*, val*))(var11->class->vft[COLOR_kernel__Object___61d_61d]))(var11, var_old_child) /* == on */; -if (var12){ -var13 = NULL; -if (var_new_child == NULL) { -var14 = 0; /* is null */ -} else { -var14 = 1; /* arg is null and recv is not */ -} -if (var14){ -/* isa TComment */ -cltype = type_parser_nodes__TComment.color; -idtype = type_parser_nodes__TComment.id; -if(cltype >= var_new_child->type->table_size) { -var15 = 0; -} else { -var15 = var_new_child->type->type_table[cltype] == idtype; -} -if (!var15) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11003); +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_comment"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2019); show_backtrace(1); } -var16 = self->attrs[COLOR_parser_nodes__ADoc___n_comment].val; /* _n_comment on */ -if (var16 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_comment"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11004); -show_backtrace(1); +var = var2; +RET_LABEL1:(void)0; } -((void (*)(val*, long, val*))(var16->class->vft[COLOR_abstract_collection__Sequence___91d_93d_61d]))(var16, var_i, var_new_child) /* []= on */; -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -} else { -var17 = self->attrs[COLOR_parser_nodes__ADoc___n_comment].val; /* _n_comment on */ -if (var17 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_comment"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11007); -show_backtrace(1); } -((void (*)(val*, long))(var17->class->vft[COLOR_abstract_collection__Sequence__remove_at]))(var17, var_i) /* remove_at on */; +{ +var3 = parser_nodes__ANodes__replace_child(var, var_old_child, var_new_child); } +if (var3){ goto RET_LABEL; } else { } -CONTINUE_label: (void)0; -((void (*)(val*))(var6->class->vft[COLOR_abstract_collection__Iterator__next]))(var6) /* next on */; -} -BREAK_label: (void)0; RET_LABEL:; } /* method parser_prod#ADoc#replace_child for (self: Object, ANode, nullable ANode) */ void VIRTUAL_parser_prod__ADoc__replace_child(val* self, val* p0, val* p1) { -parser_prod__ADoc__replace_child(self, p0, p1); +parser_prod__ADoc__replace_child(self, p0, p1); /* Direct call parser_prod#ADoc#replace_child on */ RET_LABEL:; } /* method parser_prod#ADoc#visit_all for (self: ADoc, Visitor) */ void parser_prod__ADoc__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : ANodes[TComment] */; -val* var1 /* : Iterator[nullable Object] */; -short int var2 /* : Bool */; -val* var3 /* : nullable Object */; -val* var_n /* var n: TComment */; +val* var2 /* : ANodes[TComment] */; var_v = p0; -var = self->attrs[COLOR_parser_nodes__ADoc___n_comment].val; /* _n_comment on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_comment"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11018); +{ +{ /* Inline parser_nodes#ADoc#n_comment (self) on */ +var2 = self->attrs[COLOR_parser_nodes__ADoc___n_comment].val; /* _n_comment on */ +if (unlikely(var2 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_comment"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2019); show_backtrace(1); } -var1 = ((val* (*)(val*))(var->class->vft[COLOR_abstract_collection__Collection__iterator]))(var) /* iterator on */; -for(;;) { -var2 = ((short int (*)(val*))(var1->class->vft[COLOR_abstract_collection__Iterator__is_ok]))(var1) /* is_ok on */; -if(!var2) break; -var3 = ((val* (*)(val*))(var1->class->vft[COLOR_abstract_collection__Iterator__item]))(var1) /* item on */; -var_n = var3; -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var_n) /* enter_visit on */; -CONTINUE_label: (void)0; -((void (*)(val*))(var1->class->vft[COLOR_abstract_collection__Iterator__next]))(var1) /* next on */; +var = var2; +RET_LABEL1:(void)0; } -BREAK_label: (void)0; -RET_LABEL:; } -/* method parser_prod#ADoc#visit_all for (self: Object, Visitor) */ -void VIRTUAL_parser_prod__ADoc__visit_all(val* self, val* p0) { -parser_prod__ADoc__visit_all(self, p0); -RET_LABEL:; +{ +parser_nodes__ANodes__visit_all(var, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ } -/* method parser_prod#AAnnotations#empty_init for (self: AAnnotations) */ -void parser_prod__AAnnotations__empty_init(val* self) { RET_LABEL:; } -/* method parser_prod#AAnnotations#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AAnnotations__empty_init(val* self) { -parser_prod__AAnnotations__empty_init(self); +/* method parser_prod#ADoc#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__ADoc__visit_all(val* self, val* p0) { +parser_prod__ADoc__visit_all(self, p0); /* Direct call parser_prod#ADoc#visit_all on */ RET_LABEL:; } /* method parser_prod#AAnnotations#init_aannotations for (self: AAnnotations, nullable TAt, nullable TOpar, Collection[Object], nullable TCpar) */ @@ -2588,23 +6840,29 @@ val* var_n_items /* var n_items: Collection[Object] */; val* var_n_cpar /* var n_cpar: nullable TCpar */; val* var /* : null */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; -val* var4 /* : Iterator[nullable Object] */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; short int var5 /* : Bool */; -val* var6 /* : nullable Object */; -val* var_n /* var n: Object */; -short int var7 /* : Bool */; -int cltype; -int idtype; -val* var8 /* : ANodes[AAnnotation] */; -val* var9 /* : null */; +short int var6 /* : Bool */; +val* var8 /* : null */; +short int var9 /* : Bool */; short int var10 /* : Bool */; +short int var12 /* : Bool */; +short int var13 /* : Bool */; +short int var14 /* : Bool */; +val* var16 /* : ANodes[AAnnotation] */; +val* var18 /* : ANodes[AAnnotation] */; +val* var19 /* : null */; +short int var20 /* : Bool */; +short int var21 /* : Bool */; +short int var23 /* : Bool */; +short int var24 /* : Bool */; +short int var25 /* : Bool */; var_n_at = p0; var_n_opar = p1; var_n_items = p2; var_n_cpar = p3; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AAnnotations__empty_init]))(self) /* empty_init on */; self->attrs[COLOR_parser_nodes__AAnnotations___n_at].val = var_n_at; /* _n_at on */ var = NULL; if (var_n_at == NULL) { @@ -2612,68 +6870,109 @@ var1 = 0; /* is null */ } else { var1 = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel#Object#!= (var_n_at,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_n_at->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_at, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} if (var1){ -((void (*)(val*, val*))(var_n_at->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_at, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_at,self) on */ +var_n_at->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} } else { } self->attrs[COLOR_parser_nodes__AAnnotations___n_opar].val = var_n_opar; /* _n_opar on */ -var2 = NULL; +var8 = NULL; if (var_n_opar == NULL) { -var3 = 0; /* is null */ +var9 = 0; /* is null */ } else { -var3 = 1; /* arg is null and recv is not */ +var9 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel#Object#!= (var_n_opar,var8) on */ +var_other = var8; +{ +var13 = ((short int (*)(val*, val*))(var_n_opar->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_opar, var_other) /* == on */; +var12 = var13; +} +var14 = !var12; +var10 = var14; +goto RET_LABEL11; +RET_LABEL11:(void)0; +} +var9 = var10; +} +if (var9){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on */ +var_n_opar->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL15:(void)0; +} } -if (var3){ -((void (*)(val*, val*))(var_n_opar->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_opar, self) /* parent= on */; -} else { -} -var4 = ((val* (*)(val*))(var_n_items->class->vft[COLOR_abstract_collection__Collection__iterator]))(var_n_items) /* iterator on */; -for(;;) { -var5 = ((short int (*)(val*))(var4->class->vft[COLOR_abstract_collection__Iterator__is_ok]))(var4) /* is_ok on */; -if(!var5) break; -var6 = ((val* (*)(val*))(var4->class->vft[COLOR_abstract_collection__Iterator__item]))(var4) /* item on */; -var_n = var6; -/* isa AAnnotation */ -cltype = type_parser_nodes__AAnnotation.color; -idtype = type_parser_nodes__AAnnotation.id; -if(cltype >= var_n->type->table_size) { -var7 = 0; } else { -var7 = var_n->type->type_table[cltype] == idtype; } -if (!var7) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11043); +{ +{ /* Inline parser_nodes#AAnnotations#n_items (self) on */ +var18 = self->attrs[COLOR_parser_nodes__AAnnotations___n_items].val; /* _n_items on */ +if (unlikely(var18 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_items"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2027); show_backtrace(1); } -var8 = self->attrs[COLOR_parser_nodes__AAnnotations___n_items].val; /* _n_items on */ -if (var8 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_items"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11044); -show_backtrace(1); +var16 = var18; +RET_LABEL17:(void)0; +} } -((void (*)(val*, val*))(var8->class->vft[COLOR_abstract_collection__SimpleCollection__add]))(var8, var_n) /* add on */; -((void (*)(val*, val*))(var_n->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n, self) /* parent= on */; -CONTINUE_label: (void)0; -((void (*)(val*))(var4->class->vft[COLOR_abstract_collection__Iterator__next]))(var4) /* next on */; +{ +parser_nodes__ANodes__unsafe_add_all(var16, var_n_items); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ } -BREAK_label: (void)0; self->attrs[COLOR_parser_nodes__AAnnotations___n_cpar].val = var_n_cpar; /* _n_cpar on */ -var9 = NULL; +var19 = NULL; if (var_n_cpar == NULL) { -var10 = 0; /* is null */ +var20 = 0; /* is null */ } else { -var10 = 1; /* arg is null and recv is not */ +var20 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel#Object#!= (var_n_cpar,var19) on */ +var_other = var19; +{ +var24 = ((short int (*)(val*, val*))(var_n_cpar->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_cpar, var_other) /* == on */; +var23 = var24; +} +var25 = !var23; +var21 = var25; +goto RET_LABEL22; +RET_LABEL22:(void)0; +} +var20 = var21; +} +if (var20){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on */ +var_n_cpar->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL26:(void)0; +} } -if (var10){ -((void (*)(val*, val*))(var_n_cpar->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_cpar, self) /* parent= on */; } else { } RET_LABEL:; } /* method parser_prod#AAnnotations#init_aannotations for (self: Object, nullable TAt, nullable TOpar, Collection[Object], nullable TCpar) */ void VIRTUAL_parser_prod__AAnnotations__init_aannotations(val* self, val* p0, val* p1, val* p2, val* p3) { -parser_prod__AAnnotations__init_aannotations(self, p0, p1, p2, p3); +parser_prod__AAnnotations__init_aannotations(self, p0, p1, p2, p3); /* Direct call parser_prod#AAnnotations#init_aannotations on */ RET_LABEL:; } /* method parser_prod#AAnnotations#replace_child for (self: AAnnotations, ANode, nullable ANode) */ @@ -2682,227 +6981,187 @@ val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : nullable TAt */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; -val* var5 /* : null */; -val* var6 /* : nullable TOpar */; -short int var7 /* : Bool */; -val* var8 /* : null */; +const char* var_class_name; +val* var8 /* : nullable TOpar */; short int var9 /* : Bool */; short int var10 /* : Bool */; -int cltype11; -int idtype12; -val* var13 /* : null */; -val* var14 /* : Range[Int] */; -long var15 /* : Int */; -val* var16 /* : ANodes[AAnnotation] */; -long var17 /* : Int */; -val* var18 /* : Discrete */; -val* var19 /* : Discrete */; -val* var20 /* : Iterator[nullable Object] */; -short int var21 /* : Bool */; -val* var22 /* : nullable Object */; -long var_i /* var i: Int */; -long var23 /* : Int */; -val* var24 /* : ANodes[AAnnotation] */; -val* var25 /* : nullable Object */; -short int var26 /* : Bool */; -val* var27 /* : null */; -short int var28 /* : Bool */; +short int var12 /* : Bool */; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; +val* var19 /* : ANodes[AAnnotation] */; +val* var21 /* : ANodes[AAnnotation] */; +short int var22 /* : Bool */; +val* var23 /* : nullable TCpar */; +short int var24 /* : Bool */; +short int var25 /* : Bool */; +short int var27 /* : Bool */; short int var29 /* : Bool */; -int cltype30; -int idtype31; -val* var32 /* : ANodes[AAnnotation] */; -val* var33 /* : ANodes[AAnnotation] */; -val* var34 /* : nullable TCpar */; -short int var35 /* : Bool */; -val* var36 /* : null */; -short int var37 /* : Bool */; -short int var38 /* : Bool */; -int cltype39; -int idtype40; -val* var41 /* : null */; +short int var30 /* : Bool */; +int cltype31; +int idtype32; +const char* var_class_name33; var_old_child = p0; var_new_child = p1; var = self->attrs[COLOR_parser_nodes__AAnnotations___n_at].val; /* _n_at on */ if (var == NULL) { var1 = 0; /* cannot be null */ } else { -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; } if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ +/* isa nullable TAt */ +cltype = type_nullable_parser_nodes__TAt.color; +idtype = type_nullable_parser_nodes__TAt.id; +if(var_new_child == NULL) { +var7 = 1; } else { -var3 = 1; /* arg is null and recv is not */ -} -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TAt */ -cltype = type_parser_nodes__TAt.color; -idtype = type_parser_nodes__TAt.id; if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var7 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11058); +} +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TAt", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6929); show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AAnnotations___n_at].val = var_new_child; /* _n_at on */ -} else { -var5 = NULL; -self->attrs[COLOR_parser_nodes__AAnnotations___n_at].val = var5; /* _n_at on */ +{ +parser_prod__AAnnotations__n_at_61d(self, var_new_child); /* Direct call parser_prod#AAnnotations#n_at= on */ } goto RET_LABEL; } else { } -var6 = self->attrs[COLOR_parser_nodes__AAnnotations___n_opar].val; /* _n_opar on */ -if (var6 == NULL) { -var7 = 0; /* cannot be null */ -} else { -var7 = ((short int (*)(val*, val*))(var6->class->vft[COLOR_kernel__Object___61d_61d]))(var6, var_old_child) /* == on */; -} -if (var7){ -var8 = NULL; -if (var_new_child == NULL) { -var9 = 0; /* is null */ +var8 = self->attrs[COLOR_parser_nodes__AAnnotations___n_opar].val; /* _n_opar on */ +if (var8 == NULL) { +var9 = 0; /* cannot be null */ } else { -var9 = 1; /* arg is null and recv is not */ +{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; } -if (var9){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TOpar */ -cltype11 = type_parser_nodes__TOpar.color; -idtype12 = type_parser_nodes__TOpar.id; -if(cltype11 >= var_new_child->type->table_size) { -var10 = 0; -} else { -var10 = var_new_child->type->type_table[cltype11] == idtype12; } -if (!var10) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11068); -show_backtrace(1); +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; } -self->attrs[COLOR_parser_nodes__AAnnotations___n_opar].val = var_new_child; /* _n_opar on */ -} else { -var13 = NULL; -self->attrs[COLOR_parser_nodes__AAnnotations___n_opar].val = var13; /* _n_opar on */ +var9 = var10; } -goto RET_LABEL; +if (var9){ +/* isa nullable TOpar */ +cltype16 = type_nullable_parser_nodes__TOpar.color; +idtype17 = type_nullable_parser_nodes__TOpar.id; +if(var_new_child == NULL) { +var15 = 1; } else { -} -var14 = NEW_range__Range(&type_range__Rangekernel__Int); +if(cltype16 >= var_new_child->type->table_size) { var15 = 0; -var16 = self->attrs[COLOR_parser_nodes__AAnnotations___n_items].val; /* _n_items on */ -if (var16 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_items"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11075); -show_backtrace(1); -} -var17 = ((long (*)(val*))(var16->class->vft[COLOR_abstract_collection__Collection__length]))(var16) /* length on */; -var18 = BOX_kernel__Int(var15); /* autobox from Int to Discrete */ -var19 = BOX_kernel__Int(var17); /* autobox from Int to Discrete */ -((void (*)(val*, val*, val*))(var14->class->vft[COLOR_range__Range__without_last]))(var14, var18, var19) /* without_last on */; -var20 = ((val* (*)(val*))(var14->class->vft[COLOR_abstract_collection__Collection__iterator]))(var14) /* iterator on */; -for(;;) { -var21 = ((short int (*)(val*))(var20->class->vft[COLOR_abstract_collection__Iterator__is_ok]))(var20) /* is_ok on */; -if(!var21) break; -var22 = ((val* (*)(val*))(var20->class->vft[COLOR_abstract_collection__Iterator__item]))(var20) /* item on */; -var23 = ((struct instance_kernel__Int*)var22)->value; /* autounbox from nullable Object to Int */; -var_i = var23; -var24 = self->attrs[COLOR_parser_nodes__AAnnotations___n_items].val; /* _n_items on */ -if (var24 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_items"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11076); -show_backtrace(1); -} -var25 = ((val* (*)(val*, long))(var24->class->vft[COLOR_abstract_collection__SequenceRead___91d_93d]))(var24, var_i) /* [] on */; -var26 = ((short int (*)(val*, val*))(var25->class->vft[COLOR_kernel__Object___61d_61d]))(var25, var_old_child) /* == on */; -if (var26){ -var27 = NULL; -if (var_new_child == NULL) { -var28 = 0; /* is null */ } else { -var28 = 1; /* arg is null and recv is not */ +var15 = var_new_child->type->type_table[cltype16] == idtype17; } -if (var28){ -/* isa AAnnotation */ -cltype30 = type_parser_nodes__AAnnotation.color; -idtype31 = type_parser_nodes__AAnnotation.id; -if(cltype30 >= var_new_child->type->table_size) { -var29 = 0; -} else { -var29 = var_new_child->type->type_table[cltype30] == idtype31; } -if (!var29) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11078); +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6933); show_backtrace(1); } -var32 = self->attrs[COLOR_parser_nodes__AAnnotations___n_items].val; /* _n_items on */ -if (var32 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_items"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11079); -show_backtrace(1); +{ +parser_prod__AAnnotations__n_opar_61d(self, var_new_child); /* Direct call parser_prod#AAnnotations#n_opar= on */ } -((void (*)(val*, long, val*))(var32->class->vft[COLOR_abstract_collection__Sequence___91d_93d_61d]))(var32, var_i, var_new_child) /* []= on */; -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; +goto RET_LABEL; } else { -var33 = self->attrs[COLOR_parser_nodes__AAnnotations___n_items].val; /* _n_items on */ -if (var33 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_items"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11082); +} +{ +{ /* Inline parser_nodes#AAnnotations#n_items (self) on */ +var21 = self->attrs[COLOR_parser_nodes__AAnnotations___n_items].val; /* _n_items on */ +if (unlikely(var21 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_items"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2027); show_backtrace(1); } -((void (*)(val*, long))(var33->class->vft[COLOR_abstract_collection__Sequence__remove_at]))(var33, var_i) /* remove_at on */; +var19 = var21; +RET_LABEL20:(void)0; } -goto RET_LABEL; -} else { } -CONTINUE_label: (void)0; -((void (*)(val*))(var20->class->vft[COLOR_abstract_collection__Iterator__next]))(var20) /* next on */; +{ +var22 = parser_nodes__ANodes__replace_child(var19, var_old_child, var_new_child); } -BREAK_label: (void)0; -var34 = self->attrs[COLOR_parser_nodes__AAnnotations___n_cpar].val; /* _n_cpar on */ -if (var34 == NULL) { -var35 = 0; /* cannot be null */ +if (var22){ +goto RET_LABEL; } else { -var35 = ((short int (*)(val*, val*))(var34->class->vft[COLOR_kernel__Object___61d_61d]))(var34, var_old_child) /* == on */; } -if (var35){ -var36 = NULL; -if (var_new_child == NULL) { -var37 = 0; /* is null */ +var23 = self->attrs[COLOR_parser_nodes__AAnnotations___n_cpar].val; /* _n_cpar on */ +if (var23 == NULL) { +var24 = 0; /* cannot be null */ } else { -var37 = 1; /* arg is null and recv is not */ +{ /* Inline kernel#Object#== (var23,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var23,var_other) on */ +var29 = var23 == var_other; +var27 = var29; +goto RET_LABEL28; +RET_LABEL28:(void)0; } -if (var37){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TCpar */ -cltype39 = type_parser_nodes__TCpar.color; -idtype40 = type_parser_nodes__TCpar.id; -if(cltype39 >= var_new_child->type->table_size) { -var38 = 0; +} +var25 = var27; +goto RET_LABEL26; +RET_LABEL26:(void)0; +} +var24 = var25; +} +if (var24){ +/* isa nullable TCpar */ +cltype31 = type_nullable_parser_nodes__TCpar.color; +idtype32 = type_nullable_parser_nodes__TCpar.id; +if(var_new_child == NULL) { +var30 = 1; +} else { +if(cltype31 >= var_new_child->type->table_size) { +var30 = 0; } else { -var38 = var_new_child->type->type_table[cltype39] == idtype40; +var30 = var_new_child->type->type_table[cltype31] == idtype32; } -if (!var38) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11090); +} +if (unlikely(!var30)) { +var_class_name33 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name33); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6938); show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AAnnotations___n_cpar].val = var_new_child; /* _n_cpar on */ -} else { -var41 = NULL; -self->attrs[COLOR_parser_nodes__AAnnotations___n_cpar].val = var41; /* _n_cpar on */ +{ +parser_prod__AAnnotations__n_cpar_61d(self, var_new_child); /* Direct call parser_prod#AAnnotations#n_cpar= on */ } goto RET_LABEL; } else { @@ -2911,7 +7170,7 @@ RET_LABEL:; } /* method parser_prod#AAnnotations#replace_child for (self: Object, ANode, nullable ANode) */ void VIRTUAL_parser_prod__AAnnotations__replace_child(val* self, val* p0, val* p1) { -parser_prod__AAnnotations__replace_child(self, p0, p1); +parser_prod__AAnnotations__replace_child(self, p0, p1); /* Direct call parser_prod#AAnnotations#replace_child on */ RET_LABEL:; } /* method parser_prod#AAnnotations#n_at= for (self: AAnnotations, nullable TAt) */ @@ -2919,6 +7178,11 @@ void parser_prod__AAnnotations__n_at_61d(val* self, val* p0) { val* var_node /* var node: nullable TAt */; val* var /* : null */; short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; var_node = p0; self->attrs[COLOR_parser_nodes__AAnnotations___n_at].val = var_node; /* _n_at on */ var = NULL; @@ -2927,15 +7191,34 @@ var1 = 0; /* is null */ } else { var1 = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} if (var1){ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} } else { } RET_LABEL:; } /* method parser_prod#AAnnotations#n_at= for (self: Object, nullable TAt) */ void VIRTUAL_parser_prod__AAnnotations__n_at_61d(val* self, val* p0) { -parser_prod__AAnnotations__n_at_61d(self, p0); +parser_prod__AAnnotations__n_at_61d(self, p0); /* Direct call parser_prod#AAnnotations#n_at= on */ RET_LABEL:; } /* method parser_prod#AAnnotations#n_opar= for (self: AAnnotations, nullable TOpar) */ @@ -2943,6 +7226,11 @@ void parser_prod__AAnnotations__n_opar_61d(val* self, val* p0) { val* var_node /* var node: nullable TOpar */; val* var /* : null */; short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; var_node = p0; self->attrs[COLOR_parser_nodes__AAnnotations___n_opar].val = var_node; /* _n_opar on */ var = NULL; @@ -2951,15 +7239,34 @@ var1 = 0; /* is null */ } else { var1 = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} if (var1){ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} } else { } RET_LABEL:; } /* method parser_prod#AAnnotations#n_opar= for (self: Object, nullable TOpar) */ void VIRTUAL_parser_prod__AAnnotations__n_opar_61d(val* self, val* p0) { -parser_prod__AAnnotations__n_opar_61d(self, p0); +parser_prod__AAnnotations__n_opar_61d(self, p0); /* Direct call parser_prod#AAnnotations#n_opar= on */ RET_LABEL:; } /* method parser_prod#AAnnotations#n_cpar= for (self: AAnnotations, nullable TCpar) */ @@ -2967,6 +7274,11 @@ void parser_prod__AAnnotations__n_cpar_61d(val* self, val* p0) { val* var_node /* var node: nullable TCpar */; val* var /* : null */; short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; var_node = p0; self->attrs[COLOR_parser_nodes__AAnnotations___n_cpar].val = var_node; /* _n_cpar on */ var = NULL; @@ -2975,124 +7287,84 @@ var1 = 0; /* is null */ } else { var1 = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} if (var1){ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} } else { } RET_LABEL:; } /* method parser_prod#AAnnotations#n_cpar= for (self: Object, nullable TCpar) */ void VIRTUAL_parser_prod__AAnnotations__n_cpar_61d(val* self, val* p0) { -parser_prod__AAnnotations__n_cpar_61d(self, p0); +parser_prod__AAnnotations__n_cpar_61d(self, p0); /* Direct call parser_prod#AAnnotations#n_cpar= on */ RET_LABEL:; } /* method parser_prod#AAnnotations#visit_all for (self: AAnnotations, Visitor) */ void parser_prod__AAnnotations__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : nullable TAt */; -val* var1 /* : null */; -short int var2 /* : Bool */; -val* var3 /* : nullable TAt */; -val* var4 /* : nullable TOpar */; -val* var5 /* : null */; -short int var6 /* : Bool */; -val* var7 /* : nullable TOpar */; -val* var8 /* : ANodes[AAnnotation] */; -val* var9 /* : Iterator[nullable Object] */; -short int var10 /* : Bool */; -val* var11 /* : nullable Object */; -val* var_n /* var n: AAnnotation */; -val* var12 /* : nullable TCpar */; -val* var13 /* : null */; -short int var14 /* : Bool */; -val* var15 /* : nullable TCpar */; +val* var1 /* : nullable TOpar */; +val* var2 /* : ANodes[AAnnotation] */; +val* var4 /* : ANodes[AAnnotation] */; +val* var5 /* : nullable TCpar */; var_v = p0; var = self->attrs[COLOR_parser_nodes__AAnnotations___n_at].val; /* _n_at on */ -var1 = NULL; -if (var == NULL) { -var2 = 0; /* is null */ -} else { -var2 = 1; /* arg is null and recv is not */ -} -if (var2){ -var3 = self->attrs[COLOR_parser_nodes__AAnnotations___n_at].val; /* _n_at on */ -if (var3 == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11125); -show_backtrace(1); -} -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var3) /* enter_visit on */; -} else { -} -var4 = self->attrs[COLOR_parser_nodes__AAnnotations___n_opar].val; /* _n_opar on */ -var5 = NULL; -if (var4 == NULL) { -var6 = 0; /* is null */ -} else { -var6 = 1; /* arg is null and recv is not */ -} -if (var6){ -var7 = self->attrs[COLOR_parser_nodes__AAnnotations___n_opar].val; /* _n_opar on */ -if (var7 == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11128); -show_backtrace(1); +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var7) /* enter_visit on */; -} else { +var1 = self->attrs[COLOR_parser_nodes__AAnnotations___n_opar].val; /* _n_opar on */ +{ +parser_nodes__Visitor__enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ } -var8 = self->attrs[COLOR_parser_nodes__AAnnotations___n_items].val; /* _n_items on */ -if (var8 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_items"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11130); +{ +{ /* Inline parser_nodes#AAnnotations#n_items (self) on */ +var4 = self->attrs[COLOR_parser_nodes__AAnnotations___n_items].val; /* _n_items on */ +if (unlikely(var4 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_items"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2027); show_backtrace(1); } -var9 = ((val* (*)(val*))(var8->class->vft[COLOR_abstract_collection__Collection__iterator]))(var8) /* iterator on */; -for(;;) { -var10 = ((short int (*)(val*))(var9->class->vft[COLOR_abstract_collection__Iterator__is_ok]))(var9) /* is_ok on */; -if(!var10) break; -var11 = ((val* (*)(val*))(var9->class->vft[COLOR_abstract_collection__Iterator__item]))(var9) /* item on */; -var_n = var11; -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var_n) /* enter_visit on */; -CONTINUE_label: (void)0; -((void (*)(val*))(var9->class->vft[COLOR_abstract_collection__Iterator__next]))(var9) /* next on */; +var2 = var4; +RET_LABEL3:(void)0; } -BREAK_label: (void)0; -var12 = self->attrs[COLOR_parser_nodes__AAnnotations___n_cpar].val; /* _n_cpar on */ -var13 = NULL; -if (var12 == NULL) { -var14 = 0; /* is null */ -} else { -var14 = 1; /* arg is null and recv is not */ } -if (var14){ -var15 = self->attrs[COLOR_parser_nodes__AAnnotations___n_cpar].val; /* _n_cpar on */ -if (var15 == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11134); -show_backtrace(1); +{ +parser_nodes__ANodes__visit_all(var2, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var15) /* enter_visit on */; -} else { +var5 = self->attrs[COLOR_parser_nodes__AAnnotations___n_cpar].val; /* _n_cpar on */ +{ +parser_nodes__Visitor__enter_visit(var_v, var5); /* Direct call parser_nodes#Visitor#enter_visit on */ } RET_LABEL:; } /* method parser_prod#AAnnotations#visit_all for (self: Object, Visitor) */ void VIRTUAL_parser_prod__AAnnotations__visit_all(val* self, val* p0) { -parser_prod__AAnnotations__visit_all(self, p0); +parser_prod__AAnnotations__visit_all(self, p0); /* Direct call parser_prod#AAnnotations#visit_all on */ RET_LABEL:; } -/* method parser_prod#AAnnotation#empty_init for (self: AAnnotation) */ -void parser_prod__AAnnotation__empty_init(val* self) { -RET_LABEL:; -} -/* method parser_prod#AAnnotation#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AAnnotation__empty_init(val* self) { -parser_prod__AAnnotation__empty_init(self); -RET_LABEL:; -} -/* method parser_prod#AAnnotation#init_aannotation for (self: AAnnotation, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */ -void parser_prod__AAnnotation__init_aannotation(val* self, val* p0, val* p1, val* p2, val* p3, val* p4) { +/* method parser_prod#AAnnotation#init_aannotation for (self: AAnnotation, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */ +void parser_prod__AAnnotation__init_aannotation(val* self, val* p0, val* p1, val* p2, val* p3, val* p4, val* p5, val* p6, val* p7) { +val* var_n_doc /* var n_doc: nullable ADoc */; +val* var_n_kwredef /* var n_kwredef: nullable TKwredef */; +val* var_n_visibility /* var n_visibility: nullable AVisibility */; val* var_n_atid /* var n_atid: nullable AAtid */; val* var_n_opar /* var n_opar: nullable TOpar */; val* var_n_args /* var n_args: Collection[Object] */; @@ -3100,1694 +7372,1489 @@ val* var_n_cpar /* var n_cpar: nullable TCpar */; val* var_n_annotations /* var n_annotations: nullable AAnnotations */; val* var /* : null */; short int var1 /* : Bool */; -val* var2 /* : Iterator[nullable Object] */; -short int var3 /* : Bool */; -val* var4 /* : nullable Object */; -val* var_n /* var n: Object */; -short int var5 /* : Bool */; -int cltype; -int idtype; -val* var6 /* : ANodes[AAtArg] */; -val* var7 /* : null */; -short int var8 /* : Bool */; -val* var9 /* : null */; -short int var10 /* : Bool */; -var_n_atid = p0; -var_n_opar = p1; -var_n_args = p2; -var_n_cpar = p3; -var_n_annotations = p4; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AAnnotation__empty_init]))(self) /* empty_init on */; -if (var_n_atid == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11150); -show_backtrace(1); -} -self->attrs[COLOR_parser_nodes__AAnnotation___n_atid].val = var_n_atid; /* _n_atid on */ -if (var_n_atid == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11151); -show_backtrace(1); -} else { -((void (*)(val*, val*))(var_n_atid->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_atid, self) /* parent= on */; -} -self->attrs[COLOR_parser_nodes__AAnnotation___n_opar].val = var_n_opar; /* _n_opar on */ -var = NULL; -if (var_n_opar == NULL) { -var1 = 0; /* is null */ -} else { -var1 = 1; /* arg is null and recv is not */ -} -if (var1){ -((void (*)(val*, val*))(var_n_opar->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_opar, self) /* parent= on */; -} else { -} -var2 = ((val* (*)(val*))(var_n_args->class->vft[COLOR_abstract_collection__Collection__iterator]))(var_n_args) /* iterator on */; -for(;;) { -var3 = ((short int (*)(val*))(var2->class->vft[COLOR_abstract_collection__Iterator__is_ok]))(var2) /* is_ok on */; -if(!var3) break; -var4 = ((val* (*)(val*))(var2->class->vft[COLOR_abstract_collection__Iterator__item]))(var2) /* item on */; -var_n = var4; -/* isa AAtArg */ -cltype = type_parser_nodes__AAtArg.color; -idtype = type_parser_nodes__AAtArg.id; -if(cltype >= var_n->type->table_size) { -var5 = 0; -} else { -var5 = var_n->type->type_table[cltype] == idtype; -} -if (!var5) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11157); -show_backtrace(1); -} -var6 = self->attrs[COLOR_parser_nodes__AAnnotation___n_args].val; /* _n_args on */ -if (var6 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_args"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11158); -show_backtrace(1); -} -((void (*)(val*, val*))(var6->class->vft[COLOR_abstract_collection__SimpleCollection__add]))(var6, var_n) /* add on */; -((void (*)(val*, val*))(var_n->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n, self) /* parent= on */; -CONTINUE_label: (void)0; -((void (*)(val*))(var2->class->vft[COLOR_abstract_collection__Iterator__next]))(var2) /* next on */; -} -BREAK_label: (void)0; -self->attrs[COLOR_parser_nodes__AAnnotation___n_cpar].val = var_n_cpar; /* _n_cpar on */ -var7 = NULL; -if (var_n_cpar == NULL) { -var8 = 0; /* is null */ -} else { -var8 = 1; /* arg is null and recv is not */ -} -if (var8){ -((void (*)(val*, val*))(var_n_cpar->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_cpar, self) /* parent= on */; -} else { -} -self->attrs[COLOR_parser_nodes__Prod___n_annotations].val = var_n_annotations; /* _n_annotations on */ -var9 = NULL; -if (var_n_annotations == NULL) { -var10 = 0; /* is null */ -} else { -var10 = 1; /* arg is null and recv is not */ -} -if (var10){ -((void (*)(val*, val*))(var_n_annotations->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_annotations, self) /* parent= on */; -} else { -} -RET_LABEL:; -} -/* method parser_prod#AAnnotation#init_aannotation for (self: Object, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */ -void VIRTUAL_parser_prod__AAnnotation__init_aannotation(val* self, val* p0, val* p1, val* p2, val* p3, val* p4) { -parser_prod__AAnnotation__init_aannotation(self, p0, p1, p2, p3, p4); -RET_LABEL:; -} -/* method parser_prod#AAnnotation#replace_child for (self: AAnnotation, ANode, nullable ANode) */ -void parser_prod__AAnnotation__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : AAtid */; -short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; -int cltype; -int idtype; -val* var5 /* : nullable TOpar */; +short int var5 /* : Bool */; short int var6 /* : Bool */; -val* var7 /* : null */; -short int var8 /* : Bool */; +val* var8 /* : null */; short int var9 /* : Bool */; -int cltype10; -int idtype11; -val* var12 /* : null */; -val* var13 /* : Range[Int] */; -long var14 /* : Int */; -val* var15 /* : ANodes[AAtArg] */; -long var16 /* : Int */; -val* var17 /* : Discrete */; -val* var18 /* : Discrete */; -val* var19 /* : Iterator[nullable Object] */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; +short int var13 /* : Bool */; +short int var14 /* : Bool */; +val* var16 /* : null */; +short int var17 /* : Bool */; +short int var18 /* : Bool */; short int var20 /* : Bool */; -val* var21 /* : nullable Object */; -long var_i /* var i: Int */; -long var22 /* : Int */; -val* var23 /* : ANodes[AAtArg] */; -val* var24 /* : nullable Object */; -short int var25 /* : Bool */; -val* var26 /* : null */; +short int var21 /* : Bool */; +short int var22 /* : Bool */; +val* var25 /* : null */; +short int var26 /* : Bool */; short int var27 /* : Bool */; -short int var28 /* : Bool */; -int cltype29; -int idtype30; -val* var31 /* : ANodes[AAtArg] */; -val* var32 /* : ANodes[AAtArg] */; -val* var33 /* : nullable TCpar */; -short int var34 /* : Bool */; -val* var35 /* : null */; -short int var36 /* : Bool */; +short int var29 /* : Bool */; +short int var30 /* : Bool */; +short int var31 /* : Bool */; +val* var33 /* : ANodes[AExpr] */; +val* var35 /* : ANodes[AExpr] */; +val* var36 /* : null */; short int var37 /* : Bool */; -int cltype38; -int idtype39; -val* var40 /* : null */; -val* var41 /* : nullable AAnnotations */; +short int var38 /* : Bool */; +short int var40 /* : Bool */; +short int var41 /* : Bool */; short int var42 /* : Bool */; -val* var43 /* : null */; -short int var44 /* : Bool */; +val* var44 /* : null */; short int var45 /* : Bool */; -int cltype46; -int idtype47; -val* var48 /* : null */; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_parser_nodes__AAnnotation___n_atid].val; /* _n_atid on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_atid"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11173); -show_backtrace(1); -} -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; -if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ -} else { -var3 = 1; /* arg is null and recv is not */ -} -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AAtid */ -cltype = type_parser_nodes__AAtid.color; -idtype = type_parser_nodes__AAtid.id; -if(cltype >= var_new_child->type->table_size) { -var4 = 0; -} else { -var4 = var_new_child->type->type_table[cltype] == idtype; -} -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11176); -show_backtrace(1); -} -self->attrs[COLOR_parser_nodes__AAnnotation___n_atid].val = var_new_child; /* _n_atid on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11179); -show_backtrace(1); -} -goto RET_LABEL; -} else { -} -var5 = self->attrs[COLOR_parser_nodes__AAnnotation___n_opar].val; /* _n_opar on */ -if (var5 == NULL) { -var6 = 0; /* cannot be null */ -} else { -var6 = ((short int (*)(val*, val*))(var5->class->vft[COLOR_kernel__Object___61d_61d]))(var5, var_old_child) /* == on */; -} -if (var6){ -var7 = NULL; -if (var_new_child == NULL) { -var8 = 0; /* is null */ -} else { -var8 = 1; /* arg is null and recv is not */ -} -if (var8){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TOpar */ -cltype10 = type_parser_nodes__TOpar.color; -idtype11 = type_parser_nodes__TOpar.id; -if(cltype10 >= var_new_child->type->table_size) { -var9 = 0; -} else { -var9 = var_new_child->type->type_table[cltype10] == idtype11; -} -if (!var9) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11186); -show_backtrace(1); -} -self->attrs[COLOR_parser_nodes__AAnnotation___n_opar].val = var_new_child; /* _n_opar on */ -} else { -var12 = NULL; -self->attrs[COLOR_parser_nodes__AAnnotation___n_opar].val = var12; /* _n_opar on */ -} -goto RET_LABEL; -} else { -} -var13 = NEW_range__Range(&type_range__Rangekernel__Int); -var14 = 0; -var15 = self->attrs[COLOR_parser_nodes__AAnnotation___n_args].val; /* _n_args on */ -if (var15 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_args"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11193); -show_backtrace(1); -} -var16 = ((long (*)(val*))(var15->class->vft[COLOR_abstract_collection__Collection__length]))(var15) /* length on */; -var17 = BOX_kernel__Int(var14); /* autobox from Int to Discrete */ -var18 = BOX_kernel__Int(var16); /* autobox from Int to Discrete */ -((void (*)(val*, val*, val*))(var13->class->vft[COLOR_range__Range__without_last]))(var13, var17, var18) /* without_last on */; -var19 = ((val* (*)(val*))(var13->class->vft[COLOR_abstract_collection__Collection__iterator]))(var13) /* iterator on */; -for(;;) { -var20 = ((short int (*)(val*))(var19->class->vft[COLOR_abstract_collection__Iterator__is_ok]))(var19) /* is_ok on */; -if(!var20) break; -var21 = ((val* (*)(val*))(var19->class->vft[COLOR_abstract_collection__Iterator__item]))(var19) /* item on */; -var22 = ((struct instance_kernel__Int*)var21)->value; /* autounbox from nullable Object to Int */; -var_i = var22; -var23 = self->attrs[COLOR_parser_nodes__AAnnotation___n_args].val; /* _n_args on */ -if (var23 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_args"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11194); -show_backtrace(1); -} -var24 = ((val* (*)(val*, long))(var23->class->vft[COLOR_abstract_collection__SequenceRead___91d_93d]))(var23, var_i) /* [] on */; -var25 = ((short int (*)(val*, val*))(var24->class->vft[COLOR_kernel__Object___61d_61d]))(var24, var_old_child) /* == on */; -if (var25){ -var26 = NULL; -if (var_new_child == NULL) { -var27 = 0; /* is null */ -} else { -var27 = 1; /* arg is null and recv is not */ -} -if (var27){ -/* isa AAtArg */ -cltype29 = type_parser_nodes__AAtArg.color; -idtype30 = type_parser_nodes__AAtArg.id; -if(cltype29 >= var_new_child->type->table_size) { -var28 = 0; -} else { -var28 = var_new_child->type->type_table[cltype29] == idtype30; -} -if (!var28) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11196); -show_backtrace(1); -} -var31 = self->attrs[COLOR_parser_nodes__AAnnotation___n_args].val; /* _n_args on */ -if (var31 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_args"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11197); -show_backtrace(1); -} -((void (*)(val*, long, val*))(var31->class->vft[COLOR_abstract_collection__Sequence___91d_93d_61d]))(var31, var_i, var_new_child) /* []= on */; -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -} else { -var32 = self->attrs[COLOR_parser_nodes__AAnnotation___n_args].val; /* _n_args on */ -if (var32 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_args"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11200); -show_backtrace(1); -} -((void (*)(val*, long))(var32->class->vft[COLOR_abstract_collection__Sequence__remove_at]))(var32, var_i) /* remove_at on */; -} -goto RET_LABEL; -} else { -} -CONTINUE_label: (void)0; -((void (*)(val*))(var19->class->vft[COLOR_abstract_collection__Iterator__next]))(var19) /* next on */; -} -BREAK_label: (void)0; -var33 = self->attrs[COLOR_parser_nodes__AAnnotation___n_cpar].val; /* _n_cpar on */ -if (var33 == NULL) { -var34 = 0; /* cannot be null */ -} else { -var34 = ((short int (*)(val*, val*))(var33->class->vft[COLOR_kernel__Object___61d_61d]))(var33, var_old_child) /* == on */; -} -if (var34){ -var35 = NULL; -if (var_new_child == NULL) { -var36 = 0; /* is null */ -} else { -var36 = 1; /* arg is null and recv is not */ -} -if (var36){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TCpar */ -cltype38 = type_parser_nodes__TCpar.color; -idtype39 = type_parser_nodes__TCpar.id; -if(cltype38 >= var_new_child->type->table_size) { -var37 = 0; -} else { -var37 = var_new_child->type->type_table[cltype38] == idtype39; -} -if (!var37) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11208); -show_backtrace(1); -} -self->attrs[COLOR_parser_nodes__AAnnotation___n_cpar].val = var_new_child; /* _n_cpar on */ -} else { -var40 = NULL; -self->attrs[COLOR_parser_nodes__AAnnotation___n_cpar].val = var40; /* _n_cpar on */ -} -goto RET_LABEL; +short int var46 /* : Bool */; +short int var48 /* : Bool */; +short int var49 /* : Bool */; +short int var50 /* : Bool */; +var_n_doc = p0; +var_n_kwredef = p1; +var_n_visibility = p2; +var_n_atid = p3; +var_n_opar = p4; +var_n_args = p5; +var_n_cpar = p6; +var_n_annotations = p7; +self->attrs[COLOR_parser_nodes__AAnnotation___n_doc].val = var_n_doc; /* _n_doc on */ +var = NULL; +if (var_n_doc == NULL) { +var1 = 0; /* is null */ } else { +var1 = 1; /* arg is null and recv is not */ } -var41 = self->attrs[COLOR_parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ -if (var41 == NULL) { -var42 = 0; /* cannot be null */ -} else { -var42 = ((short int (*)(val*, val*))(var41->class->vft[COLOR_kernel__Object___61d_61d]))(var41, var_old_child) /* == on */; +if (0) { +{ /* Inline kernel#Object#!= (var_n_doc,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_n_doc->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_doc, var_other) /* == on */; +var4 = var5; } -if (var42){ -var43 = NULL; -if (var_new_child == NULL) { -var44 = 0; /* is null */ -} else { -var44 = 1; /* arg is null and recv is not */ +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; } -if (var44){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AAnnotations */ -cltype46 = type_parser_nodes__AAnnotations.color; -idtype47 = type_parser_nodes__AAnnotations.id; -if(cltype46 >= var_new_child->type->table_size) { -var45 = 0; -} else { -var45 = var_new_child->type->type_table[cltype46] == idtype47; +var1 = var2; +} +if (var1){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_doc,self) on */ +var_n_doc->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; } -if (!var45) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11218); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__Prod___n_annotations].val = var_new_child; /* _n_annotations on */ } else { -var48 = NULL; -self->attrs[COLOR_parser_nodes__Prod___n_annotations].val = var48; /* _n_annotations on */ } -goto RET_LABEL; +self->attrs[COLOR_parser_nodes__AAnnotation___n_kwredef].val = var_n_kwredef; /* _n_kwredef on */ +var8 = NULL; +if (var_n_kwredef == NULL) { +var9 = 0; /* is null */ } else { +var9 = 1; /* arg is null and recv is not */ } -RET_LABEL:; +if (0) { +{ /* Inline kernel#Object#!= (var_n_kwredef,var8) on */ +var_other = var8; +{ +var13 = ((short int (*)(val*, val*))(var_n_kwredef->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_kwredef, var_other) /* == on */; +var12 = var13; } -/* method parser_prod#AAnnotation#replace_child for (self: Object, ANode, nullable ANode) */ -void VIRTUAL_parser_prod__AAnnotation__replace_child(val* self, val* p0, val* p1) { -parser_prod__AAnnotation__replace_child(self, p0, p1); -RET_LABEL:; +var14 = !var12; +var10 = var14; +goto RET_LABEL11; +RET_LABEL11:(void)0; } -/* method parser_prod#AAnnotation#n_atid= for (self: AAnnotation, AAtid) */ -void parser_prod__AAnnotation__n_atid_61d(val* self, val* p0) { -val* var_node /* var node: AAtid */; -var_node = p0; -self->attrs[COLOR_parser_nodes__AAnnotation___n_atid].val = var_node; /* _n_atid on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; -RET_LABEL:; +var9 = var10; +} +if (var9){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_kwredef,self) on */ +var_n_kwredef->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL15:(void)0; } -/* method parser_prod#AAnnotation#n_atid= for (self: Object, AAtid) */ -void VIRTUAL_parser_prod__AAnnotation__n_atid_61d(val* self, val* p0) { -parser_prod__AAnnotation__n_atid_61d(self, p0); -RET_LABEL:; } -/* method parser_prod#AAnnotation#n_opar= for (self: AAnnotation, nullable TOpar) */ -void parser_prod__AAnnotation__n_opar_61d(val* self, val* p0) { -val* var_node /* var node: nullable TOpar */; -val* var /* : null */; -short int var1 /* : Bool */; -var_node = p0; -self->attrs[COLOR_parser_nodes__AAnnotation___n_opar].val = var_node; /* _n_opar on */ -var = NULL; -if (var_node == NULL) { -var1 = 0; /* is null */ } else { -var1 = 1; /* arg is null and recv is not */ } -if (var1){ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +self->attrs[COLOR_parser_nodes__AAnnotation___n_visibility].val = var_n_visibility; /* _n_visibility on */ +var16 = NULL; +if (var_n_visibility == NULL) { +var17 = 0; /* is null */ } else { +var17 = 1; /* arg is null and recv is not */ } -RET_LABEL:; +if (0) { +{ /* Inline kernel#Object#!= (var_n_visibility,var16) on */ +var_other = var16; +{ +var21 = ((short int (*)(val*, val*))(var_n_visibility->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_visibility, var_other) /* == on */; +var20 = var21; +} +var22 = !var20; +var18 = var22; +goto RET_LABEL19; +RET_LABEL19:(void)0; +} +var17 = var18; +} +if (var17){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_visibility,self) on */ +var_n_visibility->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL23:(void)0; } -/* method parser_prod#AAnnotation#n_opar= for (self: Object, nullable TOpar) */ -void VIRTUAL_parser_prod__AAnnotation__n_opar_61d(val* self, val* p0) { -parser_prod__AAnnotation__n_opar_61d(self, p0); -RET_LABEL:; } -/* method parser_prod#AAnnotation#n_cpar= for (self: AAnnotation, nullable TCpar) */ -void parser_prod__AAnnotation__n_cpar_61d(val* self, val* p0) { -val* var_node /* var node: nullable TCpar */; -val* var /* : null */; -short int var1 /* : Bool */; -var_node = p0; -self->attrs[COLOR_parser_nodes__AAnnotation___n_cpar].val = var_node; /* _n_cpar on */ -var = NULL; -if (var_node == NULL) { -var1 = 0; /* is null */ } else { -var1 = 1; /* arg is null and recv is not */ } -if (var1){ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +if (unlikely(var_n_atid == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6986); +show_backtrace(1); +} +self->attrs[COLOR_parser_nodes__AAnnotation___n_atid].val = var_n_atid; /* _n_atid on */ +if (var_n_atid == NULL) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 6987); +show_backtrace(1); } else { +{ /* Inline parser_nodes#ANode#parent= (var_n_atid,self) on */ +if (unlikely(var_n_atid == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); } -RET_LABEL:; +var_n_atid->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL24:(void)0; } -/* method parser_prod#AAnnotation#n_cpar= for (self: Object, nullable TCpar) */ -void VIRTUAL_parser_prod__AAnnotation__n_cpar_61d(val* self, val* p0) { -parser_prod__AAnnotation__n_cpar_61d(self, p0); -RET_LABEL:; } -/* method parser_prod#AAnnotation#n_annotations= for (self: AAnnotation, nullable AAnnotations) */ -void parser_prod__AAnnotation__n_annotations_61d(val* self, val* p0) { -val* var_node /* var node: nullable AAnnotations */; -val* var /* : null */; -short int var1 /* : Bool */; -var_node = p0; -self->attrs[COLOR_parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ -var = NULL; -if (var_node == NULL) { -var1 = 0; /* is null */ +self->attrs[COLOR_parser_nodes__AAnnotation___n_opar].val = var_n_opar; /* _n_opar on */ +var25 = NULL; +if (var_n_opar == NULL) { +var26 = 0; /* is null */ } else { -var1 = 1; /* arg is null and recv is not */ +var26 = 1; /* arg is null and recv is not */ } -if (var1){ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; -} else { +if (0) { +{ /* Inline kernel#Object#!= (var_n_opar,var25) on */ +var_other = var25; +{ +var30 = ((short int (*)(val*, val*))(var_n_opar->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_opar, var_other) /* == on */; +var29 = var30; } -RET_LABEL:; +var31 = !var29; +var27 = var31; +goto RET_LABEL28; +RET_LABEL28:(void)0; } -/* method parser_prod#AAnnotation#n_annotations= for (self: Object, nullable AAnnotations) */ -void VIRTUAL_parser_prod__AAnnotation__n_annotations_61d(val* self, val* p0) { -parser_prod__AAnnotation__n_annotations_61d(self, p0); -RET_LABEL:; +var26 = var27; +} +if (var26){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_opar,self) on */ +var_n_opar->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL32:(void)0; } -/* method parser_prod#AAnnotation#visit_all for (self: AAnnotation, Visitor) */ -void parser_prod__AAnnotation__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : AAtid */; -val* var1 /* : nullable TOpar */; -val* var2 /* : null */; -short int var3 /* : Bool */; -val* var4 /* : nullable TOpar */; -val* var5 /* : ANodes[AAtArg] */; -val* var6 /* : Iterator[nullable Object] */; -short int var7 /* : Bool */; -val* var8 /* : nullable Object */; -val* var_n /* var n: AAtArg */; -val* var9 /* : nullable TCpar */; -val* var10 /* : null */; -short int var11 /* : Bool */; -val* var12 /* : nullable TCpar */; -val* var13 /* : nullable AAnnotations */; -val* var14 /* : null */; -short int var15 /* : Bool */; -val* var16 /* : nullable AAnnotations */; -var_v = p0; -var = self->attrs[COLOR_parser_nodes__AAnnotation___n_atid].val; /* _n_atid on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_atid"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11257); -show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; -var1 = self->attrs[COLOR_parser_nodes__AAnnotation___n_opar].val; /* _n_opar on */ -var2 = NULL; -if (var1 == NULL) { -var3 = 0; /* is null */ } else { -var3 = 1; /* arg is null and recv is not */ } -if (var3){ -var4 = self->attrs[COLOR_parser_nodes__AAnnotation___n_opar].val; /* _n_opar on */ -if (var4 == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11259); +{ +{ /* Inline parser_nodes#AAnnotation#n_args (self) on */ +var35 = self->attrs[COLOR_parser_nodes__AAnnotation___n_args].val; /* _n_args on */ +if (unlikely(var35 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2039); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var4) /* enter_visit on */; -} else { +var33 = var35; +RET_LABEL34:(void)0; } -var5 = self->attrs[COLOR_parser_nodes__AAnnotation___n_args].val; /* _n_args on */ -if (var5 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_args"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11261); -show_backtrace(1); } -var6 = ((val* (*)(val*))(var5->class->vft[COLOR_abstract_collection__Collection__iterator]))(var5) /* iterator on */; -for(;;) { -var7 = ((short int (*)(val*))(var6->class->vft[COLOR_abstract_collection__Iterator__is_ok]))(var6) /* is_ok on */; -if(!var7) break; -var8 = ((val* (*)(val*))(var6->class->vft[COLOR_abstract_collection__Iterator__item]))(var6) /* item on */; -var_n = var8; -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var_n) /* enter_visit on */; -CONTINUE_label: (void)0; -((void (*)(val*))(var6->class->vft[COLOR_abstract_collection__Iterator__next]))(var6) /* next on */; +{ +parser_nodes__ANodes__unsafe_add_all(var33, var_n_args); /* Direct call parser_nodes#ANodes#unsafe_add_all on */ } -BREAK_label: (void)0; -var9 = self->attrs[COLOR_parser_nodes__AAnnotation___n_cpar].val; /* _n_cpar on */ -var10 = NULL; -if (var9 == NULL) { -var11 = 0; /* is null */ +self->attrs[COLOR_parser_nodes__AAnnotation___n_cpar].val = var_n_cpar; /* _n_cpar on */ +var36 = NULL; +if (var_n_cpar == NULL) { +var37 = 0; /* is null */ } else { -var11 = 1; /* arg is null and recv is not */ +var37 = 1; /* arg is null and recv is not */ } -if (var11){ -var12 = self->attrs[COLOR_parser_nodes__AAnnotation___n_cpar].val; /* _n_cpar on */ -if (var12 == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11265); -show_backtrace(1); +if (0) { +{ /* Inline kernel#Object#!= (var_n_cpar,var36) on */ +var_other = var36; +{ +var41 = ((short int (*)(val*, val*))(var_n_cpar->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_cpar, var_other) /* == on */; +var40 = var41; } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var12) /* enter_visit on */; -} else { +var42 = !var40; +var38 = var42; +goto RET_LABEL39; +RET_LABEL39:(void)0; } -var13 = self->attrs[COLOR_parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ -var14 = NULL; -if (var13 == NULL) { -var15 = 0; /* is null */ -} else { -var15 = 1; /* arg is null and recv is not */ +var37 = var38; +} +if (var37){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_cpar,self) on */ +var_n_cpar->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL43:(void)0; } -if (var15){ -var16 = self->attrs[COLOR_parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ -if (var16 == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11268); -show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var16) /* enter_visit on */; } else { } -RET_LABEL:; +self->attrs[COLOR_parser_nodes__Prod___n_annotations].val = var_n_annotations; /* _n_annotations on */ +var44 = NULL; +if (var_n_annotations == NULL) { +var45 = 0; /* is null */ +} else { +var45 = 1; /* arg is null and recv is not */ } -/* method parser_prod#AAnnotation#visit_all for (self: Object, Visitor) */ -void VIRTUAL_parser_prod__AAnnotation__visit_all(val* self, val* p0) { -parser_prod__AAnnotation__visit_all(self, p0); -RET_LABEL:; +if (0) { +{ /* Inline kernel#Object#!= (var_n_annotations,var44) on */ +var_other = var44; +{ +var49 = ((short int (*)(val*, val*))(var_n_annotations->class->vft[COLOR_kernel__Object___61d_61d]))(var_n_annotations, var_other) /* == on */; +var48 = var49; } -/* method parser_prod#ATypeAtArg#empty_init for (self: ATypeAtArg) */ -void parser_prod__ATypeAtArg__empty_init(val* self) { -RET_LABEL:; +var50 = !var48; +var46 = var50; +goto RET_LABEL47; +RET_LABEL47:(void)0; } -/* method parser_prod#ATypeAtArg#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__ATypeAtArg__empty_init(val* self) { -parser_prod__ATypeAtArg__empty_init(self); -RET_LABEL:; +var45 = var46; +} +if (var45){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_n_annotations,self) on */ +var_n_annotations->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL51:(void)0; } -/* method parser_prod#ATypeAtArg#init_atypeatarg for (self: ATypeAtArg, nullable AType) */ -void parser_prod__ATypeAtArg__init_atypeatarg(val* self, val* p0) { -val* var_n_type /* var n_type: nullable AType */; -var_n_type = p0; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__ATypeAtArg__empty_init]))(self) /* empty_init on */; -if (var_n_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11280); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__ATypeAtArg___n_type].val = var_n_type; /* _n_type on */ -if (var_n_type == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11281); -show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_type->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_type, self) /* parent= on */; } RET_LABEL:; } -/* method parser_prod#ATypeAtArg#init_atypeatarg for (self: Object, nullable AType) */ -void VIRTUAL_parser_prod__ATypeAtArg__init_atypeatarg(val* self, val* p0) { -parser_prod__ATypeAtArg__init_atypeatarg(self, p0); +/* method parser_prod#AAnnotation#init_aannotation for (self: Object, nullable ADoc, nullable TKwredef, nullable AVisibility, nullable AAtid, nullable TOpar, Collection[Object], nullable TCpar, nullable AAnnotations) */ +void VIRTUAL_parser_prod__AAnnotation__init_aannotation(val* self, val* p0, val* p1, val* p2, val* p3, val* p4, val* p5, val* p6, val* p7) { +parser_prod__AAnnotation__init_aannotation(self, p0, p1, p2, p3, p4, p5, p6, p7); /* Direct call parser_prod#AAnnotation#init_aannotation on */ RET_LABEL:; } -/* method parser_prod#ATypeAtArg#replace_child for (self: ATypeAtArg, ANode, nullable ANode) */ -void parser_prod__ATypeAtArg__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod#AAnnotation#replace_child for (self: AAnnotation, ANode, nullable ANode) */ +void parser_prod__AAnnotation__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; -val* var /* : AType */; +val* var /* : nullable ADoc */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; +const char* var_class_name; +val* var8 /* : nullable TKwredef */; +short int var9 /* : Bool */; +short int var10 /* : Bool */; +short int var12 /* : Bool */; +short int var14 /* : Bool */; +short int var15 /* : Bool */; +int cltype16; +int idtype17; +const char* var_class_name18; +val* var19 /* : nullable AVisibility */; +short int var20 /* : Bool */; +short int var21 /* : Bool */; +short int var23 /* : Bool */; +short int var25 /* : Bool */; +short int var26 /* : Bool */; +int cltype27; +int idtype28; +const char* var_class_name29; +val* var30 /* : AAtid */; +short int var31 /* : Bool */; +short int var32 /* : Bool */; +short int var34 /* : Bool */; +short int var36 /* : Bool */; +short int var37 /* : Bool */; +int cltype38; +int idtype39; +const char* var_class_name40; +val* var41 /* : nullable TOpar */; +short int var42 /* : Bool */; +short int var43 /* : Bool */; +short int var45 /* : Bool */; +short int var47 /* : Bool */; +short int var48 /* : Bool */; +int cltype49; +int idtype50; +const char* var_class_name51; +val* var52 /* : ANodes[AExpr] */; +val* var54 /* : ANodes[AExpr] */; +short int var55 /* : Bool */; +val* var56 /* : nullable TCpar */; +short int var57 /* : Bool */; +short int var58 /* : Bool */; +short int var60 /* : Bool */; +short int var62 /* : Bool */; +short int var63 /* : Bool */; +int cltype64; +int idtype65; +const char* var_class_name66; +val* var67 /* : nullable AAnnotations */; +short int var68 /* : Bool */; +short int var69 /* : Bool */; +short int var71 /* : Bool */; +short int var73 /* : Bool */; +short int var74 /* : Bool */; +int cltype75; +int idtype76; +const char* var_class_name77; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_parser_nodes__ATypeAtArg___n_type].val; /* _n_type on */ +var = self->attrs[COLOR_parser_nodes__AAnnotation___n_doc].val; /* _n_doc on */ if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11286); -show_backtrace(1); +var1 = 0; /* cannot be null */ +} else { +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; } -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ +/* isa nullable ADoc */ +cltype = type_nullable_parser_nodes__ADoc.color; +idtype = type_nullable_parser_nodes__ADoc.id; +if(var_new_child == NULL) { +var7 = 1; } else { -var3 = 1; /* arg is null and recv is not */ -} -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AType */ -cltype = type_parser_nodes__AType.color; -idtype = type_parser_nodes__AType.id; if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var7 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11289); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__ATypeAtArg___n_type].val = var_new_child; /* _n_type on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11292); +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable ADoc", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7000); show_backtrace(1); } +{ +parser_prod__AAnnotation__n_doc_61d(self, var_new_child); /* Direct call parser_prod#AAnnotation#n_doc= on */ +} goto RET_LABEL; } else { } -RET_LABEL:; +var8 = self->attrs[COLOR_parser_nodes__AAnnotation___n_kwredef].val; /* _n_kwredef on */ +if (var8 == NULL) { +var9 = 0; /* cannot be null */ +} else { +{ /* Inline kernel#Object#== (var8,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var8,var_other) on */ +var14 = var8 == var_other; +var12 = var14; +goto RET_LABEL13; +RET_LABEL13:(void)0; } -/* method parser_prod#ATypeAtArg#replace_child for (self: Object, ANode, nullable ANode) */ -void VIRTUAL_parser_prod__ATypeAtArg__replace_child(val* self, val* p0, val* p1) { -parser_prod__ATypeAtArg__replace_child(self, p0, p1); -RET_LABEL:; } -/* method parser_prod#ATypeAtArg#n_type= for (self: ATypeAtArg, AType) */ -void parser_prod__ATypeAtArg__n_type_61d(val* self, val* p0) { -val* var_node /* var node: AType */; -var_node = p0; -self->attrs[COLOR_parser_nodes__ATypeAtArg___n_type].val = var_node; /* _n_type on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; -RET_LABEL:; +var10 = var12; +goto RET_LABEL11; +RET_LABEL11:(void)0; } -/* method parser_prod#ATypeAtArg#n_type= for (self: Object, AType) */ -void VIRTUAL_parser_prod__ATypeAtArg__n_type_61d(val* self, val* p0) { -parser_prod__ATypeAtArg__n_type_61d(self, p0); -RET_LABEL:; +var9 = var10; } -/* method parser_prod#ATypeAtArg#visit_all for (self: ATypeAtArg, Visitor) */ -void parser_prod__ATypeAtArg__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : AType */; -var_v = p0; -var = self->attrs[COLOR_parser_nodes__ATypeAtArg___n_type].val; /* _n_type on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_type"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11307); +if (var9){ +/* isa nullable TKwredef */ +cltype16 = type_nullable_parser_nodes__TKwredef.color; +idtype17 = type_nullable_parser_nodes__TKwredef.id; +if(var_new_child == NULL) { +var15 = 1; +} else { +if(cltype16 >= var_new_child->type->table_size) { +var15 = 0; +} else { +var15 = var_new_child->type->type_table[cltype16] == idtype17; +} +} +if (unlikely(!var15)) { +var_class_name18 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TKwredef", var_class_name18); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7004); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; -RET_LABEL:; +{ +parser_prod__AAnnotation__n_kwredef_61d(self, var_new_child); /* Direct call parser_prod#AAnnotation#n_kwredef= on */ } -/* method parser_prod#ATypeAtArg#visit_all for (self: Object, Visitor) */ -void VIRTUAL_parser_prod__ATypeAtArg__visit_all(val* self, val* p0) { -parser_prod__ATypeAtArg__visit_all(self, p0); -RET_LABEL:; +goto RET_LABEL; +} else { } -/* method parser_prod#AExprAtArg#empty_init for (self: AExprAtArg) */ -void parser_prod__AExprAtArg__empty_init(val* self) { -RET_LABEL:; +var19 = self->attrs[COLOR_parser_nodes__AAnnotation___n_visibility].val; /* _n_visibility on */ +if (var19 == NULL) { +var20 = 0; /* cannot be null */ +} else { +{ /* Inline kernel#Object#== (var19,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var19,var_other) on */ +var25 = var19 == var_other; +var23 = var25; +goto RET_LABEL24; +RET_LABEL24:(void)0; } -/* method parser_prod#AExprAtArg#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AExprAtArg__empty_init(val* self) { -parser_prod__AExprAtArg__empty_init(self); -RET_LABEL:; } -/* method parser_prod#AExprAtArg#init_aexpratarg for (self: AExprAtArg, nullable AExpr) */ -void parser_prod__AExprAtArg__init_aexpratarg(val* self, val* p0) { -val* var_n_expr /* var n_expr: nullable AExpr */; -var_n_expr = p0; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AExprAtArg__empty_init]))(self) /* empty_init on */; -if (var_n_expr == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11318); -show_backtrace(1); +var21 = var23; +goto RET_LABEL22; +RET_LABEL22:(void)0; } -self->attrs[COLOR_parser_nodes__AExprAtArg___n_expr].val = var_n_expr; /* _n_expr on */ -if (var_n_expr == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11319); -show_backtrace(1); -} else { -((void (*)(val*, val*))(var_n_expr->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_expr, self) /* parent= on */; +var20 = var21; } -RET_LABEL:; +if (var20){ +/* isa nullable AVisibility */ +cltype27 = type_nullable_parser_nodes__AVisibility.color; +idtype28 = type_nullable_parser_nodes__AVisibility.id; +if(var_new_child == NULL) { +var26 = 1; +} else { +if(cltype27 >= var_new_child->type->table_size) { +var26 = 0; +} else { +var26 = var_new_child->type->type_table[cltype27] == idtype28; } -/* method parser_prod#AExprAtArg#init_aexpratarg for (self: Object, nullable AExpr) */ -void VIRTUAL_parser_prod__AExprAtArg__init_aexpratarg(val* self, val* p0) { -parser_prod__AExprAtArg__init_aexpratarg(self, p0); -RET_LABEL:; } -/* method parser_prod#AExprAtArg#replace_child for (self: AExprAtArg, ANode, nullable ANode) */ -void parser_prod__AExprAtArg__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : AExpr */; -short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -int cltype; -int idtype; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_parser_nodes__AExprAtArg___n_expr].val; /* _n_expr on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_expr"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11324); +if (unlikely(!var26)) { +var_class_name29 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AVisibility", var_class_name29); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7008); show_backtrace(1); } -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; -if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ -} else { -var3 = 1; /* arg is null and recv is not */ +{ +parser_prod__AAnnotation__n_visibility_61d(self, var_new_child); /* Direct call parser_prod#AAnnotation#n_visibility= on */ } -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AExpr */ -cltype = type_parser_nodes__AExpr.color; -idtype = type_parser_nodes__AExpr.id; -if(cltype >= var_new_child->type->table_size) { -var4 = 0; +goto RET_LABEL; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11327); +var30 = self->attrs[COLOR_parser_nodes__AAnnotation___n_atid].val; /* _n_atid on */ +if (unlikely(var30 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7011); show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AExprAtArg___n_expr].val = var_new_child; /* _n_expr on */ +{ +{ /* Inline kernel#Object#== (var30,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var30,var_other) on */ +var36 = var30 == var_other; +var34 = var36; +goto RET_LABEL35; +RET_LABEL35:(void)0; +} +} +var32 = var34; +goto RET_LABEL33; +RET_LABEL33:(void)0; +} +var31 = var32; +} +if (var31){ +/* isa AAtid */ +cltype38 = type_parser_nodes__AAtid.color; +idtype39 = type_parser_nodes__AAtid.id; +if(var_new_child == NULL) { +var37 = 0; +} else { +if(cltype38 >= var_new_child->type->table_size) { +var37 = 0; } else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11330); +var37 = var_new_child->type->type_table[cltype38] == idtype39; +} +} +if (unlikely(!var37)) { +var_class_name40 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "AAtid", var_class_name40); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7012); show_backtrace(1); } -goto RET_LABEL; +{ +parser_prod__AAnnotation__n_atid_61d(self, var_new_child); /* Direct call parser_prod#AAnnotation#n_atid= on */ +} +goto RET_LABEL; +} else { +} +var41 = self->attrs[COLOR_parser_nodes__AAnnotation___n_opar].val; /* _n_opar on */ +if (var41 == NULL) { +var42 = 0; /* cannot be null */ +} else { +{ /* Inline kernel#Object#== (var41,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var41,var_other) on */ +var47 = var41 == var_other; +var45 = var47; +goto RET_LABEL46; +RET_LABEL46:(void)0; +} +} +var43 = var45; +goto RET_LABEL44; +RET_LABEL44:(void)0; +} +var42 = var43; +} +if (var42){ +/* isa nullable TOpar */ +cltype49 = type_nullable_parser_nodes__TOpar.color; +idtype50 = type_nullable_parser_nodes__TOpar.id; +if(var_new_child == NULL) { +var48 = 1; } else { +if(cltype49 >= var_new_child->type->table_size) { +var48 = 0; +} else { +var48 = var_new_child->type->type_table[cltype49] == idtype50; } -RET_LABEL:; } -/* method parser_prod#AExprAtArg#replace_child for (self: Object, ANode, nullable ANode) */ -void VIRTUAL_parser_prod__AExprAtArg__replace_child(val* self, val* p0, val* p1) { -parser_prod__AExprAtArg__replace_child(self, p0, p1); -RET_LABEL:; +if (unlikely(!var48)) { +var_class_name51 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TOpar", var_class_name51); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7016); +show_backtrace(1); } -/* method parser_prod#AExprAtArg#n_expr= for (self: AExprAtArg, AExpr) */ -void parser_prod__AExprAtArg__n_expr_61d(val* self, val* p0) { -val* var_node /* var node: AExpr */; -var_node = p0; -self->attrs[COLOR_parser_nodes__AExprAtArg___n_expr].val = var_node; /* _n_expr on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; -RET_LABEL:; +{ +parser_prod__AAnnotation__n_opar_61d(self, var_new_child); /* Direct call parser_prod#AAnnotation#n_opar= on */ } -/* method parser_prod#AExprAtArg#n_expr= for (self: Object, AExpr) */ -void VIRTUAL_parser_prod__AExprAtArg__n_expr_61d(val* self, val* p0) { -parser_prod__AExprAtArg__n_expr_61d(self, p0); -RET_LABEL:; +goto RET_LABEL; +} else { } -/* method parser_prod#AExprAtArg#visit_all for (self: AExprAtArg, Visitor) */ -void parser_prod__AExprAtArg__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : AExpr */; -var_v = p0; -var = self->attrs[COLOR_parser_nodes__AExprAtArg___n_expr].val; /* _n_expr on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_expr"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11345); +{ +{ /* Inline parser_nodes#AAnnotation#n_args (self) on */ +var54 = self->attrs[COLOR_parser_nodes__AAnnotation___n_args].val; /* _n_args on */ +if (unlikely(var54 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2039); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; -RET_LABEL:; -} -/* method parser_prod#AExprAtArg#visit_all for (self: Object, Visitor) */ -void VIRTUAL_parser_prod__AExprAtArg__visit_all(val* self, val* p0) { -parser_prod__AExprAtArg__visit_all(self, p0); -RET_LABEL:; +var52 = var54; +RET_LABEL53:(void)0; } -/* method parser_prod#AAtAtArg#empty_init for (self: AAtAtArg) */ -void parser_prod__AAtAtArg__empty_init(val* self) { -RET_LABEL:; } -/* method parser_prod#AAtAtArg#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AAtAtArg__empty_init(val* self) { -parser_prod__AAtAtArg__empty_init(self); -RET_LABEL:; +{ +var55 = parser_nodes__ANodes__replace_child(var52, var_old_child, var_new_child); } -/* method parser_prod#AAtAtArg#init_aatatarg for (self: AAtAtArg, nullable AAnnotations) */ -void parser_prod__AAtAtArg__init_aatatarg(val* self, val* p0) { -val* var_n_annotations /* var n_annotations: nullable AAnnotations */; -var_n_annotations = p0; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AAtAtArg__empty_init]))(self) /* empty_init on */; -if (var_n_annotations == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11356); -show_backtrace(1); +if (var55){ +goto RET_LABEL; +} else { } -self->attrs[COLOR_parser_nodes__Prod___n_annotations].val = var_n_annotations; /* _n_annotations on */ -if (var_n_annotations == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11357); -show_backtrace(1); +var56 = self->attrs[COLOR_parser_nodes__AAnnotation___n_cpar].val; /* _n_cpar on */ +if (var56 == NULL) { +var57 = 0; /* cannot be null */ } else { -((void (*)(val*, val*))(var_n_annotations->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_annotations, self) /* parent= on */; +{ /* Inline kernel#Object#== (var56,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var56,var_other) on */ +var62 = var56 == var_other; +var60 = var62; +goto RET_LABEL61; +RET_LABEL61:(void)0; } -RET_LABEL:; } -/* method parser_prod#AAtAtArg#init_aatatarg for (self: Object, nullable AAnnotations) */ -void VIRTUAL_parser_prod__AAtAtArg__init_aatatarg(val* self, val* p0) { -parser_prod__AAtAtArg__init_aatatarg(self, p0); -RET_LABEL:; +var58 = var60; +goto RET_LABEL59; +RET_LABEL59:(void)0; } -/* method parser_prod#AAtAtArg#replace_child for (self: AAtAtArg, ANode, nullable ANode) */ -void parser_prod__AAtAtArg__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : nullable AAnnotations */; -short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; -short int var4 /* : Bool */; -int cltype; -int idtype; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ -if (var == NULL) { -var1 = 0; /* cannot be null */ -} else { -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; +var57 = var58; } -if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ +if (var57){ +/* isa nullable TCpar */ +cltype64 = type_nullable_parser_nodes__TCpar.color; +idtype65 = type_nullable_parser_nodes__TCpar.id; +if(var_new_child == NULL) { +var63 = 1; } else { -var3 = 1; /* arg is null and recv is not */ -} -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa AAnnotations */ -cltype = type_parser_nodes__AAnnotations.color; -idtype = type_parser_nodes__AAnnotations.id; -if(cltype >= var_new_child->type->table_size) { -var4 = 0; +if(cltype64 >= var_new_child->type->table_size) { +var63 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var63 = var_new_child->type->type_table[cltype64] == idtype65; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11365); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__Prod___n_annotations].val = var_new_child; /* _n_annotations on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11368); +if (unlikely(!var63)) { +var_class_name66 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable TCpar", var_class_name66); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7021); show_backtrace(1); } +{ +parser_prod__AAnnotation__n_cpar_61d(self, var_new_child); /* Direct call parser_prod#AAnnotation#n_cpar= on */ +} goto RET_LABEL; } else { } -RET_LABEL:; -} -/* method parser_prod#AAtAtArg#replace_child for (self: Object, ANode, nullable ANode) */ -void VIRTUAL_parser_prod__AAtAtArg__replace_child(val* self, val* p0, val* p1) { -parser_prod__AAtAtArg__replace_child(self, p0, p1); -RET_LABEL:; -} -/* method parser_prod#AAtAtArg#n_annotations= for (self: AAtAtArg, nullable AAnnotations) */ -void parser_prod__AAtAtArg__n_annotations_61d(val* self, val* p0) { -val* var_node /* var node: nullable AAnnotations */; -var_node = p0; -self->attrs[COLOR_parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ -if (var_node == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11377); -show_backtrace(1); +var67 = self->attrs[COLOR_parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ +if (var67 == NULL) { +var68 = 0; /* cannot be null */ } else { -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; -} -RET_LABEL:; +{ /* Inline kernel#Object#== (var67,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var67,var_other) on */ +var73 = var67 == var_other; +var71 = var73; +goto RET_LABEL72; +RET_LABEL72:(void)0; } -/* method parser_prod#AAtAtArg#n_annotations= for (self: Object, nullable AAnnotations) */ -void VIRTUAL_parser_prod__AAtAtArg__n_annotations_61d(val* self, val* p0) { -parser_prod__AAtAtArg__n_annotations_61d(self, p0); -RET_LABEL:; } -/* method parser_prod#AAtAtArg#visit_all for (self: AAtAtArg, Visitor) */ -void parser_prod__AAtAtArg__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : nullable AAnnotations */; -var_v = p0; -var = self->attrs[COLOR_parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; -RET_LABEL:; +var69 = var71; +goto RET_LABEL70; +RET_LABEL70:(void)0; } -/* method parser_prod#AAtAtArg#visit_all for (self: Object, Visitor) */ -void VIRTUAL_parser_prod__AAtAtArg__visit_all(val* self, val* p0) { -parser_prod__AAtAtArg__visit_all(self, p0); -RET_LABEL:; +var68 = var69; } -/* method parser_prod#AIdAtid#empty_init for (self: AIdAtid) */ -void parser_prod__AIdAtid__empty_init(val* self) { -RET_LABEL:; +if (var68){ +/* isa nullable AAnnotations */ +cltype75 = type_nullable_parser_nodes__AAnnotations.color; +idtype76 = type_nullable_parser_nodes__AAnnotations.id; +if(var_new_child == NULL) { +var74 = 1; +} else { +if(cltype75 >= var_new_child->type->table_size) { +var74 = 0; +} else { +var74 = var_new_child->type->type_table[cltype75] == idtype76; } -/* method parser_prod#AIdAtid#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AIdAtid__empty_init(val* self) { -parser_prod__AIdAtid__empty_init(self); -RET_LABEL:; } -/* method parser_prod#AIdAtid#init_aidatid for (self: AIdAtid, nullable TId) */ -void parser_prod__AIdAtid__init_aidatid(val* self, val* p0) { -val* var_n_id /* var n_id: nullable TId */; -var_n_id = p0; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AIdAtid__empty_init]))(self) /* empty_init on */; -if (var_n_id == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11394); +if (unlikely(!var74)) { +var_class_name77 = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "nullable AAnnotations", var_class_name77); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7025); show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_n_id; /* _n_id on */ -if (var_n_id == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11395); -show_backtrace(1); +{ +parser_prod__AAnnotation__n_annotations_61d(self, var_new_child); /* Direct call parser_prod#AAnnotation#n_annotations= on */ +} +goto RET_LABEL; } else { -((void (*)(val*, val*))(var_n_id->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_id, self) /* parent= on */; } RET_LABEL:; } -/* method parser_prod#AIdAtid#init_aidatid for (self: Object, nullable TId) */ -void VIRTUAL_parser_prod__AIdAtid__init_aidatid(val* self, val* p0) { -parser_prod__AIdAtid__init_aidatid(self, p0); +/* method parser_prod#AAnnotation#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AAnnotation__replace_child(val* self, val* p0, val* p1) { +parser_prod__AAnnotation__replace_child(self, p0, p1); /* Direct call parser_prod#AAnnotation#replace_child on */ RET_LABEL:; } -/* method parser_prod#AIdAtid#replace_child for (self: AIdAtid, ANode, nullable ANode) */ -void parser_prod__AIdAtid__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : Token */; +/* method parser_prod#AAnnotation#n_doc= for (self: AAnnotation, nullable ADoc) */ +void parser_prod__AAnnotation__n_doc_61d(val* self, val* p0) { +val* var_node /* var node: nullable ADoc */; +val* var /* : null */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; -int cltype; -int idtype; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11400); -show_backtrace(1); -} -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; -if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ +short int var5 /* : Bool */; +short int var6 /* : Bool */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AAnnotation___n_doc].val = var_node; /* _n_doc on */ +var = NULL; +if (var_node == NULL) { +var1 = 0; /* is null */ } else { -var3 = 1; /* arg is null and recv is not */ +var1 = 1; /* arg is null and recv is not */ } -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TId */ -cltype = type_parser_nodes__TId.color; -idtype = type_parser_nodes__TId.id; -if(cltype >= var_new_child->type->table_size) { -var4 = 0; -} else { -var4 = var_new_child->type->type_table[cltype] == idtype; +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11403); -show_backtrace(1); +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; } -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_new_child; /* _n_id on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11406); -show_backtrace(1); +var1 = var2; } -goto RET_LABEL; -} else { +if (var1){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; } -RET_LABEL:; } -/* method parser_prod#AIdAtid#replace_child for (self: Object, ANode, nullable ANode) */ -void VIRTUAL_parser_prod__AIdAtid__replace_child(val* self, val* p0, val* p1) { -parser_prod__AIdAtid__replace_child(self, p0, p1); -RET_LABEL:; +} else { } -/* method parser_prod#AIdAtid#n_id= for (self: AIdAtid, Token) */ -void parser_prod__AIdAtid__n_id_61d(val* self, val* p0) { -val* var_node /* var node: Token */; -var_node = p0; -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_node; /* _n_id on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; RET_LABEL:; } -/* method parser_prod#AIdAtid#n_id= for (self: Object, Token) */ -void VIRTUAL_parser_prod__AIdAtid__n_id_61d(val* self, val* p0) { -parser_prod__AIdAtid__n_id_61d(self, p0); +/* method parser_prod#AAnnotation#n_doc= for (self: Object, nullable ADoc) */ +void VIRTUAL_parser_prod__AAnnotation__n_doc_61d(val* self, val* p0) { +parser_prod__AAnnotation__n_doc_61d(self, p0); /* Direct call parser_prod#AAnnotation#n_doc= on */ RET_LABEL:; } -/* method parser_prod#AIdAtid#visit_all for (self: AIdAtid, Visitor) */ -void parser_prod__AIdAtid__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : Token */; -var_v = p0; -var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11421); -show_backtrace(1); +/* method parser_prod#AAnnotation#n_kwredef= for (self: AAnnotation, nullable TKwredef) */ +void parser_prod__AAnnotation__n_kwredef_61d(val* self, val* p0) { +val* var_node /* var node: nullable TKwredef */; +val* var /* : null */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AAnnotation___n_kwredef].val = var_node; /* _n_kwredef on */ +var = NULL; +if (var_node == NULL) { +var1 = 0; /* is null */ +} else { +var1 = 1; /* arg is null and recv is not */ } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; -RET_LABEL:; +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; } -/* method parser_prod#AIdAtid#visit_all for (self: Object, Visitor) */ -void VIRTUAL_parser_prod__AIdAtid__visit_all(val* self, val* p0) { -parser_prod__AIdAtid__visit_all(self, p0); -RET_LABEL:; +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; } -/* method parser_prod#AKwexternAtid#empty_init for (self: AKwexternAtid) */ -void parser_prod__AKwexternAtid__empty_init(val* self) { -RET_LABEL:; +var1 = var2; } -/* method parser_prod#AKwexternAtid#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AKwexternAtid__empty_init(val* self) { -parser_prod__AKwexternAtid__empty_init(self); -RET_LABEL:; +if (var1){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; } -/* method parser_prod#AKwexternAtid#init_akwexternatid for (self: AKwexternAtid, nullable TKwextern) */ -void parser_prod__AKwexternAtid__init_akwexternatid(val* self, val* p0) { -val* var_n_id /* var n_id: nullable TKwextern */; -var_n_id = p0; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AKwexternAtid__empty_init]))(self) /* empty_init on */; -if (var_n_id == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11432); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_n_id; /* _n_id on */ -if (var_n_id == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11433); -show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_id->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_id, self) /* parent= on */; } RET_LABEL:; } -/* method parser_prod#AKwexternAtid#init_akwexternatid for (self: Object, nullable TKwextern) */ -void VIRTUAL_parser_prod__AKwexternAtid__init_akwexternatid(val* self, val* p0) { -parser_prod__AKwexternAtid__init_akwexternatid(self, p0); +/* method parser_prod#AAnnotation#n_kwredef= for (self: Object, nullable TKwredef) */ +void VIRTUAL_parser_prod__AAnnotation__n_kwredef_61d(val* self, val* p0) { +parser_prod__AAnnotation__n_kwredef_61d(self, p0); /* Direct call parser_prod#AAnnotation#n_kwredef= on */ RET_LABEL:; } -/* method parser_prod#AKwexternAtid#replace_child for (self: AKwexternAtid, ANode, nullable ANode) */ -void parser_prod__AKwexternAtid__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : Token */; +/* method parser_prod#AAnnotation#n_visibility= for (self: AAnnotation, nullable AVisibility) */ +void parser_prod__AAnnotation__n_visibility_61d(val* self, val* p0) { +val* var_node /* var node: nullable AVisibility */; +val* var /* : null */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; -int cltype; -int idtype; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11438); -show_backtrace(1); -} -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; -if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ +short int var5 /* : Bool */; +short int var6 /* : Bool */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AAnnotation___n_visibility].val = var_node; /* _n_visibility on */ +var = NULL; +if (var_node == NULL) { +var1 = 0; /* is null */ } else { -var3 = 1; /* arg is null and recv is not */ +var1 = 1; /* arg is null and recv is not */ } -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TKwextern */ -cltype = type_parser_nodes__TKwextern.color; -idtype = type_parser_nodes__TKwextern.id; -if(cltype >= var_new_child->type->table_size) { -var4 = 0; -} else { -var4 = var_new_child->type->type_table[cltype] == idtype; +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11441); -show_backtrace(1); +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; } -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_new_child; /* _n_id on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11444); -show_backtrace(1); } -goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AKwexternAtid#replace_child for (self: Object, ANode, nullable ANode) */ -void VIRTUAL_parser_prod__AKwexternAtid__replace_child(val* self, val* p0, val* p1) { -parser_prod__AKwexternAtid__replace_child(self, p0, p1); +/* method parser_prod#AAnnotation#n_visibility= for (self: Object, nullable AVisibility) */ +void VIRTUAL_parser_prod__AAnnotation__n_visibility_61d(val* self, val* p0) { +parser_prod__AAnnotation__n_visibility_61d(self, p0); /* Direct call parser_prod#AAnnotation#n_visibility= on */ RET_LABEL:; } -/* method parser_prod#AKwexternAtid#n_id= for (self: AKwexternAtid, Token) */ -void parser_prod__AKwexternAtid__n_id_61d(val* self, val* p0) { -val* var_node /* var node: Token */; +/* method parser_prod#AAnnotation#n_atid= for (self: AAnnotation, AAtid) */ +void parser_prod__AAnnotation__n_atid_61d(val* self, val* p0) { +val* var_node /* var node: AAtid */; var_node = p0; -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_node; /* _n_id on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +self->attrs[COLOR_parser_nodes__AAnnotation___n_atid].val = var_node; /* _n_atid on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } -/* method parser_prod#AKwexternAtid#n_id= for (self: Object, Token) */ -void VIRTUAL_parser_prod__AKwexternAtid__n_id_61d(val* self, val* p0) { -parser_prod__AKwexternAtid__n_id_61d(self, p0); +/* method parser_prod#AAnnotation#n_atid= for (self: Object, AAtid) */ +void VIRTUAL_parser_prod__AAnnotation__n_atid_61d(val* self, val* p0) { +parser_prod__AAnnotation__n_atid_61d(self, p0); /* Direct call parser_prod#AAnnotation#n_atid= on */ RET_LABEL:; } -/* method parser_prod#AKwexternAtid#visit_all for (self: AKwexternAtid, Visitor) */ -void parser_prod__AKwexternAtid__visit_all(val* self, val* p0) { -val* var_v /* var v: Visitor */; -val* var /* : Token */; -var_v = p0; -var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11459); -show_backtrace(1); +/* method parser_prod#AAnnotation#n_opar= for (self: AAnnotation, nullable TOpar) */ +void parser_prod__AAnnotation__n_opar_61d(val* self, val* p0) { +val* var_node /* var node: nullable TOpar */; +val* var /* : null */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AAnnotation___n_opar].val = var_node; /* _n_opar on */ +var = NULL; +if (var_node == NULL) { +var1 = 0; /* is null */ +} else { +var1 = 1; /* arg is null and recv is not */ } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; -RET_LABEL:; +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; } -/* method parser_prod#AKwexternAtid#visit_all for (self: Object, Visitor) */ -void VIRTUAL_parser_prod__AKwexternAtid__visit_all(val* self, val* p0) { -parser_prod__AKwexternAtid__visit_all(self, p0); -RET_LABEL:; +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; } -/* method parser_prod#AKwinternAtid#empty_init for (self: AKwinternAtid) */ -void parser_prod__AKwinternAtid__empty_init(val* self) { -RET_LABEL:; +var1 = var2; } -/* method parser_prod#AKwinternAtid#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AKwinternAtid__empty_init(val* self) { -parser_prod__AKwinternAtid__empty_init(self); -RET_LABEL:; +if (var1){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; } -/* method parser_prod#AKwinternAtid#init_akwinternatid for (self: AKwinternAtid, nullable TKwintern) */ -void parser_prod__AKwinternAtid__init_akwinternatid(val* self, val* p0) { -val* var_n_id /* var n_id: nullable TKwintern */; -var_n_id = p0; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AKwinternAtid__empty_init]))(self) /* empty_init on */; -if (var_n_id == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11470); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_n_id; /* _n_id on */ -if (var_n_id == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11471); -show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_id->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_id, self) /* parent= on */; } RET_LABEL:; } -/* method parser_prod#AKwinternAtid#init_akwinternatid for (self: Object, nullable TKwintern) */ -void VIRTUAL_parser_prod__AKwinternAtid__init_akwinternatid(val* self, val* p0) { -parser_prod__AKwinternAtid__init_akwinternatid(self, p0); +/* method parser_prod#AAnnotation#n_opar= for (self: Object, nullable TOpar) */ +void VIRTUAL_parser_prod__AAnnotation__n_opar_61d(val* self, val* p0) { +parser_prod__AAnnotation__n_opar_61d(self, p0); /* Direct call parser_prod#AAnnotation#n_opar= on */ RET_LABEL:; } -/* method parser_prod#AKwinternAtid#replace_child for (self: AKwinternAtid, ANode, nullable ANode) */ -void parser_prod__AKwinternAtid__replace_child(val* self, val* p0, val* p1) { -val* var_old_child /* var old_child: ANode */; -val* var_new_child /* var new_child: nullable ANode */; -val* var /* : Token */; +/* method parser_prod#AAnnotation#n_cpar= for (self: AAnnotation, nullable TCpar) */ +void parser_prod__AAnnotation__n_cpar_61d(val* self, val* p0) { +val* var_node /* var node: nullable TCpar */; +val* var /* : null */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; -int cltype; -int idtype; -var_old_child = p0; -var_new_child = p1; -var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11476); -show_backtrace(1); -} -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; -if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ +short int var5 /* : Bool */; +short int var6 /* : Bool */; +var_node = p0; +self->attrs[COLOR_parser_nodes__AAnnotation___n_cpar].val = var_node; /* _n_cpar on */ +var = NULL; +if (var_node == NULL) { +var1 = 0; /* is null */ } else { -var3 = 1; /* arg is null and recv is not */ +var1 = 1; /* arg is null and recv is not */ } -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TKwintern */ -cltype = type_parser_nodes__TKwintern.color; -idtype = type_parser_nodes__TKwintern.id; -if(cltype >= var_new_child->type->table_size) { -var4 = 0; -} else { -var4 = var_new_child->type->type_table[cltype] == idtype; +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11479); -show_backtrace(1); +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; } -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_new_child; /* _n_id on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11482); -show_backtrace(1); } -goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AKwinternAtid#replace_child for (self: Object, ANode, nullable ANode) */ -void VIRTUAL_parser_prod__AKwinternAtid__replace_child(val* self, val* p0, val* p1) { -parser_prod__AKwinternAtid__replace_child(self, p0, p1); +/* method parser_prod#AAnnotation#n_cpar= for (self: Object, nullable TCpar) */ +void VIRTUAL_parser_prod__AAnnotation__n_cpar_61d(val* self, val* p0) { +parser_prod__AAnnotation__n_cpar_61d(self, p0); /* Direct call parser_prod#AAnnotation#n_cpar= on */ RET_LABEL:; } -/* method parser_prod#AKwinternAtid#n_id= for (self: AKwinternAtid, Token) */ -void parser_prod__AKwinternAtid__n_id_61d(val* self, val* p0) { -val* var_node /* var node: Token */; +/* method parser_prod#AAnnotation#n_annotations= for (self: AAnnotation, nullable AAnnotations) */ +void parser_prod__AAnnotation__n_annotations_61d(val* self, val* p0) { +val* var_node /* var node: nullable AAnnotations */; +val* var /* : null */; +short int var1 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var4 /* : Bool */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; var_node = p0; -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_node; /* _n_id on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +self->attrs[COLOR_parser_nodes__Prod___n_annotations].val = var_node; /* _n_annotations on */ +var = NULL; +if (var_node == NULL) { +var1 = 0; /* is null */ +} else { +var1 = 1; /* arg is null and recv is not */ +} +if (0) { +{ /* Inline kernel#Object#!= (var_node,var) on */ +var_other = var; +{ +var5 = ((short int (*)(val*, val*))(var_node->class->vft[COLOR_kernel__Object___61d_61d]))(var_node, var_other) /* == on */; +var4 = var5; +} +var6 = !var4; +var2 = var6; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} +if (var1){ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL7:(void)0; +} +} +} else { +} RET_LABEL:; } -/* method parser_prod#AKwinternAtid#n_id= for (self: Object, Token) */ -void VIRTUAL_parser_prod__AKwinternAtid__n_id_61d(val* self, val* p0) { -parser_prod__AKwinternAtid__n_id_61d(self, p0); +/* method parser_prod#AAnnotation#n_annotations= for (self: Object, nullable AAnnotations) */ +void VIRTUAL_parser_prod__AAnnotation__n_annotations_61d(val* self, val* p0) { +parser_prod__AAnnotation__n_annotations_61d(self, p0); /* Direct call parser_prod#AAnnotation#n_annotations= on */ RET_LABEL:; } -/* method parser_prod#AKwinternAtid#visit_all for (self: AKwinternAtid, Visitor) */ -void parser_prod__AKwinternAtid__visit_all(val* self, val* p0) { +/* method parser_prod#AAnnotation#visit_all for (self: AAnnotation, Visitor) */ +void parser_prod__AAnnotation__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; -val* var /* : Token */; +val* var /* : nullable ADoc */; +val* var1 /* : nullable TKwredef */; +val* var2 /* : nullable AVisibility */; +val* var3 /* : AAtid */; +val* var4 /* : nullable TOpar */; +val* var5 /* : ANodes[AExpr] */; +val* var7 /* : ANodes[AExpr] */; +val* var8 /* : nullable TCpar */; +val* var9 /* : nullable AAnnotations */; var_v = p0; -var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11497); +var = self->attrs[COLOR_parser_nodes__AAnnotation___n_doc].val; /* _n_doc on */ +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var1 = self->attrs[COLOR_parser_nodes__AAnnotation___n_kwredef].val; /* _n_kwredef on */ +{ +parser_nodes__Visitor__enter_visit(var_v, var1); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var2 = self->attrs[COLOR_parser_nodes__AAnnotation___n_visibility].val; /* _n_visibility on */ +{ +parser_nodes__Visitor__enter_visit(var_v, var2); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var3 = self->attrs[COLOR_parser_nodes__AAnnotation___n_atid].val; /* _n_atid on */ +if (unlikely(var3 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_atid"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7072); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; -RET_LABEL:; +{ +parser_nodes__Visitor__enter_visit(var_v, var3); /* Direct call parser_nodes#Visitor#enter_visit on */ } -/* method parser_prod#AKwinternAtid#visit_all for (self: Object, Visitor) */ -void VIRTUAL_parser_prod__AKwinternAtid__visit_all(val* self, val* p0) { -parser_prod__AKwinternAtid__visit_all(self, p0); -RET_LABEL:; +var4 = self->attrs[COLOR_parser_nodes__AAnnotation___n_opar].val; /* _n_opar on */ +{ +parser_nodes__Visitor__enter_visit(var_v, var4); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +{ +{ /* Inline parser_nodes#AAnnotation#n_args (self) on */ +var7 = self->attrs[COLOR_parser_nodes__AAnnotation___n_args].val; /* _n_args on */ +if (unlikely(var7 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_args"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 2039); +show_backtrace(1); +} +var5 = var7; +RET_LABEL6:(void)0; +} +} +{ +parser_nodes__ANodes__visit_all(var5, var_v); /* Direct call parser_nodes#ANodes#visit_all on */ +} +var8 = self->attrs[COLOR_parser_nodes__AAnnotation___n_cpar].val; /* _n_cpar on */ +{ +parser_nodes__Visitor__enter_visit(var_v, var8); /* Direct call parser_nodes#Visitor#enter_visit on */ +} +var9 = self->attrs[COLOR_parser_nodes__Prod___n_annotations].val; /* _n_annotations on */ +{ +parser_nodes__Visitor__enter_visit(var_v, var9); /* Direct call parser_nodes#Visitor#enter_visit on */ } -/* method parser_prod#AKwreadableAtid#empty_init for (self: AKwreadableAtid) */ -void parser_prod__AKwreadableAtid__empty_init(val* self) { RET_LABEL:; } -/* method parser_prod#AKwreadableAtid#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AKwreadableAtid__empty_init(val* self) { -parser_prod__AKwreadableAtid__empty_init(self); +/* method parser_prod#AAnnotation#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AAnnotation__visit_all(val* self, val* p0) { +parser_prod__AAnnotation__visit_all(self, p0); /* Direct call parser_prod#AAnnotation#visit_all on */ RET_LABEL:; } -/* method parser_prod#AKwreadableAtid#init_akwreadableatid for (self: AKwreadableAtid, nullable TKwreadable) */ -void parser_prod__AKwreadableAtid__init_akwreadableatid(val* self, val* p0) { -val* var_n_id /* var n_id: nullable TKwreadable */; +/* method parser_prod#AIdAtid#init_aidatid for (self: AIdAtid, nullable TId) */ +void parser_prod__AIdAtid__init_aidatid(val* self, val* p0) { +val* var_n_id /* var n_id: nullable TId */; var_n_id = p0; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AKwreadableAtid__empty_init]))(self) /* empty_init on */; -if (var_n_id == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11508); +if (unlikely(var_n_id == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7084); show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_n_id; /* _n_id on */ +self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_n_id; /* _n_id on */ if (var_n_id == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11509); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7085); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_id->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_id, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_id,self) on */ +if (unlikely(var_n_id == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_id->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} } RET_LABEL:; } -/* method parser_prod#AKwreadableAtid#init_akwreadableatid for (self: Object, nullable TKwreadable) */ -void VIRTUAL_parser_prod__AKwreadableAtid__init_akwreadableatid(val* self, val* p0) { -parser_prod__AKwreadableAtid__init_akwreadableatid(self, p0); +/* method parser_prod#AIdAtid#init_aidatid for (self: Object, nullable TId) */ +void VIRTUAL_parser_prod__AIdAtid__init_aidatid(val* self, val* p0) { +parser_prod__AIdAtid__init_aidatid(self, p0); /* Direct call parser_prod#AIdAtid#init_aidatid on */ RET_LABEL:; } -/* method parser_prod#AKwreadableAtid#replace_child for (self: AKwreadableAtid, ANode, nullable ANode) */ -void parser_prod__AKwreadableAtid__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod#AIdAtid#replace_child for (self: AIdAtid, ANode, nullable ANode) */ +void parser_prod__AIdAtid__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; +const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11514); +var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7090); show_backtrace(1); } -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ +/* isa TId */ +cltype = type_parser_nodes__TId.color; +idtype = type_parser_nodes__TId.id; +if(var_new_child == NULL) { +var7 = 0; } else { -var3 = 1; /* arg is null and recv is not */ -} -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TKwreadable */ -cltype = type_parser_nodes__TKwreadable.color; -idtype = type_parser_nodes__TKwreadable.id; if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var7 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11517); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_new_child; /* _n_id on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11520); +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TId", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7091); show_backtrace(1); } +{ +parser_prod__AIdAtid__n_id_61d(self, var_new_child); /* Direct call parser_prod#AIdAtid#n_id= on */ +} goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AKwreadableAtid#replace_child for (self: Object, ANode, nullable ANode) */ -void VIRTUAL_parser_prod__AKwreadableAtid__replace_child(val* self, val* p0, val* p1) { -parser_prod__AKwreadableAtid__replace_child(self, p0, p1); +/* method parser_prod#AIdAtid#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AIdAtid__replace_child(val* self, val* p0, val* p1) { +parser_prod__AIdAtid__replace_child(self, p0, p1); /* Direct call parser_prod#AIdAtid#replace_child on */ RET_LABEL:; } -/* method parser_prod#AKwreadableAtid#n_id= for (self: AKwreadableAtid, Token) */ -void parser_prod__AKwreadableAtid__n_id_61d(val* self, val* p0) { +/* method parser_prod#AIdAtid#n_id= for (self: AIdAtid, Token) */ +void parser_prod__AIdAtid__n_id_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_node; /* _n_id on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_node; /* _n_id on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } -/* method parser_prod#AKwreadableAtid#n_id= for (self: Object, Token) */ -void VIRTUAL_parser_prod__AKwreadableAtid__n_id_61d(val* self, val* p0) { -parser_prod__AKwreadableAtid__n_id_61d(self, p0); +/* method parser_prod#AIdAtid#n_id= for (self: Object, Token) */ +void VIRTUAL_parser_prod__AIdAtid__n_id_61d(val* self, val* p0) { +parser_prod__AIdAtid__n_id_61d(self, p0); /* Direct call parser_prod#AIdAtid#n_id= on */ RET_LABEL:; } -/* method parser_prod#AKwreadableAtid#visit_all for (self: AKwreadableAtid, Visitor) */ -void parser_prod__AKwreadableAtid__visit_all(val* self, val* p0) { +/* method parser_prod#AIdAtid#visit_all for (self: AIdAtid, Visitor) */ +void parser_prod__AIdAtid__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11535); +var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7105); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; -RET_LABEL:; -} -/* method parser_prod#AKwreadableAtid#visit_all for (self: Object, Visitor) */ -void VIRTUAL_parser_prod__AKwreadableAtid__visit_all(val* self, val* p0) { -parser_prod__AKwreadableAtid__visit_all(self, p0); -RET_LABEL:; +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ } -/* method parser_prod#AKwwritableAtid#empty_init for (self: AKwwritableAtid) */ -void parser_prod__AKwwritableAtid__empty_init(val* self) { RET_LABEL:; } -/* method parser_prod#AKwwritableAtid#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AKwwritableAtid__empty_init(val* self) { -parser_prod__AKwwritableAtid__empty_init(self); +/* method parser_prod#AIdAtid#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AIdAtid__visit_all(val* self, val* p0) { +parser_prod__AIdAtid__visit_all(self, p0); /* Direct call parser_prod#AIdAtid#visit_all on */ RET_LABEL:; } -/* method parser_prod#AKwwritableAtid#init_akwwritableatid for (self: AKwwritableAtid, nullable TKwwritable) */ -void parser_prod__AKwwritableAtid__init_akwwritableatid(val* self, val* p0) { -val* var_n_id /* var n_id: nullable TKwwritable */; +/* method parser_prod#AKwexternAtid#init_akwexternatid for (self: AKwexternAtid, nullable TKwextern) */ +void parser_prod__AKwexternAtid__init_akwexternatid(val* self, val* p0) { +val* var_n_id /* var n_id: nullable TKwextern */; var_n_id = p0; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AKwwritableAtid__empty_init]))(self) /* empty_init on */; -if (var_n_id == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11546); +if (unlikely(var_n_id == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7113); show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_n_id; /* _n_id on */ +self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_n_id; /* _n_id on */ if (var_n_id == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11547); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7114); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_id->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_id, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_id,self) on */ +if (unlikely(var_n_id == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_id->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} } RET_LABEL:; } -/* method parser_prod#AKwwritableAtid#init_akwwritableatid for (self: Object, nullable TKwwritable) */ -void VIRTUAL_parser_prod__AKwwritableAtid__init_akwwritableatid(val* self, val* p0) { -parser_prod__AKwwritableAtid__init_akwwritableatid(self, p0); +/* method parser_prod#AKwexternAtid#init_akwexternatid for (self: Object, nullable TKwextern) */ +void VIRTUAL_parser_prod__AKwexternAtid__init_akwexternatid(val* self, val* p0) { +parser_prod__AKwexternAtid__init_akwexternatid(self, p0); /* Direct call parser_prod#AKwexternAtid#init_akwexternatid on */ RET_LABEL:; } -/* method parser_prod#AKwwritableAtid#replace_child for (self: AKwwritableAtid, ANode, nullable ANode) */ -void parser_prod__AKwwritableAtid__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod#AKwexternAtid#replace_child for (self: AKwexternAtid, ANode, nullable ANode) */ +void parser_prod__AKwexternAtid__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; +const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11552); +var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7119); show_backtrace(1); } -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ +/* isa TKwextern */ +cltype = type_parser_nodes__TKwextern.color; +idtype = type_parser_nodes__TKwextern.id; +if(var_new_child == NULL) { +var7 = 0; } else { -var3 = 1; /* arg is null and recv is not */ -} -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TKwwritable */ -cltype = type_parser_nodes__TKwwritable.color; -idtype = type_parser_nodes__TKwwritable.id; if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var7 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11555); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_new_child; /* _n_id on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11558); +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwextern", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7120); show_backtrace(1); } +{ +parser_prod__AKwexternAtid__n_id_61d(self, var_new_child); /* Direct call parser_prod#AKwexternAtid#n_id= on */ +} goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AKwwritableAtid#replace_child for (self: Object, ANode, nullable ANode) */ -void VIRTUAL_parser_prod__AKwwritableAtid__replace_child(val* self, val* p0, val* p1) { -parser_prod__AKwwritableAtid__replace_child(self, p0, p1); +/* method parser_prod#AKwexternAtid#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AKwexternAtid__replace_child(val* self, val* p0, val* p1) { +parser_prod__AKwexternAtid__replace_child(self, p0, p1); /* Direct call parser_prod#AKwexternAtid#replace_child on */ RET_LABEL:; } -/* method parser_prod#AKwwritableAtid#n_id= for (self: AKwwritableAtid, Token) */ -void parser_prod__AKwwritableAtid__n_id_61d(val* self, val* p0) { +/* method parser_prod#AKwexternAtid#n_id= for (self: AKwexternAtid, Token) */ +void parser_prod__AKwexternAtid__n_id_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_node; /* _n_id on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_node; /* _n_id on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } -/* method parser_prod#AKwwritableAtid#n_id= for (self: Object, Token) */ -void VIRTUAL_parser_prod__AKwwritableAtid__n_id_61d(val* self, val* p0) { -parser_prod__AKwwritableAtid__n_id_61d(self, p0); +/* method parser_prod#AKwexternAtid#n_id= for (self: Object, Token) */ +void VIRTUAL_parser_prod__AKwexternAtid__n_id_61d(val* self, val* p0) { +parser_prod__AKwexternAtid__n_id_61d(self, p0); /* Direct call parser_prod#AKwexternAtid#n_id= on */ RET_LABEL:; } -/* method parser_prod#AKwwritableAtid#visit_all for (self: AKwwritableAtid, Visitor) */ -void parser_prod__AKwwritableAtid__visit_all(val* self, val* p0) { +/* method parser_prod#AKwexternAtid#visit_all for (self: AKwexternAtid, Visitor) */ +void parser_prod__AKwexternAtid__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11573); +var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7134); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; -RET_LABEL:; -} -/* method parser_prod#AKwwritableAtid#visit_all for (self: Object, Visitor) */ -void VIRTUAL_parser_prod__AKwwritableAtid__visit_all(val* self, val* p0) { -parser_prod__AKwwritableAtid__visit_all(self, p0); -RET_LABEL:; +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ } -/* method parser_prod#AKwimportAtid#empty_init for (self: AKwimportAtid) */ -void parser_prod__AKwimportAtid__empty_init(val* self) { RET_LABEL:; } -/* method parser_prod#AKwimportAtid#empty_init for (self: Object) */ -void VIRTUAL_parser_prod__AKwimportAtid__empty_init(val* self) { -parser_prod__AKwimportAtid__empty_init(self); +/* method parser_prod#AKwexternAtid#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AKwexternAtid__visit_all(val* self, val* p0) { +parser_prod__AKwexternAtid__visit_all(self, p0); /* Direct call parser_prod#AKwexternAtid#visit_all on */ RET_LABEL:; } -/* method parser_prod#AKwimportAtid#init_akwimportatid for (self: AKwimportAtid, nullable TKwimport) */ -void parser_prod__AKwimportAtid__init_akwimportatid(val* self, val* p0) { -val* var_n_id /* var n_id: nullable TKwimport */; +/* method parser_prod#AKwabstractAtid#init_akwabstractatid for (self: AKwabstractAtid, nullable TKwabstract) */ +void parser_prod__AKwabstractAtid__init_akwabstractatid(val* self, val* p0) { +val* var_n_id /* var n_id: nullable TKwabstract */; var_n_id = p0; -((void (*)(val*))(self->class->vft[COLOR_parser_prod__AKwimportAtid__empty_init]))(self) /* empty_init on */; -if (var_n_id == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11584); +if (unlikely(var_n_id == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7142); show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_n_id; /* _n_id on */ +self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_n_id; /* _n_id on */ if (var_n_id == NULL) { -fprintf(stderr, "Runtime error: %s", "Reciever is null"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11585); +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7143); show_backtrace(1); } else { -((void (*)(val*, val*))(var_n_id->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_n_id, self) /* parent= on */; +{ /* Inline parser_nodes#ANode#parent= (var_n_id,self) on */ +if (unlikely(var_n_id == NULL)) { +PRINT_ERROR("Runtime error: %s", "Receiver is null"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_nodes.nit", 36); +show_backtrace(1); +} +var_n_id->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} } RET_LABEL:; } -/* method parser_prod#AKwimportAtid#init_akwimportatid for (self: Object, nullable TKwimport) */ -void VIRTUAL_parser_prod__AKwimportAtid__init_akwimportatid(val* self, val* p0) { -parser_prod__AKwimportAtid__init_akwimportatid(self, p0); +/* method parser_prod#AKwabstractAtid#init_akwabstractatid for (self: Object, nullable TKwabstract) */ +void VIRTUAL_parser_prod__AKwabstractAtid__init_akwabstractatid(val* self, val* p0) { +parser_prod__AKwabstractAtid__init_akwabstractatid(self, p0); /* Direct call parser_prod#AKwabstractAtid#init_akwabstractatid on */ RET_LABEL:; } -/* method parser_prod#AKwimportAtid#replace_child for (self: AKwimportAtid, ANode, nullable ANode) */ -void parser_prod__AKwimportAtid__replace_child(val* self, val* p0, val* p1) { +/* method parser_prod#AKwabstractAtid#replace_child for (self: AKwabstractAtid, ANode, nullable ANode) */ +void parser_prod__AKwabstractAtid__replace_child(val* self, val* p0, val* p1) { val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : Token */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; int cltype; int idtype; +const char* var_class_name; var_old_child = p0; var_new_child = p1; -var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11590); +var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7148); show_backtrace(1); } -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; +{ +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; +} if (var1){ -var2 = NULL; -if (var_new_child == NULL) { -var3 = 0; /* is null */ +/* isa TKwabstract */ +cltype = type_parser_nodes__TKwabstract.color; +idtype = type_parser_nodes__TKwabstract.id; +if(var_new_child == NULL) { +var7 = 0; } else { -var3 = 1; /* arg is null and recv is not */ -} -if (var3){ -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; -/* isa TKwimport */ -cltype = type_parser_nodes__TKwimport.color; -idtype = type_parser_nodes__TKwimport.id; if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var7 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var7 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11593); -show_backtrace(1); } -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_new_child; /* _n_id on */ -} else { -fprintf(stderr, "Runtime error: %s", "Aborted"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11596); +if (unlikely(!var7)) { +var_class_name = var_new_child == NULL ? "null" : var_new_child->type->name; +PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "TKwabstract", var_class_name); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7149); show_backtrace(1); } +{ +parser_prod__AKwabstractAtid__n_id_61d(self, var_new_child); /* Direct call parser_prod#AKwabstractAtid#n_id= on */ +} goto RET_LABEL; } else { } RET_LABEL:; } -/* method parser_prod#AKwimportAtid#replace_child for (self: Object, ANode, nullable ANode) */ -void VIRTUAL_parser_prod__AKwimportAtid__replace_child(val* self, val* p0, val* p1) { -parser_prod__AKwimportAtid__replace_child(self, p0, p1); +/* method parser_prod#AKwabstractAtid#replace_child for (self: Object, ANode, nullable ANode) */ +void VIRTUAL_parser_prod__AKwabstractAtid__replace_child(val* self, val* p0, val* p1) { +parser_prod__AKwabstractAtid__replace_child(self, p0, p1); /* Direct call parser_prod#AKwabstractAtid#replace_child on */ RET_LABEL:; } -/* method parser_prod#AKwimportAtid#n_id= for (self: AKwimportAtid, Token) */ -void parser_prod__AKwimportAtid__n_id_61d(val* self, val* p0) { +/* method parser_prod#AKwabstractAtid#n_id= for (self: AKwabstractAtid, Token) */ +void parser_prod__AKwabstractAtid__n_id_61d(val* self, val* p0) { val* var_node /* var node: Token */; var_node = p0; -self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_node; /* _n_id on */ -((void (*)(val*, val*))(var_node->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_node, self) /* parent= on */; +self->attrs[COLOR_parser_nodes__AAtid___n_id].val = var_node; /* _n_id on */ +{ +{ /* Inline parser_nodes#ANode#parent= (var_node,self) on */ +var_node->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL1:(void)0; +} +} RET_LABEL:; } -/* method parser_prod#AKwimportAtid#n_id= for (self: Object, Token) */ -void VIRTUAL_parser_prod__AKwimportAtid__n_id_61d(val* self, val* p0) { -parser_prod__AKwimportAtid__n_id_61d(self, p0); +/* method parser_prod#AKwabstractAtid#n_id= for (self: Object, Token) */ +void VIRTUAL_parser_prod__AKwabstractAtid__n_id_61d(val* self, val* p0) { +parser_prod__AKwabstractAtid__n_id_61d(self, p0); /* Direct call parser_prod#AKwabstractAtid#n_id= on */ RET_LABEL:; } -/* method parser_prod#AKwimportAtid#visit_all for (self: AKwimportAtid, Visitor) */ -void parser_prod__AKwimportAtid__visit_all(val* self, val* p0) { +/* method parser_prod#AKwabstractAtid#visit_all for (self: AKwabstractAtid, Visitor) */ +void parser_prod__AKwabstractAtid__visit_all(val* self, val* p0) { val* var_v /* var v: Visitor */; val* var /* : Token */; var_v = p0; -var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ -if (var == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_id"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11611); +var = self->attrs[COLOR_parser_nodes__AAtid___n_id].val; /* _n_id on */ +if (unlikely(var == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_id"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7163); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var); /* Direct call parser_nodes#Visitor#enter_visit on */ +} RET_LABEL:; } -/* method parser_prod#AKwimportAtid#visit_all for (self: Object, Visitor) */ -void VIRTUAL_parser_prod__AKwimportAtid__visit_all(val* self, val* p0) { -parser_prod__AKwimportAtid__visit_all(self, p0); +/* method parser_prod#AKwabstractAtid#visit_all for (self: Object, Visitor) */ +void VIRTUAL_parser_prod__AKwabstractAtid__visit_all(val* self, val* p0) { +parser_prod__AKwabstractAtid__visit_all(self, p0); /* Direct call parser_prod#AKwabstractAtid#visit_all on */ RET_LABEL:; } /* method parser_prod#Start#replace_child for (self: Start, ANode, nullable ANode) */ @@ -4796,47 +8863,95 @@ val* var_old_child /* var old_child: ANode */; val* var_new_child /* var new_child: nullable ANode */; val* var /* : nullable AModule */; short int var1 /* : Bool */; -val* var2 /* : null */; -short int var3 /* : Bool */; +short int var2 /* : Bool */; +val* var_other /* var other: nullable Object */; short int var4 /* : Bool */; +short int var6 /* : Bool */; +val* var7 /* : null */; +short int var8 /* : Bool */; +short int var9 /* : Bool */; +short int var11 /* : Bool */; +short int var13 /* : Bool */; +short int var15 /* : Bool */; int cltype; int idtype; -val* var5 /* : null */; +val* var16 /* : null */; var_old_child = p0; var_new_child = p1; var = self->attrs[COLOR_parser_nodes__Start___n_base].val; /* _n_base on */ if (var == NULL) { var1 = 0; /* cannot be null */ } else { -var1 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_old_child) /* == on */; +{ /* Inline kernel#Object#== (var,var_old_child) on */ +var_other = var_old_child; +{ +{ /* Inline kernel#Object#is_same_instance (var,var_other) on */ +var6 = var == var_other; +var4 = var6; +goto RET_LABEL5; +RET_LABEL5:(void)0; +} +} +var2 = var4; +goto RET_LABEL3; +RET_LABEL3:(void)0; +} +var1 = var2; } if (var1){ -var2 = NULL; +var7 = NULL; if (var_new_child == NULL) { -var3 = 1; /* is null */ +var8 = 1; /* is null */ } else { -var3 = 0; /* arg is null but recv is not */ +var8 = 0; /* arg is null but recv is not */ } -if (var3){ +if (0) { +{ /* Inline kernel#Object#== (var_new_child,var7) on */ +var_other = var7; +{ +{ /* Inline kernel#Object#is_same_instance (var_new_child,var_other) on */ +var13 = var_new_child == var_other; +var11 = var13; +goto RET_LABEL12; +RET_LABEL12:(void)0; +} +} +var9 = var11; +goto RET_LABEL10; +RET_LABEL10:(void)0; +} +var8 = var9; +} +if (var8){ } else { -((void (*)(val*, val*))(var_new_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_new_child, self) /* parent= on */; +{ +{ /* Inline parser_nodes#ANode#parent= (var_new_child,self) on */ +var_new_child->attrs[COLOR_parser_nodes__ANode___parent].val = self; /* _parent on */ +RET_LABEL14:(void)0; +} +} /* isa AModule */ cltype = type_parser_nodes__AModule.color; idtype = type_parser_nodes__AModule.id; if(cltype >= var_new_child->type->table_size) { -var4 = 0; +var15 = 0; } else { -var4 = var_new_child->type->type_table[cltype] == idtype; +var15 = var_new_child->type->type_table[cltype] == idtype; } -if (!var4) { -fprintf(stderr, "Runtime error: %s", "Assert failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11622); +if (unlikely(!var15)) { +PRINT_ERROR("Runtime error: %s", "Assert failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7203); show_backtrace(1); } self->attrs[COLOR_parser_nodes__Start___n_base].val = var_new_child; /* _n_base on */ } -var5 = NULL; -((void (*)(val*, val*))(var_old_child->class->vft[COLOR_parser_nodes__ANode__parent_61d]))(var_old_child, var5) /* parent= on */; +var16 = NULL; +{ +{ /* Inline parser_nodes#ANode#parent= (var_old_child,var16) on */ +var_old_child->attrs[COLOR_parser_nodes__ANode___parent].val = var16; /* _parent on */ +RET_LABEL17:(void)0; +} +} goto RET_LABEL; } else { } @@ -4844,7 +8959,7 @@ RET_LABEL:; } /* method parser_prod#Start#replace_child for (self: Object, ANode, nullable ANode) */ void VIRTUAL_parser_prod__Start__replace_child(val* self, val* p0, val* p1) { -parser_prod__Start__replace_child(self, p0, p1); +parser_prod__Start__replace_child(self, p0, p1); /* Direct call parser_prod#Start#replace_child on */ RET_LABEL:; } /* method parser_prod#Start#visit_all for (self: Start, Visitor) */ @@ -4853,8 +8968,13 @@ val* var_v /* var v: Visitor */; val* var /* : nullable AModule */; val* var1 /* : null */; short int var2 /* : Bool */; -val* var3 /* : nullable AModule */; -val* var4 /* : EOF */; +short int var3 /* : Bool */; +val* var_other /* var other: nullable Object */; +short int var5 /* : Bool */; +short int var6 /* : Bool */; +short int var7 /* : Bool */; +val* var8 /* : nullable AModule */; +val* var9 /* : EOF */; var_v = p0; var = self->attrs[COLOR_parser_nodes__Start___n_base].val; /* _n_base on */ var1 = NULL; @@ -4863,27 +8983,45 @@ var2 = 0; /* is null */ } else { var2 = 1; /* arg is null and recv is not */ } +if (0) { +{ /* Inline kernel#Object#!= (var,var1) on */ +var_other = var1; +{ +var6 = ((short int (*)(val*, val*))(var->class->vft[COLOR_kernel__Object___61d_61d]))(var, var_other) /* == on */; +var5 = var6; +} +var7 = !var5; +var3 = var7; +goto RET_LABEL4; +RET_LABEL4:(void)0; +} +var2 = var3; +} if (var2){ -var3 = self->attrs[COLOR_parser_nodes__Start___n_base].val; /* _n_base on */ -if (var3 == NULL) { -fprintf(stderr, "Runtime error: %s", "Cast failed"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11633); +var8 = self->attrs[COLOR_parser_nodes__Start___n_base].val; /* _n_base on */ +if (unlikely(var8 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Cast failed"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7214); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var3) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var8); /* Direct call parser_nodes#Visitor#enter_visit on */ +} } else { } -var4 = self->attrs[COLOR_parser_nodes__Start___n_eof].val; /* _n_eof on */ -if (var4 == NULL) { -fprintf(stderr, "Runtime error: %s", "Uninitialized attribute _n_eof"); -fprintf(stderr, " (%s:%d)\n", "src/parser/parser_prod.nit", 11635); +var9 = self->attrs[COLOR_parser_nodes__Start___n_eof].val; /* _n_eof on */ +if (unlikely(var9 == NULL)) { +PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _n_eof"); +PRINT_ERROR(" (%s:%d)\n", "parser/parser_prod.nit", 7216); show_backtrace(1); } -((void (*)(val*, val*))(var_v->class->vft[COLOR_parser_nodes__Visitor__enter_visit]))(var_v, var4) /* enter_visit on */; +{ +parser_nodes__Visitor__enter_visit(var_v, var9); /* Direct call parser_nodes#Visitor#enter_visit on */ +} RET_LABEL:; } /* method parser_prod#Start#visit_all for (self: Object, Visitor) */ void VIRTUAL_parser_prod__Start__visit_all(val* self, val* p0) { -parser_prod__Start__visit_all(self, p0); +parser_prod__Start__visit_all(self, p0); /* Direct call parser_prod#Start#visit_all on */ RET_LABEL:; }