X-Git-Url: http://nitlanguage.org diff --git a/c_src/standard___collection___list._sep.c b/c_src/standard___collection___list._sep.c deleted file mode 100644 index 972a732..0000000 --- a/c_src/standard___collection___list._sep.c +++ /dev/null @@ -1,1762 +0,0 @@ -/* 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; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - fra.me.line = 21; - fra.me.meth = LOCATE_standard___collection___list___List_____bra; - 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; - REGB0 = p1; - /* ../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)) { - nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 22); - } - fra.me.REG[0] = CALL_standard___collection___abstract_collection___Container___item(fra.me.REG[0])(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_____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; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - fra.me.line = 24; - fra.me.meth = LOCATE_standard___collection___list___List_____braeq; - fra.me.has_broke = 0; - fra.me.REG_size = 2; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[0] = p0; - REGB0 = p1; - fra.me.REG[1] = p2; - /* ../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)) { - nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 24); - } - 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___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; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - fra.me.line = 26; - fra.me.meth = LOCATE_standard___collection___list___List___first; - 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: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)) { - nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 27); - } - fra.me.REG[0] = CALL_standard___collection___abstract_collection___Container___item(fra.me.REG[0])(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___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; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - fra.me.line = 29; - fra.me.meth = LOCATE_standard___collection___list___List___first__eq; - fra.me.has_broke = 0; - fra.me.REG_size = 2; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - /* ../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)) { - nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 30); - } - 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___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; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - fra.me.line = 32; - fra.me.meth = LOCATE_standard___collection___list___List___last; - 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: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)) { - nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 33); - } - fra.me.REG[0] = CALL_standard___collection___abstract_collection___Container___item(fra.me.REG[0])(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___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; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - fra.me.line = 35; - fra.me.meth = LOCATE_standard___collection___list___List___last__eq; - fra.me.has_broke = 0; - fra.me.REG_size = 2; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - /* ../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)) { - nit_abort("Reciever is null", NULL, LOCATE_standard___collection___list, 36); - } - 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___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; - val_t REGB1; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - fra.me.line = 40; - fra.me.meth = LOCATE_standard___collection___list___List___is_empty; - 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: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(0); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL); - REGB0 = REGB1; - } - } - goto label1; - label1: while(0); - 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; - val_t REGB1; - val_t REGB2; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - fra.me.line = 43; - fra.me.meth = LOCATE_standard___collection___list___List___length; - fra.me.has_broke = 0; - fra.me.REG_size = 2; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[0] = p0; - /* ../lib/standard/collection/list.nit:46 */ - REGB0 = TAG_Int(0); - /* ../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 */ - 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(0); - REGB1 = REGB2; - } else { - REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL); - REGB1 = REGB2; - } - } - REGB1 = TAG_Bool(!UNTAG_Bool(REGB1)); - if (UNTAG_Bool(REGB1)) { - /* ../lib/standard/collection/list.nit:49 */ - REGB1 = TAG_Int(1); - /* ../lib/standard/kernel.nit:245 */ - REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1)); - /* ../lib/standard/collection/list.nit:49 */ - REGB0 = REGB1; - /* ../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 */ - goto label1; - } - } - label1: while(0); - /* ../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; - val_t REGB1; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - fra.me.line = 55; - fra.me.meth = LOCATE_standard___collection___list___List___has; - fra.me.has_broke = 0; - fra.me.REG_size = 3; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - /* ../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); - if (UNTAG_Bool(REGB0)) { - } else { - REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL); - if (UNTAG_Bool(REGB1)) { - REGB1 = TAG_Bool(0); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL); - REGB0 = REGB1; - } - } - REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); - goto label1; - label1: while(0); - 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; - val_t REGB1; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - fra.me.line = 58; - fra.me.meth = LOCATE_standard___collection___list___List___has_only; - fra.me.has_broke = 0; - fra.me.REG_size = 3; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - /* ../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 */ - 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(0); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL); - REGB0 = REGB1; - } - } - REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); - if (UNTAG_Bool(REGB0)) { - /* ../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); - } - fra.me.REG[2] = CALL_standard___collection___abstract_collection___Container___item(fra.me.REG[0])(fra.me.REG[0]); - REGB0 = TAG_Bool(IS_EQUAL_NN(fra.me.REG[2],fra.me.REG[1])); - if (UNTAG_Bool(REGB0)) { - } else { - REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL); - if (UNTAG_Bool(REGB1)) { - 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 = REGB1; - } - } - REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); - if (UNTAG_Bool(REGB0)) { - REGB0 = TAG_Bool(0); - goto label1; - } - /* ../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 */ - goto label2; - } - } - label2: while(0); - /* ../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; - val_t REGB1; - val_t REGB2; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - fra.me.line = 68; - fra.me.meth = LOCATE_standard___collection___list___List___count; - fra.me.has_broke = 0; - fra.me.REG_size = 3; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - /* ../lib/standard/collection/list.nit:70 */ - REGB0 = TAG_Int(0); - /* ../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 */ - 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(0); - REGB1 = REGB2; - } else { - REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL); - REGB1 = REGB2; - } - } - REGB1 = TAG_Bool(!UNTAG_Bool(REGB1)); - if (UNTAG_Bool(REGB1)) { - /* ../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); - } - fra.me.REG[2] = CALL_standard___collection___abstract_collection___Container___item(fra.me.REG[0])(fra.me.REG[0]); - REGB1 = TAG_Bool(IS_EQUAL_NN(fra.me.REG[2],fra.me.REG[1])); - if (UNTAG_Bool(REGB1)) { - } else { - REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL); - if (UNTAG_Bool(REGB2)) { - 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 = REGB2; - } - } - REGB1 = TAG_Bool(!UNTAG_Bool(REGB1)); - if (UNTAG_Bool(REGB1)) { - REGB1 = TAG_Int(1); - /* ../lib/standard/kernel.nit:245 */ - REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1)); - /* ../lib/standard/collection/list.nit:73 */ - REGB0 = REGB1; - } - /* ../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 */ - goto label1; - } - } - label1: while(0); - /* ../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:243 */ - 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:242 */ - REGB2 = TAG_Bool(UNTAG_Int(REGB0)=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:242 */ - REGB2 = TAG_Bool(UNTAG_Int(REGB1)vft[INIT_TABLE_POS_standard___collection___list___List].i; - struct {struct stack_frame_t me;} fra; - val_t tmp; - 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 = 185; - fra.me.meth = LOCATE_standard___collection___list___List___init; - 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; - stack_frame_head = fra.me.prev; - 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; - val_t tmp; - 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 = 188; - fra.me.meth = LOCATE_standard___collection___list___List___from; - fra.me.has_broke = 0; - fra.me.REG_size = 2; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - /* ../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 REGB1; - val_t REGB2; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - 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.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; - /* ../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: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:242 */ - REGB1 = TAG_Bool(UNTAG_Int(REGB0)UNTAG_Int(REGB1)); - } else { - /* ../lib/standard/collection/list.nit:204 */ - REGB2 = TAG_Bool(0); - REGB1 = REGB2; - } - if (UNTAG_Bool(REGB1)) { - /* ../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, 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:206 */ - REGB1 = TAG_Int(1); - /* ../lib/standard/kernel.nit:247 */ - REGB1 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB1)); - /* ../lib/standard/collection/list.nit:206 */ - REGB0 = REGB1; - } else { - /* ../lib/standard/collection/list.nit:204 */ - goto label2; - } - } - label2: while(0); - /* ../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 REGB1; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - 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.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - fra.me.REG[2] = p2; - /* ../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(0); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL); - REGB0 = REGB1; - } - } - REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); - 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, 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])); - if (UNTAG_Bool(REGB0)) { - } else { - REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL); - if (UNTAG_Bool(REGB1)) { - 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 = REGB1; - } - } - REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); - } else { - 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, 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]; - } else { - goto label1; - } - } - label1: while(0); - /* ../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 REGB1; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - 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.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - /* ../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(0); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL); - REGB0 = REGB1; - } - } - if (UNTAG_Bool(REGB0)) { - /* ../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: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(0); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL); - REGB0 = REGB1; - } - } - if (UNTAG_Bool(REGB0)) { - /* ../lib/standard/collection/list.nit:225 */ - ATTR_standard___collection___list___List____tail(fra.me.REG[0]) = NIT_NULL; - } else { - /* ../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, 227); - } - CALL_standard___collection___list___ListNode___prev__eq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL); - } - } else { - /* ../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(0); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL); - REGB0 = REGB1; - } - } - if (UNTAG_Bool(REGB0)) { - /* ../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: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, 231); - } - CALL_standard___collection___list___ListNode___next__eq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL); - } else { - /* ../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, 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: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, 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 REGB1; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - 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.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[3] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - fra.me.REG[2] = p2; - /* ../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:241 */ - fra.me.REG[3] = CALL_standard___collection___list___ListNode___prev(fra.me.REG[2])(fra.me.REG[2]); - /* ../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(0); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[3])(fra.me.REG[3], NIT_NULL); - REGB0 = REGB1; - } - } - if (UNTAG_Bool(REGB0)) { - /* ../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:245 */ - REGB0 = TAG_Bool(fra.me.REG[3]==NIT_NULL); - if (UNTAG_Bool(REGB0)) { - 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: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: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: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 = 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: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, 256); - } - fra.me.REG[0] = CALL_standard___collection___abstract_collection___Container___item(fra.me.REG[0])(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___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 = 258; - fra.me.meth = LOCATE_standard___collection___list___ListIterator___item__eq; - fra.me.has_broke = 0; - fra.me.REG_size = 2; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - /* ../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, 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 REGB1; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - 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: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(0); - REGB0 = REGB1; - } else { - REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], NIT_NULL); - REGB0 = REGB1; - } - } - REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); - goto label1; - label1: while(0); - 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 REGB1; - val_t tmp; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - 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.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[0] = p0; - /* ../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, 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:265 */ - REGB0 = ATTR_standard___collection___list___ListIterator____index(fra.me.REG[0]); - REGB1 = TAG_Int(1); - /* ../lib/standard/kernel.nit:245 */ - REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1)); - /* ../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; - val_t REGB0; - val_t tmp; - if (init_table[itpos2]) return; - fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; - fra.me.file = LOCATE_standard___collection___list; - 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.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - /* ../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: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: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 = 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: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, 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 = 285; - fra.me.meth = LOCATE_standard___collection___list___ListIterator___delete; - 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; - /* ../lib/standard/collection/list.nit:285 */ - fra.me.REG[1] = fra.me.REG[0]; - /* ../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, 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, 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 = 291; - fra.me.meth = LOCATE_standard___collection___list___ListIterator___insert_before; - fra.me.has_broke = 0; - fra.me.REG_size = 4; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[3] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - /* ../lib/standard/collection/list.nit:291 */ - fra.me.REG[2] = fra.me.REG[0]; - /* ../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, 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, 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; - val_t tmp; - 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 = 301; - fra.me.meth = LOCATE_standard___collection___list___ListNode___init; - fra.me.has_broke = 0; - fra.me.REG_size = 4; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[2] = NIT_NULL; - fra.me.REG[3] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - /* ../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: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 = 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: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 = 306; - fra.me.meth = LOCATE_standard___collection___list___ListNode___next__eq; - fra.me.has_broke = 0; - fra.me.REG_size = 2; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - /* ../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 = 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: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 = 309; - fra.me.meth = LOCATE_standard___collection___list___ListNode___prev__eq; - fra.me.has_broke = 0; - fra.me.REG_size = 2; - fra.me.nitni_local_ref_head = NULL; - fra.me.REG[0] = NIT_NULL; - fra.me.REG[1] = NIT_NULL; - fra.me.REG[0] = p0; - fra.me.REG[1] = p1; - /* ../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; -}