X-Git-Url: http://nitlanguage.org diff --git a/c_src/mmloader._sep.c b/c_src/mmloader._sep.c index 33d5adf..d2bbfb2 100644 --- a/c_src/mmloader._sep.c +++ b/c_src/mmloader._sep.c @@ -1,1619 +1,69 @@ /* This C file is generated by NIT to compile module mmloader. */ #include "mmloader._sep.h" -val_t mmloader___Message___location(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 30; - fra.me.meth = LOCATE_mmloader___Message___location; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:30 */ - fra.me.REG[0] = ATTR_mmloader___Message____location(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return fra.me.REG[0]; -} -val_t mmloader___Message___text(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 31; - fra.me.meth = LOCATE_mmloader___Message___text; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:31 */ - REGB0 = TAG_Bool(ATTR_mmloader___Message____text(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_text", LOCATE_mmloader, 31); - } - fra.me.REG[0] = ATTR_mmloader___Message____text(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return fra.me.REG[0]; -} -val_t mmloader___Message_____l(val_t p0, val_t p1){ - struct {struct stack_frame_t me; val_t MORE_REG[3];} fra; - val_t REGB0; - val_t REGB1; - val_t REGB2; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 33; - fra.me.meth = LOCATE_mmloader___Message_____l; - fra.me.has_broke = 0; - fra.me.REG_size = 4; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[3] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[1], VTCOLOR_standard___kernel___Comparable___OTHER(fra.me.REG[0]), VTID_standard___kernel___Comparable___OTHER(fra.me.REG[0]))) /*cast OTHER*/; - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Cast failed", NULL, LOCATE_mmloader, 0); - } - /* ./mmloader.nit:33 */ - fra.me.REG[2] = fra.me.REG[0]; - /* ./mmloader.nit:34 */ - fra.me.REG[3] = CALL_mmloader___Message___location(fra.me.REG[2])(fra.me.REG[2]); - REGB0 = TAG_Bool(fra.me.REG[3]==NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - REGB1 = TAG_Bool(fra.me.REG[3]==NIT_NULL); - if (UNTAG_Bool(REGB1)) { - REGB1 = TAG_Bool(false); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[3])(fra.me.REG[3], NIT_NULL); - REGB0 = REGB1; - } - } - if (UNTAG_Bool(REGB0)) { - REGB0 = TAG_Bool(true); - goto label1; - } - /* ./mmloader.nit:35 */ - fra.me.REG[3] = CALL_mmloader___Message___location(fra.me.REG[1])(fra.me.REG[1]); - REGB1 = TAG_Bool(fra.me.REG[3]==NIT_NULL); - if (UNTAG_Bool(REGB1)) { - } else { - REGB2 = TAG_Bool(fra.me.REG[3]==NIT_NULL); - if (UNTAG_Bool(REGB2)) { - REGB2 = TAG_Bool(false); - REGB1 = REGB2; - } else { - REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[3])(fra.me.REG[3], NIT_NULL); - REGB1 = REGB2; - } - } - if (UNTAG_Bool(REGB1)) { - REGB1 = TAG_Bool(false); - REGB0 = REGB1; - goto label1; - } - /* ./mmloader.nit:37 */ - fra.me.REG[2] = CALL_mmloader___Message___location(fra.me.REG[2])(fra.me.REG[2]); - REGB1 = TAG_Bool(fra.me.REG[2]!=NIT_NULL); - if (UNTAG_Bool(REGB1)) { - } else { - nit_abort("Cast failed", NULL, LOCATE_mmloader, 37); - } - fra.me.REG[1] = CALL_mmloader___Message___location(fra.me.REG[1])(fra.me.REG[1]); - REGB1 = TAG_Bool(fra.me.REG[1]!=NIT_NULL); - if (UNTAG_Bool(REGB1)) { - } else { - nit_abort("Cast failed", NULL, LOCATE_mmloader, 37); - } - REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL); - if (UNTAG_Bool(REGB1)) { - nit_abort("Reciever is null", NULL, LOCATE_mmloader, 37); - } - REGB1 = CALL_standard___kernel___Comparable_____l(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]); - REGB0 = REGB1; - goto label1; - label1: while(0); - stack_frame_head = fra.me.prev; - return REGB0; -} -val_t mmloader___Message___to_s(val_t p0){ - struct {struct stack_frame_t me; val_t MORE_REG[4];} fra; - val_t REGB0; - val_t REGB1; - val_t tmp; - static val_t once_value_2; /* Once value */ - static val_t once_value_3; /* Once value */ - static val_t once_value_4; /* Once value */ - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 40; - fra.me.meth = LOCATE_mmloader___Message___to_s; - fra.me.has_broke = 0; - fra.me.REG_size = 5; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[3] = NIT_NULL; - fra.me.REG[4] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:42 */ - fra.me.REG[1] = CALL_mmloader___Message___location(fra.me.REG[0])(fra.me.REG[0]); - /* ./mmloader.nit:43 */ - REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL); - if (UNTAG_Bool(REGB1)) { - REGB1 = TAG_Bool(false); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[1])(fra.me.REG[1], NIT_NULL); - REGB0 = REGB1; - } - } - if (UNTAG_Bool(REGB0)) { - /* ./mmloader.nit:44 */ - fra.me.REG[2] = CALL_mmloader___Message___text(fra.me.REG[0])(fra.me.REG[0]); - goto label1; - } else { - /* ./mmloader.nit:46 */ - REGB0 = TAG_Int(5); - fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); - if (!once_value_2) { - fra.me.REG[4] = BOX_NativeString(""); - REGB0 = TAG_Int(0); - fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0); - once_value_2 = fra.me.REG[4]; - register_static_object(&once_value_2); - } else fra.me.REG[4] = once_value_2; - fra.me.REG[4] = fra.me.REG[4]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]); - fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1]); - if (!once_value_3) { - fra.me.REG[1] = BOX_NativeString(": "); - REGB0 = TAG_Int(2); - fra.me.REG[1] = NEW_String_standard___string___String___with_native(fra.me.REG[1], REGB0); - once_value_3 = fra.me.REG[1]; - register_static_object(&once_value_3); - } else fra.me.REG[1] = once_value_3; - fra.me.REG[1] = fra.me.REG[1]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1]); - fra.me.REG[0] = CALL_mmloader___Message___text(fra.me.REG[0])(fra.me.REG[0]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]); - if (!once_value_4) { - fra.me.REG[0] = BOX_NativeString(""); - REGB0 = TAG_Int(0); - fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0); - once_value_4 = fra.me.REG[0]; - register_static_object(&once_value_4); - } else fra.me.REG[0] = once_value_4; - fra.me.REG[0] = fra.me.REG[0]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]); - fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]); - fra.me.REG[2] = fra.me.REG[3]; - goto label1; - } - label1: while(0); - stack_frame_head = fra.me.prev; - return fra.me.REG[2]; -} -val_t mmloader___Message___to_color_string(val_t p0){ - struct {struct stack_frame_t me; val_t MORE_REG[11];} fra; - val_t REGB0; - val_t REGB1; - val_t REGB2; - val_t REGB3; - val_t REGB4; - val_t REGB5; - val_t tmp; - static val_t once_value_1; /* Once value */ - static val_t once_value_2; /* Once value */ - static val_t once_value_3; /* Once value */ - static val_t once_value_4; /* Once value */ - static val_t once_value_5; /* Once value */ - static val_t once_value_6; /* Once value */ - static val_t once_value_7; /* Once value */ - static val_t once_value_8; /* Once value */ - static val_t once_value_9; /* Once value */ - static val_t once_value_10; /* Once value */ - static val_t once_value_12; /* Once value */ - static val_t once_value_13; /* Once value */ - static val_t once_value_14; /* Once value */ - static val_t once_value_15; /* Once value */ - static val_t once_value_16; /* Once value */ - static val_t once_value_20; /* Once value */ - static val_t once_value_21; /* Once value */ - static val_t once_value_22; /* Once value */ - static val_t once_value_23; /* Once value */ - static val_t once_value_24; /* Once value */ - static val_t once_value_25; /* Once value */ - static val_t once_value_26; /* Once value */ - static val_t once_value_27; /* Once value */ - static val_t once_value_28; /* Once value */ - static val_t once_value_29; /* Once value */ - static val_t once_value_30; /* Once value */ - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 50; - fra.me.meth = LOCATE_mmloader___Message___to_color_string; - fra.me.has_broke = 0; - fra.me.REG_size = 12; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[3] = NIT_NULL; - fra.me.REG[4] = NIT_NULL; - fra.me.REG[5] = NIT_NULL; - fra.me.REG[6] = NIT_NULL; - fra.me.REG[7] = NIT_NULL; - fra.me.REG[8] = NIT_NULL; - fra.me.REG[9] = NIT_NULL; - fra.me.REG[10] = NIT_NULL; - fra.me.REG[11] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:52 */ - REGB0 = TAG_Int(27); - /* ./../lib/standard//kernel.nit:297 */ - REGB0 = TAG_Char(UNTAG_Int(REGB0)); - /* ./mmloader.nit:53 */ - REGB1 = TAG_Int(3); - fra.me.REG[1] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1); - if (!once_value_1) { - fra.me.REG[2] = BOX_NativeString(""); - REGB1 = TAG_Int(0); - fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB1); - once_value_1 = fra.me.REG[2]; - register_static_object(&once_value_1); - } else fra.me.REG[2] = once_value_1; - fra.me.REG[2] = fra.me.REG[2]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]); - fra.me.REG[2] = CALL_standard___string___Object___to_s(REGB0)(REGB0); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]); - if (!once_value_2) { - fra.me.REG[2] = BOX_NativeString("[0;31m"); - REGB1 = TAG_Int(6); - fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB1); - once_value_2 = fra.me.REG[2]; - register_static_object(&once_value_2); - } else fra.me.REG[2] = once_value_2; - fra.me.REG[2] = fra.me.REG[2]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]); - fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]); - /* ./mmloader.nit:54 */ - REGB1 = TAG_Int(3); - fra.me.REG[1] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1); - if (!once_value_3) { - fra.me.REG[2] = BOX_NativeString(""); - REGB1 = TAG_Int(0); - fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB1); - once_value_3 = fra.me.REG[2]; - register_static_object(&once_value_3); - } else fra.me.REG[2] = once_value_3; - fra.me.REG[2] = fra.me.REG[2]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]); - fra.me.REG[2] = CALL_standard___string___Object___to_s(REGB0)(REGB0); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]); - if (!once_value_4) { - fra.me.REG[2] = BOX_NativeString("[1;31m"); - REGB1 = TAG_Int(6); - fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB1); - once_value_4 = fra.me.REG[2]; - register_static_object(&once_value_4); - } else fra.me.REG[2] = once_value_4; - fra.me.REG[2] = fra.me.REG[2]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]); - fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]); - /* ./mmloader.nit:55 */ - REGB1 = TAG_Int(3); - fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1); - if (!once_value_5) { - fra.me.REG[3] = BOX_NativeString(""); - REGB1 = TAG_Int(0); - fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB1); - once_value_5 = fra.me.REG[3]; - register_static_object(&once_value_5); - } else fra.me.REG[3] = once_value_5; - fra.me.REG[3] = fra.me.REG[3]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - fra.me.REG[3] = CALL_standard___string___Object___to_s(REGB0)(REGB0); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - if (!once_value_6) { - fra.me.REG[3] = BOX_NativeString("[0;32m"); - REGB1 = TAG_Int(6); - fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB1); - once_value_6 = fra.me.REG[3]; - register_static_object(&once_value_6); - } else fra.me.REG[3] = once_value_6; - fra.me.REG[3] = fra.me.REG[3]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]); - /* ./mmloader.nit:56 */ - REGB1 = TAG_Int(3); - fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1); - if (!once_value_7) { - fra.me.REG[3] = BOX_NativeString(""); - REGB1 = TAG_Int(0); - fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB1); - once_value_7 = fra.me.REG[3]; - register_static_object(&once_value_7); - } else fra.me.REG[3] = once_value_7; - fra.me.REG[3] = fra.me.REG[3]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - fra.me.REG[3] = CALL_standard___string___Object___to_s(REGB0)(REGB0); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - if (!once_value_8) { - fra.me.REG[3] = BOX_NativeString("[0;33m"); - REGB1 = TAG_Int(6); - fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB1); - once_value_8 = fra.me.REG[3]; - register_static_object(&once_value_8); - } else fra.me.REG[3] = once_value_8; - fra.me.REG[3] = fra.me.REG[3]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]); - /* ./mmloader.nit:57 */ - REGB1 = TAG_Int(3); - fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1); - if (!once_value_9) { - fra.me.REG[4] = BOX_NativeString(""); - REGB1 = TAG_Int(0); - fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB1); - once_value_9 = fra.me.REG[4]; - register_static_object(&once_value_9); - } else fra.me.REG[4] = once_value_9; - fra.me.REG[4] = fra.me.REG[4]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]); - fra.me.REG[4] = CALL_standard___string___Object___to_s(REGB0)(REGB0); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]); - if (!once_value_10) { - fra.me.REG[4] = BOX_NativeString("[0m"); - REGB0 = TAG_Int(3); - fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0); - once_value_10 = fra.me.REG[4]; - register_static_object(&once_value_10); - } else fra.me.REG[4] = once_value_10; - fra.me.REG[4] = fra.me.REG[4]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]); - fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]); - /* ./mmloader.nit:59 */ - fra.me.REG[4] = CALL_mmloader___Message___location(fra.me.REG[0])(fra.me.REG[0]); - /* ./mmloader.nit:60 */ - REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - REGB1 = TAG_Bool(fra.me.REG[4]==NIT_NULL); - if (UNTAG_Bool(REGB1)) { - REGB1 = TAG_Bool(false); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[4])(fra.me.REG[4], NIT_NULL); - REGB0 = REGB1; - } - } - if (UNTAG_Bool(REGB0)) { - /* ./mmloader.nit:61 */ - fra.me.REG[5] = CALL_mmloader___Message___text(fra.me.REG[0])(fra.me.REG[0]); - goto label11; - } else { - /* ./mmloader.nit:62 */ - REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL); - if (UNTAG_Bool(REGB0)) { - nit_abort("Reciever is null", NULL, LOCATE_mmloader, 62); - } - fra.me.REG[6] = CALL_location___Location___file(fra.me.REG[4])(fra.me.REG[4]); - REGB0 = TAG_Bool(fra.me.REG[6]==NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - REGB1 = TAG_Bool(fra.me.REG[6]==NIT_NULL); - if (UNTAG_Bool(REGB1)) { - REGB1 = TAG_Bool(false); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[6])(fra.me.REG[6], NIT_NULL); - REGB0 = REGB1; - } - } - if (UNTAG_Bool(REGB0)) { - /* ./mmloader.nit:63 */ - REGB0 = TAG_Int(9); - fra.me.REG[6] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); - if (!once_value_12) { - fra.me.REG[7] = BOX_NativeString(""); - REGB0 = TAG_Int(0); - fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0); - once_value_12 = fra.me.REG[7]; - register_static_object(&once_value_12); - } else fra.me.REG[7] = once_value_12; - fra.me.REG[7] = fra.me.REG[7]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[2]); - if (!once_value_13) { - fra.me.REG[7] = BOX_NativeString(""); - REGB0 = TAG_Int(0); - fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0); - once_value_13 = fra.me.REG[7]; - register_static_object(&once_value_13); - } else fra.me.REG[7] = once_value_13; - fra.me.REG[7] = fra.me.REG[7]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]); - fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]); - if (!once_value_14) { - fra.me.REG[7] = BOX_NativeString(""); - REGB0 = TAG_Int(0); - fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0); - once_value_14 = fra.me.REG[7]; - register_static_object(&once_value_14); - } else fra.me.REG[7] = once_value_14; - fra.me.REG[7] = fra.me.REG[7]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[3]); - if (!once_value_15) { - fra.me.REG[7] = BOX_NativeString(": "); - REGB0 = TAG_Int(2); - fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0); - once_value_15 = fra.me.REG[7]; - register_static_object(&once_value_15); - } else fra.me.REG[7] = once_value_15; - fra.me.REG[7] = fra.me.REG[7]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]); - fra.me.REG[7] = CALL_mmloader___Message___text(fra.me.REG[0])(fra.me.REG[0]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]); - if (!once_value_16) { - fra.me.REG[7] = BOX_NativeString(""); - REGB0 = TAG_Int(0); - fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0); - once_value_16 = fra.me.REG[7]; - register_static_object(&once_value_16); - } else fra.me.REG[7] = once_value_16; - fra.me.REG[7] = fra.me.REG[7]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]); - fra.me.REG[6] = CALL_standard___string___Object___to_s(fra.me.REG[6])(fra.me.REG[6]); - fra.me.REG[5] = fra.me.REG[6]; - goto label11; - } else { - /* ./mmloader.nit:65 */ - fra.me.REG[6] = CALL_mmloader___Message___location(fra.me.REG[0])(fra.me.REG[0]); - REGB0 = TAG_Bool(fra.me.REG[6]==NIT_NULL); - if (UNTAG_Bool(REGB0)) { - nit_abort("Reciever is null", NULL, LOCATE_mmloader, 65); - } - REGB0 = CALL_location___Location___line_start(fra.me.REG[6])(fra.me.REG[6]); - /* ./mmloader.nit:66 */ - REGB1 = TAG_Bool(fra.me.REG[4]==NIT_NULL); - if (UNTAG_Bool(REGB1)) { - nit_abort("Reciever is null", NULL, LOCATE_mmloader, 66); - } - fra.me.REG[6] = CALL_location___Location___file(fra.me.REG[4])(fra.me.REG[4]); - REGB1 = TAG_Bool(fra.me.REG[6]==NIT_NULL); - if (UNTAG_Bool(REGB1)) { - nit_abort("Reciever is null", NULL, LOCATE_mmloader, 66); - } - fra.me.REG[6] = CALL_location___SourceFile___line_starts(fra.me.REG[6])(fra.me.REG[6]); - REGB1 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:237 */ - REGB1 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB1)); - /* ./../lib/standard//collection//array.nit:280 */ - REGB2 = TAG_Int(0); - REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/; - if (UNTAG_Bool(REGB3)) { - } else { - nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); - } - /* ./../lib/standard//kernel.nit:233 */ - REGB2 = TAG_Bool(UNTAG_Int(REGB1)>=UNTAG_Int(REGB2)); - /* ./../lib/standard//collection//array.nit:280 */ - if (UNTAG_Bool(REGB2)) { - REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[6])!=NIT_NULL); - if (UNTAG_Bool(REGB2)) { - } else { - nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 280); - } - REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[6]); - REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/; - if (UNTAG_Bool(REGB3)) { - } else { - nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); - } - /* ./../lib/standard//kernel.nit:232 */ - REGB2 = TAG_Bool(UNTAG_Int(REGB1)val[UNTAG_Int(REGB1)]; - /* ./../lib/standard//collection//array.nit:281 */ - goto label17; - label17: while(0); - /* ./mmloader.nit:66 */ - REGB1 = fra.me.REG[6]; - /* ./mmloader.nit:67 */ - REGB2 = REGB1; - /* ./mmloader.nit:68 */ - REGB3 = TAG_Bool(fra.me.REG[4]==NIT_NULL); - if (UNTAG_Bool(REGB3)) { - nit_abort("Reciever is null", NULL, LOCATE_mmloader, 68); - } - fra.me.REG[6] = CALL_location___Location___file(fra.me.REG[4])(fra.me.REG[4]); - REGB3 = TAG_Bool(fra.me.REG[6]==NIT_NULL); - if (UNTAG_Bool(REGB3)) { - nit_abort("Reciever is null", NULL, LOCATE_mmloader, 68); - } - fra.me.REG[6] = CALL_location___SourceFile___string(fra.me.REG[6])(fra.me.REG[6]); - /* ./mmloader.nit:69 */ - while(1) { - REGB3 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ - REGB3 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB3)); - /* ./../lib/standard//collection//array.nit:24 */ - REGB4 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[6])!=NIT_NULL); - if (UNTAG_Bool(REGB4)) { - } else { - nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24); - } - REGB4 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[6]); - REGB5 = TAG_Bool(VAL_ISA(REGB4, VTCOLOR_standard___kernel___Comparable___OTHER(REGB3), VTID_standard___kernel___Comparable___OTHER(REGB3))) /*cast OTHER*/; - if (UNTAG_Bool(REGB5)) { - } else { - nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); - } - /* ./../lib/standard//kernel.nit:232 */ - REGB4 = TAG_Bool(UNTAG_Int(REGB3)vft[INIT_TABLE_POS_mmloader___Message].i; - struct {struct stack_frame_t me; val_t MORE_REG[2];} fra; - val_t tmp; - if (init_table[itpos0]) return; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 0; - fra.me.meth = LOCATE_mmloader___Message___init; - fra.me.has_broke = 0; - fra.me.REG_size = 3; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - fra.me.REG[2] = p2; - ATTR_mmloader___Message____location(fra.me.REG[0]) = fra.me.REG[1]; - ATTR_mmloader___Message____text(fra.me.REG[0]) = fra.me.REG[2]; - stack_frame_head = fra.me.prev; - init_table[itpos0] = 1; - return; -} -val_t mmloader___ToolContext___error_count(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 97; - fra.me.meth = LOCATE_mmloader___ToolContext___error_count; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:97 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____error_count(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_error_count", LOCATE_mmloader, 97); - } - REGB0 = ATTR_mmloader___ToolContext____error_count(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return REGB0; -} -val_t mmloader___ToolContext___warning_count(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 100; - fra.me.meth = LOCATE_mmloader___ToolContext___warning_count; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:100 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____warning_count(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_warning_count", LOCATE_mmloader, 100); - } - REGB0 = ATTR_mmloader___ToolContext____warning_count(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return REGB0; -} -val_t mmloader___ToolContext___log_directory(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 103; - fra.me.meth = LOCATE_mmloader___ToolContext___log_directory; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:103 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____log_directory(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_log_directory", LOCATE_mmloader, 103); - } - fra.me.REG[0] = ATTR_mmloader___ToolContext____log_directory(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return fra.me.REG[0]; -} -void mmloader___ToolContext___check_errors(val_t p0){ - struct {struct stack_frame_t me; val_t MORE_REG[6];} fra; - val_t REGB0; - val_t REGB1; - val_t REGB2; - val_t tmp; - static val_t once_value_1; /* Once value */ - static val_t once_value_2; /* Once value */ - static val_t once_value_3; /* Once value */ - static val_t once_value_4; /* Once value */ - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 110; - fra.me.meth = LOCATE_mmloader___ToolContext___check_errors; - fra.me.has_broke = 0; - fra.me.REG_size = 7; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[3] = NIT_NULL; - fra.me.REG[4] = NIT_NULL; - fra.me.REG[5] = NIT_NULL; - fra.me.REG[6] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:112 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____messages(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_messages", LOCATE_mmloader, 112); - } - fra.me.REG[1] = ATTR_mmloader___ToolContext____messages(fra.me.REG[0]); - /* ./../lib/standard//collection//array.nit:24 */ - REGB0 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24); - } - REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]); - /* ./mmloader.nit:112 */ - REGB1 = TAG_Int(0); - 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:234 */ - REGB1 = TAG_Bool(UNTAG_Int(REGB0)>UNTAG_Int(REGB1)); - /* ./mmloader.nit:112 */ - if (UNTAG_Bool(REGB1)) { - /* ./mmloader.nit:113 */ - REGB1 = TAG_Bool(ATTR_mmloader___ToolContext____message_sorter(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB1)) { - } else { - nit_abort("Uninitialized attribute %s", "_message_sorter", LOCATE_mmloader, 113); - } - fra.me.REG[1] = ATTR_mmloader___ToolContext____message_sorter(fra.me.REG[0]); - REGB1 = TAG_Bool(ATTR_mmloader___ToolContext____messages(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB1)) { - } else { - nit_abort("Uninitialized attribute %s", "_messages", LOCATE_mmloader, 113); - } - fra.me.REG[2] = ATTR_mmloader___ToolContext____messages(fra.me.REG[0]); - CALL_standard___collection___sorter___AbstractSorter___sort(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]); - /* ./mmloader.nit:115 */ - REGB1 = TAG_Bool(ATTR_mmloader___ToolContext____messages(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB1)) { - } else { - nit_abort("Uninitialized attribute %s", "_messages", LOCATE_mmloader, 115); - } - fra.me.REG[2] = ATTR_mmloader___ToolContext____messages(fra.me.REG[0]); - /* ./../lib/standard//collection//array.nit:269 */ - REGB1 = TAG_Int(0); - /* ./../lib/standard//collection//array.nit:270 */ - REGB0 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 270); - } - REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]); - /* ./../lib/standard//collection//array.nit:271 */ - fra.me.REG[1] = ATTR_standard___collection___array___Array____items(fra.me.REG[2]); - /* ./../lib/standard//collection//array.nit:272 */ - while(1) { - /* ./../lib/standard//collection//array.nit:24 */ - REGB0 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24); - } - REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]); - REGB2 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/; - if (UNTAG_Bool(REGB2)) { - } else { - nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); - } - /* ./../lib/standard//kernel.nit:232 */ - REGB0 = TAG_Bool(UNTAG_Int(REGB1)val[UNTAG_Int(REGB1)]; - /* ./mmloader.nit:116 */ - fra.me.REG[4] = CALL_mmloader___ToolContext___opt_no_color(fra.me.REG[0])(fra.me.REG[0]); - fra.me.REG[4] = CALL_opts___Option___value(fra.me.REG[4])(fra.me.REG[4]); - if (UNTAG_Bool(fra.me.REG[4])) { - /* ./mmloader.nit:117 */ - fra.me.REG[4] = CALL_standard___file___Object___stderr(fra.me.REG[0])(fra.me.REG[0]); - REGB0 = TAG_Int(3); - fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); - if (!once_value_1) { - fra.me.REG[6] = BOX_NativeString(""); - REGB0 = TAG_Int(0); - fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0); - once_value_1 = fra.me.REG[6]; - register_static_object(&once_value_1); - } else fra.me.REG[6] = once_value_1; - fra.me.REG[6] = fra.me.REG[6]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]); - fra.me.REG[6] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]); - if (!once_value_2) { - fra.me.REG[6] = BOX_NativeString("\n"); - REGB0 = TAG_Int(1); - fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0); - once_value_2 = fra.me.REG[6]; - register_static_object(&once_value_2); - } else fra.me.REG[6] = once_value_2; - fra.me.REG[6] = fra.me.REG[6]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]); - fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]); - CALL_standard___stream___OStream___write(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]); - } else { - /* ./mmloader.nit:119 */ - fra.me.REG[5] = CALL_standard___file___Object___stderr(fra.me.REG[0])(fra.me.REG[0]); - REGB0 = TAG_Int(3); - fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); - if (!once_value_3) { - fra.me.REG[6] = BOX_NativeString(""); - REGB0 = TAG_Int(0); - fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0); - once_value_3 = fra.me.REG[6]; - register_static_object(&once_value_3); - } else fra.me.REG[6] = once_value_3; - fra.me.REG[6] = fra.me.REG[6]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[6]); - fra.me.REG[3] = CALL_mmloader___Message___to_color_string(fra.me.REG[3])(fra.me.REG[3]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]); - if (!once_value_4) { - fra.me.REG[3] = BOX_NativeString("\n"); - REGB0 = TAG_Int(1); - fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0); - once_value_4 = fra.me.REG[3]; - register_static_object(&once_value_4); - } else fra.me.REG[3] = once_value_4; - fra.me.REG[3] = fra.me.REG[3]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]); - fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]); - CALL_standard___stream___OStream___write(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]); - } - /* ./../lib/standard//collection//array.nit:274 */ - REGB0 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ - REGB0 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB0)); - /* ./../lib/standard//collection//array.nit:274 */ - REGB1 = REGB0; - } else { - /* ./../lib/standard//collection//array.nit:272 */ - goto label5; - } - } - label5: while(0); - /* ./mmloader.nit:123 */ - REGB1 = TAG_Bool(ATTR_mmloader___ToolContext____messages(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB1)) { - } else { - nit_abort("Uninitialized attribute %s", "_messages", LOCATE_mmloader, 123); - } - fra.me.REG[1] = ATTR_mmloader___ToolContext____messages(fra.me.REG[0]); - CALL_standard___collection___abstract_collection___RemovableCollection___clear(fra.me.REG[1])(fra.me.REG[1]); - } - /* ./mmloader.nit:126 */ - REGB1 = CALL_mmloader___ToolContext___error_count(fra.me.REG[0])(fra.me.REG[0]); - REGB0 = TAG_Int(0); - REGB2 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/; - if (UNTAG_Bool(REGB2)) { - } else { - nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); - } - /* ./../lib/standard//kernel.nit:234 */ - REGB0 = TAG_Bool(UNTAG_Int(REGB1)>UNTAG_Int(REGB0)); - /* ./mmloader.nit:126 */ - if (UNTAG_Bool(REGB0)) { - REGB0 = TAG_Int(1); - CALL_standard___kernel___Object___exit(fra.me.REG[0])(fra.me.REG[0], REGB0); - } - stack_frame_head = fra.me.prev; - return; -} -void mmloader___ToolContext___error(val_t p0, val_t p1, val_t p2){ - struct {struct stack_frame_t me; val_t MORE_REG[3];} fra; - val_t REGB0; - val_t REGB1; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 129; - fra.me.meth = LOCATE_mmloader___ToolContext___error; - fra.me.has_broke = 0; - fra.me.REG_size = 4; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[3] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - fra.me.REG[2] = p2; - /* ./mmloader.nit:132 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____messages(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_messages", LOCATE_mmloader, 132); - } - fra.me.REG[3] = ATTR_mmloader___ToolContext____messages(fra.me.REG[0]); - fra.me.REG[2] = NEW_Message_mmloader___Message___init(fra.me.REG[1], fra.me.REG[2]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]); - /* ./mmloader.nit:133 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____error_count(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_error_count", LOCATE_mmloader, 133); - } - REGB0 = ATTR_mmloader___ToolContext____error_count(fra.me.REG[0]); - REGB1 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ - REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1)); - /* ./mmloader.nit:133 */ - ATTR_mmloader___ToolContext____error_count(fra.me.REG[0]) = REGB1; - /* ./mmloader.nit:134 */ - fra.me.REG[2] = CALL_mmloader___ToolContext___opt_stop_on_first_error(fra.me.REG[0])(fra.me.REG[0]); - fra.me.REG[2] = CALL_opts___Option___value(fra.me.REG[2])(fra.me.REG[2]); - if (UNTAG_Bool(fra.me.REG[2])) { - CALL_mmloader___ToolContext___check_errors(fra.me.REG[0])(fra.me.REG[0]); - } - stack_frame_head = fra.me.prev; - return; -} -void mmloader___ToolContext___fatal_error(val_t p0, val_t p1, val_t p2){ - struct {struct stack_frame_t me; val_t MORE_REG[2];} fra; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 137; - fra.me.meth = LOCATE_mmloader___ToolContext___fatal_error; - fra.me.has_broke = 0; - fra.me.REG_size = 3; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - fra.me.REG[2] = p2; - /* ./mmloader.nit:140 */ - CALL_mmloader___ToolContext___error(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2]); - /* ./mmloader.nit:141 */ - CALL_mmloader___ToolContext___check_errors(fra.me.REG[0])(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return; -} -void mmloader___ToolContext___warning(val_t p0, val_t p1, val_t p2){ - struct {struct stack_frame_t me; val_t MORE_REG[3];} fra; - val_t REGB0; - val_t REGB1; - val_t REGB2; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 144; - fra.me.meth = LOCATE_mmloader___ToolContext___warning; - fra.me.has_broke = 0; - fra.me.REG_size = 4; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[3] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - fra.me.REG[2] = p2; - /* ./mmloader.nit:147 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____opt_warn(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_opt_warn", LOCATE_mmloader, 147); - } - fra.me.REG[3] = ATTR_mmloader___ToolContext____opt_warn(fra.me.REG[0]); - fra.me.REG[3] = CALL_opts___Option___value(fra.me.REG[3])(fra.me.REG[3]); - REGB0 = TAG_Int(0); - REGB1 = TAG_Bool(IS_EQUAL_ON(REGB0,fra.me.REG[3])); - if (UNTAG_Bool(REGB1)) { - } else { - REGB2 = TAG_Bool(fra.me.REG[3]==NIT_NULL); - if (UNTAG_Bool(REGB2)) { - REGB2 = TAG_Bool(false); - REGB1 = REGB2; - } else { - /* ./../lib/standard//kernel.nit:227 */ - REGB0 = TAG_Bool((fra.me.REG[3])==(REGB0)); - /* ./mmloader.nit:147 */ - REGB1 = REGB0; - } - } - if (UNTAG_Bool(REGB1)) { - goto label1; - } - /* ./mmloader.nit:148 */ - REGB1 = TAG_Bool(ATTR_mmloader___ToolContext____messages(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB1)) { - } else { - nit_abort("Uninitialized attribute %s", "_messages", LOCATE_mmloader, 148); - } - fra.me.REG[3] = ATTR_mmloader___ToolContext____messages(fra.me.REG[0]); - fra.me.REG[2] = NEW_Message_mmloader___Message___init(fra.me.REG[1], fra.me.REG[2]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]); - /* ./mmloader.nit:149 */ - REGB1 = TAG_Bool(ATTR_mmloader___ToolContext____opt_warn(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB1)) { - } else { - nit_abort("Uninitialized attribute %s", "_opt_warn", LOCATE_mmloader, 149); - } - fra.me.REG[2] = ATTR_mmloader___ToolContext____opt_warn(fra.me.REG[0]); - fra.me.REG[2] = CALL_opts___Option___value(fra.me.REG[2])(fra.me.REG[2]); - REGB1 = TAG_Int(1); - REGB0 = TAG_Bool(IS_EQUAL_ON(REGB1,fra.me.REG[2])); - if (UNTAG_Bool(REGB0)) { - } else { - REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL); - if (UNTAG_Bool(REGB2)) { - REGB2 = TAG_Bool(false); - REGB0 = REGB2; - } else { - /* ./../lib/standard//kernel.nit:227 */ - REGB1 = TAG_Bool((fra.me.REG[2])==(REGB1)); - /* ./mmloader.nit:149 */ - REGB0 = REGB1; - } - } - if (UNTAG_Bool(REGB0)) { - /* ./mmloader.nit:150 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____warning_count(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_warning_count", LOCATE_mmloader, 150); - } - REGB0 = ATTR_mmloader___ToolContext____warning_count(fra.me.REG[0]); - REGB1 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ - REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1)); - /* ./mmloader.nit:150 */ - ATTR_mmloader___ToolContext____warning_count(fra.me.REG[0]) = REGB1; - } else { - /* ./mmloader.nit:152 */ - REGB1 = TAG_Bool(ATTR_mmloader___ToolContext____error_count(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB1)) { - } else { - nit_abort("Uninitialized attribute %s", "_error_count", LOCATE_mmloader, 152); - } - REGB1 = ATTR_mmloader___ToolContext____error_count(fra.me.REG[0]); - REGB0 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ - REGB0 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB0)); - /* ./mmloader.nit:152 */ - ATTR_mmloader___ToolContext____error_count(fra.me.REG[0]) = REGB0; - } - /* ./mmloader.nit:154 */ - fra.me.REG[2] = CALL_mmloader___ToolContext___opt_stop_on_first_error(fra.me.REG[0])(fra.me.REG[0]); - fra.me.REG[2] = CALL_opts___Option___value(fra.me.REG[2])(fra.me.REG[2]); - if (UNTAG_Bool(fra.me.REG[2])) { - CALL_mmloader___ToolContext___check_errors(fra.me.REG[0])(fra.me.REG[0]); - } - label1: while(0); - stack_frame_head = fra.me.prev; - return; -} -void mmloader___ToolContext___info(val_t p0, val_t p1, val_t p2){ - struct {struct stack_frame_t me; val_t MORE_REG[3];} fra; - val_t REGB0; - val_t REGB1; - val_t REGB2; - val_t tmp; - static val_t once_value_1; /* Once value */ - static val_t once_value_2; /* Once value */ - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 157; - fra.me.meth = LOCATE_mmloader___ToolContext___info; - fra.me.has_broke = 0; - fra.me.REG_size = 4; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[3] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - REGB0 = p2; - /* ./mmloader.nit:160 */ - REGB1 = CALL_mmloader___ToolContext___verbose_level(fra.me.REG[0])(fra.me.REG[0]); - 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:231 */ - REGB1 = TAG_Bool(UNTAG_Int(REGB0)<=UNTAG_Int(REGB1)); - /* ./mmloader.nit:160 */ - if (UNTAG_Bool(REGB1)) { - /* ./mmloader.nit:161 */ - REGB1 = TAG_Int(3); - fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1); - if (!once_value_1) { - fra.me.REG[3] = BOX_NativeString(""); - REGB1 = TAG_Int(0); - fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB1); - once_value_1 = fra.me.REG[3]; - register_static_object(&once_value_1); - } else fra.me.REG[3] = once_value_1; - fra.me.REG[3] = fra.me.REG[3]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]); - if (!once_value_2) { - fra.me.REG[1] = BOX_NativeString(""); - REGB1 = TAG_Int(0); - fra.me.REG[1] = NEW_String_standard___string___String___with_native(fra.me.REG[1], REGB1); - once_value_2 = fra.me.REG[1]; - register_static_object(&once_value_2); - } else fra.me.REG[1] = once_value_2; - fra.me.REG[1] = fra.me.REG[1]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]); - fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]); - CALL_standard___file___Object___print(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]); - } - stack_frame_head = fra.me.prev; - return; -} val_t mmloader___ToolContext___paths(val_t p0){ struct {struct stack_frame_t me;} fra; val_t REGB0; val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 165; + fra.me.line = 29; fra.me.meth = LOCATE_mmloader___ToolContext___paths; fra.me.has_broke = 0; fra.me.REG_size = 1; fra.me.nitni_local_ref_head = NULL; fra.me.REG[0] = NIT_NULL; fra.me.REG[0] = p0; - /* ./mmloader.nit:165 */ + /* mmloader.nit:29 */ REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____paths(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_paths", LOCATE_mmloader, 165); + nit_abort("Uninitialized attribute %s", "_paths", LOCATE_mmloader, 29); } fra.me.REG[0] = ATTR_mmloader___ToolContext____paths(fra.me.REG[0]); stack_frame_head = fra.me.prev; return fra.me.REG[0]; } -val_t mmloader___ToolContext___option_context(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 171; - fra.me.meth = LOCATE_mmloader___ToolContext___option_context; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:171 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____option_context(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_option_context", LOCATE_mmloader, 171); - } - fra.me.REG[0] = ATTR_mmloader___ToolContext____option_context(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return fra.me.REG[0]; -} -val_t mmloader___ToolContext___opt_warn(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 174; - fra.me.meth = LOCATE_mmloader___ToolContext___opt_warn; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:174 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____opt_warn(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_opt_warn", LOCATE_mmloader, 174); - } - fra.me.REG[0] = ATTR_mmloader___ToolContext____opt_warn(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return fra.me.REG[0]; -} val_t mmloader___ToolContext___opt_path(val_t p0){ struct {struct stack_frame_t me;} fra; val_t REGB0; val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 177; + fra.me.line = 35; fra.me.meth = LOCATE_mmloader___ToolContext___opt_path; fra.me.has_broke = 0; fra.me.REG_size = 1; fra.me.nitni_local_ref_head = NULL; fra.me.REG[0] = NIT_NULL; fra.me.REG[0] = p0; - /* ./mmloader.nit:177 */ + /* mmloader.nit:35 */ REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____opt_path(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_opt_path", LOCATE_mmloader, 177); + nit_abort("Uninitialized attribute %s", "_opt_path", LOCATE_mmloader, 35); } fra.me.REG[0] = ATTR_mmloader___ToolContext____opt_path(fra.me.REG[0]); stack_frame_head = fra.me.prev; return fra.me.REG[0]; } -val_t mmloader___ToolContext___opt_log(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 180; - fra.me.meth = LOCATE_mmloader___ToolContext___opt_log; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:180 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____opt_log(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_opt_log", LOCATE_mmloader, 180); - } - fra.me.REG[0] = ATTR_mmloader___ToolContext____opt_log(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return fra.me.REG[0]; -} -val_t mmloader___ToolContext___opt_log_dir(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 183; - fra.me.meth = LOCATE_mmloader___ToolContext___opt_log_dir; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:183 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____opt_log_dir(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_opt_log_dir", LOCATE_mmloader, 183); - } - fra.me.REG[0] = ATTR_mmloader___ToolContext____opt_log_dir(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return fra.me.REG[0]; -} val_t mmloader___ToolContext___opt_only_metamodel(val_t p0){ struct {struct stack_frame_t me;} fra; val_t REGB0; val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 186; + fra.me.line = 38; fra.me.meth = LOCATE_mmloader___ToolContext___opt_only_metamodel; fra.me.has_broke = 0; fra.me.REG_size = 1; fra.me.nitni_local_ref_head = NULL; fra.me.REG[0] = NIT_NULL; fra.me.REG[0] = p0; - /* ./mmloader.nit:186 */ + /* mmloader.nit:38 */ REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____opt_only_metamodel(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_opt_only_metamodel", LOCATE_mmloader, 186); + nit_abort("Uninitialized attribute %s", "_opt_only_metamodel", LOCATE_mmloader, 38); } fra.me.REG[0] = ATTR_mmloader___ToolContext____opt_only_metamodel(fra.me.REG[0]); stack_frame_head = fra.me.prev; @@ -1625,170 +75,32 @@ val_t mmloader___ToolContext___opt_only_parse(val_t p0){ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 189; + fra.me.line = 41; fra.me.meth = LOCATE_mmloader___ToolContext___opt_only_parse; fra.me.has_broke = 0; fra.me.REG_size = 1; fra.me.nitni_local_ref_head = NULL; fra.me.REG[0] = NIT_NULL; fra.me.REG[0] = p0; - /* ./mmloader.nit:189 */ + /* mmloader.nit:41 */ REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____opt_only_parse(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_opt_only_parse", LOCATE_mmloader, 189); + nit_abort("Uninitialized attribute %s", "_opt_only_parse", LOCATE_mmloader, 41); } fra.me.REG[0] = ATTR_mmloader___ToolContext____opt_only_parse(fra.me.REG[0]); stack_frame_head = fra.me.prev; return fra.me.REG[0]; } -val_t mmloader___ToolContext___opt_help(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 192; - fra.me.meth = LOCATE_mmloader___ToolContext___opt_help; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:192 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____opt_help(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_opt_help", LOCATE_mmloader, 192); - } - fra.me.REG[0] = ATTR_mmloader___ToolContext____opt_help(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return fra.me.REG[0]; -} -val_t mmloader___ToolContext___opt_version(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 195; - fra.me.meth = LOCATE_mmloader___ToolContext___opt_version; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:195 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____opt_version(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_opt_version", LOCATE_mmloader, 195); - } - fra.me.REG[0] = ATTR_mmloader___ToolContext____opt_version(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return fra.me.REG[0]; -} -val_t mmloader___ToolContext___opt_verbose(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 198; - fra.me.meth = LOCATE_mmloader___ToolContext___opt_verbose; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:198 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____opt_verbose(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_opt_verbose", LOCATE_mmloader, 198); - } - fra.me.REG[0] = ATTR_mmloader___ToolContext____opt_verbose(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return fra.me.REG[0]; -} -val_t mmloader___ToolContext___opt_stop_on_first_error(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 201; - fra.me.meth = LOCATE_mmloader___ToolContext___opt_stop_on_first_error; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:201 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____opt_stop_on_first_error(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_opt_stop_on_first_error", LOCATE_mmloader, 201); - } - fra.me.REG[0] = ATTR_mmloader___ToolContext____opt_stop_on_first_error(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return fra.me.REG[0]; -} -val_t mmloader___ToolContext___opt_no_color(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 204; - fra.me.meth = LOCATE_mmloader___ToolContext___opt_no_color; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:204 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____opt_no_color(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_opt_no_color", LOCATE_mmloader, 204); - } - fra.me.REG[0] = ATTR_mmloader___ToolContext____opt_no_color(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return fra.me.REG[0]; -} -val_t mmloader___ToolContext___verbose_level(val_t p0){ - struct {struct stack_frame_t me;} fra; - val_t REGB0; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 207; - fra.me.meth = LOCATE_mmloader___ToolContext___verbose_level; - fra.me.has_broke = 0; - fra.me.REG_size = 1; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[0] = p0; - /* ./mmloader.nit:207 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____verbose_level(fra.me.REG[0])!=NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_verbose_level", LOCATE_mmloader, 207); - } - REGB0 = ATTR_mmloader___ToolContext____verbose_level(fra.me.REG[0]); - stack_frame_head = fra.me.prev; - return REGB0; -} void mmloader___ToolContext___init(val_t p0, int* init_table){ - int itpos1 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_mmloader___ToolContext].i; + int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_toolcontext___ToolContext].i; struct {struct stack_frame_t me; val_t MORE_REG[3];} fra; val_t REGB0; val_t tmp; - if (init_table[itpos1]) return; + if (init_table[itpos0]) return; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 210; + fra.me.line = 44; fra.me.meth = LOCATE_mmloader___ToolContext___init; fra.me.has_broke = 0; fra.me.REG_size = 4; @@ -1798,45 +110,28 @@ void mmloader___ToolContext___init(val_t p0, int* init_table){ fra.me.REG[2] = NIT_NULL; fra.me.REG[3] = NIT_NULL; fra.me.REG[0] = p0; - /* ./mmloader.nit:210 */ + /* mmloader.nit:44 */ fra.me.REG[1] = fra.me.REG[0]; - /* ./mmloader.nit:212 */ - CALL_metamodel___abstractmetamodel___MMContext___init(fra.me.REG[0])(fra.me.REG[0], init_table); - /* ./mmloader.nit:213 */ - fra.me.REG[0] = CALL_mmloader___ToolContext___option_context(fra.me.REG[1])(fra.me.REG[1]); - REGB0 = TAG_Int(10); + /* mmloader.nit:46 */ + CALL_SUPER_mmloader___ToolContext___init(fra.me.REG[0])(fra.me.REG[0], init_table); + /* mmloader.nit:47 */ + fra.me.REG[0] = CALL_toolcontext___ToolContext___option_context(fra.me.REG[1])(fra.me.REG[1]); + REGB0 = TAG_Int(2); fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); - fra.me.REG[3] = CALL_mmloader___ToolContext___opt_warn(fra.me.REG[1])(fra.me.REG[1]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - fra.me.REG[3] = CALL_mmloader___ToolContext___opt_stop_on_first_error(fra.me.REG[1])(fra.me.REG[1]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - fra.me.REG[3] = CALL_mmloader___ToolContext___opt_no_color(fra.me.REG[1])(fra.me.REG[1]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); fra.me.REG[3] = CALL_mmloader___ToolContext___opt_path(fra.me.REG[1])(fra.me.REG[1]); CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - fra.me.REG[3] = CALL_mmloader___ToolContext___opt_log(fra.me.REG[1])(fra.me.REG[1]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - fra.me.REG[3] = CALL_mmloader___ToolContext___opt_log_dir(fra.me.REG[1])(fra.me.REG[1]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); fra.me.REG[3] = CALL_mmloader___ToolContext___opt_only_parse(fra.me.REG[1])(fra.me.REG[1]); CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - fra.me.REG[3] = CALL_mmloader___ToolContext___opt_only_metamodel(fra.me.REG[1])(fra.me.REG[1]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - fra.me.REG[3] = CALL_mmloader___ToolContext___opt_help(fra.me.REG[1])(fra.me.REG[1]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - fra.me.REG[3] = CALL_mmloader___ToolContext___opt_version(fra.me.REG[1])(fra.me.REG[1]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - fra.me.REG[1] = CALL_mmloader___ToolContext___opt_verbose(fra.me.REG[1])(fra.me.REG[1]); + fra.me.REG[1] = CALL_mmloader___ToolContext___opt_only_metamodel(fra.me.REG[1])(fra.me.REG[1]); CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]); CALL_opts___OptionContext___add_option(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]); stack_frame_head = fra.me.prev; - init_table[itpos1] = 1; + init_table[itpos0] = 1; return; } void mmloader___ToolContext___process_options(val_t p0){ - struct {struct stack_frame_t me; val_t MORE_REG[4];} fra; + struct {struct stack_frame_t me; val_t MORE_REG[3];} fra; val_t REGB0; - val_t REGB1; val_t tmp; static val_t once_value_1; /* Once value */ static val_t once_value_2; /* Once value */ @@ -1848,33 +143,26 @@ void mmloader___ToolContext___process_options(val_t p0){ static val_t once_value_8; /* Once value */ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 216; + fra.me.line = 50; fra.me.meth = LOCATE_mmloader___ToolContext___process_options; fra.me.has_broke = 0; - fra.me.REG_size = 5; + fra.me.REG_size = 4; fra.me.nitni_local_ref_head = NULL; fra.me.REG[0] = NIT_NULL; fra.me.REG[1] = NIT_NULL; fra.me.REG[2] = NIT_NULL; fra.me.REG[3] = NIT_NULL; - fra.me.REG[4] = NIT_NULL; fra.me.REG[0] = p0; - /* ./mmloader.nit:216 */ + /* mmloader.nit:50 */ fra.me.REG[1] = fra.me.REG[0]; - /* ./mmloader.nit:220 */ - fra.me.REG[2] = CALL_mmloader___ToolContext___option_context(fra.me.REG[1])(fra.me.REG[1]); - fra.me.REG[3] = CALL_standard___string___Object___args(fra.me.REG[1])(fra.me.REG[1]); - CALL_opts___OptionContext___parse(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - /* ./mmloader.nit:223 */ - fra.me.REG[3] = CALL_mmloader___ToolContext___opt_verbose(fra.me.REG[1])(fra.me.REG[1]); - fra.me.REG[3] = CALL_opts___Option___value(fra.me.REG[3])(fra.me.REG[3]); - ATTR_mmloader___ToolContext____verbose_level(fra.me.REG[1]) = fra.me.REG[3]; - /* ./mmloader.nit:226 */ - fra.me.REG[3] = CALL_mmloader___ToolContext___paths(fra.me.REG[1])(fra.me.REG[1]); + /* mmloader.nit:53 */ + CALL_SUPER_mmloader___ToolContext___process_options(fra.me.REG[0])(fra.me.REG[0]); + /* mmloader.nit:56 */ + fra.me.REG[0] = CALL_mmloader___ToolContext___paths(fra.me.REG[1])(fra.me.REG[1]); fra.me.REG[2] = CALL_mmloader___ToolContext___opt_path(fra.me.REG[1])(fra.me.REG[1]); fra.me.REG[2] = CALL_opts___Option___value(fra.me.REG[2])(fra.me.REG[2]); - CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]); - /* ./mmloader.nit:228 */ + CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]); + /* mmloader.nit:58 */ if (!once_value_1) { if (!once_value_2) { fra.me.REG[2] = BOX_NativeString("NIT_PATH"); @@ -1890,50 +178,50 @@ void mmloader___ToolContext___process_options(val_t p0){ register_static_object(&once_value_1); } else fra.me.REG[2] = once_value_1; fra.me.REG[2] = fra.me.REG[2]; - /* ./mmloader.nit:229 */ + /* mmloader.nit:59 */ REGB0 = CALL_standard___collection___abstract_collection___Collection___is_empty(fra.me.REG[2])(fra.me.REG[2]); REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); if (UNTAG_Bool(REGB0)) { - /* ./mmloader.nit:230 */ - fra.me.REG[3] = CALL_mmloader___ToolContext___paths(fra.me.REG[1])(fra.me.REG[1]); + /* mmloader.nit:60 */ + fra.me.REG[0] = CALL_mmloader___ToolContext___paths(fra.me.REG[1])(fra.me.REG[1]); REGB0 = TAG_Char(':'); - fra.me.REG[4] = CALL_standard___string_search___String___split_with(fra.me.REG[2])(fra.me.REG[2], REGB0); - CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]); + fra.me.REG[3] = CALL_standard___string_search___String___split_with(fra.me.REG[2])(fra.me.REG[2], REGB0); + CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]); } - /* ./mmloader.nit:233 */ + /* mmloader.nit:63 */ if (!once_value_3) { if (!once_value_4) { - fra.me.REG[4] = BOX_NativeString("NIT_DIR"); + fra.me.REG[3] = BOX_NativeString("NIT_DIR"); REGB0 = TAG_Int(7); - fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0); - once_value_4 = fra.me.REG[4]; + fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0); + once_value_4 = fra.me.REG[3]; register_static_object(&once_value_4); - } else fra.me.REG[4] = once_value_4; - fra.me.REG[4] = fra.me.REG[4]; - fra.me.REG[4] = CALL_standard___symbol___String___to_symbol(fra.me.REG[4])(fra.me.REG[4]); - fra.me.REG[4] = CALL_standard___environ___Symbol___environ(fra.me.REG[4])(fra.me.REG[4]); - once_value_3 = fra.me.REG[4]; + } else fra.me.REG[3] = once_value_4; + fra.me.REG[3] = fra.me.REG[3]; + fra.me.REG[3] = CALL_standard___symbol___String___to_symbol(fra.me.REG[3])(fra.me.REG[3]); + fra.me.REG[3] = CALL_standard___environ___Symbol___environ(fra.me.REG[3])(fra.me.REG[3]); + once_value_3 = fra.me.REG[3]; register_static_object(&once_value_3); - } else fra.me.REG[4] = once_value_3; - fra.me.REG[4] = fra.me.REG[4]; - fra.me.REG[2] = fra.me.REG[4]; - /* ./mmloader.nit:234 */ + } else fra.me.REG[3] = once_value_3; + fra.me.REG[3] = fra.me.REG[3]; + fra.me.REG[2] = fra.me.REG[3]; + /* mmloader.nit:64 */ REGB0 = CALL_standard___collection___abstract_collection___Collection___is_empty(fra.me.REG[2])(fra.me.REG[2]); REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); if (UNTAG_Bool(REGB0)) { - /* ./mmloader.nit:235 */ + /* mmloader.nit:65 */ REGB0 = TAG_Int(3); - fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); + fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); if (!once_value_5) { - fra.me.REG[3] = BOX_NativeString(""); + fra.me.REG[0] = BOX_NativeString(""); REGB0 = TAG_Int(0); - fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0); - once_value_5 = fra.me.REG[3]; + fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0); + once_value_5 = fra.me.REG[0]; register_static_object(&once_value_5); - } else fra.me.REG[3] = once_value_5; - fra.me.REG[3] = fra.me.REG[3]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]); + } else fra.me.REG[0] = once_value_5; + fra.me.REG[0] = fra.me.REG[0]; + CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]); + CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]); if (!once_value_6) { fra.me.REG[2] = BOX_NativeString("/lib"); REGB0 = TAG_Int(4); @@ -1942,18 +230,18 @@ void mmloader___ToolContext___process_options(val_t p0){ register_static_object(&once_value_6); } else fra.me.REG[2] = once_value_6; fra.me.REG[2] = fra.me.REG[2]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]); - fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]); - /* ./mmloader.nit:236 */ - REGB0 = CALL_standard___file___String___file_exists(fra.me.REG[4])(fra.me.REG[4]); + CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]); + fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]); + /* mmloader.nit:66 */ + REGB0 = CALL_standard___file___String___file_exists(fra.me.REG[3])(fra.me.REG[3]); if (UNTAG_Bool(REGB0)) { fra.me.REG[2] = CALL_mmloader___ToolContext___paths(fra.me.REG[1])(fra.me.REG[1]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]); + CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); } } - /* ./mmloader.nit:239 */ + /* mmloader.nit:69 */ REGB0 = TAG_Int(3); - fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); + fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); if (!once_value_7) { fra.me.REG[2] = BOX_NativeString(""); REGB0 = TAG_Int(0); @@ -1962,11 +250,11 @@ void mmloader___ToolContext___process_options(val_t p0){ register_static_object(&once_value_7); } else fra.me.REG[2] = once_value_7; fra.me.REG[2] = fra.me.REG[2]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]); + CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]); fra.me.REG[2] = CALL_standard___kernel___Object___sys(fra.me.REG[1])(fra.me.REG[1]); fra.me.REG[2] = CALL_standard___string___Sys___program_name(fra.me.REG[2])(fra.me.REG[2]); fra.me.REG[2] = CALL_standard___file___String___dirname(fra.me.REG[2])(fra.me.REG[2]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]); + CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]); if (!once_value_8) { fra.me.REG[2] = BOX_NativeString("/../lib"); REGB0 = TAG_Int(7); @@ -1975,52 +263,14 @@ void mmloader___ToolContext___process_options(val_t p0){ register_static_object(&once_value_8); } else fra.me.REG[2] = once_value_8; fra.me.REG[2] = fra.me.REG[2]; - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]); - fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]); - /* ./mmloader.nit:240 */ - REGB0 = CALL_standard___file___String___file_exists(fra.me.REG[4])(fra.me.REG[4]); - if (UNTAG_Bool(REGB0)) { - fra.me.REG[2] = CALL_mmloader___ToolContext___paths(fra.me.REG[1])(fra.me.REG[1]); - CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]); - } - /* ./mmloader.nit:242 */ - fra.me.REG[4] = CALL_mmloader___ToolContext___opt_log_dir(fra.me.REG[1])(fra.me.REG[1]); - fra.me.REG[4] = CALL_opts___Option___value(fra.me.REG[4])(fra.me.REG[4]); - REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL); - if (UNTAG_Bool(REGB0)) { - } else { - REGB1 = TAG_Bool(fra.me.REG[4]==NIT_NULL); - if (UNTAG_Bool(REGB1)) { - REGB1 = TAG_Bool(false); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[4])(fra.me.REG[4], NIT_NULL); - REGB0 = REGB1; - } - } - REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); - if (UNTAG_Bool(REGB0)) { - fra.me.REG[4] = CALL_mmloader___ToolContext___opt_log_dir(fra.me.REG[1])(fra.me.REG[1]); - fra.me.REG[4] = CALL_opts___Option___value(fra.me.REG[4])(fra.me.REG[4]); - REGB0 = TAG_Bool((fra.me.REG[4]!=NIT_NULL) && VAL_ISA(fra.me.REG[4], COLOR_standard___string___String, ID_standard___string___String)) /*cast String*/; - if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Cast failed", NULL, LOCATE_mmloader, 242); - } - ATTR_mmloader___ToolContext____log_directory(fra.me.REG[1]) = fra.me.REG[4]; - } - /* ./mmloader.nit:243 */ - REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____opt_log(fra.me.REG[1])!=NIT_NULL); + CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]); + fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]); + /* mmloader.nit:70 */ + REGB0 = CALL_standard___file___String___file_exists(fra.me.REG[3])(fra.me.REG[3]); if (UNTAG_Bool(REGB0)) { - } else { - nit_abort("Uninitialized attribute %s", "_opt_log", LOCATE_mmloader, 243); - } - fra.me.REG[4] = ATTR_mmloader___ToolContext____opt_log(fra.me.REG[1]); - fra.me.REG[4] = CALL_opts___Option___value(fra.me.REG[4])(fra.me.REG[4]); - if (UNTAG_Bool(fra.me.REG[4])) { - /* ./mmloader.nit:245 */ - fra.me.REG[1] = CALL_mmloader___ToolContext___log_directory(fra.me.REG[1])(fra.me.REG[1]); - CALL_standard___file___String___mkdir(fra.me.REG[1])(fra.me.REG[1]); + fra.me.REG[1] = CALL_mmloader___ToolContext___paths(fra.me.REG[1])(fra.me.REG[1]); + fra.me.REG[3] = CALL_standard___file___String___simplify_path(fra.me.REG[3])(fra.me.REG[3]); + CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]); } stack_frame_head = fra.me.prev; return; @@ -2035,7 +285,7 @@ val_t mmloader___ToolContext___try_to_load(val_t p0, val_t p1, val_t p2){ static val_t once_value_5; /* Once value */ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 249; + fra.me.line = 73; fra.me.meth = LOCATE_mmloader___ToolContext___try_to_load; fra.me.has_broke = 0; fra.me.REG_size = 10; @@ -2053,7 +303,7 @@ val_t mmloader___ToolContext___try_to_load(val_t p0, val_t p1, val_t p2){ fra.me.REG[0] = p0; fra.me.REG[1] = p1; fra.me.REG[2] = p2; - /* ./mmloader.nit:255 */ + /* mmloader.nit:79 */ fra.me.REG[3] = CALL_metamodel___abstractmetamodel___MMDirectory___modules(fra.me.REG[2])(fra.me.REG[2]); fra.me.REG[3] = CALL_standard___collection___abstract_collection___MapRead___values(fra.me.REG[3])(fra.me.REG[3]); CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[3])(fra.me.REG[3], (&(fra.me)), ((fun_t)OC_mmloader___ToolContext___try_to_load_1)); @@ -2061,27 +311,27 @@ val_t mmloader___ToolContext___try_to_load(val_t p0, val_t p1, val_t p2){ case 0: break; case 1: (&(fra.me))->has_broke = 0; goto label3; } - /* ./mmloader.nit:261 */ + /* mmloader.nit:85 */ REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____loaders(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_loaders", LOCATE_mmloader, 261); + nit_abort("Uninitialized attribute %s", "_loaders", LOCATE_mmloader, 85); } fra.me.REG[4] = ATTR_mmloader___ToolContext____loaders(fra.me.REG[0]); - /* ./../lib/standard//collection//array.nit:269 */ + /* ../lib/standard/collection/array.nit:269 */ REGB0 = TAG_Int(0); - /* ./../lib/standard//collection//array.nit:270 */ + /* ../lib/standard/collection/array.nit:270 */ REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 270); } REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4]); - /* ./../lib/standard//collection//array.nit:271 */ + /* ../lib/standard/collection/array.nit:271 */ fra.me.REG[5] = ATTR_standard___collection___array___Array____items(fra.me.REG[4]); - /* ./../lib/standard//collection//array.nit:272 */ + /* ../lib/standard/collection/array.nit:272 */ while(1) { - /* ./../lib/standard//collection//array.nit:24 */ + /* ../lib/standard/collection/array.nit:24 */ REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { @@ -2093,20 +343,20 @@ val_t mmloader___ToolContext___try_to_load(val_t p0, val_t p1, val_t p2){ } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:232 */ REGB1 = TAG_Bool(UNTAG_Int(REGB0)val[UNTAG_Int(REGB0)]; - /* ./mmloader.nit:262 */ + /* mmloader.nit:86 */ fra.me.REG[7] = CALL_mmloader___ModuleLoader___try_to_load_dir(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[1], fra.me.REG[2]); - /* ./mmloader.nit:263 */ + /* mmloader.nit:87 */ REGB1 = TAG_Bool(fra.me.REG[7]==NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { @@ -2121,9 +371,9 @@ val_t mmloader___ToolContext___try_to_load(val_t p0, val_t p1, val_t p2){ } REGB1 = TAG_Bool(!UNTAG_Bool(REGB1)); if (UNTAG_Bool(REGB1)) { - /* ./mmloader.nit:264 */ + /* mmloader.nit:88 */ fra.me.REG[8] = CALL_mmloader___ToolContext___try_to_load(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[7]); - /* ./mmloader.nit:265 */ + /* mmloader.nit:89 */ REGB1 = TAG_Bool(fra.me.REG[8]==NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { @@ -2138,34 +388,34 @@ val_t mmloader___ToolContext___try_to_load(val_t p0, val_t p1, val_t p2){ } REGB1 = TAG_Bool(!UNTAG_Bool(REGB1)); if (UNTAG_Bool(REGB1)) { - /* ./mmloader.nit:266 */ + /* mmloader.nit:90 */ REGB1 = TAG_Bool(fra.me.REG[7]==NIT_NULL); if (UNTAG_Bool(REGB1)) { - nit_abort("Reciever is null", NULL, LOCATE_mmloader, 266); + nit_abort("Reciever is null", NULL, LOCATE_mmloader, 90); } CALL_metamodel___abstractmetamodel___MMDirectory___owner__eq(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]); - /* ./mmloader.nit:267 */ + /* mmloader.nit:91 */ CALL_metamodel___abstractmetamodel___MMDirectory___add_module(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[8]); - /* ./mmloader.nit:268 */ + /* mmloader.nit:92 */ fra.me.REG[3] = fra.me.REG[8]; goto label3; } } - /* ./mmloader.nit:272 */ + /* mmloader.nit:96 */ REGB1 = CALL_mmloader___ModuleLoader___can_handle(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[1], fra.me.REG[2]); if (UNTAG_Bool(REGB1)) { - /* ./mmloader.nit:273 */ + /* mmloader.nit:97 */ fra.me.REG[8] = CALL_metamodel___abstractmetamodel___MMDirectory___full_name_for(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]); - /* ./mmloader.nit:274 */ + /* mmloader.nit:98 */ REGB1 = TAG_Bool(ATTR_mmloader___ToolContext____processing_modules(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { - nit_abort("Uninitialized attribute %s", "_processing_modules", LOCATE_mmloader, 274); + nit_abort("Uninitialized attribute %s", "_processing_modules", LOCATE_mmloader, 98); } fra.me.REG[7] = ATTR_mmloader___ToolContext____processing_modules(fra.me.REG[0]); REGB1 = CALL_standard___collection___abstract_collection___Collection___has(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]); if (UNTAG_Bool(REGB1)) { - /* ./mmloader.nit:276 */ + /* mmloader.nit:100 */ REGB1 = TAG_Int(3); fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1); if (!once_value_4) { @@ -2189,45 +439,45 @@ val_t mmloader___ToolContext___try_to_load(val_t p0, val_t p1, val_t p2){ fra.me.REG[9] = fra.me.REG[9]; CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]); fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]); - CALL_mmloader___ToolContext___fatal_error(fra.me.REG[0])(fra.me.REG[0], NIT_NULL, fra.me.REG[7]); + CALL_toolcontext___ToolContext___fatal_error(fra.me.REG[0])(fra.me.REG[0], NIT_NULL, fra.me.REG[7]); } - /* ./mmloader.nit:278 */ + /* mmloader.nit:102 */ REGB1 = TAG_Bool(ATTR_mmloader___ToolContext____processing_modules(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { - nit_abort("Uninitialized attribute %s", "_processing_modules", LOCATE_mmloader, 278); + nit_abort("Uninitialized attribute %s", "_processing_modules", LOCATE_mmloader, 102); } fra.me.REG[7] = ATTR_mmloader___ToolContext____processing_modules(fra.me.REG[0]); CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]); - /* ./mmloader.nit:279 */ + /* mmloader.nit:103 */ fra.me.REG[6] = CALL_mmloader___ModuleLoader___load_and_process_module(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[0], fra.me.REG[1], fra.me.REG[2]); - /* ./mmloader.nit:280 */ + /* mmloader.nit:104 */ REGB1 = TAG_Bool(ATTR_mmloader___ToolContext____processing_modules(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { - nit_abort("Uninitialized attribute %s", "_processing_modules", LOCATE_mmloader, 280); + nit_abort("Uninitialized attribute %s", "_processing_modules", LOCATE_mmloader, 104); } fra.me.REG[7] = ATTR_mmloader___ToolContext____processing_modules(fra.me.REG[0]); CALL_standard___collection___abstract_collection___RemovableCollection___remove(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]); - /* ./mmloader.nit:282 */ + /* mmloader.nit:106 */ CALL_metamodel___abstractmetamodel___MMDirectory___add_module(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[6]); - /* ./mmloader.nit:283 */ + /* mmloader.nit:107 */ fra.me.REG[3] = fra.me.REG[6]; goto label3; } - /* ./../lib/standard//collection//array.nit:274 */ + /* ../lib/standard/collection/array.nit:274 */ REGB1 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:235 */ REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1)); - /* ./../lib/standard//collection//array.nit:274 */ + /* ../lib/standard/collection/array.nit:274 */ REGB0 = REGB1; } else { - /* ./../lib/standard//collection//array.nit:272 */ + /* ../lib/standard/collection/array.nit:272 */ goto label6; } } label6: while(0); - /* ./mmloader.nit:286 */ + /* mmloader.nit:110 */ fra.me.REG[3] = NIT_NULL; goto label3; label3: while(0); @@ -2253,7 +503,7 @@ val_t mmloader___ToolContext___try_to_load(val_t p0, val_t p1, val_t p2){ fra.me.closure_funs = CREG; fra.me.REG[0] = p0; CREG[0] = clos_fun0; - /* ./mmloader.nit:256 */ + /* mmloader.nit:80 */ fra.me.REG[1] = CALL_metamodel___abstractmetamodel___MMModule___name(fra.me.REG[0])(fra.me.REG[0]); REGB0 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[1],closctx->REG[1])); if (UNTAG_Bool(REGB0)) { @@ -2282,7 +532,7 @@ val_t mmloader___ToolContext___get_module_from_filename(val_t p0, val_t p1){ static val_t once_value_6; /* Once value */ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 293; + fra.me.line = 117; fra.me.meth = LOCATE_mmloader___ToolContext___get_module_from_filename; fra.me.has_broke = 0; fra.me.REG_size = 7; @@ -2296,9 +546,9 @@ val_t mmloader___ToolContext___get_module_from_filename(val_t p0, val_t p1){ fra.me.REG[6] = NIT_NULL; fra.me.REG[0] = p0; fra.me.REG[1] = p1; - /* ./mmloader.nit:298 */ + /* mmloader.nit:122 */ fra.me.REG[2] = CALL_standard___file___String___dirname(fra.me.REG[1])(fra.me.REG[1]); - /* ./mmloader.nit:299 */ + /* mmloader.nit:123 */ if (!once_value_1) { fra.me.REG[3] = BOX_NativeString(".nit"); REGB0 = TAG_Int(4); @@ -2309,9 +559,9 @@ val_t mmloader___ToolContext___get_module_from_filename(val_t p0, val_t p1){ fra.me.REG[3] = fra.me.REG[3]; fra.me.REG[3] = CALL_standard___file___String___basename(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]); fra.me.REG[3] = CALL_standard___symbol___String___to_symbol(fra.me.REG[3])(fra.me.REG[3]); - /* ./mmloader.nit:301 */ + /* mmloader.nit:125 */ fra.me.REG[2] = CALL_mmloader___ToolContext___directory_for(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]); - /* ./mmloader.nit:303 */ + /* mmloader.nit:127 */ fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]); REGB0 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[4],fra.me.REG[1])); if (UNTAG_Bool(REGB0)) { @@ -2320,9 +570,9 @@ val_t mmloader___ToolContext___get_module_from_filename(val_t p0, val_t p1){ REGB0 = REGB1; } if (UNTAG_Bool(REGB0)) { - /* ./mmloader.nit:306 */ + /* mmloader.nit:130 */ fra.me.REG[4] = CALL_mmloader___ToolContext___try_to_load(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3], fra.me.REG[2]); - /* ./mmloader.nit:307 */ + /* mmloader.nit:131 */ REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { @@ -2339,16 +589,16 @@ val_t mmloader___ToolContext___get_module_from_filename(val_t p0, val_t p1){ if (UNTAG_Bool(REGB0)) { goto label2; } - /* ./mmloader.nit:310 */ + /* mmloader.nit:134 */ fra.me.REG[5] = CALL_mmloader___ToolContext___get_module(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3], NIT_NULL); fra.me.REG[4] = fra.me.REG[5]; goto label2; } - /* ./mmloader.nit:313 */ + /* mmloader.nit:137 */ REGB0 = CALL_standard___file___String___file_exists(fra.me.REG[1])(fra.me.REG[1]); REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); if (UNTAG_Bool(REGB0)) { - /* ./mmloader.nit:314 */ + /* mmloader.nit:138 */ REGB0 = TAG_Int(3); fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); if (!once_value_3) { @@ -2371,13 +621,13 @@ val_t mmloader___ToolContext___get_module_from_filename(val_t p0, val_t p1){ fra.me.REG[6] = fra.me.REG[6]; CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]); fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]); - CALL_mmloader___ToolContext___fatal_error(fra.me.REG[0])(fra.me.REG[0], NIT_NULL, fra.me.REG[5]); - /* ./mmloader.nit:315 */ - nit_abort("Aborted", NULL, LOCATE_mmloader, 315); + CALL_toolcontext___ToolContext___fatal_error(fra.me.REG[0])(fra.me.REG[0], NIT_NULL, fra.me.REG[5]); + /* mmloader.nit:139 */ + nit_abort("Aborted", NULL, LOCATE_mmloader, 139); } - /* ./mmloader.nit:319 */ + /* mmloader.nit:143 */ fra.me.REG[2] = CALL_mmloader___ToolContext___try_to_load(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3], fra.me.REG[2]); - /* ./mmloader.nit:320 */ + /* mmloader.nit:144 */ REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { @@ -2395,7 +645,7 @@ val_t mmloader___ToolContext___get_module_from_filename(val_t p0, val_t p1){ fra.me.REG[4] = fra.me.REG[2]; goto label2; } - /* ./mmloader.nit:322 */ + /* mmloader.nit:146 */ REGB0 = TAG_Int(3); fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); if (!once_value_5) { @@ -2418,9 +668,9 @@ val_t mmloader___ToolContext___get_module_from_filename(val_t p0, val_t p1){ fra.me.REG[1] = fra.me.REG[1]; CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]); fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]); - CALL_mmloader___ToolContext___fatal_error(fra.me.REG[0])(fra.me.REG[0], NIT_NULL, fra.me.REG[2]); - /* ./mmloader.nit:323 */ - nit_abort("Aborted", NULL, LOCATE_mmloader, 323); + CALL_toolcontext___ToolContext___fatal_error(fra.me.REG[0])(fra.me.REG[0], NIT_NULL, fra.me.REG[2]); + /* mmloader.nit:147 */ + nit_abort("Aborted", NULL, LOCATE_mmloader, 147); label2: while(0); stack_frame_head = fra.me.prev; return fra.me.REG[4]; @@ -2435,7 +685,7 @@ val_t mmloader___ToolContext___get_module(val_t p0, val_t p1, val_t p2){ static val_t once_value_5; /* Once value */ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 326; + fra.me.line = 150; fra.me.meth = LOCATE_mmloader___ToolContext___get_module; fra.me.has_broke = 0; fra.me.REG_size = 6; @@ -2449,7 +699,7 @@ val_t mmloader___ToolContext___get_module(val_t p0, val_t p1, val_t p2){ fra.me.REG[0] = p0; fra.me.REG[1] = p1; fra.me.REG[2] = p2; - /* ./mmloader.nit:330 */ + /* mmloader.nit:154 */ REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { @@ -2464,13 +714,13 @@ val_t mmloader___ToolContext___get_module(val_t p0, val_t p1, val_t p2){ } REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); if (UNTAG_Bool(REGB0)) { - /* ./mmloader.nit:331 */ + /* mmloader.nit:155 */ REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL); if (UNTAG_Bool(REGB0)) { - nit_abort("Reciever is null", NULL, LOCATE_mmloader, 331); + nit_abort("Reciever is null", NULL, LOCATE_mmloader, 155); } fra.me.REG[2] = CALL_metamodel___abstractmetamodel___MMModule___directory(fra.me.REG[2])(fra.me.REG[2]); - /* ./mmloader.nit:332 */ + /* mmloader.nit:156 */ while(1) { REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL); if (UNTAG_Bool(REGB0)) { @@ -2486,9 +736,9 @@ val_t mmloader___ToolContext___get_module(val_t p0, val_t p1, val_t p2){ } REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); if (UNTAG_Bool(REGB0)) { - /* ./mmloader.nit:333 */ + /* mmloader.nit:157 */ fra.me.REG[3] = CALL_mmloader___ToolContext___try_to_load(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2]); - /* ./mmloader.nit:334 */ + /* mmloader.nit:158 */ REGB0 = TAG_Bool(fra.me.REG[3]==NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { @@ -2505,36 +755,36 @@ val_t mmloader___ToolContext___get_module(val_t p0, val_t p1, val_t p2){ if (UNTAG_Bool(REGB0)) { goto label1; } - /* ./mmloader.nit:335 */ + /* mmloader.nit:159 */ REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL); if (UNTAG_Bool(REGB0)) { - nit_abort("Reciever is null", NULL, LOCATE_mmloader, 335); + nit_abort("Reciever is null", NULL, LOCATE_mmloader, 159); } fra.me.REG[4] = CALL_metamodel___abstractmetamodel___MMDirectory___parent(fra.me.REG[2])(fra.me.REG[2]); fra.me.REG[2] = fra.me.REG[4]; } else { - /* ./mmloader.nit:332 */ + /* mmloader.nit:156 */ goto label2; } } label2: while(0); } - /* ./mmloader.nit:339 */ + /* mmloader.nit:163 */ fra.me.REG[2] = CALL_mmloader___ToolContext___paths(fra.me.REG[0])(fra.me.REG[0]); - /* ./../lib/standard//collection//array.nit:269 */ + /* ../lib/standard/collection/array.nit:269 */ REGB0 = TAG_Int(0); - /* ./../lib/standard//collection//array.nit:270 */ + /* ../lib/standard/collection/array.nit:270 */ REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 270); } REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]); - /* ./../lib/standard//collection//array.nit:271 */ + /* ../lib/standard/collection/array.nit:271 */ fra.me.REG[4] = ATTR_standard___collection___array___Array____items(fra.me.REG[2]); - /* ./../lib/standard//collection//array.nit:272 */ + /* ../lib/standard/collection/array.nit:272 */ while(1) { - /* ./../lib/standard//collection//array.nit:24 */ + /* ../lib/standard/collection/array.nit:24 */ REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { @@ -2546,21 +796,21 @@ val_t mmloader___ToolContext___get_module(val_t p0, val_t p1, val_t p2){ } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:232 */ REGB1 = TAG_Bool(UNTAG_Int(REGB0)val[UNTAG_Int(REGB0)]; - /* ./mmloader.nit:340 */ + /* mmloader.nit:164 */ fra.me.REG[5] = CALL_mmloader___ToolContext___directory_for(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[5]); fra.me.REG[5] = CALL_mmloader___ToolContext___try_to_load(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[5]); - /* ./mmloader.nit:341 */ + /* mmloader.nit:165 */ REGB1 = TAG_Bool(fra.me.REG[5]==NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { @@ -2578,19 +828,19 @@ val_t mmloader___ToolContext___get_module(val_t p0, val_t p1, val_t p2){ fra.me.REG[3] = fra.me.REG[5]; goto label1; } - /* ./../lib/standard//collection//array.nit:274 */ + /* ../lib/standard/collection/array.nit:274 */ REGB1 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:235 */ REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1)); - /* ./../lib/standard//collection//array.nit:274 */ + /* ../lib/standard/collection/array.nit:274 */ REGB0 = REGB1; } else { - /* ./../lib/standard//collection//array.nit:272 */ + /* ../lib/standard/collection/array.nit:272 */ goto label3; } } label3: while(0); - /* ./mmloader.nit:344 */ + /* mmloader.nit:168 */ REGB0 = TAG_Int(3); fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); if (!once_value_4) { @@ -2614,9 +864,9 @@ val_t mmloader___ToolContext___get_module(val_t p0, val_t p1, val_t p2){ fra.me.REG[1] = fra.me.REG[1]; CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[1]); fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]); - CALL_mmloader___ToolContext___fatal_error(fra.me.REG[0])(fra.me.REG[0], NIT_NULL, fra.me.REG[4]); - /* ./mmloader.nit:345 */ - nit_abort("Aborted", NULL, LOCATE_mmloader, 345); + CALL_toolcontext___ToolContext___fatal_error(fra.me.REG[0])(fra.me.REG[0], NIT_NULL, fra.me.REG[4]); + /* mmloader.nit:169 */ + nit_abort("Aborted", NULL, LOCATE_mmloader, 169); label1: while(0); stack_frame_head = fra.me.prev; return fra.me.REG[3]; @@ -2627,7 +877,7 @@ val_t mmloader___ToolContext___directory_for(val_t p0, val_t p1){ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 348; + fra.me.line = 172; fra.me.meth = LOCATE_mmloader___ToolContext___directory_for; fra.me.has_broke = 0; fra.me.REG_size = 4; @@ -2638,11 +888,11 @@ val_t mmloader___ToolContext___directory_for(val_t p0, val_t p1){ fra.me.REG[3] = NIT_NULL; fra.me.REG[0] = p0; fra.me.REG[1] = p1; - /* ./mmloader.nit:351 */ + /* mmloader.nit:175 */ REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____path_dirs(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_path_dirs", LOCATE_mmloader, 351); + nit_abort("Uninitialized attribute %s", "_path_dirs", LOCATE_mmloader, 175); } fra.me.REG[2] = ATTR_mmloader___ToolContext____path_dirs(fra.me.REG[0]); REGB0 = CALL_standard___collection___abstract_collection___MapRead___has_key(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]); @@ -2650,24 +900,24 @@ val_t mmloader___ToolContext___directory_for(val_t p0, val_t p1){ REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____path_dirs(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_path_dirs", LOCATE_mmloader, 351); + nit_abort("Uninitialized attribute %s", "_path_dirs", LOCATE_mmloader, 175); } fra.me.REG[2] = ATTR_mmloader___ToolContext____path_dirs(fra.me.REG[0]); fra.me.REG[2] = CALL_standard___collection___abstract_collection___MapRead_____bra(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]); goto label1; } - /* ./mmloader.nit:352 */ + /* mmloader.nit:176 */ fra.me.REG[3] = CALL_standard___symbol___String___to_symbol(fra.me.REG[1])(fra.me.REG[1]); fra.me.REG[3] = NEW_MMDirectory_metamodel___abstractmetamodel___MMDirectory___init(fra.me.REG[3], fra.me.REG[1], NIT_NULL); - /* ./mmloader.nit:353 */ + /* mmloader.nit:177 */ REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____path_dirs(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_path_dirs", LOCATE_mmloader, 353); + nit_abort("Uninitialized attribute %s", "_path_dirs", LOCATE_mmloader, 177); } fra.me.REG[0] = ATTR_mmloader___ToolContext____path_dirs(fra.me.REG[0]); CALL_standard___collection___abstract_collection___Map_____braeq(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[3]); - /* ./mmloader.nit:354 */ + /* mmloader.nit:178 */ fra.me.REG[2] = fra.me.REG[3]; goto label1; label1: while(0); @@ -2680,7 +930,7 @@ void mmloader___ToolContext___register_loader(val_t p0, val_t p1){ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 360; + fra.me.line = 184; fra.me.meth = LOCATE_mmloader___ToolContext___register_loader; fra.me.has_broke = 0; fra.me.REG_size = 2; @@ -2689,11 +939,11 @@ void mmloader___ToolContext___register_loader(val_t p0, val_t p1){ fra.me.REG[1] = NIT_NULL; fra.me.REG[0] = p0; fra.me.REG[1] = p1; - /* ./mmloader.nit:361 */ + /* mmloader.nit:185 */ REGB0 = TAG_Bool(ATTR_mmloader___ToolContext____loaders(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_loaders", LOCATE_mmloader, 361); + nit_abort("Uninitialized attribute %s", "_loaders", LOCATE_mmloader, 185); } fra.me.REG[0] = ATTR_mmloader___ToolContext____loaders(fra.me.REG[0]); CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]); @@ -2705,13 +955,13 @@ val_t mmloader___ModuleLoader___file_type(val_t p0){ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 369; + fra.me.line = 193; fra.me.meth = LOCATE_mmloader___ModuleLoader___file_type; fra.me.has_broke = 0; fra.me.REG_size = 0; fra.me.nitni_local_ref_head = NULL; - /* ./mmloader.nit:369 */ - nit_abort("Deferred method called", NULL, LOCATE_mmloader, 369); + /* mmloader.nit:193 */ + nit_abort("Deferred method called", NULL, LOCATE_mmloader, 193); stack_frame_head = fra.me.prev; return NIT_NULL; } @@ -2724,7 +974,7 @@ val_t mmloader___ModuleLoader___try_to_load_dir(val_t p0, val_t p1, val_t p2){ static val_t once_value_3; /* Once value */ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 372; + fra.me.line = 196; fra.me.meth = LOCATE_mmloader___ModuleLoader___try_to_load_dir; fra.me.has_broke = 0; fra.me.REG_size = 4; @@ -2736,7 +986,7 @@ val_t mmloader___ModuleLoader___try_to_load_dir(val_t p0, val_t p1, val_t p2){ fra.me.REG[0] = p0; fra.me.REG[1] = p1; fra.me.REG[2] = p2; - /* ./mmloader.nit:375 */ + /* mmloader.nit:199 */ REGB0 = TAG_Int(5); fra.me.REG[0] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); if (!once_value_1) { @@ -2762,8 +1012,8 @@ val_t mmloader___ModuleLoader___try_to_load_dir(val_t p0, val_t p1, val_t p2){ fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]); CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]); if (!once_value_3) { - fra.me.REG[3] = BOX_NativeString("/"); - REGB0 = TAG_Int(1); + fra.me.REG[3] = BOX_NativeString(""); + REGB0 = TAG_Int(0); fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0); once_value_3 = fra.me.REG[3]; register_static_object(&once_value_3); @@ -2771,17 +1021,17 @@ val_t mmloader___ModuleLoader___try_to_load_dir(val_t p0, val_t p1, val_t p2){ fra.me.REG[3] = fra.me.REG[3]; CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]); fra.me.REG[0] = CALL_standard___string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]); - /* ./mmloader.nit:376 */ + /* mmloader.nit:200 */ REGB0 = CALL_standard___file___String___file_exists(fra.me.REG[0])(fra.me.REG[0]); REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); if (UNTAG_Bool(REGB0)) { fra.me.REG[3] = NIT_NULL; goto label4; } - /* ./mmloader.nit:378 */ + /* mmloader.nit:202 */ fra.me.REG[1] = CALL_metamodel___abstractmetamodel___MMDirectory___full_name_for(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]); fra.me.REG[2] = NEW_MMDirectory_metamodel___abstractmetamodel___MMDirectory___init(fra.me.REG[1], fra.me.REG[0], fra.me.REG[2]); - /* ./mmloader.nit:379 */ + /* mmloader.nit:203 */ fra.me.REG[3] = fra.me.REG[2]; goto label4; label4: while(0); @@ -2799,7 +1049,7 @@ val_t mmloader___ModuleLoader___can_handle(val_t p0, val_t p1, val_t p2){ static val_t once_value_4; /* Once value */ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 382; + fra.me.line = 206; fra.me.meth = LOCATE_mmloader___ModuleLoader___can_handle; fra.me.has_broke = 0; fra.me.REG_size = 5; @@ -2812,7 +1062,7 @@ val_t mmloader___ModuleLoader___can_handle(val_t p0, val_t p1, val_t p2){ fra.me.REG[0] = p0; fra.me.REG[1] = p1; fra.me.REG[2] = p2; - /* ./mmloader.nit:386 */ + /* mmloader.nit:210 */ REGB0 = TAG_Int(7); fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); if (!once_value_1) { @@ -2858,13 +1108,13 @@ val_t mmloader___ModuleLoader___can_handle(val_t p0, val_t p1, val_t p2){ fra.me.REG[0] = fra.me.REG[0]; CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]); fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]); - /* ./mmloader.nit:387 */ + /* mmloader.nit:211 */ REGB0 = CALL_standard___file___String___file_exists(fra.me.REG[3])(fra.me.REG[3]); if (UNTAG_Bool(REGB0)) { REGB0 = TAG_Bool(true); goto label5; } - /* ./mmloader.nit:388 */ + /* mmloader.nit:212 */ REGB1 = TAG_Bool(false); REGB0 = REGB1; goto label5; @@ -2882,7 +1132,7 @@ val_t mmloader___ModuleLoader___load_and_process_module(val_t p0, val_t p1, val_ static val_t once_value_4; /* Once value */ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 391; + fra.me.line = 215; fra.me.meth = LOCATE_mmloader___ModuleLoader___load_and_process_module; fra.me.has_broke = 0; fra.me.REG_size = 6; @@ -2897,7 +1147,7 @@ val_t mmloader___ModuleLoader___load_and_process_module(val_t p0, val_t p1, val_ fra.me.REG[1] = p1; fra.me.REG[2] = p2; fra.me.REG[3] = p3; - /* ./mmloader.nit:395 */ + /* mmloader.nit:219 */ REGB0 = TAG_Int(7); fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); if (!once_value_1) { @@ -2943,16 +1193,17 @@ val_t mmloader___ModuleLoader___load_and_process_module(val_t p0, val_t p1, val_ fra.me.REG[5] = fra.me.REG[5]; CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]); fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]); - /* ./mmloader.nit:396 */ + fra.me.REG[4] = CALL_standard___file___String___simplify_path(fra.me.REG[4])(fra.me.REG[4]); + /* mmloader.nit:220 */ fra.me.REG[4] = CALL_mmloader___ModuleLoader___load_module(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2], fra.me.REG[3], fra.me.REG[4]); - /* ./mmloader.nit:397 */ + /* mmloader.nit:221 */ fra.me.REG[3] = CALL_mmloader___ToolContext___opt_only_parse(fra.me.REG[1])(fra.me.REG[1]); fra.me.REG[3] = CALL_opts___Option___value(fra.me.REG[3])(fra.me.REG[3]); REGB0 = TAG_Bool(!UNTAG_Bool(fra.me.REG[3])); if (UNTAG_Bool(REGB0)) { CALL_mmloader___ModuleLoader___process_metamodel(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[4]); } - /* ./mmloader.nit:398 */ + /* mmloader.nit:222 */ goto label5; label5: while(0); stack_frame_head = fra.me.prev; @@ -2968,7 +1219,7 @@ val_t mmloader___ModuleLoader___load_module(val_t p0, val_t p1, val_t p2, val_t static val_t once_value_3; /* Once value */ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 401; + fra.me.line = 225; fra.me.meth = LOCATE_mmloader___ModuleLoader___load_module; fra.me.has_broke = 0; fra.me.REG_size = 8; @@ -2986,7 +1237,7 @@ val_t mmloader___ModuleLoader___load_module(val_t p0, val_t p1, val_t p2, val_t fra.me.REG[2] = p2; fra.me.REG[3] = p3; fra.me.REG[4] = p4; - /* ./mmloader.nit:405 */ + /* mmloader.nit:229 */ if (!once_value_1) { fra.me.REG[5] = BOX_NativeString("-"); REGB0 = TAG_Int(1); @@ -3002,18 +1253,18 @@ val_t mmloader___ModuleLoader___load_module(val_t p0, val_t p1, val_t p2, val_t REGB0 = REGB1; } if (UNTAG_Bool(REGB0)) { - /* ./mmloader.nit:406 */ + /* mmloader.nit:230 */ fra.me.REG[5] = CALL_standard___file___Object___stdin(fra.me.REG[0])(fra.me.REG[0]); } else { - /* ./mmloader.nit:408 */ + /* mmloader.nit:232 */ fra.me.REG[6] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]); fra.me.REG[6] = NEW_IFStream_standard___file___IFStream___open(fra.me.REG[6]); fra.me.REG[5] = fra.me.REG[6]; } - /* ./mmloader.nit:411 */ + /* mmloader.nit:235 */ REGB0 = CALL_standard___stream___IStream___eof(fra.me.REG[5])(fra.me.REG[5]); if (UNTAG_Bool(REGB0)) { - /* ./mmloader.nit:412 */ + /* mmloader.nit:236 */ REGB0 = TAG_Int(3); fra.me.REG[6] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); if (!once_value_2) { @@ -3036,11 +1287,11 @@ val_t mmloader___ModuleLoader___load_module(val_t p0, val_t p1, val_t p2, val_t fra.me.REG[7] = fra.me.REG[7]; CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]); fra.me.REG[6] = CALL_standard___string___Object___to_s(fra.me.REG[6])(fra.me.REG[6]); - CALL_mmloader___ToolContext___fatal_error(fra.me.REG[1])(fra.me.REG[1], NIT_NULL, fra.me.REG[6]); + CALL_toolcontext___ToolContext___fatal_error(fra.me.REG[1])(fra.me.REG[1], NIT_NULL, fra.me.REG[6]); } - /* ./mmloader.nit:414 */ + /* mmloader.nit:238 */ fra.me.REG[3] = CALL_mmloader___ModuleLoader___parse_file(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[5], fra.me.REG[4], fra.me.REG[2], fra.me.REG[3]); - /* ./mmloader.nit:415 */ + /* mmloader.nit:239 */ fra.me.REG[0] = CALL_standard___file___Object___stdin(fra.me.REG[0])(fra.me.REG[0]); REGB0 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[5],fra.me.REG[0])); if (UNTAG_Bool(REGB0)) { @@ -3052,7 +1303,7 @@ val_t mmloader___ModuleLoader___load_module(val_t p0, val_t p1, val_t p2, val_t if (UNTAG_Bool(REGB0)) { CALL_standard___stream___IOS___close(fra.me.REG[5])(fra.me.REG[5]); } - /* ./mmloader.nit:416 */ + /* mmloader.nit:240 */ goto label4; label4: while(0); stack_frame_head = fra.me.prev; @@ -3063,13 +1314,13 @@ val_t mmloader___ModuleLoader___parse_file(val_t p0, val_t p1, val_t p2, val_t p val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 419; + fra.me.line = 243; fra.me.meth = LOCATE_mmloader___ModuleLoader___parse_file; fra.me.has_broke = 0; fra.me.REG_size = 0; fra.me.nitni_local_ref_head = NULL; - /* ./mmloader.nit:419 */ - nit_abort("Deferred method called", NULL, LOCATE_mmloader, 419); + /* mmloader.nit:243 */ + nit_abort("Deferred method called", NULL, LOCATE_mmloader, 243); stack_frame_head = fra.me.prev; return NIT_NULL; } @@ -3079,7 +1330,7 @@ void mmloader___ModuleLoader___process_metamodel(val_t p0, val_t p1, val_t p2){ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_mmloader; - fra.me.line = 422; + fra.me.line = 246; fra.me.meth = LOCATE_mmloader___ModuleLoader___process_metamodel; fra.me.has_broke = 0; fra.me.REG_size = 2; @@ -3093,24 +1344,8 @@ void mmloader___ModuleLoader___process_metamodel(val_t p0, val_t p1, val_t p2){ } else { nit_abort("Cast failed", NULL, LOCATE_mmloader, 0); } - /* ./mmloader.nit:422 */ - nit_abort("Deferred method called", NULL, LOCATE_mmloader, 422); - stack_frame_head = fra.me.prev; - return; -} -void mmloader___ModuleLoader___init(val_t p0, int* init_table){ - int itpos2 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_mmloader___ModuleLoader].i; - struct {struct stack_frame_t me;} fra; - val_t tmp; - if (init_table[itpos2]) return; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_mmloader; - fra.me.line = 0; - fra.me.meth = LOCATE_mmloader___ModuleLoader___init; - fra.me.has_broke = 0; - fra.me.REG_size = 0; - fra.me.nitni_local_ref_head = NULL; + /* mmloader.nit:246 */ + nit_abort("Deferred method called", NULL, LOCATE_mmloader, 246); stack_frame_head = fra.me.prev; - init_table[itpos2] = 1; return; }