/* This C file is generated by NIT to compile module program. */
#include "program._sep.h"
+static const char LOCATE_program___ToolContext___global[] = "program::ToolContext::global";
val_t program___ToolContext___global(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_program___ToolContext___global__eq[] = "program::ToolContext::global=";
void program___ToolContext___global__eq(val_t p0, val_t p1){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_program___ToolContext___use_SFT_optimization__eq[] = "program::ToolContext::use_SFT_optimization=";
void program___ToolContext___use_SFT_optimization__eq(val_t p0, val_t p1){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_program___ToolContext___use_SFT_optimization[] = "program::ToolContext::use_SFT_optimization";
val_t program___ToolContext___use_SFT_optimization(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
}
REGB0 = ATTR_program___ToolContext____use_SFT_optimization(fra.me.REG[0]);
} else {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
}
goto label1;
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_program___Program___tc[] = "program::Program::tc";
val_t program___Program___tc(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_program___Program___main_module[] = "program::Program::main_module";
val_t program___Program___main_module(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_program___Program___main_method[] = "program::Program::main_method";
val_t program___Program___main_method(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t tmp;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_program___Program___main_class[] = "program::Program::main_class";
val_t program___Program___main_class(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t tmp;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_program___Program___finish_processing_classes[] = "program::Program::finish_processing_classes";
void program___Program___finish_processing_classes(val_t p0){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ../lib/standard/kernel.nit:232 */
+ /* ../lib/standard/kernel.nit:235 */
REGB1 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB1));
/* ../lib/standard/collection/array.nit:272 */
if (UNTAG_Bool(REGB1)) {
CALL_metamodel___inheritance___MMLocalClass___compute_ancestors(fra.me.REG[2])(fra.me.REG[2]);
/* ../lib/standard/collection/array.nit:274 */
REGB1 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
/* ../lib/standard/collection/array.nit:274 */
REGB0 = REGB1;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_program___Program___compute_main_method[] = "program::Program::compute_main_method";
void program___Program___compute_main_method(val_t p0){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
register_static_object(&once_value_2);
} else fra.me.REG[1] = once_value_2;
fra.me.REG[1] = fra.me.REG[1];
- fra.me.REG[1] = CALL_standard___symbol___String___to_symbol(fra.me.REG[1])(fra.me.REG[1]);
+ fra.me.REG[1] = CALL_symbol___String___to_symbol(fra.me.REG[1])(fra.me.REG[1]);
once_value_1 = fra.me.REG[1];
register_static_object(&once_value_1);
} else fra.me.REG[1] = once_value_1;
register_static_object(&once_value_5);
} else fra.me.REG[2] = once_value_5;
fra.me.REG[2] = fra.me.REG[2];
- fra.me.REG[2] = CALL_standard___symbol___String___to_symbol(fra.me.REG[2])(fra.me.REG[2]);
+ fra.me.REG[2] = CALL_symbol___String___to_symbol(fra.me.REG[2])(fra.me.REG[2]);
once_value_4 = fra.me.REG[2];
register_static_object(&once_value_4);
} else fra.me.REG[2] = once_value_4;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_program___Program___generate_allocation_iroutines[] = "program::Program::generate_allocation_iroutines";
void program___Program___generate_allocation_iroutines(val_t p0){
struct {struct stack_frame_t me; val_t MORE_REG[5];} fra;
val_t tmp;
fra.me.REG[0] = CALL_metamodel___abstractmetamodel___MMLocalClass___global(closctx->REG[2])(closctx->REG[2]);
REGB0 = CALL_metamodel___abstractmetamodel___MMGlobalClass___is_abstract(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
- REGB0 = TAG_Bool(true);
+ REGB0 = TAG_Bool(1);
} else {
fra.me.REG[0] = CALL_metamodel___abstractmetamodel___MMLocalClass___global(closctx->REG[2])(closctx->REG[2]);
REGB1 = CALL_metamodel___abstractmetamodel___MMGlobalClass___is_interface(fra.me.REG[0])(fra.me.REG[0]);
} else {
REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL);
} else {
REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[1])(fra.me.REG[1], NIT_NULL);
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
} else {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[1])(fra.me.REG[1], NIT_NULL);
} else {
REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[1])(fra.me.REG[1], NIT_NULL);
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
} else {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
REGB0 = CALL_metamodel___static_type___MMType___is_nullable(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
} else {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
nit_abort("Reciever is null", NULL, LOCATE_program, 135);
}
REGB1 = CALL_metamodel___static_type___MMSignature___arity(fra.me.REG[3])(fra.me.REG[3]);
- /* ../lib/standard/kernel.nit:352 */
+ /* ../lib/standard/kernel.nit:355 */
while(1) {
REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
if (UNTAG_Bool(REGB2)) {
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ../lib/standard/kernel.nit:232 */
+ /* ../lib/standard/kernel.nit:235 */
REGB2 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB1));
- /* ../lib/standard/kernel.nit:352 */
+ /* ../lib/standard/kernel.nit:355 */
if (UNTAG_Bool(REGB2)) {
/* program.nit:135 */
REGB2 = REGB0;
fra.me.REG[3] = CALL_metamodel___static_type___MMSignature_____bra(fra.me.REG[3])(fra.me.REG[3], REGB2);
fra.me.REG[3] = NEW_IRegister_icode___icode_base___IRegister___init(fra.me.REG[3]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ../lib/standard/kernel.nit:354 */
+ /* ../lib/standard/kernel.nit:357 */
REGB2 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB2 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB2));
- /* ../lib/standard/kernel.nit:354 */
+ /* ../lib/standard/kernel.nit:357 */
REGB0 = REGB2;
} else {
- /* ../lib/standard/kernel.nit:352 */
+ /* ../lib/standard/kernel.nit:355 */
goto label9;
}
}
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_program___Program___with_each_iroutines[] = "program::Program::with_each_iroutines";
void program___Program___with_each_iroutines(val_t p0, struct stack_frame_t *closctx_param, fun_t clos_fun0){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
} else {
REGB1 = TAG_Bool(closctx->REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(closctx->REG[2])(closctx->REG[2], NIT_NULL);
} else {
REGB1 = TAG_Bool(closctx->REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(closctx->REG[2])(closctx->REG[2], NIT_NULL);
} else {
REGB1 = TAG_Bool(closctx->REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(closctx->REG[2])(closctx->REG[2], NIT_NULL);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_program___Program___with_each_methods[] = "program::Program::with_each_methods";
void program___Program___with_each_methods(val_t p0, struct stack_frame_t *closctx_param, fun_t clos_fun0){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_program___Program___with_each_live_local_classes[] = "program::Program::with_each_live_local_classes";
void program___Program___with_each_live_local_classes(val_t p0, struct stack_frame_t *closctx_param, fun_t clos_fun0){
struct {struct stack_frame_t me;} fra;
fun_t CREG[1];
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_program___Program___init[] = "program::Program::init";
void program___Program___init(val_t p0, val_t p1, val_t p2, int* init_table){
int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_program___Program].i;
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
init_table[itpos0] = 1;
return;
}
+static const char LOCATE_program___MMLocalClass___init_var_iroutine[] = "program::MMLocalClass::init_var_iroutine";
val_t program___MMLocalClass___init_var_iroutine(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t tmp;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_program___MMLocalClass___init_var_iroutine__eq[] = "program::MMLocalClass::init_var_iroutine=";
void program___MMLocalClass___init_var_iroutine__eq(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t tmp;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_program___MMLocalClass___checknew_iroutine[] = "program::MMLocalClass::checknew_iroutine";
val_t program___MMLocalClass___checknew_iroutine(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t tmp;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_program___MMLocalClass___checknew_iroutine__eq[] = "program::MMLocalClass::checknew_iroutine=";
void program___MMLocalClass___checknew_iroutine__eq(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t tmp;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_program___MMLocalClass___new_instance_iroutine[] = "program::MMLocalClass::new_instance_iroutine";
val_t program___MMLocalClass___new_instance_iroutine(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;