X-Git-Url: http://nitlanguage.org diff --git a/c_src/standard___string_search._sep.c b/c_src/standard___string_search._sep.c index 27c18d5..637e27d 100644 --- a/c_src/standard___string_search._sep.c +++ b/c_src/standard___string_search._sep.c @@ -1,33 +1,38 @@ /* This C file is generated by NIT to compile module standard___string_search. */ #include "standard___string_search._sep.h" +static const char LOCATE_standard___string_search___Pattern___search_index_in[] = "string_search::Pattern::search_index_in"; val_t standard___string_search___Pattern___search_index_in(val_t p0, val_t p1, val_t p2){ 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___string_search; - fra.me.line = 21; + fra.me.line = 20; fra.me.meth = LOCATE_standard___string_search___Pattern___search_index_in; fra.me.has_broke = 0; fra.me.REG_size = 0; - /* ./../lib/standard//string_search.nit:21 */ - nit_abort("Deferred method called", NULL, LOCATE_standard___string_search, 21); + fra.me.nitni_local_ref_head = NULL; + /* ../lib/standard/string_search.nit:20 */ + nit_abort("Deferred method called", NULL, LOCATE_standard___string_search, 20); stack_frame_head = fra.me.prev; return NIT_NULL; } +static const char LOCATE_standard___string_search___Pattern___search_in[] = "string_search::Pattern::search_in"; val_t standard___string_search___Pattern___search_in(val_t p0, val_t p1, val_t p2){ 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___string_search; - fra.me.line = 26; + fra.me.line = 25; fra.me.meth = LOCATE_standard___string_search___Pattern___search_in; fra.me.has_broke = 0; fra.me.REG_size = 0; - /* ./../lib/standard//string_search.nit:26 */ - nit_abort("Deferred method called", NULL, LOCATE_standard___string_search, 26); + fra.me.nitni_local_ref_head = NULL; + /* ../lib/standard/string_search.nit:25 */ + nit_abort("Deferred method called", NULL, LOCATE_standard___string_search, 25); stack_frame_head = fra.me.prev; return NIT_NULL; } +static const char LOCATE_standard___string_search___Pattern___search_all_in[] = "string_search::Pattern::search_all_in"; val_t standard___string_search___Pattern___search_all_in(val_t p0, val_t p1){ struct {struct stack_frame_t me; val_t MORE_REG[4];} fra; val_t REGB0; @@ -35,10 +40,11 @@ val_t standard___string_search___Pattern___search_all_in(val_t p0, val_t p1){ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 30; + fra.me.line = 29; fra.me.meth = LOCATE_standard___string_search___Pattern___search_all_in; 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; @@ -46,19 +52,19 @@ val_t standard___string_search___Pattern___search_all_in(val_t p0, val_t p1){ fra.me.REG[4] = NIT_NULL; fra.me.REG[0] = p0; fra.me.REG[1] = p1; - /* ./../lib/standard//string_search.nit:33 */ + /* ../lib/standard/string_search.nit:32 */ fra.me.REG[2] = NEW_Array_standard___collection___array___Array___init(); - /* ./../lib/standard//string_search.nit:34 */ + /* ../lib/standard/string_search.nit:33 */ REGB0 = TAG_Int(0); fra.me.REG[3] = CALL_standard___string_search___Pattern___search_in(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], REGB0); - /* ./../lib/standard//string_search.nit:35 */ + /* ../lib/standard/string_search.nit:34 */ while(1) { REGB0 = TAG_Bool(fra.me.REG[3]==NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { REGB1 = TAG_Bool(fra.me.REG[3]==NIT_NULL); if (UNTAG_Bool(REGB1)) { - REGB1 = TAG_Bool(false); + REGB1 = TAG_Bool(0); REGB0 = REGB1; } else { REGB1 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[3])(fra.me.REG[3], NIT_NULL); @@ -67,28 +73,29 @@ val_t standard___string_search___Pattern___search_all_in(val_t p0, val_t p1){ } REGB0 = TAG_Bool(!UNTAG_Bool(REGB0)); if (UNTAG_Bool(REGB0)) { - /* ./../lib/standard//string_search.nit:36 */ + /* ../lib/standard/string_search.nit:35 */ CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[3]); - /* ./../lib/standard//string_search.nit:37 */ + /* ../lib/standard/string_search.nit:36 */ REGB0 = TAG_Bool(fra.me.REG[3]==NIT_NULL); if (UNTAG_Bool(REGB0)) { - nit_abort("Reciever is null", NULL, LOCATE_standard___string_search, 37); + nit_abort("Reciever is null", NULL, LOCATE_standard___string_search, 36); } REGB0 = CALL_standard___string_search___Match___after(fra.me.REG[3])(fra.me.REG[3]); fra.me.REG[4] = CALL_standard___string_search___Pattern___search_in(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], REGB0); fra.me.REG[3] = fra.me.REG[4]; } else { - /* ./../lib/standard//string_search.nit:35 */ + /* ../lib/standard/string_search.nit:34 */ goto label1; } } label1: while(0); - /* ./../lib/standard//string_search.nit:39 */ + /* ../lib/standard/string_search.nit:38 */ goto label2; label2: while(0); stack_frame_head = fra.me.prev; return fra.me.REG[2]; } +static const char LOCATE_standard___string_search___Pattern___split_in[] = "string_search::Pattern::split_in"; val_t standard___string_search___Pattern___split_in(val_t p0, val_t p1){ struct {struct stack_frame_t me; val_t MORE_REG[4];} fra; val_t REGB0; @@ -97,10 +104,11 @@ val_t standard___string_search___Pattern___split_in(val_t p0, val_t p1){ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 42; + fra.me.line = 41; fra.me.meth = LOCATE_standard___string_search___Pattern___split_in; 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; @@ -108,21 +116,21 @@ val_t standard___string_search___Pattern___split_in(val_t p0, val_t p1){ fra.me.REG[4] = NIT_NULL; fra.me.REG[0] = p0; fra.me.REG[1] = p1; - /* ./../lib/standard//string_search.nit:45 */ + /* ../lib/standard/string_search.nit:44 */ fra.me.REG[2] = NEW_Array_standard___collection___array___Array___init(); - /* ./../lib/standard//string_search.nit:46 */ + /* ../lib/standard/string_search.nit:45 */ REGB0 = TAG_Int(0); - /* ./../lib/standard//string_search.nit:47 */ + /* ../lib/standard/string_search.nit:46 */ REGB1 = TAG_Int(0); fra.me.REG[3] = CALL_standard___string_search___Pattern___search_in(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], REGB1); - /* ./../lib/standard//string_search.nit:48 */ + /* ../lib/standard/string_search.nit:47 */ while(1) { 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); @@ -131,68 +139,70 @@ val_t standard___string_search___Pattern___split_in(val_t p0, val_t p1){ } REGB1 = TAG_Bool(!UNTAG_Bool(REGB1)); if (UNTAG_Bool(REGB1)) { - /* ./../lib/standard//string_search.nit:50 */ + /* ../lib/standard/string_search.nit:49 */ REGB1 = TAG_Bool(fra.me.REG[3]==NIT_NULL); if (UNTAG_Bool(REGB1)) { - nit_abort("Reciever is null", NULL, LOCATE_standard___string_search, 50); + nit_abort("Reciever is null", NULL, LOCATE_standard___string_search, 49); } REGB1 = CALL_standard___string_search___Match___from(fra.me.REG[3])(fra.me.REG[3]); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB1 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB0)); - /* ./../lib/standard//string_search.nit:51 */ + /* ../lib/standard/string_search.nit:50 */ fra.me.REG[4] = NEW_Match_standard___string_search___Match___init(fra.me.REG[1], REGB0, REGB1); CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[4]); - /* ./../lib/standard//string_search.nit:52 */ + /* ../lib/standard/string_search.nit:51 */ REGB1 = TAG_Bool(fra.me.REG[3]==NIT_NULL); if (UNTAG_Bool(REGB1)) { - nit_abort("Reciever is null", NULL, LOCATE_standard___string_search, 52); + nit_abort("Reciever is null", NULL, LOCATE_standard___string_search, 51); } REGB1 = CALL_standard___string_search___Match___after(fra.me.REG[3])(fra.me.REG[3]); REGB0 = REGB1; - /* ./../lib/standard//string_search.nit:53 */ + /* ../lib/standard/string_search.nit:52 */ fra.me.REG[4] = CALL_standard___string_search___Pattern___search_in(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], REGB0); fra.me.REG[3] = fra.me.REG[4]; } else { - /* ./../lib/standard//string_search.nit:48 */ + /* ../lib/standard/string_search.nit:47 */ goto label1; } } label1: while(0); - /* ./../lib/standard//collection//array.nit:24 */ + /* ../lib/standard/collection/array.nit:24 */ REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24); } REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB1 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB0)); - /* ./../lib/standard//string_search.nit:56 */ + /* ../lib/standard/string_search.nit:55 */ fra.me.REG[1] = NEW_Match_standard___string_search___Match___init(fra.me.REG[1], REGB0, REGB1); CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]); - /* ./../lib/standard//string_search.nit:57 */ + /* ../lib/standard/string_search.nit:56 */ goto label2; label2: while(0); stack_frame_head = fra.me.prev; return fra.me.REG[2]; } +static const char LOCATE_standard___string_search___BM_Pattern___to_s[] = "string_search::BM_Pattern::(string::Object::to_s)"; val_t standard___string_search___BM_Pattern___to_s(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___string_search; - fra.me.line = 68; + fra.me.line = 67; fra.me.meth = LOCATE_standard___string_search___BM_Pattern___to_s; 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//string_search.nit:68 */ + /* ../lib/standard/string_search.nit:67 */ REGB0 = TAG_Bool(ATTR_standard___string_search___BM_Pattern____motif(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_motif", LOCATE_standard___string_search, 68); + nit_abort("Uninitialized attribute %s", "_motif", LOCATE_standard___string_search, 67); } fra.me.REG[0] = ATTR_standard___string_search___BM_Pattern____motif(fra.me.REG[0]); goto label1; @@ -200,6 +210,7 @@ val_t standard___string_search___BM_Pattern___to_s(val_t p0){ stack_frame_head = fra.me.prev; return fra.me.REG[0]; } +static const char LOCATE_standard___string_search___BM_Pattern___search_index_in[] = "string_search::BM_Pattern::(string_search::Pattern::search_index_in)"; val_t standard___string_search___BM_Pattern___search_index_in(val_t p0, val_t p1, val_t p2){ struct {struct stack_frame_t me; val_t MORE_REG[2];} fra; val_t REGB0; @@ -213,66 +224,67 @@ val_t standard___string_search___BM_Pattern___search_index_in(val_t p0, val_t p1 val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 70; + fra.me.line = 69; fra.me.meth = LOCATE_standard___string_search___BM_Pattern___search_index_in; 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; REGB0 = p2; - /* ./../lib/standard//string_search.nit:73 */ + /* ../lib/standard/string_search.nit:72 */ REGB1 = TAG_Int(0); REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/; if (UNTAG_Bool(REGB2)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:233 */ + /* ../lib/standard/kernel.nit:236 */ REGB1 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB1)); - /* ./../lib/standard//string_search.nit:73 */ + /* ../lib/standard/string_search.nit:72 */ if (UNTAG_Bool(REGB1)) { } else { - nit_abort("Assert failed", NULL, LOCATE_standard___string_search, 73); + nit_abort("Assert failed", NULL, LOCATE_standard___string_search, 72); } - /* ./../lib/standard//collection//array.nit:24 */ + /* ../lib/standard/collection/array.nit:24 */ REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24); } REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]); - /* ./../lib/standard//string_search.nit:75 */ + /* ../lib/standard/string_search.nit:74 */ REGB2 = TAG_Bool(ATTR_standard___string_search___BM_Pattern____length(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB2)) { } else { - nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 75); + nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 74); } REGB2 = ATTR_standard___string_search___BM_Pattern____length(fra.me.REG[0]); - /* ./../lib/standard//string_search.nit:78 */ + /* ../lib/standard/string_search.nit:77 */ while(1) { - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB3 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB2)); - /* ./../lib/standard//string_search.nit:78 */ + /* ../lib/standard/string_search.nit:77 */ REGB4 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB4 = TAG_Int(UNTAG_Int(REGB3)+UNTAG_Int(REGB4)); REGB3 = TAG_Bool(VAL_ISA(REGB4, 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:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB4 = TAG_Bool(UNTAG_Int(REGB0)=UNTAG_Int(REGB3)); - /* ./../lib/standard//string_search.nit:80 */ + /* ../lib/standard/string_search.nit:79 */ if (UNTAG_Bool(REGB3)) { REGB3 = TAG_Bool(ATTR_standard___string_search___BM_Pattern____motif(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB3)) { } else { - nit_abort("Uninitialized attribute %s", "_motif", LOCATE_standard___string_search, 80); + nit_abort("Uninitialized attribute %s", "_motif", LOCATE_standard___string_search, 79); } fra.me.REG[2] = ATTR_standard___string_search___BM_Pattern____motif(fra.me.REG[0]); REGB3 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[2])(fra.me.REG[2], REGB4); - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB5 = TAG_Int(UNTAG_Int(REGB4)+UNTAG_Int(REGB0)); - /* ./../lib/standard//string_search.nit:80 */ + /* ../lib/standard/string_search.nit:79 */ REGB5 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[1])(fra.me.REG[1], REGB5); REGB6 = TAG_Bool(IS_EQUAL_OO(REGB3,REGB5)); if (UNTAG_Bool(REGB6)) { } else { - /* ./../lib/standard//kernel.nit:378 */ + /* ../lib/standard/kernel.nit:381 */ REGB5 = TAG_Bool((REGB3)==(REGB5)); - /* ./../lib/standard//string_search.nit:80 */ + /* ../lib/standard/string_search.nit:79 */ REGB6 = REGB5; } } else { - REGB5 = TAG_Bool(false); + REGB5 = TAG_Bool(0); REGB6 = REGB5; } if (UNTAG_Bool(REGB6)) { REGB6 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB6 = TAG_Int(UNTAG_Int(REGB4)-UNTAG_Int(REGB6)); - /* ./../lib/standard//string_search.nit:80 */ + /* ../lib/standard/string_search.nit:79 */ REGB4 = REGB6; } else { goto label1; } } label1: while(0); - /* ./../lib/standard//string_search.nit:81 */ + /* ../lib/standard/string_search.nit:80 */ REGB6 = TAG_Int(0); REGB5 = TAG_Bool(VAL_ISA(REGB6, VTCOLOR_standard___kernel___Comparable___OTHER(REGB4), VTID_standard___kernel___Comparable___OTHER(REGB4))) /*cast OTHER*/; if (UNTAG_Bool(REGB5)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB6 = TAG_Bool(UNTAG_Int(REGB4)=UNTAG_Int(REGB3)); - /* ./../lib/standard//collection//array.nit:280 */ + /* ../lib/standard/collection/array.nit:280 */ if (UNTAG_Bool(REGB3)) { REGB3 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL); if (UNTAG_Bool(REGB3)) { @@ -364,40 +376,40 @@ val_t standard___string_search___BM_Pattern___search_index_in(val_t p0, val_t p1 } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB3 = TAG_Bool(UNTAG_Int(REGB5)val[UNTAG_Int(REGB5)]; - /* ./../lib/standard//collection//array.nit:281 */ + /* ../lib/standard/collection/array.nit:281 */ goto label3; label3: while(0); - /* ./../lib/standard//string_search.nit:84 */ + /* ../lib/standard/string_search.nit:83 */ REGB5 = fra.me.REG[2]; - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB3 = TAG_Int(UNTAG_Int(REGB4)+UNTAG_Int(REGB0)); - /* ./../lib/standard//string_search.nit:85 */ + /* ../lib/standard/string_search.nit:84 */ REGB3 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[1])(fra.me.REG[1], REGB3); REGB3 = CALL_standard___string_search___BM_Pattern___bc(fra.me.REG[0])(fra.me.REG[0], REGB3); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB3 = TAG_Int(UNTAG_Int(REGB3)-UNTAG_Int(REGB2)); - /* ./../lib/standard//string_search.nit:85 */ + /* ../lib/standard/string_search.nit:84 */ REGB7 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB7 = TAG_Int(UNTAG_Int(REGB3)+UNTAG_Int(REGB7)); REGB4 = TAG_Int(UNTAG_Int(REGB7)+UNTAG_Int(REGB4)); REGB7 = TAG_Bool(VAL_ISA(REGB4, VTCOLOR_standard___kernel___Comparable___OTHER(REGB5), VTID_standard___kernel___Comparable___OTHER(REGB5))) /*cast OTHER*/; @@ -405,38 +417,39 @@ val_t standard___string_search___BM_Pattern___search_index_in(val_t p0, val_t p1 } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:234 */ + /* ../lib/standard/kernel.nit:237 */ REGB7 = TAG_Bool(UNTAG_Int(REGB5)>UNTAG_Int(REGB4)); - /* ./../lib/standard//string_search.nit:87 */ + /* ../lib/standard/string_search.nit:86 */ if (UNTAG_Bool(REGB7)) { - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB5 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB5)); - /* ./../lib/standard//string_search.nit:88 */ + /* ../lib/standard/string_search.nit:87 */ REGB0 = REGB5; } else { - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB4 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB4)); - /* ./../lib/standard//string_search.nit:90 */ + /* ../lib/standard/string_search.nit:89 */ REGB0 = REGB4; } } } else { - /* ./../lib/standard//string_search.nit:78 */ + /* ../lib/standard/string_search.nit:77 */ goto label4; } } label4: while(0); - /* ./../lib/standard//string_search.nit:94 */ + /* ../lib/standard/string_search.nit:93 */ REGB0 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:236 */ + /* ../lib/standard/kernel.nit:239 */ REGB0 = TAG_Int(-UNTAG_Int(REGB0)); - /* ./../lib/standard//string_search.nit:94 */ + /* ../lib/standard/string_search.nit:93 */ REGB6 = REGB0; goto label2; label2: while(0); stack_frame_head = fra.me.prev; return REGB6; } +static const char LOCATE_standard___string_search___BM_Pattern___search_in[] = "string_search::BM_Pattern::(string_search::Pattern::search_in)"; val_t standard___string_search___BM_Pattern___search_in(val_t p0, val_t p1, val_t p2){ struct {struct stack_frame_t me; val_t MORE_REG[2];} fra; val_t REGB0; @@ -445,38 +458,39 @@ val_t standard___string_search___BM_Pattern___search_in(val_t p0, val_t p1, val_ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 97; + fra.me.line = 96; fra.me.meth = LOCATE_standard___string_search___BM_Pattern___search_in; 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; REGB0 = p2; - /* ./../lib/standard//string_search.nit:100 */ + /* ../lib/standard/string_search.nit:99 */ REGB0 = CALL_standard___string_search___Pattern___search_index_in(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], REGB0); - /* ./../lib/standard//string_search.nit:101 */ + /* ../lib/standard/string_search.nit:100 */ REGB1 = TAG_Int(0); REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/; if (UNTAG_Bool(REGB2)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB1 = TAG_Bool(UNTAG_Int(REGB0)vft[INIT_TABLE_POS_standard___string_search___BM_Pattern].i; struct {struct stack_frame_t me; val_t MORE_REG[1];} fra; @@ -495,45 +510,47 @@ void standard___string_search___BM_Pattern___init(val_t p0, val_t p1, int* init_ if (init_table[itpos0]) return; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 108; + fra.me.line = 107; fra.me.meth = LOCATE_standard___string_search___BM_Pattern___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//string_search.nit:111 */ + /* ../lib/standard/string_search.nit:110 */ ATTR_standard___string_search___BM_Pattern____motif(fra.me.REG[0]) = fra.me.REG[1]; - /* ./../lib/standard//collection//array.nit:24 */ + /* ../lib/standard/collection/array.nit:24 */ REGB0 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24); } REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]); - /* ./../lib/standard//string_search.nit:112 */ + /* ../lib/standard/string_search.nit:111 */ ATTR_standard___string_search___BM_Pattern____length(fra.me.REG[0]) = REGB0; - /* ./../lib/standard//string_search.nit:113 */ + /* ../lib/standard/string_search.nit:112 */ REGB0 = TAG_Bool(ATTR_standard___string_search___BM_Pattern____length(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 113); + nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 112); } REGB0 = ATTR_standard___string_search___BM_Pattern____length(fra.me.REG[0]); fra.me.REG[1] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0); ATTR_standard___string_search___BM_Pattern____gs(fra.me.REG[0]) = fra.me.REG[1]; - /* ./../lib/standard//string_search.nit:114 */ + /* ../lib/standard/string_search.nit:113 */ fra.me.REG[1] = NEW_ArrayMap_standard___collection___array___ArrayMap___init(); ATTR_standard___string_search___BM_Pattern____bc_table(fra.me.REG[0]) = fra.me.REG[1]; - /* ./../lib/standard//string_search.nit:115 */ + /* ../lib/standard/string_search.nit:114 */ CALL_standard___string_search___BM_Pattern___compute_gs(fra.me.REG[0])(fra.me.REG[0]); - /* ./../lib/standard//string_search.nit:116 */ + /* ../lib/standard/string_search.nit:115 */ CALL_standard___string_search___BM_Pattern___compute_bc(fra.me.REG[0])(fra.me.REG[0]); stack_frame_head = fra.me.prev; init_table[itpos0] = 1; return; } +static const char LOCATE_standard___string_search___BM_Pattern___bc[] = "string_search::BM_Pattern::bc"; val_t standard___string_search___BM_Pattern___bc(val_t p0, val_t p1){ struct {struct stack_frame_t me; val_t MORE_REG[1];} fra; val_t REGB0; @@ -541,39 +558,40 @@ val_t standard___string_search___BM_Pattern___bc(val_t p0, val_t p1){ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 125; + fra.me.line = 124; fra.me.meth = LOCATE_standard___string_search___BM_Pattern___bc; fra.me.has_broke = 0; fra.me.REG_size = 2; + fra.me.nitni_local_ref_head = NULL; fra.me.REG[0] = NIT_NULL; fra.me.REG[1] = NIT_NULL; fra.me.REG[0] = p0; REGB0 = p1; - /* ./../lib/standard//string_search.nit:127 */ + /* ../lib/standard/string_search.nit:126 */ REGB1 = TAG_Bool(ATTR_standard___string_search___BM_Pattern____bc_table(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { - nit_abort("Uninitialized attribute %s", "_bc_table", LOCATE_standard___string_search, 127); + nit_abort("Uninitialized attribute %s", "_bc_table", LOCATE_standard___string_search, 126); } fra.me.REG[1] = ATTR_standard___string_search___BM_Pattern____bc_table(fra.me.REG[0]); REGB1 = CALL_standard___collection___abstract_collection___MapRead___has_key(fra.me.REG[1])(fra.me.REG[1], REGB0); if (UNTAG_Bool(REGB1)) { - /* ./../lib/standard//string_search.nit:128 */ + /* ../lib/standard/string_search.nit:127 */ REGB1 = TAG_Bool(ATTR_standard___string_search___BM_Pattern____bc_table(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { - nit_abort("Uninitialized attribute %s", "_bc_table", LOCATE_standard___string_search, 128); + nit_abort("Uninitialized attribute %s", "_bc_table", LOCATE_standard___string_search, 127); } fra.me.REG[1] = ATTR_standard___string_search___BM_Pattern____bc_table(fra.me.REG[0]); fra.me.REG[1] = CALL_standard___collection___abstract_collection___MapRead_____bra(fra.me.REG[1])(fra.me.REG[1], REGB0); REGB0 = fra.me.REG[1]; goto label1; } else { - /* ./../lib/standard//string_search.nit:130 */ + /* ../lib/standard/string_search.nit:129 */ REGB1 = TAG_Bool(ATTR_standard___string_search___BM_Pattern____length(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { - nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 130); + nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 129); } REGB1 = ATTR_standard___string_search___BM_Pattern____length(fra.me.REG[0]); REGB0 = REGB1; @@ -583,6 +601,7 @@ val_t standard___string_search___BM_Pattern___bc(val_t p0, val_t p1){ stack_frame_head = fra.me.prev; return REGB0; } +static const char LOCATE_standard___string_search___BM_Pattern___compute_bc[] = "string_search::BM_Pattern::compute_bc"; void standard___string_search___BM_Pattern___compute_bc(val_t p0){ struct {struct stack_frame_t me; val_t MORE_REG[2];} fra; val_t REGB0; @@ -593,68 +612,69 @@ void standard___string_search___BM_Pattern___compute_bc(val_t p0){ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 140; + fra.me.line = 139; fra.me.meth = LOCATE_standard___string_search___BM_Pattern___compute_bc; fra.me.has_broke = 0; fra.me.REG_size = 3; + fra.me.nitni_local_ref_head = NULL; fra.me.REG[0] = NIT_NULL; fra.me.REG[1] = NIT_NULL; fra.me.REG[2] = NIT_NULL; fra.me.REG[0] = p0; - /* ./../lib/standard//string_search.nit:142 */ + /* ../lib/standard/string_search.nit:141 */ REGB0 = TAG_Bool(ATTR_standard___string_search___BM_Pattern____motif(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_motif", LOCATE_standard___string_search, 142); + nit_abort("Uninitialized attribute %s", "_motif", LOCATE_standard___string_search, 141); } fra.me.REG[1] = ATTR_standard___string_search___BM_Pattern____motif(fra.me.REG[0]); - /* ./../lib/standard//string_search.nit:143 */ + /* ../lib/standard/string_search.nit:142 */ REGB0 = TAG_Bool(ATTR_standard___string_search___BM_Pattern____length(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 143); + nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 142); } REGB0 = ATTR_standard___string_search___BM_Pattern____length(fra.me.REG[0]); - /* ./../lib/standard//string_search.nit:144 */ + /* ../lib/standard/string_search.nit:143 */ REGB1 = TAG_Int(0); - /* ./../lib/standard//string_search.nit:145 */ + /* ../lib/standard/string_search.nit:144 */ while(1) { REGB2 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB2 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB2)); REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/; if (UNTAG_Bool(REGB3)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB2 = TAG_Bool(UNTAG_Int(REGB1)=UNTAG_Int(REGB4)); - /* ./../lib/standard//string_search.nit:160 */ + /* ../lib/standard/string_search.nit:159 */ if (UNTAG_Bool(REGB4)) { REGB4 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB3), VTID_standard___kernel___Comparable___OTHER(REGB3))) /*cast OTHER*/; if (UNTAG_Bool(REGB4)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:234 */ + /* ../lib/standard/kernel.nit:237 */ REGB4 = TAG_Bool(UNTAG_Int(REGB3)>UNTAG_Int(REGB2)); - /* ./../lib/standard//string_search.nit:161 */ + /* ../lib/standard/string_search.nit:160 */ if (UNTAG_Bool(REGB4)) { - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB4 = TAG_Int(UNTAG_Int(REGB3)+UNTAG_Int(REGB0)); - /* ./../lib/standard//string_search.nit:161 */ + /* ../lib/standard/string_search.nit:160 */ REGB5 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB5 = TAG_Int(UNTAG_Int(REGB4)-UNTAG_Int(REGB5)); REGB5 = TAG_Int(UNTAG_Int(REGB5)-UNTAG_Int(REGB1)); - /* ./../lib/standard//collection//array.nit:278 */ + /* ../lib/standard/collection/array.nit:278 */ fra.me.REG[2] = fra.me.REG[0]; - /* ./../lib/standard//collection//array.nit:280 */ + /* ../lib/standard/collection/array.nit:280 */ REGB4 = TAG_Int(0); REGB6 = TAG_Bool(VAL_ISA(REGB4, VTCOLOR_standard___kernel___Comparable___OTHER(REGB5), VTID_standard___kernel___Comparable___OTHER(REGB5))) /*cast OTHER*/; if (UNTAG_Bool(REGB6)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:233 */ + /* ../lib/standard/kernel.nit:236 */ REGB4 = TAG_Bool(UNTAG_Int(REGB5)>=UNTAG_Int(REGB4)); - /* ./../lib/standard//collection//array.nit:280 */ + /* ../lib/standard/collection/array.nit:280 */ if (UNTAG_Bool(REGB4)) { REGB4 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL); if (UNTAG_Bool(REGB4)) { @@ -760,67 +782,67 @@ val_t standard___string_search___BM_Pattern___suffixes(val_t p0){ } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB4 = TAG_Bool(UNTAG_Int(REGB5)val[UNTAG_Int(REGB5)]; - /* ./../lib/standard//collection//array.nit:281 */ + /* ../lib/standard/collection/array.nit:281 */ goto label1; label1: while(0); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB5 = TAG_Int(UNTAG_Int(REGB3)-UNTAG_Int(REGB2)); - /* ./../lib/standard//string_search.nit:161 */ + /* ../lib/standard/string_search.nit:160 */ REGB4 = TAG_Bool(fra.me.REG[2]==NIT_NULL); if (UNTAG_Bool(REGB4)) { - nit_abort("Reciever is null", NULL, LOCATE_standard___string_search, 161); + nit_abort("Reciever is null", NULL, LOCATE_standard___string_search, 160); } REGB4 = TAG_Bool(VAL_ISA(REGB5, VTCOLOR_standard___kernel___Comparable___OTHER(fra.me.REG[2]), VTID_standard___kernel___Comparable___OTHER(fra.me.REG[2]))) /*cast OTHER*/; if (UNTAG_Bool(REGB4)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB5 = TAG_Bool(UNTAG_Int(fra.me.REG[2])=UNTAG_Int(REGB5)); - /* ./../lib/standard//collection//array.nit:280 */ + /* ../lib/standard/collection/array.nit:280 */ if (UNTAG_Bool(REGB5)) { REGB5 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL); if (UNTAG_Bool(REGB5)) { @@ -833,29 +855,29 @@ val_t standard___string_search___BM_Pattern___suffixes(val_t p0){ } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB5 = TAG_Bool(UNTAG_Int(REGB4)val[UNTAG_Int(REGB4)]; - /* ./../lib/standard//collection//array.nit:281 */ + /* ../lib/standard/collection/array.nit:281 */ goto label2; label2: while(0); - /* ./../lib/standard//string_search.nit:162 */ + /* ../lib/standard/string_search.nit:161 */ CALL_standard___collection___abstract_collection___Sequence_____braeq(fra.me.REG[0])(fra.me.REG[0], REGB3, fra.me.REG[2]); } else { REGB4 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB3), VTID_standard___kernel___Comparable___OTHER(REGB3))) /*cast OTHER*/; @@ -863,15 +885,15 @@ val_t standard___string_search___BM_Pattern___suffixes(val_t p0){ } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB4 = TAG_Bool(UNTAG_Int(REGB3)=UNTAG_Int(REGB4)); - /* ./../lib/standard//string_search.nit:166 */ + /* ../lib/standard/string_search.nit:165 */ if (UNTAG_Bool(REGB4)) { REGB4 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[1])(fra.me.REG[1], REGB2); - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB5 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB0)); - /* ./../lib/standard//string_search.nit:166 */ + /* ../lib/standard/string_search.nit:165 */ REGB6 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB6 = TAG_Int(UNTAG_Int(REGB5)-UNTAG_Int(REGB6)); REGB6 = TAG_Int(UNTAG_Int(REGB6)-UNTAG_Int(REGB1)); - /* ./../lib/standard//string_search.nit:166 */ + /* ../lib/standard/string_search.nit:165 */ REGB6 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[1])(fra.me.REG[1], REGB6); REGB5 = TAG_Bool(IS_EQUAL_OO(REGB4,REGB6)); if (UNTAG_Bool(REGB5)) { } else { - /* ./../lib/standard//kernel.nit:378 */ + /* ../lib/standard/kernel.nit:381 */ REGB6 = TAG_Bool((REGB4)==(REGB6)); - /* ./../lib/standard//string_search.nit:166 */ + /* ../lib/standard/string_search.nit:165 */ REGB5 = REGB6; } } else { - REGB6 = TAG_Bool(false); + REGB6 = TAG_Bool(0); REGB5 = REGB6; } if (UNTAG_Bool(REGB5)) { REGB5 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB5 = TAG_Int(UNTAG_Int(REGB2)-UNTAG_Int(REGB5)); - /* ./../lib/standard//string_search.nit:166 */ + /* ../lib/standard/string_search.nit:165 */ REGB2 = REGB5; } else { goto label3; } } label3: while(0); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB5 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB2)); - /* ./../lib/standard//string_search.nit:167 */ + /* ../lib/standard/string_search.nit:166 */ CALL_standard___collection___abstract_collection___Sequence_____braeq(fra.me.REG[0])(fra.me.REG[0], REGB3, REGB5); } - /* ./../lib/standard//string_search.nit:169 */ + /* ../lib/standard/string_search.nit:168 */ REGB5 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB5 = TAG_Int(UNTAG_Int(REGB3)-UNTAG_Int(REGB5)); - /* ./../lib/standard//string_search.nit:169 */ + /* ../lib/standard/string_search.nit:168 */ REGB3 = REGB5; } else { - /* ./../lib/standard//string_search.nit:160 */ + /* ../lib/standard/string_search.nit:159 */ goto label4; } } label4: while(0); - /* ./../lib/standard//string_search.nit:171 */ + /* ../lib/standard/string_search.nit:170 */ goto label5; label5: while(0); stack_frame_head = fra.me.prev; return fra.me.REG[0]; } +static const char LOCATE_standard___string_search___BM_Pattern___compute_gs[] = "string_search::BM_Pattern::compute_gs"; void standard___string_search___BM_Pattern___compute_gs(val_t p0){ struct {struct stack_frame_t me; val_t MORE_REG[3];} fra; val_t REGB0; @@ -951,115 +974,116 @@ void standard___string_search___BM_Pattern___compute_gs(val_t p0){ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 174; + fra.me.line = 173; fra.me.meth = LOCATE_standard___string_search___BM_Pattern___compute_gs; 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; - /* ./../lib/standard//string_search.nit:176 */ + /* ../lib/standard/string_search.nit:175 */ REGB0 = TAG_Bool(ATTR_standard___string_search___BM_Pattern____motif(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_motif", LOCATE_standard___string_search, 176); + nit_abort("Uninitialized attribute %s", "_motif", LOCATE_standard___string_search, 175); } fra.me.REG[1] = ATTR_standard___string_search___BM_Pattern____motif(fra.me.REG[0]); - /* ./../lib/standard//string_search.nit:177 */ + /* ../lib/standard/string_search.nit:176 */ REGB0 = TAG_Bool(ATTR_standard___string_search___BM_Pattern____length(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 177); + nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 176); } REGB0 = ATTR_standard___string_search___BM_Pattern____length(fra.me.REG[0]); - /* ./../lib/standard//string_search.nit:178 */ + /* ../lib/standard/string_search.nit:177 */ fra.me.REG[1] = CALL_standard___string_search___BM_Pattern___suffixes(fra.me.REG[0])(fra.me.REG[0]); - /* ./../lib/standard//string_search.nit:179 */ + /* ../lib/standard/string_search.nit:178 */ REGB1 = TAG_Int(0); - /* ./../lib/standard//string_search.nit:180 */ + /* ../lib/standard/string_search.nit:179 */ while(1) { 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:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB2 = TAG_Bool(UNTAG_Int(REGB1)=UNTAG_Int(REGB3)); - /* ./../lib/standard//string_search.nit:186 */ + /* ../lib/standard/string_search.nit:185 */ if (UNTAG_Bool(REGB3)) { - /* ./../lib/standard//string_search.nit:187 */ + /* ../lib/standard/string_search.nit:186 */ REGB3 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:236 */ + /* ../lib/standard/kernel.nit:239 */ REGB3 = TAG_Int(-UNTAG_Int(REGB3)); - /* ./../lib/standard//string_search.nit:187 */ + /* ../lib/standard/string_search.nit:186 */ REGB4 = TAG_Bool(IS_EQUAL_OO(REGB1,REGB3)); if (UNTAG_Bool(REGB4)) { } else { - /* ./../lib/standard//kernel.nit:227 */ + /* ../lib/standard/kernel.nit:230 */ REGB3 = TAG_Bool((REGB1)==(REGB3)); - /* ./../lib/standard//string_search.nit:187 */ + /* ../lib/standard/string_search.nit:186 */ REGB4 = REGB3; } if (UNTAG_Bool(REGB4)) { - REGB4 = TAG_Bool(true); + REGB4 = TAG_Bool(1); } else { - /* ./../lib/standard//collection//array.nit:278 */ + /* ../lib/standard/collection/array.nit:278 */ fra.me.REG[2] = fra.me.REG[1]; REGB3 = REGB1; - /* ./../lib/standard//collection//array.nit:280 */ + /* ../lib/standard/collection/array.nit:280 */ REGB5 = TAG_Int(0); REGB6 = TAG_Bool(VAL_ISA(REGB5, VTCOLOR_standard___kernel___Comparable___OTHER(REGB3), VTID_standard___kernel___Comparable___OTHER(REGB3))) /*cast OTHER*/; if (UNTAG_Bool(REGB6)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:233 */ + /* ../lib/standard/kernel.nit:236 */ REGB5 = TAG_Bool(UNTAG_Int(REGB3)>=UNTAG_Int(REGB5)); - /* ./../lib/standard//collection//array.nit:280 */ + /* ../lib/standard/collection/array.nit:280 */ if (UNTAG_Bool(REGB5)) { REGB5 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL); if (UNTAG_Bool(REGB5)) { @@ -1072,54 +1096,54 @@ void standard___string_search___BM_Pattern___compute_gs(val_t p0){ } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB5 = TAG_Bool(UNTAG_Int(REGB3)val[UNTAG_Int(REGB3)]; - /* ./../lib/standard//collection//array.nit:281 */ + /* ../lib/standard/collection/array.nit:281 */ goto label2; label2: while(0); - /* ./../lib/standard//string_search.nit:187 */ + /* ../lib/standard/string_search.nit:186 */ REGB3 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB3 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB3)); - /* ./../lib/standard//string_search.nit:187 */ + /* ../lib/standard/string_search.nit:186 */ REGB5 = TAG_Bool(IS_EQUAL_ON(REGB3,fra.me.REG[2])); if (UNTAG_Bool(REGB5)) { } else { REGB6 = TAG_Bool(fra.me.REG[2]==NIT_NULL); if (UNTAG_Bool(REGB6)) { - REGB6 = TAG_Bool(false); + REGB6 = TAG_Bool(0); REGB5 = REGB6; } else { - /* ./../lib/standard//kernel.nit:227 */ + /* ../lib/standard/kernel.nit:230 */ REGB3 = TAG_Bool((fra.me.REG[2])==(REGB3)); - /* ./../lib/standard//string_search.nit:187 */ + /* ../lib/standard/string_search.nit:186 */ REGB5 = REGB3; } } REGB4 = REGB5; } if (UNTAG_Bool(REGB4)) { - /* ./../lib/standard//string_search.nit:188 */ + /* ../lib/standard/string_search.nit:187 */ while(1) { REGB4 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB4 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB4)); REGB4 = TAG_Int(UNTAG_Int(REGB4)-UNTAG_Int(REGB1)); REGB5 = TAG_Bool(VAL_ISA(REGB4, VTCOLOR_standard___kernel___Comparable___OTHER(REGB2), VTID_standard___kernel___Comparable___OTHER(REGB2))) /*cast OTHER*/; @@ -1127,29 +1151,29 @@ void standard___string_search___BM_Pattern___compute_gs(val_t p0){ } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB4 = TAG_Bool(UNTAG_Int(REGB2)=UNTAG_Int(REGB5)); - /* ./../lib/standard//collection//array.nit:280 */ + /* ../lib/standard/collection/array.nit:280 */ if (UNTAG_Bool(REGB5)) { REGB5 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL); if (UNTAG_Bool(REGB5)) { @@ -1162,40 +1186,40 @@ void standard___string_search___BM_Pattern___compute_gs(val_t p0){ } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB5 = TAG_Bool(UNTAG_Int(REGB4)val[UNTAG_Int(REGB4)]; - /* ./../lib/standard//collection//array.nit:281 */ + /* ../lib/standard/collection/array.nit:281 */ goto label3; label3: while(0); - /* ./../lib/standard//string_search.nit:189 */ + /* ../lib/standard/string_search.nit:188 */ REGB4 = TAG_Bool(IS_EQUAL_ON(REGB0,fra.me.REG[2])); if (UNTAG_Bool(REGB4)) { } else { REGB5 = TAG_Bool(fra.me.REG[2]==NIT_NULL); if (UNTAG_Bool(REGB5)) { - REGB5 = TAG_Bool(false); + REGB5 = TAG_Bool(0); REGB4 = REGB5; } else { - /* ./../lib/standard//kernel.nit:227 */ + /* ../lib/standard/kernel.nit:230 */ REGB5 = TAG_Bool((fra.me.REG[2])==(REGB0)); - /* ./../lib/standard//string_search.nit:189 */ + /* ../lib/standard/string_search.nit:188 */ REGB4 = REGB5; } } @@ -1203,81 +1227,81 @@ void standard___string_search___BM_Pattern___compute_gs(val_t p0){ REGB4 = TAG_Bool(ATTR_standard___string_search___BM_Pattern____gs(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB4)) { } else { - nit_abort("Uninitialized attribute %s", "_gs", LOCATE_standard___string_search, 189); + nit_abort("Uninitialized attribute %s", "_gs", LOCATE_standard___string_search, 188); } fra.me.REG[2] = ATTR_standard___string_search___BM_Pattern____gs(fra.me.REG[0]); REGB4 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB4 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB4)); REGB4 = TAG_Int(UNTAG_Int(REGB4)-UNTAG_Int(REGB1)); - /* ./../lib/standard//string_search.nit:189 */ + /* ../lib/standard/string_search.nit:188 */ CALL_standard___collection___abstract_collection___Sequence_____braeq(fra.me.REG[2])(fra.me.REG[2], REGB2, REGB4); } - /* ./../lib/standard//string_search.nit:190 */ + /* ../lib/standard/string_search.nit:189 */ REGB4 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB4 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB4)); - /* ./../lib/standard//string_search.nit:190 */ + /* ../lib/standard/string_search.nit:189 */ REGB2 = REGB4; } else { - /* ./../lib/standard//string_search.nit:188 */ + /* ../lib/standard/string_search.nit:187 */ goto label4; } } label4: while(0); } - /* ./../lib/standard//string_search.nit:193 */ + /* ../lib/standard/string_search.nit:192 */ REGB4 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB4 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB4)); - /* ./../lib/standard//string_search.nit:193 */ + /* ../lib/standard/string_search.nit:192 */ REGB1 = REGB4; } else { - /* ./../lib/standard//string_search.nit:186 */ + /* ../lib/standard/string_search.nit:185 */ goto label5; } } label5: while(0); - /* ./../lib/standard//string_search.nit:195 */ + /* ../lib/standard/string_search.nit:194 */ REGB2 = TAG_Int(0); REGB1 = REGB2; - /* ./../lib/standard//string_search.nit:196 */ + /* ../lib/standard/string_search.nit:195 */ while(1) { REGB2 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB2 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB2)); REGB4 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/; if (UNTAG_Bool(REGB4)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB2 = TAG_Bool(UNTAG_Int(REGB1)=UNTAG_Int(REGB5)); - /* ./../lib/standard//collection//array.nit:280 */ + /* ../lib/standard/collection/array.nit:280 */ if (UNTAG_Bool(REGB5)) { REGB5 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[3])!=NIT_NULL); if (UNTAG_Bool(REGB5)) { @@ -1290,45 +1314,45 @@ void standard___string_search___BM_Pattern___compute_gs(val_t p0){ } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB5 = TAG_Bool(UNTAG_Int(REGB4)val[UNTAG_Int(REGB4)]; - /* ./../lib/standard//collection//array.nit:281 */ + /* ../lib/standard/collection/array.nit:281 */ goto label6; label6: while(0); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB2 = TAG_Int(UNTAG_Int(REGB2)-UNTAG_Int(fra.me.REG[3])); - /* ./../lib/standard//string_search.nit:197 */ + /* ../lib/standard/string_search.nit:196 */ REGB4 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB4 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB4)); REGB4 = TAG_Int(UNTAG_Int(REGB4)-UNTAG_Int(REGB1)); - /* ./../lib/standard//string_search.nit:197 */ + /* ../lib/standard/string_search.nit:196 */ CALL_standard___collection___abstract_collection___Sequence_____braeq(fra.me.REG[2])(fra.me.REG[2], REGB2, REGB4); - /* ./../lib/standard//string_search.nit:198 */ + /* ../lib/standard/string_search.nit:197 */ REGB4 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB4 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB4)); - /* ./../lib/standard//string_search.nit:198 */ + /* ../lib/standard/string_search.nit:197 */ REGB1 = REGB4; } else { - /* ./../lib/standard//string_search.nit:196 */ + /* ../lib/standard/string_search.nit:195 */ goto label7; } } @@ -1336,72 +1360,79 @@ void standard___string_search___BM_Pattern___compute_gs(val_t p0){ stack_frame_head = fra.me.prev; return; } +static const char LOCATE_standard___string_search___Match___string[] = "string_search::Match::string"; val_t standard___string_search___Match___string(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___string_search; - fra.me.line = 205; + fra.me.line = 204; fra.me.meth = LOCATE_standard___string_search___Match___string; 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//string_search.nit:205 */ + /* ../lib/standard/string_search.nit:204 */ REGB0 = TAG_Bool(ATTR_standard___string_search___Match____string(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_string", LOCATE_standard___string_search, 205); + nit_abort("Uninitialized attribute %s", "_string", LOCATE_standard___string_search, 204); } fra.me.REG[0] = ATTR_standard___string_search___Match____string(fra.me.REG[0]); stack_frame_head = fra.me.prev; return fra.me.REG[0]; } +static const char LOCATE_standard___string_search___Match___from[] = "string_search::Match::from"; val_t standard___string_search___Match___from(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___string_search; - fra.me.line = 208; + fra.me.line = 207; fra.me.meth = LOCATE_standard___string_search___Match___from; 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//string_search.nit:208 */ + /* ../lib/standard/string_search.nit:207 */ REGB0 = TAG_Bool(ATTR_standard___string_search___Match____from(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_from", LOCATE_standard___string_search, 208); + nit_abort("Uninitialized attribute %s", "_from", LOCATE_standard___string_search, 207); } REGB0 = ATTR_standard___string_search___Match____from(fra.me.REG[0]); stack_frame_head = fra.me.prev; return REGB0; } +static const char LOCATE_standard___string_search___Match___length[] = "string_search::Match::length"; val_t standard___string_search___Match___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___string_search; - fra.me.line = 211; + fra.me.line = 210; fra.me.meth = LOCATE_standard___string_search___Match___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//string_search.nit:211 */ + /* ../lib/standard/string_search.nit:210 */ REGB0 = TAG_Bool(ATTR_standard___string_search___Match____length(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 211); + nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 210); } REGB0 = ATTR_standard___string_search___Match____length(fra.me.REG[0]); stack_frame_head = fra.me.prev; return REGB0; } +static const char LOCATE_standard___string_search___Match___after[] = "string_search::Match::after"; val_t standard___string_search___Match___after(val_t p0){ struct {struct stack_frame_t me;} fra; val_t REGB0; @@ -1409,33 +1440,35 @@ val_t standard___string_search___Match___after(val_t p0){ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 214; + fra.me.line = 213; fra.me.meth = LOCATE_standard___string_search___Match___after; 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//string_search.nit:216 */ + /* ../lib/standard/string_search.nit:215 */ REGB0 = TAG_Bool(ATTR_standard___string_search___Match____from(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_from", LOCATE_standard___string_search, 216); + nit_abort("Uninitialized attribute %s", "_from", LOCATE_standard___string_search, 215); } REGB0 = ATTR_standard___string_search___Match____from(fra.me.REG[0]); REGB1 = TAG_Bool(ATTR_standard___string_search___Match____length(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { - nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 216); + nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 215); } REGB1 = ATTR_standard___string_search___Match____length(fra.me.REG[0]); - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1)); - /* ./../lib/standard//string_search.nit:216 */ + /* ../lib/standard/string_search.nit:215 */ goto label1; label1: while(0); stack_frame_head = fra.me.prev; return REGB1; } +static const char LOCATE_standard___string_search___Match___to_s[] = "string_search::Match::(string::Object::to_s)"; val_t standard___string_search___Match___to_s(val_t p0){ struct {struct stack_frame_t me; val_t MORE_REG[1];} fra; val_t REGB0; @@ -1443,30 +1476,31 @@ val_t standard___string_search___Match___to_s(val_t p0){ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 218; + fra.me.line = 217; fra.me.meth = LOCATE_standard___string_search___Match___to_s; 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//string_search.nit:219 */ + /* ../lib/standard/string_search.nit:218 */ REGB0 = TAG_Bool(ATTR_standard___string_search___Match____string(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_string", LOCATE_standard___string_search, 219); + nit_abort("Uninitialized attribute %s", "_string", LOCATE_standard___string_search, 218); } fra.me.REG[1] = ATTR_standard___string_search___Match____string(fra.me.REG[0]); REGB0 = TAG_Bool(ATTR_standard___string_search___Match____from(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB0)) { } else { - nit_abort("Uninitialized attribute %s", "_from", LOCATE_standard___string_search, 219); + nit_abort("Uninitialized attribute %s", "_from", LOCATE_standard___string_search, 218); } REGB0 = ATTR_standard___string_search___Match____from(fra.me.REG[0]); REGB1 = TAG_Bool(ATTR_standard___string_search___Match____length(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { - nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 219); + nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string_search, 218); } REGB1 = ATTR_standard___string_search___Match____length(fra.me.REG[0]); fra.me.REG[1] = CALL_standard___string___AbstractString___substring(fra.me.REG[1])(fra.me.REG[1], REGB0, REGB1); @@ -1475,6 +1509,7 @@ val_t standard___string_search___Match___to_s(val_t p0){ stack_frame_head = fra.me.prev; return fra.me.REG[1]; } +static const char LOCATE_standard___string_search___Match___init[] = "string_search::Match::init"; void standard___string_search___Match___init(val_t p0, val_t p1, val_t p2, val_t p3, int* init_table){ int itpos1 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___string_search___Match].i; struct {struct stack_frame_t me; val_t MORE_REG[1];} fra; @@ -1487,47 +1522,48 @@ void standard___string_search___Match___init(val_t p0, val_t p1, val_t p2, val_t if (init_table[itpos1]) return; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 221; + fra.me.line = 220; fra.me.meth = LOCATE_standard___string_search___Match___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; REGB0 = p2; REGB1 = p3; - /* ./../lib/standard//string_search.nit:224 */ + /* ../lib/standard/string_search.nit:223 */ REGB2 = TAG_Int(0); REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/; if (UNTAG_Bool(REGB3)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:233 */ + /* ../lib/standard/kernel.nit:236 */ REGB2 = TAG_Bool(UNTAG_Int(REGB1)>=UNTAG_Int(REGB2)); - /* ./../lib/standard//string_search.nit:224 */ + /* ../lib/standard/string_search.nit:223 */ if (UNTAG_Bool(REGB2)) { } else { - nit_abort("Assert %s failed", "'positive_length'", LOCATE_standard___string_search, 224); + nit_abort("Assert '%s' failed", "positive_length", LOCATE_standard___string_search, 223); } - /* ./../lib/standard//string_search.nit:225 */ + /* ../lib/standard/string_search.nit:224 */ REGB2 = TAG_Int(0); REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/; if (UNTAG_Bool(REGB3)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:233 */ + /* ../lib/standard/kernel.nit:236 */ REGB2 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB2)); - /* ./../lib/standard//string_search.nit:225 */ + /* ../lib/standard/string_search.nit:224 */ if (UNTAG_Bool(REGB2)) { } else { - nit_abort("Assert %s failed", "'valid_from'", LOCATE_standard___string_search, 225); + nit_abort("Assert '%s' failed", "valid_from", LOCATE_standard___string_search, 224); } - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB2 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1)); - /* ./../lib/standard//collection//array.nit:24 */ + /* ../lib/standard/collection/array.nit:24 */ REGB3 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL); if (UNTAG_Bool(REGB3)) { } else { @@ -1539,23 +1575,24 @@ void standard___string_search___Match___init(val_t p0, val_t p1, val_t p2, val_t } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:231 */ + /* ../lib/standard/kernel.nit:234 */ REGB3 = TAG_Bool(UNTAG_Int(REGB2)<=UNTAG_Int(REGB3)); - /* ./../lib/standard//string_search.nit:226 */ + /* ../lib/standard/string_search.nit:225 */ if (UNTAG_Bool(REGB3)) { } else { - nit_abort("Assert %s failed", "'valid_after'", LOCATE_standard___string_search, 226); + nit_abort("Assert '%s' failed", "valid_after", LOCATE_standard___string_search, 225); } - /* ./../lib/standard//string_search.nit:227 */ + /* ../lib/standard/string_search.nit:226 */ ATTR_standard___string_search___Match____string(fra.me.REG[0]) = fra.me.REG[1]; - /* ./../lib/standard//string_search.nit:228 */ + /* ../lib/standard/string_search.nit:227 */ ATTR_standard___string_search___Match____from(fra.me.REG[0]) = REGB0; - /* ./../lib/standard//string_search.nit:229 */ + /* ../lib/standard/string_search.nit:228 */ ATTR_standard___string_search___Match____length(fra.me.REG[0]) = REGB1; stack_frame_head = fra.me.prev; init_table[itpos1] = 1; return; } +static const char LOCATE_standard___string_search___Char___search_index_in[] = "string_search::Char::(string_search::Pattern::search_index_in)"; val_t standard___string_search___Char___search_index_in(val_t p0, val_t p1, val_t p2){ struct {struct stack_frame_t me;} fra; val_t REGB0; @@ -1566,69 +1603,71 @@ val_t standard___string_search___Char___search_index_in(val_t p0, val_t p1, val_ val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 236; + fra.me.line = 235; fra.me.meth = LOCATE_standard___string_search___Char___search_index_in; fra.me.has_broke = 0; fra.me.REG_size = 1; + fra.me.nitni_local_ref_head = NULL; fra.me.REG[0] = NIT_NULL; REGB0 = p0; fra.me.REG[0] = p1; REGB1 = p2; - /* ./../lib/standard//collection//array.nit:24 */ + /* ../lib/standard/collection/array.nit:24 */ REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0])!=NIT_NULL); if (UNTAG_Bool(REGB2)) { } else { nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24); } REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]); - /* ./../lib/standard//string_search.nit:239 */ + /* ../lib/standard/string_search.nit:238 */ while(1) { REGB3 = TAG_Bool(VAL_ISA(REGB2, VTCOLOR_standard___kernel___Comparable___OTHER(REGB1), VTID_standard___kernel___Comparable___OTHER(REGB1))) /*cast OTHER*/; if (UNTAG_Bool(REGB3)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB3 = TAG_Bool(UNTAG_Int(REGB1)=UNTAG_Int(REGB1)); - /* ./../lib/standard//string_search.nit:262 */ + /* ../lib/standard/string_search.nit:261 */ if (UNTAG_Bool(REGB1)) { } else { - nit_abort("Assert failed", NULL, LOCATE_standard___string_search, 262); + nit_abort("Assert failed", NULL, LOCATE_standard___string_search, 261); } - /* ./../lib/standard//collection//array.nit:24 */ + /* ../lib/standard/collection/array.nit:24 */ REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL); if (UNTAG_Bool(REGB1)) { } else { @@ -1720,35 +1762,35 @@ val_t standard___string_search___String___search_index_in(val_t p0, val_t p1, va nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24); } REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB2 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB2)); - /* ./../lib/standard//string_search.nit:263 */ + /* ../lib/standard/string_search.nit:262 */ REGB1 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB1 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB1)); - /* ./../lib/standard//string_search.nit:264 */ + /* ../lib/standard/string_search.nit:263 */ while(1) { REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/; if (UNTAG_Bool(REGB2)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB2 = TAG_Bool(UNTAG_Int(REGB0)=UNTAG_Int(REGB2)); - /* ./../lib/standard//string_search.nit:266 */ + /* ../lib/standard/string_search.nit:265 */ if (UNTAG_Bool(REGB2)) { REGB2 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[0])(fra.me.REG[0], REGB3); - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB4 = TAG_Int(UNTAG_Int(REGB3)+UNTAG_Int(REGB0)); - /* ./../lib/standard//string_search.nit:266 */ + /* ../lib/standard/string_search.nit:265 */ REGB4 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[1])(fra.me.REG[1], REGB4); REGB5 = TAG_Bool(IS_EQUAL_OO(REGB2,REGB4)); if (UNTAG_Bool(REGB5)) { } else { - /* ./../lib/standard//kernel.nit:378 */ + /* ../lib/standard/kernel.nit:381 */ REGB4 = TAG_Bool((REGB2)==(REGB4)); - /* ./../lib/standard//string_search.nit:266 */ + /* ../lib/standard/string_search.nit:265 */ REGB5 = REGB4; } } else { - REGB4 = TAG_Bool(false); + REGB4 = TAG_Bool(0); REGB5 = REGB4; } if (UNTAG_Bool(REGB5)) { REGB5 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:237 */ + /* ../lib/standard/kernel.nit:240 */ REGB5 = TAG_Int(UNTAG_Int(REGB3)-UNTAG_Int(REGB5)); - /* ./../lib/standard//string_search.nit:266 */ + /* ../lib/standard/string_search.nit:265 */ REGB3 = REGB5; } else { goto label1; } } label1: while(0); - /* ./../lib/standard//string_search.nit:268 */ + /* ../lib/standard/string_search.nit:267 */ REGB5 = TAG_Int(0); REGB4 = TAG_Bool(VAL_ISA(REGB5, VTCOLOR_standard___kernel___Comparable___OTHER(REGB3), VTID_standard___kernel___Comparable___OTHER(REGB3))) /*cast OTHER*/; if (UNTAG_Bool(REGB4)) { } else { nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0); } - /* ./../lib/standard//kernel.nit:232 */ + /* ../lib/standard/kernel.nit:235 */ REGB5 = TAG_Bool(UNTAG_Int(REGB3)val[UNTAG_Int(REGB0)]; - /* ./../lib/standard//string_search.nit:308 */ + /* ../lib/standard/string_search.nit:307 */ fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]); CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[3]); - /* ./../lib/standard//collection//array.nit:274 */ + /* ../lib/standard/collection/array.nit:274 */ REGB1 = TAG_Int(1); - /* ./../lib/standard//kernel.nit:235 */ + /* ../lib/standard/kernel.nit:238 */ REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1)); - /* ./../lib/standard//collection//array.nit:274 */ + /* ../lib/standard/collection/array.nit:274 */ REGB0 = REGB1; } else { - /* ./../lib/standard//collection//array.nit:272 */ + /* ../lib/standard/collection/array.nit:272 */ goto label1; } } label1: while(0); - /* ./../lib/standard//string_search.nit:309 */ + /* ../lib/standard/string_search.nit:308 */ goto label2; label2: while(0); stack_frame_head = fra.me.prev; return fra.me.REG[1]; } +static const char LOCATE_standard___string_search___String___split[] = "string_search::String::split"; val_t standard___string_search___String___split(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___string_search; - fra.me.line = 312; + fra.me.line = 311; fra.me.meth = LOCATE_standard___string_search___String___split; 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//string_search.nit:314 */ + /* ../lib/standard/string_search.nit:313 */ REGB0 = TAG_Char('\n'); fra.me.REG[0] = CALL_standard___string_search___String___split_with(fra.me.REG[0])(fra.me.REG[0], REGB0); goto label1; @@ -2046,22 +2100,24 @@ val_t standard___string_search___String___split(val_t p0){ stack_frame_head = fra.me.prev; return fra.me.REG[0]; } +static const char LOCATE_standard___string_search___String___replace[] = "string_search::String::replace"; val_t standard___string_search___String___replace(val_t p0, val_t p1, val_t p2){ struct {struct stack_frame_t me; val_t MORE_REG[2];} fra; val_t tmp; fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 316; + fra.me.line = 315; fra.me.meth = LOCATE_standard___string_search___String___replace; fra.me.has_broke = 0; fra.me.REG_size = 3; + fra.me.nitni_local_ref_head = NULL; fra.me.REG[0] = NIT_NULL; fra.me.REG[1] = NIT_NULL; fra.me.REG[2] = NIT_NULL; fra.me.REG[0] = p0; fra.me.REG[1] = p1; fra.me.REG[2] = p2; - /* ./../lib/standard//string_search.nit:322 */ + /* ../lib/standard/string_search.nit:321 */ fra.me.REG[1] = CALL_standard___string_search___String___split_with(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]); fra.me.REG[2] = CALL_standard___string___Collection___join(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]); goto label1; @@ -2069,6 +2125,7 @@ val_t standard___string_search___String___replace(val_t p0, val_t p1, val_t p2){ stack_frame_head = fra.me.prev; return fra.me.REG[2]; } +static const char LOCATE_standard___string_search___String___html_escape[] = "string_search::String::html_escape"; val_t standard___string_search___String___html_escape(val_t p0){ struct {struct stack_frame_t me; val_t MORE_REG[1];} fra; val_t REGB0; @@ -2080,14 +2137,15 @@ val_t standard___string_search___String___html_escape(val_t p0){ static val_t once_value_4; /* Once value */ fra.me.prev = stack_frame_head; stack_frame_head = &fra.me; fra.me.file = LOCATE_standard___string_search; - fra.me.line = 325; + fra.me.line = 324; fra.me.meth = LOCATE_standard___string_search___String___html_escape; 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//string_search.nit:331 */ + /* ../lib/standard/string_search.nit:330 */ REGB0 = TAG_Char('&'); REGB0 = CALL_standard___collection___abstract_collection___Collection___has(fra.me.REG[0])(fra.me.REG[0], REGB0); if (UNTAG_Bool(REGB0)) { @@ -2103,7 +2161,7 @@ val_t standard___string_search___String___html_escape(val_t p0){ fra.me.REG[1] = CALL_standard___string_search___String___replace(fra.me.REG[0])(fra.me.REG[0], REGB0, fra.me.REG[1]); fra.me.REG[0] = fra.me.REG[1]; } - /* ./../lib/standard//string_search.nit:332 */ + /* ../lib/standard/string_search.nit:331 */ REGB0 = TAG_Char('<'); REGB0 = CALL_standard___collection___abstract_collection___Collection___has(fra.me.REG[0])(fra.me.REG[0], REGB0); if (UNTAG_Bool(REGB0)) { @@ -2119,7 +2177,7 @@ val_t standard___string_search___String___html_escape(val_t p0){ fra.me.REG[1] = CALL_standard___string_search___String___replace(fra.me.REG[0])(fra.me.REG[0], REGB0, fra.me.REG[1]); fra.me.REG[0] = fra.me.REG[1]; } - /* ./../lib/standard//string_search.nit:333 */ + /* ../lib/standard/string_search.nit:332 */ REGB0 = TAG_Char('>'); REGB0 = CALL_standard___collection___abstract_collection___Collection___has(fra.me.REG[0])(fra.me.REG[0], REGB0); if (UNTAG_Bool(REGB0)) { @@ -2135,7 +2193,7 @@ val_t standard___string_search___String___html_escape(val_t p0){ fra.me.REG[1] = CALL_standard___string_search___String___replace(fra.me.REG[0])(fra.me.REG[0], REGB0, fra.me.REG[1]); fra.me.REG[0] = fra.me.REG[1]; } - /* ./../lib/standard//string_search.nit:334 */ + /* ../lib/standard/string_search.nit:333 */ REGB0 = TAG_Char('"'); REGB0 = CALL_standard___collection___abstract_collection___Collection___has(fra.me.REG[0])(fra.me.REG[0], REGB0); if (UNTAG_Bool(REGB0)) { @@ -2151,7 +2209,7 @@ val_t standard___string_search___String___html_escape(val_t p0){ fra.me.REG[1] = CALL_standard___string_search___String___replace(fra.me.REG[0])(fra.me.REG[0], REGB0, fra.me.REG[1]); fra.me.REG[0] = fra.me.REG[1]; } - /* ./../lib/standard//string_search.nit:335 */ + /* ../lib/standard/string_search.nit:334 */ goto label5; label5: while(0); stack_frame_head = fra.me.prev;