-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.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.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.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.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.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)<UNTAG_Int(REGB2));
- } else {
- /* ./../lib/standard//collection//array.nit:280 */
- REGB3 = TAG_Bool(false);
- REGB2 = REGB3;
- }
- if (UNTAG_Bool(REGB2)) {
- } else {
- nit_abort("Assert %s failed", "'index'", LOCATE_standard___collection___array, 280);
- }
- /* ./../lib/standard//collection//array.nit:281 */
- fra.me.REG[6] = ATTR_standard___collection___array___Array____items(fra.me.REG[6]);
- REGB2 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
- if (UNTAG_Bool(REGB2)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 281);
- }
- /* ./../lib/standard//collection//array.nit:718 */
- fra.me.REG[6] = ((Nit_NativeArray)fra.me.REG[6])->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)<UNTAG_Int(REGB4));
- /* ./mmloader.nit:69 */
- if (UNTAG_Bool(REGB4)) {
- REGB4 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:235 */
- REGB4 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB4));
- /* ./mmloader.nit:69 */
- REGB4 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[6])(fra.me.REG[6], REGB4);
- REGB3 = TAG_Char('\n');
- REGB5 = TAG_Bool(IS_EQUAL_OO(REGB4,REGB3));
- if (UNTAG_Bool(REGB5)) {
- } else {
- /* ./../lib/standard//kernel.nit:378 */
- REGB3 = TAG_Bool((REGB4)==(REGB3));
- /* ./mmloader.nit:69 */
- REGB5 = REGB3;
- }
- REGB5 = TAG_Bool(!UNTAG_Bool(REGB5));
- } else {
- REGB3 = TAG_Bool(false);
- REGB5 = REGB3;
- }
- if (UNTAG_Bool(REGB5)) {
- REGB5 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:235 */
- REGB5 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB5));
- /* ./mmloader.nit:69 */
- REGB5 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[6])(fra.me.REG[6], REGB5);
- REGB3 = TAG_Char('\r');
- REGB4 = TAG_Bool(IS_EQUAL_OO(REGB5,REGB3));
- if (UNTAG_Bool(REGB4)) {
- } else {
- /* ./../lib/standard//kernel.nit:378 */
- REGB3 = TAG_Bool((REGB5)==(REGB3));
- /* ./mmloader.nit:69 */
- REGB4 = REGB3;
- }
- REGB4 = TAG_Bool(!UNTAG_Bool(REGB4));
- } else {
- REGB3 = TAG_Bool(false);
- REGB4 = REGB3;
- }
- if (UNTAG_Bool(REGB4)) {
- /* ./mmloader.nit:70 */
- REGB4 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:235 */
- REGB4 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB4));
- /* ./mmloader.nit:70 */
- REGB2 = REGB4;
- } else {
- /* ./mmloader.nit:69 */
- goto label18;
- }
- }
- label18: while(0);
- /* ./mmloader.nit:72 */
- fra.me.REG[7] = CALL_mmloader___Message___location(fra.me.REG[0])(fra.me.REG[0]);
- REGB4 = TAG_Bool(fra.me.REG[7]==NIT_NULL);
- if (UNTAG_Bool(REGB4)) {
- nit_abort("Reciever is null", NULL, LOCATE_mmloader, 72);
- }
- REGB4 = CALL_location___Location___column_start(fra.me.REG[7])(fra.me.REG[7]);
- REGB3 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:237 */
- REGB3 = TAG_Int(UNTAG_Int(REGB4)-UNTAG_Int(REGB3));
- /* ./mmloader.nit:72 */
- fra.me.REG[7] = CALL_standard___string___AbstractString___substring(fra.me.REG[6])(fra.me.REG[6], REGB1, REGB3);
- /* ./mmloader.nit:74 */
- fra.me.REG[8] = CALL_mmloader___Message___location(fra.me.REG[0])(fra.me.REG[0]);
- REGB3 = TAG_Bool(fra.me.REG[8]==NIT_NULL);
- if (UNTAG_Bool(REGB3)) {
- nit_abort("Reciever is null", NULL, LOCATE_mmloader, 74);
- }
- REGB3 = CALL_location___Location___line_end(fra.me.REG[8])(fra.me.REG[8]);
- REGB4 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB3));
- if (UNTAG_Bool(REGB4)) {
- } else {
- /* ./../lib/standard//kernel.nit:227 */
- REGB3 = TAG_Bool((REGB0)==(REGB3));
- /* ./mmloader.nit:74 */
- REGB4 = REGB3;
- }
- REGB4 = TAG_Bool(!UNTAG_Bool(REGB4));
- if (UNTAG_Bool(REGB4)) {
- /* ./../lib/standard//kernel.nit:237 */
- REGB4 = TAG_Int(UNTAG_Int(REGB2)-UNTAG_Int(REGB1));
- /* ./mmloader.nit:75 */
- REGB3 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:235 */
- REGB3 = TAG_Int(UNTAG_Int(REGB4)+UNTAG_Int(REGB3));
- /* ./mmloader.nit:75 */
- fra.me.REG[8] = REGB3;
- } else {
- /* ./mmloader.nit:77 */
- fra.me.REG[9] = CALL_mmloader___Message___location(fra.me.REG[0])(fra.me.REG[0]);
- REGB3 = TAG_Bool(fra.me.REG[9]==NIT_NULL);
- if (UNTAG_Bool(REGB3)) {
- nit_abort("Reciever is null", NULL, LOCATE_mmloader, 77);
- }
- REGB3 = CALL_location___Location___column_end(fra.me.REG[9])(fra.me.REG[9]);
- fra.me.REG[8] = REGB3;
- }
- /* ./mmloader.nit:79 */
- fra.me.REG[9] = CALL_mmloader___Message___location(fra.me.REG[0])(fra.me.REG[0]);
- REGB3 = TAG_Bool(fra.me.REG[9]==NIT_NULL);
- if (UNTAG_Bool(REGB3)) {
- nit_abort("Reciever is null", NULL, LOCATE_mmloader, 79);
- }
- REGB3 = CALL_location___Location___column_start(fra.me.REG[9])(fra.me.REG[9]);
- /* ./../lib/standard//kernel.nit:235 */
- REGB3 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB3));
- /* ./mmloader.nit:79 */
- REGB4 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:237 */
- REGB4 = TAG_Int(UNTAG_Int(REGB3)-UNTAG_Int(REGB4));
- /* ./mmloader.nit:79 */
- fra.me.REG[9] = CALL_mmloader___Message___location(fra.me.REG[0])(fra.me.REG[0]);
- REGB3 = TAG_Bool(fra.me.REG[9]==NIT_NULL);
- if (UNTAG_Bool(REGB3)) {
- nit_abort("Reciever is null", NULL, LOCATE_mmloader, 79);
- }
- REGB3 = CALL_location___Location___column_start(fra.me.REG[9])(fra.me.REG[9]);
- REGB0 = TAG_Bool(fra.me.REG[8]==NIT_NULL);
- if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_mmloader, 79);
- }
- /* ./../lib/standard//kernel.nit:237 */
- REGB3 = TAG_Int(UNTAG_Int(fra.me.REG[8])-UNTAG_Int(REGB3));
- /* ./mmloader.nit:79 */
- REGB0 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:235 */
- REGB0 = TAG_Int(UNTAG_Int(REGB3)+UNTAG_Int(REGB0));
- /* ./mmloader.nit:79 */
- fra.me.REG[9] = CALL_standard___string___AbstractString___substring(fra.me.REG[6])(fra.me.REG[6], REGB4, REGB0);
- /* ./../lib/standard//kernel.nit:235 */
- REGB0 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(fra.me.REG[8]));
- /* ./../lib/standard//kernel.nit:237 */
- REGB2 = TAG_Int(UNTAG_Int(REGB2)-UNTAG_Int(REGB1));
- REGB2 = TAG_Int(UNTAG_Int(REGB2)-UNTAG_Int(fra.me.REG[8]));
- /* ./mmloader.nit:80 */
- REGB4 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:235 */
- REGB4 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB4));
- /* ./mmloader.nit:80 */
- fra.me.REG[8] = CALL_standard___string___AbstractString___substring(fra.me.REG[6])(fra.me.REG[6], REGB0, REGB4);
- /* ./mmloader.nit:81 */
- fra.me.REG[10] = NEW_Buffer_standard___string___Buffer___init();
- /* ./mmloader.nit:82 */
- fra.me.REG[11] = CALL_mmloader___Message___location(fra.me.REG[0])(fra.me.REG[0]);
- REGB4 = TAG_Bool(fra.me.REG[11]==NIT_NULL);
- if (UNTAG_Bool(REGB4)) {
- nit_abort("Reciever is null", NULL, LOCATE_mmloader, 82);
- }
- REGB4 = CALL_location___Location___column_start(fra.me.REG[11])(fra.me.REG[11]);
- /* ./../lib/standard//kernel.nit:235 */
- REGB4 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB4));
- /* ./mmloader.nit:82 */
- REGB0 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:237 */
- REGB0 = TAG_Int(UNTAG_Int(REGB4)-UNTAG_Int(REGB0));
- /* ./../lib/standard//kernel.nit:352 */
- while(1) {
- REGB4 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
- if (UNTAG_Bool(REGB4)) {
- } else {
- nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
- }
- /* ./../lib/standard//kernel.nit:232 */
- REGB4 = TAG_Bool(UNTAG_Int(REGB1)<UNTAG_Int(REGB0));
- /* ./../lib/standard//kernel.nit:352 */
- if (UNTAG_Bool(REGB4)) {
- /* ./mmloader.nit:82 */
- REGB4 = REGB1;
- /* ./mmloader.nit:83 */
- REGB4 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[6])(fra.me.REG[6], REGB4);
- REGB2 = TAG_Char('\t');
- REGB3 = TAG_Bool(IS_EQUAL_OO(REGB4,REGB2));
- if (UNTAG_Bool(REGB3)) {
- } else {
- /* ./../lib/standard//kernel.nit:378 */
- REGB2 = TAG_Bool((REGB4)==(REGB2));
- /* ./mmloader.nit:83 */
- REGB3 = REGB2;
- }
- if (UNTAG_Bool(REGB3)) {
- /* ./mmloader.nit:84 */
- REGB3 = TAG_Char('\t');
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[10])(fra.me.REG[10], REGB3);
- } else {
- /* ./mmloader.nit:86 */
- REGB3 = TAG_Char(' ');
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[10])(fra.me.REG[10], REGB3);
- }
- /* ./../lib/standard//kernel.nit:354 */
- REGB3 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:235 */
- REGB3 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB3));
- /* ./../lib/standard//kernel.nit:354 */
- REGB1 = REGB3;
- } else {
- /* ./../lib/standard//kernel.nit:352 */
- goto label19;
- }
- }
- label19: while(0);
- /* ./mmloader.nit:89 */
- REGB1 = TAG_Int(21);
- fra.me.REG[6] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
- if (!once_value_20) {
- fra.me.REG[11] = BOX_NativeString("");
- REGB1 = TAG_Int(0);
- fra.me.REG[11] = NEW_String_standard___string___String___with_native(fra.me.REG[11], REGB1);
- once_value_20 = fra.me.REG[11];
- register_static_object(&once_value_20);
- } else fra.me.REG[11] = once_value_20;
- fra.me.REG[11] = fra.me.REG[11];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[11]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[2]);
- if (!once_value_21) {
- 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_21 = fra.me.REG[2];
- register_static_object(&once_value_21);
- } else fra.me.REG[2] = once_value_21;
- fra.me.REG[2] = fra.me.REG[2];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[2]);
- fra.me.REG[4] = 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[4]);
- if (!once_value_22) {
- 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_22 = fra.me.REG[4];
- register_static_object(&once_value_22);
- } else fra.me.REG[4] = once_value_22;
- 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[4]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[3]);
- if (!once_value_23) {
- fra.me.REG[4] = BOX_NativeString(": ");
- REGB1 = TAG_Int(2);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB1);
- once_value_23 = fra.me.REG[4];
- register_static_object(&once_value_23);
- } else fra.me.REG[4] = once_value_23;
- 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[4]);
- 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[6])(fra.me.REG[6], fra.me.REG[0]);
- if (!once_value_24) {
- fra.me.REG[0] = BOX_NativeString("\n\t");
- REGB1 = TAG_Int(2);
- fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB1);
- once_value_24 = fra.me.REG[0];
- register_static_object(&once_value_24);
- } else fra.me.REG[0] = once_value_24;
- 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[0]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
- if (!once_value_25) {
- fra.me.REG[7] = BOX_NativeString("");
- REGB1 = TAG_Int(0);
- fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB1);
- once_value_25 = fra.me.REG[7];
- register_static_object(&once_value_25);
- } else fra.me.REG[7] = once_value_25;
- 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[1]);
- if (!once_value_26) {
- 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_26 = fra.me.REG[1];
- register_static_object(&once_value_26);
- } else fra.me.REG[1] = once_value_26;
- fra.me.REG[1] = fra.me.REG[1];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[1]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[9]);
- if (!once_value_27) {
- fra.me.REG[9] = BOX_NativeString("");
- REGB1 = TAG_Int(0);
- fra.me.REG[9] = NEW_String_standard___string___String___with_native(fra.me.REG[9], REGB1);
- once_value_27 = fra.me.REG[9];
- register_static_object(&once_value_27);
- } else fra.me.REG[9] = once_value_27;
- fra.me.REG[9] = fra.me.REG[9];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[9]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[3]);
- if (!once_value_28) {
- 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_28 = fra.me.REG[3];
- register_static_object(&once_value_28);
- } else fra.me.REG[3] = once_value_28;
- fra.me.REG[3] = fra.me.REG[3];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[3]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[8]);
- if (!once_value_29) {
- fra.me.REG[8] = BOX_NativeString("\n\t");
- REGB1 = TAG_Int(2);
- fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB1);
- once_value_29 = fra.me.REG[8];
- register_static_object(&once_value_29);
- } else fra.me.REG[8] = once_value_29;
- fra.me.REG[8] = fra.me.REG[8];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[8]);
- fra.me.REG[10] = CALL_standard___string___Object___to_s(fra.me.REG[10])(fra.me.REG[10]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[10]);
- if (!once_value_30) {
- fra.me.REG[10] = BOX_NativeString("^");
- REGB1 = TAG_Int(1);
- fra.me.REG[10] = NEW_String_standard___string___String___with_native(fra.me.REG[10], REGB1);
- once_value_30 = fra.me.REG[10];
- register_static_object(&once_value_30);
- } else fra.me.REG[10] = once_value_30;
- fra.me.REG[10] = fra.me.REG[10];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[10]);
- 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;
- }
- }
- label11: while(0);
- stack_frame_head = fra.me.prev;
- return fra.me.REG[5];
-}
-void mmloader___Message___init(val_t p0, val_t p1, val_t p2, int* init_table){
- int itpos0 = VAL2OBJ(p0)->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.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.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.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.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.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)<UNTAG_Int(REGB0));
- /* ./../lib/standard//collection//array.nit:272 */
- if (UNTAG_Bool(REGB0)) {
- /* ./../lib/standard//collection//array.nit:273 */
- REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
- if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 273);
- }
- /* ./../lib/standard//collection//array.nit:718 */
- fra.me.REG[3] = ((Nit_NativeArray)fra.me.REG[1])->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.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.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.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.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;
-}