static val_t once_value_19; /* Once value */
static val_t once_value_20; /* Once value */
static val_t once_value_21; /* Once value */
- static val_t once_value_24; /* Once value */
+ static val_t once_value_22; /* Once value */
+ static val_t once_value_25; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 26;
+ fra.me.line = 28;
fra.me.meth = LOCATE_native_interface___frontier___MMSrcModule___compile_frontier;
fra.me.has_broke = 0;
fra.me.REG_size = 6;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[5] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:30 */
+ /* native_interface/frontier.nit:32 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:33 */
+ /* native_interface/frontier.nit:35 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
if (!once_value_3) {
fra.me.REG[2] = BOX_NativeString("#include <nit_common.h>\n");
} else fra.me.REG[2] = once_value_3;
fra.me.REG[2] = fra.me.REG[2];
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:34 */
+ /* native_interface/frontier.nit:36 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:36 */
+ /* native_interface/frontier.nit:38 */
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_6) {
fra.me.REG[2] = fra.me.REG[2];
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
- /* ./native_interface//frontier.nit:37 */
+ /* native_interface/frontier.nit:39 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
- /* ./native_interface//frontier.nit:38 */
+ /* native_interface/frontier.nit:40 */
fra.me.REG[4] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:41 */
+ /* native_interface/frontier.nit:43 */
REGB0 = TAG_Int(5);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_12) {
fra.me.REG[4] = fra.me.REG[4];
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
- /* ./native_interface//frontier.nit:42 */
+ /* native_interface/frontier.nit:44 */
REGB0 = CALL_standard___file___String___file_exists(fra.me.REG[2])(fra.me.REG[2]);
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:43 */
+ /* native_interface/frontier.nit:45 */
REGB0 = TAG_Int(5);
fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_15) {
fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
fra.me.REG[2] = fra.me.REG[4];
}
- /* ./native_interface//frontier.nit:45 */
+ /* native_interface/frontier.nit:47 */
REGB0 = CALL_standard___file___String___file_exists(fra.me.REG[2])(fra.me.REG[2]);
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:46 */
+ /* native_interface/frontier.nit:48 */
+ if (!once_value_18) {
+ fra.me.REG[4] = BOX_NativeString("..");
+ REGB0 = TAG_Int(2);
+ fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
+ once_value_18 = fra.me.REG[4];
+ register_static_object(&once_value_18);
+ } else fra.me.REG[4] = once_value_18;
+ fra.me.REG[4] = fra.me.REG[4];
+ fra.me.REG[2] = CALL_standard___file___String___join_path(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
+ fra.me.REG[2] = CALL_standard___file___String___simplify_path(fra.me.REG[2])(fra.me.REG[2]);
+ /* native_interface/frontier.nit:49 */
fra.me.REG[4] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_18) {
+ if (!once_value_19) {
fra.me.REG[5] = BOX_NativeString("#include \"");
REGB0 = TAG_Int(10);
fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
- once_value_18 = fra.me.REG[5];
- register_static_object(&once_value_18);
- } else fra.me.REG[5] = once_value_18;
+ once_value_19 = fra.me.REG[5];
+ register_static_object(&once_value_19);
+ } else fra.me.REG[5] = once_value_19;
fra.me.REG[5] = fra.me.REG[5];
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
- fra.me.REG[5] = CALL_native_interface___frontier___String___path_from_parent(fra.me.REG[2])(fra.me.REG[2]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
- if (!once_value_19) {
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
+ if (!once_value_20) {
fra.me.REG[5] = BOX_NativeString("\"\n");
REGB0 = TAG_Int(2);
fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
- once_value_19 = fra.me.REG[5];
- register_static_object(&once_value_19);
- } else fra.me.REG[5] = once_value_19;
+ once_value_20 = fra.me.REG[5];
+ register_static_object(&once_value_20);
+ } else fra.me.REG[5] = once_value_20;
fra.me.REG[5] = fra.me.REG[5];
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:47 */
+ /* native_interface/frontier.nit:50 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_20) {
+ if (!once_value_21) {
fra.me.REG[5] = BOX_NativeString("#include \"");
REGB0 = TAG_Int(10);
fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
- once_value_20 = fra.me.REG[5];
- register_static_object(&once_value_20);
- } else fra.me.REG[5] = once_value_20;
+ once_value_21 = fra.me.REG[5];
+ register_static_object(&once_value_21);
+ } else fra.me.REG[5] = once_value_21;
fra.me.REG[5] = fra.me.REG[5];
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
- fra.me.REG[2] = CALL_native_interface___frontier___String___path_from_parent(fra.me.REG[2])(fra.me.REG[2]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
- if (!once_value_21) {
+ if (!once_value_22) {
fra.me.REG[2] = BOX_NativeString("\"\n");
REGB0 = TAG_Int(2);
fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
- once_value_21 = fra.me.REG[2];
- register_static_object(&once_value_21);
- } else fra.me.REG[2] = once_value_21;
+ once_value_22 = fra.me.REG[2];
+ register_static_object(&once_value_22);
+ } else fra.me.REG[2] = once_value_22;
fra.me.REG[2] = fra.me.REG[2];
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
}
- /* ./native_interface//frontier.nit:50 */
+ /* native_interface/frontier.nit:53 */
fra.me.REG[4] = CALL_metamodel___abstractmetamodel___MMModule___local_classes(fra.me.REG[0])(fra.me.REG[0]);
- CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[4])(fra.me.REG[4], (&(fra.me)), ((fun_t)OC_native_interface___frontier___MMSrcModule___compile_frontier_22));
- /* ./native_interface//frontier.nit:69 */
+ CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[4])(fra.me.REG[4], (&(fra.me)), ((fun_t)OC_native_interface___frontier___MMSrcModule___compile_frontier_23));
+ /* native_interface/frontier.nit:72 */
fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
- if (!once_value_24) {
+ if (!once_value_25) {
fra.me.REG[0] = BOX_NativeString("#endif\n");
REGB0 = TAG_Int(7);
fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_24 = fra.me.REG[0];
- register_static_object(&once_value_24);
- } else fra.me.REG[0] = once_value_24;
+ once_value_25 = fra.me.REG[0];
+ register_static_object(&once_value_25);
+ } else fra.me.REG[0] = once_value_25;
fra.me.REG[0] = fra.me.REG[0];
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return;
}
- void OC_native_interface___frontier___MMSrcModule___compile_frontier_22(struct stack_frame_t *closctx, val_t p0, struct stack_frame_t *closctx_param, fun_t clos_fun0){
+ void OC_native_interface___frontier___MMSrcModule___compile_frontier_23(struct stack_frame_t *closctx, val_t p0, struct stack_frame_t *closctx_param, fun_t clos_fun0){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
val_t REGB1;
fra.me.meth = LOCATE_native_interface___frontier___MMSrcModule___compile_frontier;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.closure_ctx = closctx_param;
fra.me.closure_funs = CREG;
fra.me.REG[0] = p0;
CREG[0] = clos_fun0;
- /* ./native_interface//frontier.nit:52 */
+ /* native_interface/frontier.nit:55 */
fra.me.REG[1] = CALL_metamodel___abstractmetamodel___MMLocalClass___local_local_properties(fra.me.REG[0])(fra.me.REG[0]);
- CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[1])(fra.me.REG[1], closctx, ((fun_t)OC_native_interface___frontier___MMSrcModule___compile_frontier_23));
- /* ./native_interface//frontier.nit:63 */
+ CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[1])(fra.me.REG[1], closctx, ((fun_t)OC_native_interface___frontier___MMSrcModule___compile_frontier_24));
+ /* native_interface/frontier.nit:66 */
fra.me.REG[1] = CALL_metamodel___abstractmetamodel___MMLocalClass___global(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[1] = CALL_metamodel___abstractmetamodel___MMGlobalClass___intro(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[1],fra.me.REG[0]));
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:64 */
+ /* native_interface/frontier.nit:67 */
fra.me.REG[1] = CALL_metamodel___abstractmetamodel___MMLocalClass___global(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = CALL_metamodel___abstractmetamodel___MMGlobalClass___is_extern(fra.me.REG[1])(fra.me.REG[1]);
} else {
- /* ./native_interface//frontier.nit:63 */
+ /* native_interface/frontier.nit:66 */
REGB1 = TAG_Bool(false);
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:65 */
+ /* native_interface/frontier.nit:68 */
CALL_native_interface___frontier___MMLocalClass___compile_defaut_extern_type(fra.me.REG[0])(fra.me.REG[0], closctx->REG[1]);
}
stack_frame_head = fra.me.prev;
return;
}
- void OC_native_interface___frontier___MMSrcModule___compile_frontier_23(struct stack_frame_t *closctx, val_t p0, struct stack_frame_t *closctx_param, fun_t clos_fun0){
+ void OC_native_interface___frontier___MMSrcModule___compile_frontier_24(struct stack_frame_t *closctx, val_t p0, struct stack_frame_t *closctx_param, fun_t clos_fun0){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
val_t REGB1;
fra.me.meth = LOCATE_native_interface___frontier___MMSrcModule___compile_frontier;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.closure_ctx = closctx_param;
fra.me.closure_funs = CREG;
fra.me.REG[0] = p0;
CREG[0] = clos_fun0;
- /* ./native_interface//frontier.nit:55 */
+ /* native_interface/frontier.nit:58 */
fra.me.REG[1] = CALL_metamodel___abstractmetamodel___MMLocalProperty___mmmodule(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[1],closctx->REG[0]));
if (UNTAG_Bool(REGB0)) {
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:56 */
+ /* native_interface/frontier.nit:59 */
REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[0], COLOR_syntax___syntax_base___MMSrcMethod, ID_syntax___syntax_base___MMSrcMethod)) /*cast MMSrcMethod*/;
} else {
- /* ./native_interface//frontier.nit:55 */
+ /* native_interface/frontier.nit:58 */
REGB1 = TAG_Bool(false);
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:56 */
+ /* native_interface/frontier.nit:59 */
REGB0 = CALL_metamodel___abstractmetamodel___MMMethod___is_extern(fra.me.REG[0])(fra.me.REG[0]);
} else {
- /* ./native_interface//frontier.nit:55 */
+ /* native_interface/frontier.nit:58 */
REGB1 = TAG_Bool(false);
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:57 */
+ /* native_interface/frontier.nit:60 */
CALL_native_interface___frontier___MMSrcMethod___compile_extern_to_frontier(fra.me.REG[0])(fra.me.REG[0], closctx->REG[1]);
}
stack_frame_head = fra.me.prev;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 74;
+ fra.me.line = 77;
fra.me.meth = LOCATE_native_interface___frontier___MMSrcMethod___compile_extern_to_frontier;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:77 */
+ /* native_interface/frontier.nit:80 */
fra.me.REG[2] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:78 */
+ /* native_interface/frontier.nit:81 */
fra.me.REG[2] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 78);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 81);
}
CALL_native_interface___frontier___MMSignature___compile_frontier(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
}
- /* ./native_interface//frontier.nit:81 */
+ /* native_interface/frontier.nit:84 */
fra.me.REG[2] = CALL_metamodel___abstractmetamodel___MMMethod___explicit_imports(fra.me.REG[0])(fra.me.REG[0]);
CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[2])(fra.me.REG[2], (&(fra.me)), ((fun_t)OC_native_interface___frontier___MMSrcMethod___compile_extern_to_frontier_1));
- /* ./native_interface//frontier.nit:90 */
+ /* native_interface/frontier.nit:93 */
fra.me.REG[2] = CALL_metamodel___static_type___MMMethod___explicit_casts(fra.me.REG[0])(fra.me.REG[0]);
CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[2])(fra.me.REG[2], (&(fra.me)), ((fun_t)OC_native_interface___frontier___MMSrcMethod___compile_extern_to_frontier_2));
- /* ./native_interface//frontier.nit:98 */
+ /* native_interface/frontier.nit:101 */
REGB0 = CALL_metamodel___abstractmetamodel___MMLocalProperty___need_super(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:99 */
+ /* native_interface/frontier.nit:102 */
CALL_native_interface___frontier___MMSrcMethod___compile_super_to_frontier(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
}
- /* ./native_interface//frontier.nit:103 */
+ /* native_interface/frontier.nit:106 */
CALL_native_interface___frontier___MMSrcMethod___compile_out_to_frontier(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
stack_frame_head = fra.me.prev;
return;
fra.me.meth = LOCATE_native_interface___frontier___MMSrcMethod___compile_extern_to_frontier;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.closure_ctx = closctx_param;
fra.me.closure_funs = CREG;
fra.me.REG[0] = p0;
CREG[0] = clos_fun0;
- /* ./native_interface//frontier.nit:83 */
+ /* native_interface/frontier.nit:86 */
fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___friendlys(closctx->REG[1])(closctx->REG[1]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
- /* ./native_interface//frontier.nit:86 */
+ /* native_interface/frontier.nit:89 */
fra.me.REG[0] = CALL_metamodel___static_type___MMExplicitImport___signature(fra.me.REG[0])(fra.me.REG[0]);
CALL_native_interface___frontier___MMSignature___compile_frontier(fra.me.REG[0])(fra.me.REG[0], closctx->REG[1]);
stack_frame_head = fra.me.prev;
fra.me.meth = LOCATE_native_interface___frontier___MMSrcMethod___compile_extern_to_frontier;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.closure_funs = CREG;
fra.me.REG[0] = p0;
CREG[0] = clos_fun0;
- /* ./native_interface//frontier.nit:91 */
+ /* native_interface/frontier.nit:94 */
fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___casts(closctx->REG[1])(closctx->REG[1]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
- /* ./native_interface//frontier.nit:93 */
+ /* native_interface/frontier.nit:96 */
fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___types(closctx->REG[1])(closctx->REG[1]);
fra.me.REG[2] = CALL_metamodel___static_type___MMImportedCast___from(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[2] = CALL_metamodel___type_formal___MMType___direct_type(fra.me.REG[2])(fra.me.REG[2]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:94 */
+ /* native_interface/frontier.nit:97 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___types(closctx->REG[1])(closctx->REG[1]);
fra.me.REG[0] = CALL_metamodel___static_type___MMImportedCast___to(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[0] = CALL_metamodel___type_formal___MMType___direct_type(fra.me.REG[0])(fra.me.REG[0]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return;
struct {struct stack_frame_t me; val_t MORE_REG[10];} fra;
val_t REGB0;
val_t REGB1;
+ val_t REGB2;
val_t tmp;
static val_t once_value_1; /* Once value */
static val_t once_value_2; /* Once value */
static val_t once_value_26; /* Once value */
static val_t once_value_27; /* Once value */
static val_t once_value_28; /* Once value */
- static val_t once_value_29; /* Once value */
+ static val_t once_value_29; /* Once value */
static val_t once_value_30; /* Once value */
static val_t once_value_31; /* Once value */
static val_t once_value_32; /* Once value */
static val_t once_value_33; /* Once value */
- static val_t once_value_34; /* Once value */
+ static val_t once_value_34; /* Once value */
static val_t once_value_35; /* Once value */
static val_t once_value_36; /* Once value */
static val_t once_value_37; /* Once value */
static val_t once_value_38; /* Once value */
- static val_t once_value_39; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 106;
+ fra.me.line = 109;
fra.me.meth = LOCATE_native_interface___frontier___MMSrcMethod___compile_super_to_frontier;
fra.me.has_broke = 0;
fra.me.REG_size = 11;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[10] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:113 */
+ /* native_interface/frontier.nit:116 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:114 */
+ /* native_interface/frontier.nit:117 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:117 */
+ /* native_interface/frontier.nit:120 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:118 */
+ /* native_interface/frontier.nit:121 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(5);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:119 */
+ /* native_interface/frontier.nit:122 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
if (!once_value_10) {
fra.me.REG[3] = BOX_NativeString("#endif\n");
} else fra.me.REG[3] = once_value_10;
fra.me.REG[3] = fra.me.REG[3];
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:122 */
+ /* native_interface/frontier.nit:125 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:123 */
+ /* native_interface/frontier.nit:126 */
fra.me.REG[2] = CALL_native_interface___ni_metamodel___MMMethod___friendly_super_csignature(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[2] = NEW_FunctionCompiler_native_interface___ni_tools___FunctionCompiler___init(fra.me.REG[2]);
- /* ./native_interface//frontier.nit:126 */
+ /* native_interface/frontier.nit:129 */
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___init();
- /* ./native_interface//frontier.nit:129 */
+ /* native_interface/frontier.nit:132 */
if (!once_value_13) {
fra.me.REG[4] = BOX_NativeString("recv___nit");
REGB0 = TAG_Int(10);
register_static_object(&once_value_13);
} else fra.me.REG[4] = once_value_13;
fra.me.REG[4] = fra.me.REG[4];
- /* ./native_interface//frontier.nit:130 */
+ /* native_interface/frontier.nit:133 */
fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[2])(fra.me.REG[2]);
REGB0 = TAG_Int(3);
fra.me.REG[6] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
fra.me.REG[6] = CALL_standard___string___Object___to_s(fra.me.REG[6])(fra.me.REG[6]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
- /* ./native_interface//frontier.nit:131 */
+ /* native_interface/frontier.nit:134 */
fra.me.REG[6] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[2])(fra.me.REG[2]);
REGB0 = TAG_Int(3);
fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
fra.me.REG[7] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[7]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 131);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 134);
}
fra.me.REG[7] = CALL_metamodel___static_type___MMSignature___recv(fra.me.REG[7])(fra.me.REG[7]);
if (!once_value_17) {
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[8]);
fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[5]);
- /* ./native_interface//frontier.nit:132 */
+ /* native_interface/frontier.nit:135 */
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- /* ./native_interface//frontier.nit:135 */
+ /* native_interface/frontier.nit:138 */
fra.me.REG[5] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 135);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 138);
}
fra.me.REG[5] = CALL_metamodel___static_type___MMSignature___params(fra.me.REG[5])(fra.me.REG[5]);
- /* ./../lib/standard//collection//array.nit:234 */
+ /* ../lib/standard/collection/array.nit:269 */
REGB0 = TAG_Int(0);
- /* ./../lib/standard//collection//array.nit:235 */
+ /* ../lib/standard/collection/array.nit:270 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[5])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 235);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 270);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[5]);
- /* ./../lib/standard//collection//array.nit:236 */
+ /* ../lib/standard/collection/array.nit:271 */
fra.me.REG[6] = ATTR_standard___collection___array___Array____items(fra.me.REG[5]);
- /* ./../lib/standard//collection//array.nit:237 */
+ /* ../lib/standard/collection/array.nit:272 */
while(1) {
- /* ./../lib/standard//collection//array.nit:23 */
+ /* ../lib/standard/collection/array.nit:24 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[5])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 23);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[5]);
- /* ./../lib/standard//kernel.nit:215 */
+ REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB2)) {
+ } else {
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
+ }
+ /* ../lib/standard/kernel.nit:232 */
REGB1 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//array.nit:237 */
+ /* ../lib/standard/collection/array.nit:272 */
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//array.nit:238 */
+ /* ../lib/standard/collection/array.nit:273 */
REGB1 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 238);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 273);
}
- /* ./../lib/standard//collection//array.nit:654 */
+ /* ../lib/standard/collection/array.nit:718 */
fra.me.REG[8] = ((Nit_NativeArray)fra.me.REG[6])->val[UNTAG_Int(REGB0)];
- /* ./native_interface//frontier.nit:136 */
+ /* native_interface/frontier.nit:139 */
REGB1 = TAG_Int(3);
fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
if (!once_value_19) {
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
fra.me.REG[4] = fra.me.REG[7];
- /* ./native_interface//frontier.nit:137 */
+ /* native_interface/frontier.nit:140 */
fra.me.REG[7] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[2])(fra.me.REG[2]);
REGB1 = TAG_Int(3);
fra.me.REG[9] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[9])(fra.me.REG[9], fra.me.REG[10]);
fra.me.REG[9] = CALL_standard___string___Object___to_s(fra.me.REG[9])(fra.me.REG[9]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
- /* ./native_interface//frontier.nit:138 */
+ /* native_interface/frontier.nit:141 */
fra.me.REG[9] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[2])(fra.me.REG[2]);
REGB1 = TAG_Int(3);
fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]);
fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[9])(fra.me.REG[9], fra.me.REG[7]);
- /* ./native_interface//frontier.nit:139 */
+ /* native_interface/frontier.nit:142 */
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- /* ./../lib/standard//collection//array.nit:239 */
+ /* ../lib/standard/collection/array.nit:274 */
REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:218 */
+ /* ../lib/standard/kernel.nit:235 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//array.nit:239 */
+ /* ../lib/standard/collection/array.nit:274 */
REGB0 = REGB1;
} else {
- /* ./../lib/standard//collection//array.nit:237 */
+ /* ../lib/standard/collection/array.nit:272 */
goto label25;
}
}
label25: while(0);
- /* ./native_interface//frontier.nit:143 */
+ /* native_interface/frontier.nit:146 */
fra.me.REG[4] = NIT_NULL;
- /* ./native_interface//frontier.nit:145 */
+ /* native_interface/frontier.nit:148 */
fra.me.REG[6] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 145);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 148);
}
fra.me.REG[6] = CALL_metamodel___static_type___MMSignature___return_type(fra.me.REG[6])(fra.me.REG[6]);
REGB0 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:146 */
+ /* native_interface/frontier.nit:149 */
fra.me.REG[6] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 146);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 149);
}
fra.me.REG[6] = CALL_metamodel___static_type___MMSignature___return_type(fra.me.REG[6])(fra.me.REG[6]);
fra.me.REG[4] = fra.me.REG[6];
}
- /* ./native_interface//frontier.nit:149 */
+ /* native_interface/frontier.nit:152 */
fra.me.REG[6] = NEW_Buffer_standard___string___Buffer___init();
- /* ./native_interface//frontier.nit:150 */
+ /* native_interface/frontier.nit:153 */
REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:151 */
- fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[2])(fra.me.REG[2]);
- REGB0 = TAG_Int(3);
- fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ /* native_interface/frontier.nit:154 */
if (!once_value_26) {
- fra.me.REG[9] = BOX_NativeString("");
- REGB0 = TAG_Int(0);
- fra.me.REG[9] = NEW_String_standard___string___String___with_native(fra.me.REG[9], REGB0);
- once_value_26 = fra.me.REG[9];
+ fra.me.REG[5] = BOX_NativeString("return___nitni");
+ REGB0 = TAG_Int(14);
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_26 = fra.me.REG[5];
register_static_object(&once_value_26);
- } else fra.me.REG[9] = once_value_26;
- fra.me.REG[9] = fra.me.REG[9];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
- REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
- if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 151);
+ } else fra.me.REG[5] = once_value_26;
+ fra.me.REG[5] = fra.me.REG[5];
+ REGB0 = TAG_Bool(true);
+ REGB1 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
+ if (UNTAG_Bool(REGB1)) {
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 154);
}
- fra.me.REG[9] = CALL_native_interface___ni_metamodel___MMType___friendly_extern_name(fra.me.REG[4])(fra.me.REG[4]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
+ CALL_native_interface___frontier___MMType___compile_new_local_ref(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5], fra.me.REG[2], REGB0);
+ /* native_interface/frontier.nit:155 */
+ fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[2])(fra.me.REG[2]);
if (!once_value_27) {
- fra.me.REG[9] = BOX_NativeString(" return___nitni;\n");
- REGB0 = TAG_Int(17);
- fra.me.REG[9] = NEW_String_standard___string___String___with_native(fra.me.REG[9], REGB0);
- once_value_27 = fra.me.REG[9];
+ fra.me.REG[7] = BOX_NativeString("val_t return___nit;\n");
+ REGB0 = TAG_Int(20);
+ fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
+ once_value_27 = fra.me.REG[7];
register_static_object(&once_value_27);
- } else fra.me.REG[9] = once_value_27;
- fra.me.REG[9] = fra.me.REG[9];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
- fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
+ } else fra.me.REG[7] = once_value_27;
+ fra.me.REG[7] = fra.me.REG[7];
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[7]);
- /* ./native_interface//frontier.nit:152 */
- fra.me.REG[7] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[2])(fra.me.REG[2]);
+ /* native_interface/frontier.nit:156 */
if (!once_value_28) {
- fra.me.REG[5] = BOX_NativeString("val_t return___nit;\n");
- REGB0 = TAG_Int(20);
- fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
- once_value_28 = fra.me.REG[5];
- register_static_object(&once_value_28);
- } else fra.me.REG[5] = once_value_28;
- fra.me.REG[5] = fra.me.REG[5];
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[5]);
- /* ./native_interface//frontier.nit:153 */
- if (!once_value_29) {
- fra.me.REG[5] = BOX_NativeString("return___nit = ");
+ fra.me.REG[7] = BOX_NativeString("return___nit = ");
REGB0 = TAG_Int(15);
- fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
- once_value_29 = fra.me.REG[5];
- register_static_object(&once_value_29);
- } else fra.me.REG[5] = once_value_29;
- fra.me.REG[5] = fra.me.REG[5];
- CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[5]);
+ fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
+ once_value_28 = fra.me.REG[7];
+ register_static_object(&once_value_28);
+ } else fra.me.REG[7] = once_value_28;
+ fra.me.REG[7] = fra.me.REG[7];
+ CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
}
- /* ./native_interface//frontier.nit:156 */
+ /* native_interface/frontier.nit:159 */
REGB0 = TAG_Int(3);
- fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_30) {
- fra.me.REG[7] = BOX_NativeString("");
+ fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_29) {
+ fra.me.REG[5] = BOX_NativeString("");
REGB0 = TAG_Int(0);
- fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
- once_value_30 = fra.me.REG[7];
- register_static_object(&once_value_30);
- } else fra.me.REG[7] = once_value_30;
- fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[7]);
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_29 = fra.me.REG[5];
+ register_static_object(&once_value_29);
+ } else fra.me.REG[5] = once_value_29;
+ fra.me.REG[5] = fra.me.REG[5];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[5]);
fra.me.REG[0] = CALL_compiling___compiling_base___MMLocalProperty___super_meth_call(fra.me.REG[0])(fra.me.REG[0]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[0]);
- if (!once_value_31) {
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[0]);
+ if (!once_value_30) {
fra.me.REG[0] = BOX_NativeString("( recv___nit )");
REGB0 = TAG_Int(14);
fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
+ once_value_30 = fra.me.REG[0];
+ register_static_object(&once_value_30);
+ } else fra.me.REG[0] = once_value_30;
+ fra.me.REG[0] = fra.me.REG[0];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[0]);
+ fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
+ CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
+ /* native_interface/frontier.nit:161 */
+ REGB0 = TAG_Int(3);
+ fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_31) {
+ fra.me.REG[0] = BOX_NativeString("( ");
+ REGB0 = TAG_Int(2);
+ fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
once_value_31 = fra.me.REG[0];
register_static_object(&once_value_31);
} else fra.me.REG[0] = once_value_31;
fra.me.REG[0] = fra.me.REG[0];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[0]);
- fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
- CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[5]);
- /* ./native_interface//frontier.nit:158 */
- REGB0 = TAG_Int(3);
- fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[0]);
if (!once_value_32) {
- fra.me.REG[0] = BOX_NativeString("( ");
+ fra.me.REG[0] = BOX_NativeString(", ");
REGB0 = TAG_Int(2);
fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
once_value_32 = fra.me.REG[0];
register_static_object(&once_value_32);
} else fra.me.REG[0] = once_value_32;
fra.me.REG[0] = fra.me.REG[0];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[0]);
+ fra.me.REG[0] = CALL_standard___string___Collection___join(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[0]);
if (!once_value_33) {
- fra.me.REG[0] = BOX_NativeString(", ");
- REGB0 = TAG_Int(2);
+ fra.me.REG[0] = BOX_NativeString(" );\n");
+ REGB0 = TAG_Int(4);
fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
once_value_33 = fra.me.REG[0];
register_static_object(&once_value_33);
} else fra.me.REG[0] = once_value_33;
fra.me.REG[0] = fra.me.REG[0];
- fra.me.REG[0] = CALL_standard___string___Collection___join(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[0]);
- if (!once_value_34) {
- fra.me.REG[0] = BOX_NativeString(" );\n");
- REGB0 = TAG_Int(4);
- fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_34 = fra.me.REG[0];
- register_static_object(&once_value_34);
- } else fra.me.REG[0] = once_value_34;
- fra.me.REG[0] = fra.me.REG[0];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[0]);
- fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
- CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[5]);
- /* ./native_interface//frontier.nit:160 */
- fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[2])(fra.me.REG[2]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[0]);
+ fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
+ CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
+ /* native_interface/frontier.nit:163 */
+ fra.me.REG[7] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[2])(fra.me.REG[2]);
fra.me.REG[6] = CALL_standard___string___Object___to_s(fra.me.REG[6])(fra.me.REG[6]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
- /* ./native_interface//frontier.nit:163 */
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[6]);
+ /* native_interface/frontier.nit:166 */
REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:165 */
+ /* native_interface/frontier.nit:168 */
fra.me.REG[6] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[2])(fra.me.REG[2]);
REGB0 = TAG_Int(3);
- fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_35) {
+ fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_34) {
fra.me.REG[0] = BOX_NativeString("");
REGB0 = TAG_Int(0);
fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_35 = fra.me.REG[0];
- register_static_object(&once_value_35);
- } else fra.me.REG[0] = once_value_35;
+ once_value_34 = fra.me.REG[0];
+ register_static_object(&once_value_34);
+ } else fra.me.REG[0] = once_value_34;
fra.me.REG[0] = fra.me.REG[0];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[0]);
- if (!once_value_36) {
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[0]);
+ if (!once_value_35) {
fra.me.REG[0] = BOX_NativeString("return___nitni");
REGB0 = TAG_Int(14);
fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_36 = fra.me.REG[0];
- register_static_object(&once_value_36);
- } else fra.me.REG[0] = once_value_36;
+ once_value_35 = fra.me.REG[0];
+ register_static_object(&once_value_35);
+ } else fra.me.REG[0] = once_value_35;
fra.me.REG[0] = fra.me.REG[0];
- if (!once_value_37) {
+ if (!once_value_36) {
fra.me.REG[3] = BOX_NativeString("return___nit");
REGB0 = TAG_Int(12);
fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
- once_value_37 = fra.me.REG[3];
- register_static_object(&once_value_37);
- } else fra.me.REG[3] = once_value_37;
+ once_value_36 = fra.me.REG[3];
+ register_static_object(&once_value_36);
+ } else fra.me.REG[3] = once_value_36;
fra.me.REG[3] = fra.me.REG[3];
REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 165);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 168);
}
fra.me.REG[3] = CALL_native_interface___ni_metamodel___MMType___assign_to_friendly(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[0], fra.me.REG[3]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
- if (!once_value_38) {
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[3]);
+ if (!once_value_37) {
fra.me.REG[3] = BOX_NativeString(";\n");
REGB0 = TAG_Int(2);
fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
- once_value_38 = fra.me.REG[3];
- register_static_object(&once_value_38);
- } else fra.me.REG[3] = once_value_38;
+ once_value_37 = fra.me.REG[3];
+ register_static_object(&once_value_37);
+ } else fra.me.REG[3] = once_value_37;
fra.me.REG[3] = fra.me.REG[3];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
- fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[5]);
- /* ./native_interface//frontier.nit:166 */
- fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[2])(fra.me.REG[2]);
- if (!once_value_39) {
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[3]);
+ fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
+ /* native_interface/frontier.nit:169 */
+ fra.me.REG[7] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[2])(fra.me.REG[2]);
+ if (!once_value_38) {
fra.me.REG[6] = BOX_NativeString("return return___nitni;\n");
REGB0 = TAG_Int(23);
fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
- once_value_39 = fra.me.REG[6];
- register_static_object(&once_value_39);
- } else fra.me.REG[6] = once_value_39;
+ once_value_38 = fra.me.REG[6];
+ register_static_object(&once_value_38);
+ } else fra.me.REG[6] = once_value_38;
fra.me.REG[6] = fra.me.REG[6];
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[6]);
}
- /* ./native_interface//frontier.nit:169 */
+ /* native_interface/frontier.nit:172 */
fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[2] = CALL_native_interface___ni_tools___FunctionCompiler___to_writer(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___append(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
return;
}
void native_interface___frontier___MMSrcMethod___compile_out_to_frontier(val_t p0, val_t p1){
- struct {struct stack_frame_t me; val_t MORE_REG[10];} fra;
+ struct {struct stack_frame_t me; val_t MORE_REG[11];} fra;
val_t REGB0;
val_t REGB1;
+ val_t REGB2;
val_t tmp;
static val_t once_value_1; /* Once value */
static val_t once_value_2; /* Once value */
static val_t once_value_8; /* Once value */
static val_t once_value_9; /* Once value */
static val_t once_value_10; /* Once value */
- static val_t once_value_11; /* Once value */
- static val_t once_value_12; /* Once value */
- static val_t once_value_13; /* Once value */
+ static val_t once_value_11; /* Once value */
+ static val_t once_value_12; /* Once value */
+ static val_t once_value_13; /* Once value */
static val_t once_value_14; /* Once value */
- static val_t once_value_15; /* Once value */
- static val_t once_value_16; /* Once value */
- static val_t once_value_17; /* Once value */
- static val_t once_value_18; /* Once value */
- static val_t once_value_19; /* Once value */
- static val_t once_value_20; /* Once value */
- static val_t once_value_22; /* Once value */
+ static val_t once_value_16; /* Once value */
+ static val_t once_value_17; /* Once value */
+ static val_t once_value_18; /* Once value */
+ static val_t once_value_19; /* Once value */
+ static val_t once_value_20; /* Once value */
+ static val_t once_value_21; /* Once value */
+ static val_t once_value_22; /* Once value */
static val_t once_value_23; /* Once value */
static val_t once_value_24; /* Once value */
static val_t once_value_25; /* Once value */
- static val_t once_value_26; /* Once value */
+ static val_t once_value_26; /* Once value */
static val_t once_value_27; /* Once value */
- static val_t once_value_28; /* Once value */
- static val_t once_value_29; /* Once value */
- static val_t once_value_30; /* Once value */
- static val_t once_value_31; /* Once value */
- static val_t once_value_32; /* Once value */
- static val_t once_value_33; /* Once value */
- static val_t once_value_34; /* Once value */
+ static val_t once_value_28; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 172;
+ fra.me.line = 175;
fra.me.meth = LOCATE_native_interface___frontier___MMSrcMethod___compile_out_to_frontier;
fra.me.has_broke = 0;
- fra.me.REG_size = 11;
+ fra.me.REG_size = 12;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[8] = NIT_NULL;
fra.me.REG[9] = NIT_NULL;
fra.me.REG[10] = NIT_NULL;
+ fra.me.REG[11] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:178 */
- fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
+ /* native_interface/frontier.nit:175 */
+ fra.me.REG[2] = fra.me.REG[0];
+ /* native_interface/frontier.nit:181 */
+ fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
- fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_1) {
- fra.me.REG[4] = BOX_NativeString("\n/* out/indirect function for ");
+ fra.me.REG[5] = BOX_NativeString("\n/* out/indirect function for ");
REGB0 = TAG_Int(30);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
- once_value_1 = fra.me.REG[4];
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_1 = fra.me.REG[5];
register_static_object(&once_value_1);
- } else fra.me.REG[4] = once_value_1;
- fra.me.REG[4] = fra.me.REG[4];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- fra.me.REG[4] = CALL_metamodel___abstractmetamodel___MMLocalProperty___full_name(fra.me.REG[0])(fra.me.REG[0]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
+ } else fra.me.REG[5] = once_value_1;
+ fra.me.REG[5] = fra.me.REG[5];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
+ fra.me.REG[5] = CALL_metamodel___abstractmetamodel___MMLocalProperty___full_name(fra.me.REG[2])(fra.me.REG[2]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
if (!once_value_2) {
- fra.me.REG[4] = BOX_NativeString(" */\n");
+ fra.me.REG[5] = BOX_NativeString(" */\n");
REGB0 = TAG_Int(4);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
- once_value_2 = fra.me.REG[4];
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_2 = fra.me.REG[5];
register_static_object(&once_value_2);
- } else fra.me.REG[4] = once_value_2;
- fra.me.REG[4] = fra.me.REG[4];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:179 */
- fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
+ } else fra.me.REG[5] = once_value_2;
+ fra.me.REG[5] = fra.me.REG[5];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
+ fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
+ /* native_interface/frontier.nit:182 */
+ fra.me.REG[4] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
- fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_3) {
- fra.me.REG[4] = BOX_NativeString("");
+ fra.me.REG[5] = BOX_NativeString("");
REGB0 = TAG_Int(0);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
- once_value_3 = fra.me.REG[4];
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_3 = fra.me.REG[5];
register_static_object(&once_value_3);
- } else fra.me.REG[4] = once_value_3;
- fra.me.REG[4] = fra.me.REG[4];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
- fra.me.REG[4] = CALL_native_interface___ni_metamodel___MMMethod___out_csignature(fra.me.REG[0])(fra.me.REG[0]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
+ } else fra.me.REG[5] = once_value_3;
+ fra.me.REG[5] = fra.me.REG[5];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
+ fra.me.REG[5] = CALL_native_interface___ni_metamodel___MMMethod___out_csignature(fra.me.REG[2])(fra.me.REG[2]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
if (!once_value_4) {
- fra.me.REG[4] = BOX_NativeString(";\n");
+ fra.me.REG[5] = BOX_NativeString(";\n");
REGB0 = TAG_Int(2);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
- once_value_4 = fra.me.REG[4];
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_4 = fra.me.REG[5];
register_static_object(&once_value_4);
- } else fra.me.REG[4] = once_value_4;
- fra.me.REG[4] = fra.me.REG[4];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
- fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:182 */
- fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
+ } else fra.me.REG[5] = once_value_4;
+ fra.me.REG[5] = fra.me.REG[5];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
+ fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
+ /* native_interface/frontier.nit:185 */
+ fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
- fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_5) {
- fra.me.REG[4] = BOX_NativeString("/* out/indirect function for ");
+ fra.me.REG[5] = BOX_NativeString("/* out/indirect function for ");
REGB0 = TAG_Int(29);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
- once_value_5 = fra.me.REG[4];
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_5 = fra.me.REG[5];
register_static_object(&once_value_5);
- } else fra.me.REG[4] = once_value_5;
- fra.me.REG[4] = fra.me.REG[4];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- fra.me.REG[4] = CALL_metamodel___abstractmetamodel___MMLocalProperty___full_name(fra.me.REG[0])(fra.me.REG[0]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
+ } else fra.me.REG[5] = once_value_5;
+ fra.me.REG[5] = fra.me.REG[5];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
+ fra.me.REG[5] = CALL_metamodel___abstractmetamodel___MMLocalProperty___full_name(fra.me.REG[2])(fra.me.REG[2]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
if (!once_value_6) {
- fra.me.REG[4] = BOX_NativeString(" */\n");
+ fra.me.REG[5] = BOX_NativeString(" */\n");
REGB0 = TAG_Int(4);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
- once_value_6 = fra.me.REG[4];
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_6 = fra.me.REG[5];
register_static_object(&once_value_6);
- } else fra.me.REG[4] = once_value_6;
- fra.me.REG[4] = fra.me.REG[4];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:183 */
- fra.me.REG[3] = CALL_native_interface___ni_metamodel___MMMethod___out_csignature(fra.me.REG[0])(fra.me.REG[0]);
- fra.me.REG[3] = NEW_FunctionCompiler_native_interface___ni_tools___FunctionCompiler___init(fra.me.REG[3]);
- /* ./native_interface//frontier.nit:186 */
- fra.me.REG[2] = NEW_List_standard___collection___list___List___init();
- /* ./native_interface//frontier.nit:188 */
- REGB0 = CALL_syntax___syntax_base___MMLocalProperty___is_init(fra.me.REG[0])(fra.me.REG[0]);
+ } else fra.me.REG[5] = once_value_6;
+ fra.me.REG[5] = fra.me.REG[5];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
+ fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
+ /* native_interface/frontier.nit:186 */
+ fra.me.REG[4] = CALL_native_interface___ni_metamodel___MMMethod___out_csignature(fra.me.REG[2])(fra.me.REG[2]);
+ fra.me.REG[4] = NEW_FunctionCompiler_native_interface___ni_tools___FunctionCompiler___init(fra.me.REG[4]);
+ /* native_interface/frontier.nit:189 */
+ fra.me.REG[3] = NEW_List_standard___collection___list___List___init();
+ /* native_interface/frontier.nit:191 */
+ REGB0 = CALL_syntax___syntax_base___MMLocalProperty___is_init(fra.me.REG[2])(fra.me.REG[2]);
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:189 */
+ /* native_interface/frontier.nit:192 */
if (!once_value_7) {
- fra.me.REG[4] = BOX_NativeString("recv___nitni");
+ fra.me.REG[5] = BOX_NativeString("recv___nitni");
REGB0 = TAG_Int(12);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
- once_value_7 = fra.me.REG[4];
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_7 = fra.me.REG[5];
register_static_object(&once_value_7);
- } else fra.me.REG[4] = once_value_7;
- fra.me.REG[4] = fra.me.REG[4];
- /* ./native_interface//frontier.nit:190 */
- fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[3])(fra.me.REG[3]);
- REGB0 = TAG_Int(5);
- fra.me.REG[6] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ } else fra.me.REG[5] = once_value_7;
+ fra.me.REG[5] = fra.me.REG[5];
+ /* native_interface/frontier.nit:193 */
+ fra.me.REG[6] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[2])(fra.me.REG[2]);
+ REGB0 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 193);
+ }
+ fra.me.REG[6] = CALL_metamodel___static_type___MMSignature___recv(fra.me.REG[6])(fra.me.REG[6]);
+ REGB0 = TAG_Bool(true);
+ CALL_native_interface___frontier___MMType___compile_new_local_ref(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[5], fra.me.REG[4], REGB0);
+ /* native_interface/frontier.nit:194 */
+ fra.me.REG[6] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[4])(fra.me.REG[4]);
+ REGB0 = TAG_Int(3);
+ fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_8) {
- fra.me.REG[7] = BOX_NativeString("");
+ fra.me.REG[8] = BOX_NativeString("");
REGB0 = TAG_Int(0);
- fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
- once_value_8 = fra.me.REG[7];
+ fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
+ once_value_8 = fra.me.REG[8];
register_static_object(&once_value_8);
- } else fra.me.REG[7] = once_value_8;
- fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
- fra.me.REG[7] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[0])(fra.me.REG[0]);
- REGB0 = TAG_Bool(fra.me.REG[7]==NIT_NULL);
+ } else fra.me.REG[8] = once_value_8;
+ fra.me.REG[8] = fra.me.REG[8];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]);
+ fra.me.REG[8] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[2])(fra.me.REG[2]);
+ REGB0 = TAG_Bool(fra.me.REG[8]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 190);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 194);
}
- fra.me.REG[7] = CALL_metamodel___static_type___MMSignature___recv(fra.me.REG[7])(fra.me.REG[7]);
- fra.me.REG[7] = CALL_native_interface___ni_metamodel___MMType___friendly_extern_name(fra.me.REG[7])(fra.me.REG[7]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
+ fra.me.REG[8] = CALL_metamodel___static_type___MMSignature___recv(fra.me.REG[8])(fra.me.REG[8]);
if (!once_value_9) {
- fra.me.REG[7] = BOX_NativeString(" ");
- REGB0 = TAG_Int(1);
- fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
- once_value_9 = fra.me.REG[7];
+ fra.me.REG[9] = BOX_NativeString("recv");
+ REGB0 = TAG_Int(4);
+ fra.me.REG[9] = NEW_String_standard___string___String___with_native(fra.me.REG[9], REGB0);
+ once_value_9 = fra.me.REG[9];
register_static_object(&once_value_9);
- } else fra.me.REG[7] = once_value_9;
- fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[4]);
+ } else fra.me.REG[9] = once_value_9;
+ fra.me.REG[9] = fra.me.REG[9];
+ fra.me.REG[9] = CALL_native_interface___ni_metamodel___MMType___assign_to_friendly(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[5], fra.me.REG[9]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
if (!once_value_10) {
- fra.me.REG[7] = BOX_NativeString(";\n");
+ fra.me.REG[9] = BOX_NativeString(";\n");
REGB0 = TAG_Int(2);
- fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
- once_value_10 = fra.me.REG[7];
+ fra.me.REG[9] = NEW_String_standard___string___String___with_native(fra.me.REG[9], REGB0);
+ once_value_10 = fra.me.REG[9];
register_static_object(&once_value_10);
- } else fra.me.REG[7] = once_value_10;
- fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
- fra.me.REG[6] = CALL_standard___string___Object___to_s(fra.me.REG[6])(fra.me.REG[6]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
- /* ./native_interface//frontier.nit:191 */
- fra.me.REG[6] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[3])(fra.me.REG[3]);
- REGB0 = TAG_Int(3);
- fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_11) {
- fra.me.REG[7] = BOX_NativeString("");
- REGB0 = TAG_Int(0);
- fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
- once_value_11 = fra.me.REG[7];
- register_static_object(&once_value_11);
- } else fra.me.REG[7] = once_value_11;
- fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[7]);
- fra.me.REG[7] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[0])(fra.me.REG[0]);
- REGB0 = TAG_Bool(fra.me.REG[7]==NIT_NULL);
- if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 191);
- }
- fra.me.REG[7] = CALL_metamodel___static_type___MMSignature___recv(fra.me.REG[7])(fra.me.REG[7]);
- if (!once_value_12) {
- fra.me.REG[8] = BOX_NativeString("recv");
- REGB0 = TAG_Int(4);
- fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
- once_value_12 = fra.me.REG[8];
- register_static_object(&once_value_12);
- } else fra.me.REG[8] = once_value_12;
- fra.me.REG[8] = fra.me.REG[8];
- fra.me.REG[8] = CALL_native_interface___ni_metamodel___MMType___assign_to_friendly(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[4], fra.me.REG[8]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[8]);
- if (!once_value_13) {
- fra.me.REG[8] = BOX_NativeString(";\n");
- REGB0 = TAG_Int(2);
- fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
- once_value_13 = fra.me.REG[8];
- register_static_object(&once_value_13);
- } else fra.me.REG[8] = once_value_13;
- fra.me.REG[8] = fra.me.REG[8];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[8]);
- fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[5]);
- /* ./native_interface//frontier.nit:192 */
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
+ } else fra.me.REG[9] = once_value_10;
+ fra.me.REG[9] = fra.me.REG[9];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
+ fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
+ /* native_interface/frontier.nit:195 */
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
}
- /* ./native_interface//frontier.nit:195 */
- fra.me.REG[4] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[0])(fra.me.REG[0]);
- REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
+ /* native_interface/frontier.nit:198 */
+ fra.me.REG[5] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[2])(fra.me.REG[2]);
+ REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 195);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 198);
}
- fra.me.REG[4] = CALL_metamodel___static_type___MMSignature___params(fra.me.REG[4])(fra.me.REG[4]);
- /* ./../lib/standard//collection//array.nit:234 */
+ fra.me.REG[5] = CALL_metamodel___static_type___MMSignature___params(fra.me.REG[5])(fra.me.REG[5]);
+ /* ../lib/standard/collection/array.nit:269 */
REGB0 = TAG_Int(0);
- /* ./../lib/standard//collection//array.nit:235 */
- REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL);
+ /* ../lib/standard/collection/array.nit:270 */
+ REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[5])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 235);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 270);
}
- REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4]);
- /* ./../lib/standard//collection//array.nit:236 */
- fra.me.REG[5] = ATTR_standard___collection___array___Array____items(fra.me.REG[4]);
- /* ./../lib/standard//collection//array.nit:237 */
+ REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[5]);
+ /* ../lib/standard/collection/array.nit:271 */
+ fra.me.REG[7] = ATTR_standard___collection___array___Array____items(fra.me.REG[5]);
+ /* ../lib/standard/collection/array.nit:272 */
while(1) {
- /* ./../lib/standard//collection//array.nit:23 */
- REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL);
+ /* ../lib/standard/collection/array.nit:24 */
+ REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[5])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 23);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
+ }
+ REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[5]);
+ REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB2)) {
+ } else {
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4]);
- /* ./../lib/standard//kernel.nit:215 */
+ /* ../lib/standard/kernel.nit:232 */
REGB1 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//array.nit:237 */
+ /* ../lib/standard/collection/array.nit:272 */
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//array.nit:238 */
- REGB1 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
+ /* ../lib/standard/collection/array.nit:273 */
+ REGB1 = TAG_Bool(fra.me.REG[7]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 238);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 273);
}
- /* ./../lib/standard//collection//array.nit:654 */
- fra.me.REG[6] = ((Nit_NativeArray)fra.me.REG[5])->val[UNTAG_Int(REGB0)];
- /* ./native_interface//frontier.nit:196 */
+ /* ../lib/standard/collection/array.nit:718 */
+ fra.me.REG[6] = ((Nit_NativeArray)fra.me.REG[7])->val[UNTAG_Int(REGB0)];
+ /* native_interface/frontier.nit:199 */
REGB1 = TAG_Int(3);
- fra.me.REG[8] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
- if (!once_value_14) {
- fra.me.REG[7] = BOX_NativeString("");
- REGB1 = TAG_Int(0);
- fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB1);
- once_value_14 = fra.me.REG[7];
- register_static_object(&once_value_14);
- } else fra.me.REG[7] = once_value_14;
- fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[7]);
- fra.me.REG[7] = CALL_metamodel___static_type___MMParam___name(fra.me.REG[6])(fra.me.REG[6]);
- fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[7]);
- if (!once_value_15) {
- fra.me.REG[7] = BOX_NativeString("___nitni");
- REGB1 = TAG_Int(8);
- fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB1);
- once_value_15 = fra.me.REG[7];
- register_static_object(&once_value_15);
- } else fra.me.REG[7] = once_value_15;
- fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[7]);
- fra.me.REG[8] = CALL_standard___string___Object___to_s(fra.me.REG[8])(fra.me.REG[8]);
- /* ./native_interface//frontier.nit:197 */
- fra.me.REG[7] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[3])(fra.me.REG[3]);
- REGB1 = TAG_Int(5);
fra.me.REG[9] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
- if (!once_value_16) {
- fra.me.REG[10] = BOX_NativeString("");
+ if (!once_value_11) {
+ fra.me.REG[8] = BOX_NativeString("");
REGB1 = TAG_Int(0);
- fra.me.REG[10] = NEW_String_standard___string___String___with_native(fra.me.REG[10], REGB1);
- once_value_16 = fra.me.REG[10];
- register_static_object(&once_value_16);
- } else fra.me.REG[10] = once_value_16;
- fra.me.REG[10] = fra.me.REG[10];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[9])(fra.me.REG[9], fra.me.REG[10]);
- fra.me.REG[10] = CALL_metamodel___static_type___MMParam___mmtype(fra.me.REG[6])(fra.me.REG[6]);
- fra.me.REG[10] = CALL_native_interface___ni_metamodel___MMType___friendly_extern_name(fra.me.REG[10])(fra.me.REG[10]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[9])(fra.me.REG[9], fra.me.REG[10]);
- if (!once_value_17) {
- fra.me.REG[10] = BOX_NativeString(" ");
- REGB1 = TAG_Int(1);
- fra.me.REG[10] = NEW_String_standard___string___String___with_native(fra.me.REG[10], REGB1);
- once_value_17 = fra.me.REG[10];
- register_static_object(&once_value_17);
- } else fra.me.REG[10] = once_value_17;
- fra.me.REG[10] = fra.me.REG[10];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[9])(fra.me.REG[9], fra.me.REG[10]);
+ fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB1);
+ once_value_11 = fra.me.REG[8];
+ register_static_object(&once_value_11);
+ } else fra.me.REG[8] = once_value_11;
+ fra.me.REG[8] = fra.me.REG[8];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[9])(fra.me.REG[9], fra.me.REG[8]);
+ fra.me.REG[8] = CALL_metamodel___static_type___MMParam___name(fra.me.REG[6])(fra.me.REG[6]);
+ fra.me.REG[8] = CALL_standard___string___Object___to_s(fra.me.REG[8])(fra.me.REG[8]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[9])(fra.me.REG[9], fra.me.REG[8]);
+ if (!once_value_12) {
+ fra.me.REG[8] = BOX_NativeString("___nitni");
+ REGB1 = TAG_Int(8);
+ fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB1);
+ once_value_12 = fra.me.REG[8];
+ register_static_object(&once_value_12);
+ } else fra.me.REG[8] = once_value_12;
+ fra.me.REG[8] = fra.me.REG[8];
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[9])(fra.me.REG[9], fra.me.REG[8]);
- if (!once_value_18) {
- fra.me.REG[10] = BOX_NativeString(";\n");
- REGB1 = TAG_Int(2);
- fra.me.REG[10] = NEW_String_standard___string___String___with_native(fra.me.REG[10], REGB1);
- once_value_18 = fra.me.REG[10];
- register_static_object(&once_value_18);
- } else fra.me.REG[10] = once_value_18;
- fra.me.REG[10] = fra.me.REG[10];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[9])(fra.me.REG[9], fra.me.REG[10]);
fra.me.REG[9] = CALL_standard___string___Object___to_s(fra.me.REG[9])(fra.me.REG[9]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
- /* ./native_interface//frontier.nit:198 */
- fra.me.REG[9] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[3])(fra.me.REG[3]);
+ /* native_interface/frontier.nit:200 */
+ fra.me.REG[8] = CALL_metamodel___static_type___MMParam___mmtype(fra.me.REG[6])(fra.me.REG[6]);
+ REGB1 = TAG_Bool(true);
+ CALL_native_interface___frontier___MMType___compile_new_local_ref(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[9], fra.me.REG[4], REGB1);
+ /* native_interface/frontier.nit:201 */
+ fra.me.REG[8] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[4])(fra.me.REG[4]);
REGB1 = TAG_Int(3);
- fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
- if (!once_value_19) {
- fra.me.REG[10] = BOX_NativeString("");
+ fra.me.REG[10] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
+ if (!once_value_13) {
+ fra.me.REG[11] = BOX_NativeString("");
REGB1 = TAG_Int(0);
- fra.me.REG[10] = NEW_String_standard___string___String___with_native(fra.me.REG[10], REGB1);
- once_value_19 = fra.me.REG[10];
- register_static_object(&once_value_19);
- } else fra.me.REG[10] = once_value_19;
- fra.me.REG[10] = fra.me.REG[10];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[10]);
- fra.me.REG[10] = CALL_metamodel___static_type___MMParam___mmtype(fra.me.REG[6])(fra.me.REG[6]);
+ fra.me.REG[11] = NEW_String_standard___string___String___with_native(fra.me.REG[11], REGB1);
+ once_value_13 = fra.me.REG[11];
+ register_static_object(&once_value_13);
+ } else fra.me.REG[11] = once_value_13;
+ fra.me.REG[11] = fra.me.REG[11];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[11]);
+ fra.me.REG[11] = CALL_metamodel___static_type___MMParam___mmtype(fra.me.REG[6])(fra.me.REG[6]);
fra.me.REG[6] = CALL_metamodel___static_type___MMParam___name(fra.me.REG[6])(fra.me.REG[6]);
fra.me.REG[6] = CALL_standard___string___Object___to_s(fra.me.REG[6])(fra.me.REG[6]);
- fra.me.REG[6] = CALL_native_interface___ni_metamodel___MMType___assign_to_friendly(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[8], fra.me.REG[6]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[6]);
- if (!once_value_20) {
+ fra.me.REG[6] = CALL_native_interface___ni_metamodel___MMType___assign_to_friendly(fra.me.REG[11])(fra.me.REG[11], fra.me.REG[9], fra.me.REG[6]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[6]);
+ if (!once_value_14) {
fra.me.REG[6] = BOX_NativeString(";\n");
REGB1 = TAG_Int(2);
fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB1);
- once_value_20 = fra.me.REG[6];
- register_static_object(&once_value_20);
- } else fra.me.REG[6] = once_value_20;
+ once_value_14 = fra.me.REG[6];
+ register_static_object(&once_value_14);
+ } else fra.me.REG[6] = once_value_14;
fra.me.REG[6] = fra.me.REG[6];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[6]);
- fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[9])(fra.me.REG[9], fra.me.REG[7]);
- /* ./native_interface//frontier.nit:199 */
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[8]);
- /* ./../lib/standard//collection//array.nit:239 */
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[6]);
+ fra.me.REG[10] = CALL_standard___string___Object___to_s(fra.me.REG[10])(fra.me.REG[10]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[10]);
+ /* native_interface/frontier.nit:202 */
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[9]);
+ /* ../lib/standard/collection/array.nit:274 */
REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:218 */
+ /* ../lib/standard/kernel.nit:235 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//array.nit:239 */
+ /* ../lib/standard/collection/array.nit:274 */
REGB0 = REGB1;
} else {
- /* ./../lib/standard//collection//array.nit:237 */
- goto label21;
+ /* ../lib/standard/collection/array.nit:272 */
+ goto label15;
}
}
- label21: while(0);
- /* ./native_interface//frontier.nit:203 */
- fra.me.REG[5] = NIT_NULL;
- /* ./native_interface//frontier.nit:205 */
- fra.me.REG[4] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[0])(fra.me.REG[0]);
- REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
+ label15: while(0);
+ /* native_interface/frontier.nit:206 */
+ fra.me.REG[7] = NIT_NULL;
+ /* native_interface/frontier.nit:208 */
+ fra.me.REG[5] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[2])(fra.me.REG[2]);
+ REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 205);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 208);
}
- fra.me.REG[4] = CALL_metamodel___static_type___MMSignature___return_type(fra.me.REG[4])(fra.me.REG[4]);
- REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
+ fra.me.REG[5] = CALL_metamodel___static_type___MMSignature___return_type(fra.me.REG[5])(fra.me.REG[5]);
+ REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- REGB1 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
+ REGB1 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
REGB1 = TAG_Bool(false);
REGB0 = REGB1;
} else {
- REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[4])(fra.me.REG[4], NIT_NULL);
+ REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[5])(fra.me.REG[5], NIT_NULL);
REGB0 = REGB1;
}
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:206 */
- fra.me.REG[4] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[0])(fra.me.REG[0]);
- REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
+ /* native_interface/frontier.nit:209 */
+ fra.me.REG[5] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[2])(fra.me.REG[2]);
+ REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 206);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 209);
}
- fra.me.REG[4] = CALL_metamodel___static_type___MMSignature___return_type(fra.me.REG[4])(fra.me.REG[4]);
- fra.me.REG[5] = fra.me.REG[4];
+ fra.me.REG[5] = CALL_metamodel___static_type___MMSignature___return_type(fra.me.REG[5])(fra.me.REG[5]);
+ fra.me.REG[7] = fra.me.REG[5];
} else {
- /* ./native_interface//frontier.nit:207 */
- REGB0 = CALL_syntax___syntax_base___MMLocalProperty___is_init(fra.me.REG[0])(fra.me.REG[0]);
+ /* native_interface/frontier.nit:210 */
+ REGB0 = CALL_syntax___syntax_base___MMLocalProperty___is_init(fra.me.REG[2])(fra.me.REG[2]);
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:208 */
- fra.me.REG[4] = CALL_metamodel___abstractmetamodel___MMLocalProperty___local_class(fra.me.REG[0])(fra.me.REG[0]);
- fra.me.REG[4] = CALL_metamodel___static_type___MMLocalClass___get_type(fra.me.REG[4])(fra.me.REG[4]);
- fra.me.REG[5] = fra.me.REG[4];
+ /* native_interface/frontier.nit:211 */
+ fra.me.REG[5] = CALL_metamodel___abstractmetamodel___MMLocalProperty___local_class(fra.me.REG[2])(fra.me.REG[2]);
+ fra.me.REG[5] = CALL_metamodel___static_type___MMLocalClass___get_type(fra.me.REG[5])(fra.me.REG[5]);
+ fra.me.REG[7] = fra.me.REG[5];
}
}
- /* ./native_interface//frontier.nit:211 */
- fra.me.REG[4] = NEW_Buffer_standard___string___Buffer___init();
- /* ./native_interface//frontier.nit:212 */
- REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
+ /* native_interface/frontier.nit:214 */
+ fra.me.REG[5] = NEW_Buffer_standard___string___Buffer___init();
+ /* native_interface/frontier.nit:215 */
+ REGB0 = TAG_Bool(fra.me.REG[7]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- REGB1 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
+ REGB1 = TAG_Bool(fra.me.REG[7]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
REGB1 = TAG_Bool(false);
REGB0 = REGB1;
} else {
- REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[5])(fra.me.REG[5], NIT_NULL);
+ REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[7])(fra.me.REG[7], NIT_NULL);
REGB0 = REGB1;
}
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:213 */
- fra.me.REG[8] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[3])(fra.me.REG[3]);
- REGB0 = TAG_Int(3);
- fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_22) {
- fra.me.REG[9] = BOX_NativeString("");
- REGB0 = TAG_Int(0);
+ /* native_interface/frontier.nit:217 */
+ if (!once_value_16) {
+ fra.me.REG[9] = BOX_NativeString("return___nitni");
+ REGB0 = TAG_Int(14);
fra.me.REG[9] = NEW_String_standard___string___String___with_native(fra.me.REG[9], REGB0);
- once_value_22 = fra.me.REG[9];
- register_static_object(&once_value_22);
- } else fra.me.REG[9] = once_value_22;
+ once_value_16 = fra.me.REG[9];
+ register_static_object(&once_value_16);
+ } else fra.me.REG[9] = once_value_16;
fra.me.REG[9] = fra.me.REG[9];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
- REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
- if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 213);
+ REGB0 = TAG_Bool(false);
+ REGB1 = TAG_Bool(fra.me.REG[7]==NIT_NULL);
+ if (UNTAG_Bool(REGB1)) {
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 217);
}
- fra.me.REG[9] = CALL_native_interface___ni_metamodel___MMType___friendly_extern_name(fra.me.REG[5])(fra.me.REG[5]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
- if (!once_value_23) {
- fra.me.REG[9] = BOX_NativeString(" return___nitni;\n");
- REGB0 = TAG_Int(17);
- fra.me.REG[9] = NEW_String_standard___string___String___with_native(fra.me.REG[9], REGB0);
- once_value_23 = fra.me.REG[9];
- register_static_object(&once_value_23);
- } else fra.me.REG[9] = once_value_23;
- fra.me.REG[9] = fra.me.REG[9];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
- fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[7]);
- /* ./native_interface//frontier.nit:214 */
- fra.me.REG[7] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[3])(fra.me.REG[3]);
- if (!once_value_24) {
- fra.me.REG[8] = BOX_NativeString("val_t return___nit;\n");
+ CALL_native_interface___frontier___MMType___compile_new_local_ref(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9], fra.me.REG[4], REGB0);
+ /* native_interface/frontier.nit:218 */
+ fra.me.REG[9] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[4])(fra.me.REG[4]);
+ if (!once_value_17) {
+ fra.me.REG[10] = BOX_NativeString("val_t return___nit;\n");
REGB0 = TAG_Int(20);
- fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
- once_value_24 = fra.me.REG[8];
- register_static_object(&once_value_24);
- } else fra.me.REG[8] = once_value_24;
- fra.me.REG[8] = fra.me.REG[8];
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]);
- /* ./native_interface//frontier.nit:215 */
- if (!once_value_25) {
- fra.me.REG[8] = BOX_NativeString("return___nitni = ");
+ fra.me.REG[10] = NEW_String_standard___string___String___with_native(fra.me.REG[10], REGB0);
+ once_value_17 = fra.me.REG[10];
+ register_static_object(&once_value_17);
+ } else fra.me.REG[10] = once_value_17;
+ fra.me.REG[10] = fra.me.REG[10];
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[9])(fra.me.REG[9], fra.me.REG[10]);
+ /* native_interface/frontier.nit:219 */
+ if (!once_value_18) {
+ fra.me.REG[10] = BOX_NativeString("return___nitni = ");
REGB0 = TAG_Int(17);
- fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
- once_value_25 = fra.me.REG[8];
- register_static_object(&once_value_25);
- } else fra.me.REG[8] = once_value_25;
- fra.me.REG[8] = fra.me.REG[8];
- CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[8]);
+ fra.me.REG[10] = NEW_String_standard___string___String___with_native(fra.me.REG[10], REGB0);
+ once_value_18 = fra.me.REG[10];
+ register_static_object(&once_value_18);
+ } else fra.me.REG[10] = once_value_18;
+ fra.me.REG[10] = fra.me.REG[10];
+ CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[10]);
}
- /* ./native_interface//frontier.nit:218 */
+ /* native_interface/frontier.nit:222 */
REGB0 = TAG_Int(5);
- fra.me.REG[8] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_26) {
- fra.me.REG[7] = BOX_NativeString("");
+ fra.me.REG[10] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_19) {
+ fra.me.REG[9] = BOX_NativeString("");
REGB0 = TAG_Int(0);
- fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
- once_value_26 = fra.me.REG[7];
- register_static_object(&once_value_26);
- } else fra.me.REG[7] = once_value_26;
- fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[7]);
- fra.me.REG[0] = CALL_metamodel___abstractmetamodel___MMMethod___extern_name(fra.me.REG[0])(fra.me.REG[0]);
- REGB0 = TAG_Bool((fra.me.REG[0]!=NIT_NULL) && VAL_ISA(fra.me.REG[0], COLOR_standard___string___String, ID_standard___string___String)) /*cast String*/;
+ fra.me.REG[9] = NEW_String_standard___string___String___with_native(fra.me.REG[9], REGB0);
+ once_value_19 = fra.me.REG[9];
+ register_static_object(&once_value_19);
+ } else fra.me.REG[9] = once_value_19;
+ fra.me.REG[9] = fra.me.REG[9];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[9]);
+ fra.me.REG[2] = CALL_metamodel___abstractmetamodel___MMMethod___extern_name(fra.me.REG[2])(fra.me.REG[2]);
+ REGB0 = TAG_Bool((fra.me.REG[2]!=NIT_NULL) && VAL_ISA(fra.me.REG[2], COLOR_standard___string___String, ID_standard___string___String)) /*cast String*/;
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Cast failed", NULL, LOCATE_native_interface___frontier, 218);
+ nit_abort("Cast failed", NULL, LOCATE_native_interface___frontier, 222);
}
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[0]);
- if (!once_value_27) {
- fra.me.REG[0] = BOX_NativeString("( ");
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[2]);
+ if (!once_value_20) {
+ fra.me.REG[2] = BOX_NativeString("( ");
REGB0 = TAG_Int(2);
- fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_27 = fra.me.REG[0];
- register_static_object(&once_value_27);
- } else fra.me.REG[0] = once_value_27;
- fra.me.REG[0] = fra.me.REG[0];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[0]);
- if (!once_value_28) {
- fra.me.REG[0] = BOX_NativeString(", ");
+ fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
+ once_value_20 = fra.me.REG[2];
+ register_static_object(&once_value_20);
+ } else fra.me.REG[2] = once_value_20;
+ fra.me.REG[2] = fra.me.REG[2];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[2]);
+ if (!once_value_21) {
+ fra.me.REG[2] = BOX_NativeString(", ");
REGB0 = TAG_Int(2);
- fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_28 = fra.me.REG[0];
- register_static_object(&once_value_28);
- } else fra.me.REG[0] = once_value_28;
- fra.me.REG[0] = fra.me.REG[0];
- fra.me.REG[0] = CALL_standard___string___Collection___join(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[0]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[0]);
- if (!once_value_29) {
- fra.me.REG[0] = BOX_NativeString(" );\n");
+ fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
+ once_value_21 = fra.me.REG[2];
+ register_static_object(&once_value_21);
+ } else fra.me.REG[2] = once_value_21;
+ fra.me.REG[2] = fra.me.REG[2];
+ fra.me.REG[2] = CALL_standard___string___Collection___join(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[2]);
+ if (!once_value_22) {
+ fra.me.REG[2] = BOX_NativeString(" );\n");
REGB0 = TAG_Int(4);
- fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_29 = fra.me.REG[0];
- register_static_object(&once_value_29);
- } else fra.me.REG[0] = once_value_29;
- fra.me.REG[0] = fra.me.REG[0];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[0]);
- fra.me.REG[8] = CALL_standard___string___Object___to_s(fra.me.REG[8])(fra.me.REG[8]);
- CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[8]);
- /* ./native_interface//frontier.nit:220 */
- fra.me.REG[8] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[3])(fra.me.REG[3]);
- fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[4]);
- /* ./native_interface//frontier.nit:223 */
- REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
+ fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
+ once_value_22 = fra.me.REG[2];
+ register_static_object(&once_value_22);
+ } else fra.me.REG[2] = once_value_22;
+ fra.me.REG[2] = fra.me.REG[2];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[2]);
+ fra.me.REG[10] = CALL_standard___string___Object___to_s(fra.me.REG[10])(fra.me.REG[10]);
+ CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[10]);
+ /* native_interface/frontier.nit:224 */
+ fra.me.REG[10] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[4])(fra.me.REG[4]);
+ fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[5]);
+ /* native_interface/frontier.nit:226 */
+ REGB0 = TAG_Bool(fra.me.REG[7]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- REGB1 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
+ REGB1 = TAG_Bool(fra.me.REG[7]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
REGB1 = TAG_Bool(false);
REGB0 = REGB1;
} else {
- REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[5])(fra.me.REG[5], NIT_NULL);
+ REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[7])(fra.me.REG[7], NIT_NULL);
REGB0 = REGB1;
}
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:224 */
- fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[3])(fra.me.REG[3]);
+ /* native_interface/frontier.nit:227 */
+ fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[4])(fra.me.REG[4]);
REGB0 = TAG_Int(3);
- fra.me.REG[8] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_30) {
- fra.me.REG[0] = BOX_NativeString("");
+ fra.me.REG[10] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_23) {
+ fra.me.REG[2] = BOX_NativeString("");
REGB0 = TAG_Int(0);
- fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_30 = fra.me.REG[0];
- register_static_object(&once_value_30);
- } else fra.me.REG[0] = once_value_30;
- fra.me.REG[0] = fra.me.REG[0];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[0]);
- if (!once_value_31) {
- fra.me.REG[0] = BOX_NativeString("return___nit");
+ fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
+ once_value_23 = fra.me.REG[2];
+ register_static_object(&once_value_23);
+ } else fra.me.REG[2] = once_value_23;
+ fra.me.REG[2] = fra.me.REG[2];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[2]);
+ if (!once_value_24) {
+ fra.me.REG[2] = BOX_NativeString("return___nit");
REGB0 = TAG_Int(12);
- fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_31 = fra.me.REG[0];
- register_static_object(&once_value_31);
- } else fra.me.REG[0] = once_value_31;
- fra.me.REG[0] = fra.me.REG[0];
- if (!once_value_32) {
- fra.me.REG[2] = BOX_NativeString("return___nitni");
- REGB0 = TAG_Int(14);
fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
- once_value_32 = fra.me.REG[2];
- register_static_object(&once_value_32);
- } else fra.me.REG[2] = once_value_32;
+ once_value_24 = fra.me.REG[2];
+ register_static_object(&once_value_24);
+ } else fra.me.REG[2] = once_value_24;
fra.me.REG[2] = fra.me.REG[2];
- REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
+ if (!once_value_25) {
+ fra.me.REG[3] = BOX_NativeString("return___nitni");
+ REGB0 = TAG_Int(14);
+ fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
+ once_value_25 = fra.me.REG[3];
+ register_static_object(&once_value_25);
+ } else fra.me.REG[3] = once_value_25;
+ fra.me.REG[3] = fra.me.REG[3];
+ REGB0 = TAG_Bool(fra.me.REG[7]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 224);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 227);
}
- fra.me.REG[2] = CALL_native_interface___ni_metamodel___MMType___assign_from_friendly(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[0], fra.me.REG[2]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[2]);
- if (!once_value_33) {
- fra.me.REG[2] = BOX_NativeString(";\n");
+ fra.me.REG[3] = CALL_native_interface___ni_metamodel___MMType___assign_from_friendly(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[2], fra.me.REG[3]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[3]);
+ if (!once_value_26) {
+ fra.me.REG[3] = BOX_NativeString(";\n");
REGB0 = TAG_Int(2);
- fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
- once_value_33 = fra.me.REG[2];
- register_static_object(&once_value_33);
- } else fra.me.REG[2] = once_value_33;
- fra.me.REG[2] = fra.me.REG[2];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[2]);
- fra.me.REG[8] = CALL_standard___string___Object___to_s(fra.me.REG[8])(fra.me.REG[8]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[8]);
- /* ./native_interface//frontier.nit:225 */
- fra.me.REG[8] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[3])(fra.me.REG[3]);
- if (!once_value_34) {
- fra.me.REG[4] = BOX_NativeString("return return___nit;\n");
+ fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
+ once_value_26 = fra.me.REG[3];
+ register_static_object(&once_value_26);
+ } else fra.me.REG[3] = once_value_26;
+ fra.me.REG[3] = fra.me.REG[3];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[3]);
+ fra.me.REG[10] = CALL_standard___string___Object___to_s(fra.me.REG[10])(fra.me.REG[10]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[10]);
+ }
+ /* native_interface/frontier.nit:230 */
+ fra.me.REG[10] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[4])(fra.me.REG[4]);
+ if (!once_value_27) {
+ fra.me.REG[5] = BOX_NativeString("nitni_local_ref_clean( );\n");
+ REGB0 = TAG_Int(27);
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_27 = fra.me.REG[5];
+ register_static_object(&once_value_27);
+ } else fra.me.REG[5] = once_value_27;
+ fra.me.REG[5] = fra.me.REG[5];
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[10])(fra.me.REG[10], fra.me.REG[5]);
+ /* native_interface/frontier.nit:233 */
+ REGB0 = TAG_Bool(fra.me.REG[7]==NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ REGB1 = TAG_Bool(fra.me.REG[7]==NIT_NULL);
+ if (UNTAG_Bool(REGB1)) {
+ REGB1 = TAG_Bool(false);
+ REGB0 = REGB1;
+ } else {
+ REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[7])(fra.me.REG[7], NIT_NULL);
+ REGB0 = REGB1;
+ }
+ }
+ REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
+ if (UNTAG_Bool(REGB0)) {
+ /* native_interface/frontier.nit:234 */
+ fra.me.REG[7] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[4])(fra.me.REG[4]);
+ if (!once_value_28) {
+ fra.me.REG[5] = BOX_NativeString("return return___nit;\n");
REGB0 = TAG_Int(21);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
- once_value_34 = fra.me.REG[4];
- register_static_object(&once_value_34);
- } else fra.me.REG[4] = once_value_34;
- fra.me.REG[4] = fra.me.REG[4];
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[4]);
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_28 = fra.me.REG[5];
+ register_static_object(&once_value_28);
+ } else fra.me.REG[5] = once_value_28;
+ fra.me.REG[5] = fra.me.REG[5];
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[5]);
}
- /* ./native_interface//frontier.nit:228 */
+ /* native_interface/frontier.nit:237 */
fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
- fra.me.REG[3] = CALL_native_interface___ni_tools___FunctionCompiler___to_writer(fra.me.REG[3])(fra.me.REG[3]);
- CALL_compiling___compiling_writer___Writer___append(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
+ fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___to_writer(fra.me.REG[4])(fra.me.REG[4]);
+ CALL_compiling___compiling_writer___Writer___append(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[4]);
stack_frame_head = fra.me.prev;
return;
}
static val_t once_value_5; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 234;
+ fra.me.line = 243;
fra.me.meth = LOCATE_native_interface___frontier___MMLocalClass___compile_defaut_extern_type;
fra.me.has_broke = 0;
fra.me.REG_size = 5;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[4] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:238 */
+ /* native_interface/frontier.nit:247 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:239 */
+ /* native_interface/frontier.nit:248 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[0]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:240 */
+ /* native_interface/frontier.nit:249 */
fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
if (!once_value_5) {
fra.me.REG[2] = BOX_NativeString("#endif\n\n");
struct {struct stack_frame_t me; val_t MORE_REG[5];} 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_native_interface___frontier;
- fra.me.line = 245;
+ fra.me.line = 254;
fra.me.meth = LOCATE_native_interface___frontier___MMSignature___compile_frontier;
fra.me.has_broke = 0;
fra.me.REG_size = 6;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[5] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:248 */
+ /* native_interface/frontier.nit:257 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___types(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[3] = CALL_metamodel___static_type___MMSignature___recv(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[3] = CALL_metamodel___type_formal___MMType___direct_type(fra.me.REG[3])(fra.me.REG[3]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:251 */
+ /* native_interface/frontier.nit:260 */
fra.me.REG[3] = CALL_metamodel___static_type___MMSignature___params(fra.me.REG[0])(fra.me.REG[0]);
- /* ./../lib/standard//collection//array.nit:234 */
+ /* ../lib/standard/collection/array.nit:269 */
REGB0 = TAG_Int(0);
- /* ./../lib/standard//collection//array.nit:235 */
+ /* ../lib/standard/collection/array.nit:270 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[3])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 235);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 270);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[3]);
- /* ./../lib/standard//collection//array.nit:236 */
+ /* ../lib/standard/collection/array.nit:271 */
fra.me.REG[2] = ATTR_standard___collection___array___Array____items(fra.me.REG[3]);
- /* ./../lib/standard//collection//array.nit:237 */
+ /* ../lib/standard/collection/array.nit:272 */
while(1) {
- /* ./../lib/standard//collection//array.nit:23 */
+ /* ../lib/standard/collection/array.nit:24 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[3])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 23);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[3]);
- /* ./../lib/standard//kernel.nit:215 */
+ REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB2)) {
+ } else {
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
+ }
+ /* ../lib/standard/kernel.nit:232 */
REGB1 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//array.nit:237 */
+ /* ../lib/standard/collection/array.nit:272 */
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//array.nit:238 */
+ /* ../lib/standard/collection/array.nit:273 */
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 238);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 273);
}
- /* ./../lib/standard//collection//array.nit:654 */
+ /* ../lib/standard/collection/array.nit:718 */
fra.me.REG[4] = ((Nit_NativeArray)fra.me.REG[2])->val[UNTAG_Int(REGB0)];
- /* ./native_interface//frontier.nit:251 */
+ /* native_interface/frontier.nit:260 */
fra.me.REG[5] = CALL_native_interface___frontier___FrontierVisitor___types(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[4] = CALL_metamodel___static_type___MMParam___mmtype(fra.me.REG[4])(fra.me.REG[4]);
+ fra.me.REG[4] = CALL_metamodel___type_formal___MMType___direct_type(fra.me.REG[4])(fra.me.REG[4]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
- /* ./../lib/standard//collection//array.nit:239 */
+ /* ../lib/standard/collection/array.nit:274 */
REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:218 */
+ /* ../lib/standard/kernel.nit:235 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//array.nit:239 */
+ /* ../lib/standard/collection/array.nit:274 */
REGB0 = REGB1;
} else {
- /* ./../lib/standard//collection//array.nit:237 */
+ /* ../lib/standard/collection/array.nit:272 */
goto label1;
}
}
label1: while(0);
- /* ./native_interface//frontier.nit:254 */
+ /* native_interface/frontier.nit:263 */
fra.me.REG[0] = CALL_metamodel___static_type___MMSignature___return_type(fra.me.REG[0])(fra.me.REG[0]);
- /* ./native_interface//frontier.nit:255 */
+ /* native_interface/frontier.nit:264 */
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:256 */
+ /* native_interface/frontier.nit:265 */
fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___types(fra.me.REG[1])(fra.me.REG[1]);
+ REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 265);
+ }
+ fra.me.REG[0] = CALL_metamodel___type_formal___MMType___direct_type(fra.me.REG[0])(fra.me.REG[0]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
}
stack_frame_head = fra.me.prev;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 264;
+ fra.me.line = 273;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___header_top;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./native_interface//frontier.nit:264 */
+ /* native_interface/frontier.nit:273 */
REGB0 = TAG_Bool(ATTR_native_interface___frontier___FrontierVisitor_____atheader_top(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "@header_top", LOCATE_native_interface___frontier, 264);
+ nit_abort("Uninitialized attribute %s", "@header_top", LOCATE_native_interface___frontier, 273);
}
fra.me.REG[0] = ATTR_native_interface___frontier___FrontierVisitor_____atheader_top(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 264;
+ fra.me.line = 273;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___header_top__eq;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:264 */
+ /* native_interface/frontier.nit:273 */
ATTR_native_interface___frontier___FrontierVisitor_____atheader_top(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 267;
+ fra.me.line = 276;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___header;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./native_interface//frontier.nit:267 */
+ /* native_interface/frontier.nit:276 */
REGB0 = TAG_Bool(ATTR_native_interface___frontier___FrontierVisitor_____atheader(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "@header", LOCATE_native_interface___frontier, 267);
+ nit_abort("Uninitialized attribute %s", "@header", LOCATE_native_interface___frontier, 276);
}
fra.me.REG[0] = ATTR_native_interface___frontier___FrontierVisitor_____atheader(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 267;
+ fra.me.line = 276;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___header__eq;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:267 */
+ /* native_interface/frontier.nit:276 */
ATTR_native_interface___frontier___FrontierVisitor_____atheader(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 270;
+ fra.me.line = 279;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___body;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./native_interface//frontier.nit:270 */
+ /* native_interface/frontier.nit:279 */
REGB0 = TAG_Bool(ATTR_native_interface___frontier___FrontierVisitor_____atbody(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "@body", LOCATE_native_interface___frontier, 270);
+ nit_abort("Uninitialized attribute %s", "@body", LOCATE_native_interface___frontier, 279);
}
fra.me.REG[0] = ATTR_native_interface___frontier___FrontierVisitor_____atbody(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 270;
+ fra.me.line = 279;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___body__eq;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:270 */
+ /* native_interface/frontier.nit:279 */
ATTR_native_interface___frontier___FrontierVisitor_____atbody(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 273;
+ fra.me.line = 282;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___friendlys;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./native_interface//frontier.nit:273 */
+ /* native_interface/frontier.nit:282 */
REGB0 = TAG_Bool(ATTR_native_interface___frontier___FrontierVisitor_____atfriendlys(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "@friendlys", LOCATE_native_interface___frontier, 273);
+ nit_abort("Uninitialized attribute %s", "@friendlys", LOCATE_native_interface___frontier, 282);
}
fra.me.REG[0] = ATTR_native_interface___frontier___FrontierVisitor_____atfriendlys(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 273;
+ fra.me.line = 282;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___friendlys__eq;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:273 */
+ /* native_interface/frontier.nit:282 */
ATTR_native_interface___frontier___FrontierVisitor_____atfriendlys(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 276;
+ fra.me.line = 285;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___types;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./native_interface//frontier.nit:276 */
+ /* native_interface/frontier.nit:285 */
REGB0 = TAG_Bool(ATTR_native_interface___frontier___FrontierVisitor_____attypes(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "@types", LOCATE_native_interface___frontier, 276);
+ nit_abort("Uninitialized attribute %s", "@types", LOCATE_native_interface___frontier, 285);
}
fra.me.REG[0] = ATTR_native_interface___frontier___FrontierVisitor_____attypes(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 276;
+ fra.me.line = 285;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___types__eq;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:276 */
+ /* native_interface/frontier.nit:285 */
ATTR_native_interface___frontier___FrontierVisitor_____attypes(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 279;
+ fra.me.line = 288;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___casts;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./native_interface//frontier.nit:279 */
+ /* native_interface/frontier.nit:288 */
REGB0 = TAG_Bool(ATTR_native_interface___frontier___FrontierVisitor_____atcasts(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "@casts", LOCATE_native_interface___frontier, 279);
+ nit_abort("Uninitialized attribute %s", "@casts", LOCATE_native_interface___frontier, 288);
}
fra.me.REG[0] = ATTR_native_interface___frontier___FrontierVisitor_____atcasts(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 279;
+ fra.me.line = 288;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___casts__eq;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:279 */
+ /* native_interface/frontier.nit:288 */
ATTR_native_interface___frontier___FrontierVisitor_____atcasts(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 282;
+ fra.me.line = 291;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___mmmodule;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./native_interface//frontier.nit:282 */
+ /* native_interface/frontier.nit:291 */
REGB0 = TAG_Bool(ATTR_native_interface___frontier___FrontierVisitor_____atmmmodule(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "@mmmodule", LOCATE_native_interface___frontier, 282);
+ nit_abort("Uninitialized attribute %s", "@mmmodule", LOCATE_native_interface___frontier, 291);
}
fra.me.REG[0] = ATTR_native_interface___frontier___FrontierVisitor_____atmmmodule(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 282;
+ fra.me.line = 291;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___mmmodule__eq;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:282 */
+ /* native_interface/frontier.nit:291 */
ATTR_native_interface___frontier___FrontierVisitor_____atmmmodule(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 284;
+ fra.me.line = 293;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___cprogram;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./native_interface//frontier.nit:284 */
+ /* native_interface/frontier.nit:293 */
REGB0 = TAG_Bool(ATTR_native_interface___frontier___FrontierVisitor_____atcprogram(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "@cprogram", LOCATE_native_interface___frontier, 284);
+ nit_abort("Uninitialized attribute %s", "@cprogram", LOCATE_native_interface___frontier, 293);
}
fra.me.REG[0] = ATTR_native_interface___frontier___FrontierVisitor_____atcprogram(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 284;
+ fra.me.line = 293;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___cprogram__eq;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:284 */
+ /* native_interface/frontier.nit:293 */
ATTR_native_interface___frontier___FrontierVisitor_____atcprogram(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 286;
+ fra.me.line = 295;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___compile_cached;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./native_interface//frontier.nit:289 */
+ /* native_interface/frontier.nit:298 */
fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___types(fra.me.REG[0])(fra.me.REG[0]);
CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[1])(fra.me.REG[1], (&(fra.me)), ((fun_t)OC_native_interface___frontier___FrontierVisitor___compile_cached_1));
- /* ./native_interface//frontier.nit:292 */
+ /* native_interface/frontier.nit:301 */
fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___friendlys(fra.me.REG[0])(fra.me.REG[0]);
CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[1])(fra.me.REG[1], (&(fra.me)), ((fun_t)OC_native_interface___frontier___FrontierVisitor___compile_cached_2));
- /* ./native_interface//frontier.nit:295 */
+ /* native_interface/frontier.nit:304 */
fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___casts(fra.me.REG[0])(fra.me.REG[0]);
CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[1])(fra.me.REG[1], (&(fra.me)), ((fun_t)OC_native_interface___frontier___FrontierVisitor___compile_cached_3));
stack_frame_head = fra.me.prev;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___compile_cached;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.closure_ctx = closctx_param;
fra.me.closure_funs = CREG;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___compile_cached;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.closure_ctx = closctx_param;
fra.me.closure_funs = CREG;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___compile_cached;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.closure_ctx = closctx_param;
fra.me.closure_funs = CREG;
static val_t once_value_4; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 298;
+ fra.me.line = 307;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___write_to_files;
fra.me.has_broke = 0;
fra.me.REG_size = 6;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[5] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:300 */
+ /* native_interface/frontier.nit:309 */
REGB0 = TAG_Int(3);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_1) {
fra.me.REG[3] = fra.me.REG[3];
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
- /* ./native_interface//frontier.nit:301 */
+ /* native_interface/frontier.nit:310 */
fra.me.REG[3] = NEW_OFStream_standard___file___OFStream___open(fra.me.REG[2]);
- /* ./native_interface//frontier.nit:302 */
+ /* native_interface/frontier.nit:311 */
fra.me.REG[4] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[0])(fra.me.REG[0]);
CALL_compiling___compiling_writer___Writer___write_to_stream(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:303 */
+ /* native_interface/frontier.nit:312 */
fra.me.REG[4] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[0])(fra.me.REG[0]);
CALL_compiling___compiling_writer___Writer___write_to_stream(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:304 */
+ /* native_interface/frontier.nit:313 */
CALL_standard___stream___IOS___close(fra.me.REG[3])(fra.me.REG[3]);
- /* ./native_interface//frontier.nit:306 */
+ /* native_interface/frontier.nit:315 */
REGB0 = TAG_Int(3);
fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_3) {
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[1]);
fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
fra.me.REG[2] = fra.me.REG[4];
- /* ./native_interface//frontier.nit:307 */
+ /* native_interface/frontier.nit:316 */
fra.me.REG[2] = NEW_OFStream_standard___file___OFStream___open(fra.me.REG[2]);
fra.me.REG[3] = fra.me.REG[2];
- /* ./native_interface//frontier.nit:308 */
+ /* native_interface/frontier.nit:317 */
fra.me.REG[0] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[0])(fra.me.REG[0]);
CALL_compiling___compiling_writer___Writer___write_to_stream(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:309 */
+ /* native_interface/frontier.nit:318 */
CALL_standard___stream___IOS___close(fra.me.REG[3])(fra.me.REG[3]);
stack_frame_head = fra.me.prev;
return;
fra.me.meth = LOCATE_native_interface___frontier___FrontierVisitor___init;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
init_table[itpos0] = 1;
return;
}
-val_t native_interface___frontier___String___path_from_parent(val_t p0){
- struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
- val_t REGB0;
- val_t REGB1;
- val_t REGB2;
- val_t tmp;
- static val_t once_value_2; /* Once value */
- static val_t once_value_3; /* Once value */
- fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
- fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 314;
- fra.me.meth = LOCATE_native_interface___frontier___String___path_from_parent;
- 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;
- /* ./native_interface//frontier.nit:318 */
- REGB0 = TAG_Int(0);
- REGB0 = CALL_standard___collection___abstract_collection___MapRead_____bra(fra.me.REG[0])(fra.me.REG[0], REGB0);
- REGB1 = TAG_Char('/');
- REGB2 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB1));
- if (UNTAG_Bool(REGB2)) {
- } else {
- /* ./../lib/standard//kernel.nit:350 */
- REGB1 = TAG_Bool((REGB0)==(REGB1));
- /* ./native_interface//frontier.nit:318 */
- REGB2 = REGB1;
- }
- if (UNTAG_Bool(REGB2)) {
- /* ./native_interface//frontier.nit:320 */
- fra.me.REG[1] = fra.me.REG[0];
- goto label1;
- } else {
- /* ./native_interface//frontier.nit:322 */
- REGB2 = TAG_Int(3);
- fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB2);
- if (!once_value_2) {
- fra.me.REG[3] = BOX_NativeString("../");
- REGB2 = TAG_Int(3);
- fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB2);
- once_value_2 = fra.me.REG[3];
- register_static_object(&once_value_2);
- } else fra.me.REG[3] = once_value_2;
- fra.me.REG[3] = fra.me.REG[3];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[0]);
- if (!once_value_3) {
- fra.me.REG[0] = BOX_NativeString("");
- REGB2 = TAG_Int(0);
- fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB2);
- 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] = fra.me.REG[0];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[0]);
- fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
- fra.me.REG[1] = fra.me.REG[2];
- goto label1;
- }
- label1: while(0);
- stack_frame_head = fra.me.prev;
- return fra.me.REG[1];
-}
void native_interface___frontier___MMImportedCast___compile_to_frontier(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[4];} fra;
val_t REGB0;
static val_t once_value_22; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 329;
+ fra.me.line = 323;
fra.me.meth = LOCATE_native_interface___frontier___MMImportedCast___compile_to_frontier;
fra.me.has_broke = 0;
fra.me.REG_size = 5;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[4] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:333 */
+ /* native_interface/frontier.nit:327 */
REGB0 = CALL_metamodel___static_type___MMImportedCast___is_about_nullable_only(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
REGB0 = CALL_metamodel___static_type___MMImportedCast___is_not_null_to_nullable(fra.me.REG[0])(fra.me.REG[0]);
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:334 */
+ /* native_interface/frontier.nit:328 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(5);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:335 */
+ /* native_interface/frontier.nit:329 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:337 */
+ /* native_interface/frontier.nit:331 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:338 */
+ /* native_interface/frontier.nit:332 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(5);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:339 */
+ /* native_interface/frontier.nit:333 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
if (!once_value_11) {
fra.me.REG[3] = BOX_NativeString("#endif\n");
} else fra.me.REG[3] = once_value_11;
fra.me.REG[3] = fra.me.REG[3];
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:341 */
+ /* native_interface/frontier.nit:335 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___mmmodule(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[3] = CALL_native_interface___frontier___MMImportedCast___compile_is(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:342 */
+ /* native_interface/frontier.nit:336 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[3] = CALL_native_interface___ni_tools___FunctionCompiler___to_writer(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___append(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
}
- /* ./native_interface//frontier.nit:346 */
+ /* native_interface/frontier.nit:340 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(5);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:347 */
+ /* native_interface/frontier.nit:341 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:349 */
+ /* native_interface/frontier.nit:343 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:350 */
+ /* native_interface/frontier.nit:344 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(5);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:351 */
+ /* native_interface/frontier.nit:345 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
if (!once_value_22) {
fra.me.REG[2] = BOX_NativeString("#endif\n");
} else fra.me.REG[2] = once_value_22;
fra.me.REG[2] = fra.me.REG[2];
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:353 */
+ /* native_interface/frontier.nit:347 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___mmmodule(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[2] = CALL_native_interface___frontier___MMImportedCast___compile_as(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:354 */
+ /* native_interface/frontier.nit:348 */
fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[2] = CALL_native_interface___ni_tools___FunctionCompiler___to_writer(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___append(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
static val_t once_value_8; /* Once value */
static val_t once_value_9; /* Once value */
static val_t once_value_10; /* Once value */
- static val_t once_value_11; /* Once value */
- static val_t once_value_12; /* Once value */
- static val_t once_value_13; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 357;
+ fra.me.line = 351;
fra.me.meth = LOCATE_native_interface___frontier___MMImportedCast___compile_as;
fra.me.has_broke = 0;
fra.me.REG_size = 8;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[7] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:361 */
+ /* native_interface/frontier.nit:355 */
fra.me.REG[1] = CALL_native_interface___ni_metamodel___MMImportedCast___as_local_csignature(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
fra.me.REG[1] = NEW_FunctionCompiler_native_interface___ni_tools___FunctionCompiler___init(fra.me.REG[1]);
- /* ./native_interface//frontier.nit:363 */
+ /* native_interface/frontier.nit:357 */
if (!once_value_1) {
fra.me.REG[2] = BOX_NativeString("out");
REGB0 = TAG_Int(3);
register_static_object(&once_value_1);
} else fra.me.REG[2] = once_value_1;
fra.me.REG[2] = fra.me.REG[2];
- /* ./native_interface//frontier.nit:364 */
+ /* native_interface/frontier.nit:358 */
if (!once_value_2) {
fra.me.REG[3] = BOX_NativeString("temp");
REGB0 = TAG_Int(4);
register_static_object(&once_value_2);
} else fra.me.REG[3] = once_value_2;
fra.me.REG[3] = fra.me.REG[3];
- /* ./native_interface//frontier.nit:366 */
+ /* native_interface/frontier.nit:360 */
fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
- /* ./native_interface//frontier.nit:367 */
- fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[1])(fra.me.REG[1]);
- REGB0 = TAG_Int(5);
+ /* native_interface/frontier.nit:361 */
+ fra.me.REG[5] = CALL_metamodel___static_type___MMImportedCast___to(fra.me.REG[0])(fra.me.REG[0]);
+ REGB0 = TAG_Bool(true);
+ CALL_native_interface___frontier___MMType___compile_new_local_ref(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[2], fra.me.REG[1], REGB0);
+ /* native_interface/frontier.nit:363 */
+ fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
+ REGB0 = TAG_Int(3);
fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_5) {
fra.me.REG[6] = BOX_NativeString("");
} else fra.me.REG[6] = once_value_5;
fra.me.REG[6] = fra.me.REG[6];
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[6]);
- fra.me.REG[6] = CALL_metamodel___static_type___MMImportedCast___to(fra.me.REG[0])(fra.me.REG[0]);
- fra.me.REG[6] = CALL_native_interface___ni_metamodel___MMType___friendly_extern_name(fra.me.REG[6])(fra.me.REG[6]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[6]);
- if (!once_value_6) {
- fra.me.REG[6] = BOX_NativeString(" ");
- REGB0 = TAG_Int(1);
- fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
- once_value_6 = fra.me.REG[6];
- register_static_object(&once_value_6);
- } else fra.me.REG[6] = once_value_6;
- fra.me.REG[6] = fra.me.REG[6];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[6]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
- if (!once_value_7) {
- fra.me.REG[6] = BOX_NativeString(";\n");
- REGB0 = TAG_Int(2);
- fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
- once_value_7 = fra.me.REG[6];
- register_static_object(&once_value_7);
- } else fra.me.REG[6] = once_value_7;
- fra.me.REG[6] = fra.me.REG[6];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[6]);
- fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
- /* ./native_interface//frontier.nit:369 */
- fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
- REGB0 = TAG_Int(3);
- fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_8) {
- fra.me.REG[6] = BOX_NativeString("");
- REGB0 = TAG_Int(0);
- fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
- once_value_8 = fra.me.REG[6];
- register_static_object(&once_value_8);
- } else fra.me.REG[6] = once_value_8;
- fra.me.REG[6] = fra.me.REG[6];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
fra.me.REG[6] = CALL_metamodel___static_type___MMImportedCast___from(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[7] = CALL_native_interface___ni_metamodel___MMImportedCast___in_name(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[7] = CALL_native_interface___ni_metamodel___MMType___assign_from_friendly(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[3], fra.me.REG[7]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[7]);
- if (!once_value_9) {
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[7]);
+ if (!once_value_6) {
fra.me.REG[7] = BOX_NativeString(";\n");
REGB0 = TAG_Int(2);
fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
- once_value_9 = fra.me.REG[7];
- register_static_object(&once_value_9);
- } else fra.me.REG[7] = once_value_9;
+ once_value_6 = fra.me.REG[7];
+ register_static_object(&once_value_6);
+ } else fra.me.REG[7] = once_value_6;
fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[7]);
- fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
- /* ./native_interface//frontier.nit:372 */
- fra.me.REG[5] = CALL_metamodel___static_type___MMImportedCast___to(fra.me.REG[0])(fra.me.REG[0]);
- REGB0 = CALL_metamodel___static_type___MMType___is_nullable(fra.me.REG[5])(fra.me.REG[5]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[7]);
+ fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
+ /* native_interface/frontier.nit:366 */
+ fra.me.REG[4] = CALL_metamodel___static_type___MMImportedCast___to(fra.me.REG[0])(fra.me.REG[0]);
+ REGB0 = CALL_metamodel___static_type___MMType___is_nullable(fra.me.REG[4])(fra.me.REG[4]);
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:373 */
+ /* native_interface/frontier.nit:367 */
CALL_native_interface___frontier___MMImportedCast___compile_check_is_not_null(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[3]);
}
- /* ./native_interface//frontier.nit:377 */
+ /* native_interface/frontier.nit:371 */
REGB0 = CALL_metamodel___static_type___MMImportedCast___is_about_nullable_only(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:378 */
- fra.me.REG[5] = CALL_metamodel___static_type___MMImportedCast___to(fra.me.REG[0])(fra.me.REG[0]);
- CALL_native_interface___frontier___MMType___compile_check_isa(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[1], fra.me.REG[3]);
+ /* native_interface/frontier.nit:372 */
+ fra.me.REG[4] = CALL_metamodel___static_type___MMImportedCast___to(fra.me.REG[0])(fra.me.REG[0]);
+ CALL_native_interface___frontier___MMType___compile_check_isa(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[1], fra.me.REG[3]);
}
- /* ./native_interface//frontier.nit:381 */
- fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
+ /* native_interface/frontier.nit:375 */
+ fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
- fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_10) {
+ fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_7) {
fra.me.REG[7] = BOX_NativeString("");
REGB0 = TAG_Int(0);
fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
- once_value_10 = fra.me.REG[7];
- register_static_object(&once_value_10);
- } else fra.me.REG[7] = once_value_10;
+ once_value_7 = fra.me.REG[7];
+ register_static_object(&once_value_7);
+ } else fra.me.REG[7] = once_value_7;
fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[7]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[7]);
fra.me.REG[0] = CALL_metamodel___static_type___MMImportedCast___to(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[3] = CALL_native_interface___ni_metamodel___MMType___assign_to_friendly(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2], fra.me.REG[3]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
- if (!once_value_11) {
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
+ if (!once_value_8) {
fra.me.REG[3] = BOX_NativeString(";\n");
REGB0 = TAG_Int(2);
fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
- once_value_11 = fra.me.REG[3];
- register_static_object(&once_value_11);
- } else fra.me.REG[3] = once_value_11;
+ once_value_8 = fra.me.REG[3];
+ register_static_object(&once_value_8);
+ } else fra.me.REG[3] = once_value_8;
fra.me.REG[3] = fra.me.REG[3];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
- fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
- /* ./native_interface//frontier.nit:383 */
- fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
+ fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
+ /* native_interface/frontier.nit:377 */
+ fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
- fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_12) {
+ fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_9) {
fra.me.REG[3] = BOX_NativeString("return ");
REGB0 = TAG_Int(7);
fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
- once_value_12 = fra.me.REG[3];
- register_static_object(&once_value_12);
- } else fra.me.REG[3] = once_value_12;
+ once_value_9 = fra.me.REG[3];
+ register_static_object(&once_value_9);
+ } else fra.me.REG[3] = once_value_9;
fra.me.REG[3] = fra.me.REG[3];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[2]);
- if (!once_value_13) {
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
+ if (!once_value_10) {
fra.me.REG[2] = BOX_NativeString(";\n");
REGB0 = TAG_Int(2);
fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
- once_value_13 = fra.me.REG[2];
- register_static_object(&once_value_13);
- } else fra.me.REG[2] = once_value_13;
+ once_value_10 = fra.me.REG[2];
+ register_static_object(&once_value_10);
+ } else fra.me.REG[2] = once_value_10;
fra.me.REG[2] = fra.me.REG[2];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[2]);
- fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
- /* ./native_interface//frontier.nit:385 */
- goto label14;
- label14: while(0);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
+ fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
+ /* native_interface/frontier.nit:379 */
+ goto label11;
+ label11: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
static val_t once_value_12; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 388;
+ fra.me.line = 382;
fra.me.meth = LOCATE_native_interface___frontier___MMImportedCast___compile_is;
fra.me.has_broke = 0;
fra.me.REG_size = 7;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[6] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:392 */
+ /* native_interface/frontier.nit:386 */
fra.me.REG[1] = CALL_native_interface___ni_metamodel___MMImportedCast___is_a_local_csignature(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
fra.me.REG[1] = NEW_FunctionCompiler_native_interface___ni_tools___FunctionCompiler___init(fra.me.REG[1]);
- /* ./native_interface//frontier.nit:394 */
+ /* native_interface/frontier.nit:388 */
if (!once_value_1) {
fra.me.REG[2] = BOX_NativeString("temp");
REGB0 = TAG_Int(4);
register_static_object(&once_value_1);
} else fra.me.REG[2] = once_value_1;
fra.me.REG[2] = fra.me.REG[2];
- /* ./native_interface//frontier.nit:395 */
+ /* native_interface/frontier.nit:389 */
fra.me.REG[3] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- /* ./native_interface//frontier.nit:397 */
+ /* native_interface/frontier.nit:391 */
fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[6]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:399 */
+ /* native_interface/frontier.nit:393 */
REGB0 = CALL_metamodel___static_type___MMImportedCast___is_nullable_to_not_null(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:400 */
+ /* native_interface/frontier.nit:394 */
REGB0 = CALL_metamodel___static_type___MMImportedCast___is_about_nullable_only(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:401 */
+ /* native_interface/frontier.nit:395 */
fra.me.REG[3] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
} else {
- /* ./native_interface//frontier.nit:403 */
+ /* native_interface/frontier.nit:397 */
fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
}
}
- /* ./native_interface//frontier.nit:407 */
+ /* native_interface/frontier.nit:401 */
REGB0 = CALL_metamodel___static_type___MMImportedCast___is_about_nullable_only(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:408 */
+ /* native_interface/frontier.nit:402 */
fra.me.REG[3] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
}
- /* ./native_interface//frontier.nit:411 */
+ /* native_interface/frontier.nit:405 */
fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
if (!once_value_12) {
fra.me.REG[3] = BOX_NativeString("return 1;\n");
} else fra.me.REG[3] = once_value_12;
fra.me.REG[3] = fra.me.REG[3];
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:413 */
+ /* native_interface/frontier.nit:407 */
goto label13;
label13: while(0);
stack_frame_head = fra.me.prev;
static val_t once_value_7; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 416;
+ fra.me.line = 410;
fra.me.meth = LOCATE_native_interface___frontier___MMImportedCast___compile_check_is_not_null;
fra.me.has_broke = 0;
fra.me.REG_size = 6;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
fra.me.REG[2] = p2;
- /* ./native_interface//frontier.nit:420 */
+ /* native_interface/frontier.nit:414 */
fra.me.REG[3] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- /* ./native_interface//frontier.nit:421 */
+ /* native_interface/frontier.nit:415 */
fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(5);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:422 */
+ /* native_interface/frontier.nit:416 */
fra.me.REG[3] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
if (!once_value_6) {
fra.me.REG[4] = BOX_NativeString("\tabort();\n");
} else fra.me.REG[4] = once_value_6;
fra.me.REG[4] = fra.me.REG[4];
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- /* ./native_interface//frontier.nit:423 */
+ /* native_interface/frontier.nit:417 */
fra.me.REG[1] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
if (!once_value_7) {
fra.me.REG[4] = BOX_NativeString("}");
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 426;
+ fra.me.line = 420;
fra.me.meth = LOCATE_native_interface___frontier___MMImportedCast_____eqeq;
fra.me.has_broke = 0;
fra.me.REG_size = 4;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[3] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:428 */
+ /* native_interface/frontier.nit:422 */
REGB0 = TAG_Bool((fra.me.REG[1]!=NIT_NULL) && VAL_ISA(fra.me.REG[1], COLOR_metamodel___static_type___MMImportedCast, ID_metamodel___static_type___MMImportedCast)) /*cast MMImportedCast*/;
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:429 */
+ /* native_interface/frontier.nit:423 */
REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 429);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 423);
}
fra.me.REG[2] = CALL_metamodel___static_type___MMImportedCast___from(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[3] = CALL_metamodel___static_type___MMImportedCast___from(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = REGB1;
}
} else {
- /* ./native_interface//frontier.nit:428 */
+ /* native_interface/frontier.nit:422 */
REGB1 = TAG_Bool(false);
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:429 */
+ /* native_interface/frontier.nit:423 */
REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 429);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 423);
}
fra.me.REG[1] = CALL_metamodel___static_type___MMImportedCast___to(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[0] = CALL_metamodel___static_type___MMImportedCast___to(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = REGB1;
}
} else {
- /* ./native_interface//frontier.nit:428 */
+ /* native_interface/frontier.nit:422 */
REGB1 = TAG_Bool(false);
REGB0 = REGB1;
}
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 431;
+ fra.me.line = 425;
fra.me.meth = LOCATE_native_interface___frontier___MMImportedCast___hash;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./native_interface//frontier.nit:433 */
+ /* native_interface/frontier.nit:427 */
fra.me.REG[1] = CALL_metamodel___static_type___MMImportedCast___from(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = CALL_standard___hash___Object___hash(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[0] = CALL_metamodel___static_type___MMImportedCast___to(fra.me.REG[0])(fra.me.REG[0]);
REGB1 = CALL_standard___hash___Object___hash(fra.me.REG[0])(fra.me.REG[0]);
- /* ./../lib/standard//kernel.nit:218 */
+ /* ../lib/standard/kernel.nit:235 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ./native_interface//frontier.nit:433 */
+ /* native_interface/frontier.nit:427 */
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
static val_t once_value_7; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 438;
+ fra.me.line = 432;
fra.me.meth = LOCATE_native_interface___frontier___MMType___compile_check_isa;
fra.me.has_broke = 0;
fra.me.REG_size = 6;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
fra.me.REG[2] = p2;
- /* ./native_interface//frontier.nit:444 */
+ /* native_interface/frontier.nit:438 */
fra.me.REG[3] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
fra.me.REG[2] = CALL_native_interface___frontier___MMType___compile_condition_isa(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
if (!once_value_2) {
- fra.me.REG[2] = BOX_NativeString(" ){");
- REGB0 = TAG_Int(3);
+ fra.me.REG[2] = BOX_NativeString(" ){\n");
+ REGB0 = TAG_Int(4);
fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
once_value_2 = fra.me.REG[2];
register_static_object(&once_value_2);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- /* ./native_interface//frontier.nit:445 */
+ /* native_interface/frontier.nit:439 */
fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(5);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:446 */
+ /* native_interface/frontier.nit:440 */
fra.me.REG[3] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
if (!once_value_6) {
fra.me.REG[4] = BOX_NativeString("\tabort();\n");
} else fra.me.REG[4] = once_value_6;
fra.me.REG[4] = fra.me.REG[4];
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- /* ./native_interface//frontier.nit:447 */
+ /* native_interface/frontier.nit:441 */
fra.me.REG[1] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[1])(fra.me.REG[1]);
if (!once_value_7) {
- fra.me.REG[4] = BOX_NativeString("}");
- REGB0 = TAG_Int(1);
+ fra.me.REG[4] = BOX_NativeString("}\n");
+ REGB0 = TAG_Int(2);
fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
once_value_7 = fra.me.REG[4];
register_static_object(&once_value_7);
static val_t once_value_6; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 450;
+ fra.me.line = 444;
fra.me.meth = LOCATE_native_interface___frontier___MMType___compile_condition_isa;
fra.me.has_broke = 0;
fra.me.REG_size = 4;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[3] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:454 */
+ /* native_interface/frontier.nit:448 */
REGB0 = TAG_Int(11);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_1) {
static val_t once_value_10; /* Once value */
static val_t once_value_11; /* Once value */
static val_t once_value_12; /* Once value */
- static val_t once_value_13; /* Once value */
+ static val_t once_value_13; /* Once value */
static val_t once_value_14; /* Once value */
static val_t once_value_15; /* Once value */
static val_t once_value_16; /* Once value */
static val_t once_value_25; /* Once value */
static val_t once_value_26; /* Once value */
static val_t once_value_27; /* Once value */
- static val_t once_value_28; /* Once value */
- static val_t once_value_29; /* Once value */
- static val_t once_value_30; /* Once value */
- static val_t once_value_31; /* Once value */
- static val_t once_value_32; /* Once value */
- static val_t once_value_33; /* Once value */
- static val_t once_value_34; /* Once value */
- static val_t once_value_35; /* Once value */
+ static val_t once_value_28; /* Once value */
+ static val_t once_value_29; /* Once value */
+ static val_t once_value_30; /* Once value */
+ static val_t once_value_31; /* Once value */
+ static val_t once_value_32; /* Once value */
+ static val_t once_value_33; /* Once value */
+ static val_t once_value_34; /* Once value */
+ static val_t once_value_35; /* Once value */
+ static val_t once_value_36; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 457;
+ fra.me.line = 451;
fra.me.meth = LOCATE_native_interface___frontier___MMType___compile_to_frontier;
fra.me.has_broke = 0;
fra.me.REG_size = 7;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[6] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:461 */
+ /* native_interface/frontier.nit:455 */
fra.me.REG[2] = CALL_metamodel___static_type___MMType___local_class(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[2] = CALL_primitive_info___MMLocalClass___primitive_info(fra.me.REG[2])(fra.me.REG[2]);
- /* ./native_interface//frontier.nit:462 */
+ /* native_interface/frontier.nit:456 */
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:463 */
+ /* native_interface/frontier.nit:457 */
fra.me.REG[2] = CALL_native_interface___ni_metamodel___MMType___friendly_extern_name(fra.me.REG[0])(fra.me.REG[0]);
- /* ./native_interface//frontier.nit:464 */
+ /* native_interface/frontier.nit:458 */
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_1) {
fra.me.REG[4] = fra.me.REG[4];
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
- /* ./native_interface//frontier.nit:467 */
+ /* native_interface/frontier.nit:461 */
fra.me.REG[4] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
- /* ./native_interface//frontier.nit:468 */
+ /* native_interface/frontier.nit:462 */
fra.me.REG[5] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
- /* ./native_interface//frontier.nit:469 */
+ /* native_interface/frontier.nit:463 */
fra.me.REG[4] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_7) {
- fra.me.REG[3] = BOX_NativeString("typedef struct s_");
- REGB0 = TAG_Int(17);
+ fra.me.REG[3] = BOX_NativeString("struct s_");
+ REGB0 = TAG_Int(9);
fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
once_value_7 = fra.me.REG[3];
register_static_object(&once_value_7);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
- /* ./native_interface//frontier.nit:470 */
+ /* native_interface/frontier.nit:464 */
fra.me.REG[5] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
if (!once_value_9) {
- fra.me.REG[4] = BOX_NativeString("\tval_t v;\n");
- REGB0 = TAG_Int(10);
+ fra.me.REG[4] = BOX_NativeString("\t\tstruct nitni_ref ref; /* real ref struct, must be first */\n");
+ REGB0 = TAG_Int(61);
fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
once_value_9 = fra.me.REG[4];
register_static_object(&once_value_9);
} else fra.me.REG[4] = once_value_9;
fra.me.REG[4] = fra.me.REG[4];
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
- /* ./native_interface//frontier.nit:471 */
+ /* native_interface/frontier.nit:465 */
fra.me.REG[4] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
- REGB0 = TAG_Int(3);
- fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_10) {
- fra.me.REG[3] = BOX_NativeString("} ");
- REGB0 = TAG_Int(2);
- fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
- once_value_10 = fra.me.REG[3];
+ fra.me.REG[5] = BOX_NativeString("};\n");
+ REGB0 = TAG_Int(3);
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_10 = fra.me.REG[5];
register_static_object(&once_value_10);
- } else fra.me.REG[3] = once_value_10;
- fra.me.REG[3] = fra.me.REG[3];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[2]);
+ } else fra.me.REG[5] = once_value_10;
+ fra.me.REG[5] = fra.me.REG[5];
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
+ /* native_interface/frontier.nit:466 */
+ fra.me.REG[5] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
+ REGB0 = TAG_Int(5);
+ fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_11) {
- fra.me.REG[3] = BOX_NativeString(";\n");
- REGB0 = TAG_Int(2);
+ fra.me.REG[3] = BOX_NativeString("typedef struct s_");
+ REGB0 = TAG_Int(17);
fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
once_value_11 = fra.me.REG[3];
register_static_object(&once_value_11);
} else fra.me.REG[3] = once_value_11;
fra.me.REG[3] = fra.me.REG[3];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
- fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
- /* ./native_interface//frontier.nit:472 */
- fra.me.REG[5] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
if (!once_value_12) {
- fra.me.REG[4] = BOX_NativeString("#endif\n\n");
- REGB0 = TAG_Int(8);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
- once_value_12 = fra.me.REG[4];
+ fra.me.REG[3] = BOX_NativeString(" *");
+ REGB0 = TAG_Int(2);
+ fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
+ once_value_12 = fra.me.REG[3];
register_static_object(&once_value_12);
- } else fra.me.REG[4] = once_value_12;
- fra.me.REG[4] = fra.me.REG[4];
+ } else fra.me.REG[3] = once_value_12;
+ fra.me.REG[3] = fra.me.REG[3];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
+ if (!once_value_13) {
+ fra.me.REG[3] = BOX_NativeString(";\n");
+ REGB0 = TAG_Int(2);
+ fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
+ once_value_13 = fra.me.REG[3];
+ register_static_object(&once_value_13);
+ } else fra.me.REG[3] = once_value_13;
+ fra.me.REG[3] = fra.me.REG[3];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
+ fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
- /* ./native_interface//frontier.nit:475 */
+ /* native_interface/frontier.nit:469 */
REGB0 = CALL_metamodel___static_type___MMType___is_nullable(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:476 */
+ /* native_interface/frontier.nit:470 */
+ fra.me.REG[4] = CALL_metamodel___static_type___MMType___mmmodule(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[4] = CALL_native_interface___ni_metamodel___MMType___local_friendly_null_getter_from(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[4]);
+ /* native_interface/frontier.nit:472 */
+ fra.me.REG[5] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
- fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_13) {
- fra.me.REG[5] = BOX_NativeString("null_");
- REGB0 = TAG_Int(5);
- fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
- once_value_13 = fra.me.REG[5];
- register_static_object(&once_value_13);
- } else fra.me.REG[5] = once_value_13;
- fra.me.REG[5] = fra.me.REG[5];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
- fra.me.REG[5] = CALL_metamodel___static_type___MMType___as_notnull(fra.me.REG[0])(fra.me.REG[0]);
- fra.me.REG[5] = CALL_native_interface___ni_metamodel___MMType___friendly_extern_name(fra.me.REG[5])(fra.me.REG[5]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
+ fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_14) {
- fra.me.REG[5] = BOX_NativeString("");
- REGB0 = TAG_Int(0);
- fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
- once_value_14 = fra.me.REG[5];
+ fra.me.REG[6] = BOX_NativeString("#ifndef ");
+ REGB0 = TAG_Int(8);
+ fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
+ once_value_14 = fra.me.REG[6];
register_static_object(&once_value_14);
- } else fra.me.REG[5] = once_value_14;
- fra.me.REG[5] = fra.me.REG[5];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
- fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
- /* ./native_interface//frontier.nit:477 */
- REGB0 = TAG_Int(5);
- fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ } else fra.me.REG[6] = once_value_14;
+ fra.me.REG[6] = fra.me.REG[6];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[6]);
+ fra.me.REG[6] = CALL_native_interface___ni_metamodel___MMType___friendly_null_getter(fra.me.REG[0])(fra.me.REG[0]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[6]);
if (!once_value_15) {
- fra.me.REG[3] = BOX_NativeString("");
- REGB0 = TAG_Int(0);
- fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
- once_value_15 = fra.me.REG[3];
+ fra.me.REG[6] = BOX_NativeString("\n");
+ REGB0 = TAG_Int(1);
+ fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
+ once_value_15 = fra.me.REG[6];
register_static_object(&once_value_15);
- } else fra.me.REG[3] = once_value_15;
- fra.me.REG[3] = fra.me.REG[3];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
- fra.me.REG[0] = CALL_metamodel___static_type___MMType___mmmodule(fra.me.REG[0])(fra.me.REG[0]);
- fra.me.REG[0] = CALL_standard___string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[0]);
+ } else fra.me.REG[6] = once_value_15;
+ fra.me.REG[6] = fra.me.REG[6];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[6]);
+ fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
+ /* native_interface/frontier.nit:473 */
+ fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
+ REGB0 = TAG_Int(5);
+ fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_16) {
- fra.me.REG[0] = BOX_NativeString("_");
- REGB0 = TAG_Int(1);
- fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_16 = fra.me.REG[0];
+ fra.me.REG[6] = BOX_NativeString("#define ");
+ REGB0 = TAG_Int(8);
+ fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
+ once_value_16 = fra.me.REG[6];
register_static_object(&once_value_16);
- } else fra.me.REG[0] = once_value_16;
- fra.me.REG[0] = fra.me.REG[0];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[0]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
+ } else fra.me.REG[6] = once_value_16;
+ fra.me.REG[6] = fra.me.REG[6];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
+ fra.me.REG[6] = CALL_native_interface___ni_metamodel___MMType___friendly_null_getter(fra.me.REG[0])(fra.me.REG[0]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
if (!once_value_17) {
- fra.me.REG[0] = BOX_NativeString("");
- REGB0 = TAG_Int(0);
- fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_17 = fra.me.REG[0];
+ fra.me.REG[6] = BOX_NativeString(" ");
+ REGB0 = TAG_Int(1);
+ fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
+ once_value_17 = fra.me.REG[6];
register_static_object(&once_value_17);
- } else fra.me.REG[0] = once_value_17;
- fra.me.REG[0] = fra.me.REG[0];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[0]);
- fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
- /* ./native_interface//frontier.nit:479 */
- fra.me.REG[0] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
- REGB0 = TAG_Int(5);
- fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ } else fra.me.REG[6] = once_value_17;
+ fra.me.REG[6] = fra.me.REG[6];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
if (!once_value_18) {
- fra.me.REG[6] = BOX_NativeString("");
- REGB0 = TAG_Int(0);
+ fra.me.REG[6] = BOX_NativeString("\n");
+ REGB0 = TAG_Int(1);
fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
once_value_18 = fra.me.REG[6];
register_static_object(&once_value_18);
} else fra.me.REG[6] = once_value_18;
fra.me.REG[6] = fra.me.REG[6];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[6]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
+ fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
+ /* native_interface/frontier.nit:474 */
+ fra.me.REG[5] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
if (!once_value_19) {
+ fra.me.REG[3] = BOX_NativeString("#endif\n");
+ REGB0 = TAG_Int(7);
+ fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
+ once_value_19 = fra.me.REG[3];
+ register_static_object(&once_value_19);
+ } else fra.me.REG[3] = once_value_19;
+ fra.me.REG[3] = fra.me.REG[3];
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
+ /* native_interface/frontier.nit:476 */
+ fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
+ REGB0 = TAG_Int(5);
+ fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_20) {
+ fra.me.REG[6] = BOX_NativeString("");
+ REGB0 = TAG_Int(0);
+ fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
+ once_value_20 = fra.me.REG[6];
+ register_static_object(&once_value_20);
+ } else fra.me.REG[6] = once_value_20;
+ fra.me.REG[6] = fra.me.REG[6];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[2]);
+ if (!once_value_21) {
fra.me.REG[6] = BOX_NativeString(" ");
REGB0 = TAG_Int(1);
fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
- once_value_19 = fra.me.REG[6];
- register_static_object(&once_value_19);
- } else fra.me.REG[6] = once_value_19;
+ once_value_21 = fra.me.REG[6];
+ register_static_object(&once_value_21);
+ } else fra.me.REG[6] = once_value_21;
fra.me.REG[6] = fra.me.REG[6];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[6]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
- if (!once_value_20) {
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
+ if (!once_value_22) {
fra.me.REG[6] = BOX_NativeString("();\n");
REGB0 = TAG_Int(4);
fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
- once_value_20 = fra.me.REG[6];
- register_static_object(&once_value_20);
- } else fra.me.REG[6] = once_value_20;
+ once_value_22 = fra.me.REG[6];
+ register_static_object(&once_value_22);
+ } else fra.me.REG[6] = once_value_22;
fra.me.REG[6] = fra.me.REG[6];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[6]);
- fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:481 */
- fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
+ fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
+ /* native_interface/frontier.nit:478 */
+ REGB0 = TAG_Int(5);
+ fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_23) {
+ fra.me.REG[3] = BOX_NativeString("");
+ REGB0 = TAG_Int(0);
+ fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
+ once_value_23 = fra.me.REG[3];
+ register_static_object(&once_value_23);
+ } else fra.me.REG[3] = once_value_23;
+ fra.me.REG[3] = fra.me.REG[3];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[2]);
+ if (!once_value_24) {
+ fra.me.REG[2] = BOX_NativeString(" ");
+ REGB0 = TAG_Int(1);
+ fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
+ once_value_24 = fra.me.REG[2];
+ register_static_object(&once_value_24);
+ } else fra.me.REG[2] = once_value_24;
+ fra.me.REG[2] = fra.me.REG[2];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[2]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
+ if (!once_value_25) {
+ fra.me.REG[4] = BOX_NativeString("()");
+ REGB0 = TAG_Int(2);
+ fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
+ once_value_25 = fra.me.REG[4];
+ register_static_object(&once_value_25);
+ } else fra.me.REG[4] = once_value_25;
+ fra.me.REG[4] = fra.me.REG[4];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
+ fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
+ fra.me.REG[5] = NEW_FunctionCompiler_native_interface___ni_tools___FunctionCompiler___init(fra.me.REG[5]);
+ /* native_interface/frontier.nit:479 */
+ if (!once_value_26) {
+ fra.me.REG[4] = BOX_NativeString("n");
+ REGB0 = TAG_Int(1);
+ fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
+ once_value_26 = fra.me.REG[4];
+ register_static_object(&once_value_26);
+ } else fra.me.REG[4] = once_value_26;
+ fra.me.REG[4] = fra.me.REG[4];
+ REGB0 = TAG_Bool(true);
+ CALL_native_interface___frontier___MMType___compile_new_local_ref(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[4], fra.me.REG[5], REGB0);
+ /* native_interface/frontier.nit:480 */
+ fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[5])(fra.me.REG[5]);
+ if (!once_value_27) {
+ fra.me.REG[2] = BOX_NativeString("return n;\n");
+ REGB0 = TAG_Int(10);
+ fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
+ once_value_27 = fra.me.REG[2];
+ register_static_object(&once_value_27);
+ } else fra.me.REG[2] = once_value_27;
+ fra.me.REG[2] = fra.me.REG[2];
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
+ /* native_interface/frontier.nit:481 */
+ fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
+ fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___to_writer(fra.me.REG[5])(fra.me.REG[5]);
+ CALL_compiling___compiling_writer___Writer___append(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[5]);
+ }
+ /* native_interface/frontier.nit:485 */
+ REGB0 = TAG_Int(3);
+ fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_28) {
+ fra.me.REG[2] = BOX_NativeString("");
+ REGB0 = TAG_Int(0);
+ fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
+ once_value_28 = fra.me.REG[2];
+ register_static_object(&once_value_28);
+ } else fra.me.REG[2] = once_value_28;
+ fra.me.REG[2] = fra.me.REG[2];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[2]);
+ fra.me.REG[2] = CALL_metamodel___static_type___MMType___as_notnull(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[2] = CALL_native_interface___ni_metamodel___MMType___mangled_name(fra.me.REG[2])(fra.me.REG[2]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[2]);
+ if (!once_value_29) {
+ fra.me.REG[2] = BOX_NativeString("_incr_ref");
+ REGB0 = TAG_Int(9);
+ fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
+ once_value_29 = fra.me.REG[2];
+ register_static_object(&once_value_29);
+ } else fra.me.REG[2] = once_value_29;
+ fra.me.REG[2] = fra.me.REG[2];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[2]);
+ fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
+ /* native_interface/frontier.nit:486 */
+ fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
+ REGB0 = TAG_Int(3);
+ fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_30) {
+ fra.me.REG[3] = BOX_NativeString("#define ");
+ REGB0 = TAG_Int(8);
+ fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
+ once_value_30 = fra.me.REG[3];
+ register_static_object(&once_value_30);
+ } else fra.me.REG[3] = once_value_30;
+ fra.me.REG[3] = fra.me.REG[3];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[3]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
+ if (!once_value_31) {
+ fra.me.REG[5] = BOX_NativeString("( x ) nitni_global_ref_incr( (struct nitni_ref*)(x) )\n");
+ REGB0 = TAG_Int(54);
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_31 = fra.me.REG[5];
+ register_static_object(&once_value_31);
+ } else fra.me.REG[5] = once_value_31;
+ fra.me.REG[5] = fra.me.REG[5];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
+ fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
+ /* native_interface/frontier.nit:489 */
+ REGB0 = TAG_Int(3);
+ fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_32) {
+ fra.me.REG[2] = BOX_NativeString("");
+ REGB0 = TAG_Int(0);
+ fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
+ once_value_32 = fra.me.REG[2];
+ register_static_object(&once_value_32);
+ } else fra.me.REG[2] = once_value_32;
+ fra.me.REG[2] = fra.me.REG[2];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
+ fra.me.REG[0] = CALL_metamodel___static_type___MMType___as_notnull(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[0] = CALL_native_interface___ni_metamodel___MMType___mangled_name(fra.me.REG[0])(fra.me.REG[0]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[0]);
+ if (!once_value_33) {
+ fra.me.REG[0] = BOX_NativeString("_decr_ref");
+ REGB0 = TAG_Int(9);
+ fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
+ once_value_33 = fra.me.REG[0];
+ register_static_object(&once_value_33);
+ } else fra.me.REG[0] = once_value_33;
+ fra.me.REG[0] = fra.me.REG[0];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[0]);
+ fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
+ /* native_interface/frontier.nit:490 */
+ fra.me.REG[0] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
+ REGB0 = TAG_Int(3);
+ fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_34) {
+ fra.me.REG[5] = BOX_NativeString("#define ");
+ REGB0 = TAG_Int(8);
+ fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
+ once_value_34 = fra.me.REG[5];
+ register_static_object(&once_value_34);
+ } else fra.me.REG[5] = once_value_34;
+ fra.me.REG[5] = fra.me.REG[5];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[5]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
+ if (!once_value_35) {
+ fra.me.REG[4] = BOX_NativeString("( x ) nitni_global_ref_decr( (struct nitni_ref*)(x) )\n");
+ REGB0 = TAG_Int(54);
+ fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
+ once_value_35 = fra.me.REG[4];
+ register_static_object(&once_value_35);
+ } else fra.me.REG[4] = once_value_35;
+ fra.me.REG[4] = fra.me.REG[4];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
+ fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
+ /* native_interface/frontier.nit:492 */
+ fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___header_top(fra.me.REG[1])(fra.me.REG[1]);
+ if (!once_value_36) {
+ fra.me.REG[2] = BOX_NativeString("#endif\n");
+ REGB0 = TAG_Int(7);
+ fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
+ once_value_36 = fra.me.REG[2];
+ register_static_object(&once_value_36);
+ } else fra.me.REG[2] = once_value_36;
+ fra.me.REG[2] = fra.me.REG[2];
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+ }
+ stack_frame_head = fra.me.prev;
+ return;
+}
+void native_interface___frontier___MMType___compile_new_local_ref(val_t p0, val_t p1, val_t p2, val_t p3){
+ struct {struct stack_frame_t me; val_t MORE_REG[6];} fra;
+ val_t REGB0;
+ val_t REGB1;
+ val_t tmp;
+ static val_t once_value_1; /* Once value */
+ static val_t once_value_2; /* Once value */
+ static val_t once_value_3; /* Once value */
+ static val_t once_value_4; /* Once value */
+ static val_t once_value_5; /* Once value */
+ static val_t once_value_6; /* Once value */
+ static val_t once_value_7; /* Once value */
+ static val_t once_value_8; /* Once value */
+ static val_t once_value_9; /* Once value */
+ static val_t once_value_10; /* Once value */
+ static val_t once_value_11; /* Once value */
+ static val_t once_value_12; /* Once value */
+ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+ fra.me.file = LOCATE_native_interface___frontier;
+ fra.me.line = 496;
+ fra.me.meth = LOCATE_native_interface___frontier___MMType___compile_new_local_ref;
+ fra.me.has_broke = 0;
+ fra.me.REG_size = 7;
+ fra.me.nitni_local_ref_head = NULL;
+ fra.me.REG[0] = NIT_NULL;
+ fra.me.REG[1] = NIT_NULL;
+ fra.me.REG[2] = NIT_NULL;
+ fra.me.REG[3] = NIT_NULL;
+ fra.me.REG[4] = NIT_NULL;
+ fra.me.REG[5] = NIT_NULL;
+ fra.me.REG[6] = NIT_NULL;
+ fra.me.REG[0] = p0;
+ fra.me.REG[1] = p1;
+ fra.me.REG[2] = p2;
+ REGB0 = p3;
+ /* native_interface/frontier.nit:498 */
+ fra.me.REG[3] = CALL_native_interface___ni_metamodel___MMType___friendly_extern_name(fra.me.REG[0])(fra.me.REG[0]);
+ /* native_interface/frontier.nit:500 */
+ fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[2])(fra.me.REG[2]);
+ REGB1 = TAG_Int(5);
+ fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
+ if (!once_value_1) {
+ fra.me.REG[6] = BOX_NativeString("");
+ REGB1 = TAG_Int(0);
+ fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB1);
+ once_value_1 = fra.me.REG[6];
+ register_static_object(&once_value_1);
+ } else fra.me.REG[6] = once_value_1;
+ fra.me.REG[6] = fra.me.REG[6];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
+ if (!once_value_2) {
+ fra.me.REG[6] = BOX_NativeString(" ");
+ REGB1 = TAG_Int(1);
+ fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB1);
+ once_value_2 = fra.me.REG[6];
+ register_static_object(&once_value_2);
+ } else fra.me.REG[6] = once_value_2;
+ fra.me.REG[6] = fra.me.REG[6];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[1]);
+ if (!once_value_3) {
+ fra.me.REG[6] = BOX_NativeString(";\n");
+ REGB1 = TAG_Int(2);
+ fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB1);
+ once_value_3 = fra.me.REG[6];
+ register_static_object(&once_value_3);
+ } else fra.me.REG[6] = once_value_3;
+ fra.me.REG[6] = fra.me.REG[6];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
+ fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[5]);
+ /* native_interface/frontier.nit:501 */
+ REGB1 = CALL_native_interface___ni_metamodel___MMType___uses_nitni_ref(fra.me.REG[0])(fra.me.REG[0]);
+ if (UNTAG_Bool(REGB1)) {
+ /* native_interface/frontier.nit:502 */
+ fra.me.REG[0] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[2])(fra.me.REG[2]);
+ REGB1 = TAG_Int(5);
+ fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
+ if (!once_value_4) {
+ fra.me.REG[4] = BOX_NativeString("");
+ REGB1 = TAG_Int(0);
+ fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB1);
+ once_value_4 = fra.me.REG[4];
+ register_static_object(&once_value_4);
+ } else fra.me.REG[4] = once_value_4;
+ fra.me.REG[4] = fra.me.REG[4];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[1]);
+ if (!once_value_5) {
+ fra.me.REG[4] = BOX_NativeString(" = malloc( sizeof( struct s_");
+ REGB1 = TAG_Int(28);
+ fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB1);
+ once_value_5 = fra.me.REG[4];
+ register_static_object(&once_value_5);
+ } else fra.me.REG[4] = once_value_5;
+ fra.me.REG[4] = fra.me.REG[4];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[4]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
+ if (!once_value_6) {
+ fra.me.REG[3] = BOX_NativeString(" ) );\n");
+ REGB1 = TAG_Int(6);
+ fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB1);
+ once_value_6 = fra.me.REG[3];
+ register_static_object(&once_value_6);
+ } else fra.me.REG[3] = once_value_6;
+ fra.me.REG[3] = fra.me.REG[3];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
+ fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[5]);
+ /* native_interface/frontier.nit:503 */
+ fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[2])(fra.me.REG[2]);
+ REGB1 = TAG_Int(3);
+ fra.me.REG[0] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
+ if (!once_value_7) {
+ fra.me.REG[3] = BOX_NativeString("");
+ REGB1 = TAG_Int(0);
+ fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB1);
+ once_value_7 = fra.me.REG[3];
+ register_static_object(&once_value_7);
+ } else fra.me.REG[3] = once_value_7;
+ fra.me.REG[3] = fra.me.REG[3];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+ if (!once_value_8) {
+ fra.me.REG[3] = BOX_NativeString("->ref.val = NIT_NULL;\n");
+ REGB1 = TAG_Int(22);
+ fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB1);
+ once_value_8 = fra.me.REG[3];
+ register_static_object(&once_value_8);
+ } else fra.me.REG[3] = once_value_8;
+ fra.me.REG[3] = fra.me.REG[3];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
+ fra.me.REG[0] = CALL_standard___string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[0]);
+ /* native_interface/frontier.nit:504 */
+ fra.me.REG[0] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[2])(fra.me.REG[2]);
+ REGB1 = TAG_Int(3);
+ fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
+ if (!once_value_9) {
+ fra.me.REG[3] = BOX_NativeString("");
+ REGB1 = TAG_Int(0);
+ fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB1);
+ once_value_9 = fra.me.REG[3];
+ register_static_object(&once_value_9);
+ } else fra.me.REG[3] = once_value_9;
+ fra.me.REG[3] = fra.me.REG[3];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[1]);
+ if (!once_value_10) {
+ fra.me.REG[3] = BOX_NativeString("->ref.count = 0;\n");
+ REGB1 = TAG_Int(17);
+ fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB1);
+ once_value_10 = fra.me.REG[3];
+ register_static_object(&once_value_10);
+ } else fra.me.REG[3] = once_value_10;
+ fra.me.REG[3] = fra.me.REG[3];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
+ fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[5]);
+ /* native_interface/frontier.nit:505 */
+ if (UNTAG_Bool(REGB0)) {
+ /* native_interface/frontier.nit:506 */
+ fra.me.REG[2] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[2])(fra.me.REG[2]);
REGB0 = TAG_Int(3);
- fra.me.REG[0] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_21) {
- fra.me.REG[6] = BOX_NativeString("#ifndef ");
- REGB0 = TAG_Int(8);
- fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
- once_value_21 = fra.me.REG[6];
- register_static_object(&once_value_21);
- } else fra.me.REG[6] = once_value_21;
- fra.me.REG[6] = fra.me.REG[6];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[6]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[4]);
- if (!once_value_22) {
- fra.me.REG[6] = BOX_NativeString("\n");
- REGB0 = TAG_Int(1);
- fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
- once_value_22 = fra.me.REG[6];
- register_static_object(&once_value_22);
- } else fra.me.REG[6] = once_value_22;
- fra.me.REG[6] = fra.me.REG[6];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[6]);
- fra.me.REG[0] = CALL_standard___string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]);
- /* ./native_interface//frontier.nit:482 */
- fra.me.REG[0] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
- REGB0 = TAG_Int(5);
- fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_23) {
- fra.me.REG[6] = BOX_NativeString("#define ");
- REGB0 = TAG_Int(8);
- fra.me.REG[6] = NEW_String_standard___string___String___with_native(fra.me.REG[6], REGB0);
- once_value_23 = fra.me.REG[6];
- register_static_object(&once_value_23);
- } else fra.me.REG[6] = once_value_23;
- fra.me.REG[6] = fra.me.REG[6];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[6]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- if (!once_value_24) {
- fra.me.REG[4] = BOX_NativeString(" ");
- REGB0 = TAG_Int(1);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
- once_value_24 = fra.me.REG[4];
- register_static_object(&once_value_24);
- } else fra.me.REG[4] = once_value_24;
- fra.me.REG[4] = fra.me.REG[4];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
- if (!once_value_25) {
- fra.me.REG[4] = BOX_NativeString("\n");
- REGB0 = TAG_Int(1);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
- once_value_25 = fra.me.REG[4];
- register_static_object(&once_value_25);
- } else fra.me.REG[4] = once_value_25;
- fra.me.REG[4] = fra.me.REG[4];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:483 */
- fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
- if (!once_value_26) {
- fra.me.REG[0] = BOX_NativeString("#endif\n\n");
- REGB0 = TAG_Int(8);
- fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_26 = fra.me.REG[0];
- register_static_object(&once_value_26);
- } else fra.me.REG[0] = once_value_26;
- fra.me.REG[0] = fra.me.REG[0];
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]);
- /* ./native_interface//frontier.nit:485 */
- fra.me.REG[0] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
- REGB0 = TAG_Int(5);
- fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_27) {
- fra.me.REG[4] = BOX_NativeString("");
- REGB0 = TAG_Int(0);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
- once_value_27 = fra.me.REG[4];
- register_static_object(&once_value_27);
- } else fra.me.REG[4] = once_value_27;
- fra.me.REG[4] = fra.me.REG[4];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- if (!once_value_28) {
- fra.me.REG[4] = BOX_NativeString(" ");
- REGB0 = TAG_Int(1);
- fra.me.REG[4] = NEW_String_standard___string___String___with_native(fra.me.REG[4], REGB0);
- once_value_28 = fra.me.REG[4];
- register_static_object(&once_value_28);
- } else fra.me.REG[4] = once_value_28;
- fra.me.REG[4] = fra.me.REG[4];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
- if (!once_value_29) {
- fra.me.REG[5] = BOX_NativeString("()\n");
- REGB0 = TAG_Int(3);
- fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
- once_value_29 = fra.me.REG[5];
- register_static_object(&once_value_29);
- } else fra.me.REG[5] = once_value_29;
- fra.me.REG[5] = fra.me.REG[5];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
- fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:486 */
- fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
- if (!once_value_30) {
- fra.me.REG[0] = BOX_NativeString("{\n");
- REGB0 = TAG_Int(2);
+ fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_11) {
+ fra.me.REG[0] = BOX_NativeString("nitni_local_ref_add( (struct nitni_ref *)");
+ REGB0 = TAG_Int(41);
fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_30 = fra.me.REG[0];
- register_static_object(&once_value_30);
- } else fra.me.REG[0] = once_value_30;
+ once_value_11 = fra.me.REG[0];
+ register_static_object(&once_value_11);
+ } else fra.me.REG[0] = once_value_11;
fra.me.REG[0] = fra.me.REG[0];
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]);
- /* ./native_interface//frontier.nit:487 */
- fra.me.REG[0] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
- REGB0 = TAG_Int(3);
- fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_31) {
- fra.me.REG[5] = BOX_NativeString("\t");
- REGB0 = TAG_Int(1);
- fra.me.REG[5] = NEW_String_standard___string___String___with_native(fra.me.REG[5], REGB0);
- once_value_31 = fra.me.REG[5];
- register_static_object(&once_value_31);
- } else fra.me.REG[5] = once_value_31;
- fra.me.REG[5] = fra.me.REG[5];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- if (!once_value_32) {
- fra.me.REG[2] = BOX_NativeString(" n;\n");
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[0]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[1]);
+ if (!once_value_12) {
+ fra.me.REG[1] = BOX_NativeString(" );\n");
REGB0 = TAG_Int(4);
- fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
- once_value_32 = fra.me.REG[2];
- register_static_object(&once_value_32);
- } else fra.me.REG[2] = once_value_32;
- fra.me.REG[2] = fra.me.REG[2];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:488 */
- fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
- if (!once_value_33) {
- fra.me.REG[0] = BOX_NativeString("\tn.v = NIT_NULL;\n");
- REGB0 = TAG_Int(17);
- fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_33 = fra.me.REG[0];
- register_static_object(&once_value_33);
- } else fra.me.REG[0] = once_value_33;
- fra.me.REG[0] = fra.me.REG[0];
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]);
- /* ./native_interface//frontier.nit:489 */
- fra.me.REG[0] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
- if (!once_value_34) {
- fra.me.REG[3] = BOX_NativeString("\treturn n;\n");
- REGB0 = TAG_Int(11);
- fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
- once_value_34 = fra.me.REG[3];
- register_static_object(&once_value_34);
- } else fra.me.REG[3] = once_value_34;
- fra.me.REG[3] = fra.me.REG[3];
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:490 */
- fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
- if (!once_value_35) {
- fra.me.REG[3] = BOX_NativeString("}\n\n");
- REGB0 = TAG_Int(3);
- fra.me.REG[3] = NEW_String_standard___string___String___with_native(fra.me.REG[3], REGB0);
- once_value_35 = fra.me.REG[3];
- register_static_object(&once_value_35);
- } else fra.me.REG[3] = once_value_35;
- fra.me.REG[3] = fra.me.REG[3];
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
+ fra.me.REG[1] = NEW_String_standard___string___String___with_native(fra.me.REG[1], REGB0);
+ once_value_12 = fra.me.REG[1];
+ register_static_object(&once_value_12);
+ } else fra.me.REG[1] = once_value_12;
+ fra.me.REG[1] = fra.me.REG[1];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[1]);
+ fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[5]);
}
}
stack_frame_head = fra.me.prev;
struct {struct stack_frame_t me; val_t MORE_REG[10];} fra;
val_t REGB0;
val_t REGB1;
+ val_t REGB2;
val_t tmp;
static val_t once_value_1; /* Once value */
static val_t once_value_2; /* Once value */
static val_t once_value_31; /* Once value */
static val_t once_value_32; /* Once value */
static val_t once_value_33; /* Once value */
- static val_t once_value_34; /* Once value */
+ static val_t once_value_34; /* Once value */
static val_t once_value_35; /* Once value */
static val_t once_value_36; /* Once value */
- static val_t once_value_37; /* Once value */
+ static val_t once_value_37; /* Once value */
static val_t once_value_38; /* Once value */
static val_t once_value_39; /* Once value */
static val_t once_value_40; /* Once value */
static val_t once_value_41; /* Once value */
static val_t once_value_42; /* Once value */
- static val_t once_value_43; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 497;
+ fra.me.line = 513;
fra.me.meth = LOCATE_native_interface___frontier___MMExplicitImport___compile_friendly_to_frontier;
fra.me.has_broke = 0;
fra.me.REG_size = 11;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[10] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:500 */
+ /* native_interface/frontier.nit:516 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:501 */
+ /* native_interface/frontier.nit:517 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[6]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:505 */
+ /* native_interface/frontier.nit:521 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[6]);
fra.me.REG[6] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[5] = CALL_metamodel___abstractmetamodel___MMExplicitImport___local_class(fra.me.REG[0])(fra.me.REG[0]);
- fra.me.REG[5] = CALL_syntax___mmbuilder___MMMethod___friendly_extern_name(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[5]);
+ fra.me.REG[5] = CALL_primitive_info___MMMethod___friendly_extern_name(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[5]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
if (!once_value_6) {
fra.me.REG[5] = BOX_NativeString("\n");
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:506 */
+ /* native_interface/frontier.nit:522 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(5);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[5]);
fra.me.REG[5] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[6] = CALL_metamodel___abstractmetamodel___MMExplicitImport___local_class(fra.me.REG[0])(fra.me.REG[0]);
- fra.me.REG[6] = CALL_syntax___mmbuilder___MMMethod___friendly_extern_name(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
+ fra.me.REG[6] = CALL_primitive_info___MMMethod___friendly_extern_name(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[6]);
if (!once_value_8) {
fra.me.REG[6] = BOX_NativeString(" ");
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:507 */
+ /* native_interface/frontier.nit:523 */
fra.me.REG[2] = CALL_native_interface___frontier___FrontierVisitor___header(fra.me.REG[1])(fra.me.REG[1]);
if (!once_value_10) {
fra.me.REG[3] = BOX_NativeString("#endif\n");
} else fra.me.REG[3] = once_value_10;
fra.me.REG[3] = fra.me.REG[3];
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:510 */
+ /* native_interface/frontier.nit:526 */
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Int(3);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:512 */
+ /* native_interface/frontier.nit:528 */
fra.me.REG[2] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[3] = CALL_native_interface___frontier___FrontierVisitor___mmmodule(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[4] = CALL_metamodel___abstractmetamodel___MMExplicitImport___local_class(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[4] = CALL_native_interface___ni_metamodel___MMMethod___frontier_csignature_from(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3], fra.me.REG[4]);
fra.me.REG[4] = NEW_FunctionCompiler_native_interface___ni_tools___FunctionCompiler___init(fra.me.REG[4]);
- /* ./native_interface//frontier.nit:515 */
+ /* native_interface/frontier.nit:531 */
fra.me.REG[3] = NEW_Array_standard___collection___array___Array___init();
- /* ./native_interface//frontier.nit:518 */
+ /* native_interface/frontier.nit:534 */
fra.me.REG[2] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = CALL_syntax___syntax_base___MMLocalProperty___is_init(fra.me.REG[2])(fra.me.REG[2]);
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:519 */
+ /* native_interface/frontier.nit:535 */
if (!once_value_13) {
fra.me.REG[2] = BOX_NativeString("recv___nit");
REGB0 = TAG_Int(10);
register_static_object(&once_value_13);
} else fra.me.REG[2] = once_value_13;
fra.me.REG[2] = fra.me.REG[2];
- /* ./native_interface//frontier.nit:520 */
+ /* native_interface/frontier.nit:536 */
fra.me.REG[5] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[4])(fra.me.REG[4]);
REGB0 = TAG_Int(3);
fra.me.REG[6] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
fra.me.REG[6] = CALL_standard___string___Object___to_s(fra.me.REG[6])(fra.me.REG[6]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[6]);
- /* ./native_interface//frontier.nit:521 */
+ /* native_interface/frontier.nit:537 */
fra.me.REG[6] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[4])(fra.me.REG[4]);
REGB0 = TAG_Int(3);
fra.me.REG[5] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[8]);
fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[5]);
- /* ./native_interface//frontier.nit:522 */
+ /* native_interface/frontier.nit:538 */
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
}
- /* ./native_interface//frontier.nit:525 */
+ /* native_interface/frontier.nit:541 */
fra.me.REG[2] = CALL_metamodel___static_type___MMExplicitImport___signature(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[2] = CALL_metamodel___static_type___MMSignature___params(fra.me.REG[2])(fra.me.REG[2]);
- /* ./../lib/standard//collection//array.nit:234 */
+ /* ../lib/standard/collection/array.nit:269 */
REGB0 = TAG_Int(0);
- /* ./../lib/standard//collection//array.nit:235 */
+ /* ../lib/standard/collection/array.nit:270 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 235);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 270);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
- /* ./../lib/standard//collection//array.nit:236 */
+ /* ../lib/standard/collection/array.nit:271 */
fra.me.REG[5] = ATTR_standard___collection___array___Array____items(fra.me.REG[2]);
- /* ./../lib/standard//collection//array.nit:237 */
+ /* ../lib/standard/collection/array.nit:272 */
while(1) {
- /* ./../lib/standard//collection//array.nit:23 */
+ /* ../lib/standard/collection/array.nit:24 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 23);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
- /* ./../lib/standard//kernel.nit:215 */
+ REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB2)) {
+ } else {
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
+ }
+ /* ../lib/standard/kernel.nit:232 */
REGB1 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//array.nit:237 */
+ /* ../lib/standard/collection/array.nit:272 */
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//array.nit:238 */
+ /* ../lib/standard/collection/array.nit:273 */
REGB1 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 238);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 273);
}
- /* ./../lib/standard//collection//array.nit:654 */
+ /* ../lib/standard/collection/array.nit:718 */
fra.me.REG[6] = ((Nit_NativeArray)fra.me.REG[5])->val[UNTAG_Int(REGB0)];
- /* ./native_interface//frontier.nit:526 */
+ /* native_interface/frontier.nit:542 */
REGB1 = TAG_Int(3);
fra.me.REG[8] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
if (!once_value_19) {
fra.me.REG[7] = fra.me.REG[7];
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[7]);
fra.me.REG[8] = CALL_standard___string___Object___to_s(fra.me.REG[8])(fra.me.REG[8]);
- /* ./native_interface//frontier.nit:527 */
+ /* native_interface/frontier.nit:543 */
fra.me.REG[7] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[4])(fra.me.REG[4]);
REGB1 = TAG_Int(3);
fra.me.REG[9] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[9])(fra.me.REG[9], fra.me.REG[10]);
fra.me.REG[9] = CALL_standard___string___Object___to_s(fra.me.REG[9])(fra.me.REG[9]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
- /* ./native_interface//frontier.nit:528 */
+ /* native_interface/frontier.nit:544 */
fra.me.REG[9] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[4])(fra.me.REG[4]);
REGB1 = TAG_Int(3);
fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[6]);
fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[9])(fra.me.REG[9], fra.me.REG[7]);
- /* ./native_interface//frontier.nit:529 */
+ /* native_interface/frontier.nit:545 */
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[8]);
- /* ./../lib/standard//collection//array.nit:239 */
+ /* ../lib/standard/collection/array.nit:274 */
REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:218 */
+ /* ../lib/standard/kernel.nit:235 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//array.nit:239 */
+ /* ../lib/standard/collection/array.nit:274 */
REGB0 = REGB1;
} else {
- /* ./../lib/standard//collection//array.nit:237 */
+ /* ../lib/standard/collection/array.nit:272 */
goto label25;
}
}
label25: while(0);
- /* ./native_interface//frontier.nit:533 */
+ /* native_interface/frontier.nit:549 */
fra.me.REG[5] = NIT_NULL;
- /* ./native_interface//frontier.nit:536 */
+ /* native_interface/frontier.nit:552 */
fra.me.REG[2] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[2] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[2])(fra.me.REG[2]);
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 536);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 552);
}
fra.me.REG[2] = CALL_metamodel___static_type___MMSignature___return_type(fra.me.REG[2])(fra.me.REG[2]);
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:537 */
+ /* native_interface/frontier.nit:553 */
fra.me.REG[2] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[2] = CALL_metamodel___static_type___MMLocalProperty___signature(fra.me.REG[2])(fra.me.REG[2]);
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 537);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 553);
}
fra.me.REG[2] = CALL_metamodel___static_type___MMSignature___return_type(fra.me.REG[2])(fra.me.REG[2]);
fra.me.REG[5] = fra.me.REG[2];
} else {
- /* ./native_interface//frontier.nit:538 */
+ /* native_interface/frontier.nit:554 */
fra.me.REG[2] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = CALL_syntax___syntax_base___MMLocalProperty___is_init(fra.me.REG[2])(fra.me.REG[2]);
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:539 */
+ /* native_interface/frontier.nit:555 */
fra.me.REG[2] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[2] = CALL_metamodel___abstractmetamodel___MMLocalProperty___local_class(fra.me.REG[2])(fra.me.REG[2]);
fra.me.REG[2] = CALL_metamodel___static_type___MMLocalClass___get_type(fra.me.REG[2])(fra.me.REG[2]);
fra.me.REG[5] = fra.me.REG[2];
}
}
- /* ./native_interface//frontier.nit:542 */
+ /* native_interface/frontier.nit:558 */
fra.me.REG[2] = NEW_Buffer_standard___string___Buffer___init();
- /* ./native_interface//frontier.nit:543 */
+ /* native_interface/frontier.nit:559 */
REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:544 */
- fra.me.REG[8] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[4])(fra.me.REG[4]);
- REGB0 = TAG_Int(3);
- fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ /* native_interface/frontier.nit:560 */
if (!once_value_26) {
- fra.me.REG[9] = BOX_NativeString("");
- REGB0 = TAG_Int(0);
- fra.me.REG[9] = NEW_String_standard___string___String___with_native(fra.me.REG[9], REGB0);
- once_value_26 = fra.me.REG[9];
+ fra.me.REG[8] = BOX_NativeString("result___nitni");
+ REGB0 = TAG_Int(14);
+ fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
+ once_value_26 = fra.me.REG[8];
register_static_object(&once_value_26);
- } else fra.me.REG[9] = once_value_26;
- fra.me.REG[9] = fra.me.REG[9];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
- REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
- if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 544);
+ } else fra.me.REG[8] = once_value_26;
+ fra.me.REG[8] = fra.me.REG[8];
+ REGB0 = TAG_Bool(true);
+ REGB1 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
+ if (UNTAG_Bool(REGB1)) {
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 560);
}
- fra.me.REG[9] = CALL_native_interface___ni_metamodel___MMType___friendly_extern_name(fra.me.REG[5])(fra.me.REG[5]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
+ CALL_native_interface___frontier___MMType___compile_new_local_ref(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[8], fra.me.REG[4], REGB0);
+ /* native_interface/frontier.nit:561 */
+ fra.me.REG[8] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[4])(fra.me.REG[4]);
if (!once_value_27) {
- fra.me.REG[9] = BOX_NativeString(" result___nitni;\n");
- REGB0 = TAG_Int(17);
- fra.me.REG[9] = NEW_String_standard___string___String___with_native(fra.me.REG[9], REGB0);
- once_value_27 = fra.me.REG[9];
+ fra.me.REG[7] = BOX_NativeString("val_t result___nit;\n");
+ REGB0 = TAG_Int(20);
+ fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
+ once_value_27 = fra.me.REG[7];
register_static_object(&once_value_27);
- } else fra.me.REG[9] = once_value_27;
- fra.me.REG[9] = fra.me.REG[9];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[9]);
- fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
+ } else fra.me.REG[7] = once_value_27;
+ fra.me.REG[7] = fra.me.REG[7];
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[7]);
- /* ./native_interface//frontier.nit:545 */
- fra.me.REG[7] = CALL_native_interface___ni_tools___FunctionCompiler___decls(fra.me.REG[4])(fra.me.REG[4]);
+ /* native_interface/frontier.nit:562 */
if (!once_value_28) {
- fra.me.REG[8] = BOX_NativeString("val_t result___nit;\n");
- REGB0 = TAG_Int(20);
- fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
- once_value_28 = fra.me.REG[8];
+ fra.me.REG[7] = BOX_NativeString("result___nit = ");
+ REGB0 = TAG_Int(15);
+ fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
+ once_value_28 = fra.me.REG[7];
register_static_object(&once_value_28);
- } else fra.me.REG[8] = once_value_28;
- fra.me.REG[8] = fra.me.REG[8];
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]);
- /* ./native_interface//frontier.nit:546 */
+ } else fra.me.REG[7] = once_value_28;
+ fra.me.REG[7] = fra.me.REG[7];
+ CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[7]);
+ }
+ /* native_interface/frontier.nit:566 */
+ fra.me.REG[7] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
+ REGB0 = CALL_syntax___syntax_base___MMLocalProperty___is_init(fra.me.REG[7])(fra.me.REG[7]);
+ if (UNTAG_Bool(REGB0)) {
+ /* native_interface/frontier.nit:567 */
+ REGB0 = TAG_Int(5);
+ fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_29) {
- fra.me.REG[8] = BOX_NativeString("result___nit = ");
- REGB0 = TAG_Int(15);
+ fra.me.REG[8] = BOX_NativeString("NEW_");
+ REGB0 = TAG_Int(4);
fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
once_value_29 = fra.me.REG[8];
register_static_object(&once_value_29);
} else fra.me.REG[8] = once_value_29;
fra.me.REG[8] = fra.me.REG[8];
- CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[8]);
- }
- /* ./native_interface//frontier.nit:550 */
- fra.me.REG[8] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
- REGB0 = CALL_syntax___syntax_base___MMLocalProperty___is_init(fra.me.REG[8])(fra.me.REG[8]);
- if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:551 */
- REGB0 = TAG_Int(5);
- fra.me.REG[8] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]);
+ fra.me.REG[8] = CALL_metamodel___abstractmetamodel___MMExplicitImport___local_class(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[8] = CALL_standard___string___Object___to_s(fra.me.REG[8])(fra.me.REG[8]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]);
if (!once_value_30) {
- fra.me.REG[7] = BOX_NativeString("NEW_");
- REGB0 = TAG_Int(4);
- fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
- once_value_30 = fra.me.REG[7];
+ fra.me.REG[8] = BOX_NativeString("_");
+ REGB0 = TAG_Int(1);
+ fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
+ once_value_30 = fra.me.REG[8];
register_static_object(&once_value_30);
- } else fra.me.REG[7] = once_value_30;
- fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[7]);
- fra.me.REG[7] = CALL_metamodel___abstractmetamodel___MMExplicitImport___local_class(fra.me.REG[0])(fra.me.REG[0]);
- fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[7]);
+ } else fra.me.REG[8] = once_value_30;
+ fra.me.REG[8] = fra.me.REG[8];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]);
+ fra.me.REG[8] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[8] = CALL_metamodel___abstractmetamodel___MMLocalProperty___global(fra.me.REG[8])(fra.me.REG[8]);
+ fra.me.REG[8] = CALL_metamodel___abstractmetamodel___MMGlobalProperty___intro(fra.me.REG[8])(fra.me.REG[8]);
+ fra.me.REG[8] = CALL_compiling___compiling_base___MMLocalProperty___cname(fra.me.REG[8])(fra.me.REG[8]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]);
if (!once_value_31) {
- fra.me.REG[7] = BOX_NativeString("_");
- REGB0 = TAG_Int(1);
- fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
- once_value_31 = fra.me.REG[7];
- register_static_object(&once_value_31);
- } else fra.me.REG[7] = once_value_31;
- fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[7]);
- fra.me.REG[7] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
- fra.me.REG[7] = CALL_metamodel___abstractmetamodel___MMLocalProperty___global(fra.me.REG[7])(fra.me.REG[7]);
- fra.me.REG[7] = CALL_metamodel___abstractmetamodel___MMGlobalProperty___intro(fra.me.REG[7])(fra.me.REG[7]);
- fra.me.REG[7] = CALL_compiling___compiling_base___MMLocalProperty___cname(fra.me.REG[7])(fra.me.REG[7]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[7]);
- if (!once_value_32) {
- fra.me.REG[7] = BOX_NativeString("");
+ fra.me.REG[8] = BOX_NativeString("");
REGB0 = TAG_Int(0);
- fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
- once_value_32 = fra.me.REG[7];
- register_static_object(&once_value_32);
- } else fra.me.REG[7] = once_value_32;
- fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[7]);
- fra.me.REG[8] = CALL_standard___string___Object___to_s(fra.me.REG[8])(fra.me.REG[8]);
- CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[8]);
+ fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
+ once_value_31 = fra.me.REG[8];
+ register_static_object(&once_value_31);
+ } else fra.me.REG[8] = once_value_31;
+ fra.me.REG[8] = fra.me.REG[8];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]);
+ fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
+ CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[7]);
} else {
- /* ./native_interface//frontier.nit:553 */
+ /* native_interface/frontier.nit:569 */
REGB0 = TAG_Int(3);
- fra.me.REG[8] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_33) {
- fra.me.REG[7] = BOX_NativeString("");
+ fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_32) {
+ fra.me.REG[8] = BOX_NativeString("");
REGB0 = TAG_Int(0);
- fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
- once_value_33 = fra.me.REG[7];
- register_static_object(&once_value_33);
- } else fra.me.REG[7] = once_value_33;
- fra.me.REG[7] = fra.me.REG[7];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[7]);
+ fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
+ once_value_32 = fra.me.REG[8];
+ register_static_object(&once_value_32);
+ } else fra.me.REG[8] = once_value_32;
+ fra.me.REG[8] = fra.me.REG[8];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[8]);
fra.me.REG[0] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[0] = CALL_metamodel___abstractmetamodel___MMLocalProperty___global(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[0] = CALL_compiling___compiling_base___MMGlobalProperty___meth_call(fra.me.REG[0])(fra.me.REG[0]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[0]);
- if (!once_value_34) {
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[0]);
+ if (!once_value_33) {
fra.me.REG[0] = BOX_NativeString("( recv___nit )");
REGB0 = TAG_Int(14);
fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_34 = fra.me.REG[0];
- register_static_object(&once_value_34);
- } else fra.me.REG[0] = once_value_34;
+ once_value_33 = fra.me.REG[0];
+ register_static_object(&once_value_33);
+ } else fra.me.REG[0] = once_value_33;
fra.me.REG[0] = fra.me.REG[0];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[0]);
- fra.me.REG[8] = CALL_standard___string___Object___to_s(fra.me.REG[8])(fra.me.REG[8]);
- CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[8]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[0]);
+ fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
+ CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[7]);
}
- /* ./native_interface//frontier.nit:556 */
+ /* native_interface/frontier.nit:572 */
REGB0 = TAG_Int(3);
- fra.me.REG[8] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_35) {
+ fra.me.REG[7] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_34) {
fra.me.REG[0] = BOX_NativeString("( ");
REGB0 = TAG_Int(2);
fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_35 = fra.me.REG[0];
- register_static_object(&once_value_35);
- } else fra.me.REG[0] = once_value_35;
+ once_value_34 = fra.me.REG[0];
+ register_static_object(&once_value_34);
+ } else fra.me.REG[0] = once_value_34;
fra.me.REG[0] = fra.me.REG[0];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[0]);
- if (!once_value_36) {
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[0]);
+ if (!once_value_35) {
fra.me.REG[0] = BOX_NativeString(", ");
REGB0 = TAG_Int(2);
fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_36 = fra.me.REG[0];
- register_static_object(&once_value_36);
- } else fra.me.REG[0] = once_value_36;
+ once_value_35 = fra.me.REG[0];
+ register_static_object(&once_value_35);
+ } else fra.me.REG[0] = once_value_35;
fra.me.REG[0] = fra.me.REG[0];
fra.me.REG[0] = CALL_standard___string___Collection___join(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[0]);
- if (!once_value_37) {
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[0]);
+ if (!once_value_36) {
fra.me.REG[0] = BOX_NativeString(" );\n");
REGB0 = TAG_Int(4);
fra.me.REG[0] = NEW_String_standard___string___String___with_native(fra.me.REG[0], REGB0);
- once_value_37 = fra.me.REG[0];
- register_static_object(&once_value_37);
- } else fra.me.REG[0] = once_value_37;
+ once_value_36 = fra.me.REG[0];
+ register_static_object(&once_value_36);
+ } else fra.me.REG[0] = once_value_36;
fra.me.REG[0] = fra.me.REG[0];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[0]);
- fra.me.REG[8] = CALL_standard___string___Object___to_s(fra.me.REG[8])(fra.me.REG[8]);
- CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[8]);
- /* ./native_interface//frontier.nit:558 */
- fra.me.REG[8] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[4])(fra.me.REG[4]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[0]);
+ fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
+ CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[7]);
+ /* native_interface/frontier.nit:574 */
+ fra.me.REG[7] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[4])(fra.me.REG[4]);
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
- CALL_compiling___compiling_writer___Writer___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[2]);
- /* ./native_interface//frontier.nit:561 */
+ CALL_compiling___compiling_writer___Writer___add(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[2]);
+ /* native_interface/frontier.nit:577 */
REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:562 */
- if (!once_value_38) {
+ /* native_interface/frontier.nit:578 */
+ if (!once_value_37) {
fra.me.REG[2] = BOX_NativeString("result___nitni");
REGB0 = TAG_Int(14);
fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
- once_value_38 = fra.me.REG[2];
- register_static_object(&once_value_38);
- } else fra.me.REG[2] = once_value_38;
+ once_value_37 = fra.me.REG[2];
+ register_static_object(&once_value_37);
+ } else fra.me.REG[2] = once_value_37;
fra.me.REG[2] = fra.me.REG[2];
- /* ./native_interface//frontier.nit:563 */
- if (!once_value_39) {
- fra.me.REG[8] = BOX_NativeString("result___nit");
+ /* native_interface/frontier.nit:579 */
+ if (!once_value_38) {
+ fra.me.REG[7] = BOX_NativeString("result___nit");
REGB0 = TAG_Int(12);
+ fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
+ once_value_38 = fra.me.REG[7];
+ register_static_object(&once_value_38);
+ } else fra.me.REG[7] = once_value_38;
+ fra.me.REG[7] = fra.me.REG[7];
+ /* native_interface/frontier.nit:581 */
+ fra.me.REG[0] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[4])(fra.me.REG[4]);
+ REGB0 = TAG_Int(3);
+ fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ if (!once_value_39) {
+ fra.me.REG[8] = BOX_NativeString("");
+ REGB0 = TAG_Int(0);
fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
once_value_39 = fra.me.REG[8];
register_static_object(&once_value_39);
} else fra.me.REG[8] = once_value_39;
fra.me.REG[8] = fra.me.REG[8];
- /* ./native_interface//frontier.nit:565 */
- fra.me.REG[0] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[4])(fra.me.REG[4]);
- REGB0 = TAG_Int(3);
- fra.me.REG[3] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[8]);
+ REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 581);
+ }
+ fra.me.REG[7] = CALL_native_interface___ni_metamodel___MMType___assign_to_friendly(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[2], fra.me.REG[7]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[7]);
if (!once_value_40) {
- fra.me.REG[7] = BOX_NativeString("");
- REGB0 = TAG_Int(0);
+ fra.me.REG[7] = BOX_NativeString(";\n");
+ REGB0 = TAG_Int(2);
fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
once_value_40 = fra.me.REG[7];
register_static_object(&once_value_40);
} else fra.me.REG[7] = once_value_40;
fra.me.REG[7] = fra.me.REG[7];
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[7]);
- REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
- if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 565);
- }
- fra.me.REG[8] = CALL_native_interface___ni_metamodel___MMType___assign_to_friendly(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[2], fra.me.REG[8]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[8]);
- if (!once_value_41) {
- fra.me.REG[8] = BOX_NativeString(";\n");
- REGB0 = TAG_Int(2);
- fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
- once_value_41 = fra.me.REG[8];
- register_static_object(&once_value_41);
- } else fra.me.REG[8] = once_value_41;
- fra.me.REG[8] = fra.me.REG[8];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[8]);
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
- /* ./native_interface//frontier.nit:566 */
+ /* native_interface/frontier.nit:582 */
fra.me.REG[3] = CALL_native_interface___ni_tools___FunctionCompiler___exprs(fra.me.REG[4])(fra.me.REG[4]);
REGB0 = TAG_Int(3);
fra.me.REG[0] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
- if (!once_value_42) {
- fra.me.REG[8] = BOX_NativeString("return ");
+ if (!once_value_41) {
+ fra.me.REG[7] = BOX_NativeString("return ");
REGB0 = TAG_Int(7);
- fra.me.REG[8] = NEW_String_standard___string___String___with_native(fra.me.REG[8], REGB0);
- once_value_42 = fra.me.REG[8];
- register_static_object(&once_value_42);
- } else fra.me.REG[8] = once_value_42;
- fra.me.REG[8] = fra.me.REG[8];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[8]);
+ fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
+ once_value_41 = fra.me.REG[7];
+ register_static_object(&once_value_41);
+ } else fra.me.REG[7] = once_value_41;
+ fra.me.REG[7] = fra.me.REG[7];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[7]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
- if (!once_value_43) {
+ if (!once_value_42) {
fra.me.REG[2] = BOX_NativeString(";\n");
REGB0 = TAG_Int(2);
fra.me.REG[2] = NEW_String_standard___string___String___with_native(fra.me.REG[2], REGB0);
- once_value_43 = fra.me.REG[2];
- register_static_object(&once_value_43);
- } else fra.me.REG[2] = once_value_43;
+ once_value_42 = fra.me.REG[2];
+ register_static_object(&once_value_42);
+ } else fra.me.REG[2] = once_value_42;
fra.me.REG[2] = fra.me.REG[2];
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
fra.me.REG[0] = CALL_standard___string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
CALL_compiling___compiling_writer___Writer___add(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[0]);
}
- /* ./native_interface//frontier.nit:569 */
+ /* native_interface/frontier.nit:585 */
fra.me.REG[1] = CALL_native_interface___frontier___FrontierVisitor___body(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[4] = CALL_native_interface___ni_tools___FunctionCompiler___to_writer(fra.me.REG[4])(fra.me.REG[4]);
CALL_compiling___compiling_writer___Writer___append(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[4]);
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 572;
+ fra.me.line = 588;
fra.me.meth = LOCATE_native_interface___frontier___MMExplicitImport___hash;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./native_interface//frontier.nit:574 */
+ /* native_interface/frontier.nit:590 */
fra.me.REG[1] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[1] = CALL_metamodel___abstractmetamodel___MMLocalProperty___global(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[0] = CALL_metamodel___abstractmetamodel___MMExplicitImport___local_class(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[0] = CALL_standard___string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
REGB1 = CALL_standard___hash___Object___hash(fra.me.REG[0])(fra.me.REG[0]);
- /* ./../lib/standard//kernel.nit:218 */
+ /* ../lib/standard/kernel.nit:235 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ./native_interface//frontier.nit:574 */
+ /* native_interface/frontier.nit:590 */
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_native_interface___frontier;
- fra.me.line = 576;
+ fra.me.line = 592;
fra.me.meth = LOCATE_native_interface___frontier___MMExplicitImport_____eqeq;
fra.me.has_broke = 0;
fra.me.REG_size = 4;
+ fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[3] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./native_interface//frontier.nit:578 */
+ /* native_interface/frontier.nit:594 */
REGB0 = TAG_Bool((fra.me.REG[1]!=NIT_NULL) && VAL_ISA(fra.me.REG[1], COLOR_metamodel___abstractmetamodel___MMExplicitImport, ID_metamodel___abstractmetamodel___MMExplicitImport)) /*cast MMExplicitImport*/;
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:579 */
+ /* native_interface/frontier.nit:595 */
fra.me.REG[2] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 579);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 595);
}
fra.me.REG[3] = CALL_metamodel___abstractmetamodel___MMExplicitImport___method(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[2],fra.me.REG[3]));
REGB0 = REGB1;
}
} else {
- /* ./native_interface//frontier.nit:578 */
+ /* native_interface/frontier.nit:594 */
REGB1 = TAG_Bool(false);
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
- /* ./native_interface//frontier.nit:579 */
+ /* native_interface/frontier.nit:595 */
fra.me.REG[0] = CALL_metamodel___abstractmetamodel___MMExplicitImport___local_class(fra.me.REG[0])(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 579);
+ nit_abort("Reciever is null", NULL, LOCATE_native_interface___frontier, 595);
}
fra.me.REG[1] = CALL_metamodel___abstractmetamodel___MMExplicitImport___local_class(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[0],fra.me.REG[1]));
REGB0 = REGB1;
}
} else {
- /* ./native_interface//frontier.nit:578 */
+ /* native_interface/frontier.nit:594 */
REGB1 = TAG_Bool(false);
REGB0 = REGB1;
}