-val_t abstract_collection___Container___first(val_t self) {
- struct trace_t trace = {NULL, NULL, 126, LOCATE_abstract_collection___Container___first};
- val_t variable0;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- variable0 = ATTR_abstract_collection___Container____item( self) /*Container::_item*/;
- goto return_label10;
- return_label10: while(false);
- tracehead = trace.prev;
- return variable0;
-}
-val_t abstract_collection___Container___is_empty(val_t self) {
- struct trace_t trace = {NULL, NULL, 128, LOCATE_abstract_collection___Container___is_empty};
- val_t variable0;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- variable0 = TAG_Bool(false);
- goto return_label11;
- return_label11: while(false);
- tracehead = trace.prev;
- return variable0;
-}
-val_t abstract_collection___Container___length(val_t self) {
- struct trace_t trace = {NULL, NULL, 130, LOCATE_abstract_collection___Container___length};
- val_t variable0;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- variable0 = TAG_Int(1);
- goto return_label12;
- return_label12: while(false);
- tracehead = trace.prev;
- return variable0;
-}
-val_t abstract_collection___Container___has(val_t self, val_t param0) {
- struct trace_t trace = {NULL, NULL, 132, LOCATE_abstract_collection___Container___has};
- val_t variable0;
- val_t variable1;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- variable0 = param0;
- variable1 = ATTR_abstract_collection___Container____item( self) /*Container::_item*/;
- variable1 = TAG_Bool((variable1 == variable0 /*an_item*/) || ((variable1 != NIT_NULL) && ((((kernel___Object_____eqeq_t)CALL(variable1,COLOR_kernel___Object_____eqeq))==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable1, variable0 /*an_item*/)):(UNTAG_Bool(((kernel___Object_____eqeq_t)CALL(variable1,COLOR_kernel___Object_____eqeq))(variable1, variable0 /*an_item*/) /*Object::==*/)))));
- goto return_label13;
- return_label13: while(false);
- tracehead = trace.prev;
- return variable1;
-}
-val_t abstract_collection___Container___has_only(val_t self, val_t param0) {
- struct trace_t trace = {NULL, NULL, 134, LOCATE_abstract_collection___Container___has_only};
- val_t variable0;
- val_t variable1;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- variable0 = param0;
- variable1 = ATTR_abstract_collection___Container____item( self) /*Container::_item*/;
- variable1 = TAG_Bool((variable1 == variable0 /*an_item*/) || ((variable1 != NIT_NULL) && ((((kernel___Object_____eqeq_t)CALL(variable1,COLOR_kernel___Object_____eqeq))==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable1, variable0 /*an_item*/)):(UNTAG_Bool(((kernel___Object_____eqeq_t)CALL(variable1,COLOR_kernel___Object_____eqeq))(variable1, variable0 /*an_item*/) /*Object::==*/)))));
- goto return_label14;
- return_label14: while(false);
- tracehead = trace.prev;
- return variable1;
-}
-val_t abstract_collection___Container___count(val_t self, val_t param0) {
- struct trace_t trace = {NULL, NULL, 136, LOCATE_abstract_collection___Container___count};
- val_t variable0;
- val_t variable1;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- variable0 = param0;
- variable1 = ATTR_abstract_collection___Container____item( self) /*Container::_item*/;
- variable1 = TAG_Bool((variable1 == variable0 /*an_item*/) || ((variable1 != NIT_NULL) && ((((kernel___Object_____eqeq_t)CALL(variable1,COLOR_kernel___Object_____eqeq))==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable1, variable0 /*an_item*/)):(UNTAG_Bool(((kernel___Object_____eqeq_t)CALL(variable1,COLOR_kernel___Object_____eqeq))(variable1, variable0 /*an_item*/) /*Object::==*/)))));
- if (UNTAG_Bool(variable1)) { /*if*/
- variable1 = TAG_Int(1);
- goto return_label15;
- } else { /*if*/
- variable1 = TAG_Int(0);
- goto return_label15;
- }
- return_label15: while(false);
- tracehead = trace.prev;
- return variable1;
-}
-val_t abstract_collection___Container___iterator(val_t self) {
- struct trace_t trace = {NULL, NULL, 145, LOCATE_abstract_collection___Container___iterator};
- val_t variable0;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- variable0 = NEW_abstract_collection___ContainerIterator___init( self); /*new ContainerIterator[E]*/
- goto return_label16;
- return_label16: while(false);
- tracehead = trace.prev;
- return variable0;
-}
-void abstract_collection___Container___init(val_t self, val_t param0, int* init_table) {
- struct trace_t trace = {NULL, NULL, 147, LOCATE_abstract_collection___Container___init};
- val_t variable0;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- variable0 = param0;
- if (init_table[VAL2OBJ( self)->vft[INIT_TABLE_POS_Container].i]) return;
- ATTR_abstract_collection___Container____item( self) /*Container::_item*/ = variable0 /*e*/;
- init_table[VAL2OBJ( self)->vft[INIT_TABLE_POS_Container].i] = 1;
- tracehead = trace.prev;
+val_t abstract_collection___Container___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_abstract_collection;
+ fra.me.line = 145;
+ fra.me.meth = LOCATE_abstract_collection___Container___iterator;
+ fra.me.has_broke = 0;
+ fra.me.REG_size = 1;
+ fra.me.REG[0] = NIT_NULL;
+ fra.me.REG[0] = p0;
+ fra.me.REG[0] = NEW_ContainerIterator_abstract_collection___ContainerIterator___init(fra.me.REG[0]);
+ /* ./../lib/standard//collection//abstract_collection.nit:145 */
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return fra.me.REG[0];
+}
+val_t abstract_collection___Container___is_empty(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_abstract_collection;
+ fra.me.line = 128;
+ fra.me.meth = LOCATE_abstract_collection___Container___is_empty;
+ fra.me.has_broke = 0;
+ fra.me.REG_size = 1;
+ fra.me.REG[0] = NIT_NULL;
+ fra.me.REG[0] = p0;
+ REGB0 = TAG_Bool(false);
+ /* ./../lib/standard//collection//abstract_collection.nit:128 */
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+val_t abstract_collection___Container___length(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_abstract_collection;
+ fra.me.line = 130;
+ fra.me.meth = LOCATE_abstract_collection___Container___length;
+ fra.me.has_broke = 0;
+ fra.me.REG_size = 1;
+ fra.me.REG[0] = NIT_NULL;
+ fra.me.REG[0] = p0;
+ REGB0 = TAG_Int(1);
+ /* ./../lib/standard//collection//abstract_collection.nit:130 */
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+val_t abstract_collection___Container___has(val_t p0, val_t p1){
+ 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_abstract_collection;
+ fra.me.line = 132;
+ fra.me.meth = LOCATE_abstract_collection___Container___has;
+ fra.me.has_broke = 0;
+ fra.me.REG_size = 2;
+ fra.me.REG[0] = NIT_NULL;
+ fra.me.REG[1] = NIT_NULL;
+ fra.me.REG[0] = p0;
+ fra.me.REG[1] = p1;
+ fra.me.REG[0] = ATTR_abstract_collection___Container____item(fra.me.REG[0]);
+ REGB0 = TAG_Bool(IS_EQUAL_NN(fra.me.REG[0],fra.me.REG[1]));
+ /* ./../lib/standard//collection//abstract_collection.nit:132 */
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
+ if (UNTAG_Bool(REGB1)) {
+ REGB1 = TAG_Bool(false);
+ REGB0 = REGB1;
+ } else {
+ REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+ REGB0 = REGB1;
+ }
+ }
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+val_t abstract_collection___Container___has_only(val_t p0, val_t p1){
+ 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_abstract_collection;
+ fra.me.line = 134;
+ fra.me.meth = LOCATE_abstract_collection___Container___has_only;
+ fra.me.has_broke = 0;
+ fra.me.REG_size = 2;
+ fra.me.REG[0] = NIT_NULL;
+ fra.me.REG[1] = NIT_NULL;
+ fra.me.REG[0] = p0;
+ fra.me.REG[1] = p1;
+ fra.me.REG[0] = ATTR_abstract_collection___Container____item(fra.me.REG[0]);
+ REGB0 = TAG_Bool(IS_EQUAL_NN(fra.me.REG[0],fra.me.REG[1]));
+ /* ./../lib/standard//collection//abstract_collection.nit:134 */
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
+ if (UNTAG_Bool(REGB1)) {
+ REGB1 = TAG_Bool(false);
+ REGB0 = REGB1;
+ } else {
+ REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+ REGB0 = REGB1;
+ }
+ }
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+val_t abstract_collection___Container___count(val_t p0, val_t p1){
+ 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_abstract_collection;
+ fra.me.line = 136;
+ fra.me.meth = LOCATE_abstract_collection___Container___count;
+ fra.me.has_broke = 0;
+ fra.me.REG_size = 2;
+ fra.me.REG[0] = NIT_NULL;
+ fra.me.REG[1] = NIT_NULL;
+ fra.me.REG[0] = p0;
+ fra.me.REG[1] = p1;
+ fra.me.REG[0] = ATTR_abstract_collection___Container____item(fra.me.REG[0]);
+ REGB0 = TAG_Bool(IS_EQUAL_NN(fra.me.REG[0],fra.me.REG[1]));
+ /* ./../lib/standard//collection//abstract_collection.nit:138 */
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
+ if (UNTAG_Bool(REGB1)) {
+ REGB1 = TAG_Bool(false);
+ REGB0 = REGB1;
+ } else {
+ REGB1 = CALL_kernel___Object_____eqeq(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+ REGB0 = REGB1;
+ }
+ }
+ if (UNTAG_Bool(REGB0)) {
+ REGB0 = TAG_Int(1);
+ /* ./../lib/standard//collection//abstract_collection.nit:139 */
+ goto label1;
+ } else {
+ REGB1 = TAG_Int(0);
+ REGB0 = REGB1;
+ /* ./../lib/standard//collection//abstract_collection.nit:141 */
+ goto label1;
+ }
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+val_t abstract_collection___Container___first(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_abstract_collection;
+ fra.me.line = 126;
+ fra.me.meth = LOCATE_abstract_collection___Container___first;
+ fra.me.has_broke = 0;
+ fra.me.REG_size = 1;
+ fra.me.REG[0] = NIT_NULL;
+ fra.me.REG[0] = p0;
+ fra.me.REG[0] = ATTR_abstract_collection___Container____item(fra.me.REG[0]);
+ /* ./../lib/standard//collection//abstract_collection.nit:126 */
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return fra.me.REG[0];
+}
+void abstract_collection___Container___init(val_t p0, val_t p1, int* init_table){
+ int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_Container].i;
+ struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+ val_t tmp;
+ if (init_table[itpos0]) return;
+ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+ fra.me.file = LOCATE_abstract_collection;
+ fra.me.line = 147;
+ fra.me.meth = LOCATE_abstract_collection___Container___init;
+ fra.me.has_broke = 0;
+ fra.me.REG_size = 2;
+ fra.me.REG[0] = NIT_NULL;
+ fra.me.REG[1] = NIT_NULL;
+ fra.me.REG[0] = p0;
+ fra.me.REG[1] = p1;
+ /* ./../lib/standard//collection//abstract_collection.nit:148 */
+ ATTR_abstract_collection___Container____item(fra.me.REG[0]) = fra.me.REG[1];
+ stack_frame_head = fra.me.prev;
+ init_table[itpos0] = 1;