X-Git-Url: http://nitlanguage.org diff --git a/c_src/genericity._sep.c b/c_src/genericity._sep.c index efe8090..ed02c05 100644 --- a/c_src/genericity._sep.c +++ b/c_src/genericity._sep.c @@ -1,1170 +1,1592 @@ /* This C file is generated by NIT to compile module genericity. */ #include "genericity._sep.h" -val_t genericity___MMLocalClass___get_type(val_t self) { - struct trace_t trace = {NULL, NULL, 80, LOCATE_genericity___MMLocalClass___get_type}; - val_t variable[3]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Method return value and escape marker */ - /* Register variable[2]: Result */ - variable[2] = ATTR_static_type___MMLocalClass____base_type_cache(variable[0]) /*MMLocalClass::_base_type_cache*/; - /* Register variable[2]: Result */ - variable[2] = TAG_Bool((variable[2] == NIT_NULL /*null*/) || ((variable[2] != NIT_NULL) && ((CALL_kernel___Object_____eqeq(variable[2])==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable[2], NIT_NULL /*null*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[2])(variable[2], NIT_NULL /*null*/) /*Object::==*/))))); - /* Ensure var variable[2]: Left 'and' operand*/ - if (UNTAG_Bool(variable[2])) { /* and */ - /* Register variable[2]: Result */ - variable[2] = CALL_genericity___MMLocalClass___is_generic(variable[0])(variable[0]) /*MMLocalClass::is_generic*/; +val_t genericity___MMLocalClass___get_type(val_t p0){ + struct {struct stack_frame_t me; val_t MORE_REG[2];} 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_genericity; + fra.me.line = 80; + fra.me.meth = LOCATE_genericity___MMLocalClass___get_type; + 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] = fra.me.REG[0]; + fra.me.REG[2] = ATTR_static_type___MMLocalClass____base_type_cache(fra.me.REG[1]); + REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL); + /* ./metamodel//genericity.nit:82 */ + if (UNTAG_Bool(REGB0)) { + } else { + REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL); + if (UNTAG_Bool(REGB1)) { + REGB1 = TAG_Bool(false); + REGB0 = REGB1; + } else { + REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL); + REGB0 = REGB1; + } + } + if (UNTAG_Bool(REGB0)) { + REGB0 = CALL_genericity___MMLocalClass___is_generic(fra.me.REG[1])(fra.me.REG[1]); + } else { + REGB1 = TAG_Bool(false); + REGB0 = REGB1; } - /* Register variable[2]: Result */ - if (UNTAG_Bool(variable[2])) { /*if*/ - /* Register variable[2]: Result */ - variable[2] = CALL_genericity___MMLocalClass___formals_types(variable[0])(variable[0]) /*MMLocalClass::formals_types*/; - /* Register variable[2]: Result */ - variable[2] = CALL_genericity___MMLocalClass___get_instantiate_type(variable[0])(variable[0], variable[2]) /*MMLocalClass::get_instantiate_type*/; - ATTR_static_type___MMLocalClass____base_type_cache(variable[0]) /*MMLocalClass::_base_type_cache*/ = variable[2]; - /* Register variable[2]: Result */ - variable[2] = ATTR_static_type___MMLocalClass____base_type_cache(variable[0]) /*MMLocalClass::_base_type_cache*/; - variable[1] = variable[2]; - goto return_label0; - } else { /*if*/ - /* Register variable[2]: Result */ - variable[2] = CALL_SUPER_genericity___MMLocalClass___get_type(variable[0])(variable[0]) /*super MMLocalClass::get_type*/; - variable[1] = variable[2]; - goto return_label0; + if (UNTAG_Bool(REGB0)) { + fra.me.REG[2] = CALL_genericity___MMLocalClass___formals_types(fra.me.REG[1])(fra.me.REG[1]); + fra.me.REG[2] = CALL_genericity___MMLocalClass___get_instantiate_type(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]); + /* ./metamodel//genericity.nit:83 */ + ATTR_static_type___MMLocalClass____base_type_cache(fra.me.REG[1]) = fra.me.REG[2]; + fra.me.REG[1] = ATTR_static_type___MMLocalClass____base_type_cache(fra.me.REG[1]); + REGB0 = TAG_Bool((fra.me.REG[1]!=NIT_NULL) && VAL_ISA(fra.me.REG[1], COLOR_MMType, ID_MMType)) /*cast MMType*/; + /* ./metamodel//genericity.nit:84 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Cast failed"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 84); + nit_exit(1); + } + goto label1; + } else { + fra.me.REG[0] = CALL_SUPER_genericity___MMLocalClass___get_type(fra.me.REG[0])(fra.me.REG[0]); + fra.me.REG[1] = fra.me.REG[0]; + /* ./metamodel//genericity.nit:86 */ + goto label1; } - return_label0: while(false); - tracehead = trace.prev; - return variable[1]; + label1: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[1]; } -val_t genericity___MMLocalClass___get_formal(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 25, LOCATE_genericity___MMLocalClass___get_formal}; - val_t variable[8]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - /* Register variable[3]: Result */ - variable[3] = CALL_genericity___MMLocalClass___formals_types(variable[0])(variable[0]) /*MMLocalClass::formals_types*/; - /* Register variable[4]: Local variable */ - variable[4] = variable[3]; - /* Register variable[5]: Local variable */ - variable[5] = variable[1] /*pos*/; - /* Register variable[6]: Method return value and escape marker */ - /* Register variable[7]: Result */ - variable[7] = TAG_Bool(UNTAG_Int( variable[5] /*index*/)>=UNTAG_Int( TAG_Int(0))); - /* Ensure var variable[7]: Left 'and' operand*/ - if (UNTAG_Bool(variable[7])) { /* and */ - /* Register variable[7]: Result */ - variable[7] = ATTR_array___AbstractArrayRead____length(variable[4]) /*AbstractArrayRead::_length*/; - /* Register variable[7]: Result */ - variable[7] = TAG_Bool(UNTAG_Int( variable[5] /*index*/)=UNTAG_Int(REGB1)); + /* ./../lib/standard//collection//array.nit:233 */ + if (UNTAG_Bool(REGB1)) { + REGB1 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[0])!=NIT_NULL); + if (UNTAG_Bool(REGB1)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_length"); + fprintf(stderr, " (%s:%d)\n", LOCATE_array, 233); + nit_exit(1); + } + REGB1 = ATTR_array___AbstractArrayRead____length(fra.me.REG[0]); + REGB1 = TAG_Bool(UNTAG_Int(REGB0)val[UNTAG_Int(REGB0)]; + /* ./../lib/standard//collection//array.nit:234 */ + goto label1; + label1: while(0); + /* ./metamodel//genericity.nit:28 */ + goto label2; + label2: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[0]; } -void genericity___MMLocalClass___register_formal(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 31, LOCATE_genericity___MMLocalClass___register_formal}; - val_t variable[5]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - /* Register variable[3]: Result */ - variable[3] = CALL_genericity___MMTypeFormalParameter___def_class( variable[1] /*f*/)( variable[1] /*f*/) /*MMTypeFormalParameter::def_class*/; - /* Register variable[3]: Result */ - variable[3] = TAG_Bool((variable[3] == variable[0]) || ((variable[3] != NIT_NULL) && ((CALL_kernel___Object_____eqeq(variable[3])==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable[3],variable[0])):(UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3], variable[0]) /*Object::==*/))))); - if (!UNTAG_Bool(variable[3])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_genericity___MMLocalClass___register_formal, LOCATE_genericity, 35); nit_exit(1);} - /* Register variable[3]: Result */ - variable[3] = CALL_genericity___MMTypeFormalParameter___position( variable[1] /*f*/)( variable[1] /*f*/) /*MMTypeFormalParameter::position*/; - /* Register variable[4]: Result */ - variable[4] = ATTR_genericity___MMLocalClass____formals_types(variable[0]) /*MMLocalClass::_formals_types*/; - /* Register variable[4]: Result */ - variable[4] = CALL_abstract_collection___Collection___length(variable[4])(variable[4]) /*AbstractArrayRead::length*/; - /* Register variable[3]: Result */ - variable[3] = TAG_Bool((variable[3])==(variable[4])); - if (!UNTAG_Bool(variable[3])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_genericity___MMLocalClass___register_formal, LOCATE_genericity, 36); nit_exit(1);} - /* Register variable[3]: Result */ - variable[3] = ATTR_genericity___MMLocalClass____formals_types(variable[0]) /*MMLocalClass::_formals_types*/; - CALL_abstract_collection___SimpleCollection___add(variable[3])(variable[3], variable[1] /*f*/) /*AbstractArray::add*/; - return_label3: while(false); - tracehead = trace.prev; +void genericity___MMLocalClass___register_formal(val_t p0, val_t p1){ + struct {struct stack_frame_t me; val_t MORE_REG[2];} 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_genericity; + fra.me.line = 31; + fra.me.meth = LOCATE_genericity___MMLocalClass___register_formal; + 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] = CALL_genericity___MMTypeFormalParameter___def_class(fra.me.REG[1])(fra.me.REG[1]); + REGB0 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[2],fra.me.REG[0])); + /* ./metamodel//genericity.nit:35 */ + if (UNTAG_Bool(REGB0)) { + } else { + REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[0]); + REGB0 = REGB1; + } + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Assert failed"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 35); + nit_exit(1); + } + REGB0 = CALL_genericity___MMTypeFormalParameter___position(fra.me.REG[1])(fra.me.REG[1]); + REGB1 = TAG_Bool(ATTR_genericity___MMLocalClass____formals_types(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:36 */ + if (UNTAG_Bool(REGB1)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_formals_types"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 36); + nit_exit(1); + } + fra.me.REG[2] = ATTR_genericity___MMLocalClass____formals_types(fra.me.REG[0]); + REGB1 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL); + /* ./../lib/standard//collection//array.nit:23 */ + if (UNTAG_Bool(REGB1)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_length"); + fprintf(stderr, " (%s:%d)\n", LOCATE_array, 23); + nit_exit(1); + } + REGB1 = ATTR_array___AbstractArrayRead____length(fra.me.REG[2]); + REGB2 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB1)); + /* ./metamodel//genericity.nit:36 */ + if (UNTAG_Bool(REGB2)) { + } else { + REGB1 = TAG_Bool((REGB0)==(REGB1)); + REGB2 = REGB1; + /* ./metamodel//genericity.nit:36 */ + } + if (UNTAG_Bool(REGB2)) { + } else { + fprintf(stderr, "Assert failed"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 36); + nit_exit(1); + } + REGB2 = TAG_Bool(ATTR_genericity___MMLocalClass____formals_types(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:37 */ + if (UNTAG_Bool(REGB2)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_formals_types"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 37); + nit_exit(1); + } + fra.me.REG[0] = ATTR_genericity___MMLocalClass____formals_types(fra.me.REG[0]); + array___Array___add(fra.me.REG[0], fra.me.REG[1]); + stack_frame_head = fra.me.prev; return; } -val_t genericity___MMLocalClass___get_instantiate_type(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 43, LOCATE_genericity___MMLocalClass___get_instantiate_type}; - val_t variable[7]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - /* Register variable[3]: Result */ - variable[3] = ATTR_genericity___MMLocalClass____types(variable[0]) /*MMLocalClass::_types*/; - /* Register variable[3]: For iterator */ - variable[3] = CALL_abstract_collection___Collection___iterator(variable[3])(variable[3]) /*AbstractArrayRead::iterator*/; - while (true) { /*for*/ - /* Register variable[4]: For 'is_ok' result */ - variable[4] = CALL_abstract_collection___Iterator___is_ok(variable[3])(variable[3]) /*ArrayIterator::is_ok*/; - if (!UNTAG_Bool(variable[4])) break; /*for*/ - variable[4] = CALL_abstract_collection___Iterator___item(variable[3])(variable[3]) /*ArrayIterator::item*/ /* Ensure var: For item*/; - /* Register variable[5]: Local variable */ - variable[5] = variable[4]; - /* Register variable[6]: Result */ - variable[6] = CALL_genericity___MMTypeGeneric___params_equals( variable[5] /*g*/)( variable[5] /*g*/, variable[1] /*t*/) /*MMTypeGeneric::params_equals*/; - if (UNTAG_Bool(variable[6])) { /*if*/ - variable[2] = variable[5] /*g*/; - goto return_label4; +val_t genericity___MMLocalClass___get_instantiate_type(val_t p0, val_t p1){ + struct {struct stack_frame_t me; val_t MORE_REG[3];} fra; + val_t REGB0; + val_t tmp; + fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; + fra.me.file = LOCATE_genericity; + fra.me.line = 43; + fra.me.meth = LOCATE_genericity___MMLocalClass___get_instantiate_type; + 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(ATTR_genericity___MMLocalClass____types(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:46 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_types"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 46); + nit_exit(1); + } + fra.me.REG[2] = ATTR_genericity___MMLocalClass____types(fra.me.REG[0]); + fra.me.REG[2] = CALL_abstract_collection___Collection___iterator(fra.me.REG[2])(fra.me.REG[2]); + while(1) { + REGB0 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[2])(fra.me.REG[2]); + if (UNTAG_Bool(REGB0)) { + fra.me.REG[3] = CALL_abstract_collection___Iterator___item(fra.me.REG[2])(fra.me.REG[2]); + REGB0 = CALL_genericity___MMTypeGeneric___params_equals(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1]); + /* ./metamodel//genericity.nit:47 */ + if (UNTAG_Bool(REGB0)) { + goto label1; + } + } else { + /* ./metamodel//genericity.nit:46 */ + goto label2; } - continue_5: while(0); - CALL_abstract_collection___Iterator___next(variable[3])(variable[3]) /*ArrayIterator::next*/; + CALL_abstract_collection___Iterator___next(fra.me.REG[2])(fra.me.REG[2]); } - break_5: while(0); - /* Register variable[3]: Local variable */ - /* Register variable[4]: Result */ - variable[4] = NEW_MMTypeGeneric_genericity___MMTypeGeneric___init(variable[0], variable[1] /*t*/) /*new MMTypeGeneric*/; - variable[3] = variable[4]; - /* Register variable[4]: Result */ - variable[4] = ATTR_genericity___MMLocalClass____types(variable[0]) /*MMLocalClass::_types*/; - CALL_abstract_collection___SimpleCollection___add(variable[4])(variable[4], variable[3] /*g*/) /*AbstractArray::add*/; - variable[2] = variable[3] /*g*/; - goto return_label4; - return_label4: while(false); - tracehead = trace.prev; - return variable[2]; + label2: while(0); + fra.me.REG[1] = NEW_MMTypeGeneric_genericity___MMTypeGeneric___init(fra.me.REG[0], fra.me.REG[1]); + REGB0 = TAG_Bool(ATTR_genericity___MMLocalClass____types(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:50 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_types"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 50); + nit_exit(1); + } + fra.me.REG[0] = ATTR_genericity___MMLocalClass____types(fra.me.REG[0]); + array___Array___add(fra.me.REG[0], fra.me.REG[1]); + fra.me.REG[3] = fra.me.REG[1]; + /* ./metamodel//genericity.nit:51 */ + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[3]; } -val_t genericity___MMLocalClass___formals_types(val_t self) { - struct trace_t trace = {NULL, NULL, 57, LOCATE_genericity___MMLocalClass___formals_types}; - val_t variable[12]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Method return value and escape marker */ - /* Register variable[2]: Result */ - variable[2] = ATTR_genericity___MMLocalClass____formals_types(variable[0]) /*MMLocalClass::_formals_types*/; - /* Register variable[2]: Result */ - variable[2] = CALL_abstract_collection___Collection___is_empty(variable[2])(variable[2]) /*AbstractArrayRead::is_empty*/; - if (UNTAG_Bool(variable[2])) { /*if*/ - /* Register variable[2]: Result */ - variable[2] = TAG_Bool((variable[0]==NIT_NULL) || VAL_ISA(variable[0], COLOR_MMConcreteClass, ID_MMConcreteClass)) /*cast MMConcreteClass*/; - if (!UNTAG_Bool( TAG_Bool(!UNTAG_Bool(variable[2])))) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_genericity___MMLocalClass___formals_types, LOCATE_genericity, 62); nit_exit(1);} - /* Register variable[2]: Result */ - variable[2] = CALL_abstractmetamodel___MMLocalClass___arity(variable[0])(variable[0]) /*MMLocalClass::arity*/; - /* Register variable[2]: Result */ - variable[2] = NEW_Range_range___Range___without_last( TAG_Int(0), variable[2]) /*new Range[Int]*/; - /* Register variable[2]: For iterator */ - variable[2] = CALL_abstract_collection___Collection___iterator(variable[2])(variable[2]) /*Range::iterator*/; - while (true) { /*for*/ - /* Register variable[3]: For 'is_ok' result */ - variable[3] = CALL_abstract_collection___Iterator___is_ok(variable[2])(variable[2]) /*Iterator::is_ok*/; - if (!UNTAG_Bool(variable[3])) break; /*for*/ - variable[3] = CALL_abstract_collection___Iterator___item(variable[2])(variable[2]) /*Iterator::item*/ /* Ensure var: For item*/; - /* Register variable[4]: Local variable */ - variable[4] = variable[3]; - /* Register variable[5]: Local variable */ - /* Register variable[6]: Result */ - variable[6] = CALL_abstractmetamodel___MMLocalClass___global(variable[0])(variable[0]) /*MMLocalClass::global*/; - /* Register variable[6]: Result */ - variable[6] = CALL_abstractmetamodel___MMGlobalClass___intro(variable[6])(variable[6]) /*MMGlobalClass::intro*/; - /* Register variable[6]: Result */ - variable[6] = CALL_genericity___MMLocalClass___get_formal(variable[6])(variable[6], variable[4] /*i*/) /*MMLocalClass::get_formal*/; - variable[5] = variable[6]; - /* Register variable[6]: Local variable */ - /* Register variable[7]: Result */ - variable[7] = CALL_type_formal___MMTypeFormal___name( variable[5] /*oft*/)( variable[5] /*oft*/) /*MMTypeFormal::name*/; - /* Register variable[7]: Result */ - variable[7] = NEW_MMTypeFormalParameter_genericity___MMTypeFormalParameter___init(variable[7], variable[4] /*i*/, variable[0]) /*new MMTypeFormalParameter*/; - variable[6] = variable[7]; - CALL_genericity___MMLocalClass___register_formal(variable[0])(variable[0], variable[6] /*ft*/) /*MMLocalClass::register_formal*/; - continue_7: while(0); - CALL_abstract_collection___Iterator___next(variable[2])(variable[2]) /*Iterator::next*/; +val_t genericity___MMLocalClass___formals_types(val_t p0){ + struct {struct stack_frame_t me; val_t MORE_REG[4];} 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_genericity; + fra.me.line = 57; + fra.me.meth = LOCATE_genericity___MMLocalClass___formals_types; + 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; + REGB0 = TAG_Bool(ATTR_genericity___MMLocalClass____formals_types(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:61 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_formals_types"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 61); + nit_exit(1); + } + fra.me.REG[1] = ATTR_genericity___MMLocalClass____formals_types(fra.me.REG[0]); + REGB0 = CALL_abstract_collection___Collection___is_empty(fra.me.REG[1])(fra.me.REG[1]); + if (UNTAG_Bool(REGB0)) { + REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[0], COLOR_MMConcreteClass, ID_MMConcreteClass)) /*cast MMConcreteClass*/; + REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); + /* ./metamodel//genericity.nit:62 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Assert failed"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 62); + nit_exit(1); } - break_7: while(0); - /* Register variable[2]: Result */ - variable[2] = CALL_abstractmetamodel___MMLocalClass___arity(variable[0])(variable[0]) /*MMLocalClass::arity*/; - /* Register variable[2]: Result */ - variable[2] = NEW_Range_range___Range___without_last( TAG_Int(0), variable[2]) /*new Range[Int]*/; - /* Register variable[2]: For iterator */ - variable[2] = CALL_abstract_collection___Collection___iterator(variable[2])(variable[2]) /*Range::iterator*/; - while (true) { /*for*/ - /* Register variable[3]: For 'is_ok' result */ - variable[3] = CALL_abstract_collection___Iterator___is_ok(variable[2])(variable[2]) /*Iterator::is_ok*/; - if (!UNTAG_Bool(variable[3])) break; /*for*/ - variable[3] = CALL_abstract_collection___Iterator___item(variable[2])(variable[2]) /*Iterator::item*/ /* Ensure var: For item*/; - /* Register variable[4]: Local variable */ - variable[4] = variable[3]; - /* Register variable[5]: Local variable */ - /* Register variable[6]: Result */ - variable[6] = CALL_abstractmetamodel___MMLocalClass___global(variable[0])(variable[0]) /*MMLocalClass::global*/; - /* Register variable[6]: Result */ - variable[6] = CALL_abstractmetamodel___MMGlobalClass___intro(variable[6])(variable[6]) /*MMGlobalClass::intro*/; - /* Register variable[6]: Result */ - variable[6] = CALL_genericity___MMLocalClass___get_formal(variable[6])(variable[6], variable[4] /*i*/) /*MMLocalClass::get_formal*/; - variable[5] = variable[6]; - /* Register variable[6]: Local variable */ - /* Register variable[7]: Result */ - variable[7] = ATTR_genericity___MMLocalClass____formals_types(variable[0]) /*MMLocalClass::_formals_types*/; - /* Register variable[8]: Local variable */ - variable[8] = variable[7]; - /* Register variable[9]: Local variable */ - variable[9] = variable[4] /*i*/; - /* Register variable[10]: Method return value and escape marker */ - /* Register variable[11]: Result */ - variable[11] = TAG_Bool(UNTAG_Int( variable[9] /*index*/)>=UNTAG_Int( TAG_Int(0))); - /* Ensure var variable[11]: Left 'and' operand*/ - if (UNTAG_Bool(variable[11])) { /* and */ - /* Register variable[11]: Result */ - variable[11] = ATTR_array___AbstractArrayRead____length(variable[8]) /*AbstractArrayRead::_length*/; - /* Register variable[11]: Result */ - variable[11] = TAG_Bool(UNTAG_Int( variable[9] /*index*/)=UNTAG_Int(REGB1)); + /* ./../lib/standard//collection//array.nit:233 */ + if (UNTAG_Bool(REGB1)) { + REGB1 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[3])!=NIT_NULL); + if (UNTAG_Bool(REGB1)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_length"); + fprintf(stderr, " (%s:%d)\n", LOCATE_array, 233); + nit_exit(1); + } + REGB1 = ATTR_array___AbstractArrayRead____length(fra.me.REG[3]); + REGB1 = TAG_Bool(UNTAG_Int(REGB0)val[UNTAG_Int(REGB0)]; + /* ./../lib/standard//collection//array.nit:234 */ + goto label2; + label2: while(0); + fra.me.REG[2] = CALL_type_formal___MMTypeFormal___bound(fra.me.REG[2])(fra.me.REG[2]); + fra.me.REG[4] = CALL_abstractmetamodel___MMLocalClass___module(fra.me.REG[0])(fra.me.REG[0]); + fra.me.REG[4] = CALL_static_type___MMType___for_module(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]); + /* ./metamodel//genericity.nit:74 */ + CALL_genericity___MMTypeFormalParameter___bound__eq(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]); + } else { + /* ./metamodel//genericity.nit:71 */ + goto label3; + } + CALL_abstract_collection___Iterator___next(fra.me.REG[1])(fra.me.REG[1]); + } + label3: while(0); + } + REGB0 = TAG_Bool(ATTR_genericity___MMLocalClass____formals_types(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:77 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_formals_types"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 77); + nit_exit(1); } - /* Register variable[2]: Result */ - variable[2] = ATTR_genericity___MMLocalClass____formals_types(variable[0]) /*MMLocalClass::_formals_types*/; - variable[1] = variable[2]; - goto return_label6; - return_label6: while(false); - tracehead = trace.prev; - return variable[1]; + fra.me.REG[0] = ATTR_genericity___MMLocalClass____formals_types(fra.me.REG[0]); + goto label4; + label4: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[0]; } -val_t genericity___MMLocalClass___is_generic(val_t self) { - struct trace_t trace = {NULL, NULL, 90, LOCATE_genericity___MMLocalClass___is_generic}; - val_t variable[3]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Method return value and escape marker */ - /* Register variable[2]: Result */ - variable[2] = CALL_abstractmetamodel___MMLocalClass___arity(variable[0])(variable[0]) /*MMLocalClass::arity*/; - /* Register variable[2]: Result */ - variable[2] = TAG_Bool(UNTAG_Int(variable[2])>UNTAG_Int( TAG_Int(0))); - variable[1] = variable[2]; - goto return_label10; - return_label10: while(false); - tracehead = trace.prev; - return variable[1]; +val_t genericity___MMLocalClass___is_generic(val_t p0){ + struct {struct stack_frame_t me;} 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_genericity; + fra.me.line = 90; + fra.me.meth = LOCATE_genericity___MMLocalClass___is_generic; + fra.me.has_broke = 0; + fra.me.REG_size = 1; + fra.me.REG[0] = NIT_NULL; + fra.me.REG[0] = p0; + REGB0 = CALL_abstractmetamodel___MMLocalClass___arity(fra.me.REG[0])(fra.me.REG[0]); + REGB1 = TAG_Int(0); + REGB1 = TAG_Bool(UNTAG_Int(REGB0)>UNTAG_Int(REGB1)); + /* ./metamodel//genericity.nit:91 */ + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return REGB1; } -val_t genericity___MMType___is_generic(val_t self) { - struct trace_t trace = {NULL, NULL, 95, LOCATE_genericity___MMType___is_generic}; - val_t *variable = NULL; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; +val_t genericity___MMType___is_generic(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_genericity; + fra.me.line = 95; + fra.me.meth = LOCATE_genericity___MMType___is_generic; + fra.me.has_broke = 0; + fra.me.REG_size = 0; + /* ./metamodel//genericity.nit:95 */ fprintf(stderr, "Deferred method called"); fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 95); nit_exit(1); - tracehead = trace.prev; + stack_frame_head = fra.me.prev; return NIT_NULL; } -val_t genericity___MMTypeFormal___is_generic(val_t self) { - struct trace_t trace = {NULL, NULL, 100, LOCATE_genericity___MMTypeFormal___is_generic}; - val_t variable[3]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Method return value and escape marker */ - /* Register variable[2]: Result */ - variable[2] = ATTR_type_formal___MMTypeFormal____bound(variable[0]) /*MMTypeFormal::_bound*/; - /* Register variable[2]: Result */ - variable[2] = CALL_genericity___MMType___is_generic(variable[2])(variable[2]) /*MMType::is_generic*/; - variable[1] = variable[2]; - goto return_label11; - return_label11: while(false); - tracehead = trace.prev; - return variable[1]; +val_t genericity___MMTypeFormal___is_generic(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_genericity; + fra.me.line = 100; + fra.me.meth = LOCATE_genericity___MMTypeFormal___is_generic; + fra.me.has_broke = 0; + fra.me.REG_size = 1; + fra.me.REG[0] = NIT_NULL; + fra.me.REG[0] = p0; + fra.me.REG[0] = ATTR_type_formal___MMTypeFormal____bound(fra.me.REG[0]); + REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL); + /* ./metamodel//genericity.nit:100 */ + if (UNTAG_Bool(REGB0)) { + fprintf(stderr, "Reciever is null"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 100); + nit_exit(1); + } + REGB0 = CALL_genericity___MMType___is_generic(fra.me.REG[0])(fra.me.REG[0]); + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return REGB0; } -val_t genericity___MMTypeSimpleClass___is_generic(val_t self) { - struct trace_t trace = {NULL, NULL, 104, LOCATE_genericity___MMTypeSimpleClass___is_generic}; - val_t variable[2]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Method return value and escape marker */ - variable[1] = TAG_Bool(false); - goto return_label12; - return_label12: while(false); - tracehead = trace.prev; - return variable[1]; +val_t genericity___MMTypeSimpleClass___is_generic(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_genericity; + fra.me.line = 104; + fra.me.meth = LOCATE_genericity___MMTypeSimpleClass___is_generic; + fra.me.has_broke = 0; + fra.me.REG_size = 1; + fra.me.REG[0] = NIT_NULL; + fra.me.REG[0] = p0; + REGB0 = TAG_Bool(false); + /* ./metamodel//genericity.nit:104 */ + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return REGB0; } -val_t genericity___MMTypeGeneric___to_s(val_t self) { - struct trace_t trace = {NULL, NULL, 174, LOCATE_genericity___MMTypeGeneric___to_s}; - static val_t once_value_14 = NIT_NULL; /* Once value for string variable[3]*/ - static val_t once_value_15 = NIT_NULL; /* Once value for string variable[3]*/ - static val_t once_value_16 = NIT_NULL; /* Once value for string variable[4]*/ - static val_t once_value_17 = NIT_NULL; /* Once value for string variable[3]*/ - val_t variable[5]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Method return value and escape marker */ - variable[2] = NEW_Array_array___Array___with_capacity(TAG_Int(5)) /*new Array[String]*/ /* Ensure var: Array (for super-string)*/; - /* Register variable[3]: Once String constant */ - if (once_value_14 != NIT_NULL) variable[3] = once_value_14; - else { - variable[3] = NEW_String_string___String___with_native(BOX_NativeString(""), TAG_Int(0)) /*new String*/; - once_value_14 = variable[3]; - } - /* Register variable[3]: Result */ - /* Ensure var variable[3]: super-string element*/ - CALL_abstract_collection___SimpleCollection___add(variable[2])(variable[2], variable[3]) /*AbstractArray::add*/; - /* Register variable[3]: Result */ - variable[3] = CALL_SUPER_genericity___MMTypeGeneric___to_s(variable[0])(variable[0]) /*super MMTypeGeneric::to_s*/; - /* Ensure var variable[3]: super-string element*/ - CALL_abstract_collection___SimpleCollection___add(variable[2])(variable[2], variable[3]) /*AbstractArray::add*/; - /* Register variable[3]: Once String constant */ - if (once_value_15 != NIT_NULL) variable[3] = once_value_15; - else { - variable[3] = NEW_String_string___String___with_native(BOX_NativeString("["), TAG_Int(1)) /*new String*/; - once_value_15 = variable[3]; +val_t genericity___MMTypeGeneric___to_s(val_t p0){ + struct {struct stack_frame_t me; val_t MORE_REG[3];} fra; + val_t REGB0; + 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_genericity; + fra.me.line = 171; + fra.me.meth = LOCATE_genericity___MMTypeGeneric___to_s; + 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] = fra.me.REG[0]; + REGB0 = TAG_Int(5); + fra.me.REG[2] = NEW_Array_array___Array___with_capacity(REGB0); + /* ./metamodel//genericity.nit:173 */ + if (!once_value_1) { + fra.me.REG[3] = BOX_NativeString(""); + REGB0 = TAG_Int(0); + fra.me.REG[3] = NEW_String_string___String___with_native(fra.me.REG[3], REGB0); + once_value_1 = fra.me.REG[3]; + register_static_object(&once_value_1); + } else fra.me.REG[3] = once_value_1; + array___Array___add(fra.me.REG[2], fra.me.REG[3]); + fra.me.REG[0] = CALL_SUPER_genericity___MMTypeGeneric___to_s(fra.me.REG[0])(fra.me.REG[0]); + array___Array___add(fra.me.REG[2], fra.me.REG[0]); + if (!once_value_2) { + fra.me.REG[0] = BOX_NativeString("["); + REGB0 = TAG_Int(1); + fra.me.REG[0] = NEW_String_string___String___with_native(fra.me.REG[0], REGB0); + once_value_2 = fra.me.REG[0]; + register_static_object(&once_value_2); + } else fra.me.REG[0] = once_value_2; + array___Array___add(fra.me.REG[2], fra.me.REG[0]); + REGB0 = TAG_Bool(ATTR_genericity___MMTypeGeneric____params(fra.me.REG[1])!=NIT_NULL); + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_params"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 173); + nit_exit(1); } - /* Register variable[3]: Result */ - /* Ensure var variable[3]: super-string element*/ - CALL_abstract_collection___SimpleCollection___add(variable[2])(variable[2], variable[3]) /*AbstractArray::add*/; - /* Register variable[3]: Result */ - variable[3] = ATTR_genericity___MMTypeGeneric____params(variable[0]) /*MMTypeGeneric::_params*/; - /* Register variable[4]: Once String constant */ - if (once_value_16 != NIT_NULL) variable[4] = once_value_16; - else { - variable[4] = NEW_String_string___String___with_native(BOX_NativeString(", "), TAG_Int(2)) /*new String*/; - once_value_16 = variable[4]; + fra.me.REG[1] = ATTR_genericity___MMTypeGeneric____params(fra.me.REG[1]); + if (!once_value_3) { + fra.me.REG[0] = BOX_NativeString(", "); + REGB0 = TAG_Int(2); + fra.me.REG[0] = NEW_String_string___String___with_native(fra.me.REG[0], REGB0); + once_value_3 = fra.me.REG[0]; + register_static_object(&once_value_3); + } else fra.me.REG[0] = once_value_3; + fra.me.REG[0] = CALL_string___Collection___join(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]); + array___Array___add(fra.me.REG[2], fra.me.REG[0]); + if (!once_value_4) { + fra.me.REG[0] = BOX_NativeString("]"); + REGB0 = TAG_Int(1); + fra.me.REG[0] = NEW_String_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; + array___Array___add(fra.me.REG[2], fra.me.REG[0]); + fra.me.REG[2] = CALL_string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]); + goto label5; + label5: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[2]; +} +val_t genericity___MMTypeGeneric___is_supertype(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 tmp; + fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; + fra.me.file = LOCATE_genericity; + fra.me.line = 114; + fra.me.meth = LOCATE_genericity___MMTypeGeneric___is_supertype; + 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] = CALL_static_type___MMType___local_class(fra.me.REG[1])(fra.me.REG[1]); + fra.me.REG[2] = CALL_abstractmetamodel___MMLocalClass___cshe(fra.me.REG[2])(fra.me.REG[2]); + REGB0 = TAG_Bool(ATTR_static_type___MMTypeClass____local_class(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:116 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_local_class"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 116); + nit_exit(1); } - /* Register variable[4]: Result */ - /* Register variable[3]: Result */ - variable[3] = CALL_string___Collection___join(variable[3])(variable[3], variable[4]) /*Collection::join*/; - /* Ensure var variable[3]: super-string element*/ - CALL_abstract_collection___SimpleCollection___add(variable[2])(variable[2], variable[3]) /*AbstractArray::add*/; - /* Register variable[3]: Once String constant */ - if (once_value_17 != NIT_NULL) variable[3] = once_value_17; - else { - variable[3] = NEW_String_string___String___with_native(BOX_NativeString("]"), TAG_Int(1)) /*new String*/; - once_value_17 = variable[3]; + fra.me.REG[3] = ATTR_static_type___MMTypeClass____local_class(fra.me.REG[0]); + REGB0 = CALL_partial_order___PartialOrderElement_____leq(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); + if (UNTAG_Bool(REGB0)) { + REGB0 = TAG_Bool(ATTR_static_type___MMTypeClass____local_class(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:117 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_local_class"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 117); + nit_exit(1); + } + fra.me.REG[3] = ATTR_static_type___MMTypeClass____local_class(fra.me.REG[0]); + fra.me.REG[3] = CALL_static_type___MMType___upcast_for(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]); + REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[3], COLOR_MMTypeGeneric, ID_MMTypeGeneric)) /*cast MMTypeGeneric*/; + /* ./metamodel//genericity.nit:118 */ + if (UNTAG_Bool(REGB0)) { + REGB0 = CALL_genericity___MMTypeGeneric___is_subtype(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]); + /* ./metamodel//genericity.nit:119 */ + goto label1; + } } - /* Register variable[3]: Result */ - /* Ensure var variable[3]: super-string element*/ - CALL_abstract_collection___SimpleCollection___add(variable[2])(variable[2], variable[3]) /*AbstractArray::add*/; - /* Register variable[2]: Result */ - variable[2] = CALL_string___Object___to_s(variable[2])(variable[2]) /*Object::to_s*/; - variable[1] = variable[2]; - goto return_label13; - return_label13: while(false); - tracehead = trace.prev; - return variable[1]; + REGB1 = TAG_Bool(false); + REGB0 = REGB1; + /* ./metamodel//genericity.nit:122 */ + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return REGB0; } -val_t genericity___MMTypeGeneric___is_supertype(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 114, LOCATE_genericity___MMTypeGeneric___is_supertype}; - val_t variable[5]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - /* Register variable[3]: Result */ - variable[3] = CALL_static_type___MMType___local_class( variable[1] /*t*/)( variable[1] /*t*/) /*MMType::local_class*/; - /* Register variable[3]: Result */ - variable[3] = CALL_abstractmetamodel___MMLocalClass___cshe(variable[3])(variable[3]) /*MMLocalClass::cshe*/; - /* Register variable[4]: Result */ - variable[4] = ATTR_static_type___MMTypeClass____local_class(variable[0]) /*MMTypeClass::_local_class*/; - /* Register variable[3]: Result */ - variable[3] = CALL_partial_order___PartialOrderElement_____leq(variable[3])(variable[3], variable[4]) /*PartialOrderElement::<=*/; - if (UNTAG_Bool(variable[3])) { /*if*/ - /* Register variable[3]: Local variable */ - /* Register variable[4]: Result */ - variable[4] = ATTR_static_type___MMTypeClass____local_class(variable[0]) /*MMTypeClass::_local_class*/; - /* Register variable[4]: Result */ - variable[4] = CALL_static_type___MMType___upcast_for( variable[1] /*t*/)( variable[1] /*t*/, variable[4]) /*MMType::upcast_for*/; - variable[3] = variable[4]; - /* Register variable[4]: Result */ - variable[4] = TAG_Bool(( variable[3] /*u*/==NIT_NULL) || VAL_ISA( variable[3] /*u*/, COLOR_MMTypeGeneric, ID_MMTypeGeneric)) /*cast MMTypeGeneric*/; - if (UNTAG_Bool(variable[4])) { /*if*/ - /* Register variable[4]: Result */ - variable[4] = CALL_genericity___MMTypeGeneric___is_subtype(variable[0])(variable[0], variable[3] /*u*/) /*MMTypeGeneric::is_subtype*/; - variable[2] = variable[4]; - goto return_label18; +val_t genericity___MMTypeGeneric___for_module(val_t p0, val_t p1){ + struct {struct stack_frame_t me; val_t MORE_REG[5];} 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_genericity; + fra.me.line = 134; + fra.me.meth = LOCATE_genericity___MMTypeGeneric___for_module; + fra.me.has_broke = 0; + fra.me.REG_size = 6; + 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[0] = p0; + fra.me.REG[1] = p1; + fra.me.REG[2] = fra.me.REG[0]; + fra.me.REG[3] = CALL_static_type___MMType___module(fra.me.REG[0])(fra.me.REG[0]); + REGB0 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[3],fra.me.REG[1])); + /* ./metamodel//genericity.nit:137 */ + if (UNTAG_Bool(REGB0)) { + } else { + REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1]); + REGB0 = REGB1; + } + REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); + if (UNTAG_Bool(REGB0)) { + fra.me.REG[3] = NEW_Array_array___Array___init(); + REGB0 = TAG_Bool(ATTR_genericity___MMTypeGeneric____params(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:139 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_params"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 139); + nit_exit(1); + } + fra.me.REG[4] = ATTR_genericity___MMTypeGeneric____params(fra.me.REG[0]); + fra.me.REG[4] = CALL_abstract_collection___Collection___iterator(fra.me.REG[4])(fra.me.REG[4]); + while(1) { + REGB0 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[4])(fra.me.REG[4]); + if (UNTAG_Bool(REGB0)) { + fra.me.REG[5] = CALL_abstract_collection___Iterator___item(fra.me.REG[4])(fra.me.REG[4]); + fra.me.REG[5] = CALL_static_type___MMType___for_module(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[1]); + /* ./metamodel//genericity.nit:140 */ + array___Array___add(fra.me.REG[3], fra.me.REG[5]); + } else { + /* ./metamodel//genericity.nit:139 */ + goto label1; + } + CALL_abstract_collection___Iterator___next(fra.me.REG[4])(fra.me.REG[4]); } + label1: while(0); + REGB0 = TAG_Bool(ATTR_static_type___MMTypeClass____local_class(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:142 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_local_class"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 142); + nit_exit(1); + } + fra.me.REG[0] = ATTR_static_type___MMTypeClass____local_class(fra.me.REG[0]); + fra.me.REG[1] = CALL_abstractmetamodel___MMLocalClass___for_module(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]); + fra.me.REG[3] = CALL_genericity___MMLocalClass___get_instantiate_type(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]); + fra.me.REG[2] = fra.me.REG[3]; + /* ./metamodel//genericity.nit:143 */ } - variable[2] = TAG_Bool(false); - goto return_label18; - return_label18: while(false); - tracehead = trace.prev; - return variable[2]; + /* ./metamodel//genericity.nit:145 */ + goto label2; + label2: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[2]; } -val_t genericity___MMTypeGeneric___for_module(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 134, LOCATE_genericity___MMTypeGeneric___for_module}; - val_t variable[9]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - /* Register variable[3]: Local variable */ - variable[3] = variable[0]; - /* Register variable[4]: Result */ - variable[4] = CALL_static_type___MMType___module(variable[0])(variable[0]) /*MMTypeClass::module*/; - /* Register variable[4]: Result */ - variable[4] = TAG_Bool(!UNTAG_Bool(TAG_Bool((variable[4] == variable[1] /*mod*/) || ((variable[4] != NIT_NULL) && ((CALL_kernel___Object_____eqeq(variable[4])==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable[4], variable[1] /*mod*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[4])(variable[4], variable[1] /*mod*/) /*Object::==*/))))))); - if (UNTAG_Bool(variable[4])) { /*if*/ - /* Register variable[4]: Local variable */ - /* Register variable[5]: Result */ - variable[5] = NEW_Array_array___Array___init() /*new Array[MMType]*/; - variable[4] = variable[5]; - /* Register variable[5]: Result */ - variable[5] = ATTR_genericity___MMTypeGeneric____params(variable[0]) /*MMTypeGeneric::_params*/; - /* Register variable[5]: For iterator */ - variable[5] = CALL_abstract_collection___Collection___iterator(variable[5])(variable[5]) /*AbstractArrayRead::iterator*/; - while (true) { /*for*/ - /* Register variable[6]: For 'is_ok' result */ - variable[6] = CALL_abstract_collection___Iterator___is_ok(variable[5])(variable[5]) /*ArrayIterator::is_ok*/; - if (!UNTAG_Bool(variable[6])) break; /*for*/ - variable[6] = CALL_abstract_collection___Iterator___item(variable[5])(variable[5]) /*ArrayIterator::item*/ /* Ensure var: For item*/; - /* Register variable[7]: Local variable */ - variable[7] = variable[6]; - /* Register variable[8]: Result */ - variable[8] = CALL_static_type___MMType___for_module( variable[7] /*p*/)( variable[7] /*p*/, variable[1] /*mod*/) /*MMType::for_module*/; - CALL_abstract_collection___SimpleCollection___add( variable[4] /*parms*/)( variable[4] /*parms*/, variable[8]) /*AbstractArray::add*/; - continue_20: while(0); - CALL_abstract_collection___Iterator___next(variable[5])(variable[5]) /*ArrayIterator::next*/; +val_t genericity___MMTypeGeneric___adapt_to(val_t p0, val_t p1){ + struct {struct stack_frame_t me; val_t MORE_REG[4];} fra; + val_t REGB0; + val_t tmp; + fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; + fra.me.file = LOCATE_genericity; + fra.me.line = 148; + fra.me.meth = LOCATE_genericity___MMTypeGeneric___adapt_to; + 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; + fra.me.REG[1] = p1; + fra.me.REG[2] = NEW_Array_array___Array___init(); + REGB0 = TAG_Bool(ATTR_genericity___MMTypeGeneric____params(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:151 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_params"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 151); + nit_exit(1); + } + fra.me.REG[3] = ATTR_genericity___MMTypeGeneric____params(fra.me.REG[0]); + fra.me.REG[3] = CALL_abstract_collection___Collection___iterator(fra.me.REG[3])(fra.me.REG[3]); + while(1) { + REGB0 = CALL_abstract_collection___Iterator___is_ok(fra.me.REG[3])(fra.me.REG[3]); + if (UNTAG_Bool(REGB0)) { + fra.me.REG[4] = CALL_abstract_collection___Iterator___item(fra.me.REG[3])(fra.me.REG[3]); + fra.me.REG[4] = CALL_static_type___MMType___adapt_to(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[1]); + /* ./metamodel//genericity.nit:152 */ + array___Array___add(fra.me.REG[2], fra.me.REG[4]); + } else { + /* ./metamodel//genericity.nit:151 */ + goto label1; } - break_20: while(0); - /* Register variable[5]: Local variable */ - /* Register variable[6]: Result */ - variable[6] = ATTR_static_type___MMTypeClass____local_class(variable[0]) /*MMTypeClass::_local_class*/; - /* Register variable[6]: Result */ - variable[6] = CALL_abstractmetamodel___MMLocalClass___for_module(variable[6])(variable[6], variable[1] /*mod*/) /*MMLocalClass::for_module*/; - variable[5] = variable[6]; - /* Register variable[6]: Result */ - variable[6] = CALL_genericity___MMLocalClass___get_instantiate_type( variable[5] /*b*/)( variable[5] /*b*/, variable[4] /*parms*/) /*MMLocalClass::get_instantiate_type*/; - variable[3] = variable[6] /*t=*/; + CALL_abstract_collection___Iterator___next(fra.me.REG[3])(fra.me.REG[3]); } - /* Register variable[4]: Result */ - variable[4] = TAG_Bool(!UNTAG_Bool(TAG_Bool(( variable[3] /*t*/ == NIT_NULL /*null*/) || (( variable[3] /*t*/ != NIT_NULL) && ((CALL_kernel___Object_____eqeq( variable[3] /*t*/)==kernel___Object_____eqeq)?(IS_EQUAL_NN( variable[3] /*t*/, NIT_NULL /*null*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq( variable[3] /*t*/)( variable[3] /*t*/, NIT_NULL /*null*/) /*Object::==*/))))))); - if (!UNTAG_Bool(variable[4])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_genericity___MMTypeGeneric___for_module, LOCATE_genericity, 145); nit_exit(1);} - variable[2] = variable[3] /*t*/; - goto return_label19; - return_label19: while(false); - tracehead = trace.prev; - return variable[2]; -} -val_t genericity___MMTypeGeneric___adapt_to(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 149, LOCATE_genericity___MMTypeGeneric___adapt_to}; - val_t variable[8]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - /* Register variable[3]: Local variable */ - /* Register variable[4]: Result */ - variable[4] = NEW_Array_array___Array___init() /*new Array[MMType]*/; - variable[3] = variable[4]; - /* Register variable[4]: Result */ - variable[4] = ATTR_genericity___MMTypeGeneric____params(variable[0]) /*MMTypeGeneric::_params*/; - /* Register variable[4]: For iterator */ - variable[4] = CALL_abstract_collection___Collection___iterator(variable[4])(variable[4]) /*AbstractArrayRead::iterator*/; - while (true) { /*for*/ - /* Register variable[5]: For 'is_ok' result */ - variable[5] = CALL_abstract_collection___Iterator___is_ok(variable[4])(variable[4]) /*ArrayIterator::is_ok*/; - if (!UNTAG_Bool(variable[5])) break; /*for*/ - variable[5] = CALL_abstract_collection___Iterator___item(variable[4])(variable[4]) /*ArrayIterator::item*/ /* Ensure var: For item*/; - /* Register variable[6]: Local variable */ - variable[6] = variable[5]; - /* Register variable[7]: Result */ - variable[7] = CALL_static_type___MMType___adapt_to( variable[6] /*i*/)( variable[6] /*i*/, variable[1] /*r*/) /*MMType::adapt_to*/; - CALL_abstract_collection___SimpleCollection___add( variable[3] /*rv*/)( variable[3] /*rv*/, variable[7]) /*AbstractArray::add*/; - continue_22: while(0); - CALL_abstract_collection___Iterator___next(variable[4])(variable[4]) /*ArrayIterator::next*/; + label1: while(0); + REGB0 = TAG_Bool(ATTR_static_type___MMTypeClass____local_class(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:154 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_local_class"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 154); + nit_exit(1); } - break_22: while(0); - /* Register variable[4]: Local variable */ - /* Register variable[5]: Result */ - variable[5] = ATTR_static_type___MMTypeClass____local_class(variable[0]) /*MMTypeClass::_local_class*/; - /* Register variable[5]: Result */ - variable[5] = CALL_genericity___MMLocalClass___get_instantiate_type(variable[5])(variable[5], variable[3] /*rv*/) /*MMLocalClass::get_instantiate_type*/; - variable[4] = variable[5]; - variable[2] = variable[4] /*l*/; - goto return_label21; - return_label21: while(false); - tracehead = trace.prev; - return variable[2]; + fra.me.REG[0] = ATTR_static_type___MMTypeClass____local_class(fra.me.REG[0]); + fra.me.REG[2] = CALL_genericity___MMLocalClass___get_instantiate_type(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]); + /* ./metamodel//genericity.nit:155 */ + goto label2; + label2: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[2]; } -val_t genericity___MMTypeGeneric___upcast_for(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 125, LOCATE_genericity___MMTypeGeneric___upcast_for}; - val_t variable[5]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - /* Register variable[3]: Local variable */ - /* Register variable[4]: Result */ - variable[4] = CALL_SUPER_genericity___MMTypeGeneric___upcast_for(variable[0])(variable[0], variable[1]) /*super MMTypeGeneric::upcast_for*/; - variable[3] = variable[4]; - /* Register variable[4]: Result */ - variable[4] = TAG_Bool(!UNTAG_Bool(TAG_Bool(( variable[3] /*t*/ == variable[0]) || (( variable[3] /*t*/ != NIT_NULL) && ((CALL_kernel___Object_____eqeq( variable[3] /*t*/)==kernel___Object_____eqeq)?(IS_EQUAL_NN( variable[3] /*t*/,variable[0])):(UNTAG_Bool(CALL_kernel___Object_____eqeq( variable[3] /*t*/)( variable[3] /*t*/, variable[0]) /*Object::==*/))))))); - if (UNTAG_Bool(variable[4])) { /*if*/ - /* Register variable[4]: Result */ - variable[4] = CALL_static_type___MMType___adapt_to( variable[3] /*t*/)( variable[3] /*t*/, variable[0]) /*MMType::adapt_to*/; - variable[3] = variable[4] /*t=*/; +val_t genericity___MMTypeGeneric___upcast_for(val_t p0, val_t p1){ + struct {struct stack_frame_t me; val_t MORE_REG[2];} 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_genericity; + fra.me.line = 125; + fra.me.meth = LOCATE_genericity___MMTypeGeneric___upcast_for; + 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] = fra.me.REG[0]; + fra.me.REG[1] = CALL_SUPER_genericity___MMTypeGeneric___upcast_for(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]); + REGB0 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[1],fra.me.REG[2])); + /* ./metamodel//genericity.nit:128 */ + if (UNTAG_Bool(REGB0)) { + } else { + REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]); + REGB0 = REGB1; + } + REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); + if (UNTAG_Bool(REGB0)) { + fra.me.REG[2] = CALL_static_type___MMType___adapt_to(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]); + fra.me.REG[1] = fra.me.REG[2]; + /* ./metamodel//genericity.nit:129 */ } - variable[2] = variable[3] /*t*/; - goto return_label23; - return_label23: while(false); - tracehead = trace.prev; - return variable[2]; + /* ./metamodel//genericity.nit:131 */ + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[1]; } -val_t genericity___MMTypeGeneric___is_generic(val_t self) { - struct trace_t trace = {NULL, NULL, 112, LOCATE_genericity___MMTypeGeneric___is_generic}; - val_t variable[2]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Method return value and escape marker */ - variable[1] = TAG_Bool(true); - goto return_label24; - return_label24: while(false); - tracehead = trace.prev; - return variable[1]; +val_t genericity___MMTypeGeneric___is_generic(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_genericity; + fra.me.line = 112; + fra.me.meth = LOCATE_genericity___MMTypeGeneric___is_generic; + fra.me.has_broke = 0; + fra.me.REG_size = 1; + fra.me.REG[0] = NIT_NULL; + fra.me.REG[0] = p0; + REGB0 = TAG_Bool(true); + /* ./metamodel//genericity.nit:112 */ + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return REGB0; } -val_t genericity___MMTypeGeneric___params(val_t self) { - struct trace_t trace = {NULL, NULL, 109, LOCATE_genericity___MMTypeGeneric___params}; - val_t *variable = NULL; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - tracehead = trace.prev; - return ATTR_genericity___MMTypeGeneric____params( self) /*MMTypeGeneric::_params*/; +val_t genericity___MMTypeGeneric___params(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_genericity; + fra.me.line = 109; + fra.me.meth = LOCATE_genericity___MMTypeGeneric___params; + fra.me.has_broke = 0; + fra.me.REG_size = 1; + fra.me.REG[0] = NIT_NULL; + fra.me.REG[0] = p0; + REGB0 = TAG_Bool(ATTR_genericity___MMTypeGeneric____params(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:109 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_params"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 109); + nit_exit(1); + } + fra.me.REG[0] = ATTR_genericity___MMTypeGeneric____params(fra.me.REG[0]); + stack_frame_head = fra.me.prev; + return fra.me.REG[0]; } -val_t genericity___MMTypeGeneric___params_equals(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 159, LOCATE_genericity___MMTypeGeneric___params_equals}; - val_t variable[11]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - /* Register variable[3]: Result */ - variable[3] = CALL_abstract_collection___Collection___length( variable[1] /*t*/)( variable[1] /*t*/) /*AbstractArrayRead::length*/; - /* Register variable[4]: Result */ - variable[4] = ATTR_genericity___MMTypeGeneric____params(variable[0]) /*MMTypeGeneric::_params*/; - /* Register variable[4]: Result */ - variable[4] = CALL_abstract_collection___Collection___length(variable[4])(variable[4]) /*AbstractArrayRead::length*/; - /* Register variable[3]: Result */ - variable[3] = TAG_Bool((variable[3])!=(variable[4])); - if (UNTAG_Bool(variable[3])) { /*if*/ - variable[2] = TAG_Bool(false); - goto return_label25; +val_t genericity___MMTypeGeneric___params_equals(val_t p0, val_t p1){ + struct {struct stack_frame_t me; val_t MORE_REG[4];} fra; + val_t REGB0; + val_t REGB1; + val_t REGB2; + val_t REGB3; + val_t REGB4; + val_t tmp; + fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; + fra.me.file = LOCATE_genericity; + fra.me.line = 158; + fra.me.meth = LOCATE_genericity___MMTypeGeneric___params_equals; + 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; + fra.me.REG[1] = p1; + REGB0 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL); + /* ./../lib/standard//collection//array.nit:23 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_length"); + fprintf(stderr, " (%s:%d)\n", LOCATE_array, 23); + nit_exit(1); } - /* Register variable[3]: Result */ - variable[3] = CALL_abstract_collection___Collection___length( variable[1] /*t*/)( variable[1] /*t*/) /*AbstractArrayRead::length*/; - /* Register variable[3]: Result */ - variable[3] = NEW_Range_range___Range___without_last( TAG_Int(0), variable[3]) /*new Range[Int]*/; - /* Register variable[3]: For iterator */ - variable[3] = CALL_abstract_collection___Collection___iterator(variable[3])(variable[3]) /*Range::iterator*/; - while (true) { /*for*/ - /* Register variable[4]: For 'is_ok' result */ - variable[4] = CALL_abstract_collection___Iterator___is_ok(variable[3])(variable[3]) /*Iterator::is_ok*/; - if (!UNTAG_Bool(variable[4])) break; /*for*/ - variable[4] = CALL_abstract_collection___Iterator___item(variable[3])(variable[3]) /*Iterator::item*/ /* Ensure var: For item*/; - /* Register variable[5]: Local variable */ - variable[5] = variable[4]; - /* Register variable[6]: Result */ - variable[6] = ATTR_genericity___MMTypeGeneric____params(variable[0]) /*MMTypeGeneric::_params*/; - /* Register variable[7]: Local variable */ - variable[7] = variable[6]; - /* Register variable[8]: Local variable */ - variable[8] = variable[5] /*i*/; - /* Register variable[9]: Method return value and escape marker */ - /* Register variable[10]: Result */ - variable[10] = TAG_Bool(UNTAG_Int( variable[8] /*index*/)>=UNTAG_Int( TAG_Int(0))); - /* Ensure var variable[10]: Left 'and' operand*/ - if (UNTAG_Bool(variable[10])) { /* and */ - /* Register variable[10]: Result */ - variable[10] = ATTR_array___AbstractArrayRead____length(variable[7]) /*AbstractArrayRead::_length*/; - /* Register variable[10]: Result */ - variable[10] = TAG_Bool(UNTAG_Int( variable[8] /*index*/)=UNTAG_Int( TAG_Int(0))); - /* Ensure var variable[9]: Left 'and' operand*/ - if (UNTAG_Bool(variable[9])) { /* and */ - /* Register variable[9]: Result */ - variable[9] = ATTR_array___AbstractArrayRead____length(variable[6]) /*AbstractArrayRead::_length*/; - /* Register variable[9]: Result */ - variable[9] = TAG_Bool(UNTAG_Int( variable[7] /*index*/)=UNTAG_Int( TAG_Int(0))); - /* Ensure var variable[10]: Left 'and' operand*/ - if (UNTAG_Bool(variable[10])) { /* and */ - /* Register variable[10]: Result */ - variable[10] = ATTR_array___AbstractArrayRead____length(variable[7]) /*AbstractArrayRead::_length*/; - /* Register variable[10]: Result */ - variable[10] = TAG_Bool(UNTAG_Int( variable[8] /*index*/)=UNTAG_Int( TAG_Int(0))); - /* Ensure var variable[10]: Left 'and' operand*/ - if (UNTAG_Bool(variable[10])) { /* and */ - /* Register variable[10]: Result */ - variable[10] = ATTR_array___AbstractArrayRead____length(variable[7]) /*AbstractArrayRead::_length*/; - /* Register variable[10]: Result */ - variable[10] = TAG_Bool(UNTAG_Int( variable[8] /*index*/)=UNTAG_Int(REGB3)); + /* ./../lib/standard//collection//array.nit:233 */ + if (UNTAG_Bool(REGB3)) { + REGB3 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[3])!=NIT_NULL); + if (UNTAG_Bool(REGB3)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_length"); + fprintf(stderr, " (%s:%d)\n", LOCATE_array, 233); + nit_exit(1); + } + REGB3 = ATTR_array___AbstractArrayRead____length(fra.me.REG[3]); + REGB3 = TAG_Bool(UNTAG_Int(REGB1)val[UNTAG_Int(REGB1)]; + /* ./../lib/standard//collection//array.nit:234 */ + goto label2; + label2: while(0); + fra.me.REG[4] = fra.me.REG[1]; + REGB1 = TAG_Int(0); + REGB1 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB1)); + /* ./../lib/standard//collection//array.nit:233 */ + if (UNTAG_Bool(REGB1)) { + REGB1 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL); + if (UNTAG_Bool(REGB1)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_length"); + fprintf(stderr, " (%s:%d)\n", LOCATE_array, 233); + nit_exit(1); + } + REGB1 = ATTR_array___AbstractArrayRead____length(fra.me.REG[4]); + REGB1 = TAG_Bool(UNTAG_Int(REGB0)val[UNTAG_Int(REGB0)]; + /* ./../lib/standard//collection//array.nit:234 */ + goto label3; + label3: while(0); + REGB0 = TAG_Bool(IS_EQUAL_NN(fra.me.REG[3],fra.me.REG[4])); + /* ./metamodel//genericity.nit:164 */ + 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_kernel___Object_____eqeq(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]); + REGB0 = REGB1; + } + } + REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); + if (UNTAG_Bool(REGB0)) { + REGB0 = TAG_Bool(false); + REGB2 = REGB0; + /* ./metamodel//genericity.nit:165 */ + goto label1; + } + } else { + /* ./metamodel//genericity.nit:163 */ + goto label4; } - continue_26: while(0); - CALL_abstract_collection___Iterator___next(variable[3])(variable[3]) /*Iterator::next*/; + CALL_abstract_collection___Iterator___next(fra.me.REG[2])(fra.me.REG[2]); } - break_26: while(0); - variable[2] = TAG_Bool(true); - goto return_label25; - return_label25: while(false); - tracehead = trace.prev; - return variable[2]; + label4: while(0); + REGB0 = TAG_Bool(true); + REGB2 = REGB0; + /* ./metamodel//genericity.nit:168 */ + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return REGB2; } -val_t genericity___MMTypeGeneric___is_subtype(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 179, LOCATE_genericity___MMTypeGeneric___is_subtype}; - val_t variable[12]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - /* Register variable[3]: Result */ - variable[3] = ATTR_genericity___MMTypeGeneric____params(variable[0]) /*MMTypeGeneric::_params*/; - /* Register variable[3]: Result */ - variable[3] = CALL_abstract_collection___Collection___length(variable[3])(variable[3]) /*AbstractArrayRead::length*/; - /* Register variable[3]: Result */ - variable[3] = NEW_Range_range___Range___without_last( TAG_Int(0), variable[3]) /*new Range[Int]*/; - /* Register variable[3]: For iterator */ - variable[3] = CALL_abstract_collection___Collection___iterator(variable[3])(variable[3]) /*Range::iterator*/; - while (true) { /*for*/ - /* Register variable[4]: For 'is_ok' result */ - variable[4] = CALL_abstract_collection___Iterator___is_ok(variable[3])(variable[3]) /*Iterator::is_ok*/; - if (!UNTAG_Bool(variable[4])) break; /*for*/ - variable[4] = CALL_abstract_collection___Iterator___item(variable[3])(variable[3]) /*Iterator::item*/ /* Ensure var: For item*/; - /* Register variable[5]: Local variable */ - variable[5] = variable[4]; - /* Register variable[6]: Result */ - variable[6] = CALL_genericity___MMTypeGeneric___params( variable[1] /*t*/)( variable[1] /*t*/) /*MMTypeGeneric::params*/; - /* Register variable[7]: Local variable */ - variable[7] = variable[6]; - /* Register variable[8]: Local variable */ - variable[8] = variable[5] /*i*/; - /* Register variable[9]: Method return value and escape marker */ - /* Register variable[10]: Result */ - variable[10] = TAG_Bool(UNTAG_Int( variable[8] /*index*/)>=UNTAG_Int( TAG_Int(0))); - /* Ensure var variable[10]: Left 'and' operand*/ - if (UNTAG_Bool(variable[10])) { /* and */ - /* Register variable[10]: Result */ - variable[10] = ATTR_array___AbstractArrayRead____length(variable[7]) /*AbstractArrayRead::_length*/; - /* Register variable[10]: Result */ - variable[10] = TAG_Bool(UNTAG_Int( variable[8] /*index*/)=UNTAG_Int( TAG_Int(0))); - /* Ensure var variable[11]: Left 'and' operand*/ - if (UNTAG_Bool(variable[11])) { /* and */ - /* Register variable[11]: Result */ - variable[11] = ATTR_array___AbstractArrayRead____length(variable[8]) /*AbstractArrayRead::_length*/; - /* Register variable[11]: Result */ - variable[11] = TAG_Bool(UNTAG_Int( variable[9] /*index*/)=UNTAG_Int(REGB2)); + /* ./../lib/standard//collection//array.nit:233 */ + if (UNTAG_Bool(REGB2)) { + REGB2 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[3])!=NIT_NULL); + if (UNTAG_Bool(REGB2)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_length"); + fprintf(stderr, " (%s:%d)\n", LOCATE_array, 233); + nit_exit(1); + } + REGB2 = ATTR_array___AbstractArrayRead____length(fra.me.REG[3]); + REGB2 = TAG_Bool(UNTAG_Int(REGB0)val[UNTAG_Int(REGB0)]; + /* ./../lib/standard//collection//array.nit:234 */ + goto label1; + label1: while(0); + REGB0 = TAG_Bool(ATTR_genericity___MMTypeGeneric____params(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:182 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_params"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 182); + nit_exit(1); + } + fra.me.REG[4] = ATTR_genericity___MMTypeGeneric____params(fra.me.REG[0]); + REGB0 = TAG_Int(0); + REGB0 = TAG_Bool(UNTAG_Int(REGB1)>=UNTAG_Int(REGB0)); + /* ./../lib/standard//collection//array.nit:233 */ + if (UNTAG_Bool(REGB0)) { + REGB0 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL); + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_length"); + fprintf(stderr, " (%s:%d)\n", LOCATE_array, 233); + nit_exit(1); + } + REGB0 = ATTR_array___AbstractArrayRead____length(fra.me.REG[4]); + REGB0 = TAG_Bool(UNTAG_Int(REGB1)val[UNTAG_Int(REGB1)]; + /* ./../lib/standard//collection//array.nit:234 */ + goto label2; + label2: while(0); + REGB1 = TAG_Bool(fra.me.REG[3]==NIT_NULL); + /* ./metamodel//genericity.nit:182 */ + if (UNTAG_Bool(REGB1)) { + fprintf(stderr, "Reciever is null"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 182); + nit_exit(1); + } + REGB1 = CALL_static_type___MMType_____l(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]); + REGB1 = TAG_Bool(!UNTAG_Bool(REGB1)); + if (UNTAG_Bool(REGB1)) { + REGB1 = TAG_Bool(false); + /* ./metamodel//genericity.nit:183 */ + goto label3; + } + } else { + /* ./metamodel//genericity.nit:180 */ + goto label4; } - continue_32: while(0); - CALL_abstract_collection___Iterator___next(variable[3])(variable[3]) /*Iterator::next*/; + CALL_abstract_collection___Iterator___next(fra.me.REG[2])(fra.me.REG[2]); } - break_32: while(0); - variable[2] = TAG_Bool(true); - goto return_label31; - return_label31: while(false); - tracehead = trace.prev; - return variable[2]; + label4: while(0); + REGB0 = TAG_Bool(true); + REGB1 = REGB0; + /* ./metamodel//genericity.nit:186 */ + goto label3; + label3: while(0); + stack_frame_head = fra.me.prev; + return REGB1; } -void genericity___MMTypeGeneric___init(val_t self, val_t param0, val_t param1, int* init_table) { - struct trace_t trace = {NULL, NULL, 192, LOCATE_genericity___MMTypeGeneric___init}; - val_t variable[4]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Local variable */ - variable[2] = param1; - if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_MMTypeGeneric].i]) return; - /* Register variable[3]: Method return value and escape marker */ - CALL_static_type___MMTypeClass___init(variable[0])(variable[0], variable[1] /*c*/, init_table /*YYY*/) /*MMTypeClass::init*/; - ATTR_genericity___MMTypeGeneric____params(variable[0]) /*MMTypeGeneric::_params*/ = variable[2] /*p*/; - return_label35: while(false); - init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_MMTypeGeneric].i] = 1; - tracehead = trace.prev; +void genericity___MMTypeGeneric___init(val_t p0, val_t p1, val_t p2, int* init_table){ + int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_MMTypeGeneric].i; + struct {struct stack_frame_t me; val_t MORE_REG[3];} fra; + val_t tmp; + if (init_table[itpos0]) return; + fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; + fra.me.file = LOCATE_genericity; + fra.me.line = 189; + fra.me.meth = LOCATE_genericity___MMTypeGeneric___init; + 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; + fra.me.REG[3] = fra.me.REG[0]; + /* ./metamodel//genericity.nit:191 */ + CALL_static_type___MMTypeClass___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], init_table); + /* ./metamodel//genericity.nit:192 */ + ATTR_genericity___MMTypeGeneric____params(fra.me.REG[3]) = fra.me.REG[2]; + stack_frame_head = fra.me.prev; + init_table[itpos0] = 1; return; } -val_t genericity___MMTypeFormalParameter___module(val_t self) { - struct trace_t trace = {NULL, NULL, 207, LOCATE_genericity___MMTypeFormalParameter___module}; - val_t variable[3]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Method return value and escape marker */ - /* Register variable[2]: Result */ - variable[2] = ATTR_genericity___MMTypeFormalParameter____def_class(variable[0]) /*MMTypeFormalParameter::_def_class*/; - /* Register variable[2]: Result */ - variable[2] = CALL_abstractmetamodel___MMLocalClass___module(variable[2])(variable[2]) /*MMLocalClass::module*/; - variable[1] = variable[2]; - goto return_label36; - return_label36: while(false); - tracehead = trace.prev; - return variable[1]; +val_t genericity___MMTypeFormalParameter___module(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_genericity; + fra.me.line = 204; + fra.me.meth = LOCATE_genericity___MMTypeFormalParameter___module; + fra.me.has_broke = 0; + fra.me.REG_size = 1; + fra.me.REG[0] = NIT_NULL; + fra.me.REG[0] = p0; + REGB0 = TAG_Bool(ATTR_genericity___MMTypeFormalParameter____def_class(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:204 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_def_class"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 204); + nit_exit(1); + } + fra.me.REG[0] = ATTR_genericity___MMTypeFormalParameter____def_class(fra.me.REG[0]); + fra.me.REG[0] = CALL_abstractmetamodel___MMLocalClass___module(fra.me.REG[0])(fra.me.REG[0]); + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[0]; } -val_t genericity___MMTypeFormalParameter___for_module(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 209, LOCATE_genericity___MMTypeFormalParameter___for_module}; - val_t variable[6]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - /* Register variable[3]: Local variable */ - variable[3] = variable[0]; - /* Register variable[4]: Result */ - variable[4] = CALL_static_type___MMType___module(variable[0])(variable[0]) /*MMTypeFormalParameter::module*/; - /* Register variable[4]: Result */ - variable[4] = TAG_Bool(!UNTAG_Bool(TAG_Bool((variable[4] == variable[1] /*mod*/) || ((variable[4] != NIT_NULL) && ((CALL_kernel___Object_____eqeq(variable[4])==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable[4], variable[1] /*mod*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[4])(variable[4], variable[1] /*mod*/) /*Object::==*/))))))); - if (UNTAG_Bool(variable[4])) { /*if*/ - /* Register variable[4]: Result */ - variable[4] = ATTR_genericity___MMTypeFormalParameter____def_class(variable[0]) /*MMTypeFormalParameter::_def_class*/; - /* Register variable[4]: Result */ - variable[4] = CALL_abstractmetamodel___MMLocalClass___global(variable[4])(variable[4]) /*MMLocalClass::global*/; - /* Register variable[4]: Result */ - variable[4] = CALL_abstractmetamodel___MMModule_____bra( variable[1] /*mod*/)( variable[1] /*mod*/, variable[4]) /*MMModule::[]*/; - /* Register variable[5]: Result */ - variable[5] = CALL_genericity___MMTypeFormalParameter___position(variable[0])(variable[0]) /*MMTypeFormalParameter::position*/; - /* Register variable[4]: Result */ - variable[4] = CALL_genericity___MMLocalClass___get_formal(variable[4])(variable[4], variable[5]) /*MMLocalClass::get_formal*/; - variable[3] = variable[4] /*t=*/; +val_t genericity___MMTypeFormalParameter___for_module(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 tmp; + fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; + fra.me.file = LOCATE_genericity; + fra.me.line = 206; + fra.me.meth = LOCATE_genericity___MMTypeFormalParameter___for_module; + 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] = fra.me.REG[0]; + fra.me.REG[3] = CALL_static_type___MMType___module(fra.me.REG[0])(fra.me.REG[0]); + REGB0 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[3],fra.me.REG[1])); + /* ./metamodel//genericity.nit:209 */ + if (UNTAG_Bool(REGB0)) { + } else { + REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1]); + REGB0 = REGB1; } - /* Register variable[4]: Result */ - variable[4] = TAG_Bool(!UNTAG_Bool(TAG_Bool(( variable[3] /*t*/ == NIT_NULL /*null*/) || (( variable[3] /*t*/ != NIT_NULL) && ((CALL_kernel___Object_____eqeq( variable[3] /*t*/)==kernel___Object_____eqeq)?(IS_EQUAL_NN( variable[3] /*t*/, NIT_NULL /*null*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq( variable[3] /*t*/)( variable[3] /*t*/, NIT_NULL /*null*/) /*Object::==*/))))))); - if (!UNTAG_Bool(variable[4])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_genericity___MMTypeFormalParameter___for_module, LOCATE_genericity, 215); nit_exit(1);} - variable[2] = variable[3] /*t*/; - goto return_label37; - return_label37: while(false); - tracehead = trace.prev; - return variable[2]; + REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); + if (UNTAG_Bool(REGB0)) { + REGB0 = TAG_Bool(ATTR_genericity___MMTypeFormalParameter____def_class(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:210 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_def_class"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 210); + nit_exit(1); + } + fra.me.REG[3] = ATTR_genericity___MMTypeFormalParameter____def_class(fra.me.REG[0]); + fra.me.REG[3] = CALL_abstractmetamodel___MMLocalClass___global(fra.me.REG[3])(fra.me.REG[3]); + fra.me.REG[3] = CALL_abstractmetamodel___MMModule_____bra(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]); + REGB0 = CALL_genericity___MMTypeFormalParameter___position(fra.me.REG[0])(fra.me.REG[0]); + fra.me.REG[3] = CALL_genericity___MMLocalClass___get_formal(fra.me.REG[3])(fra.me.REG[3], REGB0); + fra.me.REG[2] = fra.me.REG[3]; + } + /* ./metamodel//genericity.nit:212 */ + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[2]; } -val_t genericity___MMTypeFormalParameter___adapt_to(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 227, LOCATE_genericity___MMTypeFormalParameter___adapt_to}; - val_t variable[11]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - /* Register variable[3]: Result */ - variable[3] = CALL_type_formal___MMType___direct_type( variable[1] /*r*/)( variable[1] /*r*/) /*MMType::direct_type*/; - variable[1] = variable[3] /*r=*/; - /* Register variable[3]: Local variable */ - /* Register variable[4]: Result */ - variable[4] = CALL_genericity___MMTypeFormalParameter___def_class(variable[0])(variable[0]) /*MMTypeFormalParameter::def_class*/; - /* Register variable[4]: Result */ - variable[4] = CALL_static_type___MMType___upcast_for( variable[1] /*r*/)( variable[1] /*r*/, variable[4]) /*MMType::upcast_for*/; - variable[3] = variable[4]; - /* Register variable[4]: Result */ - variable[4] = TAG_Bool(( variable[3] /*old_r*/==NIT_NULL) || VAL_ISA( variable[3] /*old_r*/, COLOR_MMTypeGeneric, ID_MMTypeGeneric)) /*cast MMTypeGeneric*/; - if (!UNTAG_Bool(variable[4])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_genericity___MMTypeFormalParameter___adapt_to, LOCATE_genericity, 235); nit_exit(1);} - /* Register variable[4]: Local variable */ - /* Register variable[5]: Result */ - variable[5] = CALL_genericity___MMTypeGeneric___params( variable[3] /*old_r*/)( variable[3] /*old_r*/) /*MMTypeGeneric::params*/; - /* Register variable[6]: Result */ - variable[6] = CALL_genericity___MMTypeFormalParameter___position(variable[0])(variable[0]) /*MMTypeFormalParameter::position*/; - /* Register variable[7]: Local variable */ - variable[7] = variable[5]; - /* Register variable[8]: Local variable */ - variable[8] = variable[6]; - /* Register variable[9]: Method return value and escape marker */ - /* Register variable[10]: Result */ - variable[10] = TAG_Bool(UNTAG_Int( variable[8] /*index*/)>=UNTAG_Int( TAG_Int(0))); - /* Ensure var variable[10]: Left 'and' operand*/ - if (UNTAG_Bool(variable[10])) { /* and */ - /* Register variable[10]: Result */ - variable[10] = ATTR_array___AbstractArrayRead____length(variable[7]) /*AbstractArrayRead::_length*/; - /* Register variable[10]: Result */ - variable[10] = TAG_Bool(UNTAG_Int( variable[8] /*index*/)=UNTAG_Int(REGB1)); + /* ./../lib/standard//collection//array.nit:233 */ + if (UNTAG_Bool(REGB1)) { + REGB1 = TAG_Bool(ATTR_array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL); + if (UNTAG_Bool(REGB1)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_length"); + fprintf(stderr, " (%s:%d)\n", LOCATE_array, 233); + nit_exit(1); + } + REGB1 = ATTR_array___AbstractArrayRead____length(fra.me.REG[2]); + REGB1 = TAG_Bool(UNTAG_Int(REGB0)val[UNTAG_Int(REGB0)]; + /* ./../lib/standard//collection//array.nit:234 */ + goto label1; + label1: while(0); + /* ./metamodel//genericity.nit:233 */ + goto label2; + label2: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[2]; } -val_t genericity___MMTypeFormalParameter___upcast_for(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 219, LOCATE_genericity___MMTypeFormalParameter___upcast_for}; - val_t variable[4]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - /* Register variable[3]: Result */ - variable[3] = ATTR_type_formal___MMTypeFormal____bound(variable[0]) /*MMTypeFormal::_bound*/; - /* Register variable[3]: Result */ - variable[3] = CALL_static_type___MMType___upcast_for(variable[3])(variable[3], variable[1] /*c*/) /*MMType::upcast_for*/; - variable[2] = variable[3]; - goto return_label40; - return_label40: while(false); - tracehead = trace.prev; - return variable[2]; +val_t genericity___MMTypeFormalParameter___upcast_for(val_t p0, val_t p1){ + struct {struct stack_frame_t me; val_t MORE_REG[1];} fra; + val_t REGB0; + val_t tmp; + fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; + fra.me.file = LOCATE_genericity; + fra.me.line = 215; + fra.me.meth = LOCATE_genericity___MMTypeFormalParameter___upcast_for; + fra.me.has_broke = 0; + fra.me.REG_size = 2; + fra.me.REG[0] = NIT_NULL; + fra.me.REG[1] = NIT_NULL; + fra.me.REG[0] = p0; + fra.me.REG[1] = p1; + fra.me.REG[0] = ATTR_type_formal___MMTypeFormal____bound(fra.me.REG[0]); + REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL); + /* ./metamodel//genericity.nit:215 */ + if (UNTAG_Bool(REGB0)) { + fprintf(stderr, "Reciever is null"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 215); + nit_exit(1); + } + fra.me.REG[1] = CALL_static_type___MMType___upcast_for(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]); + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[1]; } -val_t genericity___MMTypeFormalParameter___def_class(val_t self) { - struct trace_t trace = {NULL, NULL, 201, LOCATE_genericity___MMTypeFormalParameter___def_class}; - val_t *variable = NULL; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - tracehead = trace.prev; - return ATTR_genericity___MMTypeFormalParameter____def_class( self) /*MMTypeFormalParameter::_def_class*/; +val_t genericity___MMTypeFormalParameter___def_class(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_genericity; + fra.me.line = 198; + fra.me.meth = LOCATE_genericity___MMTypeFormalParameter___def_class; + fra.me.has_broke = 0; + fra.me.REG_size = 1; + fra.me.REG[0] = NIT_NULL; + fra.me.REG[0] = p0; + REGB0 = TAG_Bool(ATTR_genericity___MMTypeFormalParameter____def_class(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:198 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_def_class"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 198); + nit_exit(1); + } + fra.me.REG[0] = ATTR_genericity___MMTypeFormalParameter____def_class(fra.me.REG[0]); + stack_frame_head = fra.me.prev; + return fra.me.REG[0]; } -val_t genericity___MMTypeFormalParameter___position(val_t self) { - struct trace_t trace = {NULL, NULL, 204, LOCATE_genericity___MMTypeFormalParameter___position}; - val_t *variable = NULL; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - tracehead = trace.prev; - return ATTR_genericity___MMTypeFormalParameter____position( self) /*MMTypeFormalParameter::_position*/; +val_t genericity___MMTypeFormalParameter___position(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_genericity; + fra.me.line = 201; + fra.me.meth = LOCATE_genericity___MMTypeFormalParameter___position; + fra.me.has_broke = 0; + fra.me.REG_size = 1; + fra.me.REG[0] = NIT_NULL; + fra.me.REG[0] = p0; + REGB0 = TAG_Bool(ATTR_genericity___MMTypeFormalParameter____position(fra.me.REG[0])!=NIT_NULL); + /* ./metamodel//genericity.nit:201 */ + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Uninitialized attribute %s", "_position"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 201); + nit_exit(1); + } + REGB0 = ATTR_genericity___MMTypeFormalParameter____position(fra.me.REG[0]); + stack_frame_head = fra.me.prev; + return REGB0; } -void genericity___MMTypeFormalParameter___bound__eq(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 221, LOCATE_genericity___MMTypeFormalParameter___bound__eq}; - val_t variable[4]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - /* Register variable[3]: Result */ - variable[3] = ATTR_type_formal___MMTypeFormal____bound(variable[0]) /*MMTypeFormal::_bound*/; - /* Register variable[3]: Result */ - variable[3] = TAG_Bool((variable[3] == NIT_NULL /*null*/) || ((variable[3] != NIT_NULL) && ((CALL_kernel___Object_____eqeq(variable[3])==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable[3], NIT_NULL /*null*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3], NIT_NULL /*null*/) /*Object::==*/))))); - if (!UNTAG_Bool(variable[3])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_genericity___MMTypeFormalParameter___bound__eq, LOCATE_genericity, 223); nit_exit(1);} - ATTR_type_formal___MMTypeFormal____bound(variable[0]) /*MMTypeFormal::_bound*/ = variable[1] /*t*/; - return_label41: while(false); - tracehead = trace.prev; +void genericity___MMTypeFormalParameter___bound__eq(val_t p0, val_t p1){ + struct {struct stack_frame_t me; val_t MORE_REG[2];} 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_genericity; + fra.me.line = 217; + fra.me.meth = LOCATE_genericity___MMTypeFormalParameter___bound__eq; + 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] = ATTR_type_formal___MMTypeFormal____bound(fra.me.REG[0]); + REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL); + /* ./metamodel//genericity.nit:219 */ + if (UNTAG_Bool(REGB0)) { + } else { + REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL); + if (UNTAG_Bool(REGB1)) { + REGB1 = TAG_Bool(false); + REGB0 = REGB1; + } else { + REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL); + REGB0 = REGB1; + } + } + if (UNTAG_Bool(REGB0)) { + } else { + fprintf(stderr, "Assert failed"); + fprintf(stderr, " (%s:%d)\n", LOCATE_genericity, 219); + nit_exit(1); + } + /* ./metamodel//genericity.nit:220 */ + ATTR_type_formal___MMTypeFormal____bound(fra.me.REG[0]) = fra.me.REG[1]; + stack_frame_head = fra.me.prev; return; } -void genericity___MMTypeFormalParameter___with_bound(val_t self, val_t param0, val_t param1, val_t param2, val_t param3, int* init_table) { - struct trace_t trace = {NULL, NULL, 241, LOCATE_genericity___MMTypeFormalParameter___with_bound}; - val_t variable[6]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Local variable */ - variable[2] = param1; - /* Register variable[3]: Local variable */ - variable[3] = param2; - /* Register variable[4]: Local variable */ - variable[4] = param3; - if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_MMTypeFormalParameter].i]) return; - /* Register variable[5]: Method return value and escape marker */ - CALL_genericity___MMTypeFormalParameter___init(variable[0])(variable[0], variable[1] /*n*/, variable[2] /*p*/, variable[3] /*intro*/, init_table /*YYY*/) /*MMTypeFormalParameter::init*/; - ATTR_type_formal___MMTypeFormal____bound(variable[0]) /*MMTypeFormal::_bound*/ = variable[4] /*b*/; - return_label42: while(false); - init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_MMTypeFormalParameter].i] = 1; - tracehead = trace.prev; +void genericity___MMTypeFormalParameter___with_bound(val_t p0, val_t p1, val_t p2, val_t p3, val_t p4, int* init_table){ + int itpos1 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_MMTypeFormalParameter].i; + struct {struct stack_frame_t me; val_t MORE_REG[3];} fra; + val_t REGB0; + val_t tmp; + if (init_table[itpos1]) return; + fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; + fra.me.file = LOCATE_genericity; + fra.me.line = 236; + fra.me.meth = LOCATE_genericity___MMTypeFormalParameter___with_bound; + 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; + fra.me.REG[2] = p3; + fra.me.REG[3] = p4; + /* ./metamodel//genericity.nit:238 */ + CALL_genericity___MMTypeFormalParameter___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], REGB0, fra.me.REG[2], init_table); + /* ./metamodel//genericity.nit:239 */ + ATTR_type_formal___MMTypeFormal____bound(fra.me.REG[0]) = fra.me.REG[3]; + stack_frame_head = fra.me.prev; + init_table[itpos1] = 1; return; } -void genericity___MMTypeFormalParameter___init(val_t self, val_t param0, val_t param1, val_t param2, int* init_table) { - struct trace_t trace = {NULL, NULL, 247, LOCATE_genericity___MMTypeFormalParameter___init}; - val_t variable[6]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Local variable */ - variable[2] = param1; - /* Register variable[3]: Local variable */ - variable[3] = param2; - if (init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_MMTypeFormalParameter].i]) return; - /* Register variable[4]: Method return value and escape marker */ - /* Register variable[5]: Result */ - variable[5] = TAG_Bool(!UNTAG_Bool(TAG_Bool(( variable[1] /*n*/ == NIT_NULL /*null*/) || (( variable[1] /*n*/ != NIT_NULL) && ((CALL_kernel___Object_____eqeq( variable[1] /*n*/)==kernel___Object_____eqeq)?(IS_EQUAL_NN( variable[1] /*n*/, NIT_NULL /*null*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq( variable[1] /*n*/)( variable[1] /*n*/, NIT_NULL /*null*/) /*Object::==*/))))))); - if (!UNTAG_Bool(variable[5])) { fprintf(stderr, "Assert%s failed", ""); fprintf(stderr, " in %s (%s:%d)\n", LOCATE_genericity___MMTypeFormalParameter___init, LOCATE_genericity, 249); nit_exit(1);} - CALL_type_formal___MMTypeFormal___init(variable[0])(variable[0], variable[1] /*n*/, NIT_NULL /*null*/, init_table /*YYY*/) /*MMTypeFormal::init*/; - ATTR_genericity___MMTypeFormalParameter____position(variable[0]) /*MMTypeFormalParameter::_position*/ = variable[2] /*p*/; - ATTR_genericity___MMTypeFormalParameter____def_class(variable[0]) /*MMTypeFormalParameter::_def_class*/ = variable[3] /*intro*/; - return_label43: while(false); - init_table[VAL2OBJ(variable[0])->vft[INIT_TABLE_POS_MMTypeFormalParameter].i] = 1; - tracehead = trace.prev; +void genericity___MMTypeFormalParameter___init(val_t p0, val_t p1, val_t p2, val_t p3, int* init_table){ + int itpos2 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_MMTypeFormalParameter].i; + struct {struct stack_frame_t me; val_t MORE_REG[3];} fra; + val_t REGB0; + val_t tmp; + if (init_table[itpos2]) return; + fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; + fra.me.file = LOCATE_genericity; + fra.me.line = 242; + fra.me.meth = LOCATE_genericity___MMTypeFormalParameter___init; + 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; + fra.me.REG[2] = p3; + fra.me.REG[3] = fra.me.REG[0]; + /* ./metamodel//genericity.nit:244 */ + CALL_type_formal___MMTypeFormal___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], NIT_NULL, init_table); + /* ./metamodel//genericity.nit:245 */ + ATTR_genericity___MMTypeFormalParameter____position(fra.me.REG[3]) = REGB0; + /* ./metamodel//genericity.nit:246 */ + ATTR_genericity___MMTypeFormalParameter____def_class(fra.me.REG[3]) = fra.me.REG[2]; + stack_frame_head = fra.me.prev; + init_table[itpos2] = 1; return; } -val_t genericity___MMTypeNone___for_module(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 258, LOCATE_genericity___MMTypeNone___for_module}; - val_t variable[3]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - variable[2] = variable[0]; - goto return_label44; - return_label44: while(false); - tracehead = trace.prev; - return variable[2]; +val_t genericity___MMTypeNone___for_module(val_t p0, val_t p1){ + struct {struct stack_frame_t me; val_t MORE_REG[1];} fra; + val_t tmp; + fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; + fra.me.file = LOCATE_genericity; + fra.me.line = 252; + fra.me.meth = LOCATE_genericity___MMTypeNone___for_module; + fra.me.has_broke = 0; + fra.me.REG_size = 2; + fra.me.REG[0] = NIT_NULL; + fra.me.REG[1] = NIT_NULL; + fra.me.REG[0] = p0; + fra.me.REG[1] = p1; + /* ./metamodel//genericity.nit:252 */ + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[0]; } -val_t genericity___MMTypeNone___adapt_to(val_t self, val_t param0) { - struct trace_t trace = {NULL, NULL, 259, LOCATE_genericity___MMTypeNone___adapt_to}; - val_t variable[3]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Local variable */ - variable[1] = param0; - /* Register variable[2]: Method return value and escape marker */ - variable[2] = variable[0]; - goto return_label45; - return_label45: while(false); - tracehead = trace.prev; - return variable[2]; +val_t genericity___MMTypeNone___adapt_to(val_t p0, val_t p1){ + struct {struct stack_frame_t me; val_t MORE_REG[1];} fra; + val_t tmp; + fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; + fra.me.file = LOCATE_genericity; + fra.me.line = 253; + fra.me.meth = LOCATE_genericity___MMTypeNone___adapt_to; + fra.me.has_broke = 0; + fra.me.REG_size = 2; + fra.me.REG[0] = NIT_NULL; + fra.me.REG[1] = NIT_NULL; + fra.me.REG[0] = p0; + fra.me.REG[1] = p1; + /* ./metamodel//genericity.nit:253 */ + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return fra.me.REG[0]; } -val_t genericity___MMTypeNone___is_generic(val_t self) { - struct trace_t trace = {NULL, NULL, 257, LOCATE_genericity___MMTypeNone___is_generic}; - val_t variable[2]; - struct WBT_ **closurevariable = NULL; - trace.prev = tracehead; tracehead = &trace; - trace.file = LOCATE_genericity; - /* Register variable[0]: Local variable */ - variable[0] = self; - /* Register variable[1]: Method return value and escape marker */ - variable[1] = TAG_Bool(false); - goto return_label46; - return_label46: while(false); - tracehead = trace.prev; - return variable[1]; +val_t genericity___MMTypeNone___is_generic(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_genericity; + fra.me.line = 251; + fra.me.meth = LOCATE_genericity___MMTypeNone___is_generic; + fra.me.has_broke = 0; + fra.me.REG_size = 1; + fra.me.REG[0] = NIT_NULL; + fra.me.REG[0] = p0; + REGB0 = TAG_Bool(false); + /* ./metamodel//genericity.nit:251 */ + goto label1; + label1: while(0); + stack_frame_head = fra.me.prev; + return REGB0; }