/* This C file is generated by NIT to compile module syntax___scope. */
#include "syntax___scope._sep.h"
+static const char LOCATE_syntax___scope___ScopeContext_____bra[] = "scope::ScopeContext::[]";
val_t syntax___scope___ScopeContext_____bra(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 45;
+ fra.me.line = 40;
fra.me.meth = LOCATE_syntax___scope___ScopeContext_____bra;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./syntax//scope.nit:48 */
+ /* syntax/scope.nit:43 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 48);
+ nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 43);
}
fra.me.REG[2] = ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0]);
- /* ./../lib/standard//collection//array.nit:24 */
+ /* ../lib/standard/collection/array.nit:24 */
REGB0 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
- /* ./syntax//scope.nit:48 */
+ /* syntax/scope.nit:43 */
REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB1));
- /* ./syntax//scope.nit:49 */
+ /* syntax/scope.nit:44 */
while(1) {
REGB0 = TAG_Int(0);
REGB2 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ./../lib/standard//kernel.nit:233 */
+ /* ../lib/standard/kernel.nit:236 */
REGB0 = TAG_Bool(UNTAG_Int(REGB1)>=UNTAG_Int(REGB0));
- /* ./syntax//scope.nit:49 */
+ /* syntax/scope.nit:44 */
if (UNTAG_Bool(REGB0)) {
- /* ./syntax//scope.nit:50 */
+ /* syntax/scope.nit:45 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 50);
+ nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 45);
}
fra.me.REG[2] = ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0]);
- /* ./../lib/standard//collection//array.nit:278 */
+ /* ../lib/standard/collection/array.nit:278 */
REGB0 = REGB1;
- /* ./../lib/standard//collection//array.nit:280 */
+ /* ../lib/standard/collection/array.nit:280 */
REGB2 = TAG_Int(0);
REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
if (UNTAG_Bool(REGB3)) {
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ./../lib/standard//kernel.nit:233 */
+ /* ../lib/standard/kernel.nit:236 */
REGB2 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB2));
- /* ./../lib/standard//collection//array.nit:280 */
+ /* ../lib/standard/collection/array.nit:280 */
if (UNTAG_Bool(REGB2)) {
REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL);
if (UNTAG_Bool(REGB2)) {
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ./../lib/standard//kernel.nit:232 */
+ /* ../lib/standard/kernel.nit:235 */
REGB2 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB2));
} else {
- /* ./../lib/standard//collection//array.nit:280 */
- REGB3 = TAG_Bool(false);
+ /* ../lib/standard/collection/array.nit:280 */
+ REGB3 = TAG_Bool(0);
REGB2 = REGB3;
}
if (UNTAG_Bool(REGB2)) {
} else {
- nit_abort("Assert %s failed", "'index'", LOCATE_standard___collection___array, 280);
+ nit_abort("Assert '%s' failed", "index", LOCATE_standard___collection___array, 280);
}
- /* ./../lib/standard//collection//array.nit:281 */
+ /* ../lib/standard/collection/array.nit:281 */
fra.me.REG[2] = ATTR_standard___collection___array___Array____items(fra.me.REG[2]);
REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 281);
}
- /* ./../lib/standard//collection//array.nit:718 */
+ /* ../lib/standard/collection/array.nit:718 */
fra.me.REG[2] = ((Nit_NativeArray)fra.me.REG[2])->val[UNTAG_Int(REGB0)];
- /* ./../lib/standard//collection//array.nit:281 */
+ /* ../lib/standard/collection/array.nit:281 */
goto label1;
label1: while(0);
- /* ./syntax//scope.nit:51 */
+ /* syntax/scope.nit:46 */
fra.me.REG[2] = CALL_syntax___scope___ScopeBlock___get_variable(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
- /* ./syntax//scope.nit:52 */
+ /* syntax/scope.nit:47 */
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
- REGB2 = TAG_Bool(false);
+ REGB2 = TAG_Bool(0);
REGB0 = REGB2;
} else {
REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
if (UNTAG_Bool(REGB0)) {
goto label2;
}
- /* ./syntax//scope.nit:53 */
+ /* syntax/scope.nit:48 */
REGB0 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB0 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB0));
- /* ./syntax//scope.nit:53 */
+ /* syntax/scope.nit:48 */
REGB1 = REGB0;
} else {
- /* ./syntax//scope.nit:49 */
+ /* syntax/scope.nit:44 */
goto label3;
}
}
label3: while(0);
- /* ./syntax//scope.nit:55 */
+ /* syntax/scope.nit:50 */
fra.me.REG[2] = NIT_NULL;
goto label2;
label2: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[2];
}
+static const char LOCATE_syntax___scope___ScopeContext___add_variable[] = "scope::ScopeContext::add_variable";
void syntax___scope___ScopeContext___add_variable(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[6];} fra;
val_t REGB0;
static val_t once_value_3; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 58;
+ fra.me.line = 53;
fra.me.meth = LOCATE_syntax___scope___ScopeContext___add_variable;
fra.me.has_broke = 0;
fra.me.REG_size = 7;
fra.me.REG[6] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./syntax//scope.nit:62 */
+ /* syntax/scope.nit:57 */
fra.me.REG[2] = CALL_syntax___syntax_base___Variable___name(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[2] = CALL_syntax___scope___ScopeContext_____bra(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
- /* ./syntax//scope.nit:63 */
+ /* syntax/scope.nit:58 */
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./syntax//scope.nit:64 */
+ /* syntax/scope.nit:59 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____visitor(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_visitor", LOCATE_syntax___scope, 64);
+ nit_abort("Uninitialized attribute %s", "_visitor", LOCATE_syntax___scope, 59);
}
fra.me.REG[3] = ATTR_syntax___scope___ScopeContext____visitor(fra.me.REG[0]);
fra.me.REG[4] = CALL_syntax___syntax_base___Variable___decl(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]);
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 64);
+ nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 59);
}
fra.me.REG[2] = CALL_syntax___syntax_base___Variable___decl(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_syntax___scope, 64);
+ nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 59);
}
fra.me.REG[2] = CALL_parser___parser_nodes___ANode___location(fra.me.REG[2])(fra.me.REG[2]);
fra.me.REG[6] = CALL_syntax___syntax_base___Variable___decl(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 64);
+ nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 59);
}
fra.me.REG[6] = CALL_parser___parser_nodes___ANode___location(fra.me.REG[6])(fra.me.REG[6]);
fra.me.REG[6] = CALL_location___Location___relative_to(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[6]);
fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[5])(fra.me.REG[5]);
CALL_syntax___syntax_base___AbsSyntaxVisitor___error(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[4], fra.me.REG[5]);
}
- /* ./syntax//scope.nit:66 */
+ /* syntax/scope.nit:61 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 66);
+ nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 61);
}
fra.me.REG[5] = ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0]);
fra.me.REG[5] = CALL_standard___collection___abstract_collection___SequenceRead___last(fra.me.REG[5])(fra.me.REG[5]);
REGB0 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 66);
+ nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 61);
}
CALL_syntax___scope___ScopeBlock___add_variable(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[1]);
- /* ./syntax//scope.nit:67 */
+ /* syntax/scope.nit:62 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____variables(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_variables", LOCATE_syntax___scope, 67);
+ nit_abort("Uninitialized attribute %s", "_variables", LOCATE_syntax___scope, 62);
}
fra.me.REG[0] = ATTR_syntax___scope___ScopeContext____variables(fra.me.REG[0]);
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_syntax___scope___ScopeContext___push[] = "scope::ScopeContext::push";
void syntax___scope___ScopeContext___push(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 70;
+ fra.me.line = 65;
fra.me.meth = LOCATE_syntax___scope___ScopeContext___push;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./syntax//scope.nit:73 */
+ /* syntax/scope.nit:68 */
fra.me.REG[1] = NEW_ScopeBlock_syntax___scope___ScopeBlock___init(fra.me.REG[1]);
- /* ./syntax//scope.nit:74 */
+ /* syntax/scope.nit:69 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 74);
+ nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 69);
}
fra.me.REG[0] = ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0]);
CALL_standard___collection___abstract_collection___Sequence___push(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_syntax___scope___ScopeContext___push_escapable[] = "scope::ScopeContext::push_escapable";
void syntax___scope___ScopeContext___push_escapable(val_t p0, val_t p1, val_t p2){
- struct {struct stack_frame_t me; val_t MORE_REG[9];} fra;
+ struct {struct stack_frame_t me; val_t MORE_REG[7];} fra;
val_t REGB0;
val_t REGB1;
val_t REGB2;
+ val_t REGB3;
val_t tmp;
- static val_t once_value_1; /* Once value */
static val_t once_value_2; /* Once value */
static val_t once_value_3; /* Once value */
+ static val_t once_value_4; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 77;
+ fra.me.line = 72;
fra.me.meth = LOCATE_syntax___scope___ScopeContext___push_escapable;
fra.me.has_broke = 0;
- fra.me.REG_size = 10;
+ 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[5] = NIT_NULL;
fra.me.REG[6] = NIT_NULL;
fra.me.REG[7] = NIT_NULL;
- fra.me.REG[8] = NIT_NULL;
- fra.me.REG[9] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
fra.me.REG[2] = p2;
- /* ./syntax//scope.nit:81 */
+ /* syntax/scope.nit:76 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 81);
+ nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 76);
}
fra.me.REG[3] = ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0]);
CALL_standard___collection___abstract_collection___Sequence___push(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1]);
- /* ./syntax//scope.nit:82 */
+ /* syntax/scope.nit:77 */
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./syntax//scope.nit:83 */
+ /* syntax/scope.nit:78 */
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 83);
+ nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 78);
}
fra.me.REG[3] = CALL_parser___parser_nodes___ALabel___n_id(fra.me.REG[2])(fra.me.REG[2]);
fra.me.REG[3] = CALL_syntax___syntax_base___Token___to_symbol(fra.me.REG[3])(fra.me.REG[3]);
- /* ./syntax//scope.nit:84 */
- REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____labels(fra.me.REG[0])!=NIT_NULL);
+ /* syntax/scope.nit:79 */
+ REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_labels", LOCATE_syntax___scope, 84);
+ nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 79);
}
- fra.me.REG[4] = ATTR_syntax___scope___ScopeContext____labels(fra.me.REG[0]);
- /* ./../lib/standard//collection//array.nit:269 */
- REGB0 = TAG_Int(0);
- /* ./../lib/standard//collection//array.nit:270 */
- REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL);
- if (UNTAG_Bool(REGB1)) {
+ fra.me.REG[4] = ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0]);
+ /* ../lib/standard/collection/array.nit:24 */
+ REGB0 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 270);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
- REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4]);
- /* ./../lib/standard//collection//array.nit:271 */
- fra.me.REG[5] = ATTR_standard___collection___array___Array____items(fra.me.REG[4]);
- /* ./../lib/standard//collection//array.nit:272 */
+ REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4]);
+ /* syntax/scope.nit:79 */
+ REGB1 = TAG_Int(1);
+ /* ../lib/standard/kernel.nit:240 */
+ REGB1 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB1));
+ /* syntax/scope.nit:80 */
while(1) {
- /* ./../lib/standard//collection//array.nit:24 */
- REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL);
- if (UNTAG_Bool(REGB1)) {
- } else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
- }
- REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4]);
- REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
+ REGB0 = TAG_Int(0);
+ REGB2 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
if (UNTAG_Bool(REGB2)) {
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ./../lib/standard//kernel.nit:232 */
- REGB1 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//array.nit:272 */
- if (UNTAG_Bool(REGB1)) {
- /* ./../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, 273);
+ /* ../lib/standard/kernel.nit:236 */
+ REGB0 = TAG_Bool(UNTAG_Int(REGB1)>=UNTAG_Int(REGB0));
+ /* syntax/scope.nit:80 */
+ if (UNTAG_Bool(REGB0)) {
+ /* syntax/scope.nit:81 */
+ REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0])!=NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 81);
}
- /* ./../lib/standard//collection//array.nit:718 */
- fra.me.REG[6] = ((Nit_NativeArray)fra.me.REG[5])->val[UNTAG_Int(REGB0)];
- /* ./syntax//scope.nit:85 */
- REGB1 = TAG_Bool(IS_EQUAL_ON(fra.me.REG[6],fra.me.REG[2]));
- if (UNTAG_Bool(REGB1)) {
+ fra.me.REG[4] = ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0]);
+ /* ../lib/standard/collection/array.nit:278 */
+ REGB0 = REGB1;
+ /* ../lib/standard/collection/array.nit:280 */
+ REGB2 = TAG_Int(0);
+ REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB3)) {
} else {
- REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
+ }
+ /* ../lib/standard/kernel.nit:236 */
+ REGB2 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB2));
+ /* ../lib/standard/collection/array.nit:280 */
+ if (UNTAG_Bool(REGB2)) {
+ REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4])!=NIT_NULL);
if (UNTAG_Bool(REGB2)) {
- REGB2 = TAG_Bool(false);
- REGB1 = REGB2;
} else {
- REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[6]);
- REGB1 = REGB2;
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 280);
+ }
+ REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[4]);
+ REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB3)) {
+ } else {
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
+ /* ../lib/standard/kernel.nit:235 */
+ REGB2 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB2));
+ } else {
+ /* ../lib/standard/collection/array.nit:280 */
+ REGB3 = TAG_Bool(0);
+ REGB2 = REGB3;
+ }
+ if (UNTAG_Bool(REGB2)) {
+ } else {
+ nit_abort("Assert '%s' failed", "index", LOCATE_standard___collection___array, 280);
+ }
+ /* ../lib/standard/collection/array.nit:281 */
+ fra.me.REG[4] = ATTR_standard___collection___array___Array____items(fra.me.REG[4]);
+ REGB2 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
+ if (UNTAG_Bool(REGB2)) {
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 281);
}
- REGB1 = TAG_Bool(!UNTAG_Bool(REGB1));
- if (UNTAG_Bool(REGB1)) {
- fra.me.REG[7] = CALL_parser___parser_nodes___ALabel___n_id(fra.me.REG[6])(fra.me.REG[6]);
- fra.me.REG[7] = CALL_syntax___syntax_base___Token___to_symbol(fra.me.REG[7])(fra.me.REG[7]);
- REGB1 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[3],fra.me.REG[7]));
- if (UNTAG_Bool(REGB1)) {
+ /* ../lib/standard/collection/array.nit:718 */
+ fra.me.REG[4] = ((Nit_NativeArray)fra.me.REG[4])->val[UNTAG_Int(REGB0)];
+ /* ../lib/standard/collection/array.nit:281 */
+ goto label1;
+ label1: while(0);
+ /* syntax/scope.nit:82 */
+ REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[4], COLOR_syntax___scope___EscapableBlock, ID_syntax___scope___EscapableBlock)) /*cast EscapableBlock*/;
+ if (UNTAG_Bool(REGB0)) {
+ fra.me.REG[5] = CALL_syntax___scope___EscapableBlock___lab(fra.me.REG[4])(fra.me.REG[4]);
+ REGB0 = TAG_Bool(IS_EQUAL_ON(fra.me.REG[3],fra.me.REG[5]));
+ if (UNTAG_Bool(REGB0)) {
} else {
- REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[7]);
- REGB1 = REGB2;
+ REGB2 = TAG_Bool(fra.me.REG[5]==NIT_NULL);
+ if (UNTAG_Bool(REGB2)) {
+ REGB2 = TAG_Bool(0);
+ REGB0 = REGB2;
+ } else {
+ REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[3]);
+ REGB0 = REGB2;
+ }
}
} else {
- REGB2 = TAG_Bool(false);
- REGB1 = REGB2;
+ REGB2 = TAG_Bool(0);
+ REGB0 = REGB2;
}
- if (UNTAG_Bool(REGB1)) {
- /* ./syntax//scope.nit:86 */
- fra.me.REG[7] = CALL_syntax___scope___ScopeContext___visitor(fra.me.REG[0])(fra.me.REG[0]);
- REGB1 = TAG_Int(5);
- fra.me.REG[8] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
- if (!once_value_1) {
- fra.me.REG[9] = BOX_NativeString("Syntax error: label ");
- REGB1 = TAG_Int(20);
- fra.me.REG[9] = NEW_String_standard___string___String___with_native(fra.me.REG[9], REGB1);
- once_value_1 = fra.me.REG[9];
- register_static_object(&once_value_1);
- } else fra.me.REG[9] = once_value_1;
- fra.me.REG[9] = fra.me.REG[9];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[9]);
- fra.me.REG[9] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[9]);
+ if (UNTAG_Bool(REGB0)) {
+ /* syntax/scope.nit:83 */
+ fra.me.REG[5] = CALL_syntax___scope___ScopeContext___visitor(fra.me.REG[0])(fra.me.REG[0]);
+ REGB0 = TAG_Int(5);
+ fra.me.REG[6] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_2) {
- fra.me.REG[9] = BOX_NativeString(" already defined at ");
- REGB1 = TAG_Int(20);
- fra.me.REG[9] = NEW_String_standard___string___String___with_native(fra.me.REG[9], REGB1);
- once_value_2 = fra.me.REG[9];
+ fra.me.REG[7] = BOX_NativeString("Syntax error: label ");
+ REGB0 = TAG_Int(20);
+ fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
+ once_value_2 = fra.me.REG[7];
register_static_object(&once_value_2);
- } else fra.me.REG[9] = once_value_2;
- fra.me.REG[9] = fra.me.REG[9];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[9]);
- fra.me.REG[6] = CALL_parser___parser_nodes___ANode___location(fra.me.REG[6])(fra.me.REG[6]);
- REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
- if (UNTAG_Bool(REGB1)) {
- nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 86);
- }
- fra.me.REG[9] = CALL_parser___parser_nodes___ANode___location(fra.me.REG[2])(fra.me.REG[2]);
- fra.me.REG[9] = CALL_location___Location___relative_to(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[9]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[9]);
+ } else fra.me.REG[7] = once_value_2;
+ fra.me.REG[7] = fra.me.REG[7];
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
+ fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
if (!once_value_3) {
- fra.me.REG[9] = BOX_NativeString(".");
- REGB1 = TAG_Int(1);
- fra.me.REG[9] = NEW_String_standard___string___String___with_native(fra.me.REG[9], REGB1);
- once_value_3 = fra.me.REG[9];
+ fra.me.REG[7] = BOX_NativeString(" already defined at ");
+ REGB0 = TAG_Int(20);
+ fra.me.REG[7] = NEW_String_standard___string___String___with_native(fra.me.REG[7], REGB0);
+ once_value_3 = fra.me.REG[7];
register_static_object(&once_value_3);
- } else fra.me.REG[9] = once_value_3;
- fra.me.REG[9] = fra.me.REG[9];
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[8])(fra.me.REG[8], fra.me.REG[9]);
- fra.me.REG[8] = CALL_standard___string___Object___to_s(fra.me.REG[8])(fra.me.REG[8]);
- CALL_syntax___syntax_base___AbsSyntaxVisitor___error(fra.me.REG[7])(fra.me.REG[7], fra.me.REG[2], fra.me.REG[8]);
- /* ./syntax//scope.nit:87 */
- goto label4;
+ } else fra.me.REG[7] = once_value_3;
+ 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[4] = CALL_syntax___scope___EscapableBlock___lab_location(fra.me.REG[4])(fra.me.REG[4]);
+ REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 83);
+ }
+ fra.me.REG[7] = CALL_parser___parser_nodes___ANode___location(fra.me.REG[2])(fra.me.REG[2]);
+ REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 83);
+ }
+ fra.me.REG[7] = CALL_location___Location___relative_to(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[7]);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[6])(fra.me.REG[6], fra.me.REG[7]);
+ if (!once_value_4) {
+ 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_4 = fra.me.REG[7];
+ register_static_object(&once_value_4);
+ } else fra.me.REG[7] = once_value_4;
+ 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_syntax___syntax_base___AbsSyntaxVisitor___error(fra.me.REG[5])(fra.me.REG[5], fra.me.REG[2], fra.me.REG[6]);
+ /* syntax/scope.nit:84 */
+ goto label5;
}
- /* ./../lib/standard//collection//array.nit:274 */
- REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:235 */
- REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//array.nit:274 */
- REGB0 = REGB1;
+ /* syntax/scope.nit:86 */
+ REGB0 = TAG_Int(1);
+ /* ../lib/standard/kernel.nit:240 */
+ REGB0 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB0));
+ /* syntax/scope.nit:86 */
+ REGB1 = REGB0;
} else {
- /* ./../lib/standard//collection//array.nit:272 */
- goto label5;
+ /* syntax/scope.nit:80 */
+ goto label6;
}
}
- label5: while(0);
- /* ./syntax//scope.nit:90 */
- REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____labels(fra.me.REG[0])!=NIT_NULL);
- if (UNTAG_Bool(REGB0)) {
- } else {
- nit_abort("Uninitialized attribute %s", "_labels", LOCATE_syntax___scope, 90);
- }
- fra.me.REG[0] = ATTR_syntax___scope___ScopeContext____labels(fra.me.REG[0]);
- CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[2]);
- /* ./syntax//scope.nit:91 */
+ label6: while(0);
+ /* syntax/scope.nit:88 */
ATTR_syntax___scope___EscapableBlock____lab(fra.me.REG[1]) = fra.me.REG[3];
+ /* syntax/scope.nit:89 */
+ REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
+ if (UNTAG_Bool(REGB1)) {
+ nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 89);
+ }
+ fra.me.REG[2] = CALL_parser___parser_nodes___ANode___location(fra.me.REG[2])(fra.me.REG[2]);
+ ATTR_syntax___scope___EscapableBlock____lab_location(fra.me.REG[1]) = fra.me.REG[2];
}
- label4: while(0);
+ label5: while(0);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_syntax___scope___ScopeContext___head[] = "scope::ScopeContext::head";
val_t syntax___scope___ScopeContext___head(val_t p0){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 95;
+ fra.me.line = 93;
fra.me.meth = LOCATE_syntax___scope___ScopeContext___head;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./syntax//scope.nit:98 */
+ /* syntax/scope.nit:96 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 98);
+ nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 96);
}
fra.me.REG[1] = ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0]);
- /* ./../lib/standard//collection//array.nit:24 */
+ /* ../lib/standard/collection/array.nit:24 */
REGB0 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]);
- /* ./syntax//scope.nit:98 */
+ /* syntax/scope.nit:96 */
REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB1));
- /* ./syntax//scope.nit:99 */
+ /* syntax/scope.nit:97 */
while(1) {
REGB0 = TAG_Int(0);
REGB2 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ./../lib/standard//kernel.nit:233 */
+ /* ../lib/standard/kernel.nit:236 */
REGB0 = TAG_Bool(UNTAG_Int(REGB1)>=UNTAG_Int(REGB0));
- /* ./syntax//scope.nit:99 */
+ /* syntax/scope.nit:97 */
if (UNTAG_Bool(REGB0)) {
- /* ./syntax//scope.nit:100 */
+ /* syntax/scope.nit:98 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 100);
+ nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 98);
}
fra.me.REG[1] = ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0]);
- /* ./../lib/standard//collection//array.nit:278 */
+ /* ../lib/standard/collection/array.nit:278 */
REGB0 = REGB1;
- /* ./../lib/standard//collection//array.nit:280 */
+ /* ../lib/standard/collection/array.nit:280 */
REGB2 = TAG_Int(0);
REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
if (UNTAG_Bool(REGB3)) {
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ./../lib/standard//kernel.nit:233 */
+ /* ../lib/standard/kernel.nit:236 */
REGB2 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB2));
- /* ./../lib/standard//collection//array.nit:280 */
+ /* ../lib/standard/collection/array.nit:280 */
if (UNTAG_Bool(REGB2)) {
REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL);
if (UNTAG_Bool(REGB2)) {
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ./../lib/standard//kernel.nit:232 */
+ /* ../lib/standard/kernel.nit:235 */
REGB2 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB2));
} else {
- /* ./../lib/standard//collection//array.nit:280 */
- REGB3 = TAG_Bool(false);
+ /* ../lib/standard/collection/array.nit:280 */
+ REGB3 = TAG_Bool(0);
REGB2 = REGB3;
}
if (UNTAG_Bool(REGB2)) {
} else {
- nit_abort("Assert %s failed", "'index'", LOCATE_standard___collection___array, 280);
+ nit_abort("Assert '%s' failed", "index", LOCATE_standard___collection___array, 280);
}
- /* ./../lib/standard//collection//array.nit:281 */
+ /* ../lib/standard/collection/array.nit:281 */
fra.me.REG[1] = ATTR_standard___collection___array___Array____items(fra.me.REG[1]);
REGB2 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 281);
}
- /* ./../lib/standard//collection//array.nit:718 */
+ /* ../lib/standard/collection/array.nit:718 */
fra.me.REG[1] = ((Nit_NativeArray)fra.me.REG[1])->val[UNTAG_Int(REGB0)];
- /* ./../lib/standard//collection//array.nit:281 */
+ /* ../lib/standard/collection/array.nit:281 */
goto label1;
label1: while(0);
- /* ./syntax//scope.nit:101 */
+ /* syntax/scope.nit:99 */
REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[1], COLOR_syntax___scope___EscapableBlock, ID_syntax___scope___EscapableBlock)) /*cast EscapableBlock*/;
if (UNTAG_Bool(REGB0)) {
REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[1], COLOR_syntax___scope___BreakOnlyEscapableBlock, ID_syntax___scope___BreakOnlyEscapableBlock)) /*cast BreakOnlyEscapableBlock*/;
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
} else {
- REGB2 = TAG_Bool(false);
+ REGB2 = TAG_Bool(0);
REGB0 = REGB2;
}
if (UNTAG_Bool(REGB0)) {
goto label2;
}
- /* ./syntax//scope.nit:102 */
+ /* syntax/scope.nit:100 */
REGB0 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB0 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB0));
- /* ./syntax//scope.nit:102 */
+ /* syntax/scope.nit:100 */
REGB1 = REGB0;
} else {
- /* ./syntax//scope.nit:99 */
+ /* syntax/scope.nit:97 */
goto label3;
}
}
label3: while(0);
- /* ./syntax//scope.nit:104 */
+ /* syntax/scope.nit:102 */
fra.me.REG[1] = NIT_NULL;
goto label2;
label2: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
+static const char LOCATE_syntax___scope___ScopeContext___get_by_label[] = "scope::ScopeContext::get_by_label";
val_t syntax___scope___ScopeContext___get_by_label(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[5];} fra;
val_t REGB0;
static val_t once_value_5; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 107;
+ fra.me.line = 105;
fra.me.meth = LOCATE_syntax___scope___ScopeContext___get_by_label;
fra.me.has_broke = 0;
fra.me.REG_size = 6;
fra.me.REG[5] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./syntax//scope.nit:111 */
+ /* syntax/scope.nit:109 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 111);
+ nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 109);
}
fra.me.REG[2] = ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0]);
- /* ./../lib/standard//collection//array.nit:24 */
+ /* ../lib/standard/collection/array.nit:24 */
REGB0 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
- /* ./syntax//scope.nit:111 */
+ /* syntax/scope.nit:109 */
REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB1));
- /* ./syntax//scope.nit:112 */
+ /* syntax/scope.nit:110 */
fra.me.REG[2] = CALL_parser___parser_nodes___ALabel___n_id(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[2] = CALL_syntax___syntax_base___Token___to_symbol(fra.me.REG[2])(fra.me.REG[2]);
- /* ./syntax//scope.nit:113 */
+ /* syntax/scope.nit:111 */
while(1) {
REGB0 = TAG_Int(0);
REGB2 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ./../lib/standard//kernel.nit:233 */
+ /* ../lib/standard/kernel.nit:236 */
REGB0 = TAG_Bool(UNTAG_Int(REGB1)>=UNTAG_Int(REGB0));
- /* ./syntax//scope.nit:113 */
+ /* syntax/scope.nit:111 */
if (UNTAG_Bool(REGB0)) {
- /* ./syntax//scope.nit:114 */
+ /* syntax/scope.nit:112 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 114);
+ nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 112);
}
fra.me.REG[3] = ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0]);
- /* ./../lib/standard//collection//array.nit:278 */
+ /* ../lib/standard/collection/array.nit:278 */
REGB0 = REGB1;
- /* ./../lib/standard//collection//array.nit:280 */
+ /* ../lib/standard/collection/array.nit:280 */
REGB2 = TAG_Int(0);
REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
if (UNTAG_Bool(REGB3)) {
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ./../lib/standard//kernel.nit:233 */
+ /* ../lib/standard/kernel.nit:236 */
REGB2 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB2));
- /* ./../lib/standard//collection//array.nit:280 */
+ /* ../lib/standard/collection/array.nit:280 */
if (UNTAG_Bool(REGB2)) {
REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[3])!=NIT_NULL);
if (UNTAG_Bool(REGB2)) {
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ./../lib/standard//kernel.nit:232 */
+ /* ../lib/standard/kernel.nit:235 */
REGB2 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB2));
} else {
- /* ./../lib/standard//collection//array.nit:280 */
- REGB3 = TAG_Bool(false);
+ /* ../lib/standard/collection/array.nit:280 */
+ REGB3 = TAG_Bool(0);
REGB2 = REGB3;
}
if (UNTAG_Bool(REGB2)) {
} else {
- nit_abort("Assert %s failed", "'index'", LOCATE_standard___collection___array, 280);
+ nit_abort("Assert '%s' failed", "index", LOCATE_standard___collection___array, 280);
}
- /* ./../lib/standard//collection//array.nit:281 */
+ /* ../lib/standard/collection/array.nit:281 */
fra.me.REG[3] = ATTR_standard___collection___array___Array____items(fra.me.REG[3]);
REGB2 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
nit_abort("Reciever is null", NULL, LOCATE_standard___collection___array, 281);
}
- /* ./../lib/standard//collection//array.nit:718 */
+ /* ../lib/standard/collection/array.nit:718 */
fra.me.REG[3] = ((Nit_NativeArray)fra.me.REG[3])->val[UNTAG_Int(REGB0)];
- /* ./../lib/standard//collection//array.nit:281 */
+ /* ../lib/standard/collection/array.nit:281 */
goto label1;
label1: while(0);
- /* ./syntax//scope.nit:115 */
+ /* syntax/scope.nit:113 */
REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[3], COLOR_syntax___scope___EscapableBlock, ID_syntax___scope___EscapableBlock)) /*cast EscapableBlock*/;
if (UNTAG_Bool(REGB0)) {
fra.me.REG[4] = CALL_syntax___scope___EscapableBlock___lab(fra.me.REG[3])(fra.me.REG[3]);
} else {
REGB2 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
- REGB2 = TAG_Bool(false);
+ REGB2 = TAG_Bool(0);
REGB0 = REGB2;
} else {
REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[2]);
}
}
} else {
- REGB2 = TAG_Bool(false);
+ REGB2 = TAG_Bool(0);
REGB0 = REGB2;
}
if (UNTAG_Bool(REGB0)) {
goto label2;
}
- /* ./syntax//scope.nit:116 */
+ /* syntax/scope.nit:114 */
REGB0 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB0 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB0));
- /* ./syntax//scope.nit:116 */
+ /* syntax/scope.nit:114 */
REGB1 = REGB0;
} else {
- /* ./syntax//scope.nit:113 */
+ /* syntax/scope.nit:111 */
goto label3;
}
}
label3: while(0);
- /* ./syntax//scope.nit:118 */
+ /* syntax/scope.nit:116 */
fra.me.REG[0] = CALL_syntax___scope___ScopeContext___visitor(fra.me.REG[0])(fra.me.REG[0]);
REGB1 = TAG_Int(3);
fra.me.REG[4] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
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_syntax___syntax_base___AbsSyntaxVisitor___error(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[4]);
- /* ./syntax//scope.nit:119 */
+ /* syntax/scope.nit:117 */
fra.me.REG[3] = NIT_NULL;
goto label2;
label2: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[3];
}
+static const char LOCATE_syntax___scope___ScopeContext___pop[] = "scope::ScopeContext::pop";
void syntax___scope___ScopeContext___pop(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 122;
+ fra.me.line = 120;
fra.me.meth = LOCATE_syntax___scope___ScopeContext___pop;
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;
- /* ./syntax//scope.nit:125 */
+ /* syntax/scope.nit:123 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 125);
+ nit_abort("Uninitialized attribute %s", "_stack", LOCATE_syntax___scope, 123);
}
fra.me.REG[0] = ATTR_syntax___scope___ScopeContext____stack(fra.me.REG[0]);
fra.me.REG[0] = CALL_standard___collection___abstract_collection___Sequence___pop(fra.me.REG[0])(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_syntax___scope___ScopeContext___visitor[] = "scope::ScopeContext::visitor";
val_t syntax___scope___ScopeContext___visitor(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 128;
+ fra.me.line = 126;
fra.me.meth = LOCATE_syntax___scope___ScopeContext___visitor;
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;
- /* ./syntax//scope.nit:128 */
+ /* syntax/scope.nit:126 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeContext____visitor(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_visitor", LOCATE_syntax___scope, 128);
+ nit_abort("Uninitialized attribute %s", "_visitor", LOCATE_syntax___scope, 126);
}
fra.me.REG[0] = ATTR_syntax___scope___ScopeContext____visitor(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_syntax___scope___ScopeContext___init[] = "scope::ScopeContext::init";
void syntax___scope___ScopeContext___init(val_t p0, val_t p1, int* init_table){
int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_syntax___scope___ScopeContext].i;
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
if (init_table[itpos0]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 129;
+ fra.me.line = 127;
fra.me.meth = LOCATE_syntax___scope___ScopeContext___init;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./syntax//scope.nit:131 */
+ /* syntax/scope.nit:129 */
ATTR_syntax___scope___ScopeContext____visitor(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
init_table[itpos0] = 1;
return;
}
+static const char LOCATE_syntax___scope___ScopeBlock___node[] = "scope::ScopeBlock::node";
val_t syntax___scope___ScopeBlock___node(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 140;
+ fra.me.line = 138;
fra.me.meth = LOCATE_syntax___scope___ScopeBlock___node;
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;
- /* ./syntax//scope.nit:140 */
+ /* syntax/scope.nit:138 */
REGB0 = TAG_Bool(ATTR_syntax___scope___ScopeBlock____node(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_node", LOCATE_syntax___scope, 140);
+ nit_abort("Uninitialized attribute %s", "_node", LOCATE_syntax___scope, 138);
}
fra.me.REG[0] = ATTR_syntax___scope___ScopeBlock____node(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_syntax___scope___ScopeBlock___add_variable[] = "scope::ScopeBlock::add_variable";
void syntax___scope___ScopeBlock___add_variable(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 147;
+ fra.me.line = 145;
fra.me.meth = LOCATE_syntax___scope___ScopeBlock___add_variable;
fra.me.has_broke = 0;
fra.me.REG_size = 4;
fra.me.REG[3] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./syntax//scope.nit:149 */
+ /* syntax/scope.nit:147 */
fra.me.REG[2] = ATTR_syntax___scope___ScopeBlock____dico(fra.me.REG[0]);
- /* ./syntax//scope.nit:150 */
+ /* syntax/scope.nit:148 */
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
}
}
if (UNTAG_Bool(REGB0)) {
- /* ./syntax//scope.nit:151 */
+ /* syntax/scope.nit:149 */
fra.me.REG[3] = NEW_HashMap_standard___collection___hash_collection___HashMap___init();
fra.me.REG[2] = fra.me.REG[3];
- /* ./syntax//scope.nit:152 */
+ /* syntax/scope.nit:150 */
ATTR_syntax___scope___ScopeBlock____dico(fra.me.REG[0]) = fra.me.REG[2];
}
- /* ./syntax//scope.nit:154 */
+ /* syntax/scope.nit:152 */
fra.me.REG[0] = CALL_syntax___syntax_base___Variable___name(fra.me.REG[1])(fra.me.REG[1]);
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 154);
+ nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 152);
}
CALL_standard___collection___abstract_collection___Map_____braeq(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[0], fra.me.REG[1]);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_syntax___scope___ScopeBlock___get_variable[] = "scope::ScopeBlock::get_variable";
val_t syntax___scope___ScopeBlock___get_variable(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 157;
+ fra.me.line = 155;
fra.me.meth = LOCATE_syntax___scope___ScopeBlock___get_variable;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./syntax//scope.nit:159 */
+ /* syntax/scope.nit:157 */
fra.me.REG[0] = ATTR_syntax___scope___ScopeBlock____dico(fra.me.REG[0]);
- /* ./syntax//scope.nit:160 */
+ /* syntax/scope.nit:158 */
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL);
fra.me.REG[2] = NIT_NULL;
goto label1;
}
- /* ./syntax//scope.nit:161 */
+ /* syntax/scope.nit:159 */
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 161);
+ nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 159);
}
REGB0 = CALL_standard___collection___abstract_collection___MapRead___has_key(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
fra.me.REG[2] = NIT_NULL;
goto label1;
}
- /* ./syntax//scope.nit:162 */
+ /* syntax/scope.nit:160 */
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 162);
+ nit_abort("Reciever is null", NULL, LOCATE_syntax___scope, 160);
}
fra.me.REG[1] = CALL_standard___collection___abstract_collection___MapRead_____bra(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
fra.me.REG[2] = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return fra.me.REG[2];
}
+static const char LOCATE_syntax___scope___ScopeBlock___init[] = "scope::ScopeBlock::init";
void syntax___scope___ScopeBlock___init(val_t p0, val_t p1, int* init_table){
int itpos1 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_syntax___scope___ScopeBlock].i;
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
if (init_table[itpos1]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 165;
+ fra.me.line = 163;
fra.me.meth = LOCATE_syntax___scope___ScopeBlock___init;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./syntax//scope.nit:167 */
+ /* syntax/scope.nit:165 */
ATTR_syntax___scope___ScopeBlock____node(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
init_table[itpos1] = 1;
return;
}
+static const char LOCATE_syntax___scope___EscapableBlock___lab[] = "scope::EscapableBlock::lab";
val_t syntax___scope___EscapableBlock___lab(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 178;
+ fra.me.line = 176;
fra.me.meth = LOCATE_syntax___scope___EscapableBlock___lab;
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;
- /* ./syntax//scope.nit:178 */
+ /* syntax/scope.nit:176 */
fra.me.REG[0] = ATTR_syntax___scope___EscapableBlock____lab(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_syntax___scope___EscapableBlock___lab_location[] = "scope::EscapableBlock::lab_location";
+val_t syntax___scope___EscapableBlock___lab_location(val_t p0){
+ struct {struct stack_frame_t me;} fra;
+ val_t tmp;
+ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+ fra.me.file = LOCATE_syntax___scope;
+ fra.me.line = 180;
+ fra.me.meth = LOCATE_syntax___scope___EscapableBlock___lab_location;
+ fra.me.has_broke = 0;
+ fra.me.REG_size = 1;
+ fra.me.nitni_local_ref_head = NULL;
+ fra.me.REG[0] = NIT_NULL;
+ fra.me.REG[0] = p0;
+ /* syntax/scope.nit:180 */
+ fra.me.REG[0] = ATTR_syntax___scope___EscapableBlock____lab_location(fra.me.REG[0]);
+ stack_frame_head = fra.me.prev;
+ return fra.me.REG[0];
+}
+static const char LOCATE_syntax___scope___EscapableBlock___is_break_block[] = "scope::EscapableBlock::is_break_block";
val_t syntax___scope___EscapableBlock___is_break_block(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 182;
+ fra.me.line = 183;
fra.me.meth = LOCATE_syntax___scope___EscapableBlock___is_break_block;
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;
- /* ./syntax//scope.nit:183 */
- REGB0 = TAG_Bool(false);
+ /* syntax/scope.nit:184 */
+ REGB0 = TAG_Bool(0);
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_syntax___scope___EscapableBlock___break_list[] = "scope::EscapableBlock::break_list";
val_t syntax___scope___EscapableBlock___break_list(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 185;
+ fra.me.line = 186;
fra.me.meth = LOCATE_syntax___scope___EscapableBlock___break_list;
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;
- /* ./syntax//scope.nit:188 */
+ /* syntax/scope.nit:189 */
fra.me.REG[0] = NIT_NULL;
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_syntax___scope___EscapableBlock___continue_stype[] = "scope::EscapableBlock::continue_stype";
val_t syntax___scope___EscapableBlock___continue_stype(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 190;
+ fra.me.line = 191;
fra.me.meth = LOCATE_syntax___scope___EscapableBlock___continue_stype;
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;
- /* ./syntax//scope.nit:191 */
+ /* syntax/scope.nit:192 */
fra.me.REG[0] = NIT_NULL;
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_syntax___scope___EscapableBlock___break_flow_contexts[] = "scope::EscapableBlock::break_flow_contexts";
val_t syntax___scope___EscapableBlock___break_flow_contexts(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 193;
+ fra.me.line = 194;
fra.me.meth = LOCATE_syntax___scope___EscapableBlock___break_flow_contexts;
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;
- /* ./syntax//scope.nit:193 */
+ /* syntax/scope.nit:194 */
REGB0 = TAG_Bool(ATTR_syntax___scope___EscapableBlock____break_flow_contexts(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_break_flow_contexts", LOCATE_syntax___scope, 193);
+ nit_abort("Uninitialized attribute %s", "_break_flow_contexts", LOCATE_syntax___scope, 194);
}
fra.me.REG[0] = ATTR_syntax___scope___EscapableBlock____break_flow_contexts(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_syntax___scope___EscapableBlock___init[] = "scope::EscapableBlock::init";
void syntax___scope___EscapableBlock___init(val_t p0, val_t p1, int* init_table){
int itpos2 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_syntax___scope___EscapableBlock].i;
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
if (init_table[itpos2]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 196;
+ fra.me.line = 197;
fra.me.meth = LOCATE_syntax___scope___EscapableBlock___init;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./syntax//scope.nit:198 */
+ /* syntax/scope.nit:199 */
CALL_syntax___scope___ScopeBlock___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], init_table);
stack_frame_head = fra.me.prev;
init_table[itpos2] = 1;
return;
}
+static const char LOCATE_syntax___scope___BreakOnlyEscapableBlock___is_break_block[] = "scope::BreakOnlyEscapableBlock::(scope::EscapableBlock::is_break_block)";
val_t syntax___scope___BreakOnlyEscapableBlock___is_break_block(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 205;
+ fra.me.line = 206;
fra.me.meth = LOCATE_syntax___scope___BreakOnlyEscapableBlock___is_break_block;
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;
- /* ./syntax//scope.nit:205 */
- REGB0 = TAG_Bool(true);
+ /* syntax/scope.nit:206 */
+ REGB0 = TAG_Bool(1);
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_syntax___scope___BreakOnlyEscapableBlock___init[] = "scope::BreakOnlyEscapableBlock::init";
void syntax___scope___BreakOnlyEscapableBlock___init(val_t p0, val_t p1, int* init_table){
int itpos3 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_syntax___scope___BreakOnlyEscapableBlock].i;
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
if (init_table[itpos3]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 207;
+ fra.me.line = 208;
fra.me.meth = LOCATE_syntax___scope___BreakOnlyEscapableBlock___init;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./syntax//scope.nit:207 */
+ /* syntax/scope.nit:208 */
CALL_syntax___scope___EscapableBlock___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], init_table);
stack_frame_head = fra.me.prev;
init_table[itpos3] = 1;
return;
}
+static const char LOCATE_syntax___scope___EscapableClosure___closure[] = "scope::EscapableClosure::closure";
val_t syntax___scope___EscapableClosure___closure(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 213;
+ fra.me.line = 214;
fra.me.meth = LOCATE_syntax___scope___EscapableClosure___closure;
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;
- /* ./syntax//scope.nit:213 */
+ /* syntax/scope.nit:214 */
REGB0 = TAG_Bool(ATTR_syntax___scope___EscapableClosure____closure(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_closure", LOCATE_syntax___scope, 213);
+ nit_abort("Uninitialized attribute %s", "_closure", LOCATE_syntax___scope, 214);
}
fra.me.REG[0] = ATTR_syntax___scope___EscapableClosure____closure(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_syntax___scope___EscapableClosure___is_break_block[] = "scope::EscapableClosure::(scope::EscapableBlock::is_break_block)";
val_t syntax___scope___EscapableClosure___is_break_block(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 216;
+ fra.me.line = 217;
fra.me.meth = LOCATE_syntax___scope___EscapableClosure___is_break_block;
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;
- /* ./syntax//scope.nit:216 */
+ /* syntax/scope.nit:217 */
REGB0 = TAG_Bool(ATTR_syntax___scope___EscapableClosure____closure(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_closure", LOCATE_syntax___scope, 216);
+ nit_abort("Uninitialized attribute %s", "_closure", LOCATE_syntax___scope, 217);
}
fra.me.REG[0] = ATTR_syntax___scope___EscapableClosure____closure(fra.me.REG[0]);
REGB0 = CALL_metamodel___static_type___MMClosure___is_break(fra.me.REG[0])(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_syntax___scope___EscapableClosure___break_list[] = "scope::EscapableClosure::(scope::EscapableBlock::break_list)";
val_t syntax___scope___EscapableClosure___break_list(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 218;
+ fra.me.line = 219;
fra.me.meth = LOCATE_syntax___scope___EscapableClosure___break_list;
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;
- /* ./syntax//scope.nit:218 */
+ /* syntax/scope.nit:219 */
fra.me.REG[0] = ATTR_syntax___scope___EscapableClosure____break_list(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_syntax___scope___EscapableClosure___continue_stype[] = "scope::EscapableClosure::(scope::EscapableBlock::continue_stype)";
val_t syntax___scope___EscapableClosure___continue_stype(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 220;
+ fra.me.line = 221;
fra.me.meth = LOCATE_syntax___scope___EscapableClosure___continue_stype;
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;
- /* ./syntax//scope.nit:220 */
+ /* syntax/scope.nit:221 */
REGB0 = TAG_Bool(ATTR_syntax___scope___EscapableClosure____closure(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_closure", LOCATE_syntax___scope, 220);
+ nit_abort("Uninitialized attribute %s", "_closure", LOCATE_syntax___scope, 221);
}
fra.me.REG[0] = ATTR_syntax___scope___EscapableClosure____closure(fra.me.REG[0]);
fra.me.REG[0] = CALL_metamodel___static_type___MMClosure___signature(fra.me.REG[0])(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_syntax___scope___EscapableClosure___init[] = "scope::EscapableClosure::init";
void syntax___scope___EscapableClosure___init(val_t p0, val_t p1, val_t p2, val_t p3, int* init_table){
int itpos4 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_syntax___scope___EscapableClosure].i;
struct {struct stack_frame_t me; val_t MORE_REG[4];} fra;
if (init_table[itpos4]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 222;
+ fra.me.line = 223;
fra.me.meth = LOCATE_syntax___scope___EscapableClosure___init;
fra.me.has_broke = 0;
fra.me.REG_size = 5;
fra.me.REG[1] = p1;
fra.me.REG[2] = p2;
fra.me.REG[3] = p3;
- /* ./syntax//scope.nit:222 */
+ /* syntax/scope.nit:223 */
fra.me.REG[4] = fra.me.REG[0];
- /* ./syntax//scope.nit:224 */
+ /* syntax/scope.nit:225 */
CALL_syntax___scope___EscapableBlock___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], init_table);
- /* ./syntax//scope.nit:225 */
+ /* syntax/scope.nit:226 */
ATTR_syntax___scope___EscapableClosure____closure(fra.me.REG[4]) = fra.me.REG[2];
- /* ./syntax//scope.nit:226 */
+ /* syntax/scope.nit:227 */
ATTR_syntax___scope___EscapableClosure____break_list(fra.me.REG[4]) = fra.me.REG[3];
stack_frame_head = fra.me.prev;
init_table[itpos4] = 1;
return;
}
+static const char LOCATE_syntax___scope___AEscapeExpr___escapable[] = "scope::AEscapeExpr::escapable";
val_t syntax___scope___AEscapeExpr___escapable(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 234;
+ fra.me.line = 235;
fra.me.meth = LOCATE_syntax___scope___AEscapeExpr___escapable;
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;
- /* ./syntax//scope.nit:234 */
+ /* syntax/scope.nit:235 */
fra.me.REG[0] = ATTR_syntax___scope___AEscapeExpr____escapable(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_syntax___scope___AEscapeExpr___kwname[] = "scope::AEscapeExpr::kwname";
val_t syntax___scope___AEscapeExpr___kwname(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 237;
+ fra.me.line = 238;
fra.me.meth = LOCATE_syntax___scope___AEscapeExpr___kwname;
fra.me.has_broke = 0;
fra.me.REG_size = 0;
fra.me.nitni_local_ref_head = NULL;
- /* ./syntax//scope.nit:237 */
- nit_abort("Deferred method called", NULL, LOCATE_syntax___scope, 237);
+ /* syntax/scope.nit:238 */
+ nit_abort("Deferred method called", NULL, LOCATE_syntax___scope, 238);
stack_frame_head = fra.me.prev;
return NIT_NULL;
}
+static const char LOCATE_syntax___scope___AEscapeExpr___compute_escapable_block[] = "scope::AEscapeExpr::compute_escapable_block";
val_t syntax___scope___AEscapeExpr___compute_escapable_block(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_2; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 240;
+ fra.me.line = 241;
fra.me.meth = LOCATE_syntax___scope___AEscapeExpr___compute_escapable_block;
fra.me.has_broke = 0;
fra.me.REG_size = 5;
fra.me.REG[4] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./syntax//scope.nit:244 */
+ /* syntax/scope.nit:245 */
fra.me.REG[2] = CALL_parser___parser_nodes___ALabelable___n_label(fra.me.REG[0])(fra.me.REG[0]);
- /* ./syntax//scope.nit:245 */
+ /* syntax/scope.nit:246 */
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./syntax//scope.nit:246 */
+ /* syntax/scope.nit:247 */
fra.me.REG[2] = CALL_syntax___scope___ScopeContext___get_by_label(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
} else {
- /* ./syntax//scope.nit:248 */
+ /* syntax/scope.nit:249 */
fra.me.REG[3] = CALL_syntax___scope___ScopeContext___head(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[2] = fra.me.REG[3];
- /* ./syntax//scope.nit:249 */
+ /* syntax/scope.nit:250 */
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
}
}
if (UNTAG_Bool(REGB0)) {
- /* ./syntax//scope.nit:250 */
+ /* syntax/scope.nit:251 */
fra.me.REG[1] = CALL_syntax___scope___ScopeContext___visitor(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_syntax___syntax_base___AbsSyntaxVisitor___error(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0], fra.me.REG[3]);
}
}
- /* ./syntax//scope.nit:253 */
+ /* syntax/scope.nit:254 */
ATTR_syntax___scope___AEscapeExpr____escapable(fra.me.REG[0]) = fra.me.REG[2];
- /* ./syntax//scope.nit:254 */
+ /* syntax/scope.nit:255 */
goto label3;
label3: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[2];
}
+static const char LOCATE_syntax___scope___AContinueExpr___kwname[] = "scope::AContinueExpr::(scope::AEscapeExpr::kwname)";
val_t syntax___scope___AContinueExpr___kwname(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
static val_t once_value_1; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 260;
+ fra.me.line = 261;
fra.me.meth = LOCATE_syntax___scope___AContinueExpr___kwname;
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;
- /* ./syntax//scope.nit:260 */
+ /* syntax/scope.nit:261 */
if (!once_value_1) {
fra.me.REG[0] = BOX_NativeString("continue");
REGB0 = TAG_Int(8);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_syntax___scope___ABreakExpr___kwname[] = "scope::ABreakExpr::(scope::AEscapeExpr::kwname)";
val_t syntax___scope___ABreakExpr___kwname(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
static val_t once_value_1; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_syntax___scope;
- fra.me.line = 265;
+ fra.me.line = 266;
fra.me.meth = LOCATE_syntax___scope___ABreakExpr___kwname;
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;
- /* ./syntax//scope.nit:265 */
+ /* syntax/scope.nit:266 */
if (!once_value_1) {
fra.me.REG[0] = BOX_NativeString("break");
REGB0 = TAG_Int(5);