/* This C file is generated by NIT to compile module standard___string. */
#include "standard___string._sep.h"
+static const char LOCATE_standard___string___AbstractString___items[] = "string::AbstractString::items";
val_t standard___string___AbstractString___items(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___AbstractString_____bra[] = "string::AbstractString::(abstract_collection::SequenceRead::[])";
val_t standard___string___AbstractString_____bra(val_t p0, val_t p1){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 30);
}
fra.me.REG[0] = ATTR_standard___string___AbstractString____items(fra.me.REG[0]);
- /* ../lib/standard/string.nit:595 */
+ /* ../lib/standard/string.nit:602 */
REGB0 = TAG_Char(UNBOX_NativeString(fra.me.REG[0])[UNTAG_Int(REGB0)]);
/* ../lib/standard/string.nit:30 */
goto label1;
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___string___AbstractString___substring[] = "string::AbstractString::substring";
val_t standard___string___AbstractString___substring(val_t p0, val_t p1, val_t p2){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
} 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.nit:40 */
if (UNTAG_Bool(REGB2)) {
} else {
nit_abort("Assert failed", NULL, LOCATE_standard___string, 40);
}
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB2 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB0));
/* ../lib/standard/string.nit:41 */
REGB1 = 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.nit:42 */
if (UNTAG_Bool(REGB2)) {
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ../lib/standard/kernel.nit:234 */
+ /* ../lib/standard/kernel.nit:237 */
REGB2 = TAG_Bool(UNTAG_Int(REGB1)>UNTAG_Int(REGB2));
/* ../lib/standard/string.nit:43 */
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(REGB1));
/* ../lib/standard/string.nit:44 */
if (UNTAG_Bool(REGB2)) {
- /* ../lib/standard/kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB2 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB0));
/* ../lib/standard/string.nit:45 */
fra.me.REG[1] = NEW_Buffer_standard___string___Buffer___with_capacity(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(REGB1));
/* ../lib/standard/string.nit:46 */
if (UNTAG_Bool(REGB2)) {
nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 47);
}
fra.me.REG[2] = ATTR_standard___string___AbstractString____items(fra.me.REG[0]);
- /* ../lib/standard/string.nit:595 */
+ /* ../lib/standard/string.nit:602 */
REGB2 = TAG_Char(UNBOX_NativeString(fra.me.REG[2])[UNTAG_Int(REGB0)]);
/* ../lib/standard/string.nit:47 */
CALL_standard___collection___abstract_collection___Sequence___push(fra.me.REG[1])(fra.me.REG[1], REGB2);
/* ../lib/standard/string.nit:48 */
REGB2 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB2 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB2));
/* ../lib/standard/string.nit:48 */
REGB0 = REGB2;
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
+static const char LOCATE_standard___string___AbstractString___substring_from[] = "string::AbstractString::substring_from";
val_t standard___string___AbstractString___substring_from(val_t p0, val_t p1){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
} 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)<UNTAG_Int(REGB1));
/* ../lib/standard/string.nit:63 */
if (UNTAG_Bool(REGB1)) {
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
- /* ../lib/standard/kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB1 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB0));
/* ../lib/standard/string.nit:64 */
fra.me.REG[0] = CALL_standard___string___AbstractString___substring(fra.me.REG[0])(fra.me.REG[0], REGB0, REGB1);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___AbstractString___has_substring[] = "string::AbstractString::has_substring";
val_t standard___string___AbstractString___has_substring(val_t p0, val_t p1, val_t p2){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]);
/* ../lib/standard/string.nit:73 */
REGB2 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB2 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB2));
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB0 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB2));
/* ../lib/standard/string.nit:75 */
REGB1 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[0])!=NIT_NULL);
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ../lib/standard/kernel.nit:234 */
+ /* ../lib/standard/kernel.nit:237 */
REGB1 = TAG_Bool(UNTAG_Int(REGB0)>UNTAG_Int(REGB1));
/* ../lib/standard/string.nit:77 */
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(true);
+ REGB1 = TAG_Bool(1);
} else {
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:234 */
+ /* ../lib/standard/kernel.nit:237 */
REGB3 = TAG_Bool(UNTAG_Int(REGB2)>UNTAG_Int(REGB0));
/* ../lib/standard/string.nit:77 */
REGB1 = REGB3;
}
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(false);
+ REGB1 = TAG_Bool(0);
goto label1;
}
/* ../lib/standard/string.nit:78 */
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ../lib/standard/kernel.nit:233 */
+ /* ../lib/standard/kernel.nit:236 */
REGB3 = TAG_Bool(UNTAG_Int(REGB2)>=UNTAG_Int(REGB3));
/* ../lib/standard/string.nit:78 */
if (UNTAG_Bool(REGB3)) {
- /* ../lib/standard/string.nit:595 */
+ /* ../lib/standard/string.nit:602 */
REGB3 = TAG_Char(UNBOX_NativeString(fra.me.REG[2])[UNTAG_Int(REGB0)]);
REGB4 = TAG_Char(UNBOX_NativeString(fra.me.REG[1])[UNTAG_Int(REGB2)]);
/* ../lib/standard/string.nit:79 */
REGB5 = TAG_Bool(IS_EQUAL_OO(REGB3,REGB4));
if (UNTAG_Bool(REGB5)) {
} else {
- /* ../lib/standard/kernel.nit:378 */
+ /* ../lib/standard/kernel.nit:381 */
REGB4 = TAG_Bool((REGB3)==(REGB4));
/* ../lib/standard/string.nit:79 */
REGB5 = REGB4;
}
REGB5 = TAG_Bool(!UNTAG_Bool(REGB5));
if (UNTAG_Bool(REGB5)) {
- REGB5 = TAG_Bool(false);
+ REGB5 = TAG_Bool(0);
REGB1 = REGB5;
goto label1;
}
/* ../lib/standard/string.nit:80 */
REGB5 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB5 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB5));
/* ../lib/standard/string.nit:80 */
REGB0 = REGB5;
/* ../lib/standard/string.nit:81 */
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.nit:81 */
REGB2 = REGB5;
}
label2: while(0);
/* ../lib/standard/string.nit:83 */
- REGB2 = TAG_Bool(true);
+ REGB2 = TAG_Bool(1);
REGB1 = REGB2;
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return REGB1;
}
+static const char LOCATE_standard___string___AbstractString___has_prefix[] = "string::AbstractString::has_prefix";
val_t standard___string___AbstractString___has_prefix(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___string___AbstractString___has_suffix[] = "string::AbstractString::has_suffix";
val_t standard___string___AbstractString___has_suffix(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
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(REGB0)-UNTAG_Int(REGB1));
/* ../lib/standard/string.nit:96 */
REGB1 = CALL_standard___string___AbstractString___has_substring(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1], REGB1);
stack_frame_head = fra.me.prev;
return REGB1;
}
+static const char LOCATE_standard___string___AbstractString___to_i[] = "string::AbstractString::to_i";
val_t standard___string___AbstractString___to_i(val_t p0){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
/* ../lib/standard/string.nit:102 */
fra.me.REG[0] = CALL_standard___string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[0] = CALL_standard___string___String___to_cstring(fra.me.REG[0])(fra.me.REG[0]);
- /* ../lib/standard/string.nit:606 */
+ /* ../lib/standard/string.nit:613 */
REGB0 = TAG_Int(atoi(UNBOX_NativeString(fra.me.REG[0])));
/* ../lib/standard/string.nit:102 */
goto label1;
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___string___AbstractString___to_f[] = "string::AbstractString::to_f";
+val_t standard___string___AbstractString___to_f(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___string;
+ fra.me.line = 105;
+ fra.me.meth = LOCATE_standard___string___AbstractString___to_f;
+ 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.nit:109 */
+ fra.me.REG[0] = CALL_standard___string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[0] = CALL_standard___string___String___to_cstring(fra.me.REG[0])(fra.me.REG[0]);
+ fra.me.REG[0] = CALL_standard___string___NativeString___atof(fra.me.REG[0])(fra.me.REG[0]);
+ goto label1;
+ label1: while(0);
+ stack_frame_head = fra.me.prev;
+ return fra.me.REG[0];
+}
+static const char LOCATE_standard___string___AbstractString___to_hex[] = "string::AbstractString::to_hex";
val_t standard___string___AbstractString___to_hex(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;
- fra.me.line = 105;
+ fra.me.line = 112;
fra.me.meth = LOCATE_standard___string___AbstractString___to_hex;
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.nit:106 */
+ /* ../lib/standard/string.nit:113 */
REGB0 = TAG_Int(16);
REGB0 = CALL_standard___string___AbstractString___a_to(fra.me.REG[0])(fra.me.REG[0], REGB0);
goto label1;
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___string___AbstractString___a_to[] = "string::AbstractString::a_to";
val_t standard___string___AbstractString___a_to(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___string;
- fra.me.line = 108;
+ fra.me.line = 115;
fra.me.meth = LOCATE_standard___string___AbstractString___a_to;
fra.me.has_broke = 0;
fra.me.REG_size = 4;
fra.me.REG[3] = NIT_NULL;
fra.me.REG[0] = p0;
REGB0 = p1;
- /* ../lib/standard/string.nit:108 */
+ /* ../lib/standard/string.nit:115 */
fra.me.REG[1] = REGB0;
- /* ../lib/standard/string.nit:111 */
+ /* ../lib/standard/string.nit:118 */
REGB0 = TAG_Int(0);
fra.me.REG[2] = REGB0;
- /* ../lib/standard/string.nit:112 */
- REGB0 = TAG_Bool(false);
+ /* ../lib/standard/string.nit:119 */
+ REGB0 = TAG_Bool(0);
fra.me.REG[3] = REGB0;
CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[0])(fra.me.REG[0], (&(fra.me)), ((fun_t)OC_standard___string___AbstractString___a_to_1));
switch ((&(fra.me))->has_broke) {
case 0: break;
case 1: (&(fra.me))->has_broke = 0; goto label3;
}
- /* ../lib/standard/string.nit:129 */
+ /* ../lib/standard/string.nit:136 */
if (UNTAG_Bool(fra.me.REG[3])) {
- /* ../lib/standard/kernel.nit:236 */
+ /* ../lib/standard/kernel.nit:239 */
REGB0 = TAG_Int(-UNTAG_Int(fra.me.REG[2]));
- /* ../lib/standard/string.nit:130 */
+ /* ../lib/standard/string.nit:137 */
fra.me.REG[0] = REGB0;
goto label3;
} else {
- /* ../lib/standard/string.nit:132 */
+ /* ../lib/standard/string.nit:139 */
fra.me.REG[0] = fra.me.REG[2];
goto label3;
}
val_t REGB2;
fun_t CREG[1];
val_t tmp;
- /* ../lib/standard/string.nit:114 */
+ /* ../lib/standard/string.nit:121 */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
fra.me.line = 0;
fra.me.REG[0] = p0;
CREG[0] = clos_fun0;
REGB0 = fra.me.REG[0];
- /* ../lib/standard/string.nit:116 */
+ /* ../lib/standard/string.nit:123 */
REGB0 = CALL_standard___kernel___Char___to_i(REGB0)(REGB0);
REGB1 = TAG_Bool(VAL_ISA(closctx->REG[1], VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
if (UNTAG_Bool(REGB1)) {
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ../lib/standard/kernel.nit:234 */
+ /* ../lib/standard/kernel.nit:237 */
REGB1 = TAG_Bool(UNTAG_Int(REGB0)>UNTAG_Int(closctx->REG[1]));
- /* ../lib/standard/string.nit:117 */
+ /* ../lib/standard/string.nit:124 */
if (UNTAG_Bool(REGB1)) {
- /* ../lib/standard/string.nit:118 */
+ /* ../lib/standard/string.nit:125 */
if (UNTAG_Bool(closctx->REG[3])) {
- /* ../lib/standard/kernel.nit:236 */
+ /* ../lib/standard/kernel.nit:239 */
REGB1 = TAG_Int(-UNTAG_Int(closctx->REG[2]));
- /* ../lib/standard/string.nit:119 */
+ /* ../lib/standard/string.nit:126 */
closctx->REG[0] = REGB1;
closctx->has_broke = 1;
goto label2;
} else {
- /* ../lib/standard/string.nit:121 */
+ /* ../lib/standard/string.nit:128 */
closctx->REG[0] = closctx->REG[2];
closctx->has_broke = 1;
goto label2;
}
} else {
- /* ../lib/standard/string.nit:123 */
+ /* ../lib/standard/string.nit:130 */
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)<UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:123 */
+ /* ../lib/standard/string.nit:130 */
if (UNTAG_Bool(REGB1)) {
- /* ../lib/standard/string.nit:124 */
- REGB1 = TAG_Bool(true);
+ /* ../lib/standard/string.nit:131 */
+ REGB1 = TAG_Bool(1);
closctx->REG[3] = REGB1;
} else {
- /* ../lib/standard/kernel.nit:238 */
+ /* ../lib/standard/kernel.nit:241 */
REGB1 = TAG_Int(UNTAG_Int(closctx->REG[2])*UNTAG_Int(closctx->REG[1]));
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB0 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB0));
- /* ../lib/standard/string.nit:126 */
+ /* ../lib/standard/string.nit:133 */
closctx->REG[2] = REGB0;
}
}
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___string___AbstractString___to_upper[] = "string::AbstractString::to_upper";
val_t standard___string___AbstractString___to_upper(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___string;
- fra.me.line = 136;
+ fra.me.line = 143;
fra.me.meth = LOCATE_standard___string___AbstractString___to_upper;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
- /* ../lib/standard/string.nit:139 */
+ /* ../lib/standard/string.nit:146 */
fra.me.REG[1] = NEW_Buffer_standard___string___Buffer___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[0])(fra.me.REG[0], (&(fra.me)), ((fun_t)OC_standard___string___AbstractString___to_upper_1));
- /* ../lib/standard/string.nit:141 */
+ /* ../lib/standard/string.nit:148 */
fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
goto label2;
label2: while(0);
val_t REGB0;
fun_t CREG[1];
val_t tmp;
- /* ../lib/standard/string.nit:140 */
+ /* ../lib/standard/string.nit:147 */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
fra.me.line = 0;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___string___AbstractString___to_lower[] = "string::AbstractString::to_lower";
val_t standard___string___AbstractString___to_lower(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___string;
- fra.me.line = 144;
+ fra.me.line = 151;
fra.me.meth = LOCATE_standard___string___AbstractString___to_lower;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
- /* ../lib/standard/string.nit:147 */
+ /* ../lib/standard/string.nit:154 */
fra.me.REG[1] = NEW_Buffer_standard___string___Buffer___with_capacity(REGB0);
CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[0])(fra.me.REG[0], (&(fra.me)), ((fun_t)OC_standard___string___AbstractString___to_lower_1));
- /* ../lib/standard/string.nit:149 */
+ /* ../lib/standard/string.nit:156 */
fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
goto label2;
label2: while(0);
val_t REGB0;
fun_t CREG[1];
val_t tmp;
- /* ../lib/standard/string.nit:148 */
+ /* ../lib/standard/string.nit:155 */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
fra.me.line = 0;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___string___AbstractString___output[] = "string::AbstractString::(kernel::Object::output)";
void standard___string___AbstractString___output(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___string;
- fra.me.line = 153;
+ fra.me.line = 160;
fra.me.meth = LOCATE_standard___string___AbstractString___output;
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;
- /* ../lib/standard/string.nit:155 */
+ /* ../lib/standard/string.nit:162 */
REGB0 = TAG_Int(0);
- /* ../lib/standard/string.nit:156 */
+ /* ../lib/standard/string.nit:163 */
while(1) {
/* ../lib/standard/collection/array.nit:24 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0])!=NIT_NULL);
} 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)<UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:156 */
+ /* ../lib/standard/string.nit:163 */
if (UNTAG_Bool(REGB1)) {
- /* ../lib/standard/string.nit:157 */
+ /* ../lib/standard/string.nit:164 */
REGB1 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 157);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 164);
}
fra.me.REG[1] = ATTR_standard___string___AbstractString____items(fra.me.REG[0]);
- /* ../lib/standard/string.nit:595 */
+ /* ../lib/standard/string.nit:602 */
REGB1 = TAG_Char(UNBOX_NativeString(fra.me.REG[1])[UNTAG_Int(REGB0)]);
- /* ../lib/standard/kernel.nit:380 */
+ /* ../lib/standard/kernel.nit:383 */
printf("%c", (unsigned char)UNTAG_Char(REGB1));;
- /* ../lib/standard/string.nit:158 */
+ /* ../lib/standard/string.nit:165 */
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/string.nit:158 */
+ /* ../lib/standard/string.nit:165 */
REGB0 = REGB1;
} else {
- /* ../lib/standard/string.nit:156 */
+ /* ../lib/standard/string.nit:163 */
goto label1;
}
}
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___string___String___with_native[] = "string::String::with_native";
void standard___string___String___with_native(val_t p0, val_t p1, val_t p2, int* init_table){
int itpos0 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___string___String].i;
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
if (init_table[itpos0]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 170;
+ fra.me.line = 177;
fra.me.meth = LOCATE_standard___string___String___with_native;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
REGB0 = p2;
- /* ../lib/standard/string.nit:173 */
+ /* ../lib/standard/string.nit:180 */
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.nit:173 */
+ /* ../lib/standard/string.nit:180 */
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Assert failed", NULL, LOCATE_standard___string, 173);
+ nit_abort("Assert failed", NULL, LOCATE_standard___string, 180);
}
- /* ../lib/standard/string.nit:174 */
+ /* ../lib/standard/string.nit:181 */
ATTR_standard___string___AbstractString____items(fra.me.REG[0]) = fra.me.REG[1];
- /* ../lib/standard/string.nit:175 */
+ /* ../lib/standard/string.nit:182 */
ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]) = REGB0;
stack_frame_head = fra.me.prev;
init_table[itpos0] = 1;
return;
}
+static const char LOCATE_standard___string___String___from_cstring[] = "string::String::from_cstring";
void standard___string___String___from_cstring(val_t p0, val_t p1, int* init_table){
int itpos1 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___string___String].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___string;
- fra.me.line = 178;
+ fra.me.line = 185;
fra.me.meth = LOCATE_standard___string___String___from_cstring;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ../lib/standard/string.nit:181 */
+ /* ../lib/standard/string.nit:188 */
REGB0 = CALL_standard___string___NativeString___cstring_length(fra.me.REG[1])(fra.me.REG[1]);
- /* ../lib/standard/string.nit:182 */
+ /* ../lib/standard/string.nit:189 */
ATTR_standard___string___AbstractString____items(fra.me.REG[0]) = fra.me.REG[1];
- /* ../lib/standard/string.nit:183 */
+ /* ../lib/standard/string.nit:190 */
ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]) = REGB0;
stack_frame_head = fra.me.prev;
init_table[itpos1] = 1;
return;
}
+static const char LOCATE_standard___string___String___to_cstring[] = "string::String::to_cstring";
val_t standard___string___String___to_cstring(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;
- fra.me.line = 186;
+ fra.me.line = 193;
fra.me.meth = LOCATE_standard___string___String___to_cstring;
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.nit:189 */
+ /* ../lib/standard/string.nit:196 */
REGB0 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 189);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 196);
}
fra.me.REG[0] = ATTR_standard___string___AbstractString____items(fra.me.REG[0]);
goto label1;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___String_____eqeq[] = "string::String::(kernel::Object::==)";
val_t standard___string___String_____eqeq(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___string;
- fra.me.line = 192;
+ fra.me.line = 199;
fra.me.meth = LOCATE_standard___string___String_____eqeq;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ../lib/standard/string.nit:194 */
+ /* ../lib/standard/string.nit:201 */
REGB0 = TAG_Bool((fra.me.REG[1]!=NIT_NULL) && VAL_ISA(fra.me.REG[1], COLOR_standard___string___String, ID_standard___string___String)) /*cast String*/;
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- REGB0 = TAG_Bool(true);
+ REGB0 = TAG_Bool(1);
} else {
REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
- REGB0 = TAG_Bool(false);
+ REGB0 = TAG_Bool(0);
goto label1;
}
/* ../lib/standard/collection/array.nit:24 */
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
- /* ../lib/standard/string.nit:196 */
+ /* ../lib/standard/string.nit:203 */
REGB2 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___string, 196);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___string, 203);
}
/* ../lib/standard/collection/array.nit:24 */
REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL);
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]);
- /* ../lib/standard/string.nit:196 */
+ /* ../lib/standard/string.nit:203 */
REGB3 = TAG_Bool(IS_EQUAL_OO(REGB2,REGB1));
if (UNTAG_Bool(REGB3)) {
} else {
- /* ../lib/standard/kernel.nit:227 */
+ /* ../lib/standard/kernel.nit:230 */
REGB2 = TAG_Bool((REGB2)==(REGB1));
- /* ../lib/standard/string.nit:196 */
+ /* ../lib/standard/string.nit:203 */
REGB3 = REGB2;
}
REGB3 = TAG_Bool(!UNTAG_Bool(REGB3));
if (UNTAG_Bool(REGB3)) {
- REGB3 = TAG_Bool(false);
+ REGB3 = TAG_Bool(0);
REGB0 = REGB3;
goto label1;
}
- /* ../lib/standard/string.nit:197 */
+ /* ../lib/standard/string.nit:204 */
REGB3 = TAG_Int(0);
- /* ../lib/standard/string.nit:198 */
+ /* ../lib/standard/string.nit:205 */
REGB2 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB2)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 198);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 205);
}
fra.me.REG[0] = ATTR_standard___string___AbstractString____items(fra.me.REG[0]);
- /* ../lib/standard/string.nit:199 */
+ /* ../lib/standard/string.nit:206 */
REGB2 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[1])!=NIT_NULL);
if (UNTAG_Bool(REGB2)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 199);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 206);
}
fra.me.REG[1] = ATTR_standard___string___AbstractString____items(fra.me.REG[1]);
- /* ../lib/standard/string.nit:200 */
+ /* ../lib/standard/string.nit:207 */
while(1) {
REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB3), VTID_standard___kernel___Comparable___OTHER(REGB3))) /*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(REGB3)<UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:200 */
+ /* ../lib/standard/string.nit:207 */
if (UNTAG_Bool(REGB2)) {
- /* ../lib/standard/string.nit:595 */
+ /* ../lib/standard/string.nit:602 */
REGB2 = TAG_Char(UNBOX_NativeString(fra.me.REG[0])[UNTAG_Int(REGB3)]);
REGB4 = TAG_Char(UNBOX_NativeString(fra.me.REG[1])[UNTAG_Int(REGB3)]);
- /* ../lib/standard/string.nit:201 */
+ /* ../lib/standard/string.nit:208 */
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.nit:201 */
+ /* ../lib/standard/string.nit:208 */
REGB5 = REGB4;
}
REGB5 = TAG_Bool(!UNTAG_Bool(REGB5));
if (UNTAG_Bool(REGB5)) {
- REGB5 = TAG_Bool(false);
+ REGB5 = TAG_Bool(0);
REGB0 = REGB5;
goto label1;
}
- /* ../lib/standard/string.nit:202 */
+ /* ../lib/standard/string.nit:209 */
REGB5 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB5 = TAG_Int(UNTAG_Int(REGB3)+UNTAG_Int(REGB5));
- /* ../lib/standard/string.nit:202 */
+ /* ../lib/standard/string.nit:209 */
REGB3 = REGB5;
} else {
- /* ../lib/standard/string.nit:200 */
+ /* ../lib/standard/string.nit:207 */
goto label2;
}
}
label2: while(0);
- /* ../lib/standard/string.nit:204 */
- REGB3 = TAG_Bool(true);
+ /* ../lib/standard/string.nit:211 */
+ REGB3 = TAG_Bool(1);
REGB0 = REGB3;
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___string___String_____l[] = "string::String::(kernel::Comparable::<)";
val_t standard___string___String_____l(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___string;
- fra.me.line = 207;
+ fra.me.line = 214;
fra.me.meth = LOCATE_standard___string___String_____l;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___string, 0);
}
- /* ../lib/standard/string.nit:209 */
+ /* ../lib/standard/string.nit:216 */
REGB0 = TAG_Int(0);
/* ../lib/standard/collection/array.nit:24 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0])!=NIT_NULL);
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]);
- /* ../lib/standard/string.nit:212 */
+ /* ../lib/standard/string.nit:219 */
REGB3 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB3)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 212);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 219);
}
fra.me.REG[0] = ATTR_standard___string___AbstractString____items(fra.me.REG[0]);
- /* ../lib/standard/string.nit:213 */
+ /* ../lib/standard/string.nit:220 */
REGB3 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[1])!=NIT_NULL);
if (UNTAG_Bool(REGB3)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 213);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 220);
}
fra.me.REG[1] = ATTR_standard___string___AbstractString____items(fra.me.REG[1]);
- /* ../lib/standard/string.nit:214 */
+ /* ../lib/standard/string.nit:221 */
while(1) {
REGB3 = TAG_Bool(VAL_ISA(REGB1, 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 */
REGB3 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:214 */
+ /* ../lib/standard/string.nit:221 */
if (UNTAG_Bool(REGB3)) {
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:232 */
+ /* ../lib/standard/kernel.nit:235 */
REGB3 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB2));
} else {
- /* ../lib/standard/string.nit:214 */
- REGB4 = TAG_Bool(false);
+ /* ../lib/standard/string.nit:221 */
+ REGB4 = TAG_Bool(0);
REGB3 = REGB4;
}
if (UNTAG_Bool(REGB3)) {
- /* ../lib/standard/string.nit:595 */
+ /* ../lib/standard/string.nit:602 */
REGB3 = TAG_Char(UNBOX_NativeString(fra.me.REG[0])[UNTAG_Int(REGB0)]);
- /* ../lib/standard/kernel.nit:413 */
+ /* ../lib/standard/kernel.nit:416 */
REGB3 = TAG_Int((unsigned char)UNTAG_Char(REGB3));
- /* ../lib/standard/string.nit:595 */
+ /* ../lib/standard/string.nit:602 */
REGB4 = TAG_Char(UNBOX_NativeString(fra.me.REG[1])[UNTAG_Int(REGB0)]);
- /* ../lib/standard/kernel.nit:413 */
+ /* ../lib/standard/kernel.nit:416 */
REGB4 = TAG_Int((unsigned char)UNTAG_Char(REGB4));
REGB5 = TAG_Bool(VAL_ISA(REGB4, VTCOLOR_standard___kernel___Comparable___OTHER(REGB3), VTID_standard___kernel___Comparable___OTHER(REGB3))) /*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 */
REGB5 = TAG_Bool(UNTAG_Int(REGB3)<UNTAG_Int(REGB4));
- /* ../lib/standard/string.nit:217 */
+ /* ../lib/standard/string.nit:224 */
if (UNTAG_Bool(REGB5)) {
- /* ../lib/standard/string.nit:218 */
- REGB5 = TAG_Bool(true);
+ /* ../lib/standard/string.nit:225 */
+ REGB5 = TAG_Bool(1);
goto label1;
} else {
REGB6 = TAG_Bool(VAL_ISA(REGB3, VTCOLOR_standard___kernel___Comparable___OTHER(REGB4), VTID_standard___kernel___Comparable___OTHER(REGB4))) /*cast OTHER*/;
} 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(REGB4)<UNTAG_Int(REGB3));
- /* ../lib/standard/string.nit:219 */
+ /* ../lib/standard/string.nit:226 */
if (UNTAG_Bool(REGB3)) {
- /* ../lib/standard/string.nit:220 */
- REGB3 = TAG_Bool(false);
+ /* ../lib/standard/string.nit:227 */
+ REGB3 = TAG_Bool(0);
REGB5 = REGB3;
goto label1;
}
}
- /* ../lib/standard/string.nit:222 */
+ /* ../lib/standard/string.nit:229 */
REGB3 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB3 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB3));
- /* ../lib/standard/string.nit:222 */
+ /* ../lib/standard/string.nit:229 */
REGB0 = REGB3;
} else {
- /* ../lib/standard/string.nit:214 */
+ /* ../lib/standard/string.nit:221 */
goto label2;
}
}
} 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(REGB2));
- /* ../lib/standard/string.nit:224 */
+ /* ../lib/standard/string.nit:231 */
if (UNTAG_Bool(REGB2)) {
- /* ../lib/standard/string.nit:225 */
- REGB2 = TAG_Bool(true);
+ /* ../lib/standard/string.nit:232 */
+ REGB2 = TAG_Bool(1);
REGB5 = REGB2;
goto label1;
} else {
- /* ../lib/standard/string.nit:227 */
- REGB2 = TAG_Bool(false);
+ /* ../lib/standard/string.nit:234 */
+ REGB2 = TAG_Bool(0);
REGB5 = REGB2;
goto label1;
}
stack_frame_head = fra.me.prev;
return REGB5;
}
+static const char LOCATE_standard___string___String_____plus[] = "string::String::+";
val_t standard___string___String_____plus(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___string;
- fra.me.line = 231;
+ fra.me.line = 238;
fra.me.meth = LOCATE_standard___string___String_____plus;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
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:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:234 */
+ /* ../lib/standard/string.nit:241 */
fra.me.REG[2] = NEW_Buffer_standard___string___Buffer___with_capacity(REGB1);
- /* ../lib/standard/string.nit:235 */
+ /* ../lib/standard/string.nit:242 */
CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[0]);
- /* ../lib/standard/string.nit:236 */
+ /* ../lib/standard/string.nit:243 */
CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[2])(fra.me.REG[2], fra.me.REG[1]);
- /* ../lib/standard/string.nit:237 */
+ /* ../lib/standard/string.nit:244 */
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[2];
}
+static const char LOCATE_standard___string___String_____star[] = "string::String::*";
val_t standard___string___String_____star(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___string;
- fra.me.line = 240;
+ fra.me.line = 247;
fra.me.meth = LOCATE_standard___string___String_____star;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
REGB0 = p1;
- /* ../lib/standard/string.nit:243 */
+ /* ../lib/standard/string.nit:250 */
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.nit:243 */
+ /* ../lib/standard/string.nit:250 */
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Assert failed", NULL, LOCATE_standard___string, 243);
+ nit_abort("Assert failed", NULL, LOCATE_standard___string, 250);
}
/* ../lib/standard/collection/array.nit:24 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0])!=NIT_NULL);
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
- /* ../lib/standard/kernel.nit:238 */
+ /* ../lib/standard/kernel.nit:241 */
REGB1 = TAG_Int(UNTAG_Int(REGB1)*UNTAG_Int(REGB0));
- /* ../lib/standard/string.nit:244 */
+ /* ../lib/standard/string.nit:251 */
fra.me.REG[1] = NEW_Buffer_standard___string___Buffer___with_capacity(REGB1);
- /* ../lib/standard/string.nit:245 */
+ /* ../lib/standard/string.nit:252 */
while(1) {
REGB1 = TAG_Int(0);
REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ../lib/standard/kernel.nit:234 */
+ /* ../lib/standard/kernel.nit:237 */
REGB1 = TAG_Bool(UNTAG_Int(REGB0)>UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:245 */
+ /* ../lib/standard/string.nit:252 */
if (UNTAG_Bool(REGB1)) {
- /* ../lib/standard/string.nit:246 */
+ /* ../lib/standard/string.nit:253 */
CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[0]);
- /* ../lib/standard/string.nit:247 */
+ /* ../lib/standard/string.nit:254 */
REGB1 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:247 */
+ /* ../lib/standard/string.nit:254 */
REGB0 = REGB1;
} else {
- /* ../lib/standard/string.nit:245 */
+ /* ../lib/standard/string.nit:252 */
goto label1;
}
}
label1: while(0);
- /* ../lib/standard/string.nit:249 */
+ /* ../lib/standard/string.nit:256 */
fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
goto label2;
label2: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
+static const char LOCATE_standard___string___String___to_s[] = "string::String::(string::Object::to_s)";
val_t standard___string___String___to_s(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___string;
- fra.me.line = 252;
+ fra.me.line = 259;
fra.me.meth = LOCATE_standard___string___String___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.nit:252 */
+ /* ../lib/standard/string.nit:259 */
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___String___hash[] = "string::String::(hash::Object::hash)";
val_t standard___string___String___hash(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;
- fra.me.line = 254;
+ fra.me.line = 261;
fra.me.meth = LOCATE_standard___string___String___hash;
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.nit:257 */
+ /* ../lib/standard/string.nit:264 */
REGB0 = TAG_Int(5381);
- /* ../lib/standard/string.nit:258 */
+ /* ../lib/standard/string.nit:265 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string, 258);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string, 265);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
REGB2 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB2 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB2));
- /* ../lib/standard/string.nit:259 */
+ /* ../lib/standard/string.nit:266 */
REGB1 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 259);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 266);
}
fra.me.REG[0] = ATTR_standard___string___AbstractString____items(fra.me.REG[0]);
- /* ../lib/standard/string.nit:260 */
+ /* ../lib/standard/string.nit:267 */
while(1) {
REGB1 = TAG_Int(0);
REGB3 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB2), VTID_standard___kernel___Comparable___OTHER(REGB2))) /*cast OTHER*/;
} 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(REGB2)>=UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:260 */
+ /* ../lib/standard/string.nit:267 */
if (UNTAG_Bool(REGB1)) {
- /* ../lib/standard/string.nit:261 */
+ /* ../lib/standard/string.nit:268 */
REGB1 = TAG_Int(32);
- /* ../lib/standard/kernel.nit:238 */
+ /* ../lib/standard/kernel.nit:241 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)*UNTAG_Int(REGB1));
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB1 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB0));
- /* ../lib/standard/string.nit:595 */
+ /* ../lib/standard/string.nit:602 */
REGB3 = TAG_Char(UNBOX_NativeString(fra.me.REG[0])[UNTAG_Int(REGB2)]);
- /* ../lib/standard/kernel.nit:413 */
+ /* ../lib/standard/kernel.nit:416 */
REGB3 = TAG_Int((unsigned char)UNTAG_Char(REGB3));
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB3 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB3));
- /* ../lib/standard/string.nit:261 */
+ /* ../lib/standard/string.nit:268 */
REGB0 = REGB3;
- /* ../lib/standard/string.nit:262 */
+ /* ../lib/standard/string.nit:269 */
REGB3 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB3 = TAG_Int(UNTAG_Int(REGB2)-UNTAG_Int(REGB3));
- /* ../lib/standard/string.nit:262 */
+ /* ../lib/standard/string.nit:269 */
REGB2 = REGB3;
} else {
- /* ../lib/standard/string.nit:260 */
+ /* ../lib/standard/string.nit:267 */
goto label1;
}
}
label1: while(0);
- /* ../lib/standard/string.nit:264 */
+ /* ../lib/standard/string.nit:271 */
goto label2;
label2: while(0);
stack_frame_head = fra.me.prev;
return REGB0;
}
-val_t standard___string___String___to_f(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___string;
- fra.me.line = 268;
- fra.me.meth = LOCATE_standard___string___String___to_f;
- 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.nit:268 */
- fra.me.REG[0] = String_to_f___out(fra.me.REG[0]);
- ;
- stack_frame_head = fra.me.prev;
- return fra.me.REG[0];
-}
+static const char LOCATE_standard___string___Buffer_____braeq[] = "string::Buffer::(abstract_collection::Sequence::[]=)";
void standard___string___Buffer_____braeq(val_t p0, val_t p1, val_t p2){
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;
- fra.me.line = 280;
+ fra.me.line = 285;
fra.me.meth = LOCATE_standard___string___Buffer_____braeq;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
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.nit:282 */
+ /* ../lib/standard/string.nit:287 */
REGB3 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB2));
if (UNTAG_Bool(REGB3)) {
} else {
- /* ../lib/standard/kernel.nit:227 */
+ /* ../lib/standard/kernel.nit:230 */
REGB2 = TAG_Bool((REGB0)==(REGB2));
- /* ../lib/standard/string.nit:282 */
+ /* ../lib/standard/string.nit:287 */
REGB3 = REGB2;
}
if (UNTAG_Bool(REGB3)) {
- /* ../lib/standard/string.nit:283 */
+ /* ../lib/standard/string.nit:288 */
CALL_standard___collection___abstract_collection___SimpleCollection___add(fra.me.REG[0])(fra.me.REG[0], REGB1);
- /* ../lib/standard/string.nit:284 */
+ /* ../lib/standard/string.nit:289 */
goto label1;
}
- /* ../lib/standard/string.nit:286 */
+ /* ../lib/standard/string.nit:291 */
REGB3 = TAG_Int(0);
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:233 */
+ /* ../lib/standard/kernel.nit:236 */
REGB3 = TAG_Bool(UNTAG_Int(REGB0)>=UNTAG_Int(REGB3));
- /* ../lib/standard/string.nit:286 */
+ /* ../lib/standard/string.nit:291 */
if (UNTAG_Bool(REGB3)) {
/* ../lib/standard/collection/array.nit:24 */
REGB3 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0])!=NIT_NULL);
} 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(REGB0)<UNTAG_Int(REGB3));
} else {
- /* ../lib/standard/string.nit:286 */
- REGB2 = TAG_Bool(false);
+ /* ../lib/standard/string.nit:291 */
+ REGB2 = TAG_Bool(0);
REGB3 = REGB2;
}
if (UNTAG_Bool(REGB3)) {
} else {
- nit_abort("Assert failed", NULL, LOCATE_standard___string, 286);
+ nit_abort("Assert failed", NULL, LOCATE_standard___string, 291);
}
- /* ../lib/standard/string.nit:287 */
+ /* ../lib/standard/string.nit:292 */
REGB3 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB3)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 287);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 292);
}
fra.me.REG[0] = ATTR_standard___string___AbstractString____items(fra.me.REG[0]);
- /* ../lib/standard/string.nit:596 */
+ /* ../lib/standard/string.nit:603 */
UNBOX_NativeString(fra.me.REG[0])[UNTAG_Int(REGB0)]=UNTAG_Char(REGB1);;
label1: while(0);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___string___Buffer___add[] = "string::Buffer::(abstract_collection::SimpleCollection::add)";
void standard___string___Buffer___add(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___string;
- fra.me.line = 290;
+ fra.me.line = 295;
fra.me.meth = LOCATE_standard___string___Buffer___add;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
REGB0 = p1;
- /* ../lib/standard/string.nit:292 */
+ /* ../lib/standard/string.nit:297 */
REGB1 = TAG_Bool(ATTR_standard___string___Buffer____capacity(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___string, 292);
+ nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___string, 297);
}
REGB1 = ATTR_standard___string___Buffer____capacity(fra.me.REG[0]);
/* ../lib/standard/collection/array.nit:24 */
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ../lib/standard/kernel.nit:231 */
+ /* ../lib/standard/kernel.nit:234 */
REGB2 = TAG_Bool(UNTAG_Int(REGB1)<=UNTAG_Int(REGB2));
- /* ../lib/standard/string.nit:292 */
+ /* ../lib/standard/string.nit:297 */
if (UNTAG_Bool(REGB2)) {
/* ../lib/standard/collection/array.nit:24 */
REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0])!=NIT_NULL);
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.nit:292 */
+ /* ../lib/standard/string.nit:297 */
REGB1 = TAG_Int(5);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB1 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:292 */
+ /* ../lib/standard/string.nit:297 */
CALL_standard___collection___array___AbstractArray___enlarge(fra.me.REG[0])(fra.me.REG[0], REGB1);
}
- /* ../lib/standard/string.nit:293 */
+ /* ../lib/standard/string.nit:298 */
REGB1 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 293);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 298);
}
fra.me.REG[1] = ATTR_standard___string___AbstractString____items(fra.me.REG[0]);
/* ../lib/standard/collection/array.nit:24 */
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
- /* ../lib/standard/string.nit:596 */
+ /* ../lib/standard/string.nit:603 */
UNBOX_NativeString(fra.me.REG[1])[UNTAG_Int(REGB1)]=UNTAG_Char(REGB0);;
- /* ../lib/standard/string.nit:294 */
+ /* ../lib/standard/string.nit:299 */
REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
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/string.nit:294 */
+ /* ../lib/standard/string.nit:299 */
ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]) = REGB1;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___string___Buffer___enlarge[] = "string::Buffer::(array::AbstractArray::enlarge)";
void standard___string___Buffer___enlarge(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___string;
- fra.me.line = 297;
+ fra.me.line = 302;
fra.me.meth = LOCATE_standard___string___Buffer___enlarge;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
REGB0 = p1;
- /* ../lib/standard/string.nit:299 */
+ /* ../lib/standard/string.nit:304 */
REGB1 = TAG_Bool(ATTR_standard___string___Buffer____capacity(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___string, 299);
+ nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___string, 304);
}
REGB1 = ATTR_standard___string___Buffer____capacity(fra.me.REG[0]);
REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ../lib/standard/kernel.nit:231 */
+ /* ../lib/standard/kernel.nit:234 */
REGB2 = TAG_Bool(UNTAG_Int(REGB0)<=UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:300 */
+ /* ../lib/standard/string.nit:305 */
if (UNTAG_Bool(REGB2)) {
goto label1;
}
- /* ../lib/standard/string.nit:301 */
+ /* ../lib/standard/string.nit:306 */
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:231 */
+ /* ../lib/standard/kernel.nit:234 */
REGB2 = TAG_Bool(UNTAG_Int(REGB1)<=UNTAG_Int(REGB0));
- /* ../lib/standard/string.nit:301 */
+ /* ../lib/standard/string.nit:306 */
if (UNTAG_Bool(REGB2)) {
REGB2 = TAG_Int(2);
- /* ../lib/standard/kernel.nit:238 */
+ /* ../lib/standard/kernel.nit:241 */
REGB2 = TAG_Int(UNTAG_Int(REGB1)*UNTAG_Int(REGB2));
- /* ../lib/standard/string.nit:301 */
+ /* ../lib/standard/string.nit:306 */
REGB3 = TAG_Int(2);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB3 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB3));
- /* ../lib/standard/string.nit:301 */
+ /* ../lib/standard/string.nit:306 */
REGB1 = REGB3;
} else {
goto label2;
}
}
label2: while(0);
- /* ../lib/standard/string.nit:302 */
+ /* ../lib/standard/string.nit:307 */
REGB0 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB0 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB0));
- /* ../lib/standard/string.nit:611 */
+ /* ../lib/standard/string.nit:619 */
fra.me.REG[1] = BOX_NativeString((char*)raw_alloc((UNTAG_Int(REGB0) * sizeof(char))));
- /* ../lib/standard/string.nit:303 */
+ /* ../lib/standard/string.nit:308 */
REGB0 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 303);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 308);
}
fra.me.REG[2] = ATTR_standard___string___AbstractString____items(fra.me.REG[0]);
/* ../lib/standard/collection/array.nit:24 */
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
- /* ../lib/standard/string.nit:303 */
+ /* ../lib/standard/string.nit:308 */
REGB3 = TAG_Int(0);
REGB2 = TAG_Int(0);
- /* ../lib/standard/string.nit:597 */
+ /* ../lib/standard/string.nit:604 */
(void)memcpy(UNBOX_NativeString(fra.me.REG[1])+UNTAG_Int(REGB2), UNBOX_NativeString(fra.me.REG[2])+UNTAG_Int(REGB3), UNTAG_Int(REGB0));;
- /* ../lib/standard/string.nit:304 */
+ /* ../lib/standard/string.nit:309 */
ATTR_standard___string___AbstractString____items(fra.me.REG[0]) = fra.me.REG[1];
- /* ../lib/standard/string.nit:305 */
+ /* ../lib/standard/string.nit:310 */
ATTR_standard___string___Buffer____capacity(fra.me.REG[0]) = REGB1;
label1: while(0);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___string___Buffer___append[] = "string::Buffer::(abstract_collection::Sequence::append)";
void standard___string___Buffer___append(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[4];} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 308;
+ fra.me.line = 313;
fra.me.meth = LOCATE_standard___string___Buffer___append;
fra.me.has_broke = 0;
fra.me.REG_size = 5;
fra.me.REG[4] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ../lib/standard/string.nit:308 */
+ /* ../lib/standard/string.nit:313 */
fra.me.REG[2] = fra.me.REG[0];
fra.me.REG[3] = fra.me.REG[1];
- /* ../lib/standard/string.nit:310 */
+ /* ../lib/standard/string.nit:315 */
REGB0 = TAG_Bool(VAL_ISA(fra.me.REG[3], COLOR_standard___string___String, ID_standard___string___String)) /*cast String*/;
if (UNTAG_Bool(REGB0)) {
/* ../lib/standard/collection/array.nit:24 */
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[3]);
- /* ../lib/standard/string.nit:312 */
+ /* ../lib/standard/string.nit:317 */
REGB1 = TAG_Bool(ATTR_standard___string___Buffer____capacity(fra.me.REG[2])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___string, 312);
+ nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___string, 317);
}
REGB1 = ATTR_standard___string___Buffer____capacity(fra.me.REG[2]);
/* ../lib/standard/collection/array.nit:24 */
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB2 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB0));
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(REGB2));
- /* ../lib/standard/string.nit:312 */
+ /* ../lib/standard/string.nit:317 */
if (UNTAG_Bool(REGB2)) {
/* ../lib/standard/collection/array.nit:24 */
REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2])!=NIT_NULL);
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB2 = TAG_Int(UNTAG_Int(REGB2)+UNTAG_Int(REGB0));
- /* ../lib/standard/string.nit:312 */
+ /* ../lib/standard/string.nit:317 */
CALL_standard___collection___array___AbstractArray___enlarge(fra.me.REG[2])(fra.me.REG[2], REGB2);
}
- /* ../lib/standard/string.nit:313 */
+ /* ../lib/standard/string.nit:318 */
fra.me.REG[3] = CALL_standard___string___AbstractString___items(fra.me.REG[3])(fra.me.REG[3]);
REGB2 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[2])!=NIT_NULL);
if (UNTAG_Bool(REGB2)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 313);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 318);
}
fra.me.REG[4] = ATTR_standard___string___AbstractString____items(fra.me.REG[2]);
REGB2 = TAG_Int(0);
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
- /* ../lib/standard/string.nit:597 */
+ /* ../lib/standard/string.nit:604 */
(void)memcpy(UNBOX_NativeString(fra.me.REG[4])+UNTAG_Int(REGB1), UNBOX_NativeString(fra.me.REG[3])+UNTAG_Int(REGB2), UNTAG_Int(REGB0));;
- /* ../lib/standard/string.nit:314 */
+ /* ../lib/standard/string.nit:319 */
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB0 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB0));
- /* ../lib/standard/string.nit:314 */
+ /* ../lib/standard/string.nit:319 */
ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[2]) = REGB0;
} else {
- /* ../lib/standard/string.nit:316 */
+ /* ../lib/standard/string.nit:321 */
CALL_SUPER_standard___string___Buffer___append(fra.me.REG[0])(fra.me.REG[0], fra.me.REG[1]);
}
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___string___Buffer___to_s[] = "string::Buffer::(string::Object::to_s)";
val_t standard___string___Buffer___to_s(val_t p0){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 320;
+ fra.me.line = 325;
fra.me.meth = LOCATE_standard___string___Buffer___to_s;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB0 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
- /* ../lib/standard/string.nit:323 */
+ /* ../lib/standard/string.nit:328 */
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/string.nit:611 */
+ /* ../lib/standard/string.nit:619 */
fra.me.REG[1] = BOX_NativeString((char*)raw_alloc((UNTAG_Int(REGB1) * sizeof(char))));
- /* ../lib/standard/string.nit:324 */
+ /* ../lib/standard/string.nit:329 */
REGB1 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 324);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 329);
}
fra.me.REG[2] = ATTR_standard___string___AbstractString____items(fra.me.REG[0]);
REGB1 = TAG_Int(0);
REGB2 = TAG_Int(0);
- /* ../lib/standard/string.nit:597 */
+ /* ../lib/standard/string.nit:604 */
(void)memcpy(UNBOX_NativeString(fra.me.REG[1])+UNTAG_Int(REGB2), UNBOX_NativeString(fra.me.REG[2])+UNTAG_Int(REGB1), UNTAG_Int(REGB0));;
/* ../lib/standard/collection/array.nit:24 */
REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0])!=NIT_NULL);
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.nit:327 */
+ /* ../lib/standard/string.nit:332 */
REGB1 = TAG_Char('\0');
- /* ../lib/standard/string.nit:596 */
+ /* ../lib/standard/string.nit:603 */
UNBOX_NativeString(fra.me.REG[1])[UNTAG_Int(REGB2)]=UNTAG_Char(REGB1);;
/* ../lib/standard/collection/array.nit:24 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0])!=NIT_NULL);
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
- /* ../lib/standard/string.nit:329 */
+ /* ../lib/standard/string.nit:334 */
fra.me.REG[1] = NEW_String_standard___string___String___with_native(fra.me.REG[1], REGB1);
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
+static const char LOCATE_standard___string___Buffer_____l[] = "string::Buffer::(kernel::Comparable::<)";
val_t standard___string___Buffer_____l(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___string;
- fra.me.line = 332;
+ fra.me.line = 337;
fra.me.meth = LOCATE_standard___string___Buffer_____l;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___string, 0);
}
- /* ../lib/standard/string.nit:334 */
+ /* ../lib/standard/string.nit:339 */
REGB0 = TAG_Int(0);
/* ../lib/standard/collection/array.nit:24 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0])!=NIT_NULL);
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]);
- /* ../lib/standard/string.nit:337 */
+ /* ../lib/standard/string.nit:342 */
while(1) {
REGB3 = TAG_Bool(VAL_ISA(REGB1, 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 */
REGB3 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:337 */
+ /* ../lib/standard/string.nit:342 */
if (UNTAG_Bool(REGB3)) {
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:232 */
+ /* ../lib/standard/kernel.nit:235 */
REGB3 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB2));
} else {
- /* ../lib/standard/string.nit:337 */
- REGB4 = TAG_Bool(false);
+ /* ../lib/standard/string.nit:342 */
+ REGB4 = TAG_Bool(0);
REGB3 = REGB4;
}
if (UNTAG_Bool(REGB3)) {
- /* ../lib/standard/string.nit:338 */
+ /* ../lib/standard/string.nit:343 */
REGB3 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[0])(fra.me.REG[0], REGB0);
- /* ../lib/standard/kernel.nit:413 */
+ /* ../lib/standard/kernel.nit:416 */
REGB3 = TAG_Int((unsigned char)UNTAG_Char(REGB3));
- /* ../lib/standard/string.nit:339 */
+ /* ../lib/standard/string.nit:344 */
REGB4 = CALL_standard___collection___abstract_collection___SequenceRead_____bra(fra.me.REG[1])(fra.me.REG[1], REGB0);
- /* ../lib/standard/kernel.nit:413 */
+ /* ../lib/standard/kernel.nit:416 */
REGB4 = TAG_Int((unsigned char)UNTAG_Char(REGB4));
REGB5 = TAG_Bool(VAL_ISA(REGB4, VTCOLOR_standard___kernel___Comparable___OTHER(REGB3), VTID_standard___kernel___Comparable___OTHER(REGB3))) /*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 */
REGB5 = TAG_Bool(UNTAG_Int(REGB3)<UNTAG_Int(REGB4));
- /* ../lib/standard/string.nit:340 */
+ /* ../lib/standard/string.nit:345 */
if (UNTAG_Bool(REGB5)) {
- /* ../lib/standard/string.nit:341 */
- REGB5 = TAG_Bool(true);
+ /* ../lib/standard/string.nit:346 */
+ REGB5 = TAG_Bool(1);
goto label1;
} else {
REGB6 = TAG_Bool(VAL_ISA(REGB3, VTCOLOR_standard___kernel___Comparable___OTHER(REGB4), VTID_standard___kernel___Comparable___OTHER(REGB4))) /*cast OTHER*/;
} 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(REGB4)<UNTAG_Int(REGB3));
- /* ../lib/standard/string.nit:342 */
+ /* ../lib/standard/string.nit:347 */
if (UNTAG_Bool(REGB3)) {
- /* ../lib/standard/string.nit:343 */
- REGB3 = TAG_Bool(false);
+ /* ../lib/standard/string.nit:348 */
+ REGB3 = TAG_Bool(0);
REGB5 = REGB3;
goto label1;
}
}
- /* ../lib/standard/string.nit:345 */
+ /* ../lib/standard/string.nit:350 */
REGB3 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB3 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB3));
- /* ../lib/standard/string.nit:345 */
+ /* ../lib/standard/string.nit:350 */
REGB0 = REGB3;
} else {
- /* ../lib/standard/string.nit:337 */
+ /* ../lib/standard/string.nit:342 */
goto label2;
}
}
} 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(REGB2));
- /* ../lib/standard/string.nit:347 */
+ /* ../lib/standard/string.nit:352 */
if (UNTAG_Bool(REGB2)) {
- /* ../lib/standard/string.nit:348 */
- REGB2 = TAG_Bool(true);
+ /* ../lib/standard/string.nit:353 */
+ REGB2 = TAG_Bool(1);
REGB5 = REGB2;
goto label1;
} else {
- /* ../lib/standard/string.nit:350 */
- REGB2 = TAG_Bool(false);
+ /* ../lib/standard/string.nit:355 */
+ REGB2 = TAG_Bool(0);
REGB5 = REGB2;
goto label1;
}
stack_frame_head = fra.me.prev;
return REGB5;
}
+static const char LOCATE_standard___string___Buffer___init[] = "string::Buffer::init";
void standard___string___Buffer___init(val_t p0, int* init_table){
int itpos2 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___string___Buffer].i;
struct {struct stack_frame_t me;} fra;
if (init_table[itpos2]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 354;
+ fra.me.line = 359;
fra.me.meth = LOCATE_standard___string___Buffer___init;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
fra.me.nitni_local_ref_head = NULL;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ../lib/standard/string.nit:357 */
+ /* ../lib/standard/string.nit:362 */
REGB0 = TAG_Int(5);
CALL_standard___string___Buffer___with_capacity(fra.me.REG[0])(fra.me.REG[0], REGB0, init_table);
stack_frame_head = fra.me.prev;
init_table[itpos2] = 1;
return;
}
+static const char LOCATE_standard___string___Buffer___from[] = "string::Buffer::from";
void standard___string___Buffer___from(val_t p0, val_t p1, int* init_table){
int itpos3 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___string___Buffer].i;
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
if (init_table[itpos3]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 360;
+ fra.me.line = 365;
fra.me.meth = LOCATE_standard___string___Buffer___from;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
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.nit:362 */
+ /* ../lib/standard/string.nit:367 */
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/string.nit:362 */
+ /* ../lib/standard/string.nit:367 */
ATTR_standard___string___Buffer____capacity(fra.me.REG[0]) = REGB1;
/* ../lib/standard/collection/array.nit:24 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL);
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.nit:363 */
+ /* ../lib/standard/string.nit:368 */
ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]) = REGB1;
- /* ../lib/standard/string.nit:364 */
+ /* ../lib/standard/string.nit:369 */
REGB1 = TAG_Bool(ATTR_standard___string___Buffer____capacity(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___string, 364);
+ nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___string, 369);
}
REGB1 = ATTR_standard___string___Buffer____capacity(fra.me.REG[0]);
- /* ../lib/standard/string.nit:611 */
+ /* ../lib/standard/string.nit:619 */
fra.me.REG[2] = BOX_NativeString((char*)raw_alloc((UNTAG_Int(REGB1) * sizeof(char))));
- /* ../lib/standard/string.nit:364 */
+ /* ../lib/standard/string.nit:369 */
ATTR_standard___string___AbstractString____items(fra.me.REG[0]) = fra.me.REG[2];
- /* ../lib/standard/string.nit:365 */
+ /* ../lib/standard/string.nit:370 */
fra.me.REG[1] = CALL_standard___string___AbstractString___items(fra.me.REG[1])(fra.me.REG[1]);
REGB1 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 365);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 370);
}
fra.me.REG[2] = ATTR_standard___string___AbstractString____items(fra.me.REG[0]);
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string, 365);
+ nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___string, 370);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
REGB0 = TAG_Int(0);
REGB2 = TAG_Int(0);
- /* ../lib/standard/string.nit:597 */
+ /* ../lib/standard/string.nit:604 */
(void)memcpy(UNBOX_NativeString(fra.me.REG[2])+UNTAG_Int(REGB2), UNBOX_NativeString(fra.me.REG[1])+UNTAG_Int(REGB0), UNTAG_Int(REGB1));;
stack_frame_head = fra.me.prev;
init_table[itpos3] = 1;
return;
}
+static const char LOCATE_standard___string___Buffer___with_capacity[] = "string::Buffer::with_capacity";
void standard___string___Buffer___with_capacity(val_t p0, val_t p1, int* init_table){
int itpos4 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___string___Buffer].i;
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
if (init_table[itpos4]) return;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 368;
+ fra.me.line = 373;
fra.me.meth = LOCATE_standard___string___Buffer___with_capacity;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
REGB0 = p1;
- /* ../lib/standard/string.nit:371 */
+ /* ../lib/standard/string.nit:376 */
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.nit:371 */
+ /* ../lib/standard/string.nit:376 */
if (UNTAG_Bool(REGB1)) {
} else {
- nit_abort("Assert failed", NULL, LOCATE_standard___string, 371);
+ nit_abort("Assert failed", NULL, LOCATE_standard___string, 376);
}
- /* ../lib/standard/string.nit:373 */
+ /* ../lib/standard/string.nit:378 */
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/string.nit:611 */
+ /* ../lib/standard/string.nit:619 */
fra.me.REG[1] = BOX_NativeString((char*)raw_alloc((UNTAG_Int(REGB1) * sizeof(char))));
- /* ../lib/standard/string.nit:373 */
+ /* ../lib/standard/string.nit:378 */
ATTR_standard___string___AbstractString____items(fra.me.REG[0]) = fra.me.REG[1];
- /* ../lib/standard/string.nit:374 */
+ /* ../lib/standard/string.nit:379 */
ATTR_standard___string___Buffer____capacity(fra.me.REG[0]) = REGB0;
- /* ../lib/standard/string.nit:375 */
+ /* ../lib/standard/string.nit:380 */
REGB0 = TAG_Int(0);
ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]) = REGB0;
stack_frame_head = fra.me.prev;
init_table[itpos4] = 1;
return;
}
+static const char LOCATE_standard___string___Buffer_____eqeq[] = "string::Buffer::(kernel::Object::==)";
val_t standard___string___Buffer_____eqeq(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___string;
- fra.me.line = 378;
+ fra.me.line = 383;
fra.me.meth = LOCATE_standard___string___Buffer_____eqeq;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ../lib/standard/string.nit:380 */
+ /* ../lib/standard/string.nit:385 */
REGB0 = TAG_Bool((fra.me.REG[1]!=NIT_NULL) && VAL_ISA(fra.me.REG[1], COLOR_standard___string___Buffer, ID_standard___string___Buffer)) /*cast Buffer*/;
REGB0 = TAG_Bool(!UNTAG_Bool(REGB0));
if (UNTAG_Bool(REGB0)) {
- REGB0 = TAG_Bool(true);
+ REGB0 = TAG_Bool(1);
} else {
REGB1 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
REGB0 = REGB1;
}
if (UNTAG_Bool(REGB0)) {
- REGB0 = TAG_Bool(false);
+ REGB0 = TAG_Bool(0);
goto label1;
}
/* ../lib/standard/collection/array.nit:24 */
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
- /* ../lib/standard/string.nit:382 */
+ /* ../lib/standard/string.nit:387 */
REGB2 = TAG_Bool(fra.me.REG[1]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___string, 382);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___string, 387);
}
/* ../lib/standard/collection/array.nit:24 */
REGB2 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1])!=NIT_NULL);
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB2 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[1]);
- /* ../lib/standard/string.nit:382 */
+ /* ../lib/standard/string.nit:387 */
REGB3 = TAG_Bool(IS_EQUAL_OO(REGB2,REGB1));
if (UNTAG_Bool(REGB3)) {
} else {
- /* ../lib/standard/kernel.nit:227 */
+ /* ../lib/standard/kernel.nit:230 */
REGB2 = TAG_Bool((REGB2)==(REGB1));
- /* ../lib/standard/string.nit:382 */
+ /* ../lib/standard/string.nit:387 */
REGB3 = REGB2;
}
REGB3 = TAG_Bool(!UNTAG_Bool(REGB3));
if (UNTAG_Bool(REGB3)) {
- REGB3 = TAG_Bool(false);
+ REGB3 = TAG_Bool(0);
REGB0 = REGB3;
goto label1;
}
- /* ../lib/standard/string.nit:383 */
+ /* ../lib/standard/string.nit:388 */
REGB3 = TAG_Int(0);
- /* ../lib/standard/string.nit:384 */
+ /* ../lib/standard/string.nit:389 */
REGB2 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB2)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 384);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 389);
}
fra.me.REG[0] = ATTR_standard___string___AbstractString____items(fra.me.REG[0]);
- /* ../lib/standard/string.nit:385 */
+ /* ../lib/standard/string.nit:390 */
REGB2 = TAG_Bool(ATTR_standard___string___AbstractString____items(fra.me.REG[1])!=NIT_NULL);
if (UNTAG_Bool(REGB2)) {
} else {
- nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 385);
+ nit_abort("Uninitialized attribute %s", "_items", LOCATE_standard___string, 390);
}
fra.me.REG[1] = ATTR_standard___string___AbstractString____items(fra.me.REG[1]);
- /* ../lib/standard/string.nit:386 */
+ /* ../lib/standard/string.nit:391 */
while(1) {
REGB2 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB3), VTID_standard___kernel___Comparable___OTHER(REGB3))) /*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(REGB3)<UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:386 */
+ /* ../lib/standard/string.nit:391 */
if (UNTAG_Bool(REGB2)) {
- /* ../lib/standard/string.nit:595 */
+ /* ../lib/standard/string.nit:602 */
REGB2 = TAG_Char(UNBOX_NativeString(fra.me.REG[0])[UNTAG_Int(REGB3)]);
REGB4 = TAG_Char(UNBOX_NativeString(fra.me.REG[1])[UNTAG_Int(REGB3)]);
- /* ../lib/standard/string.nit:387 */
+ /* ../lib/standard/string.nit:392 */
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.nit:387 */
+ /* ../lib/standard/string.nit:392 */
REGB5 = REGB4;
}
REGB5 = TAG_Bool(!UNTAG_Bool(REGB5));
if (UNTAG_Bool(REGB5)) {
- REGB5 = TAG_Bool(false);
+ REGB5 = TAG_Bool(0);
REGB0 = REGB5;
goto label1;
}
- /* ../lib/standard/string.nit:388 */
+ /* ../lib/standard/string.nit:393 */
REGB5 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB5 = TAG_Int(UNTAG_Int(REGB3)+UNTAG_Int(REGB5));
- /* ../lib/standard/string.nit:388 */
+ /* ../lib/standard/string.nit:393 */
REGB3 = REGB5;
} else {
- /* ../lib/standard/string.nit:386 */
+ /* ../lib/standard/string.nit:391 */
goto label2;
}
}
label2: while(0);
- /* ../lib/standard/string.nit:390 */
- REGB3 = TAG_Bool(true);
+ /* ../lib/standard/string.nit:395 */
+ REGB3 = TAG_Bool(1);
REGB0 = REGB3;
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___string___Buffer___capacity[] = "string::Buffer::capacity";
val_t standard___string___Buffer___capacity(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;
- fra.me.line = 393;
+ fra.me.line = 398;
fra.me.meth = LOCATE_standard___string___Buffer___capacity;
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.nit:393 */
+ /* ../lib/standard/string.nit:398 */
REGB0 = TAG_Bool(ATTR_standard___string___Buffer____capacity(fra.me.REG[0])!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___string, 393);
+ nit_abort("Uninitialized attribute %s", "_capacity", LOCATE_standard___string, 398);
}
REGB0 = ATTR_standard___string___Buffer____capacity(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___string___Object___to_s[] = "string::Object::to_s";
val_t standard___string___Object___to_s(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___string;
- fra.me.line = 403;
+ fra.me.line = 406;
fra.me.meth = LOCATE_standard___string___Object___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.nit:404 */
+ /* ../lib/standard/string.nit:407 */
fra.me.REG[0] = CALL_standard___string___Object___inspect(fra.me.REG[0])(fra.me.REG[0]);
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___Object___native_class_name[] = "string::Object::native_class_name";
val_t standard___string___Object___native_class_name(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___string;
- fra.me.line = 406;
+ fra.me.line = 409;
fra.me.meth = LOCATE_standard___string___Object___native_class_name;
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.nit:406 */
+ /* ../lib/standard/string.nit:409 */
fra.me.REG[0] = BOX_NativeString(VAL2VFT(fra.me.REG[0])[2].cname);;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___Object___class_name[] = "string::Object::class_name";
val_t standard___string___Object___class_name(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___string;
- fra.me.line = 409;
+ fra.me.line = 412;
fra.me.meth = LOCATE_standard___string___Object___class_name;
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.nit:411 */
+ /* ../lib/standard/string.nit:416 */
fra.me.REG[0] = CALL_standard___string___Object___native_class_name(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[0] = NEW_String_standard___string___String___from_cstring(fra.me.REG[0]);
goto label1;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___Object___inspect[] = "string::Object::inspect";
val_t standard___string___Object___inspect(val_t p0){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
static val_t once_value_2; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 413;
+ fra.me.line = 418;
fra.me.meth = LOCATE_standard___string___Object___inspect;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ../lib/standard/string.nit:417 */
+ /* ../lib/standard/string.nit:422 */
REGB0 = TAG_Int(3);
fra.me.REG[1] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_1) {
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
+static const char LOCATE_standard___string___Object___inspect_head[] = "string::Object::inspect_head";
val_t standard___string___Object___inspect_head(val_t p0){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
static val_t once_value_3; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 420;
+ fra.me.line = 425;
fra.me.meth = LOCATE_standard___string___Object___inspect_head;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ../lib/standard/string.nit:424 */
+ /* ../lib/standard/string.nit:429 */
REGB0 = TAG_Int(5);
fra.me.REG[1] = NEW_Array_standard___collection___array___Array___with_capacity(REGB0);
if (!once_value_1) {
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
+static const char LOCATE_standard___string___Object___args[] = "string::Object::args";
val_t standard___string___Object___args(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___string;
- fra.me.line = 427;
+ fra.me.line = 432;
fra.me.meth = LOCATE_standard___string___Object___args;
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.nit:429 */
+ /* ../lib/standard/string.nit:434 */
fra.me.REG[0] = CALL_standard___kernel___Object___sys(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[0] = CALL_standard___string___Object___args(fra.me.REG[0])(fra.me.REG[0]);
goto label1;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___Bool___to_s[] = "string::Bool::(string::Object::to_s)";
val_t standard___string___Bool___to_s(val_t p0){
struct {struct stack_frame_t me; val_t MORE_REG[1];} fra;
val_t REGB0;
static val_t once_value_5; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 434;
+ fra.me.line = 439;
fra.me.meth = LOCATE_standard___string___Bool___to_s;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[1] = NIT_NULL;
REGB0 = p0;
- /* ../lib/standard/string.nit:436 */
+ /* ../lib/standard/string.nit:441 */
if (UNTAG_Bool(REGB0)) {
- /* ../lib/standard/string.nit:437 */
+ /* ../lib/standard/string.nit:442 */
if (!once_value_1) {
if (!once_value_2) {
fra.me.REG[0] = BOX_NativeString("true");
fra.me.REG[0] = fra.me.REG[0];
goto label3;
} else {
- /* ../lib/standard/string.nit:439 */
+ /* ../lib/standard/string.nit:444 */
if (!once_value_4) {
if (!once_value_5) {
fra.me.REG[1] = BOX_NativeString("false");
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___Int___fill_buffer[] = "string::Int::fill_buffer";
void standard___string___Int___fill_buffer(val_t p0, val_t p1, val_t p2, val_t p3){
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;
- fra.me.line = 445;
+ fra.me.line = 450;
fra.me.meth = LOCATE_standard___string___Int___fill_buffer;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
fra.me.REG[0] = p1;
REGB1 = p2;
REGB2 = p3;
- /* ../lib/standard/string.nit:451 */
+ /* ../lib/standard/string.nit:456 */
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:232 */
+ /* ../lib/standard/kernel.nit:235 */
REGB2 = TAG_Bool(UNTAG_Int(REGB0)<UNTAG_Int(REGB2));
- /* ../lib/standard/string.nit:451 */
+ /* ../lib/standard/string.nit:456 */
if (UNTAG_Bool(REGB2)) {
- /* ../lib/standard/kernel.nit:236 */
+ /* ../lib/standard/kernel.nit:239 */
REGB2 = TAG_Int(-UNTAG_Int(REGB0));
- /* ../lib/standard/string.nit:453 */
+ /* ../lib/standard/string.nit:458 */
REGB3 = TAG_Int(0);
REGB4 = TAG_Char('-');
CALL_standard___collection___abstract_collection___Sequence_____braeq(fra.me.REG[0])(fra.me.REG[0], REGB3, REGB4);
} else {
- /* ../lib/standard/string.nit:454 */
+ /* ../lib/standard/string.nit:459 */
REGB4 = TAG_Int(0);
REGB3 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB4));
if (UNTAG_Bool(REGB3)) {
} else {
- /* ../lib/standard/kernel.nit:227 */
+ /* ../lib/standard/kernel.nit:230 */
REGB4 = TAG_Bool((REGB0)==(REGB4));
- /* ../lib/standard/string.nit:454 */
+ /* ../lib/standard/string.nit:459 */
REGB3 = REGB4;
}
if (UNTAG_Bool(REGB3)) {
- /* ../lib/standard/string.nit:455 */
+ /* ../lib/standard/string.nit:460 */
REGB3 = TAG_Int(0);
REGB4 = TAG_Char('0');
CALL_standard___collection___abstract_collection___Sequence_____braeq(fra.me.REG[0])(fra.me.REG[0], REGB3, REGB4);
- /* ../lib/standard/string.nit:456 */
+ /* ../lib/standard/string.nit:461 */
goto label1;
} else {
- /* ../lib/standard/string.nit:458 */
+ /* ../lib/standard/string.nit:463 */
REGB2 = REGB0;
}
}
- /* ../lib/standard/string.nit:461 */
+ /* ../lib/standard/string.nit:466 */
REGB0 = CALL_standard___kernel___Int___digit_count(REGB0)(REGB0, REGB1);
REGB4 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB4 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB4));
- /* ../lib/standard/string.nit:462 */
+ /* ../lib/standard/string.nit:467 */
while(1) {
REGB0 = TAG_Int(0);
REGB3 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB4), VTID_standard___kernel___Comparable___OTHER(REGB4))) /*cast OTHER*/;
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ../lib/standard/kernel.nit:233 */
+ /* ../lib/standard/kernel.nit:236 */
REGB0 = TAG_Bool(UNTAG_Int(REGB4)>=UNTAG_Int(REGB0));
- /* ../lib/standard/string.nit:462 */
+ /* ../lib/standard/string.nit:467 */
if (UNTAG_Bool(REGB0)) {
REGB0 = TAG_Int(0);
REGB3 = TAG_Bool(VAL_ISA(REGB0, VTCOLOR_standard___kernel___Comparable___OTHER(REGB2), VTID_standard___kernel___Comparable___OTHER(REGB2))) /*cast OTHER*/;
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ../lib/standard/kernel.nit:234 */
+ /* ../lib/standard/kernel.nit:237 */
REGB0 = TAG_Bool(UNTAG_Int(REGB2)>UNTAG_Int(REGB0));
} else {
- /* ../lib/standard/string.nit:462 */
- REGB3 = TAG_Bool(false);
+ /* ../lib/standard/string.nit:467 */
+ REGB3 = TAG_Bool(0);
REGB0 = REGB3;
}
if (UNTAG_Bool(REGB0)) {
- /* ../lib/standard/kernel.nit:240 */
+ /* ../lib/standard/kernel.nit:243 */
REGB0 = TAG_Int(UNTAG_Int(REGB2)%UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:463 */
+ /* ../lib/standard/string.nit:468 */
REGB0 = CALL_standard___kernel___Int___to_c(REGB0)(REGB0);
CALL_standard___collection___abstract_collection___Sequence_____braeq(fra.me.REG[0])(fra.me.REG[0], REGB4, REGB0);
- /* ../lib/standard/kernel.nit:239 */
+ /* ../lib/standard/kernel.nit:242 */
REGB0 = TAG_Int(UNTAG_Int(REGB2)/UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:464 */
+ /* ../lib/standard/string.nit:469 */
REGB2 = REGB0;
- /* ../lib/standard/string.nit:465 */
+ /* ../lib/standard/string.nit:470 */
REGB0 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB0 = TAG_Int(UNTAG_Int(REGB4)-UNTAG_Int(REGB0));
- /* ../lib/standard/string.nit:465 */
+ /* ../lib/standard/string.nit:470 */
REGB4 = REGB0;
} else {
- /* ../lib/standard/string.nit:462 */
+ /* ../lib/standard/string.nit:467 */
goto label2;
}
}
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___string___Int___to_s[] = "string::Int::(string::Object::to_s)";
val_t standard___string___Int___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;
- fra.me.line = 469;
+ fra.me.line = 474;
fra.me.meth = LOCATE_standard___string___Int___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;
REGB0 = p0;
- /* ../lib/standard/string.nit:470 */
+ /* ../lib/standard/string.nit:475 */
REGB1 = TAG_Int(10);
- REGB2 = TAG_Bool(true);
+ REGB2 = TAG_Bool(1);
fra.me.REG[0] = CALL_standard___string___Int___to_base(REGB0)(REGB0, REGB1, REGB2);
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___Int___to_hex[] = "string::Int::to_hex";
val_t standard___string___Int___to_hex(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;
- fra.me.line = 472;
+ fra.me.line = 477;
fra.me.meth = LOCATE_standard___string___Int___to_hex;
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;
- /* ../lib/standard/string.nit:473 */
+ /* ../lib/standard/string.nit:478 */
REGB1 = TAG_Int(16);
- REGB2 = TAG_Bool(false);
+ REGB2 = TAG_Bool(0);
fra.me.REG[0] = CALL_standard___string___Int___to_base(REGB0)(REGB0, REGB1, REGB2);
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___Int___to_base[] = "string::Int::to_base";
val_t standard___string___Int___to_base(val_t p0, val_t p1, val_t p2){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
static val_t once_value_1; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 475;
+ fra.me.line = 480;
fra.me.meth = LOCATE_standard___string___Int___to_base;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
REGB0 = p0;
REGB1 = p1;
REGB2 = p2;
- /* ../lib/standard/string.nit:478 */
+ /* ../lib/standard/string.nit:483 */
REGB3 = CALL_standard___kernel___Int___digit_count(REGB0)(REGB0, REGB1);
- /* ../lib/standard/string.nit:479 */
+ /* ../lib/standard/string.nit:484 */
if (!once_value_1) {
fra.me.REG[0] = BOX_NativeString(" ");
REGB4 = TAG_Int(1);
fra.me.REG[0] = fra.me.REG[0];
fra.me.REG[0] = CALL_standard___string___String_____star(fra.me.REG[0])(fra.me.REG[0], REGB3);
fra.me.REG[0] = NEW_Buffer_standard___string___Buffer___from(fra.me.REG[0]);
- /* ../lib/standard/string.nit:480 */
+ /* ../lib/standard/string.nit:485 */
CALL_standard___string___Int___fill_buffer(REGB0)(REGB0, fra.me.REG[0], REGB1, REGB2);
- /* ../lib/standard/string.nit:481 */
+ /* ../lib/standard/string.nit:486 */
fra.me.REG[0] = CALL_standard___string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
goto label2;
label2: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___Float___to_s[] = "string::Float::(string::Object::to_s)";
val_t standard___string___Float___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;
- fra.me.line = 486;
+ fra.me.line = 491;
fra.me.meth = LOCATE_standard___string___Float___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.nit:486 */
+ /* ../lib/standard/string.nit:491 */
REGB0 = TAG_Int(6);
fra.me.REG[0] = CALL_standard___string___Float___to_precision(fra.me.REG[0])(fra.me.REG[0], REGB0);
goto label1;
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___Float___to_precision[] = "string::Float::to_precision";
val_t standard___string___Float___to_precision(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[3];} fra;
val_t REGB0;
static val_t once_value_5; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 488;
+ fra.me.line = 493;
fra.me.meth = LOCATE_standard___string___Float___to_precision;
fra.me.has_broke = 0;
fra.me.REG_size = 4;
fra.me.REG[3] = NIT_NULL;
fra.me.REG[0] = p0;
REGB0 = p1;
- /* ../lib/standard/string.nit:491 */
+ /* ../lib/standard/string.nit:496 */
REGB1 = TAG_Int(0);
REGB2 = TAG_Bool(IS_EQUAL_OO(REGB0,REGB1));
if (UNTAG_Bool(REGB2)) {
} else {
- /* ../lib/standard/kernel.nit:227 */
+ /* ../lib/standard/kernel.nit:230 */
REGB1 = TAG_Bool((REGB0)==(REGB1));
- /* ../lib/standard/string.nit:491 */
+ /* ../lib/standard/string.nit:496 */
REGB2 = REGB1;
}
if (UNTAG_Bool(REGB2)) {
- /* ../lib/standard/kernel.nit:216 */
+ /* ../lib/standard/kernel.nit:219 */
REGB2 = TAG_Int((bigint)UNBOX_Float(fra.me.REG[0]));
- /* ../lib/standard/string.nit:491 */
+ /* ../lib/standard/string.nit:496 */
fra.me.REG[1] = CALL_standard___string___Object___to_s(REGB2)(REGB2);
goto label1;
}
- /* ../lib/standard/kernel.nit:216 */
+ /* ../lib/standard/kernel.nit:219 */
REGB2 = TAG_Int((bigint)UNBOX_Float(fra.me.REG[0]));
- /* ../lib/standard/string.nit:494 */
+ /* ../lib/standard/string.nit:499 */
fra.me.REG[2] = BOX_Float(1.0);
- /* ../lib/standard/string.nit:495 */
+ /* ../lib/standard/string.nit:500 */
while(1) {
REGB1 = TAG_Int(0);
REGB3 = TAG_Bool(VAL_ISA(REGB1, VTCOLOR_standard___kernel___Comparable___OTHER(REGB0), VTID_standard___kernel___Comparable___OTHER(REGB0))) /*cast OTHER*/;
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ../lib/standard/kernel.nit:234 */
+ /* ../lib/standard/kernel.nit:237 */
REGB1 = TAG_Bool(UNTAG_Int(REGB0)>UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:495 */
+ /* ../lib/standard/string.nit:500 */
if (UNTAG_Bool(REGB1)) {
- /* ../lib/standard/string.nit:496 */
+ /* ../lib/standard/string.nit:501 */
fra.me.REG[3] = BOX_Float(10.0);
- /* ../lib/standard/kernel.nit:213 */
+ /* ../lib/standard/kernel.nit:216 */
fra.me.REG[3] = BOX_Float(UNBOX_Float(fra.me.REG[2])*UNBOX_Float(fra.me.REG[3]));
- /* ../lib/standard/string.nit:496 */
+ /* ../lib/standard/string.nit:501 */
fra.me.REG[2] = fra.me.REG[3];
- /* ../lib/standard/string.nit:497 */
+ /* ../lib/standard/string.nit:502 */
REGB1 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB1 = TAG_Int(UNTAG_Int(REGB0)-UNTAG_Int(REGB1));
- /* ../lib/standard/string.nit:497 */
+ /* ../lib/standard/string.nit:502 */
REGB0 = REGB1;
} else {
- /* ../lib/standard/string.nit:495 */
+ /* ../lib/standard/string.nit:500 */
goto label2;
}
}
label2: while(0);
- /* ../lib/standard/kernel.nit:244 */
+ /* ../lib/standard/kernel.nit:247 */
fra.me.REG[3] = BOX_Float((float)UNTAG_Int(REGB2));
- /* ../lib/standard/kernel.nit:212 */
+ /* ../lib/standard/kernel.nit:215 */
fra.me.REG[3] = BOX_Float(UNBOX_Float(fra.me.REG[0])-UNBOX_Float(fra.me.REG[3]));
- /* ../lib/standard/kernel.nit:213 */
- fra.me.REG[2] = BOX_Float(UNBOX_Float(fra.me.REG[3])*UNBOX_Float(fra.me.REG[2]));
/* ../lib/standard/kernel.nit:216 */
+ fra.me.REG[2] = BOX_Float(UNBOX_Float(fra.me.REG[3])*UNBOX_Float(fra.me.REG[2]));
+ /* ../lib/standard/kernel.nit:219 */
REGB0 = TAG_Int((bigint)UNBOX_Float(fra.me.REG[2]));
- /* ../lib/standard/string.nit:500 */
+ /* ../lib/standard/string.nit:505 */
REGB1 = TAG_Int(5);
fra.me.REG[2] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
if (!once_value_3) {
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
+static const char LOCATE_standard___string___Char___to_s[] = "string::Char::(string::Object::to_s)";
val_t standard___string___Char___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;
- fra.me.line = 505;
+ fra.me.line = 510;
fra.me.meth = LOCATE_standard___string___Char___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;
REGB0 = p0;
- /* ../lib/standard/string.nit:507 */
+ /* ../lib/standard/string.nit:512 */
REGB1 = TAG_Int(1);
fra.me.REG[0] = NEW_Buffer_standard___string___Buffer___with_capacity(REGB1);
- /* ../lib/standard/string.nit:508 */
+ /* ../lib/standard/string.nit:513 */
REGB1 = TAG_Int(0);
CALL_standard___collection___abstract_collection___Sequence_____braeq(fra.me.REG[0])(fra.me.REG[0], REGB1, REGB0);
- /* ../lib/standard/string.nit:509 */
+ /* ../lib/standard/string.nit:514 */
fra.me.REG[0] = CALL_standard___string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___Collection___to_s[] = "string::Collection::(string::Object::to_s)";
val_t standard___string___Collection___to_s(val_t p0){
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___string;
- fra.me.line = 514;
+ fra.me.line = 519;
fra.me.meth = LOCATE_standard___string___Collection___to_s;
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;
- /* ../lib/standard/string.nit:517 */
+ /* ../lib/standard/string.nit:522 */
fra.me.REG[1] = NEW_Buffer_standard___string___Buffer___init();
CALL_standard___collection___abstract_collection___Collection___iterate(fra.me.REG[0])(fra.me.REG[0], (&(fra.me)), ((fun_t)OC_standard___string___Collection___to_s_1));
- /* ../lib/standard/string.nit:519 */
+ /* ../lib/standard/string.nit:524 */
fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
goto label2;
label2: while(0);
val_t REGB1;
fun_t CREG[1];
val_t tmp;
- /* ../lib/standard/string.nit:518 */
+ /* ../lib/standard/string.nit:523 */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
fra.me.line = 0;
} 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);
if (UNTAG_Bool(REGB0)) {
REGB0 = TAG_Bool(fra.me.REG[0]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___string, 518);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___string, 523);
}
fra.me.REG[0] = CALL_standard___string___Object___to_s(fra.me.REG[0])(fra.me.REG[0]);
CALL_standard___collection___abstract_collection___Sequence___append(closctx->REG[1])(closctx->REG[1], fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___string___Collection___join[] = "string::Collection::join";
val_t standard___string___Collection___join(val_t p0, val_t p1){
struct {struct stack_frame_t me; val_t MORE_REG[5];} fra;
val_t REGB0;
static val_t once_value_1; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 522;
+ fra.me.line = 527;
fra.me.meth = LOCATE_standard___string___Collection___join;
fra.me.has_broke = 0;
fra.me.REG_size = 6;
fra.me.REG[5] = NIT_NULL;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
- /* ../lib/standard/string.nit:525 */
+ /* ../lib/standard/string.nit:530 */
REGB0 = CALL_standard___collection___abstract_collection___Collection___is_empty(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
if (!once_value_1) {
fra.me.REG[2] = fra.me.REG[2];
goto label2;
}
- /* ../lib/standard/string.nit:527 */
+ /* ../lib/standard/string.nit:532 */
fra.me.REG[3] = NEW_Buffer_standard___string___Buffer___init();
- /* ../lib/standard/string.nit:530 */
+ /* ../lib/standard/string.nit:535 */
fra.me.REG[0] = CALL_standard___collection___abstract_collection___Collection___iterator(fra.me.REG[0])(fra.me.REG[0]);
- /* ../lib/standard/string.nit:531 */
+ /* ../lib/standard/string.nit:536 */
fra.me.REG[4] = CALL_standard___collection___abstract_collection___Iterator___item(fra.me.REG[0])(fra.me.REG[0]);
- /* ../lib/standard/string.nit:532 */
+ /* ../lib/standard/string.nit:537 */
REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[4]==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[4])(fra.me.REG[4], NIT_NULL);
if (UNTAG_Bool(REGB0)) {
REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___string, 532);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___string, 537);
}
fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
}
- /* ../lib/standard/string.nit:535 */
+ /* ../lib/standard/string.nit:540 */
CALL_standard___collection___abstract_collection___Iterator___next(fra.me.REG[0])(fra.me.REG[0]);
- /* ../lib/standard/string.nit:536 */
+ /* ../lib/standard/string.nit:541 */
while(1) {
REGB0 = CALL_standard___collection___abstract_collection___Iterator___is_ok(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
- /* ../lib/standard/string.nit:537 */
+ /* ../lib/standard/string.nit:542 */
CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[1]);
- /* ../lib/standard/string.nit:538 */
+ /* ../lib/standard/string.nit:543 */
fra.me.REG[5] = CALL_standard___collection___abstract_collection___Iterator___item(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[4] = fra.me.REG[5];
- /* ../lib/standard/string.nit:539 */
+ /* ../lib/standard/string.nit:544 */
REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[4]==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[4])(fra.me.REG[4], NIT_NULL);
if (UNTAG_Bool(REGB0)) {
REGB0 = TAG_Bool(fra.me.REG[4]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___string, 539);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___string, 544);
}
fra.me.REG[5] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[3])(fra.me.REG[3], fra.me.REG[5]);
}
- /* ../lib/standard/string.nit:540 */
+ /* ../lib/standard/string.nit:545 */
CALL_standard___collection___abstract_collection___Iterator___next(fra.me.REG[0])(fra.me.REG[0]);
} else {
- /* ../lib/standard/string.nit:536 */
+ /* ../lib/standard/string.nit:541 */
goto label3;
}
}
label3: while(0);
- /* ../lib/standard/string.nit:542 */
+ /* ../lib/standard/string.nit:547 */
fra.me.REG[3] = CALL_standard___string___Object___to_s(fra.me.REG[3])(fra.me.REG[3]);
fra.me.REG[2] = fra.me.REG[3];
goto label2;
stack_frame_head = fra.me.prev;
return fra.me.REG[2];
}
+static const char LOCATE_standard___string___Array___to_s[] = "string::Array::(string::Object::to_s)";
val_t standard___string___Array___to_s(val_t p0){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 547;
+ fra.me.line = 552;
fra.me.meth = LOCATE_standard___string___Array___to_s;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ../lib/standard/string.nit:550 */
+ /* ../lib/standard/string.nit:555 */
fra.me.REG[1] = NEW_Buffer_standard___string___Buffer___init();
- /* ../lib/standard/string.nit:551 */
+ /* ../lib/standard/string.nit:556 */
REGB0 = TAG_Int(0);
/* ../lib/standard/collection/array.nit:24 */
REGB1 = TAG_Bool(ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0])!=NIT_NULL);
nit_abort("Uninitialized attribute %s", "_length", LOCATE_standard___collection___array, 24);
}
REGB1 = ATTR_standard___collection___array___AbstractArrayRead____length(fra.me.REG[0]);
- /* ../lib/standard/string.nit:553 */
+ /* ../lib/standard/string.nit:558 */
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(REGB1));
- /* ../lib/standard/string.nit:553 */
+ /* ../lib/standard/string.nit:558 */
if (UNTAG_Bool(REGB2)) {
/* ../lib/standard/collection/array.nit:278 */
fra.me.REG[2] = fra.me.REG[0];
} else {
nit_abort("Cast failed", NULL, LOCATE_standard___kernel, 0);
}
- /* ../lib/standard/kernel.nit:233 */
+ /* ../lib/standard/kernel.nit:236 */
REGB3 = TAG_Bool(UNTAG_Int(REGB2)>=UNTAG_Int(REGB3));
/* ../lib/standard/collection/array.nit:280 */
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(REGB2)<UNTAG_Int(REGB3));
} else {
/* ../lib/standard/collection/array.nit:280 */
- REGB4 = TAG_Bool(false);
+ REGB4 = TAG_Bool(0);
REGB3 = REGB4;
}
if (UNTAG_Bool(REGB3)) {
/* ../lib/standard/collection/array.nit:281 */
goto label1;
label1: while(0);
- /* ../lib/standard/string.nit:555 */
+ /* ../lib/standard/string.nit:560 */
REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
} else {
REGB3 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB3)) {
- REGB3 = TAG_Bool(false);
+ REGB3 = TAG_Bool(0);
REGB2 = REGB3;
} else {
REGB3 = CALL_standard___kernel___Object_____eqeq(fra.me.REG[2])(fra.me.REG[2], NIT_NULL);
if (UNTAG_Bool(REGB2)) {
REGB2 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB2)) {
- nit_abort("Reciever is null", NULL, LOCATE_standard___string, 555);
+ nit_abort("Reciever is null", NULL, LOCATE_standard___string, 560);
}
fra.me.REG[2] = CALL_standard___string___Object___to_s(fra.me.REG[2])(fra.me.REG[2]);
CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[1])(fra.me.REG[1], fra.me.REG[2]);
}
- /* ../lib/standard/string.nit:556 */
+ /* ../lib/standard/string.nit:561 */
REGB2 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB2 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB2));
- /* ../lib/standard/string.nit:556 */
+ /* ../lib/standard/string.nit:561 */
REGB0 = REGB2;
} else {
- /* ../lib/standard/string.nit:553 */
+ /* ../lib/standard/string.nit:558 */
goto label2;
}
}
label2: while(0);
- /* ../lib/standard/string.nit:558 */
+ /* ../lib/standard/string.nit:563 */
fra.me.REG[1] = CALL_standard___string___Object___to_s(fra.me.REG[1])(fra.me.REG[1]);
goto label3;
label3: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
+static const char LOCATE_standard___string___Map___join[] = "string::Map::join";
val_t standard___string___Map___join(val_t p0, val_t p1, val_t p2){
struct {struct stack_frame_t me; val_t MORE_REG[8];} fra;
val_t REGB0;
static val_t once_value_10; /* Once value */
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 563;
+ fra.me.line = 568;
fra.me.meth = LOCATE_standard___string___Map___join;
fra.me.has_broke = 0;
fra.me.REG_size = 9;
fra.me.REG[0] = p0;
fra.me.REG[1] = p1;
fra.me.REG[2] = p2;
- /* ../lib/standard/string.nit:566 */
+ /* ../lib/standard/string.nit:573 */
REGB0 = CALL_standard___collection___abstract_collection___MapRead___is_empty(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
if (!once_value_1) {
fra.me.REG[3] = fra.me.REG[3];
goto label2;
}
- /* ../lib/standard/string.nit:568 */
+ /* ../lib/standard/string.nit:575 */
fra.me.REG[4] = NEW_Buffer_standard___string___Buffer___init();
- /* ../lib/standard/string.nit:571 */
+ /* ../lib/standard/string.nit:578 */
fra.me.REG[0] = CALL_standard___collection___abstract_collection___MapRead___iterator(fra.me.REG[0])(fra.me.REG[0]);
- /* ../lib/standard/string.nit:572 */
+ /* ../lib/standard/string.nit:579 */
fra.me.REG[5] = CALL_standard___collection___abstract_collection___MapIterator___key(fra.me.REG[0])(fra.me.REG[0]);
- /* ../lib/standard/string.nit:573 */
+ /* ../lib/standard/string.nit:580 */
fra.me.REG[6] = CALL_standard___collection___abstract_collection___MapIterator___item(fra.me.REG[0])(fra.me.REG[0]);
- /* ../lib/standard/string.nit:574 */
+ /* ../lib/standard/string.nit:581 */
REGB0 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[6]==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[6])(fra.me.REG[6], NIT_NULL);
fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[7]);
}
- /* ../lib/standard/string.nit:577 */
+ /* ../lib/standard/string.nit:584 */
CALL_standard___collection___abstract_collection___MapIterator___next(fra.me.REG[0])(fra.me.REG[0]);
- /* ../lib/standard/string.nit:578 */
+ /* ../lib/standard/string.nit:585 */
while(1) {
REGB0 = CALL_standard___collection___abstract_collection___MapIterator___is_ok(fra.me.REG[0])(fra.me.REG[0]);
if (UNTAG_Bool(REGB0)) {
- /* ../lib/standard/string.nit:579 */
+ /* ../lib/standard/string.nit:586 */
CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[1]);
- /* ../lib/standard/string.nit:580 */
+ /* ../lib/standard/string.nit:587 */
fra.me.REG[7] = CALL_standard___collection___abstract_collection___MapIterator___key(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[5] = fra.me.REG[7];
- /* ../lib/standard/string.nit:581 */
+ /* ../lib/standard/string.nit:588 */
fra.me.REG[7] = CALL_standard___collection___abstract_collection___MapIterator___item(fra.me.REG[0])(fra.me.REG[0]);
fra.me.REG[6] = fra.me.REG[7];
- /* ../lib/standard/string.nit:582 */
+ /* ../lib/standard/string.nit:589 */
REGB0 = TAG_Bool(fra.me.REG[6]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[6]==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[6])(fra.me.REG[6], NIT_NULL);
fra.me.REG[7] = CALL_standard___string___Object___to_s(fra.me.REG[7])(fra.me.REG[7]);
CALL_standard___collection___abstract_collection___Sequence___append(fra.me.REG[4])(fra.me.REG[4], fra.me.REG[7]);
}
- /* ../lib/standard/string.nit:583 */
+ /* ../lib/standard/string.nit:590 */
CALL_standard___collection___abstract_collection___MapIterator___next(fra.me.REG[0])(fra.me.REG[0]);
} else {
- /* ../lib/standard/string.nit:578 */
+ /* ../lib/standard/string.nit:585 */
goto label11;
}
}
label11: while(0);
- /* ../lib/standard/string.nit:585 */
+ /* ../lib/standard/string.nit:592 */
fra.me.REG[4] = CALL_standard___string___Object___to_s(fra.me.REG[4])(fra.me.REG[4]);
fra.me.REG[3] = fra.me.REG[4];
goto label2;
stack_frame_head = fra.me.prev;
return fra.me.REG[3];
}
+static const char LOCATE_standard___string___NativeString_____bra[] = "string::NativeString::[]";
val_t standard___string___NativeString_____bra(val_t p0, val_t p1){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 595;
+ fra.me.line = 602;
fra.me.meth = LOCATE_standard___string___NativeString_____bra;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
REGB0 = p1;
- /* ../lib/standard/string.nit:595 */
+ /* ../lib/standard/string.nit:602 */
REGB0 = TAG_Char(UNBOX_NativeString(fra.me.REG[0])[UNTAG_Int(REGB0)]);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___string___NativeString_____braeq[] = "string::NativeString::[]=";
void standard___string___NativeString_____braeq(val_t p0, val_t p1, val_t p2){
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;
- fra.me.line = 596;
+ fra.me.line = 603;
fra.me.meth = LOCATE_standard___string___NativeString_____braeq;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
fra.me.REG[0] = p0;
REGB0 = p1;
REGB1 = p2;
- /* ../lib/standard/string.nit:596 */
+ /* ../lib/standard/string.nit:603 */
UNBOX_NativeString(fra.me.REG[0])[UNTAG_Int(REGB0)]=UNTAG_Char(REGB1);;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___string___NativeString___copy_to[] = "string::NativeString::copy_to";
void standard___string___NativeString___copy_to(val_t p0, val_t p1, val_t p2, val_t p3, val_t p4){
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___string;
- fra.me.line = 597;
+ fra.me.line = 604;
fra.me.meth = LOCATE_standard___string___NativeString___copy_to;
fra.me.has_broke = 0;
fra.me.REG_size = 2;
REGB0 = p2;
REGB1 = p3;
REGB2 = p4;
- /* ../lib/standard/string.nit:597 */
+ /* ../lib/standard/string.nit:604 */
(void)memcpy(UNBOX_NativeString(fra.me.REG[1])+UNTAG_Int(REGB2), UNBOX_NativeString(fra.me.REG[0])+UNTAG_Int(REGB1), UNTAG_Int(REGB0));;
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___string___NativeString___cstring_length[] = "string::NativeString::cstring_length";
val_t standard___string___NativeString___cstring_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;
- fra.me.line = 599;
+ fra.me.line = 606;
fra.me.meth = LOCATE_standard___string___NativeString___cstring_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.nit:602 */
+ /* ../lib/standard/string.nit:609 */
REGB0 = TAG_Int(0);
- /* ../lib/standard/string.nit:603 */
+ /* ../lib/standard/string.nit:610 */
while(1) {
- /* ../lib/standard/string.nit:595 */
+ /* ../lib/standard/string.nit:602 */
REGB1 = TAG_Char(UNBOX_NativeString(fra.me.REG[0])[UNTAG_Int(REGB0)]);
- /* ../lib/standard/string.nit:603 */
+ /* ../lib/standard/string.nit:610 */
REGB2 = TAG_Char('\0');
REGB3 = TAG_Bool(IS_EQUAL_OO(REGB1,REGB2));
if (UNTAG_Bool(REGB3)) {
} else {
- /* ../lib/standard/kernel.nit:378 */
+ /* ../lib/standard/kernel.nit:381 */
REGB2 = TAG_Bool((REGB1)==(REGB2));
- /* ../lib/standard/string.nit:603 */
+ /* ../lib/standard/string.nit:610 */
REGB3 = REGB2;
}
REGB3 = TAG_Bool(!UNTAG_Bool(REGB3));
if (UNTAG_Bool(REGB3)) {
REGB3 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB3 = TAG_Int(UNTAG_Int(REGB0)+UNTAG_Int(REGB3));
- /* ../lib/standard/string.nit:603 */
+ /* ../lib/standard/string.nit:610 */
REGB0 = REGB3;
} else {
goto label1;
}
}
label1: while(0);
- /* ../lib/standard/string.nit:604 */
+ /* ../lib/standard/string.nit:611 */
goto label2;
label2: while(0);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___string___NativeString___atoi[] = "string::NativeString::atoi";
val_t standard___string___NativeString___atoi(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;
- fra.me.line = 606;
+ fra.me.line = 613;
fra.me.meth = LOCATE_standard___string___NativeString___atoi;
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.nit:606 */
+ /* ../lib/standard/string.nit:613 */
REGB0 = TAG_Int(atoi(UNBOX_NativeString(fra.me.REG[0])));
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___string___NativeString___atof[] = "string::NativeString::atof";
+val_t standard___string___NativeString___atof(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___string;
+ fra.me.line = 614;
+ fra.me.meth = LOCATE_standard___string___NativeString___atof;
+ 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.nit:614 */
+ fra.me.REG[0] = NativeString_atof___out(fra.me.REG[0]);
+ stack_frame_head = fra.me.prev;
+ return fra.me.REG[0];
+}
+static const char LOCATE_standard___string___NativeString___init[] = "string::NativeString::init";
void standard___string___NativeString___init(val_t p0, int* init_table){
int itpos5 = VAL2OBJ(p0)->vft[INIT_TABLE_POS_standard___string___NativeString].i;
struct {struct stack_frame_t me;} fra;
init_table[itpos5] = 1;
return;
}
+static const char LOCATE_standard___string___StringCapable___calloc_string[] = "string::StringCapable::calloc_string";
val_t standard___string___StringCapable___calloc_string(val_t p0, val_t p1){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 611;
+ fra.me.line = 619;
fra.me.meth = LOCATE_standard___string___StringCapable___calloc_string;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
REGB0 = p1;
- /* ../lib/standard/string.nit:611 */
+ /* ../lib/standard/string.nit:619 */
fra.me.REG[0] = BOX_NativeString((char*)raw_alloc((UNTAG_Int(REGB0) * sizeof(char))));
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___Sys___args[] = "string::Sys::(string::Object::args)";
val_t standard___string___Sys___args(val_t p0){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 617;
+ fra.me.line = 625;
fra.me.meth = LOCATE_standard___string___Sys___args;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ../lib/standard/string.nit:617 */
+ /* ../lib/standard/string.nit:625 */
fra.me.REG[1] = fra.me.REG[0];
- /* ../lib/standard/string.nit:619 */
+ /* ../lib/standard/string.nit:627 */
fra.me.REG[2] = ATTR_standard___string___Sys____args_cache(fra.me.REG[1]);
REGB0 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
REGB1 = TAG_Bool(fra.me.REG[2]==NIT_NULL);
if (UNTAG_Bool(REGB1)) {
- REGB1 = TAG_Bool(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)) {
CALL_standard___string___Sys___init_args(fra.me.REG[1])(fra.me.REG[1]);
}
- /* ../lib/standard/string.nit:620 */
+ /* ../lib/standard/string.nit:628 */
fra.me.REG[1] = ATTR_standard___string___Sys____args_cache(fra.me.REG[1]);
REGB0 = TAG_Bool(fra.me.REG[1]!=NIT_NULL);
if (UNTAG_Bool(REGB0)) {
} else {
- nit_abort("Cast failed", NULL, LOCATE_standard___string, 620);
+ nit_abort("Cast failed", NULL, LOCATE_standard___string, 628);
}
goto label1;
label1: while(0);
stack_frame_head = fra.me.prev;
return fra.me.REG[1];
}
+static const char LOCATE_standard___string___Sys___program_name[] = "string::Sys::program_name";
val_t standard___string___Sys___program_name(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;
- fra.me.line = 623;
+ fra.me.line = 631;
fra.me.meth = LOCATE_standard___string___Sys___program_name;
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.nit:626 */
+ /* ../lib/standard/string.nit:634 */
REGB0 = TAG_Int(0);
fra.me.REG[0] = CALL_standard___string___Sys___native_argv(fra.me.REG[0])(fra.me.REG[0], REGB0);
fra.me.REG[0] = NEW_String_standard___string___String___from_cstring(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];
}
+static const char LOCATE_standard___string___Sys___init_args[] = "string::Sys::init_args";
void standard___string___Sys___init_args(val_t p0){
struct {struct stack_frame_t me; val_t MORE_REG[2];} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 629;
+ fra.me.line = 637;
fra.me.meth = LOCATE_standard___string___Sys___init_args;
fra.me.has_broke = 0;
fra.me.REG_size = 3;
fra.me.REG[1] = NIT_NULL;
fra.me.REG[2] = NIT_NULL;
fra.me.REG[0] = p0;
- /* ../lib/standard/string.nit:632 */
+ /* ../lib/standard/string.nit:640 */
REGB0 = CALL_standard___string___Sys___native_argc(fra.me.REG[0])(fra.me.REG[0]);
- /* ../lib/standard/string.nit:633 */
+ /* ../lib/standard/string.nit:641 */
REGB1 = TAG_Int(0);
fra.me.REG[1] = NEW_Array_standard___collection___array___Array___with_capacity(REGB1);
- /* ../lib/standard/string.nit:634 */
+ /* ../lib/standard/string.nit:642 */
REGB1 = TAG_Int(1);
- /* ../lib/standard/string.nit:635 */
+ /* ../lib/standard/string.nit:643 */
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(REGB0));
- /* ../lib/standard/string.nit:635 */
+ /* ../lib/standard/string.nit:643 */
if (UNTAG_Bool(REGB2)) {
- /* ../lib/standard/string.nit:636 */
+ /* ../lib/standard/string.nit:644 */
REGB2 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:237 */
+ /* ../lib/standard/kernel.nit:240 */
REGB2 = TAG_Int(UNTAG_Int(REGB1)-UNTAG_Int(REGB2));
- /* ../lib/standard/string.nit:636 */
+ /* ../lib/standard/string.nit:644 */
fra.me.REG[2] = CALL_standard___string___Sys___native_argv(fra.me.REG[0])(fra.me.REG[0], REGB1);
fra.me.REG[2] = NEW_String_standard___string___String___from_cstring(fra.me.REG[2]);
CALL_standard___collection___abstract_collection___Sequence_____braeq(fra.me.REG[1])(fra.me.REG[1], REGB2, fra.me.REG[2]);
- /* ../lib/standard/string.nit:637 */
+ /* ../lib/standard/string.nit:645 */
REGB2 = TAG_Int(1);
- /* ../lib/standard/kernel.nit:235 */
+ /* ../lib/standard/kernel.nit:238 */
REGB2 = TAG_Int(UNTAG_Int(REGB1)+UNTAG_Int(REGB2));
- /* ../lib/standard/string.nit:637 */
+ /* ../lib/standard/string.nit:645 */
REGB1 = REGB2;
} else {
- /* ../lib/standard/string.nit:635 */
+ /* ../lib/standard/string.nit:643 */
goto label1;
}
}
label1: while(0);
- /* ../lib/standard/string.nit:639 */
+ /* ../lib/standard/string.nit:647 */
ATTR_standard___string___Sys____args_cache(fra.me.REG[0]) = fra.me.REG[1];
stack_frame_head = fra.me.prev;
return;
}
+static const char LOCATE_standard___string___Sys___native_argc[] = "string::Sys::native_argc";
val_t standard___string___Sys___native_argc(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;
- fra.me.line = 642;
+ fra.me.line = 650;
fra.me.meth = LOCATE_standard___string___Sys___native_argc;
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.nit:642 */
+ /* ../lib/standard/string.nit:650 */
REGB0 = Sys_native_argc___out(fra.me.REG[0]);
stack_frame_head = fra.me.prev;
return REGB0;
}
+static const char LOCATE_standard___string___Sys___native_argv[] = "string::Sys::native_argv";
val_t standard___string___Sys___native_argv(val_t p0, val_t p1){
struct {struct stack_frame_t me;} fra;
val_t REGB0;
val_t tmp;
fra.me.prev = stack_frame_head; stack_frame_head = &fra.me;
fra.me.file = LOCATE_standard___string;
- fra.me.line = 644;
+ fra.me.line = 652;
fra.me.meth = LOCATE_standard___string___Sys___native_argv;
fra.me.has_broke = 0;
fra.me.REG_size = 1;
fra.me.REG[0] = NIT_NULL;
fra.me.REG[0] = p0;
REGB0 = p1;
- /* ../lib/standard/string.nit:644 */
+ /* ../lib/standard/string.nit:652 */
fra.me.REG[0] = Sys_native_argv___out(fra.me.REG[0], REGB0);
stack_frame_head = fra.me.prev;
return fra.me.REG[0];