c_src: update with new intern methods
[nit.git] / c_src / c_tools.sep.1.c
diff --git a/c_src/c_tools.sep.1.c b/c_src/c_tools.sep.1.c
new file mode 100644 (file)
index 0000000..f776781
--- /dev/null
@@ -0,0 +1,632 @@
+#include "c_tools.sep.0.h"
+/* method c_tools#CCompilationUnit#header_c_base for (self: CCompilationUnit): Template */
+val* c_tools__CCompilationUnit__header_c_base(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = self->attrs[COLOR_c_tools__CCompilationUnit___64dheader_c_base].val; /* @header_c_base on <self:CCompilationUnit> */
+if (var1 == NULL) {
+fprintf(stderr, "Runtime error: %s", "Uninitialized attribute @header_c_base");
+fprintf(stderr, " (%s:%d)\n", "src/c_tools.nit", 24);
+show_backtrace(1);
+}
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#header_c_base for (self: Object): Template */
+val* VIRTUAL_c_tools__CCompilationUnit__header_c_base(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = c_tools__CCompilationUnit__header_c_base(self);
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#header_c_base= for (self: CCompilationUnit, Template) */
+void c_tools__CCompilationUnit__header_c_base_61d(val* self, val* p0) {
+self->attrs[COLOR_c_tools__CCompilationUnit___64dheader_c_base].val = p0; /* @header_c_base on <self:CCompilationUnit> */
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#header_c_base= for (self: Object, Template) */
+void VIRTUAL_c_tools__CCompilationUnit__header_c_base_61d(val* self, val* p0) {
+c_tools__CCompilationUnit__header_c_base_61d(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#header_custom for (self: CCompilationUnit): Template */
+val* c_tools__CCompilationUnit__header_custom(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = self->attrs[COLOR_c_tools__CCompilationUnit___64dheader_custom].val; /* @header_custom on <self:CCompilationUnit> */
+if (var1 == NULL) {
+fprintf(stderr, "Runtime error: %s", "Uninitialized attribute @header_custom");
+fprintf(stderr, " (%s:%d)\n", "src/c_tools.nit", 28);
+show_backtrace(1);
+}
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#header_custom for (self: Object): Template */
+val* VIRTUAL_c_tools__CCompilationUnit__header_custom(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = c_tools__CCompilationUnit__header_custom(self);
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#header_custom= for (self: CCompilationUnit, Template) */
+void c_tools__CCompilationUnit__header_custom_61d(val* self, val* p0) {
+self->attrs[COLOR_c_tools__CCompilationUnit___64dheader_custom].val = p0; /* @header_custom on <self:CCompilationUnit> */
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#header_custom= for (self: Object, Template) */
+void VIRTUAL_c_tools__CCompilationUnit__header_custom_61d(val* self, val* p0) {
+c_tools__CCompilationUnit__header_custom_61d(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#header_c_types for (self: CCompilationUnit): Template */
+val* c_tools__CCompilationUnit__header_c_types(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = self->attrs[COLOR_c_tools__CCompilationUnit___64dheader_c_types].val; /* @header_c_types on <self:CCompilationUnit> */
+if (var1 == NULL) {
+fprintf(stderr, "Runtime error: %s", "Uninitialized attribute @header_c_types");
+fprintf(stderr, " (%s:%d)\n", "src/c_tools.nit", 31);
+show_backtrace(1);
+}
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#header_c_types for (self: Object): Template */
+val* VIRTUAL_c_tools__CCompilationUnit__header_c_types(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = c_tools__CCompilationUnit__header_c_types(self);
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#header_c_types= for (self: CCompilationUnit, Template) */
+void c_tools__CCompilationUnit__header_c_types_61d(val* self, val* p0) {
+self->attrs[COLOR_c_tools__CCompilationUnit___64dheader_c_types].val = p0; /* @header_c_types on <self:CCompilationUnit> */
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#header_c_types= for (self: Object, Template) */
+void VIRTUAL_c_tools__CCompilationUnit__header_c_types_61d(val* self, val* p0) {
+c_tools__CCompilationUnit__header_c_types_61d(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#header_decl for (self: CCompilationUnit): Template */
+val* c_tools__CCompilationUnit__header_decl(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = self->attrs[COLOR_c_tools__CCompilationUnit___64dheader_decl].val; /* @header_decl on <self:CCompilationUnit> */
+if (var1 == NULL) {
+fprintf(stderr, "Runtime error: %s", "Uninitialized attribute @header_decl");
+fprintf(stderr, " (%s:%d)\n", "src/c_tools.nit", 34);
+show_backtrace(1);
+}
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#header_decl for (self: Object): Template */
+val* VIRTUAL_c_tools__CCompilationUnit__header_decl(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = c_tools__CCompilationUnit__header_decl(self);
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#header_decl= for (self: CCompilationUnit, Template) */
+void c_tools__CCompilationUnit__header_decl_61d(val* self, val* p0) {
+self->attrs[COLOR_c_tools__CCompilationUnit___64dheader_decl].val = p0; /* @header_decl on <self:CCompilationUnit> */
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#header_decl= for (self: Object, Template) */
+void VIRTUAL_c_tools__CCompilationUnit__header_decl_61d(val* self, val* p0) {
+c_tools__CCompilationUnit__header_decl_61d(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#body_decl for (self: CCompilationUnit): Template */
+val* c_tools__CCompilationUnit__body_decl(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = self->attrs[COLOR_c_tools__CCompilationUnit___64dbody_decl].val; /* @body_decl on <self:CCompilationUnit> */
+if (var1 == NULL) {
+fprintf(stderr, "Runtime error: %s", "Uninitialized attribute @body_decl");
+fprintf(stderr, " (%s:%d)\n", "src/c_tools.nit", 37);
+show_backtrace(1);
+}
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#body_decl for (self: Object): Template */
+val* VIRTUAL_c_tools__CCompilationUnit__body_decl(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = c_tools__CCompilationUnit__body_decl(self);
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#body_decl= for (self: CCompilationUnit, Template) */
+void c_tools__CCompilationUnit__body_decl_61d(val* self, val* p0) {
+self->attrs[COLOR_c_tools__CCompilationUnit___64dbody_decl].val = p0; /* @body_decl on <self:CCompilationUnit> */
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#body_decl= for (self: Object, Template) */
+void VIRTUAL_c_tools__CCompilationUnit__body_decl_61d(val* self, val* p0) {
+c_tools__CCompilationUnit__body_decl_61d(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#body_custom for (self: CCompilationUnit): Template */
+val* c_tools__CCompilationUnit__body_custom(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = self->attrs[COLOR_c_tools__CCompilationUnit___64dbody_custom].val; /* @body_custom on <self:CCompilationUnit> */
+if (var1 == NULL) {
+fprintf(stderr, "Runtime error: %s", "Uninitialized attribute @body_custom");
+fprintf(stderr, " (%s:%d)\n", "src/c_tools.nit", 41);
+show_backtrace(1);
+}
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#body_custom for (self: Object): Template */
+val* VIRTUAL_c_tools__CCompilationUnit__body_custom(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = c_tools__CCompilationUnit__body_custom(self);
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#body_custom= for (self: CCompilationUnit, Template) */
+void c_tools__CCompilationUnit__body_custom_61d(val* self, val* p0) {
+self->attrs[COLOR_c_tools__CCompilationUnit___64dbody_custom].val = p0; /* @body_custom on <self:CCompilationUnit> */
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#body_custom= for (self: Object, Template) */
+void VIRTUAL_c_tools__CCompilationUnit__body_custom_61d(val* self, val* p0) {
+c_tools__CCompilationUnit__body_custom_61d(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#body_impl for (self: CCompilationUnit): Template */
+val* c_tools__CCompilationUnit__body_impl(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = self->attrs[COLOR_c_tools__CCompilationUnit___64dbody_impl].val; /* @body_impl on <self:CCompilationUnit> */
+if (var1 == NULL) {
+fprintf(stderr, "Runtime error: %s", "Uninitialized attribute @body_impl");
+fprintf(stderr, " (%s:%d)\n", "src/c_tools.nit", 44);
+show_backtrace(1);
+}
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#body_impl for (self: Object): Template */
+val* VIRTUAL_c_tools__CCompilationUnit__body_impl(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = c_tools__CCompilationUnit__body_impl(self);
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#body_impl= for (self: CCompilationUnit, Template) */
+void c_tools__CCompilationUnit__body_impl_61d(val* self, val* p0) {
+self->attrs[COLOR_c_tools__CCompilationUnit___64dbody_impl].val = p0; /* @body_impl on <self:CCompilationUnit> */
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#body_impl= for (self: Object, Template) */
+void VIRTUAL_c_tools__CCompilationUnit__body_impl_61d(val* self, val* p0) {
+c_tools__CCompilationUnit__body_impl_61d(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#files for (self: CCompilationUnit): Array[String] */
+val* c_tools__CCompilationUnit__files(val* self) {
+val* var /* : Array[String] */;
+val* var1 /* : Array[String] */;
+var1 = self->attrs[COLOR_c_tools__CCompilationUnit___64dfiles].val; /* @files on <self:CCompilationUnit> */
+if (var1 == NULL) {
+fprintf(stderr, "Runtime error: %s", "Uninitialized attribute @files");
+fprintf(stderr, " (%s:%d)\n", "src/c_tools.nit", 47);
+show_backtrace(1);
+}
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#files for (self: Object): Array[String] */
+val* VIRTUAL_c_tools__CCompilationUnit__files(val* self) {
+val* var /* : Array[String] */;
+val* var1 /* : Array[String] */;
+var1 = c_tools__CCompilationUnit__files(self);
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CCompilationUnit#files= for (self: CCompilationUnit, Array[String]) */
+void c_tools__CCompilationUnit__files_61d(val* self, val* p0) {
+self->attrs[COLOR_c_tools__CCompilationUnit___64dfiles].val = p0; /* @files on <self:CCompilationUnit> */
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#files= for (self: Object, Array[String]) */
+void VIRTUAL_c_tools__CCompilationUnit__files_61d(val* self, val* p0) {
+c_tools__CCompilationUnit__files_61d(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#add_local_function for (self: CCompilationUnit, CFunction) */
+void c_tools__CCompilationUnit__add_local_function(val* self, val* p0) {
+val* var_efc /* var efc: CFunction */;
+val* var /* : Template */;
+val* var1 /* : String */;
+static val* varonce;
+val* var2 /* : String */;
+char* var3 /* : NativeString */;
+long var4 /* : Int */;
+val* var5 /* : String */;
+val* var6 /* : Array[Object] */;
+long var7 /* : Int */;
+val* var8 /* : NativeArray[Object] */;
+val* var9 /* : String */;
+val* var10 /* : Template */;
+static val* varonce11;
+val* var12 /* : String */;
+char* var13 /* : NativeString */;
+long var14 /* : Int */;
+val* var15 /* : String */;
+val* var16 /* : Template */;
+val* var17 /* : Template */;
+var_efc = p0;
+var = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CCompilationUnit__body_decl]))(self) /* body_decl on <self:CCompilationUnit>*/;
+var1 = ((val* (*)(val*))(var_efc->class->vft[COLOR_c_tools__CFunction__signature]))(var_efc) /* signature on <var_efc:CFunction>*/;
+if (varonce) {
+var2 = varonce;
+} else {
+var3 = ";\n";
+var4 = 2;
+var5 = string__NativeString__to_s_with_length(var3, var4);
+var2 = var5;
+varonce = var2;
+}
+var6 = NEW_array__Array(&type_array__Arraykernel__Object);
+{ /* var6 = array_instance Array[Object] */
+var7 = 2;
+var8 = NEW_array__NativeArray(var7, &type_array__NativeArraykernel__Object);
+((struct instance_array__NativeArray*)var8)->values[0] = (val*) var1;
+((struct instance_array__NativeArray*)var8)->values[1] = (val*) var2;
+((void (*)(val*, val*, long))(var6->class->vft[COLOR_array__Array__with_native]))(var6, var8, var7) /* with_native on <var6:Array[Object]>*/;
+}
+var9 = ((val* (*)(val*))(var6->class->vft[COLOR_string__Object__to_s]))(var6) /* to_s on <var6:Array[Object]>*/;
+((void (*)(val*, val*))(var->class->vft[COLOR_template__Template__add]))(var, var9) /* add on <var:Template>*/;
+var10 = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CCompilationUnit__body_impl]))(self) /* body_impl on <self:CCompilationUnit>*/;
+if (varonce11) {
+var12 = varonce11;
+} else {
+var13 = "\n";
+var14 = 1;
+var15 = string__NativeString__to_s_with_length(var13, var14);
+var12 = var15;
+varonce11 = var12;
+}
+((void (*)(val*, val*))(var10->class->vft[COLOR_template__Template__add]))(var10, var12) /* add on <var10:Template>*/;
+var16 = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CCompilationUnit__body_impl]))(self) /* body_impl on <self:CCompilationUnit>*/;
+var17 = ((val* (*)(val*))(var_efc->class->vft[COLOR_c_tools__CFunction__to_writer]))(var_efc) /* to_writer on <var_efc:CFunction>*/;
+((void (*)(val*, val*))(var16->class->vft[COLOR_template__Template__add]))(var16, var17) /* add on <var16:Template>*/;
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#add_local_function for (self: Object, CFunction) */
+void VIRTUAL_c_tools__CCompilationUnit__add_local_function(val* self, val* p0) {
+c_tools__CCompilationUnit__add_local_function(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#add_exported_function for (self: CCompilationUnit, CFunction) */
+void c_tools__CCompilationUnit__add_exported_function(val* self, val* p0) {
+val* var_efc /* var efc: CFunction */;
+val* var /* : Template */;
+val* var1 /* : String */;
+static val* varonce;
+val* var2 /* : String */;
+char* var3 /* : NativeString */;
+long var4 /* : Int */;
+val* var5 /* : String */;
+val* var6 /* : Array[Object] */;
+long var7 /* : Int */;
+val* var8 /* : NativeArray[Object] */;
+val* var9 /* : String */;
+val* var10 /* : Template */;
+static val* varonce11;
+val* var12 /* : String */;
+char* var13 /* : NativeString */;
+long var14 /* : Int */;
+val* var15 /* : String */;
+val* var16 /* : Template */;
+val* var17 /* : Template */;
+var_efc = p0;
+var = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CCompilationUnit__header_decl]))(self) /* header_decl on <self:CCompilationUnit>*/;
+var1 = ((val* (*)(val*))(var_efc->class->vft[COLOR_c_tools__CFunction__signature]))(var_efc) /* signature on <var_efc:CFunction>*/;
+if (varonce) {
+var2 = varonce;
+} else {
+var3 = ";\n";
+var4 = 2;
+var5 = string__NativeString__to_s_with_length(var3, var4);
+var2 = var5;
+varonce = var2;
+}
+var6 = NEW_array__Array(&type_array__Arraykernel__Object);
+{ /* var6 = array_instance Array[Object] */
+var7 = 2;
+var8 = NEW_array__NativeArray(var7, &type_array__NativeArraykernel__Object);
+((struct instance_array__NativeArray*)var8)->values[0] = (val*) var1;
+((struct instance_array__NativeArray*)var8)->values[1] = (val*) var2;
+((void (*)(val*, val*, long))(var6->class->vft[COLOR_array__Array__with_native]))(var6, var8, var7) /* with_native on <var6:Array[Object]>*/;
+}
+var9 = ((val* (*)(val*))(var6->class->vft[COLOR_string__Object__to_s]))(var6) /* to_s on <var6:Array[Object]>*/;
+((void (*)(val*, val*))(var->class->vft[COLOR_template__Template__add]))(var, var9) /* add on <var:Template>*/;
+var10 = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CCompilationUnit__body_impl]))(self) /* body_impl on <self:CCompilationUnit>*/;
+if (varonce11) {
+var12 = varonce11;
+} else {
+var13 = "\n";
+var14 = 1;
+var15 = string__NativeString__to_s_with_length(var13, var14);
+var12 = var15;
+varonce11 = var12;
+}
+((void (*)(val*, val*))(var10->class->vft[COLOR_template__Template__add]))(var10, var12) /* add on <var10:Template>*/;
+var16 = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CCompilationUnit__body_impl]))(self) /* body_impl on <self:CCompilationUnit>*/;
+var17 = ((val* (*)(val*))(var_efc->class->vft[COLOR_c_tools__CFunction__to_writer]))(var_efc) /* to_writer on <var_efc:CFunction>*/;
+((void (*)(val*, val*))(var16->class->vft[COLOR_template__Template__add]))(var16, var17) /* add on <var16:Template>*/;
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#add_exported_function for (self: Object, CFunction) */
+void VIRTUAL_c_tools__CCompilationUnit__add_exported_function(val* self, val* p0) {
+c_tools__CCompilationUnit__add_exported_function(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#compile_header_core for (self: CCompilationUnit, OStream) */
+void c_tools__CCompilationUnit__compile_header_core(val* self, val* p0) {
+val* var_stream /* var stream: OStream */;
+val* var /* : Template */;
+val* var1 /* : Template */;
+val* var2 /* : Template */;
+val* var3 /* : Template */;
+var_stream = p0;
+var = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CCompilationUnit__header_c_base]))(self) /* header_c_base on <self:CCompilationUnit>*/;
+((void (*)(val*, val*))(var->class->vft[COLOR_stream__Streamable__write_to]))(var, var_stream) /* write_to on <var:Template>*/;
+var1 = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CCompilationUnit__header_custom]))(self) /* header_custom on <self:CCompilationUnit>*/;
+((void (*)(val*, val*))(var1->class->vft[COLOR_stream__Streamable__write_to]))(var1, var_stream) /* write_to on <var1:Template>*/;
+var2 = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CCompilationUnit__header_c_types]))(self) /* header_c_types on <self:CCompilationUnit>*/;
+((void (*)(val*, val*))(var2->class->vft[COLOR_stream__Streamable__write_to]))(var2, var_stream) /* write_to on <var2:Template>*/;
+var3 = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CCompilationUnit__header_decl]))(self) /* header_decl on <self:CCompilationUnit>*/;
+((void (*)(val*, val*))(var3->class->vft[COLOR_stream__Streamable__write_to]))(var3, var_stream) /* write_to on <var3:Template>*/;
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#compile_header_core for (self: Object, OStream) */
+void VIRTUAL_c_tools__CCompilationUnit__compile_header_core(val* self, val* p0) {
+c_tools__CCompilationUnit__compile_header_core(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#compile_body_core for (self: CCompilationUnit, OStream) */
+void c_tools__CCompilationUnit__compile_body_core(val* self, val* p0) {
+val* var_stream /* var stream: OStream */;
+val* var /* : Template */;
+val* var1 /* : Template */;
+val* var2 /* : Template */;
+var_stream = p0;
+var = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CCompilationUnit__body_decl]))(self) /* body_decl on <self:CCompilationUnit>*/;
+((void (*)(val*, val*))(var->class->vft[COLOR_stream__Streamable__write_to]))(var, var_stream) /* write_to on <var:Template>*/;
+var1 = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CCompilationUnit__body_custom]))(self) /* body_custom on <self:CCompilationUnit>*/;
+((void (*)(val*, val*))(var1->class->vft[COLOR_stream__Streamable__write_to]))(var1, var_stream) /* write_to on <var1:Template>*/;
+var2 = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CCompilationUnit__body_impl]))(self) /* body_impl on <self:CCompilationUnit>*/;
+((void (*)(val*, val*))(var2->class->vft[COLOR_stream__Streamable__write_to]))(var2, var_stream) /* write_to on <var2:Template>*/;
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#compile_body_core for (self: Object, OStream) */
+void VIRTUAL_c_tools__CCompilationUnit__compile_body_core(val* self, val* p0) {
+c_tools__CCompilationUnit__compile_body_core(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#init for (self: CCompilationUnit) */
+void c_tools__CCompilationUnit__init(val* self) {
+RET_LABEL:;
+}
+/* method c_tools#CCompilationUnit#init for (self: Object) */
+void VIRTUAL_c_tools__CCompilationUnit__init(val* self) {
+c_tools__CCompilationUnit__init(self);
+RET_LABEL:;
+}
+/* method c_tools#CFunction#signature for (self: CFunction): String */
+val* c_tools__CFunction__signature(val* self) {
+val* var /* : String */;
+val* var1 /* : String */;
+var1 = self->attrs[COLOR_c_tools__CFunction___64dsignature].val; /* @signature on <self:CFunction> */
+if (var1 == NULL) {
+fprintf(stderr, "Runtime error: %s", "Uninitialized attribute @signature");
+fprintf(stderr, " (%s:%d)\n", "src/c_tools.nit", 82);
+show_backtrace(1);
+}
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CFunction#signature for (self: Object): String */
+val* VIRTUAL_c_tools__CFunction__signature(val* self) {
+val* var /* : String */;
+val* var1 /* : String */;
+var1 = c_tools__CFunction__signature(self);
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CFunction#signature= for (self: CFunction, String) */
+void c_tools__CFunction__signature_61d(val* self, val* p0) {
+self->attrs[COLOR_c_tools__CFunction___64dsignature].val = p0; /* @signature on <self:CFunction> */
+RET_LABEL:;
+}
+/* method c_tools#CFunction#signature= for (self: Object, String) */
+void VIRTUAL_c_tools__CFunction__signature_61d(val* self, val* p0) {
+c_tools__CFunction__signature_61d(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CFunction#decls for (self: CFunction): Template */
+val* c_tools__CFunction__decls(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = self->attrs[COLOR_c_tools__CFunction___64ddecls].val; /* @decls on <self:CFunction> */
+if (var1 == NULL) {
+fprintf(stderr, "Runtime error: %s", "Uninitialized attribute @decls");
+fprintf(stderr, " (%s:%d)\n", "src/c_tools.nit", 84);
+show_backtrace(1);
+}
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CFunction#decls for (self: Object): Template */
+val* VIRTUAL_c_tools__CFunction__decls(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = c_tools__CFunction__decls(self);
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CFunction#decls= for (self: CFunction, Template) */
+void c_tools__CFunction__decls_61d(val* self, val* p0) {
+self->attrs[COLOR_c_tools__CFunction___64ddecls].val = p0; /* @decls on <self:CFunction> */
+RET_LABEL:;
+}
+/* method c_tools#CFunction#decls= for (self: Object, Template) */
+void VIRTUAL_c_tools__CFunction__decls_61d(val* self, val* p0) {
+c_tools__CFunction__decls_61d(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CFunction#exprs for (self: CFunction): Template */
+val* c_tools__CFunction__exprs(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = self->attrs[COLOR_c_tools__CFunction___64dexprs].val; /* @exprs on <self:CFunction> */
+if (var1 == NULL) {
+fprintf(stderr, "Runtime error: %s", "Uninitialized attribute @exprs");
+fprintf(stderr, " (%s:%d)\n", "src/c_tools.nit", 85);
+show_backtrace(1);
+}
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CFunction#exprs for (self: Object): Template */
+val* VIRTUAL_c_tools__CFunction__exprs(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = c_tools__CFunction__exprs(self);
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CFunction#exprs= for (self: CFunction, Template) */
+void c_tools__CFunction__exprs_61d(val* self, val* p0) {
+self->attrs[COLOR_c_tools__CFunction___64dexprs].val = p0; /* @exprs on <self:CFunction> */
+RET_LABEL:;
+}
+/* method c_tools#CFunction#exprs= for (self: Object, Template) */
+void VIRTUAL_c_tools__CFunction__exprs_61d(val* self, val* p0) {
+c_tools__CFunction__exprs_61d(self, p0);
+RET_LABEL:;
+}
+/* method c_tools#CFunction#to_writer for (self: CFunction): Template */
+val* c_tools__CFunction__to_writer(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+val* var_w /* var w: Template */;
+val* var2 /* : String */;
+static val* varonce;
+val* var3 /* : String */;
+char* var4 /* : NativeString */;
+long var5 /* : Int */;
+val* var6 /* : String */;
+val* var7 /* : Template */;
+static val* varonce8;
+val* var9 /* : String */;
+char* var10 /* : NativeString */;
+long var11 /* : Int */;
+val* var12 /* : String */;
+val* var13 /* : Template */;
+static val* varonce14;
+val* var15 /* : String */;
+char* var16 /* : NativeString */;
+long var17 /* : Int */;
+val* var18 /* : String */;
+var1 = NEW_template__Template(&type_template__Template);
+((void (*)(val*))(var1->class->vft[COLOR_template__Template__init]))(var1) /* init on <var1:Template>*/;
+var_w = var1;
+var2 = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CFunction__signature]))(self) /* signature on <self:CFunction>*/;
+((void (*)(val*, val*))(var_w->class->vft[COLOR_template__Template__add]))(var_w, var2) /* add on <var_w:Template>*/;
+if (varonce) {
+var3 = varonce;
+} else {
+var4 = "\n{\n";
+var5 = 3;
+var6 = string__NativeString__to_s_with_length(var4, var5);
+var3 = var6;
+varonce = var3;
+}
+((void (*)(val*, val*))(var_w->class->vft[COLOR_template__Template__add]))(var_w, var3) /* add on <var_w:Template>*/;
+var7 = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CFunction__decls]))(self) /* decls on <self:CFunction>*/;
+((void (*)(val*, val*))(var_w->class->vft[COLOR_template__Template__add]))(var_w, var7) /* add on <var_w:Template>*/;
+if (varonce8) {
+var9 = varonce8;
+} else {
+var10 = "\n";
+var11 = 1;
+var12 = string__NativeString__to_s_with_length(var10, var11);
+var9 = var12;
+varonce8 = var9;
+}
+((void (*)(val*, val*))(var_w->class->vft[COLOR_template__Template__add]))(var_w, var9) /* add on <var_w:Template>*/;
+var13 = ((val* (*)(val*))(self->class->vft[COLOR_c_tools__CFunction__exprs]))(self) /* exprs on <self:CFunction>*/;
+((void (*)(val*, val*))(var_w->class->vft[COLOR_template__Template__add]))(var_w, var13) /* add on <var_w:Template>*/;
+if (varonce14) {
+var15 = varonce14;
+} else {
+var16 = "}\n";
+var17 = 2;
+var18 = string__NativeString__to_s_with_length(var16, var17);
+var15 = var18;
+varonce14 = var15;
+}
+((void (*)(val*, val*))(var_w->class->vft[COLOR_template__Template__add]))(var_w, var15) /* add on <var_w:Template>*/;
+var = var_w;
+goto RET_LABEL;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CFunction#to_writer for (self: Object): Template */
+val* VIRTUAL_c_tools__CFunction__to_writer(val* self) {
+val* var /* : Template */;
+val* var1 /* : Template */;
+var1 = c_tools__CFunction__to_writer(self);
+var = var1;
+RET_LABEL:;
+return var;
+}
+/* method c_tools#CFunction#init for (self: CFunction, String) */
+void c_tools__CFunction__init(val* self, val* p0) {
+self->attrs[COLOR_c_tools__CFunction___64dsignature].val = p0; /* @signature on <self:CFunction> */
+RET_LABEL:;
+}
+/* method c_tools#CFunction#init for (self: Object, String) */
+void VIRTUAL_c_tools__CFunction__init(val* self, val* p0) {
+c_tools__CFunction__init(self, p0);
+RET_LABEL:;
+}