N_NIMCALL(void, newrecropetostr_148474)(NimStringDesc** result, NI* resultlen, trope148007* r) { tropeseq148009* stack; TY148497 LOC1; nimfr("newRecRopeToStr", "ropes.nim") nimln(173, "ropes.nim"); nimln(173, "ropes.nim"); stack = (tropeseq148009*) newSeq((&NTI148009), 1); memset((void*)LOC1, 0, sizeof(LOC1)); LOC1[0] = r; asgnRefNoCycle((void**) &stack->data[0], LOC1[0]); nimln(174, "ropes.nim"); while (1) { trope148007* it; nimln(174, "ropes.nim"); nimln(174, "ropes.nim"); if (!(0 < stack->Sup.len)) goto LA2; nimln(175, "ropes.nim"); it = pop_148515(&stack); nimln(176, "ropes.nim"); while (1) { nimln(176, "ropes.nim"); if (!((*it).Data == NIM_NIL)) goto LA3; nimln(177, "ropes.nim"); stack = (tropeseq148009*) incrSeq(&(stack)->Sup, sizeof(trope148007*)); asgnRefNoCycle((void**) &stack->data[stack->Sup.len-1], (*it).Right); nimln(178, "ropes.nim"); it = (*it).Left; } LA3: ; nimln(179, "ropes.nim"); { nimln(179, "ropes.nim"); nimln(179, "ropes.nim"); nimln(179, "ropes.nim"); if (!!(!(((*it).Data == NIM_NIL)))) goto LA6; nimln(179, "ropes.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP552)); } LA6: ; nimln(180, "ropes.nim"); if ((NU)((*resultlen)) > (NU)((*result)->Sup.len)) raiseIndexError(); if ((NU)(0) > (NU)((*it).Data->Sup.len)) raiseIndexError(); memcpy(((void*) (&(*result)->data[(*resultlen)])), ((void*) (&(*it).Data->data[0])), (*it).Length); nimln(181, "ropes.nim"); (*resultlen) = addInt((*resultlen), (*it).Length); nimln(182, "ropes.nim"); { nimln(182, "ropes.nim"); nimln(182, "ropes.nim"); nimln(182, "ropes.nim"); if (!!(((*resultlen) <= (*result)->Sup.len))) goto LA10; nimln(182, "ropes.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP553)); } LA10: ; } LA2: ; popFrame(); }
N_NIMCALL(void, writerope_148993)(FILE* f, trope148007* c) { tropeseq148009* stack; TY148497 LOC1; nimfr("writeRope", "ropes.nim") nimln(220, "ropes.nim"); nimln(220, "ropes.nim"); stack = (tropeseq148009*) newSeq((&NTI148009), 1); memset((void*)LOC1, 0, sizeof(LOC1)); LOC1[0] = c; asgnRefNoCycle((void**) &stack->data[0], LOC1[0]); nimln(221, "ropes.nim"); while (1) { trope148007* it; nimln(221, "ropes.nim"); nimln(221, "ropes.nim"); if (!(0 < stack->Sup.len)) goto LA2; nimln(222, "ropes.nim"); it = pop_148515(&stack); nimln(223, "ropes.nim"); while (1) { nimln(223, "ropes.nim"); if (!((*it).Data == NIM_NIL)) goto LA3; nimln(224, "ropes.nim"); stack = (tropeseq148009*) incrSeq(&(stack)->Sup, sizeof(trope148007*)); asgnRefNoCycle((void**) &stack->data[stack->Sup.len-1], (*it).Right); nimln(225, "ropes.nim"); it = (*it).Left; nimln(226, "ropes.nim"); { nimln(226, "ropes.nim"); nimln(226, "ropes.nim"); nimln(226, "ropes.nim"); if (!!(!((it == NIM_NIL)))) goto LA6; nimln(226, "ropes.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP556)); } LA6: ; } LA3: ; nimln(227, "ropes.nim"); { nimln(227, "ropes.nim"); nimln(227, "ropes.nim"); nimln(227, "ropes.nim"); if (!!(!(((*it).Data == NIM_NIL)))) goto LA10; nimln(227, "ropes.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP552)); } LA10: ; nimln(228, "ropes.nim"); write_10663(f, (*it).Data); } LA2: ; popFrame(); }
N_NIMCALL(void, settarget_145599)(NU8 o, NU8 c) { NI TMP524; NI TMP525; NI TMP526; NimStringDesc* LOC9; nimfr("setTarget", "platform.nim") nimln(198, "platform.nim"); { nimln(198, "platform.nim"); nimln(198, "platform.nim"); nimln(198, "platform.nim"); if (!!(!((c == ((NU8) 0))))) goto LA3; nimln(198, "platform.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP522)); } LA3: ; nimln(199, "platform.nim"); { nimln(199, "platform.nim"); nimln(199, "platform.nim"); nimln(199, "platform.nim"); if (!!(!((o == ((NU8) 0))))) goto LA7; nimln(199, "platform.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP523)); } LA7: ; nimln(201, "platform.nim"); targetcpu_145573 = c; nimln(202, "platform.nim"); targetos_145575 = o; nimln(203, "platform.nim"); nimln(203, "platform.nim"); if (c < 1 || c > 14) raiseIndexError(); TMP524 = divInt(cpu_145468[(c)- 1].Field1, 8); intsize_145590 = (NI32)(TMP524); nimln(204, "platform.nim"); nimln(204, "platform.nim"); if (c < 1 || c > 14) raiseIndexError(); TMP525 = divInt(cpu_145468[(c)- 1].Field3, 8); floatsize_145591 = (NI32)(TMP525); nimln(205, "platform.nim"); nimln(205, "platform.nim"); if (c < 1 || c > 14) raiseIndexError(); TMP526 = divInt(cpu_145468[(c)- 1].Field4, 8); ptrsize_145592 = (NI32)(TMP526); nimln(206, "platform.nim"); if (o < 1 || o > 23) raiseIndexError(); LOC9 = 0; LOC9 = tnl_145593; tnl_145593 = copyStringRC1(os_145063[(o)- 1].Field5); if (LOC9) nimGCunrefNoCycle(LOC9); popFrame(); }
N_NIMCALL(trope148007*, torope_148058)(NimStringDesc* s) { trope148007* result; nimfr("toRope", "ropes.nim") result = 0; nimln(156, "ropes.nim"); { nimln(156, "ropes.nim"); nimln(156, "ropes.nim"); if (!(s->Sup.len == 0)) goto LA3; nimln(157, "ropes.nim"); result = NIM_NIL; } goto LA1; LA3: ; { nimln(159, "ropes.nim"); result = insertincache_148262(s); } LA1: ; nimln(160, "ropes.nim"); { NIM_BOOL LOC8; nimln(160, "ropes.nim"); nimln(160, "ropes.nim"); LOC8 = 0; LOC8 = ropeinvariant_148098(result); if (!!(LOC8)) goto LA9; nimln(160, "ropes.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP545)); } LA9: ; popFrame(); return result; }
N_NIMCALL(NI, handlecr_181050)(tbaselexer181018* l, NI pos) { NI result; nimfr("handleCR", "nimlexbase.nim") result = 0; nimln(130, "nimlexbase.nim"); { nimln(130, "nimlexbase.nim"); nimln(130, "nimlexbase.nim"); if (!!(((NU8)((*l).Buf[pos]) == (NU8)(13)))) goto LA3; nimln(130, "nimlexbase.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP1668)); } LA3: ; nimln(131, "nimlexbase.nim"); (*l).Linenumber = addInt((*l).Linenumber, 1); nimln(132, "nimlexbase.nim"); result = fillbaselexer_181812(l, pos); nimln(133, "nimlexbase.nim"); { nimln(133, "nimlexbase.nim"); if (!((NU8)((*l).Buf[result]) == (NU8)(10))) goto LA7; nimln(134, "nimlexbase.nim"); result = fillbaselexer_181812(l, result); } LA7: ; popFrame(); return result; }
N_NIMCALL(void, bitsetincl_248047)(tbitset248012** x, NI64 elem) { NI64 TMP3155; NI64 TMP3156; NI64 TMP3157; nimfr("bitSetIncl", "bitsets.nim") nimln(38, "bitsets.nim"); { nimln(38, "bitsets.nim"); nimln(38, "bitsets.nim"); if (!!((0 <= elem))) goto LA3; nimln(38, "bitsets.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP3154)); } LA3: ; nimln(39, "bitsets.nim"); nimln(39, "bitsets.nim"); TMP3155 = divInt64(elem, 8); if ((NU)((NI64)(TMP3155)) >= (NU)((*x)->Sup.len)) raiseIndexError(); nimln(39, "bitsets.nim"); nimln(39, "bitsets.nim"); TMP3156 = divInt64(elem, 8); if ((NU)((NI64)(TMP3156)) >= (NU)((*x)->Sup.len)) raiseIndexError(); nimln(40, "bitsets.nim"); nimln(40, "bitsets.nim"); nimln(40, "bitsets.nim"); TMP3157 = modInt64(elem, 8); (*x)->data[(NI64)(TMP3155)] = (NI8)((*x)->data[(NI64)(TMP3156)] | ((NI8)(NU8)(NU)((NI)((NU32)(1) << (NU32)(((NI) ((NI64)(TMP3157)))))))); popFrame(); }
N_NIMCALL(NimStringDesc*, makesinglelinecstring_470672)(NimStringDesc* s) { NimStringDesc* result; NIM_CHAR c_470676; NI i_470678; NI l_470680; nimfr("makeSingleLineCString", "ccgutils.nim") result = 0; nimln(159, "ccgutils.nim"); result = copyString(((NimStringDesc*) &TMP6204)); c_470676 = 0; nimln(2802, "system.nim"); i_470678 = 0; nimln(2803, "system.nim"); nimln(2803, "system.nim"); l_470680 = s->Sup.len; nimln(2804, "system.nim"); while (1) { NimStringDesc* LOC2; nimln(2804, "system.nim"); if (!(i_470678 < l_470680)) goto LA1; nimln(2805, "system.nim"); if ((NU)(i_470678) > (NU)(s->Sup.len)) raiseIndexError(); c_470676 = s->data[i_470678]; nimln(161, "ccgutils.nim"); nimln(161, "ccgutils.nim"); LOC2 = 0; LOC2 = tocchar_167645(c_470676); result = resizeString(result, LOC2->Sup.len + 0); appendString(result, LOC2); nimln(2806, "system.nim"); i_470678 = addInt(i_470678, 1); nimln(2807, "system.nim"); { nimln(2807, "system.nim"); nimln(2807, "system.nim"); nimln(2807, "system.nim"); if (!!((s->Sup.len == l_470680))) goto LA5; nimln(2807, "system.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP6205)); } LA5: ; } LA1: ; nimln(162, "ccgutils.nim"); result = addChar(result, 34); popFrame(); return result; }
N_NIMCALL(NI, handlelf_181056)(tbaselexer181018* l, NI pos) { NI result; nimfr("handleLF", "nimlexbase.nim") result = 0; nimln(137, "nimlexbase.nim"); { nimln(137, "nimlexbase.nim"); nimln(137, "nimlexbase.nim"); if (!!(((NU8)((*l).Buf[pos]) == (NU8)(10)))) goto LA3; nimln(137, "nimlexbase.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP1669)); } LA3: ; nimln(138, "nimlexbase.nim"); (*l).Linenumber = addInt((*l).Linenumber, 1); nimln(139, "nimlexbase.nim"); result = fillbaselexer_181812(l, pos); popFrame(); return result; }
N_NIMCALL(void, inittable_167552)(NI initialsize_167557, ttable167560* Result) { nimfr("initTable", "tables.nim") nimln(209, "tables.nim"); { NIM_BOOL LOC3; nimln(209, "tables.nim"); nimln(209, "tables.nim"); LOC3 = 0; LOC3 = ispoweroftwo_134278(initialsize_167557); if (!!(LOC3)) goto LA4; nimln(209, "tables.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP891)); } LA4: ; nimln(210, "tables.nim"); (*Result).Counter = 0; nimln(211, "tables.nim"); unsureAsgnRef((void**) &(*Result).Data, (tkeyvaluepairseq167563*) newSeq((&NTI167563), initialsize_167557)); popFrame(); }
N_NIMCALL(void, openbaselexer_181027)(tbaselexer181018* l, tllstream179204* inputstream, NI buflen) { NI TMP1671; void* LOC5; NI TMP1672; nimfr("openBaseLexer", "nimlexbase.nim") nimln(147, "nimlexbase.nim"); { nimln(147, "nimlexbase.nim"); nimln(147, "nimlexbase.nim"); if (!!((0 < buflen))) goto LA3; nimln(147, "nimlexbase.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP1670)); } LA3: ; nimln(148, "nimlexbase.nim"); (*l).Bufpos = 0; nimln(149, "nimlexbase.nim"); (*l).Buflen = buflen; nimln(150, "nimlexbase.nim"); nimln(150, "nimlexbase.nim"); nimln(150, "nimlexbase.nim"); TMP1671 = mulInt(buflen, 1); LOC5 = 0; LOC5 = alloc_4601((NI64)(TMP1671)); (*l).Buf = ((NCSTRING) (LOC5)); nimln(151, "nimlexbase.nim"); nimln(151, "nimlexbase.nim"); TMP1672 = subInt(buflen, 1); (*l).Sentinel = (NI64)(TMP1672); nimln(152, "nimlexbase.nim"); (*l).Linestart = 0; nimln(153, "nimlexbase.nim"); (*l).Linenumber = 1; nimln(154, "nimlexbase.nim"); unsureAsgnRef((void**) &(*l).Stream, inputstream); nimln(155, "nimlexbase.nim"); fillbuffer_181072(l); nimln(156, "nimlexbase.nim"); skiputf8bom_182419(l); popFrame(); }
N_NIMCALL(NI, fillbaselexer_181812)(tbaselexer181018* l, NI pos) { NI result; nimfr("fillBaseLexer", "nimlexbase.nim") result = 0; nimln(120, "nimlexbase.nim"); { nimln(120, "nimlexbase.nim"); nimln(120, "nimlexbase.nim"); if (!!((pos <= (*l).Sentinel))) goto LA3; nimln(120, "nimlexbase.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP1666)); } LA3: ; nimln(121, "nimlexbase.nim"); { NI TMP1667; nimln(121, "nimlexbase.nim"); if (!(pos < (*l).Sentinel)) goto LA7; nimln(122, "nimlexbase.nim"); nimln(122, "nimlexbase.nim"); TMP1667 = addInt(pos, 1); result = (NI64)(TMP1667); } goto LA5; LA7: ; { nimln(124, "nimlexbase.nim"); fillbuffer_181072(l); nimln(125, "nimlexbase.nim"); (*l).Bufpos = 0; nimln(126, "nimlexbase.nim"); result = 0; } LA5: ; nimln(127, "nimlexbase.nim"); (*l).Linestart = result; popFrame(); return result; }
static N_INLINE(NIM_BOOL, mustrehash_136316)(NI length, NI counter) { NIM_BOOL result; NIM_BOOL LOC5; NI TMP396; NI TMP397; NI TMP398; nimfr("mustRehash", "sets.nim") result = 0; nimln(47, "sets.nim"); { nimln(47, "sets.nim"); nimln(47, "sets.nim"); if (!!((counter < length))) goto LA3; nimln(47, "sets.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP395)); } LA3: ; nimln(48, "sets.nim"); nimln(48, "sets.nim"); LOC5 = 0; nimln(48, "sets.nim"); nimln(48, "sets.nim"); TMP396 = mulInt(length, 2); nimln(48, "sets.nim"); TMP397 = mulInt(counter, 3); LOC5 = ((NI32)(TMP396) < (NI32)(TMP397)); if (LOC5) goto LA6; nimln(48, "sets.nim"); nimln(48, "sets.nim"); TMP398 = subInt(length, counter); LOC5 = ((NI32)(TMP398) < 4); LA6: ; result = LOC5; popFrame(); return result; }
static N_INLINE(NIM_BOOL, mustrehash_141414)(NI length, NI counter) { NIM_BOOL result; NIM_BOOL LOC5; NI TMP460; NI TMP461; NI TMP462; nimfr("mustRehash", "tables.nim") result = 0; nimln(108, "tables.nim"); { nimln(108, "tables.nim"); nimln(108, "tables.nim"); if (!!((counter < length))) goto LA3; nimln(108, "tables.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP459)); } LA3: ; nimln(109, "tables.nim"); nimln(109, "tables.nim"); LOC5 = 0; nimln(109, "tables.nim"); nimln(109, "tables.nim"); TMP460 = mulInt(length, 2); nimln(109, "tables.nim"); TMP461 = mulInt(counter, 3); LOC5 = ((NI32)(TMP460) < (NI32)(TMP461)); if (LOC5) goto LA6; nimln(109, "tables.nim"); nimln(109, "tables.nim"); TMP462 = subInt(length, counter); LOC5 = ((NI32)(TMP462) < 4); LA6: ; result = LOC5; popFrame(); return result; }
N_NIMCALL(NU8, ispartofaux_416020)(tnode191813* n, ttype191847* b, tintset188047* marker) { NU8 result; nimfr("isPartOfAux", "aliases.nim") result = 0; nimln(22, "aliases.nim"); result = ((NU8) 0); nimln(23, "aliases.nim"); switch ((*n).Kind) { case ((NU8) 136): { NI i_416039; NI HEX3Atmp_416311; NI LOC2; NI TMP5612; NI res_416313; i_416039 = 0; HEX3Atmp_416311 = 0; nimln(25, "aliases.nim"); nimln(25, "aliases.nim"); nimln(25, "aliases.nim"); LOC2 = 0; LOC2 = sonslen_192191(n); TMP5612 = subInt(LOC2, 1); HEX3Atmp_416311 = (NI64)(TMP5612); nimln(1451, "system.nim"); res_416313 = 0; nimln(1452, "system.nim"); while (1) { nimln(1452, "system.nim"); if (!(res_416313 <= HEX3Atmp_416311)) goto LA3; nimln(1451, "system.nim"); i_416039 = res_416313; nimln(26, "aliases.nim"); if (((TMP5610[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5611)); if ((NU)(i_416039) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); result = ispartofaux_416020((*n).kindU.S6.Sons->data[i_416039], b, marker); nimln(27, "aliases.nim"); { nimln(27, "aliases.nim"); if (!(result == ((NU8) 2))) goto LA6; nimln(27, "aliases.nim"); goto BeforeRet; } LA6: ; nimln(1454, "system.nim"); res_416313 = addInt(res_416313, 1); } LA3: ; } break; case ((NU8) 137): { NI i_416259; NI HEX3Atmp_416315; NI LOC17; NI TMP5614; NI res_416317; nimln(29, "aliases.nim"); { nimln(29, "aliases.nim"); nimln(29, "aliases.nim"); if (((TMP5610[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5611)); if ((NU)(0) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); if (!!(((*(*n).kindU.S6.Sons->data[0]).Kind == ((NU8) 3)))) goto LA11; nimln(29, "aliases.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP5613)); } LA11: ; nimln(30, "aliases.nim"); if (((TMP5610[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5611)); if ((NU)(0) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); result = ispartofaux_416020((*n).kindU.S6.Sons->data[0], b, marker); nimln(31, "aliases.nim"); { nimln(31, "aliases.nim"); if (!(result == ((NU8) 2))) goto LA15; nimln(31, "aliases.nim"); goto BeforeRet; } LA15: ; i_416259 = 0; HEX3Atmp_416315 = 0; nimln(32, "aliases.nim"); nimln(32, "aliases.nim"); nimln(32, "aliases.nim"); LOC17 = 0; LOC17 = sonslen_192191(n); TMP5614 = subInt(LOC17, 1); HEX3Atmp_416315 = (NI64)(TMP5614); nimln(1451, "system.nim"); res_416317 = 1; nimln(1452, "system.nim"); while (1) { nimln(1452, "system.nim"); if (!(res_416317 <= HEX3Atmp_416315)) goto LA18; nimln(1451, "system.nim"); i_416259 = res_416317; nimln(33, "aliases.nim"); if (((TMP5610[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5611)); if ((NU)(i_416259) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); switch ((*(*n).kindU.S6.Sons->data[i_416259]).Kind) { case ((NU8) 85): case ((NU8) 88): { tnode191813* LOC20; nimln(35, "aliases.nim"); nimln(35, "aliases.nim"); if (((TMP5610[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5611)); if ((NU)(i_416259) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); LOC20 = 0; LOC20 = lastson_192199((*n).kindU.S6.Sons->data[i_416259]); result = ispartofaux_416020(LOC20, b, marker); nimln(36, "aliases.nim"); { nimln(36, "aliases.nim"); if (!(result == ((NU8) 2))) goto LA23; nimln(36, "aliases.nim"); goto BeforeRet; } LA23: ; } break; default: { nimln(37, "aliases.nim"); internalerror_168606(((NimStringDesc*) &TMP5616)); } break; } nimln(1454, "system.nim"); res_416317 = addInt(res_416317, 1); } LA18: ; } break; case ((NU8) 3): { nimln(39, "aliases.nim"); if (!(((TMP5617[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP5618)); result = ispartofaux_416013((*(*n).kindU.S4.Sym).Typ, b, marker); } break; default: { nimln(40, "aliases.nim"); internalerror_168591((*n).Info, ((NimStringDesc*) &TMP5619)); } break; } BeforeRet: ; popFrame(); return result; }
N_NIMCALL(NI64, decodevbiggestint_199530)(NCSTRING s, NI* pos) { NI64 result; NI i_199537; NI sign_199539; NI64 TMP2153; nimfr("decodeVBiggestInt", "rodutils.nim") result = 0; nimln(101, "rodutils.nim"); i_199537 = (*pos); nimln(102, "rodutils.nim"); sign_199539 = -1; nimln(103, "rodutils.nim"); { nimln(103, "rodutils.nim"); nimln(103, "rodutils.nim"); if (!!((((NU8)(s[i_199537])) >= ((NU8)(97)) && ((NU8)(s[i_199537])) <= ((NU8)(122)) || ((NU8)(s[i_199537])) >= ((NU8)(65)) && ((NU8)(s[i_199537])) <= ((NU8)(90)) || ((NU8)(s[i_199537])) >= ((NU8)(48)) && ((NU8)(s[i_199537])) <= ((NU8)(57)) || ((NU8)(s[i_199537])) == ((NU8)(45)) || ((NU8)(s[i_199537])) >= ((NU8)(128)) && ((NU8)(s[i_199537])) <= ((NU8)(255))))) goto LA3; nimln(103, "rodutils.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP2121)); } LA3: ; nimln(104, "rodutils.nim"); { nimln(104, "rodutils.nim"); if (!((NU8)(s[i_199537]) == (NU8)(45))) goto LA7; nimln(105, "rodutils.nim"); i_199537 = addInt(i_199537, 1); nimln(106, "rodutils.nim"); sign_199539 = 1; } LA7: ; nimln(107, "rodutils.nim"); result = 0; nimln(108, "rodutils.nim"); while (1) { nimln(109, "rodutils.nim"); switch (((NU8)(s[i_199537]))) { case 48 ... 57: { NI64 TMP2138; NI TMP2139; NI64 TMP2140; nimln(110, "rodutils.nim"); nimln(110, "rodutils.nim"); nimln(110, "rodutils.nim"); TMP2138 = mulInt64(result, 190); nimln(110, "rodutils.nim"); nimln(110, "rodutils.nim"); TMP2139 = subInt(((NI) (((NU8)(s[i_199537])))), 48); TMP2140 = subInt64((NI64)(TMP2138), ((NI64) ((NI32)(TMP2139)))); result = (NI64)(TMP2140); } break; case 97 ... 122: { NI64 TMP2141; NI TMP2142; NI TMP2143; NI64 TMP2144; nimln(111, "rodutils.nim"); nimln(111, "rodutils.nim"); nimln(111, "rodutils.nim"); TMP2141 = mulInt64(result, 190); nimln(111, "rodutils.nim"); nimln(111, "rodutils.nim"); nimln(111, "rodutils.nim"); TMP2142 = subInt(((NI) (((NU8)(s[i_199537])))), 97); TMP2143 = addInt(((NI) ((NI32)(TMP2142))), 10); TMP2144 = subInt64((NI64)(TMP2141), ((NI64) ((NI32)(TMP2143)))); result = (NI64)(TMP2144); } break; case 65 ... 90: { NI64 TMP2145; NI TMP2146; NI TMP2147; NI64 TMP2148; nimln(112, "rodutils.nim"); nimln(112, "rodutils.nim"); nimln(112, "rodutils.nim"); TMP2145 = mulInt64(result, 190); nimln(112, "rodutils.nim"); nimln(112, "rodutils.nim"); nimln(112, "rodutils.nim"); TMP2146 = subInt(((NI) (((NU8)(s[i_199537])))), 65); TMP2147 = addInt(((NI) ((NI32)(TMP2146))), 36); TMP2148 = subInt64((NI64)(TMP2145), ((NI64) ((NI32)(TMP2147)))); result = (NI64)(TMP2148); } break; case 128 ... 255: { NI64 TMP2149; NI TMP2150; NI TMP2151; NI64 TMP2152; nimln(113, "rodutils.nim"); nimln(113, "rodutils.nim"); nimln(113, "rodutils.nim"); TMP2149 = mulInt64(result, 190); nimln(113, "rodutils.nim"); nimln(113, "rodutils.nim"); nimln(113, "rodutils.nim"); TMP2150 = subInt(((NI) (((NU8)(s[i_199537])))), 128); TMP2151 = addInt(((NI) ((NI32)(TMP2150))), 62); TMP2152 = subInt64((NI64)(TMP2149), ((NI64) ((NI32)(TMP2151)))); result = (NI64)(TMP2152); } break; default: { nimln(114, "rodutils.nim"); goto LA9; } break; } nimln(115, "rodutils.nim"); i_199537 = addInt(i_199537, 1); } LA9: ; nimln(116, "rodutils.nim"); nimln(116, "rodutils.nim"); nimln(116, "rodutils.nim"); TMP2153 = mulInt64(result, ((NI64) (sign_199539))); result = (NI64)((NU64)((NI64)(TMP2153)) - (NU64)(5)); nimln(117, "rodutils.nim"); (*pos) = i_199537; popFrame(); return result; }
N_NIMCALL(NI, decodevint_199305)(NCSTRING s, NI* pos) { NI result; NI i_199312; NI sign_199314; NI TMP2137; nimfr("decodeVInt", "rodutils.nim") result = 0; nimln(101, "rodutils.nim"); i_199312 = (*pos); nimln(102, "rodutils.nim"); sign_199314 = -1; nimln(103, "rodutils.nim"); { nimln(103, "rodutils.nim"); nimln(103, "rodutils.nim"); if (!!((((NU8)(s[i_199312])) >= ((NU8)(97)) && ((NU8)(s[i_199312])) <= ((NU8)(122)) || ((NU8)(s[i_199312])) >= ((NU8)(65)) && ((NU8)(s[i_199312])) <= ((NU8)(90)) || ((NU8)(s[i_199312])) >= ((NU8)(48)) && ((NU8)(s[i_199312])) <= ((NU8)(57)) || ((NU8)(s[i_199312])) == ((NU8)(45)) || ((NU8)(s[i_199312])) >= ((NU8)(128)) && ((NU8)(s[i_199312])) <= ((NU8)(255))))) goto LA3; nimln(103, "rodutils.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP2121)); } LA3: ; nimln(104, "rodutils.nim"); { nimln(104, "rodutils.nim"); if (!((NU8)(s[i_199312]) == (NU8)(45))) goto LA7; nimln(105, "rodutils.nim"); i_199312 = addInt(i_199312, 1); nimln(106, "rodutils.nim"); sign_199314 = 1; } LA7: ; nimln(107, "rodutils.nim"); result = 0; nimln(108, "rodutils.nim"); while (1) { nimln(109, "rodutils.nim"); switch (((NU8)(s[i_199312]))) { case 48 ... 57: { NI TMP2122; NI TMP2123; NI TMP2124; nimln(110, "rodutils.nim"); nimln(110, "rodutils.nim"); nimln(110, "rodutils.nim"); TMP2122 = mulInt(result, 190); nimln(110, "rodutils.nim"); nimln(110, "rodutils.nim"); TMP2123 = subInt(((NI) (((NU8)(s[i_199312])))), 48); TMP2124 = subInt((NI32)(TMP2122), ((NI) ((NI32)(TMP2123)))); result = (NI32)(TMP2124); } break; case 97 ... 122: { NI TMP2125; NI TMP2126; NI TMP2127; NI TMP2128; nimln(111, "rodutils.nim"); nimln(111, "rodutils.nim"); nimln(111, "rodutils.nim"); TMP2125 = mulInt(result, 190); nimln(111, "rodutils.nim"); nimln(111, "rodutils.nim"); nimln(111, "rodutils.nim"); TMP2126 = subInt(((NI) (((NU8)(s[i_199312])))), 97); TMP2127 = addInt(((NI) ((NI32)(TMP2126))), 10); TMP2128 = subInt((NI32)(TMP2125), ((NI) ((NI32)(TMP2127)))); result = (NI32)(TMP2128); } break; case 65 ... 90: { NI TMP2129; NI TMP2130; NI TMP2131; NI TMP2132; nimln(112, "rodutils.nim"); nimln(112, "rodutils.nim"); nimln(112, "rodutils.nim"); TMP2129 = mulInt(result, 190); nimln(112, "rodutils.nim"); nimln(112, "rodutils.nim"); nimln(112, "rodutils.nim"); TMP2130 = subInt(((NI) (((NU8)(s[i_199312])))), 65); TMP2131 = addInt(((NI) ((NI32)(TMP2130))), 36); TMP2132 = subInt((NI32)(TMP2129), ((NI) ((NI32)(TMP2131)))); result = (NI32)(TMP2132); } break; case 128 ... 255: { NI TMP2133; NI TMP2134; NI TMP2135; NI TMP2136; nimln(113, "rodutils.nim"); nimln(113, "rodutils.nim"); nimln(113, "rodutils.nim"); TMP2133 = mulInt(result, 190); nimln(113, "rodutils.nim"); nimln(113, "rodutils.nim"); nimln(113, "rodutils.nim"); TMP2134 = subInt(((NI) (((NU8)(s[i_199312])))), 128); TMP2135 = addInt(((NI) ((NI32)(TMP2134))), 62); TMP2136 = subInt((NI32)(TMP2133), ((NI) ((NI32)(TMP2135)))); result = (NI32)(TMP2136); } break; default: { nimln(114, "rodutils.nim"); goto LA9; } break; } nimln(115, "rodutils.nim"); i_199312 = addInt(i_199312, 1); } LA9: ; nimln(116, "rodutils.nim"); nimln(116, "rodutils.nim"); nimln(116, "rodutils.nim"); TMP2137 = mulInt(result, sign_199314); result = (NI)((NU32)((NI32)(TMP2137)) - (NU32)(5)); nimln(117, "rodutils.nim"); (*pos) = i_199312; popFrame(); return result; }
N_NIMCALL(NI32, newcrcfromropeaux_150063)(trope148007* r, NI32 startval) { NI32 result; tropeseq148009* stack; TY148497 LOC1; nimfr("newCrcFromRopeAux", "ropes.nim") result = 0; nimln(337, "ropes.nim"); nimln(337, "ropes.nim"); stack = (tropeseq148009*) newSeq((&NTI148009), 1); memset((void*)LOC1, 0, sizeof(LOC1)); LOC1[0] = r; asgnRefNoCycle((void**) &stack->data[0], LOC1[0]); nimln(338, "ropes.nim"); result = startval; nimln(339, "ropes.nim"); while (1) { trope148007* it; NI i; NI l; nimln(339, "ropes.nim"); nimln(339, "ropes.nim"); if (!(0 < stack->Sup.len)) goto LA2; nimln(340, "ropes.nim"); it = pop_148515(&stack); nimln(341, "ropes.nim"); while (1) { nimln(341, "ropes.nim"); if (!((*it).Data == NIM_NIL)) goto LA3; nimln(342, "ropes.nim"); stack = (tropeseq148009*) incrSeq(&(stack)->Sup, sizeof(trope148007*)); asgnRefNoCycle((void**) &stack->data[stack->Sup.len-1], (*it).Right); nimln(343, "ropes.nim"); it = (*it).Left; } LA3: ; nimln(344, "ropes.nim"); { nimln(344, "ropes.nim"); nimln(344, "ropes.nim"); nimln(344, "ropes.nim"); if (!!(!(((*it).Data == NIM_NIL)))) goto LA6; nimln(344, "ropes.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP552)); } LA6: ; nimln(345, "ropes.nim"); i = 0; nimln(346, "ropes.nim"); nimln(346, "ropes.nim"); l = (*it).Data->Sup.len; nimln(347, "ropes.nim"); while (1) { nimln(347, "ropes.nim"); if (!(i < l)) goto LA8; nimln(348, "ropes.nim"); if ((NU)(i) > (NU)((*it).Data->Sup.len)) raiseIndexError(); result = updatecrc32_147017((*it).Data->data[i], result); nimln(349, "ropes.nim"); i = addInt(i, 1); } LA8: ; } LA2: ; popFrame(); return result; }
N_NIMCALL(trope148007*, ropef_148079)(NimStringDesc* frmt, trope148007** args, NI argsLen0) { trope148007* result; NI i; NI length; NI num; nimfr("ropef", "ropes.nim") result = 0; nimln(243, "ropes.nim"); i = 0; nimln(244, "ropes.nim"); nimln(244, "ropes.nim"); length = frmt->Sup.len; nimln(245, "ropes.nim"); result = NIM_NIL; nimln(246, "ropes.nim"); num = 0; nimln(247, "ropes.nim"); while (1) { NI TMP558; NI start; nimln(247, "ropes.nim"); nimln(247, "ropes.nim"); TMP558 = subInt(length, 1); if (!(i <= (NI32)(TMP558))) goto LA1; nimln(248, "ropes.nim"); { nimln(248, "ropes.nim"); if ((NU)(i) > (NU)(frmt->Sup.len)) raiseIndexError(); if (!((NU8)(frmt->data[i]) == (NU8)(36))) goto LA4; nimln(249, "ropes.nim"); i = addInt(i, 1); nimln(250, "ropes.nim"); if ((NU)(i) > (NU)(frmt->Sup.len)) raiseIndexError(); switch (((NU8)(frmt->data[i]))) { case 36: { nimln(252, "ropes.nim"); app_148046(&result, ((NimStringDesc*) &TMP559)); nimln(253, "ropes.nim"); i = addInt(i, 1); } break; case 35: { nimln(255, "ropes.nim"); i = addInt(i, 1); nimln(256, "ropes.nim"); if ((NU)(num) >= (NU)(argsLen0)) raiseIndexError(); app_148040(&result, args[num]); nimln(257, "ropes.nim"); num = addInt(num, 1); } break; case 48 ... 57: { NI j; nimln(259, "ropes.nim"); j = 0; nimln(260, "ropes.nim"); while (1) { NI TMP560; NI TMP561; NI TMP562; nimln(261, "ropes.nim"); nimln(261, "ropes.nim"); nimln(261, "ropes.nim"); nimln(261, "ropes.nim"); TMP560 = mulInt(j, 10); nimln(261, "ropes.nim"); if ((NU)(i) > (NU)(frmt->Sup.len)) raiseIndexError(); TMP561 = addInt((NI32)(TMP560), ((NI) (((NU8)(frmt->data[i]))))); TMP562 = subInt((NI32)(TMP561), 48); j = (NI32)(TMP562); nimln(262, "ropes.nim"); i = addInt(i, 1); nimln(263, "ropes.nim"); { NIM_BOOL LOC12; NI TMP563; NI TMP564; nimln(263, "ropes.nim"); LOC12 = 0; nimln(263, "ropes.nim"); nimln(263, "ropes.nim"); nimln(263, "ropes.nim"); TMP563 = addInt(length, 0); TMP564 = subInt((NI32)(TMP563), 1); LOC12 = ((NI32)(TMP564) < i); if (LOC12) goto LA13; nimln(263, "ropes.nim"); nimln(263, "ropes.nim"); if ((NU)(i) > (NU)(frmt->Sup.len)) raiseIndexError(); LOC12 = !((((NU8)(frmt->data[i])) >= ((NU8)(48)) && ((NU8)(frmt->data[i])) <= ((NU8)(57)))); LA13: ; if (!LOC12) goto LA14; nimln(263, "ropes.nim"); goto LA9; } LA14: ; } LA9: ; nimln(264, "ropes.nim"); num = j; nimln(265, "ropes.nim"); { NI TMP565; NimStringDesc* LOC20; nimln(265, "ropes.nim"); nimln(265, "ropes.nim"); nimln(265, "ropes.nim"); TMP565 = addInt((argsLen0-1), 1); if (!((NI32)(TMP565) < j)) goto LA18; nimln(266, "ropes.nim"); nimln(266, "ropes.nim"); LOC20 = 0; LOC20 = nimIntToStr(j); errorhandler_148108.ClEnv? errorhandler_148108.ClPrc(((NU8) 1), LOC20, NIM_FALSE, errorhandler_148108.ClEnv):((TMP566)(errorhandler_148108.ClPrc))(((NU8) 1), LOC20, NIM_FALSE); } goto LA16; LA18: ; { NI TMP567; nimln(268, "ropes.nim"); nimln(268, "ropes.nim"); TMP567 = subInt(j, 1); if ((NU)((NI32)(TMP567)) >= (NU)(argsLen0)) raiseIndexError(); app_148040(&result, args[(NI32)(TMP567)]); } LA16: ; } break; case 110: { nimln(270, "ropes.nim"); app_148040(&result, softrnl_149435); nimln(271, "ropes.nim"); i = addInt(i, 1); } break; case 78: { nimln(273, "ropes.nim"); app_148040(&result, rnl_149434); nimln(274, "ropes.nim"); i = addInt(i, 1); } break; default: { NimStringDesc* LOC25; nimln(276, "ropes.nim"); nimln(276, "ropes.nim"); if ((NU)(i) > (NU)(frmt->Sup.len)) raiseIndexError(); LOC25 = 0; LOC25 = nimCharToStr(frmt->data[i]); errorhandler_148108.ClEnv? errorhandler_148108.ClPrc(((NU8) 1), LOC25, NIM_FALSE, errorhandler_148108.ClEnv):((TMP568)(errorhandler_148108.ClPrc))(((NU8) 1), LOC25, NIM_FALSE); } break; } } LA4: ; nimln(277, "ropes.nim"); start = i; nimln(278, "ropes.nim"); while (1) { nimln(278, "ropes.nim"); if (!(i < length)) goto LA26; nimln(279, "ropes.nim"); { nimln(279, "ropes.nim"); nimln(279, "ropes.nim"); if ((NU)(i) > (NU)(frmt->Sup.len)) raiseIndexError(); if (!!(((NU8)(frmt->data[i]) == (NU8)(36)))) goto LA29; nimln(279, "ropes.nim"); i = addInt(i, 1); } goto LA27; LA29: ; { nimln(280, "ropes.nim"); goto LA26; } LA27: ; } LA26: ; nimln(281, "ropes.nim"); { NI TMP569; NI TMP570; NimStringDesc* LOC36; nimln(281, "ropes.nim"); nimln(281, "ropes.nim"); TMP569 = subInt(i, 1); if (!(start <= (NI32)(TMP569))) goto LA34; nimln(282, "ropes.nim"); nimln(282, "ropes.nim"); nimln(282, "ropes.nim"); TMP570 = subInt(i, 1); LOC36 = 0; LOC36 = copyStrLast(frmt, start, (NI32)(TMP570)); app_148046(&result, LOC36); } LA34: ; } LA1: ; nimln(283, "ropes.nim"); { NIM_BOOL LOC39; nimln(283, "ropes.nim"); nimln(283, "ropes.nim"); LOC39 = 0; LOC39 = ropeinvariant_148098(result); if (!!(LOC39)) goto LA40; nimln(283, "ropes.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP545)); } LA40: ; popFrame(); return result; }
N_NIMCALL(tnode191813*, semnodekindconstraints_280472)(tnode191813* p) { tnode191813* result; nimfr("semNodeKindConstraints", "parampatterns.nim") result = 0; nimln(120, "parampatterns.nim"); { nimln(120, "parampatterns.nim"); nimln(120, "parampatterns.nim"); if (!!(((*p).Kind == ((NU8) 40)))) goto LA3; nimln(120, "parampatterns.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP3591)); } LA3: ; nimln(121, "parampatterns.nim"); result = newnodei_192109(((NU8) 20), (*p).Info); nimln(122, "parampatterns.nim"); if (!(((TMP3568[(*result).Kind/8] &(1<<((*result).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3569)); nimln(122, "parampatterns.nim"); asgnRefNoCycle((void**) &(*result).kindU.S3.Strval, rawNewString(10)); nimln(123, "parampatterns.nim"); if (!(((TMP3568[(*result).Kind/8] &(1<<((*result).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3569)); (*result).kindU.S3.Strval = addChar((*result).kindU.S3.Strval, 1); nimln(124, "parampatterns.nim"); { NI LOC7; NI i_280667; NI HEX3Atmp_280727; NI LOC10; NI res_280729; nimln(124, "parampatterns.nim"); nimln(124, "parampatterns.nim"); LOC7 = 0; LOC7 = len_192274(p); if (!(2 <= LOC7)) goto LA8; i_280667 = 0; HEX3Atmp_280727 = 0; nimln(125, "parampatterns.nim"); nimln(125, "parampatterns.nim"); nimln(125, "parampatterns.nim"); LOC10 = 0; LOC10 = len_192274(p); HEX3Atmp_280727 = subInt(LOC10, 1); nimln(1458, "system.nim"); res_280729 = 1; nimln(1459, "system.nim"); while (1) { nimln(1459, "system.nim"); if (!(res_280729 <= HEX3Atmp_280727)) goto LA11; nimln(1458, "system.nim"); i_280667 = res_280729; nimln(126, "parampatterns.nim"); if (((TMP3570[(*p).Kind/8] &(1<<((*p).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(i_280667) >= (NU)((*p).kindU.S6.Sons->Sup.len)) raiseIndexError(); if (!(((TMP3568[(*result).Kind/8] &(1<<((*result).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3569)); compileconstraints_280106((*p).kindU.S6.Sons->data[i_280667], &(*result).kindU.S3.Strval); nimln(1461, "system.nim"); res_280729 = addInt(res_280729, 1); } LA11: ; nimln(127, "parampatterns.nim"); { nimln(127, "parampatterns.nim"); nimln(127, "parampatterns.nim"); if (!(((TMP3568[(*result).Kind/8] &(1<<((*result).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3569)); if (!(63 < (*result).kindU.S3.Strval->Sup.len)) goto LA14; nimln(128, "parampatterns.nim"); internalerror_168591((*p).Info, ((NimStringDesc*) &TMP3592)); } LA14: ; } goto LA5; LA8: ; { nimln(130, "parampatterns.nim"); patternerror_280040(p); } LA5: ; nimln(131, "parampatterns.nim"); if (!(((TMP3568[(*result).Kind/8] &(1<<((*result).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3569)); add_280046(&(*result).kindU.S3.Strval, ((NU8) 1)); popFrame(); return result; }
N_NIMCALL(void, fillbuffer_181072)(tbaselexer181018* l) { NI charsread; NI tocopy; NI s; NI oldbuflen; NI TMP1646; NI TMP1647; NI TMP1651; NI TMP1652; NI LOC13; NI TMP1653; NI TMP1654; nimfr("fillBuffer", "nimlexbase.nim") charsread = 0; tocopy = 0; s = 0; oldbuflen = 0; nimln(82, "nimlexbase.nim"); { nimln(82, "nimlexbase.nim"); nimln(82, "nimlexbase.nim"); if (!!(((*l).Sentinel < (*l).Buflen))) goto LA3; nimln(82, "nimlexbase.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP1645)); } LA3: ; nimln(83, "nimlexbase.nim"); nimln(83, "nimlexbase.nim"); nimln(83, "nimlexbase.nim"); TMP1646 = subInt((*l).Buflen, (*l).Sentinel); TMP1647 = subInt((NI64)(TMP1646), 1); tocopy = (NI64)(TMP1647); nimln(84, "nimlexbase.nim"); { nimln(84, "nimlexbase.nim"); nimln(84, "nimlexbase.nim"); if (!!((0 <= tocopy))) goto LA7; nimln(84, "nimlexbase.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP1648)); } LA7: ; nimln(85, "nimlexbase.nim"); { NI TMP1649; NI TMP1650; nimln(85, "nimlexbase.nim"); if (!(0 < tocopy)) goto LA11; nimln(86, "nimlexbase.nim"); nimln(86, "nimlexbase.nim"); TMP1649 = addInt((*l).Sentinel, 1); nimln(86, "nimlexbase.nim"); TMP1650 = mulInt(tocopy, 1); memmove(((void*) ((*l).Buf)), ((void*) (&(*l).Buf[(NI64)(TMP1649)])), (NI64)(TMP1650)); } LA11: ; nimln(88, "nimlexbase.nim"); nimln(89, "nimlexbase.nim"); nimln(88, "nimlexbase.nim"); nimln(89, "nimlexbase.nim"); nimln(89, "nimlexbase.nim"); TMP1651 = addInt((*l).Sentinel, 1); TMP1652 = mulInt((NI64)(TMP1651), 1); LOC13 = 0; LOC13 = llstreamread_179242((*l).Stream, ((void*) (&(*l).Buf[tocopy])), (NI64)(TMP1652)); TMP1653 = divInt(LOC13, 1); charsread = (NI64)(TMP1653); nimln(90, "nimlexbase.nim"); nimln(90, "nimlexbase.nim"); TMP1654 = addInt(tocopy, charsread); s = (NI64)(TMP1654); nimln(91, "nimlexbase.nim"); { NI TMP1655; nimln(91, "nimlexbase.nim"); nimln(91, "nimlexbase.nim"); TMP1655 = addInt((*l).Sentinel, 1); if (!(charsread < (NI64)(TMP1655))) goto LA16; nimln(92, "nimlexbase.nim"); (*l).Buf[s] = 0; nimln(93, "nimlexbase.nim"); (*l).Sentinel = s; } goto LA14; LA16: ; { nimln(96, "nimlexbase.nim"); s = subInt(s, 1); nimln(97, "nimlexbase.nim"); while (1) { nimln(98, "nimlexbase.nim"); { nimln(98, "nimlexbase.nim"); nimln(98, "nimlexbase.nim"); if (!!((s < (*l).Buflen))) goto LA22; nimln(98, "nimlexbase.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP1656)); } LA22: ; nimln(99, "nimlexbase.nim"); while (1) { NIM_BOOL LOC25; nimln(99, "nimlexbase.nim"); LOC25 = 0; nimln(99, "nimlexbase.nim"); LOC25 = (0 <= s); if (!(LOC25)) goto LA26; nimln(99, "nimlexbase.nim"); nimln(99, "nimlexbase.nim"); LOC25 = !((((NU8)((*l).Buf[s])) == ((NU8)(13)) || ((NU8)((*l).Buf[s])) == ((NU8)(10)))); LA26: ; if (!LOC25) goto LA24; nimln(99, "nimlexbase.nim"); s = subInt(s, 1); } LA24: ; nimln(100, "nimlexbase.nim"); { nimln(100, "nimlexbase.nim"); if (!(0 <= s)) goto LA29; nimln(102, "nimlexbase.nim"); (*l).Sentinel = s; nimln(103, "nimlexbase.nim"); goto LA19; } goto LA27; LA29: ; { NI TMP1657; NI TMP1658; void* LOC32; NI TMP1661; NI LOC37; NI TMP1662; NI TMP1665; nimln(107, "nimlexbase.nim"); oldbuflen = (*l).Buflen; nimln(108, "nimlexbase.nim"); nimln(108, "nimlexbase.nim"); TMP1657 = mulInt((*l).Buflen, 2); (*l).Buflen = (NI64)(TMP1657); nimln(109, "nimlexbase.nim"); nimln(109, "nimlexbase.nim"); nimln(109, "nimlexbase.nim"); TMP1658 = mulInt((*l).Buflen, 1); LOC32 = 0; LOC32 = realloc_4631(((void*) ((*l).Buf)), (NI64)(TMP1658)); (*l).Buf = ((NCSTRING) (LOC32)); nimln(110, "nimlexbase.nim"); { NI TMP1659; nimln(110, "nimlexbase.nim"); nimln(110, "nimlexbase.nim"); nimln(110, "nimlexbase.nim"); TMP1659 = subInt((*l).Buflen, oldbuflen); if (!!(((NI64)(TMP1659) == oldbuflen))) goto LA35; nimln(110, "nimlexbase.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP1660)); } LA35: ; nimln(111, "nimlexbase.nim"); nimln(112, "nimlexbase.nim"); nimln(111, "nimlexbase.nim"); nimln(112, "nimlexbase.nim"); TMP1661 = mulInt(oldbuflen, 1); LOC37 = 0; LOC37 = llstreamread_179242((*l).Stream, ((void*) (&(*l).Buf[oldbuflen])), (NI64)(TMP1661)); TMP1662 = divInt(LOC37, 1); charsread = (NI64)(TMP1662); nimln(113, "nimlexbase.nim"); { NI TMP1663; NI TMP1664; nimln(113, "nimlexbase.nim"); if (!(charsread < oldbuflen)) goto LA40; nimln(114, "nimlexbase.nim"); nimln(114, "nimlexbase.nim"); TMP1663 = addInt(oldbuflen, charsread); (*l).Buf[(NI64)(TMP1663)] = 0; nimln(115, "nimlexbase.nim"); nimln(115, "nimlexbase.nim"); TMP1664 = addInt(oldbuflen, charsread); (*l).Sentinel = (NI64)(TMP1664); nimln(116, "nimlexbase.nim"); goto LA19; } LA40: ; nimln(117, "nimlexbase.nim"); nimln(117, "nimlexbase.nim"); TMP1665 = subInt((*l).Buflen, 1); s = (NI64)(TMP1665); } LA27: ; } LA19: ; } LA14: ; popFrame(); }
N_NIMCALL(tident171019*, getident_171250)(NCSTRING identifier, NI length, NI h) { tident171019* result; NI idx; tident171019* last; NI id; NI i_171429; NI HEX3Atmp_171448; NI TMP983; NI res_171450; nimfr("getIdent", "idents.nim") result = 0; nimln(69, "idents.nim"); nimln(69, "idents.nim"); idx = (NI)(h & 8191); nimln(70, "idents.nim"); result = buckets_171033[(idx)- 0]; nimln(71, "idents.nim"); last = NIM_NIL; nimln(72, "idents.nim"); id = 0; nimln(73, "idents.nim"); while (1) { nimln(73, "idents.nim"); nimln(73, "idents.nim"); if (!!((result == NIM_NIL))) goto LA1; nimln(74, "idents.nim"); { NI LOC4; nimln(74, "idents.nim"); nimln(74, "idents.nim"); LOC4 = 0; LOC4 = cmpexact_171186((*result).S->data, identifier, length); if (!(LOC4 == 0)) goto LA5; nimln(75, "idents.nim"); { nimln(75, "idents.nim"); nimln(75, "idents.nim"); if (!!((last == NIM_NIL))) goto LA9; nimln(77, "idents.nim"); asgnRefNoCycle((void**) &(*last).Next, (*result).Next); nimln(78, "idents.nim"); asgnRefNoCycle((void**) &(*result).Next, buckets_171033[(idx)- 0]); nimln(79, "idents.nim"); asgnRefNoCycle((void**) &buckets_171033[(idx)- 0], result); } LA9: ; nimln(80, "idents.nim"); goto BeforeRet; } goto LA2; LA5: ; { NI LOC12; nimln(81, "idents.nim"); nimln(81, "idents.nim"); LOC12 = 0; LOC12 = cmpignorestyle_171036((*result).S->data, identifier, length); if (!(LOC12 == 0)) goto LA13; nimln(82, "idents.nim"); { NIM_BOOL LOC17; nimln(82, "idents.nim"); nimln(82, "idents.nim"); LOC17 = 0; nimln(82, "idents.nim"); LOC17 = (id == 0); if (LOC17) goto LA18; nimln(82, "idents.nim"); LOC17 = (id == (*result).Sup.Id); LA18: ; if (!!(LOC17)) goto LA19; nimln(82, "idents.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP980)); } LA19: ; nimln(83, "idents.nim"); id = (*result).Sup.Id; } goto LA2; LA13: ; LA2: ; nimln(84, "idents.nim"); last = result; nimln(85, "idents.nim"); result = (*result).Next; } LA1: ; nimln(86, "idents.nim"); result = (tident171019*) newObj((&NTI171017), sizeof(tident171019)); (*result).Sup.Sup.m_type = (&NTI171019); nimln(87, "idents.nim"); (*result).H = h; nimln(88, "idents.nim"); nimln(88, "idents.nim"); asgnRefNoCycle((void**) &(*result).S, mnewString(length)); i_171429 = 0; HEX3Atmp_171448 = 0; nimln(89, "idents.nim"); nimln(89, "idents.nim"); TMP983 = subInt(length, 1); HEX3Atmp_171448 = (NI32)(TMP983); nimln(1451, "system.nim"); res_171450 = 0; nimln(1452, "system.nim"); while (1) { nimln(1452, "system.nim"); if (!(res_171450 <= HEX3Atmp_171448)) goto LA21; nimln(1451, "system.nim"); i_171429 = res_171450; nimln(89, "idents.nim"); if ((NU)(i_171429) > (NU)((*result).S->Sup.len)) raiseIndexError(); (*result).S->data[i_171429] = identifier[i_171429]; nimln(1454, "system.nim"); res_171450 = addInt(res_171450, 1); } LA21: ; nimln(90, "idents.nim"); asgnRefNoCycle((void**) &(*result).Next, buckets_171033[(idx)- 0]); nimln(91, "idents.nim"); asgnRefNoCycle((void**) &buckets_171033[(idx)- 0], result); nimln(92, "idents.nim"); { nimln(92, "idents.nim"); if (!(id == 0)) goto LA24; nimln(93, "idents.nim"); wordcounter_171248 = addInt(wordcounter_171248, 1); nimln(94, "idents.nim"); nimln(94, "idents.nim"); if (wordcounter_171248 == (-2147483647 -1)) raiseOverflow(); (*result).Sup.Id = ((NI32)-(wordcounter_171248)); } goto LA22; LA24: ; { nimln(96, "idents.nim"); (*result).Sup.Id = id; } LA22: ; BeforeRet: ; popFrame(); return result; }
N_NIMCALL(void, merge_366227)(tentry365566* a_366235, NI a_366235Len0, tentry365566* b_366243, NI b_366243Len0, NI lo_366247, NI m_366249, NI hi_366251, TY366185 cmp_366259, NU8 order_366262) { NI j; NI bb; NI i; NI k; nimfr("merge", "algorithm.nim") nimln(101, "algorithm.nim"); { NI TMP5123; NI LOC3; NI LOC4; nimln(101, "algorithm.nim"); nimln(101, "algorithm.nim"); nimln(101, "algorithm.nim"); if ((NU)(m_366249) >= (NU)(a_366235Len0)) raiseIndexError(); nimln(101, "algorithm.nim"); TMP5123 = addInt(m_366249, 1); if ((NU)((NI32)(TMP5123)) >= (NU)(a_366235Len0)) raiseIndexError(); LOC3 = 0; LOC3 = cmp_366259.ClEnv? cmp_366259.ClPrc(a_366235[m_366249], a_366235[(NI32)(TMP5123)], cmp_366259.ClEnv):((TMP5124)(cmp_366259.ClPrc))(a_366235[m_366249], a_366235[(NI32)(TMP5123)]); LOC4 = 0; LOC4 = HEX2A_357919(LOC3, order_366262); if (!(LOC4 <= 0)) goto LA5; nimln(101, "algorithm.nim"); goto BeforeRet; } LA5: ; nimln(102, "algorithm.nim"); j = lo_366247; nimln(104, "algorithm.nim"); { nimln(104, "algorithm.nim"); nimln(104, "algorithm.nim"); if (!!((j <= m_366249))) goto LA9; nimln(104, "algorithm.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP5106)); } LA9: ; nimln(106, "algorithm.nim"); bb = 0; nimln(107, "algorithm.nim"); while (1) { nimln(107, "algorithm.nim"); if (!(j <= m_366249)) goto LA11; nimln(94, "algorithm.nim"); if ((NU)(bb) >= (NU)(b_366243Len0)) raiseIndexError(); if ((NU)(j) >= (NU)(a_366235Len0)) raiseIndexError(); b_366243[bb].Pos = a_366235[j].Pos; unsureAsgnRef((void**) &b_366243[bb].Sym, a_366235[j].Sym); nimln(109, "algorithm.nim"); bb = addInt(bb, 1); nimln(110, "algorithm.nim"); j = addInt(j, 1); } LA11: ; nimln(114, "algorithm.nim"); i = 0; nimln(115, "algorithm.nim"); k = lo_366247; nimln(117, "algorithm.nim"); while (1) { NIM_BOOL LOC13; nimln(117, "algorithm.nim"); LOC13 = 0; nimln(117, "algorithm.nim"); LOC13 = (k < j); if (!(LOC13)) goto LA14; nimln(117, "algorithm.nim"); LOC13 = (j <= hi_366251); LA14: ; if (!LOC13) goto LA12; nimln(118, "algorithm.nim"); { NI LOC17; NI LOC18; nimln(118, "algorithm.nim"); nimln(118, "algorithm.nim"); nimln(118, "algorithm.nim"); if ((NU)(i) >= (NU)(b_366243Len0)) raiseIndexError(); if ((NU)(j) >= (NU)(a_366235Len0)) raiseIndexError(); LOC17 = 0; LOC17 = cmp_366259.ClEnv? cmp_366259.ClPrc(b_366243[i], a_366235[j], cmp_366259.ClEnv):((TMP5125)(cmp_366259.ClPrc))(b_366243[i], a_366235[j]); LOC18 = 0; LOC18 = HEX2A_357919(LOC17, order_366262); if (!(LOC18 <= 0)) goto LA19; nimln(94, "algorithm.nim"); if ((NU)(k) >= (NU)(a_366235Len0)) raiseIndexError(); if ((NU)(i) >= (NU)(b_366243Len0)) raiseIndexError(); a_366235[k].Pos = b_366243[i].Pos; unsureAsgnRef((void**) &a_366235[k].Sym, b_366243[i].Sym); nimln(120, "algorithm.nim"); i = addInt(i, 1); } goto LA15; LA19: ; { nimln(94, "algorithm.nim"); if ((NU)(k) >= (NU)(a_366235Len0)) raiseIndexError(); if ((NU)(j) >= (NU)(a_366235Len0)) raiseIndexError(); a_366235[k].Pos = a_366235[j].Pos; unsureAsgnRef((void**) &a_366235[k].Sym, a_366235[j].Sym); nimln(123, "algorithm.nim"); j = addInt(j, 1); } LA15: ; nimln(124, "algorithm.nim"); k = addInt(k, 1); } LA12: ; nimln(127, "algorithm.nim"); while (1) { nimln(127, "algorithm.nim"); if (!(k < j)) goto LA22; nimln(94, "algorithm.nim"); if ((NU)(k) >= (NU)(a_366235Len0)) raiseIndexError(); if ((NU)(i) >= (NU)(b_366243Len0)) raiseIndexError(); a_366235[k].Pos = b_366243[i].Pos; unsureAsgnRef((void**) &a_366235[k].Sym, b_366243[i].Sym); nimln(129, "algorithm.nim"); k = addInt(k, 1); nimln(130, "algorithm.nim"); i = addInt(i, 1); } LA22: ; BeforeRet: ; popFrame(); }
N_NIMCALL(void, merge_362843)(tsym191843** a_362851, NI a_362851Len0, tsym191843** b_362859, NI b_362859Len0, NI lo_362863, NI m_362865, NI hi_362867, TY362801 cmp_362875, NU8 order_362878) { NI j; NI bb; NI i; NI k; nimfr("merge", "algorithm.nim") nimln(101, "algorithm.nim"); { NI TMP5104; NI LOC3; NI LOC4; nimln(101, "algorithm.nim"); nimln(101, "algorithm.nim"); nimln(101, "algorithm.nim"); if ((NU)(m_362865) >= (NU)(a_362851Len0)) raiseIndexError(); nimln(101, "algorithm.nim"); TMP5104 = addInt(m_362865, 1); if ((NU)((NI32)(TMP5104)) >= (NU)(a_362851Len0)) raiseIndexError(); LOC3 = 0; LOC3 = cmp_362875.ClEnv? cmp_362875.ClPrc(a_362851[m_362865], a_362851[(NI32)(TMP5104)], cmp_362875.ClEnv):((TMP5105)(cmp_362875.ClPrc))(a_362851[m_362865], a_362851[(NI32)(TMP5104)]); LOC4 = 0; LOC4 = HEX2A_357919(LOC3, order_362878); if (!(LOC4 <= 0)) goto LA5; nimln(101, "algorithm.nim"); goto BeforeRet; } LA5: ; nimln(102, "algorithm.nim"); j = lo_362863; nimln(104, "algorithm.nim"); { nimln(104, "algorithm.nim"); nimln(104, "algorithm.nim"); if (!!((j <= m_362865))) goto LA9; nimln(104, "algorithm.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP5106)); } LA9: ; nimln(106, "algorithm.nim"); bb = 0; nimln(107, "algorithm.nim"); while (1) { nimln(107, "algorithm.nim"); if (!(j <= m_362865)) goto LA11; nimln(94, "algorithm.nim"); if ((NU)(bb) >= (NU)(b_362859Len0)) raiseIndexError(); if ((NU)(j) >= (NU)(a_362851Len0)) raiseIndexError(); unsureAsgnRef((void**) &b_362859[bb], a_362851[j]); nimln(109, "algorithm.nim"); bb = addInt(bb, 1); nimln(110, "algorithm.nim"); j = addInt(j, 1); } LA11: ; nimln(114, "algorithm.nim"); i = 0; nimln(115, "algorithm.nim"); k = lo_362863; nimln(117, "algorithm.nim"); while (1) { NIM_BOOL LOC13; nimln(117, "algorithm.nim"); LOC13 = 0; nimln(117, "algorithm.nim"); LOC13 = (k < j); if (!(LOC13)) goto LA14; nimln(117, "algorithm.nim"); LOC13 = (j <= hi_362867); LA14: ; if (!LOC13) goto LA12; nimln(118, "algorithm.nim"); { NI LOC17; NI LOC18; nimln(118, "algorithm.nim"); nimln(118, "algorithm.nim"); nimln(118, "algorithm.nim"); if ((NU)(i) >= (NU)(b_362859Len0)) raiseIndexError(); if ((NU)(j) >= (NU)(a_362851Len0)) raiseIndexError(); LOC17 = 0; LOC17 = cmp_362875.ClEnv? cmp_362875.ClPrc(b_362859[i], a_362851[j], cmp_362875.ClEnv):((TMP5107)(cmp_362875.ClPrc))(b_362859[i], a_362851[j]); LOC18 = 0; LOC18 = HEX2A_357919(LOC17, order_362878); if (!(LOC18 <= 0)) goto LA19; nimln(94, "algorithm.nim"); if ((NU)(k) >= (NU)(a_362851Len0)) raiseIndexError(); if ((NU)(i) >= (NU)(b_362859Len0)) raiseIndexError(); unsureAsgnRef((void**) &a_362851[k], b_362859[i]); nimln(120, "algorithm.nim"); i = addInt(i, 1); } goto LA15; LA19: ; { nimln(94, "algorithm.nim"); if ((NU)(k) >= (NU)(a_362851Len0)) raiseIndexError(); if ((NU)(j) >= (NU)(a_362851Len0)) raiseIndexError(); unsureAsgnRef((void**) &a_362851[k], a_362851[j]); nimln(123, "algorithm.nim"); j = addInt(j, 1); } LA15: ; nimln(124, "algorithm.nim"); k = addInt(k, 1); } LA12: ; nimln(127, "algorithm.nim"); while (1) { nimln(127, "algorithm.nim"); if (!(k < j)) goto LA22; nimln(94, "algorithm.nim"); if ((NU)(k) >= (NU)(a_362851Len0)) raiseIndexError(); if ((NU)(i) >= (NU)(b_362859Len0)) raiseIndexError(); unsureAsgnRef((void**) &a_362851[k], b_362859[i]); nimln(129, "algorithm.nim"); k = addInt(k, 1); nimln(130, "algorithm.nim"); i = addInt(i, 1); } LA22: ; BeforeRet: ; popFrame(); }