/* This C file is generated by NIT to compile module standard___collection___hash_collection. */
#include "standard___collection___hash_collection._sep.h"
-val_t standard___collection___hash_collection___HashCollection___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_standard___collection___hash_collection;
- fra.me.line = 25;
- fra.me.meth = LOCATE_standard___collection___hash_collection___HashCollection___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//hash_collection.nit:25 */
- REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0])!=NIT_NULL);
- if (UNTAG_Bool(REGB0)) {
- } else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 25);
- }
- REGB0 = ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0]);
- stack_frame_head = fra.me.prev;
- return REGB0;
-}
+static const char LOCATE_standard___collection___hash_collection___HashCollection___first_item[] = "hash_collection::HashCollection::first_item";
val_t standard___collection___hash_collection___HashCollection___first_item(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t tmp;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashCollection___first_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//hash_collection.nit:27 */
+ /* ../lib/standard/collection/hash_collection.nit:27 */
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___hash_collection___HashCollection___index_at[] = "hash_collection::HashCollection::index_at";
val_t standard___collection___hash_collection___HashCollection___index_at(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 REGB2;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___hash_collection;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashCollection___index_at;
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//hash_collection.nit:39 */
+ /* ../lib/standard/collection/hash_collection.nit:39 */
REGB0 = CALL_standard___hash___Object___hash(fra.me.REG[1])(fra.me.REG[1]);
REGB1 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___collection___hash_collection, 39);
}
REGB1 = ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[0]);
- /* ./../lib/standard//kernel.nit:223 */
+ /* ../lib/standard/kernel.nit:243 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)%UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:40 */
+ /* ../lib/standard/collection/hash_collection.nit:40 */
REGB0 = TAG_Int(0);
- /* ./../lib/standard//kernel.nit:215 */
+ REGB2 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB2)) {
+ } else {
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
+ }
+ /* ../lib/standard/kernel.nit:235 */
REGB0 = TAG_Bool(UNTAG_Int(REGB1)<UNTAG_Int(REGB0));
- /* ./../lib/standard//collection//hash_collection.nit:40 */
+ /* ../lib/standard/collection/hash_collection.nit:40 */
if (UNTAG_Bool(REGB0)) {
- /* ./../lib/standard//kernel.nit:219 */
+ /* ../lib/standard/kernel.nit:239 */
REGB0 = TAG_Int(-UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:40 */
+ /* ../lib/standard/collection/hash_collection.nit:40 */
REGB1 = REGB0;
}
- /* ./../lib/standard//collection//hash_collection.nit:41 */
+ /* ../lib/standard/collection/hash_collection.nit:41 */
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return REGB1;
}
+static const char LOCATE_standard___collection___hash_collection___HashCollection___node_at[] = "hash_collection::HashCollection::node_at";
val_t standard___collection___hash_collection___HashCollection___node_at(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
val_t REGB0;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashCollection___node_at;
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//hash_collection.nit:48 */
+ /* ../lib/standard/collection/hash_collection.nit:48 */
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashCollection____last_accessed_key(fra.me.REG[0]);
REGB0 = TAG_Bool(IS_EQUAL_ON(fra.me.REG[1],fra.me.REG[2]));
if (UNTAG_Bool(REGB0)) {
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashCollection____last_accessed_node(fra.me.REG[0]);
goto label1;
}
- /* ./../lib/standard//collection//hash_collection.nit:50 */
+ /* ../lib/standard/collection/hash_collection.nit:50 */
REGB0 = CALL_standard___collection___hash_collection___HashCollection___index_at(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
fra.me.REG[3] = CALL_standard___collection___hash_collection___HashCollection___node_at_idx(fra.me.REG[0])(fra.me.REG[0], REGB0, fra.me.REG[1]);
- /* ./../lib/standard//collection//hash_collection.nit:51 */
+ /* ../lib/standard/collection/hash_collection.nit:51 */
ATTR_standard___collection___hash_collection___HashCollection____last_accessed_key(fra.me.REG[0]) = fra.me.REG[1];
- /* ./../lib/standard//collection//hash_collection.nit:52 */
+ /* ../lib/standard/collection/hash_collection.nit:52 */
ATTR_standard___collection___hash_collection___HashCollection____last_accessed_node(fra.me.REG[0]) = fra.me.REG[3];
- /* ./../lib/standard//collection//hash_collection.nit:53 */
+ /* ../lib/standard/collection/hash_collection.nit:53 */
fra.me.REG[2] = fra.me.REG[3];
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[2];
}
+static const char LOCATE_standard___collection___hash_collection___HashCollection___node_at_idx[] = "hash_collection::HashCollection::node_at_idx";
val_t standard___collection___hash_collection___HashCollection___node_at_idx(val_t p0, val_t p1, val_t p2){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashCollection___node_at_idx;
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;
fra.me.REG[1] = p2;
- /* ./../lib/standard//collection//hash_collection.nit:59 */
+ /* ../lib/standard/collection/hash_collection.nit:59 */
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashCollection____array(fra.me.REG[0]);
REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
nit_abort("Reciever is null", NULL, LOCATE_standard___collection___hash_collection, 59);
}
- /* ./../lib/standard//collection//array.nit:654 */
+ /* ../lib/standard/collection/array.nit:724 */
fra.me.REG[0] = ((Nit_NativeArray)fra.me.REG[0])->val[UNTAG_Int(REGB0)];
- /* ./../lib/standard//collection//hash_collection.nit:60 */
+ /* ../lib/standard/collection/hash_collection.nit:60 */
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//hash_collection.nit:61 */
+ /* ../lib/standard/collection/hash_collection.nit:61 */
REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 61);
}
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[0]);
- /* ./../lib/standard//collection//hash_collection.nit:62 */
+ /* ../lib/standard/collection/hash_collection.nit:62 */
REGB0 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[2],fra.me.REG[1]));
if (UNTAG_Bool(REGB0)) {
- REGB0 = TAG_Bool(true);
+ REGB0 = TAG_Bool(1);
} else {
REGB1 = TAG_Bool(IS_EQUAL_OO(fra.me.REG[2],fra.me.REG[1]));
if (UNTAG_Bool(REGB1)) {
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
- /* ./../lib/standard//collection//hash_collection.nit:63 */
+ /* ../lib/standard/collection/hash_collection.nit:63 */
goto label1;
}
- /* ./../lib/standard//collection//hash_collection.nit:65 */
+ /* ../lib/standard/collection/hash_collection.nit:65 */
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashNode____next_in_bucklet(fra.me.REG[0]);
fra.me.REG[0] = fra.me.REG[2];
} else {
- /* ./../lib/standard//collection//hash_collection.nit:60 */
+ /* ../lib/standard/collection/hash_collection.nit:60 */
goto label1;
}
}
label1: while(0);
- /* ./../lib/standard//collection//hash_collection.nit:67 */
+ /* ../lib/standard/collection/hash_collection.nit:67 */
goto label2;
label2: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___hash_collection___HashCollection___store[] = "hash_collection::HashCollection::store";
void standard___collection___hash_collection___HashCollection___store(val_t p0, val_t p1, val_t p2){
struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
val_t REGB0;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashCollection___store;
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[0] = p0;
REGB0 = p1;
fra.me.REG[1] = p2;
- /* ./../lib/standard//collection//hash_collection.nit:74 */
+ /* ../lib/standard/collection/hash_collection.nit:74 */
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} 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], NIT_NULL);
}
}
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//hash_collection.nit:75 */
+ /* ../lib/standard/collection/hash_collection.nit:75 */
ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]) = fra.me.REG[1];
} else {
- /* ./../lib/standard//collection//hash_collection.nit:77 */
+ /* ../lib/standard/collection/hash_collection.nit:77 */
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashCollection____last_item(fra.me.REG[0]);
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
}
ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[2]) = fra.me.REG[1];
}
- /* ./../lib/standard//collection//hash_collection.nit:79 */
+ /* ../lib/standard/collection/hash_collection.nit:79 */
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashCollection____last_item(fra.me.REG[0]);
ATTR_standard___collection___hash_collection___HashNode____prev_item(fra.me.REG[1]) = fra.me.REG[2];
- /* ./../lib/standard//collection//hash_collection.nit:80 */
+ /* ../lib/standard/collection/hash_collection.nit:80 */
ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[1]) = NIT_NULL;
- /* ./../lib/standard//collection//hash_collection.nit:81 */
+ /* ../lib/standard/collection/hash_collection.nit:81 */
ATTR_standard___collection___hash_collection___HashCollection____last_item(fra.me.REG[0]) = fra.me.REG[1];
- /* ./../lib/standard//collection//hash_collection.nit:84 */
+ /* ../lib/standard/collection/hash_collection.nit:84 */
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashCollection____array(fra.me.REG[0]);
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
nit_abort("Reciever is null", NULL, LOCATE_standard___collection___hash_collection, 84);
}
- /* ./../lib/standard//collection//array.nit:654 */
+ /* ../lib/standard/collection/array.nit:724 */
fra.me.REG[2] = ((Nit_NativeArray)fra.me.REG[2])->val[UNTAG_Int(REGB0)];
- /* ./../lib/standard//collection//hash_collection.nit:85 */
+ /* ../lib/standard/collection/hash_collection.nit:85 */
fra.me.REG[3] = ATTR_standard___collection___hash_collection___HashCollection____array(fra.me.REG[0]);
REGB1 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
nit_abort("Reciever is null", NULL, LOCATE_standard___collection___hash_collection, 85);
}
- /* ./../lib/standard//collection//array.nit:655 */
+ /* ../lib/standard/collection/array.nit:725 */
((Nit_NativeArray)fra.me.REG[3])->val[UNTAG_Int(REGB0)]=fra.me.REG[1];
- /* ./../lib/standard//collection//hash_collection.nit:86 */
+ /* ../lib/standard/collection/hash_collection.nit:86 */
ATTR_standard___collection___hash_collection___HashNode____next_in_bucklet(fra.me.REG[1]) = fra.me.REG[2];
- /* ./../lib/standard//collection//hash_collection.nit:87 */
+ /* ../lib/standard/collection/hash_collection.nit:87 */
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)) {
ATTR_standard___collection___hash_collection___HashNode____prev_in_bucklet(fra.me.REG[2]) = fra.me.REG[1];
}
- /* ./../lib/standard//collection//hash_collection.nit:89 */
+ /* ../lib/standard/collection/hash_collection.nit:89 */
REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[1])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
}
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[1]);
ATTR_standard___collection___hash_collection___HashCollection____last_accessed_key(fra.me.REG[0]) = fra.me.REG[2];
- /* ./../lib/standard//collection//hash_collection.nit:90 */
+ /* ../lib/standard/collection/hash_collection.nit:90 */
ATTR_standard___collection___hash_collection___HashCollection____last_accessed_node(fra.me.REG[0]) = fra.me.REG[1];
- /* ./../lib/standard//collection//hash_collection.nit:93 */
+ /* ../lib/standard/collection/hash_collection.nit:93 */
REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 93);
}
REGB0 = ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0]);
- /* ./../lib/standard//collection//hash_collection.nit:94 */
+ /* ../lib/standard/collection/hash_collection.nit:94 */
REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:218 */
+ /* ../lib/standard/kernel.nit:238 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:94 */
+ /* ../lib/standard/collection/hash_collection.nit:94 */
ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0]) = REGB1;
- /* ./../lib/standard//collection//hash_collection.nit:95 */
+ /* ../lib/standard/collection/hash_collection.nit:95 */
REGB1 = TAG_Int(5);
- /* ./../lib/standard//kernel.nit:218 */
+ /* ../lib/standard/kernel.nit:238 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:95 */
+ /* ../lib/standard/collection/hash_collection.nit:95 */
REGB2 = TAG_Int(3);
- /* ./../lib/standard//kernel.nit:221 */
+ /* ../lib/standard/kernel.nit:241 */
REGB2 = TAG_Int(UNTAG_Int(REGB1)*UNTAG_Int(REGB2));
- /* ./../lib/standard//collection//hash_collection.nit:95 */
+ /* ../lib/standard/collection/hash_collection.nit:95 */
REGB1 = TAG_Int(2);
- /* ./../lib/standard//kernel.nit:222 */
+ /* ../lib/standard/kernel.nit:242 */
REGB1 = TAG_Int(UNTAG_Int(REGB2)/UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:95 */
+ /* ../lib/standard/collection/hash_collection.nit:95 */
REGB0 = REGB1;
- /* ./../lib/standard//collection//hash_collection.nit:96 */
+ /* ../lib/standard/collection/hash_collection.nit:96 */
REGB1 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___collection___hash_collection, 96);
}
REGB1 = ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[0]);
- /* ./../lib/standard//kernel.nit:216 */
+ 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:236 */
REGB1 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:96 */
+ /* ../lib/standard/collection/hash_collection.nit:96 */
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//hash_collection.nit:97 */
+ /* ../lib/standard/collection/hash_collection.nit:97 */
REGB1 = TAG_Int(2);
- /* ./../lib/standard//kernel.nit:221 */
+ /* ../lib/standard/kernel.nit:241 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)*UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:97 */
+ /* ../lib/standard/collection/hash_collection.nit:97 */
CALL_standard___collection___hash_collection___HashCollection___enlarge(fra.me.REG[0])(fra.me.REG[0], REGB1);
}
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashCollection___remove_node[] = "hash_collection::HashCollection::remove_node";
void standard___collection___hash_collection___HashCollection___remove_node(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[4];} fra;
val_t REGB0;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashCollection___remove_node;
fra.me.has_broke = 0;
fra.me.REG_size = 5;
+ 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[4] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ./../lib/standard//collection//hash_collection.nit:104 */
+ /* ../lib/standard/collection/hash_collection.nit:104 */
REGB0 = CALL_standard___collection___hash_collection___HashCollection___index_at(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
- /* ./../lib/standard//collection//hash_collection.nit:105 */
+ /* ../lib/standard/collection/hash_collection.nit:105 */
fra.me.REG[1] = CALL_standard___collection___hash_collection___HashCollection___node_at_idx(fra.me.REG[0])(fra.me.REG[0], REGB0, fra.me.REG[1]);
- /* ./../lib/standard//collection//hash_collection.nit:106 */
+ /* ../lib/standard/collection/hash_collection.nit:106 */
REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
REGB2 = TAG_Bool(fra.me.REG[1]==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[1])(fra.me.REG[1], NIT_NULL);
if (UNTAG_Bool(REGB1)) {
goto label1;
}
- /* ./../lib/standard//collection//hash_collection.nit:109 */
+ /* ../lib/standard/collection/hash_collection.nit:109 */
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashNode____prev_item(fra.me.REG[1]);
- /* ./../lib/standard//collection//hash_collection.nit:110 */
+ /* ../lib/standard/collection/hash_collection.nit:110 */
fra.me.REG[3] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[1]);
- /* ./../lib/standard//collection//hash_collection.nit:111 */
+ /* ../lib/standard/collection/hash_collection.nit:111 */
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} 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], NIT_NULL);
}
REGB1 = TAG_Bool(!UNTAG_Bool(REGB1));
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//hash_collection.nit:112 */
+ /* ../lib/standard/collection/hash_collection.nit:112 */
ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[2]) = fra.me.REG[3];
} else {
- /* ./../lib/standard//collection//hash_collection.nit:114 */
+ /* ../lib/standard/collection/hash_collection.nit:114 */
ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]) = fra.me.REG[3];
}
- /* ./../lib/standard//collection//hash_collection.nit:116 */
+ /* ../lib/standard/collection/hash_collection.nit:116 */
REGB1 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
REGB2 = TAG_Bool(fra.me.REG[3]==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[3])(fra.me.REG[3], NIT_NULL);
}
REGB1 = TAG_Bool(!UNTAG_Bool(REGB1));
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//hash_collection.nit:117 */
+ /* ../lib/standard/collection/hash_collection.nit:117 */
ATTR_standard___collection___hash_collection___HashNode____prev_item(fra.me.REG[3]) = fra.me.REG[2];
} else {
- /* ./../lib/standard//collection//hash_collection.nit:119 */
+ /* ../lib/standard/collection/hash_collection.nit:119 */
ATTR_standard___collection___hash_collection___HashCollection____last_item(fra.me.REG[0]) = fra.me.REG[2];
}
- /* ./../lib/standard//collection//hash_collection.nit:123 */
+ /* ../lib/standard/collection/hash_collection.nit:123 */
REGB1 = ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0]);
REGB2 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:220 */
+ /* ../lib/standard/kernel.nit:240 */
REGB2 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB2));
- /* ./../lib/standard//collection//hash_collection.nit:123 */
+ /* ../lib/standard/collection/hash_collection.nit:123 */
ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0]) = REGB2;
- /* ./../lib/standard//collection//hash_collection.nit:124 */
+ /* ../lib/standard/collection/hash_collection.nit:124 */
fra.me.REG[4] = ATTR_standard___collection___hash_collection___HashNode____prev_in_bucklet(fra.me.REG[1]);
fra.me.REG[2] = fra.me.REG[4];
- /* ./../lib/standard//collection//hash_collection.nit:125 */
+ /* ../lib/standard/collection/hash_collection.nit:125 */
fra.me.REG[1] = ATTR_standard___collection___hash_collection___HashNode____next_in_bucklet(fra.me.REG[1]);
fra.me.REG[3] = fra.me.REG[1];
- /* ./../lib/standard//collection//hash_collection.nit:126 */
+ /* ../lib/standard/collection/hash_collection.nit:126 */
REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
REGB2 = REGB1;
} else {
REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
}
REGB2 = TAG_Bool(!UNTAG_Bool(REGB2));
if (UNTAG_Bool(REGB2)) {
- /* ./../lib/standard//collection//hash_collection.nit:127 */
+ /* ../lib/standard/collection/hash_collection.nit:127 */
ATTR_standard___collection___hash_collection___HashNode____next_in_bucklet(fra.me.REG[2]) = fra.me.REG[3];
} else {
- /* ./../lib/standard//collection//hash_collection.nit:129 */
+ /* ../lib/standard/collection/hash_collection.nit:129 */
fra.me.REG[1] = ATTR_standard___collection___hash_collection___HashCollection____array(fra.me.REG[0]);
REGB2 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
nit_abort("Reciever is null", NULL, LOCATE_standard___collection___hash_collection, 129);
}
- /* ./../lib/standard//collection//array.nit:655 */
+ /* ../lib/standard/collection/array.nit:725 */
((Nit_NativeArray)fra.me.REG[1])->val[UNTAG_Int(REGB0)]=fra.me.REG[3];
}
- /* ./../lib/standard//collection//hash_collection.nit:131 */
+ /* ../lib/standard/collection/hash_collection.nit:131 */
REGB0 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB2 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
- REGB2 = TAG_Bool(false);
+ REGB2 = TAG_Bool(0);
REGB0 = REGB2;
} else {
REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[3])(fra.me.REG[3], NIT_NULL);
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./../lib/standard//collection//hash_collection.nit:132 */
+ /* ../lib/standard/collection/hash_collection.nit:132 */
ATTR_standard___collection___hash_collection___HashNode____prev_in_bucklet(fra.me.REG[3]) = fra.me.REG[2];
}
- /* ./../lib/standard//collection//hash_collection.nit:135 */
+ /* ../lib/standard/collection/hash_collection.nit:135 */
ATTR_standard___collection___hash_collection___HashCollection____last_accessed_key(fra.me.REG[0]) = NIT_NULL;
label1: while(0);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashCollection___raz[] = "hash_collection::HashCollection::raz";
void standard___collection___hash_collection___HashCollection___raz(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___hash_collection;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashCollection___raz;
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//hash_collection.nit:140 */
+ /* ../lib/standard/collection/hash_collection.nit:141 */
REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___collection___hash_collection, 140);
+ nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___collection___hash_collection, 141);
}
REGB0 = ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[0]);
REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:220 */
+ /* ../lib/standard/kernel.nit:240 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:141 */
+ /* ../lib/standard/collection/hash_collection.nit:142 */
while(1) {
REGB0 = TAG_Int(0);
- /* ./../lib/standard//kernel.nit:216 */
+ REGB2 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB2)) {
+ } else {
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
+ }
+ /* ../lib/standard/kernel.nit:236 */
REGB0 = TAG_Bool(UNTAG_Int(REGB1)>=UNTAG_Int(REGB0));
- /* ./../lib/standard//collection//hash_collection.nit:141 */
+ /* ../lib/standard/collection/hash_collection.nit:142 */
if (UNTAG_Bool(REGB0)) {
- /* ./../lib/standard//collection//hash_collection.nit:142 */
+ /* ../lib/standard/collection/hash_collection.nit:143 */
fra.me.REG[1] = ATTR_standard___collection___hash_collection___HashCollection____array(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___hash_collection, 142);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___hash_collection, 143);
}
- /* ./../lib/standard//collection//array.nit:655 */
+ /* ../lib/standard/collection/array.nit:725 */
((Nit_NativeArray)fra.me.REG[1])->val[UNTAG_Int(REGB1)]=NIT_NULL;
- /* ./../lib/standard//collection//hash_collection.nit:143 */
+ /* ../lib/standard/collection/hash_collection.nit:144 */
REGB0 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:220 */
+ /* ../lib/standard/kernel.nit:240 */
REGB0 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB0));
- /* ./../lib/standard//collection//hash_collection.nit:143 */
+ /* ../lib/standard/collection/hash_collection.nit:144 */
REGB1 = REGB0;
} else {
- /* ./../lib/standard//collection//hash_collection.nit:141 */
+ /* ../lib/standard/collection/hash_collection.nit:142 */
goto label1;
}
}
label1: while(0);
- /* ./../lib/standard//collection//hash_collection.nit:145 */
+ /* ../lib/standard/collection/hash_collection.nit:146 */
REGB1 = TAG_Int(0);
ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0]) = REGB1;
- /* ./../lib/standard//collection//hash_collection.nit:146 */
+ /* ../lib/standard/collection/hash_collection.nit:147 */
ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]) = NIT_NULL;
- /* ./../lib/standard//collection//hash_collection.nit:147 */
+ /* ../lib/standard/collection/hash_collection.nit:148 */
ATTR_standard___collection___hash_collection___HashCollection____last_item(fra.me.REG[0]) = NIT_NULL;
- /* ./../lib/standard//collection//hash_collection.nit:148 */
+ /* ../lib/standard/collection/hash_collection.nit:149 */
ATTR_standard___collection___hash_collection___HashCollection____last_accessed_key(fra.me.REG[0]) = NIT_NULL;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashCollection___enlarge[] = "hash_collection::HashCollection::enlarge";
void standard___collection___hash_collection___HashCollection___enlarge(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___hash_collection;
- fra.me.line = 151;
+ fra.me.line = 152;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashCollection___enlarge;
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;
REGB0 = p1;
- /* ./../lib/standard//collection//hash_collection.nit:153 */
+ /* ../lib/standard/collection/hash_collection.nit:155 */
REGB1 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___collection___hash_collection, 153);
+ nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___collection___hash_collection, 155);
}
REGB1 = ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[0]);
- /* ./../lib/standard//collection//hash_collection.nit:155 */
+ /* ../lib/standard/collection/hash_collection.nit:157 */
REGB2 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB2)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 155);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 157);
}
REGB2 = ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0]);
REGB3 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:218 */
+ /* ../lib/standard/kernel.nit:238 */
REGB3 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB3));
- /* ./../lib/standard//kernel.nit:215 */
+ REGB2 = TAG_Bool(VAL_ISA(REGB3, 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:235 */
REGB3 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB3));
- /* ./../lib/standard//collection//hash_collection.nit:155 */
+ /* ../lib/standard/collection/hash_collection.nit:157 */
if (UNTAG_Bool(REGB3)) {
REGB3 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB3)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 155);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 157);
}
REGB3 = ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0]);
REGB2 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:218 */
+ /* ../lib/standard/kernel.nit:238 */
REGB2 = TAG_Int(UNTAG_Int(REGB3)+UNTAG_Int(REGB2));
- /* ./../lib/standard//collection//hash_collection.nit:155 */
+ /* ../lib/standard/collection/hash_collection.nit:157 */
REGB0 = REGB2;
}
- /* ./../lib/standard//collection//hash_collection.nit:156 */
+ /* ../lib/standard/collection/hash_collection.nit:158 */
REGB2 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB2)) {
} else {
- nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___collection___hash_collection, 156);
+ nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___collection___hash_collection, 158);
}
REGB2 = ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[0]);
- /* ./../lib/standard//kernel.nit:214 */
+ 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:234 */
REGB2 = TAG_Bool(UNTAG_Int(REGB0)<=UNTAG_Int(REGB2));
- /* ./../lib/standard//collection//hash_collection.nit:156 */
+ /* ../lib/standard/collection/hash_collection.nit:158 */
if (UNTAG_Bool(REGB2)) {
goto label1;
}
- /* ./../lib/standard//collection//hash_collection.nit:157 */
+ /* ../lib/standard/collection/hash_collection.nit:159 */
ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[0]) = REGB0;
- /* ./../lib/standard//collection//hash_collection.nit:158 */
+ /* ../lib/standard/collection/hash_collection.nit:160 */
ATTR_standard___collection___hash_collection___HashCollection____last_accessed_key(fra.me.REG[0]) = NIT_NULL;
- /* ./../lib/standard//collection//array.nit:648 */
+ /* ../lib/standard/collection/array.nit:718 */
fra.me.REG[1] = NEW_NativeArray(UNTAG_Int(REGB0), sizeof(val_t));
- /* ./../lib/standard//collection//hash_collection.nit:162 */
+ /* ../lib/standard/collection/hash_collection.nit:164 */
ATTR_standard___collection___hash_collection___HashCollection____array(fra.me.REG[0]) = fra.me.REG[1];
- /* ./../lib/standard//collection//hash_collection.nit:165 */
+ /* ../lib/standard/collection/hash_collection.nit:167 */
REGB2 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:220 */
+ /* ../lib/standard/kernel.nit:240 */
REGB2 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB2));
- /* ./../lib/standard//collection//hash_collection.nit:166 */
+ /* ../lib/standard/collection/hash_collection.nit:168 */
while(1) {
REGB0 = TAG_Int(0);
- /* ./../lib/standard//kernel.nit:216 */
+ REGB3 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB2), VTID_standard___kernel___Comparable___OTHER(REGB2))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB3)) {
+ } else {
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
+ }
+ /* ../lib/standard/kernel.nit:236 */
REGB0 = TAG_Bool(UNTAG_Int(REGB2)>=UNTAG_Int(REGB0));
- /* ./../lib/standard//collection//hash_collection.nit:166 */
+ /* ../lib/standard/collection/hash_collection.nit:168 */
if (UNTAG_Bool(REGB0)) {
- /* ./../lib/standard//collection//array.nit:655 */
+ /* ../lib/standard/collection/array.nit:725 */
((Nit_NativeArray)fra.me.REG[1])->val[UNTAG_Int(REGB2)]=NIT_NULL;
- /* ./../lib/standard//collection//hash_collection.nit:168 */
+ /* ../lib/standard/collection/hash_collection.nit:170 */
REGB0 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:220 */
+ /* ../lib/standard/kernel.nit:240 */
REGB0 = TAG_Int(UNTAG_Int(REGB2)-UNTAG_Int(REGB0));
- /* ./../lib/standard//collection//hash_collection.nit:168 */
+ /* ../lib/standard/collection/hash_collection.nit:170 */
REGB2 = REGB0;
} else {
- /* ./../lib/standard//collection//hash_collection.nit:166 */
+ /* ../lib/standard/collection/hash_collection.nit:168 */
goto label2;
}
}
label2: while(0);
- /* ./../lib/standard//collection//hash_collection.nit:171 */
+ /* ../lib/standard/collection/hash_collection.nit:173 */
REGB2 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB2)) {
} else {
- nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___collection___hash_collection, 171);
+ nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___collection___hash_collection, 173);
}
REGB2 = ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[0]);
- /* ./../lib/standard//kernel.nit:214 */
+ REGB0 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB2), VTID_standard___kernel___Comparable___OTHER(REGB2))) /*cast OTHER*/;
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
+ }
+ /* ../lib/standard/kernel.nit:234 */
REGB1 = TAG_Bool(UNTAG_Int(REGB2)<=UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:171 */
+ /* ../lib/standard/collection/hash_collection.nit:173 */
if (UNTAG_Bool(REGB1)) {
goto label1;
}
- /* ./../lib/standard//collection//hash_collection.nit:174 */
+ /* ../lib/standard/collection/hash_collection.nit:176 */
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
- /* ./../lib/standard//collection//hash_collection.nit:175 */
+ /* ../lib/standard/collection/hash_collection.nit:177 */
while(1) {
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} 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], NIT_NULL);
}
REGB1 = TAG_Bool(!UNTAG_Bool(REGB1));
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//hash_collection.nit:176 */
+ /* ../lib/standard/collection/hash_collection.nit:178 */
REGB1 = TAG_Bool(ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[2])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 176);
+ nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 178);
}
fra.me.REG[3] = ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[2]);
REGB1 = CALL_standard___collection___hash_collection___HashCollection___index_at(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
- /* ./../lib/standard//collection//array.nit:654 */
+ /* ../lib/standard/collection/array.nit:724 */
fra.me.REG[3] = ((Nit_NativeArray)fra.me.REG[1])->val[UNTAG_Int(REGB1)];
- /* ./../lib/standard//collection//array.nit:655 */
+ /* ../lib/standard/collection/array.nit:725 */
((Nit_NativeArray)fra.me.REG[1])->val[UNTAG_Int(REGB1)]=fra.me.REG[2];
- /* ./../lib/standard//collection//hash_collection.nit:180 */
+ /* ../lib/standard/collection/hash_collection.nit:182 */
ATTR_standard___collection___hash_collection___HashNode____next_in_bucklet(fra.me.REG[2]) = fra.me.REG[3];
- /* ./../lib/standard//collection//hash_collection.nit:181 */
+ /* ../lib/standard/collection/hash_collection.nit:183 */
REGB1 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
REGB2 = TAG_Bool(fra.me.REG[3]==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[3])(fra.me.REG[3], NIT_NULL);
if (UNTAG_Bool(REGB1)) {
ATTR_standard___collection___hash_collection___HashNode____prev_in_bucklet(fra.me.REG[3]) = fra.me.REG[2];
}
- /* ./../lib/standard//collection//hash_collection.nit:182 */
+ /* ../lib/standard/collection/hash_collection.nit:184 */
fra.me.REG[3] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[2]);
fra.me.REG[2] = fra.me.REG[3];
} else {
- /* ./../lib/standard//collection//hash_collection.nit:175 */
+ /* ../lib/standard/collection/hash_collection.nit:177 */
goto label3;
}
}
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashCollection___init[] = "hash_collection::HashCollection::init";
void standard___collection___hash_collection___HashCollection___init(val_t p0, int* init_table){
int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashCollection].i;
struct {struct stack_frame_t me;} fra;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashCollection___init;
fra.me.has_broke = 0;
fra.me.REG_size = 0;
+ fra.me.nitni_local_ref_head = NULL;
stack_frame_head = fra.me.prev;
init_table[itpos0] = 1;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashNode___next_item[] = "hash_collection::HashNode::next_item";
val_t standard___collection___hash_collection___HashNode___next_item(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___hash_collection;
- fra.me.line = 190;
+ fra.me.line = 192;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashNode___next_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//hash_collection.nit:190 */
+ /* ../lib/standard/collection/hash_collection.nit:192 */
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___hash_collection___HashNode___next_item__eq[] = "hash_collection::HashNode::next_item=";
void standard___collection___hash_collection___HashNode___next_item__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___hash_collection;
- fra.me.line = 190;
+ fra.me.line = 192;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashNode___next_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//hash_collection.nit:190 */
+ /* ../lib/standard/collection/hash_collection.nit:192 */
ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashNode___prev_item[] = "hash_collection::HashNode::prev_item";
val_t standard___collection___hash_collection___HashNode___prev_item(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___hash_collection;
- fra.me.line = 191;
+ fra.me.line = 193;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashNode___prev_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//hash_collection.nit:191 */
+ /* ../lib/standard/collection/hash_collection.nit:193 */
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashNode____prev_item(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___hash_collection___HashNode___prev_item__eq[] = "hash_collection::HashNode::prev_item=";
void standard___collection___hash_collection___HashNode___prev_item__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___hash_collection;
- fra.me.line = 191;
+ fra.me.line = 193;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashNode___prev_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//hash_collection.nit:191 */
+ /* ../lib/standard/collection/hash_collection.nit:193 */
ATTR_standard___collection___hash_collection___HashNode____prev_item(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashNode___init[] = "hash_collection::HashNode::init";
void standard___collection___hash_collection___HashNode___init(val_t p0, val_t p1, int* init_table){
int itpos1 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashNode].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___hash_collection;
- fra.me.line = 194;
+ fra.me.line = 196;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashNode___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//hash_collection.nit:196 */
+ /* ../lib/standard/collection/hash_collection.nit:198 */
ATTR_standard___collection___hash_collection___HashNode____key(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___hash_collection___HashMap_____bra[] = "hash_collection::HashMap::(abstract_collection::MapRead::[])";
val_t standard___collection___hash_collection___HashMap_____bra(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___hash_collection;
- fra.me.line = 204;
+ fra.me.line = 208;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap_____bra;
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//hash_collection.nit:206 */
+ /* ../lib/standard/collection/hash_collection.nit:210 */
fra.me.REG[1] = CALL_standard___collection___hash_collection___HashCollection___node_at(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
- /* ./../lib/standard//collection//hash_collection.nit:207 */
+ /* ../lib/standard/collection/hash_collection.nit:211 */
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);
}
}
if (UNTAG_Bool(REGB0)) {
- /* ./../lib/standard//collection//hash_collection.nit:208 */
- nit_abort("Aborted", NULL, LOCATE_standard___collection___hash_collection, 208);
+ /* ../lib/standard/collection/hash_collection.nit:212 */
+ nit_abort("Aborted", NULL, LOCATE_standard___collection___hash_collection, 212);
} else {
- /* ./../lib/standard//collection//hash_collection.nit:210 */
+ /* ../lib/standard/collection/hash_collection.nit:214 */
fra.me.REG[1] = ATTR_standard___collection___hash_collection___HashMapNode____value(fra.me.REG[1]);
goto label1;
}
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
-val_t standard___collection___hash_collection___HashMap___has_key(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_standard___collection___hash_collection;
- fra.me.line = 214;
- fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___has_key;
- 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//hash_collection.nit:214 */
- fra.me.REG[1] = CALL_standard___collection___hash_collection___HashCollection___node_at(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
- 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);
- REGB0 = REGB1;
- } else {
- REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[1])(fra.me.REG[1], 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___hash_collection___HashMap___iterator[] = "hash_collection::HashMap::(abstract_collection::MapRead::iterator)";
val_t standard___collection___hash_collection___HashMap___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___hash_collection;
- fra.me.line = 216;
+ fra.me.line = 218;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___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//hash_collection.nit:216 */
+ /* ../lib/standard/collection/hash_collection.nit:218 */
fra.me.REG[0] = NEW_HashMapIterator_standard___collection___hash_collection___HashMapIterator___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___hash_collection___HashMap___iterate[] = "hash_collection::HashMap::(abstract_collection::MapRead::iterate)";
void standard___collection___hash_collection___HashMap___iterate(val_t p0, struct stack_frame_t *closctx_param, fun_t clos_fun0){
- struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+ struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
val_t REGB1;
fun_t CREG[1];
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___hash_collection;
- fra.me.line = 218;
+ fra.me.line = 220;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___iterate;
fra.me.has_broke = 0;
- fra.me.REG_size = 2;
+ 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.closure_ctx = closctx_param;
fra.me.closure_funs = CREG;
fra.me.REG[0] = p0;
CREG[0] = clos_fun0;
- /* ./../lib/standard//collection//hash_collection.nit:221 */
+ /* ../lib/standard/collection/hash_collection.nit:223 */
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
- /* ./../lib/standard//collection//hash_collection.nit:222 */
+ /* ../lib/standard/collection/hash_collection.nit:224 */
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//hash_collection.nit:223 */
- fra.me.REG[1] = ATTR_standard___collection___hash_collection___HashMapNode____value(fra.me.REG[0]);
- ((void (*)(struct stack_frame_t *, val_t))(CREG[0]))(closctx_param, fra.me.REG[1]);
+ /* ../lib/standard/collection/hash_collection.nit:225 */
+ REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[0])!=NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 225);
+ }
+ fra.me.REG[1] = ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[0]);
+ fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashMapNode____value(fra.me.REG[0]);
+ ((void (*)(struct stack_frame_t *, val_t, val_t))(CREG[0]))(closctx_param, fra.me.REG[1], fra.me.REG[2]);
if (closctx_param->has_broke) {
goto label1;
}
- /* ./../lib/standard//collection//hash_collection.nit:224 */
- fra.me.REG[1] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[0]);
- fra.me.REG[0] = fra.me.REG[1];
+ /* ../lib/standard/collection/hash_collection.nit:226 */
+ fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[0]);
+ fra.me.REG[0] = fra.me.REG[2];
} else {
- /* ./../lib/standard//collection//hash_collection.nit:222 */
+ /* ../lib/standard/collection/hash_collection.nit:224 */
goto label2;
}
}
stack_frame_head = fra.me.prev;
return;
}
-val_t standard___collection___hash_collection___HashMap___first(val_t p0){
+static const char LOCATE_standard___collection___hash_collection___HashMap___length[] = "hash_collection::HashMap::(abstract_collection::MapRead::length)";
+val_t standard___collection___hash_collection___HashMap___length(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___hash_collection;
- fra.me.line = 228;
- fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___first;
+ fra.me.line = 230;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___length;
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//hash_collection.nit:230 */
+ /* ../lib/standard/collection/hash_collection.nit:230 */
REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 230);
}
REGB0 = ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0]);
- REGB1 = TAG_Int(0);
- /* ./../lib/standard//kernel.nit:217 */
- REGB1 = TAG_Bool(UNTAG_Int(REGB0)>UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:230 */
- if (UNTAG_Bool(REGB1)) {
- } else {
- nit_abort("Assert failed", NULL, LOCATE_standard___collection___hash_collection, 230);
- }
- /* ./../lib/standard//collection//hash_collection.nit:231 */
- fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
- REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
- if (UNTAG_Bool(REGB1)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___hash_collection, 231);
- }
- fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashMapNode____value(fra.me.REG[0]);
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
- return fra.me.REG[0];
+ return REGB0;
}
+static const char LOCATE_standard___collection___hash_collection___HashMap___is_empty[] = "hash_collection::HashMap::(abstract_collection::MapRead::is_empty)";
val_t standard___collection___hash_collection___HashMap___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_standard___collection___hash_collection;
- fra.me.line = 234;
+ fra.me.line = 232;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___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//hash_collection.nit:234 */
+ /* ../lib/standard/collection/hash_collection.nit:232 */
REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 234);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 232);
}
REGB0 = ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0]);
REGB1 = TAG_Int(0);
REGB2 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB1));
if (UNTAG_Bool(REGB2)) {
} else {
- /* ./../lib/standard//kernel.nit:210 */
+ /* ../lib/standard/kernel.nit:230 */
REGB1 = TAG_Bool((REGB0)==(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:234 */
+ /* ../lib/standard/collection/hash_collection.nit:232 */
REGB2 = REGB1;
}
goto label1;
stack_frame_head = fra.me.prev;
return REGB2;
}
-val_t standard___collection___hash_collection___HashMap___count(val_t p0, val_t p1){
- struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+static const char LOCATE_standard___collection___hash_collection___HashMap_____braeq[] = "hash_collection::HashMap::(abstract_collection::Map::[]=)";
+void standard___collection___hash_collection___HashMap_____braeq(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 REGB2;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___hash_collection;
- fra.me.line = 236;
- fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___count;
+ fra.me.line = 234;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap_____braeq;
fra.me.has_broke = 0;
- fra.me.REG_size = 3;
+ 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//hash_collection.nit:238 */
- REGB0 = TAG_Int(0);
- /* ./../lib/standard//collection//hash_collection.nit:239 */
- fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
- /* ./../lib/standard//collection//hash_collection.nit:240 */
- 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);
- 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//hash_collection.nit:241 */
- fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashMapNode____value(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(false);
- REGB1 = REGB2;
- } else {
- REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
- REGB1 = REGB2;
- }
- }
- if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Int(1);
- /* ./../lib/standard//kernel.nit:218 */
- REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:241 */
- REGB0 = REGB1;
- }
- /* ./../lib/standard//collection//hash_collection.nit:242 */
- fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[0]);
- fra.me.REG[0] = fra.me.REG[2];
+ fra.me.REG[2] = p2;
+ /* ../lib/standard/collection/hash_collection.nit:236 */
+ REGB0 = CALL_standard___collection___hash_collection___HashCollection___index_at(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+ /* ../lib/standard/collection/hash_collection.nit:237 */
+ fra.me.REG[3] = CALL_standard___collection___hash_collection___HashCollection___node_at_idx(fra.me.REG[0])(fra.me.REG[0], REGB0, fra.me.REG[1]);
+ /* ../lib/standard/collection/hash_collection.nit:238 */
+ REGB1 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
+ if (UNTAG_Bool(REGB1)) {
+ } else {
+ REGB2 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
+ if (UNTAG_Bool(REGB2)) {
+ REGB2 = TAG_Bool(0);
+ REGB1 = REGB2;
} else {
- /* ./../lib/standard//collection//hash_collection.nit:240 */
- goto label1;
+ REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[3])(fra.me.REG[3], NIT_NULL);
+ REGB1 = REGB2;
}
}
- label1: while(0);
- /* ./../lib/standard//collection//hash_collection.nit:244 */
- goto label2;
- label2: while(0);
+ REGB1 = TAG_Bool(!UNTAG_Bool(REGB1));
+ if (UNTAG_Bool(REGB1)) {
+ /* ../lib/standard/collection/hash_collection.nit:239 */
+ ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[3]) = fra.me.REG[1];
+ /* ../lib/standard/collection/hash_collection.nit:240 */
+ ATTR_standard___collection___hash_collection___HashMapNode____value(fra.me.REG[3]) = fra.me.REG[2];
+ } else {
+ /* ../lib/standard/collection/hash_collection.nit:242 */
+ fra.me.REG[2] = NEW_HashMapNode_standard___collection___hash_collection___HashMapNode___init(fra.me.REG[1], fra.me.REG[2]);
+ CALL_standard___collection___hash_collection___HashCollection___store(fra.me.REG[0])(fra.me.REG[0], REGB0, fra.me.REG[2]);
+ }
stack_frame_head = fra.me.prev;
- return REGB0;
+ return;
}
-val_t standard___collection___hash_collection___HashMap___has(val_t p0, val_t p1){
- struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+static const char LOCATE_standard___collection___hash_collection___HashMap___clear[] = "hash_collection::HashMap::(abstract_collection::Map::clear)";
+void standard___collection___hash_collection___HashMap___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___hash_collection;
+ fra.me.line = 246;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___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/hash_collection.nit:246 */
+ CALL_standard___collection___hash_collection___HashCollection___raz(fra.me.REG[0])(fra.me.REG[0]);
+ stack_frame_head = fra.me.prev;
+ return;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMap___init[] = "hash_collection::HashMap::init";
+void standard___collection___hash_collection___HashMap___init(val_t p0, int* init_table){
+ int itpos2 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashMap].i;
+ struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
- val_t REGB1;
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___hash_collection;
- fra.me.line = 247;
- fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___has;
+ fra.me.line = 248;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___init;
fra.me.has_broke = 0;
- fra.me.REG_size = 3;
+ 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[2] = NIT_NULL;
fra.me.REG[0] = p0;
- fra.me.REG[1] = p1;
- /* ./../lib/standard//collection//hash_collection.nit:249 */
- fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
- /* ./../lib/standard//collection//hash_collection.nit:250 */
- 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);
- 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//hash_collection.nit:251 */
- fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashMapNode____value(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(false);
- REGB0 = REGB1;
- } else {
- REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
- REGB0 = REGB1;
- }
- }
- if (UNTAG_Bool(REGB0)) {
- REGB0 = TAG_Bool(true);
- goto label1;
- }
- /* ./../lib/standard//collection//hash_collection.nit:252 */
- fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[0]);
- fra.me.REG[0] = fra.me.REG[2];
- } else {
- /* ./../lib/standard//collection//hash_collection.nit:250 */
- goto label2;
- }
- }
- label2: while(0);
- /* ./../lib/standard//collection//hash_collection.nit:254 */
- REGB1 = TAG_Bool(false);
- REGB0 = REGB1;
- goto label1;
- label1: while(0);
+ /* ../lib/standard/collection/hash_collection.nit:248 */
+ fra.me.REG[1] = fra.me.REG[0];
+ CALL_standard___collection___hash_collection___HashCollection___init(fra.me.REG[0])(fra.me.REG[0], init_table);
+ /* ../lib/standard/collection/hash_collection.nit:250 */
+ REGB0 = TAG_Int(0);
+ ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[1]) = REGB0;
+ /* ../lib/standard/collection/hash_collection.nit:251 */
+ REGB0 = TAG_Int(0);
+ ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[1]) = REGB0;
+ /* ../lib/standard/collection/hash_collection.nit:252 */
+ REGB0 = TAG_Int(0);
+ CALL_standard___collection___hash_collection___HashCollection___enlarge(fra.me.REG[1])(fra.me.REG[1], REGB0);
stack_frame_head = fra.me.prev;
- return REGB0;
+ init_table[itpos2] = 1;
+ return;
}
-val_t standard___collection___hash_collection___HashMap___has_only(val_t p0, val_t p1){
- struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
+static const char LOCATE_standard___collection___hash_collection___HashMap___keys[] = "hash_collection::HashMap::(abstract_collection::MapRead::keys)";
+val_t standard___collection___hash_collection___HashMap___keys(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___hash_collection;
- fra.me.line = 257;
- fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___has_only;
+ fra.me.line = 255;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___keys;
fra.me.has_broke = 0;
- fra.me.REG_size = 3;
+ fra.me.REG_size = 1;
+ 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//hash_collection.nit:259 */
- fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
- /* ./../lib/standard//collection//hash_collection.nit:260 */
- 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);
+ /* ../lib/standard/collection/hash_collection.nit:255 */
+ REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashMap_____atkeys(fra.me.REG[0])!=NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Uninitialized attribute %s", "@keys", LOCATE_standard___collection___hash_collection, 255);
+ }
+ fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashMap_____atkeys(fra.me.REG[0]);
+ stack_frame_head = fra.me.prev;
+ return fra.me.REG[0];
+}
+static const char LOCATE_standard___collection___hash_collection___HashMap___keys__eq[] = "hash_collection::HashMap::keys=";
+void standard___collection___hash_collection___HashMap___keys__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___hash_collection;
+ fra.me.line = 255;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___keys__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/hash_collection.nit:255 */
+ ATTR_standard___collection___hash_collection___HashMap_____atkeys(fra.me.REG[0]) = fra.me.REG[1];
+ stack_frame_head = fra.me.prev;
+ return;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMap___values[] = "hash_collection::HashMap::(abstract_collection::MapRead::values)";
+val_t standard___collection___hash_collection___HashMap___values(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___hash_collection;
+ fra.me.line = 256;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___values;
+ 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/hash_collection.nit:256 */
+ REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashMap_____atvalues(fra.me.REG[0])!=NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Uninitialized attribute %s", "@values", LOCATE_standard___collection___hash_collection, 256);
+ }
+ fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashMap_____atvalues(fra.me.REG[0]);
+ stack_frame_head = fra.me.prev;
+ return fra.me.REG[0];
+}
+static const char LOCATE_standard___collection___hash_collection___HashMap___values__eq[] = "hash_collection::HashMap::values=";
+void standard___collection___hash_collection___HashMap___values__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___hash_collection;
+ fra.me.line = 256;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___values__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/hash_collection.nit:256 */
+ ATTR_standard___collection___hash_collection___HashMap_____atvalues(fra.me.REG[0]) = fra.me.REG[1];
+ stack_frame_head = fra.me.prev;
+ return;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapKeys___map[] = "hash_collection::HashMapKeys::map";
+val_t standard___collection___hash_collection___HashMapKeys___map(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___hash_collection;
+ fra.me.line = 262;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapKeys___map;
+ 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/hash_collection.nit:262 */
+ REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashMapKeys_____atmap(fra.me.REG[0])!=NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Uninitialized attribute %s", "@map", LOCATE_standard___collection___hash_collection, 262);
+ }
+ fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashMapKeys_____atmap(fra.me.REG[0]);
+ stack_frame_head = fra.me.prev;
+ return fra.me.REG[0];
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapKeys___map__eq[] = "hash_collection::HashMapKeys::map=";
+void standard___collection___hash_collection___HashMapKeys___map__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___hash_collection;
+ fra.me.line = 262;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapKeys___map__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/hash_collection.nit:262 */
+ ATTR_standard___collection___hash_collection___HashMapKeys_____atmap(fra.me.REG[0]) = fra.me.REG[1];
+ stack_frame_head = fra.me.prev;
+ return;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapKeys___count[] = "hash_collection::HashMapKeys::(abstract_collection::Collection::count)";
+val_t standard___collection___hash_collection___HashMapKeys___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_standard___collection___hash_collection;
+ fra.me.line = 265;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapKeys___count;
+ 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/hash_collection.nit:265 */
+ REGB0 = CALL_standard___collection___abstract_collection___Collection___has(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+ if (UNTAG_Bool(REGB0)) {
+ REGB0 = TAG_Int(1);
+ goto label1;
+ } else {
+ REGB1 = TAG_Int(0);
+ REGB0 = REGB1;
+ goto label1;
+ }
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapKeys___first[] = "hash_collection::HashMapKeys::(abstract_collection::Collection::first)";
+val_t standard___collection___hash_collection___HashMapKeys___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___hash_collection;
+ fra.me.line = 266;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapKeys___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/hash_collection.nit:266 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapKeys___map(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashCollection____first_item(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___hash_collection, 266);
+ }
+ REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[0])!=NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 266);
+ }
+ fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashNode____key(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___hash_collection___HashMapKeys___has[] = "hash_collection::HashMapKeys::(abstract_collection::Collection::has)";
+val_t standard___collection___hash_collection___HashMapKeys___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_standard___collection___hash_collection;
+ fra.me.line = 267;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapKeys___has;
+ 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/hash_collection.nit:267 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapKeys___map(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[1] = CALL_standard___collection___hash_collection___HashCollection___node_at(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+ 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(0);
+ REGB0 = REGB1;
+ } else {
+ REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[1])(fra.me.REG[1], 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___hash_collection___HashMapKeys___has_only[] = "hash_collection::HashMapKeys::(abstract_collection::Collection::has_only)";
+val_t standard___collection___hash_collection___HashMapKeys___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 REGB2;
+ val_t tmp;
+ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+ fra.me.file = LOCATE_standard___collection___hash_collection;
+ fra.me.line = 268;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapKeys___has_only;
+ 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/hash_collection.nit:268 */
+ REGB0 = CALL_standard___collection___abstract_collection___Collection___has(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+ if (UNTAG_Bool(REGB0)) {
+ REGB0 = CALL_standard___collection___abstract_collection___Collection___length(fra.me.REG[0])(fra.me.REG[0]);
+ REGB1 = TAG_Int(1);
+ REGB2 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB1));
+ if (UNTAG_Bool(REGB2)) {
+ } else {
+ /* ../lib/standard/kernel.nit:230 */
+ REGB1 = TAG_Bool((REGB0)==(REGB1));
+ /* ../lib/standard/collection/hash_collection.nit:268 */
+ REGB2 = REGB1;
+ }
+ } else {
+ REGB1 = TAG_Bool(0);
+ REGB2 = REGB1;
+ }
+ if (UNTAG_Bool(REGB2)) {
+ REGB2 = TAG_Bool(1);
+ } else {
+ REGB1 = CALL_standard___collection___abstract_collection___Collection___is_empty(fra.me.REG[0])(fra.me.REG[0]);
+ REGB2 = REGB1;
+ }
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB2;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapKeys___is_empty[] = "hash_collection::HashMapKeys::(abstract_collection::Collection::is_empty)";
+val_t standard___collection___hash_collection___HashMapKeys___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_standard___collection___hash_collection;
+ fra.me.line = 269;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapKeys___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/hash_collection.nit:269 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapKeys___map(fra.me.REG[0])(fra.me.REG[0]);
+ REGB0 = CALL_standard___collection___abstract_collection___MapRead___is_empty(fra.me.REG[0])(fra.me.REG[0]);
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapKeys___length[] = "hash_collection::HashMapKeys::(abstract_collection::Collection::length)";
+val_t standard___collection___hash_collection___HashMapKeys___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_standard___collection___hash_collection;
+ fra.me.line = 270;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapKeys___length;
+ 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/hash_collection.nit:270 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapKeys___map(fra.me.REG[0])(fra.me.REG[0]);
+ REGB0 = CALL_standard___collection___abstract_collection___MapRead___length(fra.me.REG[0])(fra.me.REG[0]);
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapKeys___iterator[] = "hash_collection::HashMapKeys::(abstract_collection::Collection::iterator)";
+val_t standard___collection___hash_collection___HashMapKeys___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___hash_collection;
+ fra.me.line = 272;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapKeys___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/hash_collection.nit:272 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapKeys___map(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[0] = CALL_standard___collection___abstract_collection___MapRead___iterator(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[0] = NEW_MapKeysIterator_standard___collection___abstract_collection___MapKeysIterator___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___hash_collection___HashMapKeys___clear[] = "hash_collection::HashMapKeys::(abstract_collection::RemovableCollection::clear)";
+void standard___collection___hash_collection___HashMapKeys___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___hash_collection;
+ fra.me.line = 274;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapKeys___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/hash_collection.nit:274 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapKeys___map(fra.me.REG[0])(fra.me.REG[0]);
+ CALL_standard___collection___abstract_collection___Map___clear(fra.me.REG[0])(fra.me.REG[0]);
+ stack_frame_head = fra.me.prev;
+ return;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapKeys___remove[] = "hash_collection::HashMapKeys::(abstract_collection::RemovableCollection::remove)";
+void standard___collection___hash_collection___HashMapKeys___remove(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___hash_collection;
+ fra.me.line = 276;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapKeys___remove;
+ 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/hash_collection.nit:276 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapKeys___map(fra.me.REG[0])(fra.me.REG[0]);
+ CALL_standard___collection___hash_collection___HashCollection___remove_node(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___hash_collection___HashMapKeys___remove_all[] = "hash_collection::HashMapKeys::(abstract_collection::RemovableCollection::remove_all)";
+void standard___collection___hash_collection___HashMapKeys___remove_all(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___hash_collection;
+ fra.me.line = 277;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapKeys___remove_all;
+ 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/hash_collection.nit:277 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapKeys___map(fra.me.REG[0])(fra.me.REG[0]);
+ CALL_standard___collection___hash_collection___HashCollection___remove_node(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___hash_collection___HashMapKeys___init[] = "hash_collection::HashMapKeys::init";
+void standard___collection___hash_collection___HashMapKeys___init(val_t p0, val_t p1, int* init_table){
+ int itpos3 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashMapKeys].i;
+ struct {struct stack_frame_t me; val_t MORE_REG[1];} 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___hash_collection;
+ fra.me.line = 0;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapKeys___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;
+ ATTR_standard___collection___hash_collection___HashMapKeys_____atmap(fra.me.REG[0]) = fra.me.REG[1];
+ stack_frame_head = fra.me.prev;
+ init_table[itpos3] = 1;
+ return;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapValues___map[] = "hash_collection::HashMapValues::map";
+val_t standard___collection___hash_collection___HashMapValues___map(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___hash_collection;
+ fra.me.line = 283;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapValues___map;
+ 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/hash_collection.nit:283 */
+ REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashMapValues_____atmap(fra.me.REG[0])!=NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Uninitialized attribute %s", "@map", LOCATE_standard___collection___hash_collection, 283);
+ }
+ fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashMapValues_____atmap(fra.me.REG[0]);
+ stack_frame_head = fra.me.prev;
+ return fra.me.REG[0];
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapValues___map__eq[] = "hash_collection::HashMapValues::map=";
+void standard___collection___hash_collection___HashMapValues___map__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___hash_collection;
+ fra.me.line = 283;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapValues___map__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/hash_collection.nit:283 */
+ ATTR_standard___collection___hash_collection___HashMapValues_____atmap(fra.me.REG[0]) = fra.me.REG[1];
+ stack_frame_head = fra.me.prev;
+ return;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapValues___count[] = "hash_collection::HashMapValues::(abstract_collection::Collection::count)";
+val_t standard___collection___hash_collection___HashMapValues___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___hash_collection;
+ fra.me.line = 286;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapValues___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/hash_collection.nit:288 */
+ REGB0 = TAG_Int(0);
+ /* ../lib/standard/collection/hash_collection.nit:289 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapValues___map(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
+ /* ../lib/standard/collection/hash_collection.nit:290 */
+ 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/hash_collection.nit:291 */
+ fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashMapNode____value(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;
+ }
+ }
+ if (UNTAG_Bool(REGB1)) {
+ REGB1 = TAG_Int(1);
+ /* ../lib/standard/kernel.nit:238 */
+ REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
+ /* ../lib/standard/collection/hash_collection.nit:291 */
+ REGB0 = REGB1;
+ }
+ /* ../lib/standard/collection/hash_collection.nit:292 */
+ fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[0]);
+ fra.me.REG[0] = fra.me.REG[2];
+ } else {
+ /* ../lib/standard/collection/hash_collection.nit:290 */
+ goto label1;
+ }
+ }
+ label1: while(0);
+ /* ../lib/standard/collection/hash_collection.nit:294 */
+ goto label2;
+ label2: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapValues___first[] = "hash_collection::HashMapValues::(abstract_collection::Collection::first)";
+val_t standard___collection___hash_collection___HashMapValues___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___hash_collection;
+ fra.me.line = 296;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapValues___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/hash_collection.nit:296 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapValues___map(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashCollection____first_item(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___hash_collection, 296);
+ }
+ fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashMapNode____value(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___hash_collection___HashMapValues___has[] = "hash_collection::HashMapValues::(abstract_collection::Collection::has)";
+val_t standard___collection___hash_collection___HashMapValues___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___hash_collection;
+ fra.me.line = 298;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapValues___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/hash_collection.nit:300 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapValues___map(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
+ /* ../lib/standard/collection/hash_collection.nit:301 */
+ 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/hash_collection.nit:302 */
+ fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashMapNode____value(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;
+ }
+ }
+ if (UNTAG_Bool(REGB0)) {
+ REGB0 = TAG_Bool(1);
+ goto label1;
+ }
+ /* ../lib/standard/collection/hash_collection.nit:303 */
+ fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[0]);
+ fra.me.REG[0] = fra.me.REG[2];
+ } else {
+ /* ../lib/standard/collection/hash_collection.nit:301 */
+ goto label2;
+ }
+ }
+ label2: while(0);
+ /* ../lib/standard/collection/hash_collection.nit:305 */
+ REGB1 = TAG_Bool(0);
+ REGB0 = REGB1;
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapValues___has_only[] = "hash_collection::HashMapValues::(abstract_collection::Collection::has_only)";
+val_t standard___collection___hash_collection___HashMapValues___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___hash_collection;
+ fra.me.line = 308;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapValues___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/hash_collection.nit:310 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapValues___map(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
+ /* ../lib/standard/collection/hash_collection.nit:311 */
+ 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//hash_collection.nit:261 */
+ /* ../lib/standard/collection/hash_collection.nit:312 */
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashMapNode____value(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(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//hash_collection.nit:262 */
+ /* ../lib/standard/collection/hash_collection.nit:313 */
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[0]);
fra.me.REG[0] = fra.me.REG[2];
} else {
- /* ./../lib/standard//collection//hash_collection.nit:260 */
+ /* ../lib/standard/collection/hash_collection.nit:311 */
goto label2;
}
}
label2: while(0);
- /* ./../lib/standard//collection//hash_collection.nit:264 */
- REGB1 = TAG_Bool(true);
+ /* ../lib/standard/collection/hash_collection.nit:315 */
+ REGB1 = TAG_Bool(1);
REGB0 = REGB1;
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return REGB0;
}
-void standard___collection___hash_collection___HashMap_____braeq(val_t p0, val_t p1, val_t p2){
- struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
+static const char LOCATE_standard___collection___hash_collection___HashMapValues___is_empty[] = "hash_collection::HashMapValues::(abstract_collection::Collection::is_empty)";
+val_t standard___collection___hash_collection___HashMapValues___is_empty(val_t p0){
+ struct {struct stack_frame_t me;} 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___hash_collection;
- fra.me.line = 267;
- fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap_____braeq;
+ fra.me.line = 318;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapValues___is_empty;
fra.me.has_broke = 0;
- fra.me.REG_size = 4;
+ fra.me.REG_size = 1;
+ 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//hash_collection.nit:269 */
- REGB0 = CALL_standard___collection___hash_collection___HashCollection___index_at(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
- /* ./../lib/standard//collection//hash_collection.nit:270 */
- fra.me.REG[3] = CALL_standard___collection___hash_collection___HashCollection___node_at_idx(fra.me.REG[0])(fra.me.REG[0], REGB0, fra.me.REG[1]);
- /* ./../lib/standard//collection//hash_collection.nit:271 */
- REGB1 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
- if (UNTAG_Bool(REGB1)) {
- } else {
- REGB2 = TAG_Bool(fra.me.REG[3]==NIT_NULL);
- if (UNTAG_Bool(REGB2)) {
- REGB2 = TAG_Bool(false);
- REGB1 = REGB2;
- } else {
- REGB2 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[3])(fra.me.REG[3], NIT_NULL);
- REGB1 = REGB2;
- }
- }
- REGB1 = TAG_Bool(!UNTAG_Bool(REGB1));
- if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//hash_collection.nit:272 */
- ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[3]) = fra.me.REG[1];
- /* ./../lib/standard//collection//hash_collection.nit:273 */
- ATTR_standard___collection___hash_collection___HashMapNode____value(fra.me.REG[3]) = fra.me.REG[2];
- } else {
- /* ./../lib/standard//collection//hash_collection.nit:275 */
- fra.me.REG[2] = NEW_HashMapNode_standard___collection___hash_collection___HashMapNode___init(fra.me.REG[1], fra.me.REG[2]);
- CALL_standard___collection___hash_collection___HashCollection___store(fra.me.REG[0])(fra.me.REG[0], REGB0, fra.me.REG[2]);
- }
+ /* ../lib/standard/collection/hash_collection.nit:318 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapValues___map(fra.me.REG[0])(fra.me.REG[0]);
+ REGB0 = CALL_standard___collection___abstract_collection___MapRead___is_empty(fra.me.REG[0])(fra.me.REG[0]);
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapValues___length[] = "hash_collection::HashMapValues::(abstract_collection::Collection::length)";
+val_t standard___collection___hash_collection___HashMapValues___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_standard___collection___hash_collection;
+ fra.me.line = 319;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapValues___length;
+ 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/hash_collection.nit:319 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapValues___map(fra.me.REG[0])(fra.me.REG[0]);
+ REGB0 = CALL_standard___collection___abstract_collection___MapRead___length(fra.me.REG[0])(fra.me.REG[0]);
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+static const char LOCATE_standard___collection___hash_collection___HashMapValues___iterator[] = "hash_collection::HashMapValues::(abstract_collection::Collection::iterator)";
+val_t standard___collection___hash_collection___HashMapValues___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___hash_collection;
+ fra.me.line = 321;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapValues___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/hash_collection.nit:321 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapValues___map(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[0] = CALL_standard___collection___abstract_collection___MapRead___iterator(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[0] = NEW_MapValuesIterator_standard___collection___abstract_collection___MapValuesIterator___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___hash_collection___HashMapValues___clear[] = "hash_collection::HashMapValues::(abstract_collection::RemovableCollection::clear)";
+void standard___collection___hash_collection___HashMapValues___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___hash_collection;
+ fra.me.line = 323;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapValues___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/hash_collection.nit:323 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapValues___map(fra.me.REG[0])(fra.me.REG[0]);
+ CALL_standard___collection___abstract_collection___Map___clear(fra.me.REG[0])(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return;
}
-void standard___collection___hash_collection___HashMap___remove(val_t p0, val_t p1){
+static const char LOCATE_standard___collection___hash_collection___HashMapValues___remove[] = "hash_collection::HashMapValues::(abstract_collection::RemovableCollection::remove)";
+void standard___collection___hash_collection___HashMapValues___remove(val_t p0, val_t p1){
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___hash_collection;
- fra.me.line = 279;
- fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___remove;
+ fra.me.line = 325;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapValues___remove;
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//hash_collection.nit:281 */
+ /* ../lib/standard/collection/hash_collection.nit:327 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapValues___map(fra.me.REG[0])(fra.me.REG[0]);
+ /* ../lib/standard/collection/hash_collection.nit:328 */
fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
- /* ./../lib/standard//collection//hash_collection.nit:282 */
+ /* ../lib/standard/collection/hash_collection.nit:329 */
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);
}
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- /* ./../lib/standard//collection//hash_collection.nit:283 */
+ /* ../lib/standard/collection/hash_collection.nit:330 */
fra.me.REG[3] = ATTR_standard___collection___hash_collection___HashMapNode____value(fra.me.REG[2]);
REGB0 = TAG_Bool(IS_EQUAL_NN(fra.me.REG[3],fra.me.REG[1]));
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], fra.me.REG[1]);
}
}
if (UNTAG_Bool(REGB0)) {
- /* ./../lib/standard//collection//hash_collection.nit:284 */
+ /* ../lib/standard/collection/hash_collection.nit:331 */
REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[2])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 284);
+ nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 331);
}
fra.me.REG[3] = ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[2]);
CALL_standard___collection___hash_collection___HashCollection___remove_node(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
- /* ./../lib/standard//collection//hash_collection.nit:285 */
+ /* ../lib/standard/collection/hash_collection.nit:332 */
goto label1;
}
- /* ./../lib/standard//collection//hash_collection.nit:287 */
+ /* ../lib/standard/collection/hash_collection.nit:334 */
fra.me.REG[3] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[2]);
fra.me.REG[2] = fra.me.REG[3];
} else {
- /* ./../lib/standard//collection//hash_collection.nit:282 */
+ /* ../lib/standard/collection/hash_collection.nit:329 */
goto label2;
}
}
stack_frame_head = fra.me.prev;
return;
}
-void standard___collection___hash_collection___HashMap___remove_at(val_t p0, val_t p1){
- struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+static const char LOCATE_standard___collection___hash_collection___HashMapValues___remove_all[] = "hash_collection::HashMapValues::(abstract_collection::RemovableCollection::remove_all)";
+void standard___collection___hash_collection___HashMapValues___remove_all(val_t p0, val_t p1){
+ 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___hash_collection;
- fra.me.line = 291;
- fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___remove_at;
+ fra.me.line = 338;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapValues___remove_all;
fra.me.has_broke = 0;
- fra.me.REG_size = 2;
+ 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//hash_collection.nit:291 */
- CALL_standard___collection___hash_collection___HashCollection___remove_node(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
- stack_frame_head = fra.me.prev;
- return;
-}
-void standard___collection___hash_collection___HashMap___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___hash_collection;
- fra.me.line = 293;
- fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___clear;
- fra.me.has_broke = 0;
- fra.me.REG_size = 1;
- fra.me.REG[0] = NIT_NULL;
- fra.me.REG[0] = p0;
- /* ./../lib/standard//collection//hash_collection.nit:293 */
- CALL_standard___collection___hash_collection___HashCollection___raz(fra.me.REG[0])(fra.me.REG[0]);
+ /* ../lib/standard/collection/hash_collection.nit:340 */
+ fra.me.REG[0] = CALL_standard___collection___hash_collection___HashMapValues___map(fra.me.REG[0])(fra.me.REG[0]);
+ /* ../lib/standard/collection/hash_collection.nit:341 */
+ fra.me.REG[2] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
+ /* ../lib/standard/collection/hash_collection.nit:342 */
+ 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)) {
+ /* ../lib/standard/collection/hash_collection.nit:343 */
+ fra.me.REG[3] = ATTR_standard___collection___hash_collection___HashMapNode____value(fra.me.REG[2]);
+ REGB0 = TAG_Bool(IS_EQUAL_NN(fra.me.REG[3],fra.me.REG[1]));
+ 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], fra.me.REG[1]);
+ REGB0 = REGB1;
+ }
+ }
+ if (UNTAG_Bool(REGB0)) {
+ /* ../lib/standard/collection/hash_collection.nit:344 */
+ REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[2])!=NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 344);
+ }
+ fra.me.REG[3] = ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[2]);
+ CALL_standard___collection___hash_collection___HashCollection___remove_node(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[3]);
+ }
+ /* ../lib/standard/collection/hash_collection.nit:346 */
+ fra.me.REG[3] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[2]);
+ fra.me.REG[2] = fra.me.REG[3];
+ } else {
+ /* ../lib/standard/collection/hash_collection.nit:342 */
+ goto label1;
+ }
+ }
+ label1: while(0);
stack_frame_head = fra.me.prev;
return;
}
-void standard___collection___hash_collection___HashMap___init(val_t p0, int* init_table){
- int itpos2 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashMap].i;
+static const char LOCATE_standard___collection___hash_collection___HashMapValues___init[] = "hash_collection::HashMapValues::init";
+void standard___collection___hash_collection___HashMapValues___init(val_t p0, val_t p1, int* init_table){
+ int itpos4 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashMapValues].i;
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
- val_t REGB0;
val_t tmp;
- if (init_table[itpos2]) return;
+ if (init_table[itpos4]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___hash_collection;
- fra.me.line = 295;
- fra.me.meth = LOCATE_standard___collection___hash_collection___HashMap___init;
+ fra.me.line = 0;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapValues___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;
- /* ./../lib/standard//collection//hash_collection.nit:295 */
- fra.me.REG[1] = fra.me.REG[0];
- CALL_standard___collection___hash_collection___HashCollection___init(fra.me.REG[0])(fra.me.REG[0], init_table);
- /* ./../lib/standard//collection//hash_collection.nit:297 */
- REGB0 = TAG_Int(0);
- ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[1]) = REGB0;
- /* ./../lib/standard//collection//hash_collection.nit:298 */
- REGB0 = TAG_Int(0);
- ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[1]) = REGB0;
- /* ./../lib/standard//collection//hash_collection.nit:299 */
- REGB0 = TAG_Int(0);
- CALL_standard___collection___hash_collection___HashCollection___enlarge(fra.me.REG[1])(fra.me.REG[1], REGB0);
+ fra.me.REG[1] = p1;
+ ATTR_standard___collection___hash_collection___HashMapValues_____atmap(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
- init_table[itpos2] = 1;
+ init_table[itpos4] = 1;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashMapNode___init[] = "hash_collection::HashMapNode::init";
void standard___collection___hash_collection___HashMapNode___init(val_t p0, val_t p1, val_t p2, int* init_table){
- int itpos3 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashMapNode].i;
+ int itpos5 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashMapNode].i;
struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
val_t tmp;
- if (init_table[itpos3]) return;
+ if (init_table[itpos5]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___hash_collection;
- fra.me.line = 308;
+ fra.me.line = 356;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapNode___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[0] = p0;
fra.me.REG[1] = p1;
fra.me.REG[2] = p2;
- /* ./../lib/standard//collection//hash_collection.nit:308 */
+ /* ../lib/standard/collection/hash_collection.nit:356 */
fra.me.REG[3] = fra.me.REG[0];
- /* ./../lib/standard//collection//hash_collection.nit:310 */
+ /* ../lib/standard/collection/hash_collection.nit:358 */
CALL_standard___collection___hash_collection___HashNode___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], init_table);
- /* ./../lib/standard//collection//hash_collection.nit:311 */
+ /* ../lib/standard/collection/hash_collection.nit:359 */
ATTR_standard___collection___hash_collection___HashMapNode____value(fra.me.REG[3]) = fra.me.REG[2];
stack_frame_head = fra.me.prev;
- init_table[itpos3] = 1;
+ init_table[itpos5] = 1;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashMapIterator___is_ok[] = "hash_collection::HashMapIterator::(abstract_collection::MapIterator::is_ok)";
val_t standard___collection___hash_collection___HashMapIterator___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___hash_collection;
- fra.me.line = 317;
+ fra.me.line = 365;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapIterator___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//hash_collection.nit:317 */
+ /* ../lib/standard/collection/hash_collection.nit:365 */
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashMapIterator____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___hash_collection___HashMapIterator___item[] = "hash_collection::HashMapIterator::(abstract_collection::MapIterator::item)";
val_t standard___collection___hash_collection___HashMapIterator___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___hash_collection;
- fra.me.line = 319;
+ fra.me.line = 367;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapIterator___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//hash_collection.nit:321 */
- REGB0 = CALL_standard___collection___abstract_collection___Iterator___is_ok(fra.me.REG[0])(fra.me.REG[0]);
+ /* ../lib/standard/collection/hash_collection.nit:369 */
+ REGB0 = CALL_standard___collection___abstract_collection___MapIterator___is_ok(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Assert failed", NULL, LOCATE_standard___collection___hash_collection, 321);
+ nit_abort("Assert failed", NULL, LOCATE_standard___collection___hash_collection, 369);
}
- /* ./../lib/standard//collection//hash_collection.nit:322 */
+ /* ../lib/standard/collection/hash_collection.nit:370 */
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashMapIterator____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___hash_collection, 322);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___hash_collection, 370);
}
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashMapNode____value(fra.me.REG[0]);
goto label1;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___hash_collection___HashMapIterator___key[] = "hash_collection::HashMapIterator::(abstract_collection::MapIterator::key)";
val_t standard___collection___hash_collection___HashMapIterator___key(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___hash_collection;
- fra.me.line = 331;
+ fra.me.line = 379;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapIterator___key;
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//hash_collection.nit:333 */
- REGB0 = CALL_standard___collection___abstract_collection___Iterator___is_ok(fra.me.REG[0])(fra.me.REG[0]);
+ /* ../lib/standard/collection/hash_collection.nit:381 */
+ REGB0 = CALL_standard___collection___abstract_collection___MapIterator___is_ok(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Assert failed", NULL, LOCATE_standard___collection___hash_collection, 333);
+ nit_abort("Assert failed", NULL, LOCATE_standard___collection___hash_collection, 381);
}
- /* ./../lib/standard//collection//hash_collection.nit:334 */
+ /* ../lib/standard/collection/hash_collection.nit:382 */
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashMapIterator____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___hash_collection, 334);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___hash_collection, 382);
}
REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 334);
+ nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 382);
}
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[0]);
goto label1;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___hash_collection___HashMapIterator___next[] = "hash_collection::HashMapIterator::(abstract_collection::MapIterator::next)";
void standard___collection___hash_collection___HashMapIterator___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___hash_collection;
- fra.me.line = 337;
+ fra.me.line = 385;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapIterator___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//hash_collection.nit:339 */
- REGB0 = CALL_standard___collection___abstract_collection___Iterator___is_ok(fra.me.REG[0])(fra.me.REG[0]);
+ /* ../lib/standard/collection/hash_collection.nit:387 */
+ REGB0 = CALL_standard___collection___abstract_collection___MapIterator___is_ok(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Assert failed", NULL, LOCATE_standard___collection___hash_collection, 339);
+ nit_abort("Assert failed", NULL, LOCATE_standard___collection___hash_collection, 387);
}
- /* ./../lib/standard//collection//hash_collection.nit:340 */
+ /* ../lib/standard/collection/hash_collection.nit:388 */
fra.me.REG[1] = ATTR_standard___collection___hash_collection___HashMapIterator____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___hash_collection, 340);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___hash_collection, 388);
}
fra.me.REG[1] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[1]);
ATTR_standard___collection___hash_collection___HashMapIterator____node(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashMapIterator___init[] = "hash_collection::HashMapIterator::init";
void standard___collection___hash_collection___HashMapIterator___init(val_t p0, val_t p1, int* init_table){
- int itpos4 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashMapIterator].i;
+ int itpos6 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashMapIterator].i;
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t tmp;
- if (init_table[itpos4]) return;
+ if (init_table[itpos6]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___hash_collection;
- fra.me.line = 349;
+ fra.me.line = 397;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashMapIterator___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//hash_collection.nit:351 */
+ /* ../lib/standard/collection/hash_collection.nit:399 */
ATTR_standard___collection___hash_collection___HashMapIterator____map(fra.me.REG[0]) = fra.me.REG[1];
- /* ./../lib/standard//collection//hash_collection.nit:352 */
+ /* ../lib/standard/collection/hash_collection.nit:400 */
fra.me.REG[1] = CALL_standard___collection___hash_collection___HashCollection___first_item(fra.me.REG[1])(fra.me.REG[1]);
ATTR_standard___collection___hash_collection___HashMapIterator____node(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
- init_table[itpos4] = 1;
+ init_table[itpos6] = 1;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashSet___length[] = "hash_collection::HashSet::(abstract_collection::Collection::length)";
+val_t standard___collection___hash_collection___HashSet___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_standard___collection___hash_collection;
+ fra.me.line = 410;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashSet___length;
+ 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/hash_collection.nit:410 */
+ REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0])!=NIT_NULL);
+ if (UNTAG_Bool(REGB0)) {
+ } else {
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 410);
+ }
+ REGB0 = ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0]);
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return REGB0;
+}
+static const char LOCATE_standard___collection___hash_collection___HashSet___is_empty[] = "hash_collection::HashSet::(abstract_collection::Collection::is_empty)";
val_t standard___collection___hash_collection___HashSet___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_standard___collection___hash_collection;
- fra.me.line = 360;
+ fra.me.line = 412;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashSet___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//hash_collection.nit:360 */
+ /* ../lib/standard/collection/hash_collection.nit:412 */
REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 360);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 412);
}
REGB0 = ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0]);
REGB1 = TAG_Int(0);
REGB2 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB1));
if (UNTAG_Bool(REGB2)) {
} else {
- /* ./../lib/standard//kernel.nit:210 */
+ /* ../lib/standard/kernel.nit:230 */
REGB1 = TAG_Bool((REGB0)==(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:360 */
+ /* ../lib/standard/collection/hash_collection.nit:412 */
REGB2 = REGB1;
}
goto label1;
stack_frame_head = fra.me.prev;
return REGB2;
}
+static const char LOCATE_standard___collection___hash_collection___HashSet___first[] = "hash_collection::HashSet::(abstract_collection::Collection::first)";
val_t standard___collection___hash_collection___HashSet___first(val_t p0){
struct {struct stack_frame_t me;} 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___hash_collection;
- fra.me.line = 362;
+ fra.me.line = 414;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashSet___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//hash_collection.nit:364 */
+ /* ../lib/standard/collection/hash_collection.nit:416 */
REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 364);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___hash_collection, 416);
}
REGB0 = ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[0]);
REGB1 = TAG_Int(0);
- /* ./../lib/standard//kernel.nit:217 */
+ 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:237 */
REGB1 = TAG_Bool(UNTAG_Int(REGB0)>UNTAG_Int(REGB1));
- /* ./../lib/standard//collection//hash_collection.nit:364 */
+ /* ../lib/standard/collection/hash_collection.nit:416 */
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Assert failed", NULL, LOCATE_standard___collection___hash_collection, 364);
+ nit_abort("Assert failed", NULL, LOCATE_standard___collection___hash_collection, 416);
}
- /* ./../lib/standard//collection//hash_collection.nit:365 */
+ /* ../lib/standard/collection/hash_collection.nit:417 */
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[0]);
REGB1 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___collection___hash_collection, 365);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___hash_collection, 417);
}
REGB1 = TAG_Bool(ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 365);
+ nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 417);
}
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[0]);
goto label1;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___hash_collection___HashSet___has[] = "hash_collection::HashSet::(abstract_collection::Collection::has)";
val_t standard___collection___hash_collection___HashSet___has(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___hash_collection;
- fra.me.line = 368;
+ fra.me.line = 420;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashSet___has;
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//hash_collection.nit:370 */
+ /* ../lib/standard/collection/hash_collection.nit:422 */
fra.me.REG[1] = CALL_standard___collection___hash_collection___HashCollection___node_at(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
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 REGB0;
}
+static const char LOCATE_standard___collection___hash_collection___HashSet___add[] = "hash_collection::HashSet::(abstract_collection::SimpleCollection::add)";
void standard___collection___hash_collection___HashSet___add(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___hash_collection;
- fra.me.line = 373;
+ fra.me.line = 425;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashSet___add;
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//hash_collection.nit:375 */
+ /* ../lib/standard/collection/hash_collection.nit:427 */
REGB0 = CALL_standard___collection___hash_collection___HashCollection___index_at(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
- /* ./../lib/standard//collection//hash_collection.nit:376 */
+ /* ../lib/standard/collection/hash_collection.nit:428 */
fra.me.REG[2] = CALL_standard___collection___hash_collection___HashCollection___node_at_idx(fra.me.REG[0])(fra.me.REG[0], REGB0, fra.me.REG[1]);
- /* ./../lib/standard//collection//hash_collection.nit:377 */
+ /* ../lib/standard/collection/hash_collection.nit:429 */
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} 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], NIT_NULL);
}
REGB1 = TAG_Bool(!UNTAG_Bool(REGB1));
if (UNTAG_Bool(REGB1)) {
- /* ./../lib/standard//collection//hash_collection.nit:378 */
+ /* ../lib/standard/collection/hash_collection.nit:430 */
ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[2]) = fra.me.REG[1];
} else {
- /* ./../lib/standard//collection//hash_collection.nit:380 */
+ /* ../lib/standard/collection/hash_collection.nit:432 */
fra.me.REG[1] = NEW_HashSetNode_standard___collection___hash_collection___HashSetNode___init(fra.me.REG[1]);
CALL_standard___collection___hash_collection___HashCollection___store(fra.me.REG[0])(fra.me.REG[0], REGB0, fra.me.REG[1]);
}
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashSet___remove[] = "hash_collection::HashSet::(abstract_collection::RemovableCollection::remove)";
void standard___collection___hash_collection___HashSet___remove(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___hash_collection;
- fra.me.line = 384;
+ fra.me.line = 436;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashSet___remove;
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//hash_collection.nit:384 */
+ /* ../lib/standard/collection/hash_collection.nit:436 */
CALL_standard___collection___hash_collection___HashCollection___remove_node(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___hash_collection___HashSet___clear[] = "hash_collection::HashSet::(abstract_collection::RemovableCollection::clear)";
void standard___collection___hash_collection___HashSet___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___hash_collection;
- fra.me.line = 386;
+ fra.me.line = 438;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashSet___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//hash_collection.nit:386 */
+ /* ../lib/standard/collection/hash_collection.nit:438 */
CALL_standard___collection___hash_collection___HashCollection___raz(fra.me.REG[0])(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashSet___iterator[] = "hash_collection::HashSet::(abstract_collection::Collection::iterator)";
val_t standard___collection___hash_collection___HashSet___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___hash_collection;
- fra.me.line = 388;
+ fra.me.line = 440;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashSet___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//hash_collection.nit:388 */
+ /* ../lib/standard/collection/hash_collection.nit:440 */
fra.me.REG[0] = NEW_HashSetIterator_standard___collection___hash_collection___HashSetIterator___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___hash_collection___HashSet___init[] = "hash_collection::HashSet::init";
void standard___collection___hash_collection___HashSet___init(val_t p0, int* init_table){
- int itpos5 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashSet].i;
+ int itpos7 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashSet].i;
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
val_t tmp;
- if (init_table[itpos5]) return;
+ if (init_table[itpos7]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___hash_collection;
- fra.me.line = 390;
+ fra.me.line = 442;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashSet___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;
- /* ./../lib/standard//collection//hash_collection.nit:390 */
+ /* ../lib/standard/collection/hash_collection.nit:442 */
fra.me.REG[1] = fra.me.REG[0];
CALL_standard___collection___hash_collection___HashCollection___init(fra.me.REG[0])(fra.me.REG[0], init_table);
- /* ./../lib/standard//collection//hash_collection.nit:392 */
+ /* ../lib/standard/collection/hash_collection.nit:444 */
REGB0 = TAG_Int(0);
ATTR_standard___collection___hash_collection___HashCollection____capacity(fra.me.REG[1]) = REGB0;
- /* ./../lib/standard//collection//hash_collection.nit:393 */
+ /* ../lib/standard/collection/hash_collection.nit:445 */
REGB0 = TAG_Int(0);
ATTR_standard___collection___hash_collection___HashCollection____length(fra.me.REG[1]) = REGB0;
- /* ./../lib/standard//collection//hash_collection.nit:394 */
+ /* ../lib/standard/collection/hash_collection.nit:446 */
REGB0 = TAG_Int(0);
CALL_standard___collection___hash_collection___HashCollection___enlarge(fra.me.REG[1])(fra.me.REG[1], REGB0);
stack_frame_head = fra.me.prev;
- init_table[itpos5] = 1;
+ init_table[itpos7] = 1;
+ return;
+}
+static const char LOCATE_standard___collection___hash_collection___HashSet___from[] = "hash_collection::HashSet::from";
+void standard___collection___hash_collection___HashSet___from(val_t p0, val_t p1, int* init_table){
+ int itpos8 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashSet].i;
+ struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
+ val_t tmp;
+ if (init_table[itpos8]) return;
+ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
+ fra.me.file = LOCATE_standard___collection___hash_collection;
+ fra.me.line = 449;
+ fra.me.meth = LOCATE_standard___collection___hash_collection___HashSet___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/hash_collection.nit:451 */
+ CALL_standard___collection___hash_collection___HashSet___init(fra.me.REG[0])(fra.me.REG[0], init_table);
+ /* ../lib/standard/collection/hash_collection.nit:452 */
+ CALL_standard___collection___abstract_collection___SimpleCollection___add_all(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
+ stack_frame_head = fra.me.prev;
+ init_table[itpos8] = 1;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashSetNode___init[] = "hash_collection::HashSetNode::init";
void standard___collection___hash_collection___HashSetNode___init(val_t p0, val_t p1, int* init_table){
- int itpos6 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashSetNode].i;
+ int itpos9 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashSetNode].i;
struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
val_t tmp;
- if (init_table[itpos6]) return;
+ if (init_table[itpos9]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___hash_collection;
- fra.me.line = 402;
+ fra.me.line = 460;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashSetNode___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//hash_collection.nit:402 */
+ /* ../lib/standard/collection/hash_collection.nit:460 */
fra.me.REG[2] = fra.me.REG[0];
fra.me.REG[3] = fra.me.REG[1];
CALL_standard___collection___hash_collection___HashNode___init(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], init_table);
- /* ./../lib/standard//collection//hash_collection.nit:404 */
+ /* ../lib/standard/collection/hash_collection.nit:462 */
ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[2]) = fra.me.REG[3];
stack_frame_head = fra.me.prev;
- init_table[itpos6] = 1;
+ init_table[itpos9] = 1;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashSetIterator___is_ok[] = "hash_collection::HashSetIterator::(abstract_collection::Iterator::is_ok)";
val_t standard___collection___hash_collection___HashSetIterator___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___hash_collection;
- fra.me.line = 410;
+ fra.me.line = 468;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashSetIterator___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//hash_collection.nit:410 */
+ /* ../lib/standard/collection/hash_collection.nit:468 */
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashSetIterator____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___hash_collection___HashSetIterator___item[] = "hash_collection::HashSetIterator::(abstract_collection::Iterator::item)";
val_t standard___collection___hash_collection___HashSetIterator___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___hash_collection;
- fra.me.line = 412;
+ fra.me.line = 470;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashSetIterator___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//hash_collection.nit:414 */
+ /* ../lib/standard/collection/hash_collection.nit:472 */
REGB0 = CALL_standard___collection___abstract_collection___Iterator___is_ok(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Assert failed", NULL, LOCATE_standard___collection___hash_collection, 414);
+ nit_abort("Assert failed", NULL, LOCATE_standard___collection___hash_collection, 472);
}
- /* ./../lib/standard//collection//hash_collection.nit:415 */
+ /* ../lib/standard/collection/hash_collection.nit:473 */
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashSetIterator____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___hash_collection, 415);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___hash_collection, 473);
}
REGB0 = TAG_Bool(ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 415);
+ nit_abort("Uninitialized attribute %s", "_key", LOCATE_standard___collection___hash_collection, 473);
}
fra.me.REG[0] = ATTR_standard___collection___hash_collection___HashNode____key(fra.me.REG[0]);
goto label1;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___collection___hash_collection___HashSetIterator___next[] = "hash_collection::HashSetIterator::(abstract_collection::Iterator::next)";
void standard___collection___hash_collection___HashSetIterator___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___hash_collection;
- fra.me.line = 418;
+ fra.me.line = 476;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashSetIterator___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//hash_collection.nit:420 */
+ /* ../lib/standard/collection/hash_collection.nit:478 */
REGB0 = CALL_standard___collection___abstract_collection___Iterator___is_ok(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Assert failed", NULL, LOCATE_standard___collection___hash_collection, 420);
+ nit_abort("Assert failed", NULL, LOCATE_standard___collection___hash_collection, 478);
}
- /* ./../lib/standard//collection//hash_collection.nit:421 */
+ /* ../lib/standard/collection/hash_collection.nit:479 */
fra.me.REG[1] = ATTR_standard___collection___hash_collection___HashSetIterator____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___hash_collection, 421);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___collection___hash_collection, 479);
}
fra.me.REG[1] = ATTR_standard___collection___hash_collection___HashNode____next_item(fra.me.REG[1]);
ATTR_standard___collection___hash_collection___HashSetIterator____node(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___collection___hash_collection___HashSetIterator___init[] = "hash_collection::HashSetIterator::init";
void standard___collection___hash_collection___HashSetIterator___init(val_t p0, val_t p1, int* init_table){
- int itpos7 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashSetIterator].i;
+ int itpos10 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___collection___hash_collection___HashSetIterator].i;
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t tmp;
- if (init_table[itpos7]) return;
+ if (init_table[itpos10]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___collection___hash_collection;
- fra.me.line = 430;
+ fra.me.line = 488;
fra.me.meth = LOCATE_standard___collection___hash_collection___HashSetIterator___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//hash_collection.nit:432 */
+ /* ../lib/standard/collection/hash_collection.nit:490 */
ATTR_standard___collection___hash_collection___HashSetIterator____set(fra.me.REG[0]) = fra.me.REG[1];
- /* ./../lib/standard//collection//hash_collection.nit:433 */
+ /* ../lib/standard/collection/hash_collection.nit:491 */
fra.me.REG[1] = ATTR_standard___collection___hash_collection___HashCollection____first_item(fra.me.REG[1]);
ATTR_standard___collection___hash_collection___HashSetIterator____node(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
- init_table[itpos7] = 1;
+ init_table[itpos10] = 1;
return;
}