/* This C file is generated by NIT to compile module standard___collection___list. */
#include "standard___collection___list._sep.h"
+static const char LOCATE_standard___collection___list___List_____bra[] = "list::List::(abstract_collection::SequenceRead::[])";
val_t standard___collection___list___List_____bra(val_t p0, val_t p1){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
REGB0 = p1;
- /* ./../lib/standard//collection//list.nit:22 */
+ /* ../lib/standard/collection/list.nit:22 */
fra.me.REG[0] = CALL_standard___collection___list___List___get_node(fra.me.REG[0])(fra.me.REG[0], REGB0);
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___list___List_____braeq[] = "list::List::(abstract_collection::Sequence::[]=)";
void standard___collection___list___List_____braeq(val_t p0, val_t p1, val_t p2){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
fra.me.REG[0] = p0;
REGB0 = p1;
fra.me.REG[1] = p2;
- /* ./../lib/standard//collection//list.nit:24 */
+ /* ../lib/standard/collection/list.nit:24 */
fra.me.REG[0] = CALL_standard___collection___list___List___get_node(fra.me.REG[0])(fra.me.REG[0], REGB0);
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___List___first[] = "list::List::(abstract_collection::Collection::first)";
val_t standard___collection___list___List___first(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./../lib/standard//collection//list.nit:27 */
+ /* ../lib/standard/collection/list.nit:27 */
fra.me.REG[0] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___list___List___first__eq[] = "list::List::(abstract_collection::Sequence::first=)";
void standard___collection___list___List___first__eq(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./../lib/standard//collection//list.nit:30 */
+ /* ../lib/standard/collection/list.nit:30 */
fra.me.REG[0] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___List___last[] = "list::List::(abstract_collection::SequenceRead::last)";
val_t standard___collection___list___List___last(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./../lib/standard//collection//list.nit:33 */
+ /* ../lib/standard/collection/list.nit:33 */
fra.me.REG[0] = ATTR_standard___collection___list___List____tail(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___list___List___last__eq[] = "list::List::(abstract_collection::Sequence::last=)";
void standard___collection___list___List___last__eq(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./../lib/standard//collection//list.nit:36 */
+ /* ../lib/standard/collection/list.nit:36 */
fra.me.REG[0] = ATTR_standard___collection___list___List____tail(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___List___is_empty[] = "list::List::(abstract_collection::Collection::is_empty)";
val_t standard___collection___list___List___is_empty(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./../lib/standard//collection//list.nit:41 */
+ /* ../lib/standard/collection/list.nit:41 */
fra.me.REG[0] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
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);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___collection___list___List___length[] = "list::List::(abstract_collection::Collection::length)";
val_t standard___collection___list___List___length(val_t p0){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./../lib/standard//collection//list.nit:46 */
+ /* ../lib/standard/collection/list.nit:46 */
REGB0 = TAG_Int(0);
- /* ./../lib/standard//collection//list.nit:47 */
+ /* ../lib/standard/collection/list.nit:47 */
fra.me.REG[0] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
- /* ./../lib/standard//collection//list.nit:48 */
+ /* ../lib/standard/collection/list.nit:48 */
while(1) {
REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
REGB2 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
- REGB2 = TAG_Bool(false);
+ REGB2 = TAG_Bool(0);
REGB1 = REGB2;
} else {
REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL);
}
REGB1 = TAG_Bool(!UNTAG_Bool(REGB1));
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//list.nit:49 */
+ /* ../lib/standard/collection/list.nit:49 */
REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//list.nit:49 */
+ /* ../lib/standard/collection/list.nit:49 */
REGB0 = REGB1;
- /* ./../lib/standard//collection//list.nit:50 */
+ /* ../lib/standard/collection/list.nit:50 */
REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 50);
fra.me.REG[1] = CALL_standard___collection___list___ListNode___next(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[0] = fra.me.REG[1];
} else {
- /* ./../lib/standard//collection//list.nit:48 */
+ /* ../lib/standard/collection/list.nit:48 */
goto label1;
}
}
label1: while(0);
- /* ./../lib/standard//collection//list.nit:52 */
+ /* ../lib/standard/collection/list.nit:52 */
goto label2;
label2: while(0);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___collection___list___List___has[] = "list::List::(abstract_collection::Collection::has)";
val_t standard___collection___list___List___has(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./../lib/standard//collection//list.nit:56 */
+ /* ../lib/standard/collection/list.nit:56 */
fra.me.REG[2] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
fra.me.REG[2] = CALL_standard___collection___list___List___search_node_after(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2]);
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
} 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);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___collection___list___List___has_only[] = "list::List::(abstract_collection::Collection::has_only)";
val_t standard___collection___list___List___has_only(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./../lib/standard//collection//list.nit:60 */
+ /* ../lib/standard/collection/list.nit:60 */
fra.me.REG[0] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
- /* ./../lib/standard//collection//list.nit:61 */
+ /* ../lib/standard/collection/list.nit:61 */
while(1) {
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);
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./../lib/standard//collection//list.nit:62 */
+ /* ../lib/standard/collection/list.nit:62 */
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 62);
} 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], fra.me.REG[1]);
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- REGB0 = TAG_Bool(false);
+ REGB0 = TAG_Bool(0);
goto label1;
}
- /* ./../lib/standard//collection//list.nit:63 */
+ /* ../lib/standard/collection/list.nit:63 */
REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 63);
fra.me.REG[2] = CALL_standard___collection___list___ListNode___next(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[0] = fra.me.REG[2];
} else {
- /* ./../lib/standard//collection//list.nit:61 */
+ /* ../lib/standard/collection/list.nit:61 */
goto label2;
}
}
label2: while(0);
- /* ./../lib/standard//collection//list.nit:65 */
- REGB1 = TAG_Bool(true);
+ /* ../lib/standard/collection/list.nit:65 */
+ REGB1 = TAG_Bool(1);
REGB0 = REGB1;
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___collection___list___List___count[] = "list::List::(abstract_collection::Collection::count)";
val_t standard___collection___list___List___count(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./../lib/standard//collection//list.nit:70 */
+ /* ../lib/standard/collection/list.nit:70 */
REGB0 = TAG_Int(0);
- /* ./../lib/standard//collection//list.nit:71 */
+ /* ../lib/standard/collection/list.nit:71 */
fra.me.REG[0] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
- /* ./../lib/standard//collection//list.nit:72 */
+ /* ../lib/standard/collection/list.nit:72 */
while(1) {
REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
REGB2 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
- REGB2 = TAG_Bool(false);
+ REGB2 = TAG_Bool(0);
REGB1 = REGB2;
} else {
REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL);
}
REGB1 = TAG_Bool(!UNTAG_Bool(REGB1));
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//list.nit:73 */
+ /* ../lib/standard/collection/list.nit:73 */
REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 73);
} else {
REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
- REGB2 = TAG_Bool(false);
+ REGB2 = TAG_Bool(0);
REGB1 = REGB2;
} else {
REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
REGB1 = TAG_Bool(!UNTAG_Bool(REGB1));
if (UNTAG_Bool(REGB1)) {
REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//list.nit:73 */
+ /* ../lib/standard/collection/list.nit:73 */
REGB0 = REGB1;
}
- /* ./../lib/standard//collection//list.nit:74 */
+ /* ../lib/standard/collection/list.nit:74 */
REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 74);
fra.me.REG[2] = CALL_standard___collection___list___ListNode___next(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[0] = fra.me.REG[2];
} else {
- /* ./../lib/standard//collection//list.nit:72 */
+ /* ../lib/standard/collection/list.nit:72 */
goto label1;
}
}
label1: while(0);
- /* ./../lib/standard//collection//list.nit:76 */
+ /* ../lib/standard/collection/list.nit:76 */
goto label2;
label2: while(0);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___collection___list___List___slice[] = "list::List::slice";
+val_t standard___collection___list___List___slice(val_t p0, val_t p1, val_t p2){
+ struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+ val_t REGB0;
+ val_t REGB1;
+ val_t REGB2;
+ val_t REGB3;
+ val_t tmp;
+ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+ fra.me.file = LOCATE_standard___collection___list;
+ fra.me.line = 79;
+ fra.me.meth = LOCATE_standard___collection___list___List___slice;
+ 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;
+ REGB0 = p1;
+ REGB1 = p2;
+ /* ../lib/standard/collection/list.nit:81 */
+ 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:236 */
+ REGB2 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB2));
+ /* ../lib/standard/collection/list.nit:81 */
+ if (UNTAG_Bool(REGB2)) {
+ REGB2 = CALL_standard___collection___abstract_collection___Collection___length(fra.me.REG[0])(fra.me.REG[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:235 */
+ REGB2 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB2));
+ } else {
+ /* ../lib/standard/collection/list.nit:81 */
+ REGB3 = TAG_Bool(0);
+ REGB2 = REGB3;
+ }
+ if (UNTAG_Bool(REGB2)) {
+ } else {
+ nit_abort("Assert failed", NULL, LOCATE_standard___collection___list, 81);
+ }
+ /* ../lib/standard/collection/list.nit:82 */
+ REGB2 = TAG_Int(0);
+ REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB3)) {
+ } else {
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
+ }
+ /* ../lib/standard/kernel.nit:236 */
+ REGB2 = TAG_Bool(UNTAG_Int(REGB1)>=UNTAG_Int(REGB2));
+ /* ../lib/standard/collection/list.nit:82 */
+ if (UNTAG_Bool(REGB2)) {
+ REGB2 = CALL_standard___collection___abstract_collection___Collection___length(fra.me.REG[0])(fra.me.REG[0]);
+ REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB3)) {
+ } else {
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
+ }
+ /* ../lib/standard/kernel.nit:235 */
+ REGB2 = TAG_Bool(UNTAG_Int(REGB1)<UNTAG_Int(REGB2));
+ } else {
+ /* ../lib/standard/collection/list.nit:82 */
+ REGB3 = TAG_Bool(0);
+ REGB2 = REGB3;
+ }
+ if (UNTAG_Bool(REGB2)) {
+ REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB2)) {
+ } else {
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
+ }
+ /* ../lib/standard/kernel.nit:234 */
+ REGB2 = TAG_Bool(UNTAG_Int(REGB0)<=UNTAG_Int(REGB1));
+ } else {
+ /* ../lib/standard/collection/list.nit:82 */
+ REGB3 = TAG_Bool(0);
+ REGB2 = REGB3;
+ }
+ if (UNTAG_Bool(REGB2)) {
+ } else {
+ nit_abort("Assert failed", NULL, LOCATE_standard___collection___list, 82);
+ }
+ /* ../lib/standard/collection/list.nit:83 */
+ fra.me.REG[1] = NEW_List_standard___collection___list___List___init();
+ /* ../lib/standard/collection/list.nit:84 */
+ while(1) {
+ REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB2)) {
+ } else {
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
+ }
+ /* ../lib/standard/kernel.nit:234 */
+ REGB2 = TAG_Bool(UNTAG_Int(REGB0)<=UNTAG_Int(REGB1));
+ /* ../lib/standard/collection/list.nit:84 */
+ if (UNTAG_Bool(REGB2)) {
+ /* ../lib/standard/collection/list.nit:85 */
+ fra.me.REG[2] = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[0])(fra.me.REG[0], REGB0);
+ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
+ /* ../lib/standard/collection/list.nit:86 */
+ REGB2 = TAG_Int(1);
+ /* ../lib/standard/kernel.nit:238 */
+ REGB2 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB2));
+ /* ../lib/standard/collection/list.nit:86 */
+ REGB0 = REGB2;
+ } else {
+ /* ../lib/standard/collection/list.nit:84 */
+ goto label1;
+ }
+ }
+ label1: while(0);
+ /* ../lib/standard/collection/list.nit:88 */
+ goto label2;
+ label2: while(0);
+ stack_frame_head = fra.me.prev;
+ return fra.me.REG[1];
+}
+static const char LOCATE_standard___collection___list___List___push[] = "list::List::(abstract_collection::Sequence::push)";
void standard___collection___list___List___push(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_standard___collection___list;
- fra.me.line = 81;
+ fra.me.line = 93;
fra.me.meth = LOCATE_standard___collection___list___List___push;
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;
- /* ./../lib/standard//collection//list.nit:84 */
+ /* ../lib/standard/collection/list.nit:96 */
fra.me.REG[1] = NEW_ListNode_standard___collection___list___ListNode___init(fra.me.REG[1]);
- /* ./../lib/standard//collection//list.nit:85 */
+ /* ../lib/standard/collection/list.nit:97 */
fra.me.REG[2] = ATTR_standard___collection___list___List____tail(fra.me.REG[0]);
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)) {
- /* ./../lib/standard//collection//list.nit:86 */
+ /* ../lib/standard/collection/list.nit:98 */
ATTR_standard___collection___list___List____head(fra.me.REG[0]) = fra.me.REG[1];
} else {
- /* ./../lib/standard//collection//list.nit:88 */
+ /* ../lib/standard/collection/list.nit:100 */
fra.me.REG[2] = ATTR_standard___collection___list___List____tail(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 88);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 100);
}
CALL_standard___collection___list___ListNode___next__eq(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
- /* ./../lib/standard//collection//list.nit:89 */
+ /* ../lib/standard/collection/list.nit:101 */
fra.me.REG[2] = ATTR_standard___collection___list___List____tail(fra.me.REG[0]);
CALL_standard___collection___list___ListNode___prev__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
}
- /* ./../lib/standard//collection//list.nit:91 */
+ /* ../lib/standard/collection/list.nit:103 */
ATTR_standard___collection___list___List____tail(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___List___unshift[] = "list::List::(abstract_collection::Sequence::unshift)";
void standard___collection___list___List___unshift(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_standard___collection___list;
- fra.me.line = 94;
+ fra.me.line = 106;
fra.me.meth = LOCATE_standard___collection___list___List___unshift;
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;
- /* ./../lib/standard//collection//list.nit:97 */
+ /* ../lib/standard/collection/list.nit:109 */
fra.me.REG[1] = NEW_ListNode_standard___collection___list___ListNode___init(fra.me.REG[1]);
- /* ./../lib/standard//collection//list.nit:98 */
+ /* ../lib/standard/collection/list.nit:110 */
fra.me.REG[2] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
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)) {
- /* ./../lib/standard//collection//list.nit:99 */
+ /* ../lib/standard/collection/list.nit:111 */
ATTR_standard___collection___list___List____tail(fra.me.REG[0]) = fra.me.REG[1];
} else {
- /* ./../lib/standard//collection//list.nit:101 */
+ /* ../lib/standard/collection/list.nit:113 */
fra.me.REG[2] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
CALL_standard___collection___list___ListNode___next__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
- /* ./../lib/standard//collection//list.nit:102 */
+ /* ../lib/standard/collection/list.nit:114 */
fra.me.REG[2] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 102);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 114);
}
CALL_standard___collection___list___ListNode___prev__eq(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
}
- /* ./../lib/standard//collection//list.nit:104 */
+ /* ../lib/standard/collection/list.nit:116 */
ATTR_standard___collection___list___List____head(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___List___link[] = "list::List::link";
void standard___collection___list___List___link(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_standard___collection___list;
- fra.me.line = 107;
+ fra.me.line = 119;
fra.me.meth = LOCATE_standard___collection___list___List___link;
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;
- /* ./../lib/standard//collection//list.nit:112 */
+ /* ../lib/standard/collection/list.nit:124 */
fra.me.REG[2] = ATTR_standard___collection___list___List____tail(fra.me.REG[0]);
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)) {
- /* ./../lib/standard//collection//list.nit:113 */
+ /* ../lib/standard/collection/list.nit:125 */
fra.me.REG[2] = ATTR_standard___collection___list___List____head(fra.me.REG[1]);
ATTR_standard___collection___list___List____head(fra.me.REG[0]) = fra.me.REG[2];
} else {
- /* ./../lib/standard//collection//list.nit:114 */
+ /* ../lib/standard/collection/list.nit:126 */
fra.me.REG[2] = ATTR_standard___collection___list___List____head(fra.me.REG[1]);
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)) {
- /* ./../lib/standard//collection//list.nit:115 */
+ /* ../lib/standard/collection/list.nit:127 */
fra.me.REG[2] = ATTR_standard___collection___list___List____tail(fra.me.REG[0]);
fra.me.REG[3] = ATTR_standard___collection___list___List____head(fra.me.REG[1]);
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 115);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 127);
}
CALL_standard___collection___list___ListNode___next__eq(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
- /* ./../lib/standard//collection//list.nit:116 */
+ /* ../lib/standard/collection/list.nit:128 */
fra.me.REG[3] = ATTR_standard___collection___list___List____tail(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 116);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 128);
}
fra.me.REG[3] = CALL_standard___collection___list___ListNode___next(fra.me.REG[3])(fra.me.REG[3]);
fra.me.REG[2] = ATTR_standard___collection___list___List____tail(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 116);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 128);
}
CALL_standard___collection___list___ListNode___prev__eq(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[2]);
}
}
- /* ./../lib/standard//collection//list.nit:118 */
+ /* ../lib/standard/collection/list.nit:130 */
fra.me.REG[2] = ATTR_standard___collection___list___List____tail(fra.me.REG[1]);
ATTR_standard___collection___list___List____tail(fra.me.REG[0]) = fra.me.REG[2];
- /* ./../lib/standard//collection//list.nit:119 */
+ /* ../lib/standard/collection/list.nit:131 */
CALL_standard___collection___abstract_collection___RemovableCollection___clear(fra.me.REG[1])(fra.me.REG[1]);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___List___pop[] = "list::List::(abstract_collection::Sequence::pop)";
val_t standard___collection___list___List___pop(val_t p0){
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_standard___collection___list;
- fra.me.line = 124;
+ fra.me.line = 136;
fra.me.meth = LOCATE_standard___collection___list___List___pop;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./../lib/standard//collection//list.nit:127 */
+ /* ../lib/standard/collection/list.nit:139 */
fra.me.REG[1] = ATTR_standard___collection___list___List____tail(fra.me.REG[0]);
- /* ./../lib/standard//collection//list.nit:128 */
+ /* ../lib/standard/collection/list.nit:140 */
REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 128);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 140);
}
fra.me.REG[2] = CALL_standard___collection___list___ListNode___prev(fra.me.REG[1])(fra.me.REG[1]);
ATTR_standard___collection___list___List____tail(fra.me.REG[0]) = fra.me.REG[2];
- /* ./../lib/standard//collection//list.nit:129 */
+ /* ../lib/standard/collection/list.nit:141 */
REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 129);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 141);
}
CALL_standard___collection___list___ListNode___prev__eq(fra.me.REG[1])(fra.me.REG[1], NIT_NULL);
- /* ./../lib/standard//collection//list.nit:130 */
+ /* ../lib/standard/collection/list.nit:142 */
fra.me.REG[2] = ATTR_standard___collection___list___List____tail(fra.me.REG[0]);
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)) {
- /* ./../lib/standard//collection//list.nit:131 */
+ /* ../lib/standard/collection/list.nit:143 */
ATTR_standard___collection___list___List____head(fra.me.REG[0]) = NIT_NULL;
} else {
- /* ./../lib/standard//collection//list.nit:133 */
+ /* ../lib/standard/collection/list.nit:145 */
fra.me.REG[0] = ATTR_standard___collection___list___List____tail(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 133);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 145);
}
CALL_standard___collection___list___ListNode___next__eq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL);
}
- /* ./../lib/standard//collection//list.nit:135 */
+ /* ../lib/standard/collection/list.nit:147 */
REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 135);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 147);
}
fra.me.REG[1] = CALL_standard___collection___abstract_collection___Container___item(fra.me.REG[1])(fra.me.REG[1]);
goto label1;
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
+static const char LOCATE_standard___collection___list___List___shift[] = "list::List::(abstract_collection::Sequence::shift)";
val_t standard___collection___list___List___shift(val_t p0){
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_standard___collection___list;
- fra.me.line = 138;
+ fra.me.line = 150;
fra.me.meth = LOCATE_standard___collection___list___List___shift;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./../lib/standard//collection//list.nit:141 */
+ /* ../lib/standard/collection/list.nit:153 */
fra.me.REG[1] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
- /* ./../lib/standard//collection//list.nit:142 */
+ /* ../lib/standard/collection/list.nit:154 */
REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 142);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 154);
}
fra.me.REG[2] = CALL_standard___collection___list___ListNode___next(fra.me.REG[1])(fra.me.REG[1]);
ATTR_standard___collection___list___List____head(fra.me.REG[0]) = fra.me.REG[2];
- /* ./../lib/standard//collection//list.nit:143 */
+ /* ../lib/standard/collection/list.nit:155 */
REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 143);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 155);
}
CALL_standard___collection___list___ListNode___next__eq(fra.me.REG[1])(fra.me.REG[1], NIT_NULL);
- /* ./../lib/standard//collection//list.nit:144 */
+ /* ../lib/standard/collection/list.nit:156 */
fra.me.REG[2] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
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)) {
- /* ./../lib/standard//collection//list.nit:145 */
+ /* ../lib/standard/collection/list.nit:157 */
ATTR_standard___collection___list___List____tail(fra.me.REG[0]) = NIT_NULL;
} else {
- /* ./../lib/standard//collection//list.nit:147 */
+ /* ../lib/standard/collection/list.nit:159 */
fra.me.REG[0] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 147);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 159);
}
CALL_standard___collection___list___ListNode___prev__eq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL);
}
- /* ./../lib/standard//collection//list.nit:149 */
+ /* ../lib/standard/collection/list.nit:161 */
REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 149);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 161);
}
fra.me.REG[1] = CALL_standard___collection___abstract_collection___Container___item(fra.me.REG[1])(fra.me.REG[1]);
goto label1;
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
+static const char LOCATE_standard___collection___list___List___remove[] = "list::List::(abstract_collection::RemovableCollection::remove)";
void standard___collection___list___List___remove(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_standard___collection___list;
- fra.me.line = 152;
+ fra.me.line = 164;
fra.me.meth = LOCATE_standard___collection___list___List___remove;
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;
- /* ./../lib/standard//collection//list.nit:154 */
+ /* ../lib/standard/collection/list.nit:166 */
fra.me.REG[2] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
fra.me.REG[2] = CALL_standard___collection___list___List___search_node_after(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], fra.me.REG[2]);
- /* ./../lib/standard//collection//list.nit:155 */
+ /* ../lib/standard/collection/list.nit:167 */
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);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___List___remove_at[] = "list::List::(abstract_collection::Sequence::remove_at)";
void standard___collection___list___List___remove_at(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_standard___collection___list;
- fra.me.line = 158;
+ fra.me.line = 170;
fra.me.meth = LOCATE_standard___collection___list___List___remove_at;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
REGB0 = p1;
- /* ./../lib/standard//collection//list.nit:160 */
+ /* ../lib/standard/collection/list.nit:172 */
fra.me.REG[1] = CALL_standard___collection___list___List___get_node(fra.me.REG[0])(fra.me.REG[0], REGB0);
- /* ./../lib/standard//collection//list.nit:161 */
+ /* ../lib/standard/collection/list.nit:173 */
REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[1])(fra.me.REG[1], NIT_NULL);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___List___clear[] = "list::List::(abstract_collection::RemovableCollection::clear)";
void standard___collection___list___List___clear(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_standard___collection___list;
- fra.me.line = 164;
+ fra.me.line = 176;
fra.me.meth = LOCATE_standard___collection___list___List___clear;
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;
- /* ./../lib/standard//collection//list.nit:166 */
+ /* ../lib/standard/collection/list.nit:178 */
ATTR_standard___collection___list___List____head(fra.me.REG[0]) = NIT_NULL;
- /* ./../lib/standard//collection//list.nit:167 */
+ /* ../lib/standard/collection/list.nit:179 */
ATTR_standard___collection___list___List____tail(fra.me.REG[0]) = NIT_NULL;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___List___iterator[] = "list::List::(abstract_collection::Collection::iterator)";
val_t standard___collection___list___List___iterator(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_standard___collection___list;
- fra.me.line = 171;
+ fra.me.line = 183;
fra.me.meth = LOCATE_standard___collection___list___List___iterator;
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;
- /* ./../lib/standard//collection//list.nit:171 */
+ /* ../lib/standard/collection/list.nit:183 */
fra.me.REG[0] = NEW_ListIterator_standard___collection___list___ListIterator___init(fra.me.REG[0]);
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___list___List___init[] = "list::List::init";
void standard___collection___list___List___init(val_t p0, int* init_table){
int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___list___List].i;
struct {struct stack_frame_t me;} fra;
if (init_table[itpos0]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___list;
- fra.me.line = 173;
+ fra.me.line = 185;
fra.me.meth = LOCATE_standard___collection___list___List___init;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
init_table[itpos0] = 1;
return;
}
+static const char LOCATE_standard___collection___list___List___from[] = "list::List::from";
void standard___collection___list___List___from(val_t p0, val_t p1, int* init_table){
int itpos1 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___list___List].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_standard___collection___list;
- fra.me.line = 176;
+ fra.me.line = 188;
fra.me.meth = LOCATE_standard___collection___list___List___from;
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;
- /* ./../lib/standard//collection//list.nit:177 */
+ /* ../lib/standard/collection/list.nit:189 */
CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
stack_frame_head = fra.me.prev;
init_table[itpos1] = 1;
return;
}
+static const char LOCATE_standard___collection___list___List___get_node[] = "list::List::get_node";
val_t standard___collection___list___List___get_node(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_standard___collection___list;
- fra.me.line = 185;
+ fra.me.line = 197;
fra.me.meth = LOCATE_standard___collection___list___List___get_node;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
REGB0 = p1;
- /* ./../lib/standard//collection//list.nit:188 */
+ /* ../lib/standard/collection/list.nit:200 */
fra.me.REG[0] = ATTR_standard___collection___list___List____head(fra.me.REG[0]);
- /* ./../lib/standard//collection//list.nit:189 */
+ /* ../lib/standard/collection/list.nit:201 */
REGB1 = TAG_Int(0);
REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
if (UNTAG_Bool(REGB2)) {
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ./../lib/standard//kernel.nit:232 */
+ /* ../lib/standard/kernel.nit:235 */
REGB1 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//list.nit:189 */
+ /* ../lib/standard/collection/list.nit:201 */
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//list.nit:190 */
+ /* ../lib/standard/collection/list.nit:202 */
fra.me.REG[1] = NIT_NULL;
goto label1;
}
- /* ./../lib/standard//collection//list.nit:192 */
+ /* ../lib/standard/collection/list.nit:204 */
while(1) {
REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
REGB2 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
- REGB2 = TAG_Bool(false);
+ REGB2 = TAG_Bool(0);
REGB1 = REGB2;
} else {
REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL);
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ./../lib/standard//kernel.nit:234 */
+ /* ../lib/standard/kernel.nit:237 */
REGB1 = TAG_Bool(UNTAG_Int(REGB0)>UNTAG_Int(REGB1));
} else {
- /* ./../lib/standard//collection//list.nit:192 */
- REGB2 = TAG_Bool(false);
+ /* ../lib/standard/collection/list.nit:204 */
+ REGB2 = TAG_Bool(0);
REGB1 = REGB2;
}
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//list.nit:193 */
+ /* ../lib/standard/collection/list.nit:205 */
REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 193);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 205);
}
fra.me.REG[2] = CALL_standard___collection___list___ListNode___next(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[0] = fra.me.REG[2];
- /* ./../lib/standard//collection//list.nit:194 */
+ /* ../lib/standard/collection/list.nit:206 */
REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//list.nit:194 */
+ /* ../lib/standard/collection/list.nit:206 */
REGB0 = REGB1;
} else {
- /* ./../lib/standard//collection//list.nit:192 */
+ /* ../lib/standard/collection/list.nit:204 */
goto label2;
}
}
label2: while(0);
- /* ./../lib/standard//collection//list.nit:196 */
+ /* ../lib/standard/collection/list.nit:208 */
fra.me.REG[1] = fra.me.REG[0];
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
+static const char LOCATE_standard___collection___list___List___search_node_after[] = "list::List::search_node_after";
val_t standard___collection___list___List___search_node_after(val_t p0, val_t p1, val_t p2){
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_standard___collection___list;
- fra.me.line = 199;
+ fra.me.line = 211;
fra.me.meth = LOCATE_standard___collection___list___List___search_node_after;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
fra.me.REG[2] = p2;
- /* ./../lib/standard//collection//list.nit:203 */
+ /* ../lib/standard/collection/list.nit:215 */
while(1) {
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)) {
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 203);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 215);
}
fra.me.REG[0] = CALL_standard___collection___abstract_collection___Container___item(fra.me.REG[2])(fra.me.REG[2]);
REGB0 = TAG_Bool(IS_EQUAL_NN(fra.me.REG[0],fra.me.REG[1]));
} 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], fra.me.REG[1]);
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
} else {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 203);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 215);
}
fra.me.REG[0] = CALL_standard___collection___list___ListNode___next(fra.me.REG[2])(fra.me.REG[2]);
fra.me.REG[2] = fra.me.REG[0];
}
}
label1: while(0);
- /* ./../lib/standard//collection//list.nit:204 */
+ /* ../lib/standard/collection/list.nit:216 */
goto label2;
label2: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[2];
}
+static const char LOCATE_standard___collection___list___List___remove_node[] = "list::List::remove_node";
void standard___collection___list___List___remove_node(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_standard___collection___list;
- fra.me.line = 207;
+ fra.me.line = 219;
fra.me.meth = LOCATE_standard___collection___list___List___remove_node;
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;
- /* ./../lib/standard//collection//list.nit:210 */
+ /* ../lib/standard/collection/list.nit:222 */
fra.me.REG[2] = CALL_standard___collection___list___ListNode___prev(fra.me.REG[1])(fra.me.REG[1]);
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)) {
- /* ./../lib/standard//collection//list.nit:211 */
+ /* ../lib/standard/collection/list.nit:223 */
fra.me.REG[2] = CALL_standard___collection___list___ListNode___next(fra.me.REG[1])(fra.me.REG[1]);
ATTR_standard___collection___list___List____head(fra.me.REG[0]) = fra.me.REG[2];
- /* ./../lib/standard//collection//list.nit:212 */
+ /* ../lib/standard/collection/list.nit:224 */
fra.me.REG[2] = CALL_standard___collection___list___ListNode___next(fra.me.REG[1])(fra.me.REG[1]);
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)) {
- /* ./../lib/standard//collection//list.nit:213 */
+ /* ../lib/standard/collection/list.nit:225 */
ATTR_standard___collection___list___List____tail(fra.me.REG[0]) = NIT_NULL;
} else {
- /* ./../lib/standard//collection//list.nit:215 */
+ /* ../lib/standard/collection/list.nit:227 */
fra.me.REG[2] = CALL_standard___collection___list___ListNode___next(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_standard___collection___list, 215);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 227);
}
CALL_standard___collection___list___ListNode___prev__eq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
}
} else {
- /* ./../lib/standard//collection//list.nit:217 */
+ /* ../lib/standard/collection/list.nit:229 */
fra.me.REG[2] = CALL_standard___collection___list___ListNode___next(fra.me.REG[1])(fra.me.REG[1]);
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)) {
- /* ./../lib/standard//collection//list.nit:218 */
+ /* ../lib/standard/collection/list.nit:230 */
fra.me.REG[2] = CALL_standard___collection___list___ListNode___prev(fra.me.REG[1])(fra.me.REG[1]);
ATTR_standard___collection___list___List____tail(fra.me.REG[0]) = fra.me.REG[2];
- /* ./../lib/standard//collection//list.nit:219 */
+ /* ../lib/standard/collection/list.nit:231 */
fra.me.REG[2] = CALL_standard___collection___list___ListNode___prev(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_standard___collection___list, 219);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 231);
}
CALL_standard___collection___list___ListNode___next__eq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
} else {
- /* ./../lib/standard//collection//list.nit:221 */
+ /* ../lib/standard/collection/list.nit:233 */
fra.me.REG[2] = CALL_standard___collection___list___ListNode___prev(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[0] = CALL_standard___collection___list___ListNode___next(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_standard___collection___list, 221);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 233);
}
CALL_standard___collection___list___ListNode___next__eq(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[0]);
- /* ./../lib/standard//collection//list.nit:222 */
+ /* ../lib/standard/collection/list.nit:234 */
fra.me.REG[0] = CALL_standard___collection___list___ListNode___next(fra.me.REG[1])(fra.me.REG[1]);
fra.me.REG[1] = CALL_standard___collection___list___ListNode___prev(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_standard___collection___list, 222);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 234);
}
CALL_standard___collection___list___ListNode___prev__eq(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
}
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___List___insert_before[] = "list::List::insert_before";
void standard___collection___list___List___insert_before(val_t p0, val_t p1, val_t p2){
struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___list;
- fra.me.line = 226;
+ fra.me.line = 238;
fra.me.meth = LOCATE_standard___collection___list___List___insert_before;
fra.me.has_broke = 0;
fra.me.REG_size = 4;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
fra.me.REG[2] = p2;
- /* ./../lib/standard//collection//list.nit:228 */
+ /* ../lib/standard/collection/list.nit:240 */
fra.me.REG[1] = NEW_ListNode_standard___collection___list___ListNode___init(fra.me.REG[1]);
- /* ./../lib/standard//collection//list.nit:229 */
+ /* ../lib/standard/collection/list.nit:241 */
fra.me.REG[3] = CALL_standard___collection___list___ListNode___prev(fra.me.REG[2])(fra.me.REG[2]);
- /* ./../lib/standard//collection//list.nit:230 */
+ /* ../lib/standard/collection/list.nit:242 */
REGB0 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB0 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[3])(fra.me.REG[3], NIT_NULL);
}
}
if (UNTAG_Bool(REGB0)) {
- /* ./../lib/standard//collection//list.nit:231 */
+ /* ../lib/standard/collection/list.nit:243 */
ATTR_standard___collection___list___List____head(fra.me.REG[0]) = fra.me.REG[1];
} else {
- /* ./../lib/standard//collection//list.nit:233 */
+ /* ../lib/standard/collection/list.nit:245 */
REGB0 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 233);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 245);
}
CALL_standard___collection___list___ListNode___next__eq(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1]);
}
- /* ./../lib/standard//collection//list.nit:235 */
+ /* ../lib/standard/collection/list.nit:247 */
CALL_standard___collection___list___ListNode___prev__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]);
- /* ./../lib/standard//collection//list.nit:236 */
+ /* ../lib/standard/collection/list.nit:248 */
CALL_standard___collection___list___ListNode___next__eq(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
- /* ./../lib/standard//collection//list.nit:237 */
+ /* ../lib/standard/collection/list.nit:249 */
CALL_standard___collection___list___ListNode___prev__eq(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___ListIterator___item[] = "list::ListIterator::(abstract_collection::Iterator::item)";
val_t standard___collection___list___ListIterator___item(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_standard___collection___list;
- fra.me.line = 244;
+ fra.me.line = 256;
fra.me.meth = LOCATE_standard___collection___list___ListIterator___item;
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;
- /* ./../lib/standard//collection//list.nit:244 */
+ /* ../lib/standard/collection/list.nit:256 */
fra.me.REG[0] = ATTR_standard___collection___list___ListIterator____node(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 244);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 256);
}
fra.me.REG[0] = CALL_standard___collection___abstract_collection___Container___item(fra.me.REG[0])(fra.me.REG[0]);
goto label1;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___list___ListIterator___item__eq[] = "list::ListIterator::item=";
void standard___collection___list___ListIterator___item__eq(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_standard___collection___list;
- fra.me.line = 246;
+ fra.me.line = 258;
fra.me.meth = LOCATE_standard___collection___list___ListIterator___item__eq;
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;
- /* ./../lib/standard//collection//list.nit:246 */
+ /* ../lib/standard/collection/list.nit:258 */
fra.me.REG[0] = ATTR_standard___collection___list___ListIterator____node(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 246);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 258);
}
CALL_standard___collection___abstract_collection___Container___item__eq(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___ListIterator___is_ok[] = "list::ListIterator::(abstract_collection::Iterator::is_ok)";
val_t standard___collection___list___ListIterator___is_ok(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_standard___collection___list;
- fra.me.line = 248;
+ fra.me.line = 260;
fra.me.meth = LOCATE_standard___collection___list___ListIterator___is_ok;
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;
- /* ./../lib/standard//collection//list.nit:248 */
+ /* ../lib/standard/collection/list.nit:260 */
fra.me.REG[0] = ATTR_standard___collection___list___ListIterator____node(fra.me.REG[0]);
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);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___collection___list___ListIterator___next[] = "list::ListIterator::(abstract_collection::Iterator::next)";
void standard___collection___list___ListIterator___next(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_standard___collection___list;
- fra.me.line = 250;
+ fra.me.line = 262;
fra.me.meth = LOCATE_standard___collection___list___ListIterator___next;
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;
- /* ./../lib/standard//collection//list.nit:252 */
+ /* ../lib/standard/collection/list.nit:264 */
fra.me.REG[1] = ATTR_standard___collection___list___ListIterator____node(fra.me.REG[0]);
REGB0 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 252);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 264);
}
fra.me.REG[1] = CALL_standard___collection___list___ListNode___next(fra.me.REG[1])(fra.me.REG[1]);
ATTR_standard___collection___list___ListIterator____node(fra.me.REG[0]) = fra.me.REG[1];
- /* ./../lib/standard//collection//list.nit:253 */
+ /* ../lib/standard/collection/list.nit:265 */
REGB0 = ATTR_standard___collection___list___ListIterator____index(fra.me.REG[0]);
REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//list.nit:253 */
+ /* ../lib/standard/collection/list.nit:265 */
ATTR_standard___collection___list___ListIterator____index(fra.me.REG[0]) = REGB1;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___ListIterator___init[] = "list::ListIterator::init";
void standard___collection___list___ListIterator___init(val_t p0, val_t p1, int* init_table){
int itpos2 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___list___ListIterator].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_standard___collection___list;
- fra.me.line = 256;
+ fra.me.line = 268;
fra.me.meth = LOCATE_standard___collection___list___ListIterator___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;
- /* ./../lib/standard//collection//list.nit:259 */
+ /* ../lib/standard/collection/list.nit:271 */
ATTR_standard___collection___list___ListIterator____list(fra.me.REG[0]) = fra.me.REG[1];
- /* ./../lib/standard//collection//list.nit:260 */
+ /* ../lib/standard/collection/list.nit:272 */
fra.me.REG[1] = ATTR_standard___collection___list___List____head(fra.me.REG[1]);
ATTR_standard___collection___list___ListIterator____node(fra.me.REG[0]) = fra.me.REG[1];
- /* ./../lib/standard//collection//list.nit:261 */
+ /* ../lib/standard/collection/list.nit:273 */
REGB0 = TAG_Int(0);
ATTR_standard___collection___list___ListIterator____index(fra.me.REG[0]) = REGB0;
stack_frame_head = fra.me.prev;
init_table[itpos2] = 1;
return;
}
+static const char LOCATE_standard___collection___list___ListIterator___index[] = "list::ListIterator::(abstract_collection::IndexedIterator::index)";
val_t standard___collection___list___ListIterator___index(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_standard___collection___list;
- fra.me.line = 270;
+ fra.me.line = 282;
fra.me.meth = LOCATE_standard___collection___list___ListIterator___index;
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;
- /* ./../lib/standard//collection//list.nit:270 */
+ /* ../lib/standard/collection/list.nit:282 */
REGB0 = TAG_Bool(ATTR_standard___collection___list___ListIterator____index(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_index", LOCATE_standard___collection___list, 270);
+ nit_abort("Uninitialized attribute %s", "_index", LOCATE_standard___collection___list, 282);
}
REGB0 = ATTR_standard___collection___list___ListIterator____index(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___collection___list___ListIterator___delete[] = "list::ListIterator::delete";
void standard___collection___list___ListIterator___delete(val_t p0){
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_standard___collection___list;
- fra.me.line = 273;
+ fra.me.line = 285;
fra.me.meth = LOCATE_standard___collection___list___ListIterator___delete;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ./../lib/standard//collection//list.nit:273 */
+ /* ../lib/standard/collection/list.nit:285 */
fra.me.REG[1] = fra.me.REG[0];
- /* ./../lib/standard//collection//list.nit:276 */
+ /* ../lib/standard/collection/list.nit:288 */
REGB0 = TAG_Bool(ATTR_standard___collection___list___ListIterator____list(fra.me.REG[1])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_list", LOCATE_standard___collection___list, 276);
+ nit_abort("Uninitialized attribute %s", "_list", LOCATE_standard___collection___list, 288);
}
fra.me.REG[2] = ATTR_standard___collection___list___ListIterator____list(fra.me.REG[1]);
fra.me.REG[1] = ATTR_standard___collection___list___ListIterator____node(fra.me.REG[1]);
REGB0 = TAG_Bool(fra.me.REG[1]!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Cast failed", NULL, LOCATE_standard___collection___list, 276);
+ nit_abort("Cast failed", NULL, LOCATE_standard___collection___list, 288);
}
CALL_standard___collection___list___List___remove_node(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___ListIterator___insert_before[] = "list::ListIterator::insert_before";
void standard___collection___list___ListIterator___insert_before(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_standard___collection___list;
- fra.me.line = 279;
+ fra.me.line = 291;
fra.me.meth = LOCATE_standard___collection___list___ListIterator___insert_before;
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;
- /* ./../lib/standard//collection//list.nit:279 */
+ /* ../lib/standard/collection/list.nit:291 */
fra.me.REG[2] = fra.me.REG[0];
- /* ./../lib/standard//collection//list.nit:282 */
+ /* ../lib/standard/collection/list.nit:294 */
REGB0 = TAG_Bool(ATTR_standard___collection___list___ListIterator____list(fra.me.REG[2])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_list", LOCATE_standard___collection___list, 282);
+ nit_abort("Uninitialized attribute %s", "_list", LOCATE_standard___collection___list, 294);
}
fra.me.REG[3] = ATTR_standard___collection___list___ListIterator____list(fra.me.REG[2]);
fra.me.REG[2] = ATTR_standard___collection___list___ListIterator____node(fra.me.REG[2]);
REGB0 = TAG_Bool(fra.me.REG[2]!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Cast failed", NULL, LOCATE_standard___collection___list, 282);
+ nit_abort("Cast failed", NULL, LOCATE_standard___collection___list, 294);
}
CALL_standard___collection___list___List___insert_before(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1], fra.me.REG[2]);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___ListNode___init[] = "list::ListNode::init";
void standard___collection___list___ListNode___init(val_t p0, val_t p1, int* init_table){
int itpos3 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___list___ListNode].i;
struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
if (init_table[itpos3]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___list;
- fra.me.line = 289;
+ fra.me.line = 301;
fra.me.meth = LOCATE_standard___collection___list___ListNode___init;
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;
- /* ./../lib/standard//collection//list.nit:289 */
+ /* ../lib/standard/collection/list.nit:301 */
fra.me.REG[2] = fra.me.REG[0];
fra.me.REG[3] = fra.me.REG[1];
CALL_standard___collection___abstract_collection___Container___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], init_table);
- /* ./../lib/standard//collection//list.nit:291 */
+ /* ../lib/standard/collection/list.nit:303 */
CALL_standard___collection___abstract_collection___Container___item__eq(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]);
stack_frame_head = fra.me.prev;
init_table[itpos3] = 1;
return;
}
+static const char LOCATE_standard___collection___list___ListNode___next[] = "list::ListNode::next";
val_t standard___collection___list___ListNode___next(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_standard___collection___list;
- fra.me.line = 294;
+ fra.me.line = 306;
fra.me.meth = LOCATE_standard___collection___list___ListNode___next;
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;
- /* ./../lib/standard//collection//list.nit:294 */
+ /* ../lib/standard/collection/list.nit:306 */
fra.me.REG[0] = ATTR_standard___collection___list___ListNode____next(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___list___ListNode___next__eq[] = "list::ListNode::next=";
void standard___collection___list___ListNode___next__eq(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___list;
- fra.me.line = 294;
+ fra.me.line = 306;
fra.me.meth = LOCATE_standard___collection___list___ListNode___next__eq;
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;
- /* ./../lib/standard//collection//list.nit:294 */
+ /* ../lib/standard/collection/list.nit:306 */
ATTR_standard___collection___list___ListNode____next(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___list___ListNode___prev[] = "list::ListNode::prev";
val_t standard___collection___list___ListNode___prev(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_standard___collection___list;
- fra.me.line = 297;
+ fra.me.line = 309;
fra.me.meth = LOCATE_standard___collection___list___ListNode___prev;
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;
- /* ./../lib/standard//collection//list.nit:297 */
+ /* ../lib/standard/collection/list.nit:309 */
fra.me.REG[0] = ATTR_standard___collection___list___ListNode____prev(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___list___ListNode___prev__eq[] = "list::ListNode::prev=";
void standard___collection___list___ListNode___prev__eq(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___list;
- fra.me.line = 297;
+ fra.me.line = 309;
fra.me.meth = LOCATE_standard___collection___list___ListNode___prev__eq;
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;
- /* ./../lib/standard//collection//list.nit:297 */
+ /* ../lib/standard/collection/list.nit:309 */
ATTR_standard___collection___list___ListNode____prev(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;