-val_t abstract_collection___Container___iterator(val_t self) {
- struct trace_t trace = {NULL, NULL, 145, LOCATE_abstract_collection___Container___iterator};
- val_t variable[3];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- /* Register variable[0]: Local variable */
- variable[0] = self;
- /* Register variable[1]: Method return value and escape marker */
- /* Register variable[2]: Result */
- variable[2] = NEW_ContainerIterator_abstract_collection___ContainerIterator___init(variable[0]) /*new ContainerIterator[E]*/;
- variable[1] = variable[2];
- goto return_label10;
- return_label10: while(false);
- tracehead = trace.prev;
- return variable[1];
-}
-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 variable[2];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- /* Register variable[0]: Local variable */
- variable[0] = self;
- /* Register variable[1]: Method return value and escape marker */
- variable[1] = TAG_Bool(false);
- goto return_label11;
- return_label11: while(false);
- tracehead = trace.prev;
- return variable[1];
-}
-val_t abstract_collection___Container___length(val_t self) {
- struct trace_t trace = {NULL, NULL, 130, LOCATE_abstract_collection___Container___length};
- val_t variable[2];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- /* Register variable[0]: Local variable */
- variable[0] = self;
- /* Register variable[1]: Method return value and escape marker */
- variable[1] = TAG_Int(1);
- goto return_label12;
- return_label12: while(false);
- tracehead = trace.prev;
- return variable[1];
-}
-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 variable[4];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- /* Register variable[0]: Local variable */
- variable[0] = self;
- /* Register variable[1]: Local variable */
- variable[1] = param0;
- /* Register variable[2]: Method return value and escape marker */
- /* Register variable[3]: Result */
- variable[3] = ATTR_abstract_collection___Container____item(variable[0]) /*Container::_item*/;
- /* Register variable[3]: Result */
- variable[3] = TAG_Bool((variable[3] == variable[1] /*an_item*/) || ((variable[3] != NIT_NULL) && ((CALL_kernel___Object_____eqeq(variable[3])==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable[3], variable[1] /*an_item*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3], variable[1] /*an_item*/) /*Object::==*/)))));
- variable[2] = variable[3];
- goto return_label13;
- return_label13: while(false);
- tracehead = trace.prev;
- return variable[2];
-}
-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 variable[4];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- /* Register variable[0]: Local variable */
- variable[0] = self;
- /* Register variable[1]: Local variable */
- variable[1] = param0;
- /* Register variable[2]: Method return value and escape marker */
- /* Register variable[3]: Result */
- variable[3] = ATTR_abstract_collection___Container____item(variable[0]) /*Container::_item*/;
- /* Register variable[3]: Result */
- variable[3] = TAG_Bool((variable[3] == variable[1] /*an_item*/) || ((variable[3] != NIT_NULL) && ((CALL_kernel___Object_____eqeq(variable[3])==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable[3], variable[1] /*an_item*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3], variable[1] /*an_item*/) /*Object::==*/)))));
- variable[2] = variable[3];
- goto return_label14;
- return_label14: while(false);
- tracehead = trace.prev;
- return variable[2];
-}
-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 variable[4];
- struct WBT_ **closurevariable = NULL;
- trace.prev = tracehead; tracehead = &trace;
- trace.file = LOCATE_abstract_collection;
- /* Register variable[0]: Local variable */
- variable[0] = self;
- /* Register variable[1]: Local variable */
- variable[1] = param0;
- /* Register variable[2]: Method return value and escape marker */
- /* Register variable[3]: Result */
- variable[3] = ATTR_abstract_collection___Container____item(variable[0]) /*Container::_item*/;
- /* Register variable[3]: Result */
- variable[3] = TAG_Bool((variable[3] == variable[1] /*an_item*/) || ((variable[3] != NIT_NULL) && ((CALL_kernel___Object_____eqeq(variable[3])==kernel___Object_____eqeq)?(IS_EQUAL_NN(variable[3], variable[1] /*an_item*/)):(UNTAG_Bool(CALL_kernel___Object_____eqeq(variable[3])(variable[3], variable[1] /*an_item*/) /*Object::==*/)))));
- if (UNTAG_Bool(variable[3])) { /*if*/
- variable[2] = TAG_Int(1);
- goto return_label15;
- } else { /*if*/
- variable[2] = TAG_Int(0);
- goto return_label15;
+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 = 137;
+ 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;
+ /* ./../lib/standard//collection//abstract_collection.nit:137 */
+ fra.me.REG[0] = ATTR_abstract_collection___Container____item(fra.me.REG[0]);
+ 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 = 139;
+ 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;
+ /* ./../lib/standard//collection//abstract_collection.nit:139 */
+ REGB0 = TAG_Bool(false);
+ 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 = 141;
+ 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;
+ /* ./../lib/standard//collection//abstract_collection.nit:141 */
+ REGB0 = TAG_Int(1);
+ 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 = 143;
+ 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;
+ /* ./../lib/standard//collection//abstract_collection.nit:143 */
+ 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]));
+ 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;
+ }