-#include "nit__location.sep.0.h"
+#include "nitc__location.sep.0.h"
/* method location#SourceFile#filename for (self: SourceFile): String */
-val* nit___nit__SourceFile___filename(val* self) {
+val* nitc___nitc__SourceFile___filename(val* self) {
val* var /* : String */;
val* var1 /* : String */;
-var1 = self->attrs[COLOR_nit__location__SourceFile___filename].val; /* _filename on <self:SourceFile> */
+var1 = self->attrs[COLOR_nitc__location__SourceFile___filename].val; /* _filename on <self:SourceFile> */
if (unlikely(var1 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _filename");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 22);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 22);
fatal_exit(1);
}
var = var1;
return var;
}
/* method location#SourceFile#filename= for (self: SourceFile, String) */
-void nit___nit__SourceFile___filename_61d(val* self, val* p0) {
-self->attrs[COLOR_nit__location__SourceFile___filename].val = p0; /* _filename on <self:SourceFile> */
+void nitc___nitc__SourceFile___filename_61d(val* self, val* p0) {
+self->attrs[COLOR_nitc__location__SourceFile___filename].val = p0; /* _filename on <self:SourceFile> */
RET_LABEL:;
}
/* method location#SourceFile#string for (self: SourceFile): String */
-val* nit___nit__SourceFile___string(val* self) {
+val* nitc___nitc__SourceFile___string(val* self) {
val* var /* : String */;
val* var1 /* : String */;
-var1 = self->attrs[COLOR_nit__location__SourceFile___string].val; /* _string on <self:SourceFile> */
+var1 = self->attrs[COLOR_nitc__location__SourceFile___string].val; /* _string on <self:SourceFile> */
if (unlikely(var1 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _string");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 25);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 25);
fatal_exit(1);
}
var = var1;
return var;
}
/* method location#SourceFile#string= for (self: SourceFile, String) */
-void nit___nit__SourceFile___string_61d(val* self, val* p0) {
-self->attrs[COLOR_nit__location__SourceFile___string].val = p0; /* _string on <self:SourceFile> */
+void nitc___nitc__SourceFile___string_61d(val* self, val* p0) {
+self->attrs[COLOR_nitc__location__SourceFile___string].val = p0; /* _string on <self:SourceFile> */
RET_LABEL:;
}
/* method location#SourceFile#stream for (self: SourceFile): Reader */
-val* nit___nit__SourceFile___stream(val* self) {
+val* nitc___nitc__SourceFile___stream(val* self) {
val* var /* : Reader */;
val* var1 /* : Reader */;
-var1 = self->attrs[COLOR_nit__location__SourceFile___stream].val; /* _stream on <self:SourceFile> */
+var1 = self->attrs[COLOR_nitc__location__SourceFile___stream].val; /* _stream on <self:SourceFile> */
if (unlikely(var1 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _stream");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 28);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 28);
fatal_exit(1);
}
var = var1;
return var;
}
/* method location#SourceFile#stream= for (self: SourceFile, Reader) */
-void nit___nit__SourceFile___stream_61d(val* self, val* p0) {
-self->attrs[COLOR_nit__location__SourceFile___stream].val = p0; /* _stream on <self:SourceFile> */
+void nitc___nitc__SourceFile___stream_61d(val* self, val* p0) {
+self->attrs[COLOR_nitc__location__SourceFile___stream].val = p0; /* _stream on <self:SourceFile> */
RET_LABEL:;
}
/* method location#SourceFile#init for (self: SourceFile) */
-void nit___nit__SourceFile___standard__kernel__Object__init(val* self) {
+void nitc___nitc__SourceFile___core__kernel__Object__init(val* self) {
val* var /* : Reader */;
val* var2 /* : Reader */;
val* var3 /* : String */;
val* var7 /* : Array[Int] */;
val* var8 /* : nullable Object */;
{
+((void(*)(val* self))(self->class->vft[COLOR_nitc___nitc__SourceFile___core__kernel__Object__init]))(self); /* init on <self:SourceFile>*/
+}
+{
{ /* Inline location#SourceFile#stream (self) on <self:SourceFile> */
-var2 = self->attrs[COLOR_nit__location__SourceFile___stream].val; /* _stream on <self:SourceFile> */
+var2 = self->attrs[COLOR_nitc__location__SourceFile___stream].val; /* _stream on <self:SourceFile> */
if (unlikely(var2 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _stream");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 28);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 28);
fatal_exit(1);
}
var = var2;
}
}
{
-var3 = standard___standard__Reader___read_all(var);
+var3 = core___core__Reader___read_all(var);
}
{
{ /* Inline location#SourceFile#string= (self,var3) on <self:SourceFile> */
-self->attrs[COLOR_nit__location__SourceFile___string].val = var3; /* _string on <self:SourceFile> */
+self->attrs[COLOR_nitc__location__SourceFile___string].val = var3; /* _string on <self:SourceFile> */
RET_LABEL4:(void)0;
}
}
{
{ /* Inline location#SourceFile#line_starts (self) on <self:SourceFile> */
-var7 = self->attrs[COLOR_nit__location__SourceFile___line_starts].val; /* _line_starts on <self:SourceFile> */
+var7 = self->attrs[COLOR_nitc__location__SourceFile___line_starts].val; /* _line_starts on <self:SourceFile> */
if (unlikely(var7 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _line_starts");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 45);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 46);
fatal_exit(1);
}
var5 = var7;
}
{
var8 = (val*)(0l<<2|1);
-standard___standard__Array___standard__abstract_collection__Sequence___91d_93d_61d(var5, 0l, var8); /* Direct call array#Array#[]= on <var5:Array[Int]>*/
+core___core__Array___core__abstract_collection__Sequence___91d_93d_61d(var5, 0l, var8); /* Direct call array#Array#[]= on <var5:Array[Int]>*/
}
RET_LABEL:;
}
/* method location#SourceFile#from_string for (self: SourceFile, String, String) */
-void nit___nit__SourceFile___from_string(val* self, val* p0, val* p1) {
+void nitc___nitc__SourceFile___from_string(val* self, val* p0, val* p1) {
val* var_filename /* var filename: String */;
val* var_string /* var string: String */;
val* var /* : Array[Int] */;
var_string = p1;
{
{ /* Inline location#SourceFile#filename= (self,var_filename) on <self:SourceFile> */
-self->attrs[COLOR_nit__location__SourceFile___filename].val = var_filename; /* _filename on <self:SourceFile> */
+self->attrs[COLOR_nitc__location__SourceFile___filename].val = var_filename; /* _filename on <self:SourceFile> */
RET_LABEL1:(void)0;
}
}
{
{ /* Inline location#SourceFile#string= (self,var_string) on <self:SourceFile> */
-self->attrs[COLOR_nit__location__SourceFile___string].val = var_string; /* _string on <self:SourceFile> */
+self->attrs[COLOR_nitc__location__SourceFile___string].val = var_string; /* _string on <self:SourceFile> */
RET_LABEL2:(void)0;
}
}
{
{ /* Inline location#SourceFile#line_starts (self) on <self:SourceFile> */
-var4 = self->attrs[COLOR_nit__location__SourceFile___line_starts].val; /* _line_starts on <self:SourceFile> */
+var4 = self->attrs[COLOR_nitc__location__SourceFile___line_starts].val; /* _line_starts on <self:SourceFile> */
if (unlikely(var4 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _line_starts");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 45);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 46);
fatal_exit(1);
}
var = var4;
}
{
var5 = (val*)(0l<<2|1);
-standard___standard__Array___standard__abstract_collection__Sequence___91d_93d_61d(var, 0l, var5); /* Direct call array#Array#[]= on <var:Array[Int]>*/
+core___core__Array___core__abstract_collection__Sequence___91d_93d_61d(var, 0l, var5); /* Direct call array#Array#[]= on <var:Array[Int]>*/
}
RET_LABEL:;
}
/* method location#SourceFile#line_starts for (self: SourceFile): Array[Int] */
-val* nit___nit__SourceFile___line_starts(val* self) {
+val* nitc___nitc__SourceFile___line_starts(val* self) {
val* var /* : Array[Int] */;
val* var1 /* : Array[Int] */;
-var1 = self->attrs[COLOR_nit__location__SourceFile___line_starts].val; /* _line_starts on <self:SourceFile> */
+var1 = self->attrs[COLOR_nitc__location__SourceFile___line_starts].val; /* _line_starts on <self:SourceFile> */
if (unlikely(var1 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _line_starts");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 45);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 46);
fatal_exit(1);
}
var = var1;
return var;
}
/* method location#Location#file for (self: Location): nullable SourceFile */
-val* nit___nit__Location___file(val* self) {
+val* nitc___nitc__Location___file(val* self) {
val* var /* : nullable SourceFile */;
val* var1 /* : nullable SourceFile */;
-var1 = self->attrs[COLOR_nit__location__Location___file].val; /* _file on <self:Location> */
+var1 = self->attrs[COLOR_nitc__location__Location___file].val; /* _file on <self:Location> */
var = var1;
RET_LABEL:;
return var;
}
/* method location#Location#file= for (self: Location, nullable SourceFile) */
-void nit___nit__Location___file_61d(val* self, val* p0) {
-self->attrs[COLOR_nit__location__Location___file].val = p0; /* _file on <self:Location> */
+void nitc___nitc__Location___file_61d(val* self, val* p0) {
+self->attrs[COLOR_nitc__location__Location___file].val = p0; /* _file on <self:Location> */
RET_LABEL:;
}
/* method location#Location#line_start for (self: Location): Int */
-long nit___nit__Location___line_start(val* self) {
+long nitc___nitc__Location___line_start(val* self) {
long var /* : Int */;
long var1 /* : Int */;
-var1 = self->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <self:Location> */
+var1 = self->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <self:Location> */
var = var1;
RET_LABEL:;
return var;
}
/* method location#Location#line_start= for (self: Location, Int) */
-void nit___nit__Location___line_start_61d(val* self, long p0) {
-self->attrs[COLOR_nit__location__Location___line_start].l = p0; /* _line_start on <self:Location> */
+void nitc___nitc__Location___line_start_61d(val* self, long p0) {
+self->attrs[COLOR_nitc__location__Location___line_start].l = p0; /* _line_start on <self:Location> */
RET_LABEL:;
}
/* method location#Location#line_end for (self: Location): Int */
-long nit___nit__Location___line_end(val* self) {
+long nitc___nitc__Location___line_end(val* self) {
long var /* : Int */;
long var1 /* : Int */;
-var1 = self->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <self:Location> */
+var1 = self->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <self:Location> */
var = var1;
RET_LABEL:;
return var;
}
/* method location#Location#line_end= for (self: Location, Int) */
-void nit___nit__Location___line_end_61d(val* self, long p0) {
-self->attrs[COLOR_nit__location__Location___line_end].l = p0; /* _line_end on <self:Location> */
+void nitc___nitc__Location___line_end_61d(val* self, long p0) {
+self->attrs[COLOR_nitc__location__Location___line_end].l = p0; /* _line_end on <self:Location> */
RET_LABEL:;
}
/* method location#Location#column_start for (self: Location): Int */
-long nit___nit__Location___column_start(val* self) {
+long nitc___nitc__Location___column_start(val* self) {
long var /* : Int */;
long var1 /* : Int */;
-var1 = self->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <self:Location> */
+var1 = self->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <self:Location> */
var = var1;
RET_LABEL:;
return var;
}
/* method location#Location#column_start= for (self: Location, Int) */
-void nit___nit__Location___column_start_61d(val* self, long p0) {
-self->attrs[COLOR_nit__location__Location___column_start].l = p0; /* _column_start on <self:Location> */
+void nitc___nitc__Location___column_start_61d(val* self, long p0) {
+self->attrs[COLOR_nitc__location__Location___column_start].l = p0; /* _column_start on <self:Location> */
RET_LABEL:;
}
/* method location#Location#column_end for (self: Location): Int */
-long nit___nit__Location___column_end(val* self) {
+long nitc___nitc__Location___column_end(val* self) {
long var /* : Int */;
long var1 /* : Int */;
-var1 = self->attrs[COLOR_nit__location__Location___column_end].l; /* _column_end on <self:Location> */
+var1 = self->attrs[COLOR_nitc__location__Location___column_end].l; /* _column_end on <self:Location> */
var = var1;
RET_LABEL:;
return var;
}
/* method location#Location#column_end= for (self: Location, Int) */
-void nit___nit__Location___column_end_61d(val* self, long p0) {
-self->attrs[COLOR_nit__location__Location___column_end].l = p0; /* _column_end on <self:Location> */
+void nitc___nitc__Location___column_end_61d(val* self, long p0) {
+self->attrs[COLOR_nitc__location__Location___column_end].l = p0; /* _column_end on <self:Location> */
RET_LABEL:;
}
/* method location#Location#pstart for (self: Location): Int */
-long nit___nit__Location___pstart(val* self) {
+long nitc___nitc__Location___pstart(val* self) {
long var /* : Int */;
val* var1 /* : nullable SourceFile */;
val* var3 /* : nullable SourceFile */;
long var32 /* : Int */;
{
{ /* Inline location#Location#file (self) on <self:Location> */
-var3 = self->attrs[COLOR_nit__location__Location___file].val; /* _file on <self:Location> */
+var3 = self->attrs[COLOR_nitc__location__Location___file].val; /* _file on <self:Location> */
var1 = var3;
RET_LABEL2:(void)0;
}
}
if (var1 == NULL) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 139);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 144);
fatal_exit(1);
} else {
{ /* Inline location#SourceFile#line_starts (var1) on <var1:nullable SourceFile> */
if (unlikely(var1 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 45);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 46);
fatal_exit(1);
}
-var6 = var1->attrs[COLOR_nit__location__SourceFile___line_starts].val; /* _line_starts on <var1:nullable SourceFile> */
+var6 = var1->attrs[COLOR_nitc__location__SourceFile___line_starts].val; /* _line_starts on <var1:nullable SourceFile> */
if (unlikely(var6 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _line_starts");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 45);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 46);
fatal_exit(1);
}
var4 = var6;
}
{
{ /* Inline location#Location#line_start (self) on <self:Location> */
-var9 = self->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <self:Location> */
+var9 = self->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <self:Location> */
var7 = var9;
RET_LABEL8:(void)0;
}
/* <1l:Int> isa OTHER */
var12 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var12)) {
-var_class_name = type_standard__Int.name;
+var_class_name = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 540);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 734);
fatal_exit(1);
}
var13 = var7 - 1l;
}
}
{
-var14 = standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(var4, var10);
+var14 = core___core__Array___core__abstract_collection__SequenceRead___91d_93d(var4, var10);
}
{
{ /* Inline location#Location#column_start (self) on <self:Location> */
-var17 = self->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <self:Location> */
+var17 = self->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <self:Location> */
var15 = var17;
RET_LABEL16:(void)0;
}
/* <var15:Int> isa OTHER */
var20 = 1; /* easy <var15:Int> isa OTHER*/
if (unlikely(!var20)) {
-var_class_name23 = type_standard__Int.name;
+var_class_name23 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name23);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var24 = (long)(var14)>>2;
/* <1l:Int> isa OTHER */
var28 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var28)) {
-var_class_name31 = type_standard__Int.name;
+var_class_name31 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name31);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 540);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 734);
fatal_exit(1);
}
var32 = var18 - 1l;
return var;
}
/* method location#Location#pend for (self: Location): Int */
-long nit___nit__Location___pend(val* self) {
+long nitc___nitc__Location___pend(val* self) {
long var /* : Int */;
val* var1 /* : nullable SourceFile */;
val* var3 /* : nullable SourceFile */;
long var32 /* : Int */;
{
{ /* Inline location#Location#file (self) on <self:Location> */
-var3 = self->attrs[COLOR_nit__location__Location___file].val; /* _file on <self:Location> */
+var3 = self->attrs[COLOR_nitc__location__Location___file].val; /* _file on <self:Location> */
var1 = var3;
RET_LABEL2:(void)0;
}
}
if (var1 == NULL) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 142);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 147);
fatal_exit(1);
} else {
{ /* Inline location#SourceFile#line_starts (var1) on <var1:nullable SourceFile> */
if (unlikely(var1 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 45);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 46);
fatal_exit(1);
}
-var6 = var1->attrs[COLOR_nit__location__SourceFile___line_starts].val; /* _line_starts on <var1:nullable SourceFile> */
+var6 = var1->attrs[COLOR_nitc__location__SourceFile___line_starts].val; /* _line_starts on <var1:nullable SourceFile> */
if (unlikely(var6 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _line_starts");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 45);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 46);
fatal_exit(1);
}
var4 = var6;
}
{
{ /* Inline location#Location#line_end (self) on <self:Location> */
-var9 = self->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <self:Location> */
+var9 = self->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <self:Location> */
var7 = var9;
RET_LABEL8:(void)0;
}
/* <1l:Int> isa OTHER */
var12 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var12)) {
-var_class_name = type_standard__Int.name;
+var_class_name = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 540);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 734);
fatal_exit(1);
}
var13 = var7 - 1l;
}
}
{
-var14 = standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(var4, var10);
+var14 = core___core__Array___core__abstract_collection__SequenceRead___91d_93d(var4, var10);
}
{
{ /* Inline location#Location#column_end (self) on <self:Location> */
-var17 = self->attrs[COLOR_nit__location__Location___column_end].l; /* _column_end on <self:Location> */
+var17 = self->attrs[COLOR_nitc__location__Location___column_end].l; /* _column_end on <self:Location> */
var15 = var17;
RET_LABEL16:(void)0;
}
/* <var15:Int> isa OTHER */
var20 = 1; /* easy <var15:Int> isa OTHER*/
if (unlikely(!var20)) {
-var_class_name23 = type_standard__Int.name;
+var_class_name23 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name23);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var24 = (long)(var14)>>2;
/* <1l:Int> isa OTHER */
var28 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var28)) {
-var_class_name31 = type_standard__Int.name;
+var_class_name31 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name31);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 540);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 734);
fatal_exit(1);
}
var32 = var18 - 1l;
return var;
}
/* method location#Location#text for (self: Location): String */
-val* nit___nit__Location___text(val* self) {
+val* nitc___nitc__Location___text(val* self) {
val* var /* : String */;
val* var1 /* : nullable String */;
val* var3 /* : nullable String */;
val* var28 /* : Text */;
{
{ /* Inline location#Location#text_cache (self) on <self:Location> */
-var3 = self->attrs[COLOR_nit__location__Location___text_cache].val; /* _text_cache on <self:Location> */
+var3 = self->attrs[COLOR_nitc__location__Location___text_cache].val; /* _text_cache on <self:Location> */
var1 = var3;
RET_LABEL2:(void)0;
}
{ /* Inline kernel#Object#!= (var_res,((val*)NULL)) on <var_res:nullable String> */
var_other = ((val*)NULL);
{
-var7 = ((short int(*)(val* self, val* p0))(var_res->class->vft[COLOR_standard__kernel__Object___61d_61d]))(var_res, var_other); /* == on <var_res:nullable String(String)>*/
+var7 = ((short int(*)(val* self, val* p0))(var_res->class->vft[COLOR_core__kernel__Object___61d_61d]))(var_res, var_other); /* == on <var_res:nullable String(String)>*/
}
var8 = !var7;
var5 = var8;
}
var_l = self;
{
-var9 = nit___nit__Location___pstart(self);
+var9 = nitc___nitc__Location___pstart(self);
}
var_pstart = var9;
{
-var10 = nit___nit__Location___pend(self);
+var10 = nitc___nitc__Location___pend(self);
}
var_pend = var10;
{
{ /* Inline location#Location#file (var_l) on <var_l:Location> */
-var13 = var_l->attrs[COLOR_nit__location__Location___file].val; /* _file on <var_l:Location> */
+var13 = var_l->attrs[COLOR_nitc__location__Location___file].val; /* _file on <var_l:Location> */
var11 = var13;
RET_LABEL12:(void)0;
}
}
if (var11 == NULL) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 152);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 157);
fatal_exit(1);
} else {
{ /* Inline location#SourceFile#string (var11) on <var11:nullable SourceFile> */
if (unlikely(var11 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 25);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 25);
fatal_exit(1);
}
-var16 = var11->attrs[COLOR_nit__location__SourceFile___string].val; /* _string on <var11:nullable SourceFile> */
+var16 = var11->attrs[COLOR_nitc__location__SourceFile___string].val; /* _string on <var11:nullable SourceFile> */
if (unlikely(var16 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _string");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 25);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 25);
fatal_exit(1);
}
var14 = var16;
/* <var_pstart:Int> isa OTHER */
var19 = 1; /* easy <var_pstart:Int> isa OTHER*/
if (unlikely(!var19)) {
-var_class_name = type_standard__Int.name;
+var_class_name = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 540);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 734);
fatal_exit(1);
}
var20 = var_pend - var_pstart;
/* <1l:Int> isa OTHER */
var23 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var23)) {
-var_class_name26 = type_standard__Int.name;
+var_class_name26 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name26);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var27 = var17 + 1l;
}
}
{
-var28 = ((val*(*)(val* self, long p0, long p1))(var14->class->vft[COLOR_standard__string__Text__substring]))(var14, var_pstart, var21); /* substring on <var14:String>*/
+var28 = ((val*(*)(val* self, long p0, long p1))(var14->class->vft[COLOR_core__abstract_text__Text__substring]))(var14, var_pstart, var21); /* substring on <var14:String>*/
}
var_res = var28;
{
{ /* Inline location#Location#text_cache= (self,var_res) on <self:Location> */
-self->attrs[COLOR_nit__location__Location___text_cache].val = var_res; /* _text_cache on <self:Location> */
+self->attrs[COLOR_nitc__location__Location___text_cache].val = var_res; /* _text_cache on <self:Location> */
RET_LABEL29:(void)0;
}
}
return var;
}
/* method location#Location#text_cache for (self: Location): nullable String */
-val* nit___nit__Location___text_cache(val* self) {
+val* nitc___nitc__Location___text_cache(val* self) {
val* var /* : nullable String */;
val* var1 /* : nullable String */;
-var1 = self->attrs[COLOR_nit__location__Location___text_cache].val; /* _text_cache on <self:Location> */
+var1 = self->attrs[COLOR_nitc__location__Location___text_cache].val; /* _text_cache on <self:Location> */
var = var1;
RET_LABEL:;
return var;
}
/* method location#Location#text_cache= for (self: Location, nullable String) */
-void nit___nit__Location___text_cache_61d(val* self, val* p0) {
-self->attrs[COLOR_nit__location__Location___text_cache].val = p0; /* _text_cache on <self:Location> */
+void nitc___nitc__Location___text_cache_61d(val* self, val* p0) {
+self->attrs[COLOR_nitc__location__Location___text_cache].val = p0; /* _text_cache on <self:Location> */
RET_LABEL:;
}
/* method location#Location#== for (self: Location, nullable Object): Bool */
-short int nit___nit__Location___standard__kernel__Object___61d_61d(val* self, val* p0) {
+short int nitc___nitc__Location___core__kernel__Object___61d_61d(val* self, val* p0) {
short int var /* : Bool */;
val* var_other /* var other: nullable Object */;
short int var1 /* : Bool */;
var1 = 0; /* arg is null but recv is not */
}
if (0) {
-var2 = ((short int(*)(val* self, val* p0))((((long)var_other&3)?class_info[((long)var_other&3)]:var_other->class)->vft[COLOR_standard__kernel__Object___61d_61d]))(var_other, ((val*)NULL)); /* == on <var_other:nullable Object>*/
+var2 = ((short int(*)(val* self, val* p0))((((long)var_other&3)?class_info[((long)var_other&3)]:var_other->class)->vft[COLOR_core__kernel__Object___61d_61d]))(var_other, ((val*)NULL)); /* == on <var_other:nullable Object>*/
var1 = var2;
}
if (var1){
} else {
}
/* <var_other:nullable Object(Object)> isa Location */
-cltype = type_nit__Location.color;
-idtype = type_nit__Location.id;
+cltype = type_nitc__Location.color;
+idtype = type_nitc__Location.id;
if(cltype >= (((long)var_other&3)?type_info[((long)var_other&3)]:var_other->type)->table_size) {
var3 = 0;
} else {
}
{
{ /* Inline location#Location#file (var_other) on <var_other:nullable Object(Location)> */
-var7 = var_other->attrs[COLOR_nit__location__Location___file].val; /* _file on <var_other:nullable Object(Location)> */
+var7 = var_other->attrs[COLOR_nitc__location__Location___file].val; /* _file on <var_other:nullable Object(Location)> */
var5 = var7;
RET_LABEL6:(void)0;
}
}
{
{ /* Inline location#Location#file (self) on <self:Location> */
-var10 = self->attrs[COLOR_nit__location__Location___file].val; /* _file on <self:Location> */
+var10 = self->attrs[COLOR_nitc__location__Location___file].val; /* _file on <self:Location> */
var8 = var10;
RET_LABEL9:(void)0;
}
{ /* Inline kernel#Object#!= (var5,var8) on <var5:nullable SourceFile> */
var_other14 = var8;
{
-var15 = ((short int(*)(val* self, val* p0))(var5->class->vft[COLOR_standard__kernel__Object___61d_61d]))(var5, var_other14); /* == on <var5:nullable SourceFile(SourceFile)>*/
+var15 = ((short int(*)(val* self, val* p0))(var5->class->vft[COLOR_core__kernel__Object___61d_61d]))(var5, var_other14); /* == on <var5:nullable SourceFile(SourceFile)>*/
}
var16 = !var15;
var12 = var16;
}
{
{ /* Inline location#Location#line_start (var_other) on <var_other:nullable Object(Location)> */
-var19 = var_other->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <var_other:nullable Object(Location)> */
+var19 = var_other->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <var_other:nullable Object(Location)> */
var17 = var19;
RET_LABEL18:(void)0;
}
}
{
{ /* Inline location#Location#line_start (self) on <self:Location> */
-var22 = self->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <self:Location> */
+var22 = self->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <self:Location> */
var20 = var22;
RET_LABEL21:(void)0;
}
}
{
{ /* Inline location#Location#line_end (var_other) on <var_other:nullable Object(Location)> */
-var29 = var_other->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <var_other:nullable Object(Location)> */
+var29 = var_other->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <var_other:nullable Object(Location)> */
var27 = var29;
RET_LABEL28:(void)0;
}
}
{
{ /* Inline location#Location#line_end (self) on <self:Location> */
-var32 = self->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <self:Location> */
+var32 = self->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <self:Location> */
var30 = var32;
RET_LABEL31:(void)0;
}
}
{
{ /* Inline location#Location#column_start (var_other) on <var_other:nullable Object(Location)> */
-var39 = var_other->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <var_other:nullable Object(Location)> */
+var39 = var_other->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <var_other:nullable Object(Location)> */
var37 = var39;
RET_LABEL38:(void)0;
}
}
{
{ /* Inline location#Location#column_start (self) on <self:Location> */
-var42 = self->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <self:Location> */
+var42 = self->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <self:Location> */
var40 = var42;
RET_LABEL41:(void)0;
}
}
{
{ /* Inline location#Location#column_end (var_other) on <var_other:nullable Object(Location)> */
-var49 = var_other->attrs[COLOR_nit__location__Location___column_end].l; /* _column_end on <var_other:nullable Object(Location)> */
+var49 = var_other->attrs[COLOR_nitc__location__Location___column_end].l; /* _column_end on <var_other:nullable Object(Location)> */
var47 = var49;
RET_LABEL48:(void)0;
}
}
{
{ /* Inline location#Location#column_end (self) on <self:Location> */
-var52 = self->attrs[COLOR_nit__location__Location___column_end].l; /* _column_end on <self:Location> */
+var52 = self->attrs[COLOR_nitc__location__Location___column_end].l; /* _column_end on <self:Location> */
var50 = var52;
RET_LABEL51:(void)0;
}
return var;
}
/* method location#Location#located_in for (self: Location, nullable Location): Bool */
-short int nit___nit__Location___located_in(val* self, val* p0) {
+short int nitc___nitc__Location___located_in(val* self, val* p0) {
short int var /* : Bool */;
val* var_loc /* var loc: nullable Location */;
short int var1 /* : Bool */;
var1 = 0; /* arg is null but recv is not */
}
if (0) {
-var2 = nit___nit__Location___standard__kernel__Object___61d_61d(var_loc, ((val*)NULL));
+var2 = nitc___nitc__Location___core__kernel__Object___61d_61d(var_loc, ((val*)NULL));
var1 = var2;
}
if (var1){
}
{
{ /* Inline location#Location#line_start (self) on <self:Location> */
-var5 = self->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <self:Location> */
+var5 = self->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <self:Location> */
var3 = var5;
RET_LABEL4:(void)0;
}
}
{
{ /* Inline location#Location#line_start (var_loc) on <var_loc:nullable Location(Location)> */
-var8 = var_loc->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <var_loc:nullable Location(Location)> */
+var8 = var_loc->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <var_loc:nullable Location(Location)> */
var6 = var8;
RET_LABEL7:(void)0;
}
/* <var6:Int> isa OTHER */
var11 = 1; /* easy <var6:Int> isa OTHER*/
if (unlikely(!var11)) {
-var_class_name = type_standard__Int.name;
+var_class_name = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 534);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 728);
fatal_exit(1);
}
var12 = var3 < var6;
}
{
{ /* Inline location#Location#line_start (self) on <self:Location> */
-var15 = self->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <self:Location> */
+var15 = self->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <self:Location> */
var13 = var15;
RET_LABEL14:(void)0;
}
}
{
{ /* Inline location#Location#line_end (var_loc) on <var_loc:nullable Location(Location)> */
-var18 = var_loc->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <var_loc:nullable Location(Location)> */
+var18 = var_loc->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <var_loc:nullable Location(Location)> */
var16 = var18;
RET_LABEL17:(void)0;
}
/* <var16:Int> isa OTHER */
var21 = 1; /* easy <var16:Int> isa OTHER*/
if (unlikely(!var21)) {
-var_class_name24 = type_standard__Int.name;
+var_class_name24 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name24);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 536);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 730);
fatal_exit(1);
}
var25 = var13 > var16;
}
{
{ /* Inline location#Location#line_end (self) on <self:Location> */
-var28 = self->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <self:Location> */
+var28 = self->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <self:Location> */
var26 = var28;
RET_LABEL27:(void)0;
}
}
{
{ /* Inline location#Location#line_end (var_loc) on <var_loc:nullable Location(Location)> */
-var31 = var_loc->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <var_loc:nullable Location(Location)> */
+var31 = var_loc->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <var_loc:nullable Location(Location)> */
var29 = var31;
RET_LABEL30:(void)0;
}
/* <var29:Int> isa OTHER */
var34 = 1; /* easy <var29:Int> isa OTHER*/
if (unlikely(!var34)) {
-var_class_name37 = type_standard__Int.name;
+var_class_name37 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name37);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 536);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 730);
fatal_exit(1);
}
var38 = var26 > var29;
}
{
{ /* Inline location#Location#line_start (self) on <self:Location> */
-var41 = self->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <self:Location> */
+var41 = self->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <self:Location> */
var39 = var41;
RET_LABEL40:(void)0;
}
}
{
{ /* Inline location#Location#line_start (var_loc) on <var_loc:nullable Location(Location)> */
-var44 = var_loc->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <var_loc:nullable Location(Location)> */
+var44 = var_loc->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <var_loc:nullable Location(Location)> */
var42 = var44;
RET_LABEL43:(void)0;
}
if (var45){
{
{ /* Inline location#Location#column_start (self) on <self:Location> */
-var50 = self->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <self:Location> */
+var50 = self->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <self:Location> */
var48 = var50;
RET_LABEL49:(void)0;
}
}
{
{ /* Inline location#Location#column_start (var_loc) on <var_loc:nullable Location(Location)> */
-var53 = var_loc->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <var_loc:nullable Location(Location)> */
+var53 = var_loc->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <var_loc:nullable Location(Location)> */
var51 = var53;
RET_LABEL52:(void)0;
}
/* <var51:Int> isa OTHER */
var56 = 1; /* easy <var51:Int> isa OTHER*/
if (unlikely(!var56)) {
-var_class_name59 = type_standard__Int.name;
+var_class_name59 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name59);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 534);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 728);
fatal_exit(1);
}
var60 = var48 < var51;
}
{
{ /* Inline location#Location#column_start (self) on <self:Location> */
-var63 = self->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <self:Location> */
+var63 = self->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <self:Location> */
var61 = var63;
RET_LABEL62:(void)0;
}
}
{
{ /* Inline location#Location#column_end (var_loc) on <var_loc:nullable Location(Location)> */
-var66 = var_loc->attrs[COLOR_nit__location__Location___column_end].l; /* _column_end on <var_loc:nullable Location(Location)> */
+var66 = var_loc->attrs[COLOR_nitc__location__Location___column_end].l; /* _column_end on <var_loc:nullable Location(Location)> */
var64 = var66;
RET_LABEL65:(void)0;
}
/* <var64:Int> isa OTHER */
var69 = 1; /* easy <var64:Int> isa OTHER*/
if (unlikely(!var69)) {
-var_class_name72 = type_standard__Int.name;
+var_class_name72 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name72);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 536);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 730);
fatal_exit(1);
}
var73 = var61 > var64;
}
{
{ /* Inline location#Location#line_end (self) on <self:Location> */
-var77 = self->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <self:Location> */
+var77 = self->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <self:Location> */
var75 = var77;
RET_LABEL76:(void)0;
}
}
{
{ /* Inline location#Location#line_end (var_loc) on <var_loc:nullable Location(Location)> */
-var80 = var_loc->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <var_loc:nullable Location(Location)> */
+var80 = var_loc->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <var_loc:nullable Location(Location)> */
var78 = var80;
RET_LABEL79:(void)0;
}
if (var81){
{
{ /* Inline location#Location#column_end (self) on <self:Location> */
-var86 = self->attrs[COLOR_nit__location__Location___column_end].l; /* _column_end on <self:Location> */
+var86 = self->attrs[COLOR_nitc__location__Location___column_end].l; /* _column_end on <self:Location> */
var84 = var86;
RET_LABEL85:(void)0;
}
}
{
{ /* Inline location#Location#column_end (var_loc) on <var_loc:nullable Location(Location)> */
-var89 = var_loc->attrs[COLOR_nit__location__Location___column_end].l; /* _column_end on <var_loc:nullable Location(Location)> */
+var89 = var_loc->attrs[COLOR_nitc__location__Location___column_end].l; /* _column_end on <var_loc:nullable Location(Location)> */
var87 = var89;
RET_LABEL88:(void)0;
}
/* <var87:Int> isa OTHER */
var92 = 1; /* easy <var87:Int> isa OTHER*/
if (unlikely(!var92)) {
-var_class_name95 = type_standard__Int.name;
+var_class_name95 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name95);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 536);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 730);
fatal_exit(1);
}
var96 = var84 > var87;
return var;
}
/* method location#Location#to_s for (self: Location): String */
-val* nit___nit__Location___standard__string__Object__to_s(val* self) {
+val* nitc___nitc__Location___core__abstract_text__Object__to_s(val* self) {
val* var /* : String */;
static val* varonce;
val* var1 /* : String */;
char* var2 /* : NativeString */;
-val* var3 /* : FlatString */;
+val* var3 /* : String */;
val* var_file_part /* var file_part: String */;
val* var4 /* : nullable SourceFile */;
val* var6 /* : nullable SourceFile */;
static val* varonce48;
val* var49 /* : String */;
char* var50 /* : NativeString */;
-val* var51 /* : FlatString */;
+val* var51 /* : String */;
val* var52 /* : String */;
long var53 /* : Int */;
long var55 /* : Int */;
static val* varonce73;
val* var74 /* : String */;
char* var75 /* : NativeString */;
-val* var76 /* : FlatString */;
+val* var76 /* : String */;
long var77 /* : Int */;
long var79 /* : Int */;
val* var80 /* : String */;
static val* varonce88;
val* var89 /* : String */;
char* var90 /* : NativeString */;
-val* var91 /* : FlatString */;
+val* var91 /* : String */;
static val* varonce92;
val* var93 /* : String */;
char* var94 /* : NativeString */;
-val* var95 /* : FlatString */;
+val* var95 /* : String */;
long var96 /* : Int */;
long var98 /* : Int */;
val* var99 /* : String */;
static val* varonce111;
val* var112 /* : String */;
char* var113 /* : NativeString */;
-val* var114 /* : FlatString */;
+val* var114 /* : String */;
static val* varonce115;
val* var116 /* : String */;
char* var117 /* : NativeString */;
-val* var118 /* : FlatString */;
+val* var118 /* : String */;
static val* varonce119;
val* var120 /* : String */;
char* var121 /* : NativeString */;
-val* var122 /* : FlatString */;
+val* var122 /* : String */;
long var123 /* : Int */;
long var125 /* : Int */;
val* var126 /* : String */;
var1 = varonce;
} else {
var2 = "";
-var3 = standard___standard__NativeString___to_s_with_length(var2, 0l);
+var3 = core__flat___NativeString___to_s_full(var2, 0l, 0l);
var1 = var3;
varonce = var1;
}
var_file_part = var1;
{
{ /* Inline location#Location#file (self) on <self:Location> */
-var6 = self->attrs[COLOR_nit__location__Location___file].val; /* _file on <self:Location> */
+var6 = self->attrs[COLOR_nitc__location__Location___file].val; /* _file on <self:Location> */
var4 = var6;
RET_LABEL5:(void)0;
}
{ /* Inline kernel#Object#!= (var4,((val*)NULL)) on <var4:nullable SourceFile> */
var_other = ((val*)NULL);
{
-var10 = ((short int(*)(val* self, val* p0))(var4->class->vft[COLOR_standard__kernel__Object___61d_61d]))(var4, var_other); /* == on <var4:nullable SourceFile(SourceFile)>*/
+var10 = ((short int(*)(val* self, val* p0))(var4->class->vft[COLOR_core__kernel__Object___61d_61d]))(var4, var_other); /* == on <var4:nullable SourceFile(SourceFile)>*/
}
var11 = !var10;
var8 = var11;
if (var7){
{
{ /* Inline location#Location#file (self) on <self:Location> */
-var14 = self->attrs[COLOR_nit__location__Location___file].val; /* _file on <self:Location> */
+var14 = self->attrs[COLOR_nitc__location__Location___file].val; /* _file on <self:Location> */
var12 = var14;
RET_LABEL13:(void)0;
}
}
if (var12 == NULL) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 194);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 199);
fatal_exit(1);
} else {
{ /* Inline location#SourceFile#filename (var12) on <var12:nullable SourceFile> */
if (unlikely(var12 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 22);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 22);
fatal_exit(1);
}
-var17 = var12->attrs[COLOR_nit__location__SourceFile___filename].val; /* _filename on <var12:nullable SourceFile> */
+var17 = var12->attrs[COLOR_nitc__location__SourceFile___filename].val; /* _filename on <var12:nullable SourceFile> */
if (unlikely(var17 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _filename");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 22);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 22);
fatal_exit(1);
}
var15 = var17;
}
{
{ /* Inline location#Location#line_start (self) on <self:Location> */
-var20 = self->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <self:Location> */
+var20 = self->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <self:Location> */
var18 = var20;
RET_LABEL19:(void)0;
}
/* <0l:Int> isa OTHER */
var23 = 1; /* easy <0l:Int> isa OTHER*/
if (unlikely(!var23)) {
-var_class_name = type_standard__Int.name;
+var_class_name = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 533);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 727);
fatal_exit(1);
}
var24 = var18 <= 0l;
}
{
{ /* Inline location#Location#file (self) on <self:Location> */
-var28 = self->attrs[COLOR_nit__location__Location___file].val; /* _file on <self:Location> */
+var28 = self->attrs[COLOR_nitc__location__Location___file].val; /* _file on <self:Location> */
var26 = var28;
RET_LABEL27:(void)0;
}
{ /* Inline kernel#Object#!= (var26,((val*)NULL)) on <var26:nullable SourceFile> */
var_other = ((val*)NULL);
{
-var32 = ((short int(*)(val* self, val* p0))(var26->class->vft[COLOR_standard__kernel__Object___61d_61d]))(var26, var_other); /* == on <var26:nullable SourceFile(SourceFile)>*/
+var32 = ((short int(*)(val* self, val* p0))(var26->class->vft[COLOR_core__kernel__Object___61d_61d]))(var26, var_other); /* == on <var26:nullable SourceFile(SourceFile)>*/
}
var33 = !var32;
var30 = var33;
if (var29){
{
{ /* Inline location#Location#file (self) on <self:Location> */
-var36 = self->attrs[COLOR_nit__location__Location___file].val; /* _file on <self:Location> */
+var36 = self->attrs[COLOR_nitc__location__Location___file].val; /* _file on <self:Location> */
var34 = var36;
RET_LABEL35:(void)0;
}
}
if (var34 == NULL) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 199);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 204);
fatal_exit(1);
} else {
{ /* Inline location#SourceFile#filename (var34) on <var34:nullable SourceFile> */
if (unlikely(var34 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 22);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 22);
fatal_exit(1);
}
-var39 = var34->attrs[COLOR_nit__location__SourceFile___filename].val; /* _filename on <var34:nullable SourceFile> */
+var39 = var34->attrs[COLOR_nitc__location__SourceFile___filename].val; /* _filename on <var34:nullable SourceFile> */
if (unlikely(var39 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _filename");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 22);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 22);
fatal_exit(1);
}
var37 = var39;
}
}
{
-var40 = ((long(*)(val* self))(var37->class->vft[COLOR_standard__string__Text__length]))(var37); /* length on <var37:String>*/
+var40 = ((long(*)(val* self))(var37->class->vft[COLOR_core__abstract_text__Text__length]))(var37); /* length on <var37:String>*/
}
{
{ /* Inline kernel#Int#> (var40,0l) on <var40:Int> */
/* <0l:Int> isa OTHER */
var43 = 1; /* easy <0l:Int> isa OTHER*/
if (unlikely(!var43)) {
-var_class_name46 = type_standard__Int.name;
+var_class_name46 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name46);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 536);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 730);
fatal_exit(1);
}
var47 = var40 > 0l;
var49 = varonce48;
} else {
var50 = ":";
-var51 = standard___standard__NativeString___to_s_with_length(var50, 1l);
+var51 = core__flat___NativeString___to_s_full(var50, 1l, 1l);
var49 = var51;
varonce48 = var49;
}
{
-var52 = ((val*(*)(val* self, val* p0))(var_file_part->class->vft[COLOR_standard__string__String___43d]))(var_file_part, var49); /* + on <var_file_part:String>*/
+var52 = ((val*(*)(val* self, val* p0))(var_file_part->class->vft[COLOR_core__abstract_text__String___43d]))(var_file_part, var49); /* + on <var_file_part:String>*/
}
var_file_part = var52;
} else {
}
{
{ /* Inline location#Location#line_start (self) on <self:Location> */
-var55 = self->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <self:Location> */
+var55 = self->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <self:Location> */
var53 = var55;
RET_LABEL54:(void)0;
}
}
{
{ /* Inline location#Location#line_end (self) on <self:Location> */
-var58 = self->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <self:Location> */
+var58 = self->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <self:Location> */
var56 = var58;
RET_LABEL57:(void)0;
}
if (var59){
{
{ /* Inline location#Location#column_start (self) on <self:Location> */
-var64 = self->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <self:Location> */
+var64 = self->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <self:Location> */
var62 = var64;
RET_LABEL63:(void)0;
}
}
{
{ /* Inline location#Location#column_end (self) on <self:Location> */
-var67 = self->attrs[COLOR_nit__location__Location___column_end].l; /* _column_end on <self:Location> */
+var67 = self->attrs[COLOR_nitc__location__Location___column_end].l; /* _column_end on <self:Location> */
var65 = var67;
RET_LABEL66:(void)0;
}
}
if (var68){
if (unlikely(varonce71==NULL)) {
-var72 = NEW_standard__NativeArray(4l, &type_standard__NativeArray__standard__String);
+var72 = NEW_core__NativeArray(4l, &type_core__NativeArray__core__String);
if (likely(varonce73!=NULL)) {
var74 = varonce73;
} else {
var75 = ",";
-var76 = standard___standard__NativeString___to_s_with_length(var75, 1l);
+var76 = core__flat___NativeString___to_s_full(var75, 1l, 1l);
var74 = var76;
varonce73 = var74;
}
-((struct instance_standard__NativeArray*)var72)->values[2]=var74;
+((struct instance_core__NativeArray*)var72)->values[2]=var74;
} else {
var72 = varonce71;
varonce71 = NULL;
}
-((struct instance_standard__NativeArray*)var72)->values[0]=var_file_part;
+((struct instance_core__NativeArray*)var72)->values[0]=var_file_part;
{
{ /* Inline location#Location#line_start (self) on <self:Location> */
-var79 = self->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <self:Location> */
+var79 = self->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <self:Location> */
var77 = var79;
RET_LABEL78:(void)0;
}
}
-var80 = standard__string___Int___Object__to_s(var77);
-((struct instance_standard__NativeArray*)var72)->values[1]=var80;
+var80 = core__flat___Int___core__abstract_text__Object__to_s(var77);
+((struct instance_core__NativeArray*)var72)->values[1]=var80;
{
{ /* Inline location#Location#column_start (self) on <self:Location> */
-var83 = self->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <self:Location> */
+var83 = self->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <self:Location> */
var81 = var83;
RET_LABEL82:(void)0;
}
}
-var84 = standard__string___Int___Object__to_s(var81);
-((struct instance_standard__NativeArray*)var72)->values[3]=var84;
+var84 = core__flat___Int___core__abstract_text__Object__to_s(var81);
+((struct instance_core__NativeArray*)var72)->values[3]=var84;
{
-var85 = ((val*(*)(val* self))(var72->class->vft[COLOR_standard__string__NativeArray__native_to_s]))(var72); /* native_to_s on <var72:NativeArray[String]>*/
+var85 = ((val*(*)(val* self))(var72->class->vft[COLOR_core__abstract_text__NativeArray__native_to_s]))(var72); /* native_to_s on <var72:NativeArray[String]>*/
}
varonce71 = var72;
var = var85;
goto RET_LABEL;
} else {
if (unlikely(varonce86==NULL)) {
-var87 = NEW_standard__NativeArray(6l, &type_standard__NativeArray__standard__String);
+var87 = NEW_core__NativeArray(6l, &type_core__NativeArray__core__String);
if (likely(varonce88!=NULL)) {
var89 = varonce88;
} else {
var90 = ",";
-var91 = standard___standard__NativeString___to_s_with_length(var90, 1l);
+var91 = core__flat___NativeString___to_s_full(var90, 1l, 1l);
var89 = var91;
varonce88 = var89;
}
-((struct instance_standard__NativeArray*)var87)->values[2]=var89;
+((struct instance_core__NativeArray*)var87)->values[2]=var89;
if (likely(varonce92!=NULL)) {
var93 = varonce92;
} else {
var94 = "--";
-var95 = standard___standard__NativeString___to_s_with_length(var94, 2l);
+var95 = core__flat___NativeString___to_s_full(var94, 2l, 2l);
var93 = var95;
varonce92 = var93;
}
-((struct instance_standard__NativeArray*)var87)->values[4]=var93;
+((struct instance_core__NativeArray*)var87)->values[4]=var93;
} else {
var87 = varonce86;
varonce86 = NULL;
}
-((struct instance_standard__NativeArray*)var87)->values[0]=var_file_part;
+((struct instance_core__NativeArray*)var87)->values[0]=var_file_part;
{
{ /* Inline location#Location#line_start (self) on <self:Location> */
-var98 = self->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <self:Location> */
+var98 = self->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <self:Location> */
var96 = var98;
RET_LABEL97:(void)0;
}
}
-var99 = standard__string___Int___Object__to_s(var96);
-((struct instance_standard__NativeArray*)var87)->values[1]=var99;
+var99 = core__flat___Int___core__abstract_text__Object__to_s(var96);
+((struct instance_core__NativeArray*)var87)->values[1]=var99;
{
{ /* Inline location#Location#column_start (self) on <self:Location> */
-var102 = self->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <self:Location> */
+var102 = self->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <self:Location> */
var100 = var102;
RET_LABEL101:(void)0;
}
}
-var103 = standard__string___Int___Object__to_s(var100);
-((struct instance_standard__NativeArray*)var87)->values[3]=var103;
+var103 = core__flat___Int___core__abstract_text__Object__to_s(var100);
+((struct instance_core__NativeArray*)var87)->values[3]=var103;
{
{ /* Inline location#Location#column_end (self) on <self:Location> */
-var106 = self->attrs[COLOR_nit__location__Location___column_end].l; /* _column_end on <self:Location> */
+var106 = self->attrs[COLOR_nitc__location__Location___column_end].l; /* _column_end on <self:Location> */
var104 = var106;
RET_LABEL105:(void)0;
}
}
-var107 = standard__string___Int___Object__to_s(var104);
-((struct instance_standard__NativeArray*)var87)->values[5]=var107;
+var107 = core__flat___Int___core__abstract_text__Object__to_s(var104);
+((struct instance_core__NativeArray*)var87)->values[5]=var107;
{
-var108 = ((val*(*)(val* self))(var87->class->vft[COLOR_standard__string__NativeArray__native_to_s]))(var87); /* native_to_s on <var87:NativeArray[String]>*/
+var108 = ((val*(*)(val* self))(var87->class->vft[COLOR_core__abstract_text__NativeArray__native_to_s]))(var87); /* native_to_s on <var87:NativeArray[String]>*/
}
varonce86 = var87;
var = var108;
}
} else {
if (unlikely(varonce109==NULL)) {
-var110 = NEW_standard__NativeArray(8l, &type_standard__NativeArray__standard__String);
+var110 = NEW_core__NativeArray(8l, &type_core__NativeArray__core__String);
if (likely(varonce111!=NULL)) {
var112 = varonce111;
} else {
var113 = ",";
-var114 = standard___standard__NativeString___to_s_with_length(var113, 1l);
+var114 = core__flat___NativeString___to_s_full(var113, 1l, 1l);
var112 = var114;
varonce111 = var112;
}
-((struct instance_standard__NativeArray*)var110)->values[2]=var112;
+((struct instance_core__NativeArray*)var110)->values[2]=var112;
if (likely(varonce115!=NULL)) {
var116 = varonce115;
} else {
var117 = "--";
-var118 = standard___standard__NativeString___to_s_with_length(var117, 2l);
+var118 = core__flat___NativeString___to_s_full(var117, 2l, 2l);
var116 = var118;
varonce115 = var116;
}
-((struct instance_standard__NativeArray*)var110)->values[4]=var116;
+((struct instance_core__NativeArray*)var110)->values[4]=var116;
if (likely(varonce119!=NULL)) {
var120 = varonce119;
} else {
var121 = ",";
-var122 = standard___standard__NativeString___to_s_with_length(var121, 1l);
+var122 = core__flat___NativeString___to_s_full(var121, 1l, 1l);
var120 = var122;
varonce119 = var120;
}
-((struct instance_standard__NativeArray*)var110)->values[6]=var120;
+((struct instance_core__NativeArray*)var110)->values[6]=var120;
} else {
var110 = varonce109;
varonce109 = NULL;
}
-((struct instance_standard__NativeArray*)var110)->values[0]=var_file_part;
+((struct instance_core__NativeArray*)var110)->values[0]=var_file_part;
{
{ /* Inline location#Location#line_start (self) on <self:Location> */
-var125 = self->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <self:Location> */
+var125 = self->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <self:Location> */
var123 = var125;
RET_LABEL124:(void)0;
}
}
-var126 = standard__string___Int___Object__to_s(var123);
-((struct instance_standard__NativeArray*)var110)->values[1]=var126;
+var126 = core__flat___Int___core__abstract_text__Object__to_s(var123);
+((struct instance_core__NativeArray*)var110)->values[1]=var126;
{
{ /* Inline location#Location#column_start (self) on <self:Location> */
-var129 = self->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <self:Location> */
+var129 = self->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <self:Location> */
var127 = var129;
RET_LABEL128:(void)0;
}
}
-var130 = standard__string___Int___Object__to_s(var127);
-((struct instance_standard__NativeArray*)var110)->values[3]=var130;
+var130 = core__flat___Int___core__abstract_text__Object__to_s(var127);
+((struct instance_core__NativeArray*)var110)->values[3]=var130;
{
{ /* Inline location#Location#line_end (self) on <self:Location> */
-var133 = self->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <self:Location> */
+var133 = self->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <self:Location> */
var131 = var133;
RET_LABEL132:(void)0;
}
}
-var134 = standard__string___Int___Object__to_s(var131);
-((struct instance_standard__NativeArray*)var110)->values[5]=var134;
+var134 = core__flat___Int___core__abstract_text__Object__to_s(var131);
+((struct instance_core__NativeArray*)var110)->values[5]=var134;
{
{ /* Inline location#Location#column_end (self) on <self:Location> */
-var137 = self->attrs[COLOR_nit__location__Location___column_end].l; /* _column_end on <self:Location> */
+var137 = self->attrs[COLOR_nitc__location__Location___column_end].l; /* _column_end on <self:Location> */
var135 = var137;
RET_LABEL136:(void)0;
}
}
-var138 = standard__string___Int___Object__to_s(var135);
-((struct instance_standard__NativeArray*)var110)->values[7]=var138;
+var138 = core__flat___Int___core__abstract_text__Object__to_s(var135);
+((struct instance_core__NativeArray*)var110)->values[7]=var138;
{
-var139 = ((val*(*)(val* self))(var110->class->vft[COLOR_standard__string__NativeArray__native_to_s]))(var110); /* native_to_s on <var110:NativeArray[String]>*/
+var139 = ((val*(*)(val* self))(var110->class->vft[COLOR_core__abstract_text__NativeArray__native_to_s]))(var110); /* native_to_s on <var110:NativeArray[String]>*/
}
varonce109 = var110;
var = var139;
return var;
}
/* method location#Location#< for (self: Location, Location): Bool */
-short int nit___nit__Location___standard__kernel__Comparable___60d(val* self, val* p0) {
+short int nitc___nitc__Location___core__kernel__Comparable___60d(val* self, val* p0) {
short int var /* : Bool */;
short int var1 /* : Bool */;
int cltype;
short int var86 /* : Bool */;
/* Covariant cast for argument 0 (other) <p0:Location> isa OTHER */
/* <p0:Location> isa OTHER */
-type_struct = self->type->resolution_table->types[COLOR_standard__kernel__Comparable__OTHER];
+type_struct = self->type->resolution_table->types[COLOR_core__kernel__Comparable__OTHER];
cltype = type_struct->color;
idtype = type_struct->id;
if(cltype >= p0->type->table_size) {
if (unlikely(!var1)) {
var_class_name = p0 == NULL ? "null" : p0->type->name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name);
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 225);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 230);
fatal_exit(1);
}
var_other = p0;
{
-var2 = nit___nit__Location___standard__kernel__Object___61d_61d(self, var_other);
+var2 = nitc___nitc__Location___core__kernel__Object___61d_61d(self, var_other);
}
if (var2){
var = 0;
} else {
}
{
-var3 = nit___nit__Location___located_in(self, var_other);
+var3 = nitc___nitc__Location___located_in(self, var_other);
}
if (var3){
var = 1;
} else {
}
{
-var4 = nit___nit__Location___located_in(var_other, self);
+var4 = nitc___nitc__Location___located_in(var_other, self);
}
if (var4){
var = 0;
}
{
{ /* Inline location#Location#line_start (self) on <self:Location> */
-var7 = self->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <self:Location> */
+var7 = self->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <self:Location> */
var5 = var7;
RET_LABEL6:(void)0;
}
}
{
{ /* Inline location#Location#line_start (var_other) on <var_other:Location> */
-var10 = var_other->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <var_other:Location> */
+var10 = var_other->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <var_other:Location> */
var8 = var10;
RET_LABEL9:(void)0;
}
if (var11){
{
{ /* Inline location#Location#line_start (self) on <self:Location> */
-var17 = self->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <self:Location> */
+var17 = self->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <self:Location> */
var15 = var17;
RET_LABEL16:(void)0;
}
}
{
{ /* Inline location#Location#line_start (var_other) on <var_other:Location> */
-var20 = var_other->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <var_other:Location> */
+var20 = var_other->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <var_other:Location> */
var18 = var20;
RET_LABEL19:(void)0;
}
/* <var18:Int> isa OTHER */
var23 = 1; /* easy <var18:Int> isa OTHER*/
if (unlikely(!var23)) {
-var_class_name26 = type_standard__Int.name;
+var_class_name26 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name26);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 534);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 728);
fatal_exit(1);
}
var27 = var15 < var18;
}
{
{ /* Inline location#Location#column_start (self) on <self:Location> */
-var30 = self->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <self:Location> */
+var30 = self->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <self:Location> */
var28 = var30;
RET_LABEL29:(void)0;
}
}
{
{ /* Inline location#Location#column_start (var_other) on <var_other:Location> */
-var33 = var_other->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <var_other:Location> */
+var33 = var_other->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <var_other:Location> */
var31 = var33;
RET_LABEL32:(void)0;
}
if (var34){
{
{ /* Inline location#Location#column_start (self) on <self:Location> */
-var40 = self->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <self:Location> */
+var40 = self->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <self:Location> */
var38 = var40;
RET_LABEL39:(void)0;
}
}
{
{ /* Inline location#Location#column_start (var_other) on <var_other:Location> */
-var43 = var_other->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <var_other:Location> */
+var43 = var_other->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <var_other:Location> */
var41 = var43;
RET_LABEL42:(void)0;
}
/* <var41:Int> isa OTHER */
var46 = 1; /* easy <var41:Int> isa OTHER*/
if (unlikely(!var46)) {
-var_class_name49 = type_standard__Int.name;
+var_class_name49 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name49);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 534);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 728);
fatal_exit(1);
}
var50 = var38 < var41;
}
{
{ /* Inline location#Location#line_end (self) on <self:Location> */
-var53 = self->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <self:Location> */
+var53 = self->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <self:Location> */
var51 = var53;
RET_LABEL52:(void)0;
}
}
{
{ /* Inline location#Location#line_end (var_other) on <var_other:Location> */
-var56 = var_other->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <var_other:Location> */
+var56 = var_other->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <var_other:Location> */
var54 = var56;
RET_LABEL55:(void)0;
}
if (var57){
{
{ /* Inline location#Location#line_end (self) on <self:Location> */
-var63 = self->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <self:Location> */
+var63 = self->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <self:Location> */
var61 = var63;
RET_LABEL62:(void)0;
}
}
{
{ /* Inline location#Location#line_end (var_other) on <var_other:Location> */
-var66 = var_other->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <var_other:Location> */
+var66 = var_other->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <var_other:Location> */
var64 = var66;
RET_LABEL65:(void)0;
}
/* <var64:Int> isa OTHER */
var69 = 1; /* easy <var64:Int> isa OTHER*/
if (unlikely(!var69)) {
-var_class_name72 = type_standard__Int.name;
+var_class_name72 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name72);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 534);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 728);
fatal_exit(1);
}
var73 = var61 < var64;
}
{
{ /* Inline location#Location#column_end (self) on <self:Location> */
-var76 = self->attrs[COLOR_nit__location__Location___column_end].l; /* _column_end on <self:Location> */
+var76 = self->attrs[COLOR_nitc__location__Location___column_end].l; /* _column_end on <self:Location> */
var74 = var76;
RET_LABEL75:(void)0;
}
}
{
{ /* Inline location#Location#column_end (var_other) on <var_other:Location> */
-var79 = var_other->attrs[COLOR_nit__location__Location___column_end].l; /* _column_end on <var_other:Location> */
+var79 = var_other->attrs[COLOR_nitc__location__Location___column_end].l; /* _column_end on <var_other:Location> */
var77 = var79;
RET_LABEL78:(void)0;
}
/* <var77:Int> isa OTHER */
var82 = 1; /* easy <var77:Int> isa OTHER*/
if (unlikely(!var82)) {
-var_class_name85 = type_standard__Int.name;
+var_class_name85 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name85);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 534);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 728);
fatal_exit(1);
}
var86 = var74 < var77;
return var;
}
/* method location#Location#colored_line for (self: Location, String): String */
-val* nit___nit__Location___colored_line(val* self, val* p0) {
+val* nitc___nitc__Location___colored_line(val* self, val* p0) {
val* var /* : String */;
val* var_color /* var color: String */;
uint32_t var1 /* : Char */;
static val* varonce5;
val* var6 /* : String */;
char* var7 /* : NativeString */;
-val* var8 /* : FlatString */;
+val* var8 /* : String */;
val* var9 /* : String */;
val* var10 /* : String */;
val* var_def /* var def: String */;
static val* varonce13;
val* var14 /* : String */;
char* var15 /* : NativeString */;
-val* var16 /* : FlatString */;
+val* var16 /* : String */;
static val* varonce17;
val* var18 /* : String */;
char* var19 /* : NativeString */;
-val* var20 /* : FlatString */;
+val* var20 /* : String */;
val* var21 /* : String */;
val* var22 /* : String */;
val* var_col /* var col: String */;
static val* varonce30;
val* var31 /* : String */;
char* var32 /* : NativeString */;
-val* var33 /* : FlatString */;
+val* var33 /* : String */;
val* var34 /* : nullable SourceFile */;
val* var36 /* : nullable SourceFile */;
val* var37 /* : Array[Int] */;
static val* varonce129;
val* var130 /* : String */;
char* var131 /* : NativeString */;
-val* var132 /* : FlatString */;
+val* var132 /* : String */;
long var133 /* : Int */;
long var135 /* : Int */;
short int var136 /* : Bool */;
static val* varonce242;
val* var243 /* : String */;
char* var244 /* : NativeString */;
-val* var245 /* : FlatString */;
+val* var245 /* : String */;
static val* varonce246;
val* var247 /* : String */;
char* var248 /* : NativeString */;
-val* var249 /* : FlatString */;
+val* var249 /* : String */;
val* var250 /* : FlatBuffer */;
val* var_indent /* var indent: FlatBuffer */;
long var_j /* var j: Int */;
int idtype274;
const char* var_class_name275;
short int var276 /* : Bool */;
-val* var277 /* : SequenceRead[Char] */;
-val* var278 /* : nullable Object */;
-short int var279 /* : Bool */;
-short int var281 /* : Bool */;
-uint32_t var282 /* : Char */;
-long var283 /* : Int */;
+val* var278 /* : SequenceRead[Char] */;
+val* var279 /* : nullable Object */;
+short int var280 /* : Bool */;
+short int var282 /* : Bool */;
+uint32_t var283 /* : Char */;
+long var284 /* : Int */;
val* var286 /* : NativeArray[String] */;
static val* varonce285;
static val* varonce287;
val* var288 /* : String */;
char* var289 /* : NativeString */;
-val* var290 /* : FlatString */;
+val* var290 /* : String */;
static val* varonce291;
val* var292 /* : String */;
char* var293 /* : NativeString */;
-val* var294 /* : FlatString */;
+val* var294 /* : String */;
static val* varonce295;
val* var296 /* : String */;
char* var297 /* : NativeString */;
-val* var298 /* : FlatString */;
+val* var298 /* : String */;
val* var299 /* : String */;
val* var300 /* : String */;
var_color = p0;
{
-{ /* Inline kernel#Int#ascii (27l) on <27l:Int> */
+{ /* Inline kernel#Int#code_point (27l) on <27l:Int> */
var3 = (uint32_t)27l;
var1 = var3;
goto RET_LABEL2;
}
var_esc = var1;
if (unlikely(varonce==NULL)) {
-var4 = NEW_standard__NativeArray(2l, &type_standard__NativeArray__standard__String);
+var4 = NEW_core__NativeArray(2l, &type_core__NativeArray__core__String);
if (likely(varonce5!=NULL)) {
var6 = varonce5;
} else {
var7 = "[0m";
-var8 = standard___standard__NativeString___to_s_with_length(var7, 3l);
+var8 = core__flat___NativeString___to_s_full(var7, 3l, 3l);
var6 = var8;
varonce5 = var6;
}
-((struct instance_standard__NativeArray*)var4)->values[1]=var6;
+((struct instance_core__NativeArray*)var4)->values[1]=var6;
} else {
var4 = varonce;
varonce = NULL;
}
-var9 = standard__string___Char___Object__to_s(var_esc);
-((struct instance_standard__NativeArray*)var4)->values[0]=var9;
+var9 = core__abstract_text___Char___Object__to_s(var_esc);
+((struct instance_core__NativeArray*)var4)->values[0]=var9;
{
-var10 = ((val*(*)(val* self))(var4->class->vft[COLOR_standard__string__NativeArray__native_to_s]))(var4); /* native_to_s on <var4:NativeArray[String]>*/
+var10 = ((val*(*)(val* self))(var4->class->vft[COLOR_core__abstract_text__NativeArray__native_to_s]))(var4); /* native_to_s on <var4:NativeArray[String]>*/
}
varonce = var4;
var_def = var10;
if (unlikely(varonce11==NULL)) {
-var12 = NEW_standard__NativeArray(4l, &type_standard__NativeArray__standard__String);
+var12 = NEW_core__NativeArray(4l, &type_core__NativeArray__core__String);
if (likely(varonce13!=NULL)) {
var14 = varonce13;
} else {
var15 = "[";
-var16 = standard___standard__NativeString___to_s_with_length(var15, 1l);
+var16 = core__flat___NativeString___to_s_full(var15, 1l, 1l);
var14 = var16;
varonce13 = var14;
}
-((struct instance_standard__NativeArray*)var12)->values[1]=var14;
+((struct instance_core__NativeArray*)var12)->values[1]=var14;
if (likely(varonce17!=NULL)) {
var18 = varonce17;
} else {
var19 = "m";
-var20 = standard___standard__NativeString___to_s_with_length(var19, 1l);
+var20 = core__flat___NativeString___to_s_full(var19, 1l, 1l);
var18 = var20;
varonce17 = var18;
}
-((struct instance_standard__NativeArray*)var12)->values[3]=var18;
+((struct instance_core__NativeArray*)var12)->values[3]=var18;
} else {
var12 = varonce11;
varonce11 = NULL;
}
-var21 = standard__string___Char___Object__to_s(var_esc);
-((struct instance_standard__NativeArray*)var12)->values[0]=var21;
-((struct instance_standard__NativeArray*)var12)->values[2]=var_color;
+var21 = core__abstract_text___Char___Object__to_s(var_esc);
+((struct instance_core__NativeArray*)var12)->values[0]=var21;
+((struct instance_core__NativeArray*)var12)->values[2]=var_color;
{
-var22 = ((val*(*)(val* self))(var12->class->vft[COLOR_standard__string__NativeArray__native_to_s]))(var12); /* native_to_s on <var12:NativeArray[String]>*/
+var22 = ((val*(*)(val* self))(var12->class->vft[COLOR_core__abstract_text__NativeArray__native_to_s]))(var12); /* native_to_s on <var12:NativeArray[String]>*/
}
varonce11 = var12;
var_col = var22;
var_l = self;
{
{ /* Inline location#Location#line_start (var_l) on <var_l:Location> */
-var25 = var_l->attrs[COLOR_nit__location__Location___line_start].l; /* _line_start on <var_l:Location> */
+var25 = var_l->attrs[COLOR_nitc__location__Location___line_start].l; /* _line_start on <var_l:Location> */
var23 = var25;
RET_LABEL24:(void)0;
}
/* <0l:Int> isa OTHER */
var28 = 1; /* easy <0l:Int> isa OTHER*/
if (unlikely(!var28)) {
-var_class_name = type_standard__Int.name;
+var_class_name = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 533);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 727);
fatal_exit(1);
}
var29 = var_i <= 0l;
var31 = varonce30;
} else {
var32 = "";
-var33 = standard___standard__NativeString___to_s_with_length(var32, 0l);
+var33 = core__flat___NativeString___to_s_full(var32, 0l, 0l);
var31 = var33;
varonce30 = var31;
}
}
{
{ /* Inline location#Location#file (var_l) on <var_l:Location> */
-var36 = var_l->attrs[COLOR_nit__location__Location___file].val; /* _file on <var_l:Location> */
+var36 = var_l->attrs[COLOR_nitc__location__Location___file].val; /* _file on <var_l:Location> */
var34 = var36;
RET_LABEL35:(void)0;
}
}
if (var34 == NULL) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 252);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 257);
fatal_exit(1);
} else {
{ /* Inline location#SourceFile#line_starts (var34) on <var34:nullable SourceFile> */
if (unlikely(var34 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 45);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 46);
fatal_exit(1);
}
-var39 = var34->attrs[COLOR_nit__location__SourceFile___line_starts].val; /* _line_starts on <var34:nullable SourceFile> */
+var39 = var34->attrs[COLOR_nitc__location__SourceFile___line_starts].val; /* _line_starts on <var34:nullable SourceFile> */
if (unlikely(var39 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _line_starts");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 45);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 46);
fatal_exit(1);
}
var37 = var39;
/* <1l:Int> isa OTHER */
var42 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var42)) {
-var_class_name45 = type_standard__Int.name;
+var_class_name45 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name45);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 540);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 734);
fatal_exit(1);
}
var46 = var_i - 1l;
}
}
{
-var47 = standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(var37, var40);
+var47 = core___core__Array___core__abstract_collection__SequenceRead___91d_93d(var37, var40);
}
var48 = (long)(var47)>>2;
var_line_start = var48;
var_line_end = var_line_start;
{
{ /* Inline location#Location#file (var_l) on <var_l:Location> */
-var51 = var_l->attrs[COLOR_nit__location__Location___file].val; /* _file on <var_l:Location> */
+var51 = var_l->attrs[COLOR_nitc__location__Location___file].val; /* _file on <var_l:Location> */
var49 = var51;
RET_LABEL50:(void)0;
}
}
if (var49 == NULL) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 254);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 259);
fatal_exit(1);
} else {
{ /* Inline location#SourceFile#string (var49) on <var49:nullable SourceFile> */
if (unlikely(var49 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Receiver is null");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 25);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 25);
fatal_exit(1);
}
-var54 = var49->attrs[COLOR_nit__location__SourceFile___string].val; /* _string on <var49:nullable SourceFile> */
+var54 = var49->attrs[COLOR_nitc__location__SourceFile___string].val; /* _string on <var49:nullable SourceFile> */
if (unlikely(var54 == NULL)) {
PRINT_ERROR("Runtime error: %s", "Uninitialized attribute _string");
-PRINT_ERROR(" (%s:%d)\n", FILE_nit__location, 25);
+PRINT_ERROR(" (%s:%d)\n", FILE_nitc__location, 25);
fatal_exit(1);
}
var52 = var54;
/* <1l:Int> isa OTHER */
var59 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var59)) {
-var_class_name62 = type_standard__Int.name;
+var_class_name62 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name62);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var63 = var_line_end + 1l;
}
}
{
-var64 = ((long(*)(val* self))(var_string->class->vft[COLOR_standard__string__Text__length]))(var_string); /* length on <var_string:String>*/
+var64 = ((long(*)(val* self))(var_string->class->vft[COLOR_core__abstract_text__Text__length]))(var_string); /* length on <var_string:String>*/
}
{
{ /* Inline kernel#Int#< (var57,var64) on <var57:Int> */
/* <var64:Int> isa OTHER */
var67 = 1; /* easy <var64:Int> isa OTHER*/
if (unlikely(!var67)) {
-var_class_name70 = type_standard__Int.name;
+var_class_name70 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name70);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 534);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 728);
fatal_exit(1);
}
var71 = var57 < var64;
var_ = var65;
if (var65){
{
-var72 = ((val*(*)(val* self))(var_string->class->vft[COLOR_standard__string__Text__chars]))(var_string); /* chars on <var_string:String>*/
+var72 = ((val*(*)(val* self))(var_string->class->vft[COLOR_core__abstract_text__Text__chars]))(var_string); /* chars on <var_string:String>*/
}
{
{ /* Inline kernel#Int#+ (var_line_end,1l) on <var_line_end:Int> */
/* <1l:Int> isa OTHER */
var75 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var75)) {
-var_class_name78 = type_standard__Int.name;
+var_class_name78 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name78);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var79 = var_line_end + 1l;
}
}
{
-var80 = ((val*(*)(val* self, long p0))((((long)var72&3)?class_info[((long)var72&3)]:var72->class)->vft[COLOR_standard__abstract_collection__SequenceRead___91d_93d]))(var72, var73); /* [] on <var72:SequenceRead[Char]>*/
+var80 = ((val*(*)(val* self, long p0))((((long)var72&3)?class_info[((long)var72&3)]:var72->class)->vft[COLOR_core__abstract_collection__SequenceRead___91d_93d]))(var72, var73); /* [] on <var72:SequenceRead[Char]>*/
}
{
{ /* Inline kernel#Char#!= (var80,'\n') on <var80:nullable Object(Char)> */
var84 = (uint32_t)((long)(var80)>>2);
-var83 = (var80 != NULL) && (var84 == '\n');
+var83 = var84 == '\n';
var85 = !var83;
var81 = var85;
goto RET_LABEL82;
var_86 = var56;
if (var56){
{
-var87 = ((val*(*)(val* self))(var_string->class->vft[COLOR_standard__string__Text__chars]))(var_string); /* chars on <var_string:String>*/
+var87 = ((val*(*)(val* self))(var_string->class->vft[COLOR_core__abstract_text__Text__chars]))(var_string); /* chars on <var_string:String>*/
}
{
{ /* Inline kernel#Int#+ (var_line_end,1l) on <var_line_end:Int> */
/* <1l:Int> isa OTHER */
var90 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var90)) {
-var_class_name93 = type_standard__Int.name;
+var_class_name93 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name93);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var94 = var_line_end + 1l;
}
}
{
-var95 = ((val*(*)(val* self, long p0))((((long)var87&3)?class_info[((long)var87&3)]:var87->class)->vft[COLOR_standard__abstract_collection__SequenceRead___91d_93d]))(var87, var88); /* [] on <var87:SequenceRead[Char]>*/
+var95 = ((val*(*)(val* self, long p0))((((long)var87&3)?class_info[((long)var87&3)]:var87->class)->vft[COLOR_core__abstract_collection__SequenceRead___91d_93d]))(var87, var88); /* [] on <var87:SequenceRead[Char]>*/
}
{
{ /* Inline kernel#Char#!= (var95,'\015') on <var95:nullable Object(Char)> */
var99 = (uint32_t)((long)(var95)>>2);
-var98 = (var95 != NULL) && (var99 == '\015');
+var98 = var99 == '\015';
var100 = !var98;
var96 = var100;
goto RET_LABEL97;
/* <1l:Int> isa OTHER */
var103 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var103)) {
-var_class_name106 = type_standard__Int.name;
+var_class_name106 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name106);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var107 = var_line_end + 1l;
BREAK_label: (void)0;
{
{ /* Inline location#Location#column_start (var_l) on <var_l:Location> */
-var110 = var_l->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <var_l:Location> */
+var110 = var_l->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <var_l:Location> */
var108 = var110;
RET_LABEL109:(void)0;
}
/* <0l:Int> isa OTHER */
var113 = 1; /* easy <0l:Int> isa OTHER*/
if (unlikely(!var113)) {
-var_class_name116 = type_standard__Int.name;
+var_class_name116 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name116);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 536);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 730);
fatal_exit(1);
}
var117 = var108 > 0l;
if (var111){
{
{ /* Inline location#Location#column_start (var_l) on <var_l:Location> */
-var120 = var_l->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <var_l:Location> */
+var120 = var_l->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <var_l:Location> */
var118 = var120;
RET_LABEL119:(void)0;
}
/* <1l:Int> isa OTHER */
var123 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var123)) {
-var_class_name126 = type_standard__Int.name;
+var_class_name126 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name126);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 540);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 734);
fatal_exit(1);
}
var127 = var118 - 1l;
}
}
{
-var128 = ((val*(*)(val* self, long p0, long p1))(var_string->class->vft[COLOR_standard__string__Text__substring]))(var_string, var_line_start, var121); /* substring on <var_string:String>*/
+var128 = ((val*(*)(val* self, long p0, long p1))(var_string->class->vft[COLOR_core__abstract_text__Text__substring]))(var_string, var_line_start, var121); /* substring on <var_string:String>*/
}
var_lstart = var128;
} else {
var130 = varonce129;
} else {
var131 = "";
-var132 = standard___standard__NativeString___to_s_with_length(var131, 0l);
+var132 = core__flat___NativeString___to_s_full(var131, 0l, 0l);
var130 = var132;
varonce129 = var130;
}
}
{
{ /* Inline location#Location#line_end (var_l) on <var_l:Location> */
-var135 = var_l->attrs[COLOR_nit__location__Location___line_end].l; /* _line_end on <var_l:Location> */
+var135 = var_l->attrs[COLOR_nitc__location__Location___line_end].l; /* _line_end on <var_l:Location> */
var133 = var135;
RET_LABEL134:(void)0;
}
/* <var_line_start:Int> isa OTHER */
var142 = 1; /* easy <var_line_start:Int> isa OTHER*/
if (unlikely(!var142)) {
-var_class_name145 = type_standard__Int.name;
+var_class_name145 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name145);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 540);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 734);
fatal_exit(1);
}
var146 = var_line_end - var_line_start;
/* <1l:Int> isa OTHER */
var149 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var149)) {
-var_class_name152 = type_standard__Int.name;
+var_class_name152 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name152);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var153 = var140 + 1l;
} else {
{
{ /* Inline location#Location#column_end (var_l) on <var_l:Location> */
-var157 = var_l->attrs[COLOR_nit__location__Location___column_end].l; /* _column_end on <var_l:Location> */
+var157 = var_l->attrs[COLOR_nitc__location__Location___column_end].l; /* _column_end on <var_l:Location> */
var155 = var157;
RET_LABEL156:(void)0;
}
if (unlikely(!var161)) {
var_class_name164 = var_cend == NULL ? "null" : (((long)var_cend&3)?type_info[((long)var_cend&3)]:var_cend->type)->name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name164);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var165 = (long)(var_cend)>>2;
}
}
{
-var167 = ((long(*)(val* self))(var_string->class->vft[COLOR_standard__string__Text__length]))(var_string); /* length on <var_string:String>*/
+var167 = ((long(*)(val* self))(var_string->class->vft[COLOR_core__abstract_text__Text__length]))(var_string); /* length on <var_string:String>*/
}
{
{ /* Inline kernel#Int#<= (var159,var167) on <var159:Int> */
/* <var167:Int> isa OTHER */
var170 = 1; /* easy <var167:Int> isa OTHER*/
if (unlikely(!var170)) {
-var_class_name173 = type_standard__Int.name;
+var_class_name173 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name173);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 533);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 727);
fatal_exit(1);
}
var174 = var159 <= var167;
if (var168){
{
{ /* Inline location#Location#column_start (var_l) on <var_l:Location> */
-var177 = var_l->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <var_l:Location> */
+var177 = var_l->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <var_l:Location> */
var175 = var177;
RET_LABEL176:(void)0;
}
/* <var175:Int> isa OTHER */
var180 = 1; /* easy <var175:Int> isa OTHER*/
if (unlikely(!var180)) {
-var_class_name183 = type_standard__Int.name;
+var_class_name183 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name183);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var184 = var_line_start + var175;
/* <1l:Int> isa OTHER */
var187 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var187)) {
-var_class_name190 = type_standard__Int.name;
+var_class_name190 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name190);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 540);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 734);
fatal_exit(1);
}
var191 = var178 - 1l;
}
{
{ /* Inline location#Location#column_start (var_l) on <var_l:Location> */
-var194 = var_l->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <var_l:Location> */
+var194 = var_l->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <var_l:Location> */
var192 = var194;
RET_LABEL193:(void)0;
}
/* <var192:Int> isa OTHER */
var197 = 1; /* easy <var192:Int> isa OTHER*/
if (unlikely(!var197)) {
-var_class_name200 = type_standard__Int.name;
+var_class_name200 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name200);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 540);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 734);
fatal_exit(1);
}
var201 = (long)(var_cend)>>2;
/* <1l:Int> isa OTHER */
var205 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var205)) {
-var_class_name208 = type_standard__Int.name;
+var_class_name208 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name208);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var209 = var195 + 1l;
}
}
{
-var210 = ((val*(*)(val* self, long p0, long p1))(var_string->class->vft[COLOR_standard__string__Text__substring]))(var_string, var185, var203); /* substring on <var_string:String>*/
+var210 = ((val*(*)(val* self, long p0, long p1))(var_string->class->vft[COLOR_core__abstract_text__Text__substring]))(var_string, var185, var203); /* substring on <var_string:String>*/
}
var_lmid = var210;
{
if (unlikely(!var213)) {
var_class_name216 = var_cend == NULL ? "null" : (((long)var_cend&3)?type_info[((long)var_cend&3)]:var_cend->type)->name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name216);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var217 = (long)(var_cend)>>2;
/* <var_line_start:Int> isa OTHER */
var221 = 1; /* easy <var_line_start:Int> isa OTHER*/
if (unlikely(!var221)) {
-var_class_name224 = type_standard__Int.name;
+var_class_name224 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name224);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 540);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 734);
fatal_exit(1);
}
var225 = var_line_end - var_line_start;
if (unlikely(!var228)) {
var_class_name231 = var_cend == NULL ? "null" : (((long)var_cend&3)?type_info[((long)var_cend&3)]:var_cend->type)->name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name231);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 540);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 734);
fatal_exit(1);
}
var232 = (long)(var_cend)>>2;
/* <1l:Int> isa OTHER */
var236 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var236)) {
-var_class_name239 = type_standard__Int.name;
+var_class_name239 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name239);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var240 = var226 + 1l;
}
}
{
-var241 = ((val*(*)(val* self, long p0, long p1))(var_string->class->vft[COLOR_standard__string__Text__substring]))(var_string, var211, var234); /* substring on <var_string:String>*/
+var241 = ((val*(*)(val* self, long p0, long p1))(var_string->class->vft[COLOR_core__abstract_text__Text__substring]))(var_string, var211, var234); /* substring on <var_string:String>*/
}
var_lend = var241;
} else {
var243 = varonce242;
} else {
var244 = "";
-var245 = standard___standard__NativeString___to_s_with_length(var244, 0l);
+var245 = core__flat___NativeString___to_s_full(var244, 0l, 0l);
var243 = var245;
varonce242 = var243;
}
var247 = varonce246;
} else {
var248 = "";
-var249 = standard___standard__NativeString___to_s_with_length(var248, 0l);
+var249 = core__flat___NativeString___to_s_full(var248, 0l, 0l);
var247 = var249;
varonce246 = var247;
}
var_lend = var247;
}
-var250 = NEW_standard__FlatBuffer(&type_standard__FlatBuffer);
+var250 = NEW_core__FlatBuffer(&type_core__FlatBuffer);
{
-{ /* Inline string#FlatBuffer#init (var250) on <var250:FlatBuffer> */
+{ /* Inline flat#FlatBuffer#init (var250) on <var250:FlatBuffer> */
{
-((void(*)(val* self))(var250->class->vft[COLOR_standard___standard__FlatBuffer___standard__kernel__Object__init]))(var250); /* init on <var250:FlatBuffer>*/
+((void(*)(val* self))(var250->class->vft[COLOR_core___core__FlatBuffer___core__kernel__Object__init]))(var250); /* init on <var250:FlatBuffer>*/
}
RET_LABEL251:(void)0;
}
var_j = var_line_start;
{
{ /* Inline location#Location#column_start (var_l) on <var_l:Location> */
-var254 = var_l->attrs[COLOR_nit__location__Location___column_start].l; /* _column_start on <var_l:Location> */
+var254 = var_l->attrs[COLOR_nitc__location__Location___column_start].l; /* _column_start on <var_l:Location> */
var252 = var254;
RET_LABEL253:(void)0;
}
/* <var252:Int> isa OTHER */
var257 = 1; /* easy <var252:Int> isa OTHER*/
if (unlikely(!var257)) {
-var_class_name260 = type_standard__Int.name;
+var_class_name260 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name260);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 537);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 731);
fatal_exit(1);
}
var261 = var_line_start + var252;
/* <1l:Int> isa OTHER */
var264 = 1; /* easy <1l:Int> isa OTHER*/
if (unlikely(!var264)) {
-var_class_name267 = type_standard__Int.name;
+var_class_name267 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name267);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 540);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 734);
fatal_exit(1);
}
var268 = var255 - 1l;
/* <var_269:Int> isa OTHER */
var272 = 1; /* easy <var_269:Int> isa OTHER*/
if (unlikely(!var272)) {
-var_class_name275 = type_standard__Int.name;
+var_class_name275 = type_core__Int.name;
PRINT_ERROR("Runtime error: Cast failed. Expected `%s`, got `%s`", "OTHER", var_class_name275);
-PRINT_ERROR(" (%s:%d)\n", FILE_standard__kernel, 534);
+PRINT_ERROR(" (%s:%d)\n", FILE_core__kernel, 728);
fatal_exit(1);
}
var276 = var_j < var_269;
}
}
if (var270){
+} else {
+goto BREAK_label277;
+}
{
-var277 = ((val*(*)(val* self))(var_string->class->vft[COLOR_standard__string__Text__chars]))(var_string); /* chars on <var_string:String>*/
+var278 = ((val*(*)(val* self))(var_string->class->vft[COLOR_core__abstract_text__Text__chars]))(var_string); /* chars on <var_string:String>*/
}
{
-var278 = ((val*(*)(val* self, long p0))((((long)var277&3)?class_info[((long)var277&3)]:var277->class)->vft[COLOR_standard__abstract_collection__SequenceRead___91d_93d]))(var277, var_j); /* [] on <var277:SequenceRead[Char]>*/
+var279 = ((val*(*)(val* self, long p0))((((long)var278&3)?class_info[((long)var278&3)]:var278->class)->vft[COLOR_core__abstract_collection__SequenceRead___91d_93d]))(var278, var_j); /* [] on <var278:SequenceRead[Char]>*/
}
{
-{ /* Inline kernel#Char#== (var278,'\t') on <var278:nullable Object(Char)> */
-var282 = (uint32_t)((long)(var278)>>2);
-var281 = (var278 != NULL) && (var282 == '\t');
-var279 = var281;
-goto RET_LABEL280;
-RET_LABEL280:(void)0;
+{ /* Inline kernel#Char#== (var279,'\t') on <var279:nullable Object(Char)> */
+var283 = (uint32_t)((long)(var279)>>2);
+var282 = var283 == '\t';
+var280 = var282;
+goto RET_LABEL281;
+RET_LABEL281:(void)0;
}
}
-if (var279){
+if (var280){
{
-standard___standard__FlatBuffer___Buffer__add(var_indent, '\t'); /* Direct call string#FlatBuffer#add on <var_indent:FlatBuffer>*/
+core___core__FlatBuffer___core__abstract_text__Buffer__add(var_indent, '\t'); /* Direct call flat#FlatBuffer#add on <var_indent:FlatBuffer>*/
}
} else {
{
-standard___standard__FlatBuffer___Buffer__add(var_indent, ' '); /* Direct call string#FlatBuffer#add on <var_indent:FlatBuffer>*/
+core___core__FlatBuffer___core__abstract_text__Buffer__add(var_indent, ' '); /* Direct call flat#FlatBuffer#add on <var_indent:FlatBuffer>*/
}
}
{
-var283 = standard___standard__Int___Discrete__successor(var_j, 1l);
-}
-var_j = var283;
-} else {
-goto BREAK_label284;
+var284 = core___core__Int___Discrete__successor(var_j, 1l);
}
+var_j = var284;
}
-BREAK_label284: (void)0;
+BREAK_label277: (void)0;
if (unlikely(varonce285==NULL)) {
-var286 = NEW_standard__NativeArray(9l, &type_standard__NativeArray__standard__String);
+var286 = NEW_core__NativeArray(9l, &type_core__NativeArray__core__String);
if (likely(varonce287!=NULL)) {
var288 = varonce287;
} else {
var289 = "\t";
-var290 = standard___standard__NativeString___to_s_with_length(var289, 1l);
+var290 = core__flat___NativeString___to_s_full(var289, 1l, 1l);
var288 = var290;
varonce287 = var288;
}
-((struct instance_standard__NativeArray*)var286)->values[0]=var288;
+((struct instance_core__NativeArray*)var286)->values[0]=var288;
if (likely(varonce291!=NULL)) {
var292 = varonce291;
} else {
var293 = "\n\t";
-var294 = standard___standard__NativeString___to_s_with_length(var293, 2l);
+var294 = core__flat___NativeString___to_s_full(var293, 2l, 2l);
var292 = var294;
varonce291 = var292;
}
-((struct instance_standard__NativeArray*)var286)->values[6]=var292;
+((struct instance_core__NativeArray*)var286)->values[6]=var292;
if (likely(varonce295!=NULL)) {
var296 = varonce295;
} else {
var297 = "^";
-var298 = standard___standard__NativeString___to_s_with_length(var297, 1l);
+var298 = core__flat___NativeString___to_s_full(var297, 1l, 1l);
var296 = var298;
varonce295 = var296;
}
-((struct instance_standard__NativeArray*)var286)->values[8]=var296;
+((struct instance_core__NativeArray*)var286)->values[8]=var296;
} else {
var286 = varonce285;
varonce285 = NULL;
}
-((struct instance_standard__NativeArray*)var286)->values[1]=var_lstart;
-((struct instance_standard__NativeArray*)var286)->values[2]=var_col;
-((struct instance_standard__NativeArray*)var286)->values[3]=var_lmid;
-((struct instance_standard__NativeArray*)var286)->values[4]=var_def;
-((struct instance_standard__NativeArray*)var286)->values[5]=var_lend;
+((struct instance_core__NativeArray*)var286)->values[1]=var_lstart;
+((struct instance_core__NativeArray*)var286)->values[2]=var_col;
+((struct instance_core__NativeArray*)var286)->values[3]=var_lmid;
+((struct instance_core__NativeArray*)var286)->values[4]=var_def;
+((struct instance_core__NativeArray*)var286)->values[5]=var_lend;
{
-var299 = ((val*(*)(val* self))(var_indent->class->vft[COLOR_standard__string__Object__to_s]))(var_indent); /* to_s on <var_indent:FlatBuffer>*/
+var299 = ((val*(*)(val* self))(var_indent->class->vft[COLOR_core__abstract_text__Object__to_s]))(var_indent); /* to_s on <var_indent:FlatBuffer>*/
}
-((struct instance_standard__NativeArray*)var286)->values[7]=var299;
+((struct instance_core__NativeArray*)var286)->values[7]=var299;
{
-var300 = ((val*(*)(val* self))(var286->class->vft[COLOR_standard__string__NativeArray__native_to_s]))(var286); /* native_to_s on <var286:NativeArray[String]>*/
+var300 = ((val*(*)(val* self))(var286->class->vft[COLOR_core__abstract_text__NativeArray__native_to_s]))(var286); /* native_to_s on <var286:NativeArray[String]>*/
}
varonce285 = var286;
var = var300;
return var;
}
/* method location#Location#init for (self: Location) */
-void nit___nit__Location___standard__kernel__Object__init(val* self) {
+void nitc___nitc__Location___core__kernel__Object__init(val* self) {
{
-((void(*)(val* self))(self->class->vft[COLOR_nit___nit__Location___standard__kernel__Object__init]))(self); /* init on <self:Location>*/
+((void(*)(val* self))(self->class->vft[COLOR_nitc___nitc__Location___core__kernel__Object__init]))(self); /* init on <self:Location>*/
}
RET_LABEL:;
}