N_NIMCALL(void, addpackage_mPfTsfux8gBVeyQ8xwDYTQ)(Stringtableobj_DKRIdH9c9cKI7YpQb9c0wKlEw* packages0, NimStringDesc* p0) { NI x0; NimStringDesc* name0; x0 = versionsplitpos_0bw6GOnkbOdW19ciUnT3QEw(p0); name0 = copyStrLast(p0, ((NI) 0), (NI)(x0 - ((NI) 1))); { NimStringDesc* version0; if (!(x0 < (p0 ? p0->Sup.len : 0))) goto LA3; version0 = copyStr(p0, (NI)(x0 + ((NI) 1))); { NimStringDesc* LOC7; NIM_BOOL LOC8; LOC7 = (NimStringDesc*)0; LOC7 = getordefault_puv5W0GXw9aUdLJI2i8WreQ(packages0, name0); LOC8 = (NIM_BOOL)0; LOC8 = HEX3CHEX2E_T3MrVNu6QdhxPeHWeI9a9bIg(LOC7, version0); if (!LOC8) goto LA9; nstPut(packages0, name0, version0); } LA9: ; } goto LA1; LA3: ; { nstPut(packages0, name0, ((NimStringDesc*) &T_asNQM9aynXXg9ccUABbReyew_5)); } LA1: ; }
N_NIMCALL(void, addpackage_172126)(Stringtableobj133012* packages, NimStringDesc* p) { NI x; NimStringDesc* name; x = versionsplitpos_172023(p); name = copyStrLast(p, ((NI) 0), (NI)(x - ((NI) 1))); { NimStringDesc* version; if (!(x < (p ? p->Sup.len : 0))) goto LA3; version = copyStr(p, (NI)(x + ((NI) 1))); { NimStringDesc* LOC7; NIM_BOOL LOC8; LOC7 = 0; LOC7 = nstGet(packages, name); LOC8 = 0; LOC8 = HEX3CHEX2E_172064(LOC7, version); if (!LOC8) goto LA9; nstPut(packages, name, version); } LA9: ; } goto LA1; LA3: ; { nstPut(packages, name, ((NimStringDesc*) &TMP1660)); } LA1: ; }
N_NIMCALL(void, addpackage_196084)(Stringtableobj140209* packages, NimStringDesc* p) { NI x; NimStringDesc* name; x = versionsplitpos_196008(p); name = copyStrLast(p, ((NI) 0), (NI)(x - ((NI) 1))); { NimStringDesc* version; if (!(x < (p ? p->Sup.len : 0))) goto LA3; version = copyStr(p, (NI)(x + ((NI) 1))); { NimStringDesc* LOC7; NIM_BOOL LOC8; LOC7 = 0; LOC7 = getordefault_140814(packages, name); LOC8 = 0; LOC8 = HEX3CHEX2E_196034(LOC7, version); if (!LOC8) goto LA9; nstPut(packages, name, version); } LA9: ; } goto LA1; LA3: ; { nstPut(packages, name, ((NimStringDesc*) &TMP1794)); } LA1: ; }
N_NIMCALL(void, addpackage_277083_1623492514)(Stringtableobj152608* packages0, NimStringDesc* p0) { NI x0; NimStringDesc* name0; x0 = versionsplitpos_277007_1623492514(p0); name0 = copyStrLast(p0, ((NI) 0), (NI)(x0 - ((NI) 1))); { NimStringDesc* version0; if (!(x0 < (p0 ? p0->Sup.len : 0))) goto LA3; version0 = copyStr(p0, (NI)(x0 + ((NI) 1))); { NimStringDesc* LOC7; NIM_BOOL LOC8; LOC7 = (NimStringDesc*)0; LOC7 = getordefault_153214_603679043(packages0, name0); LOC8 = (NIM_BOOL)0; LOC8 = HEX3CHEX2E_277033_1623492514(LOC7, version0); if (!LOC8) goto LA9; nstPut(packages0, name0, version0); } LA9: ; } goto LA1; LA3: ; { nstPut(packages0, name0, ((NimStringDesc*) &T1623492514_5)); } LA1: ; }
N_NIMCALL(NimStringDesc*, canondynlibname_154459)(NimStringDesc* s) { NimStringDesc* result; NI start; NI ende; result = 0; { NIM_BOOL LOC3; LOC3 = 0; LOC3 = nsuStartsWith(s, ((NimStringDesc*) &TMP1863)); if (!LOC3) goto LA4; start = ((NI) 3); } goto LA1; LA4: ; { start = ((NI) 0); } LA1: ; ende = nsuFindCharSet(s, TMP1864, ((NI) 0)); { if (!(((NI) 0) <= ende)) goto LA9; result = copyStrLast(s, start, (NI)(ende - ((NI) 1))); } goto LA7; LA9: ; { result = copyStr(s, start); } LA7: ; return result; }
N_NIMCALL(NimStringDesc*, npocmdLineRest)(Optparser176011* p) { NimStringDesc* result; NimStringDesc* LOC1; result = 0; LOC1 = 0; LOC1 = copyStrLast((*p).cmd, (*p).pos, (NI)(((*p).cmd ? (*p).cmd->Sup.len : 0) - ((NI) 1))); result = nsuStrip(LOC1, NIM_TRUE, NIM_TRUE); return result; }
N_NIMCALL(NimStringDesc*, npocmdLineRest)(TY189404* P_189913) { NimStringDesc* Result_189914; NimStringDesc* LOC1; Result_189914 = 0; LOC1 = 0; LOC1 = copyStrLast((*P_189913).Cmd, (*P_189913).Pos, (NI64)((*P_189913).Cmd->Sup.len - 1)); Result_189914 = nsuStrip(LOC1, NIM_TRUE, NIM_TRUE); return Result_189914; }
N_NIMCALL(void, addpackage_175137)(tstringtable123810* packages, NimStringDesc* p) { NI x; NimStringDesc* name; NI TMP1418; nimfr("addPackage", "babelcmd.nim") nimln(47, "babelcmd.nim"); x = versionsplitpos_175014(p); nimln(48, "babelcmd.nim"); nimln(48, "babelcmd.nim"); nimln(48, "babelcmd.nim"); TMP1418 = subInt(x, 1); name = copyStrLast(p, 0, (NI32)(TMP1418)); nimln(49, "babelcmd.nim"); { NimStringDesc* version; NI TMP1419; nimln(49, "babelcmd.nim"); nimln(49, "babelcmd.nim"); if (!(x < p->Sup.len)) goto LA3; nimln(50, "babelcmd.nim"); nimln(50, "babelcmd.nim"); nimln(50, "babelcmd.nim"); TMP1419 = addInt(x, 1); version = copyStr(p, (NI32)(TMP1419)); nimln(51, "babelcmd.nim"); { NimStringDesc* LOC7; NIM_BOOL LOC8; nimln(51, "babelcmd.nim"); nimln(51, "babelcmd.nim"); LOC7 = 0; LOC7 = nstGet(packages, name); LOC8 = 0; LOC8 = HEX3CHEX2E_175054(LOC7, version); if (!LOC8) goto LA9; nimln(52, "babelcmd.nim"); nstPut(packages, name, version); } LA9: ; } goto LA1; LA3: ; { nimln(54, "babelcmd.nim"); nstPut(packages, name, ((NimStringDesc*) &TMP1417)); } LA1: ; popFrame(); }
static N_INLINE(NI, parsewhile_97054)(NimStringDesc* s, NimStringDesc** token, TY99946 validchars, NI start) { NI result; NI i; result = 0; i = start; { while (1) { if (!((validchars[((NU8)(s->data[i]))/8] &(1<<(((NU8)(s->data[i]))%8)))!=0)) goto LA2; i += ((NI) 1); } LA2: ; } result = (NI)(i - start); unsureAsgnRef((void**) (&(*token)), copyStrLast(s, start, (NI)(i - ((NI) 1)))); return result; }
N_NIMCALL(NimStringDesc*, Removetrailingdirsep_46211)(NimStringDesc* Path_46213) { NimStringDesc* Result_46214; NIM_BOOL LOC2; Result_46214 = 0; LOC2 = (0 < Path_46213->Sup.len); if (!(LOC2)) goto LA3; LOC2 = ((NU8)(Path_46213->data[(NI64)(Path_46213->Sup.len - 1)]) == (NU8)(47)); LA3: ; if (!LOC2) goto LA4; Result_46214 = copyStrLast(Path_46213, 0, (NI64)(Path_46213->Sup.len - 2)); goto LA1; LA4: ; Result_46214 = copyString(Path_46213); LA1: ; return Result_46214; }
N_NIMCALL(NimStringDesc*, canondynlibname_137360)(NimStringDesc* s) { NimStringDesc* result; NI start; NI ende; nimfr("canonDynlibName", "options.nim") result = 0; nimln(356, "options.nim"); nimln(356, "options.nim"); { NIM_BOOL LOC3; nimln(356, "options.nim"); LOC3 = 0; LOC3 = nsuStartsWith(s, ((NimStringDesc*) &TMP442)); if (!LOC3) goto LA4; start = 3; } goto LA1; LA4: ; { start = 0; } LA1: ; nimln(357, "options.nim"); ende = nsuFindCharSet(s, TMP443, 0); nimln(358, "options.nim"); { NI TMP444; nimln(358, "options.nim"); if (!(0 <= ende)) goto LA9; nimln(359, "options.nim"); nimln(359, "options.nim"); nimln(359, "options.nim"); TMP444 = subInt(ende, 1); result = copyStrLast(s, start, (NI32)(TMP444)); } goto LA7; LA9: ; { nimln(361, "options.nim"); nimln(361, "options.nim"); result = copyStr(s, start); } LA7: ; popFrame(); return result; }
N_NIMCALL(NimStringDesc*, nosparentDir)(NimStringDesc* path) { NimStringDesc* result; NI sepPos; result = (NimStringDesc*)0; sepPos = parentDirPos_GvT9b2csQmLzVANEJ9bdAuNA_2(path); { if (!(((NI) 0) <= sepPos)) goto LA3_; result = copyStrLast(path, ((NI) 0), (NI)(sepPos - ((NI) 1))); } goto LA1_; LA3_: ; { result = copyString(((NimStringDesc*) &TM_jvWQYw9bcuYhftfPX2ynPeg_2)); } LA1_: ; return result; }
N_NIMCALL(NimStringDesc*, nosparentDir)(NimStringDesc* path) { NimStringDesc* result; NI seppos; result = 0; seppos = parentdirpos_118359(path); { if (!(((NI) 0) <= seppos)) goto LA3; result = copyStrLast(path, ((NI) 0), (NI)(seppos - ((NI) 1))); } goto LA1; LA3: ; { result = copyString(((NimStringDesc*) &TMP136)); } LA1: ; return result; }
N_NIMCALL(NimStringDesc*, npocmdLineRest)(toptparser527807* p) { NimStringDesc* result; NI TMP7636; NimStringDesc* LOC1; nimfr("cmdLineRest", "parseopt.nim") result = 0; nimln(128, "parseopt.nim"); nimln(128, "parseopt.nim"); nimln(128, "parseopt.nim"); nimln(128, "parseopt.nim"); nimln(128, "parseopt.nim"); TMP7636 = subInt((*p).Cmd->Sup.len, 1); LOC1 = 0; LOC1 = copyStrLast((*p).Cmd, (*p).Pos, (NI64)(TMP7636)); result = nsuStrip(LOC1, NIM_TRUE, NIM_TRUE); popFrame(); return result; }
N_NIMCALL(NimStringDesc*, npocmdLineRest)(toptparser416607* p) { NimStringDesc* result; NI TMP7031; NimStringDesc* LOC1; nimfr("cmdLineRest", "parseopt.nim") result = 0; nimln(128, "parseopt.nim"); nimln(128, "parseopt.nim"); nimln(128, "parseopt.nim"); nimln(128, "parseopt.nim"); nimln(128, "parseopt.nim"); TMP7031 = subInt((*p).Cmd->Sup.len, 1); LOC1 = 0; LOC1 = copyStrLast((*p).Cmd, (*p).Pos, (NI32)(TMP7031)); result = nsuStrip(LOC1, NIM_TRUE, NIM_TRUE); popFrame(); return result; }N_NOINLINE(void, pureparseoptInit)(void) {
N_NIMCALL(NimStringDesc*, canondynlibname_114635)(NimStringDesc* s) { NimStringDesc* result; NI start; NI ende; nimfr("canonDynlibName", "options.nim") result = 0; nimln(310, "options.nim"); nimln(310, "options.nim"); { NIM_BOOL LOC3; nimln(310, "options.nim"); LOC3 = 0; LOC3 = nsuStartsWith(s, ((NimStringDesc*) &TMP339)); if (!LOC3) goto LA4; start = 3; } goto LA1; LA4: ; { start = 0; } LA1: ; nimln(311, "options.nim"); ende = nsuFindCharSet(s, TMP361, 0); nimln(312, "options.nim"); { NI TMP362; nimln(702, "system.nim"); if (!(0 <= ende)) goto LA9; nimln(313, "options.nim"); nimln(313, "options.nim"); nimln(313, "options.nim"); TMP362 = subInt(ende, 1); result = copyStrLast(s, start, (NI32)(TMP362)); } goto LA7; LA9: ; { nimln(315, "options.nim"); nimln(315, "options.nim"); result = copyStr(s, start); } LA7: ; popFrame(); return result; }
static N_INLINE(NI, parseuntil_96981)(NimStringDesc* s, NimStringDesc** token, TY99946 until, NI start) { NI result; NI i; result = 0; i = start; { while (1) { NIM_BOOL LOC3; LOC3 = 0; LOC3 = (i < (s ? s->Sup.len : 0)); if (!(LOC3)) goto LA4; LOC3 = !(((until[((NU8)(s->data[i]))/8] &(1<<(((NU8)(s->data[i]))%8)))!=0)); LA4: ; if (!LOC3) goto LA2; i += ((NI) 1); } LA2: ; } result = (NI)(i - start); unsureAsgnRef((void**) (&(*token)), copyStrLast(s, start, (NI)(i - ((NI) 1)))); return result; }
N_NIMCALL(NimStringDesc*, removetrailingdirsep_153418)(NimStringDesc* path) { NimStringDesc* result; result = 0; { NIM_BOOL LOC3; LOC3 = 0; LOC3 = (((NI) 0) < (path ? path->Sup.len : 0)); if (!(LOC3)) goto LA4; LOC3 = ((NU8)(path->data[(NI)((path ? path->Sup.len : 0) - ((NI) 1))]) == (NU8)(47)); LA4: ; if (!LOC3) goto LA5; result = copyStrLast(path, ((NI) 0), (NI)((path ? path->Sup.len : 0) - ((NI) 2))); } goto LA1; LA5: ; { result = copyString(path); } LA1: ; return result; }
N_NIMCALL(NimStringDesc*, removetrailingdirsep_136410)(NimStringDesc* path) { NimStringDesc* result; nimfr("removeTrailingDirSep", "options.nim") result = 0; nimln(206, "options.nim"); { NIM_BOOL LOC3; NI TMP418; NI TMP419; nimln(206, "options.nim"); LOC3 = 0; nimln(206, "options.nim"); nimln(206, "options.nim"); LOC3 = (0 < path->Sup.len); if (!(LOC3)) goto LA4; nimln(206, "options.nim"); nimln(206, "options.nim"); nimln(206, "options.nim"); TMP418 = subInt(path->Sup.len, 1); if ((NU)((NI32)(TMP418)) > (NU)(path->Sup.len)) raiseIndexError(); LOC3 = ((NU8)(path->data[(NI32)(TMP418)]) == (NU8)(47)); LA4: ; if (!LOC3) goto LA5; nimln(207, "options.nim"); nimln(207, "options.nim"); nimln(207, "options.nim"); nimln(207, "options.nim"); TMP419 = subInt(path->Sup.len, 2); result = copyStrLast(path, 0, (NI32)(TMP419)); } goto LA1; LA5: ; { nimln(209, "options.nim"); result = copyString(path); } LA1: ; popFrame(); return result; }
N_NIMCALL(void, nossplitPath)(NimStringDesc* path, TY_UV3llMMYFckfui8YMBuUZA* Result) { NI sepPos; sepPos = ((NI) -1); { NI i; NI colontmp_; NI res; i = (NI)0; colontmp_ = (NI)0; colontmp_ = (NI)((path ? path->Sup.len : 0) - ((NI) 1)); res = colontmp_; { while (1) { if (!(((NI) 0) <= res)) goto LA3; i = res; { if (!(((NU8)(path->data[i])) == ((NU8)(47)) || ((NU8)(path->data[i])) == ((NU8)(47)))) goto LA6_; sepPos = i; goto LA1; } LA6_: ; res -= ((NI) 1); } LA3: ; } } LA1: ; { if (!(((NI) 0) <= sepPos)) goto LA10_; unsureAsgnRef((void**) (&(*Result).Field0), copyStrLast(path, ((NI) 0), (NI)(sepPos - ((NI) 1)))); unsureAsgnRef((void**) (&(*Result).Field1), copyStr(path, (NI)(sepPos + ((NI) 1)))); } goto LA8_; LA10_: ; { unsureAsgnRef((void**) (&(*Result).Field0), copyString(((NimStringDesc*) &TM_jvWQYw9bcuYhftfPX2ynPeg_2))); unsureAsgnRef((void**) (&(*Result).Field1), copyString(path)); } LA8_: ; }
N_NIMCALL(void, nossplitPath)(NimStringDesc* path, Keyvaluepair133008* Result) { NI seppos; seppos = ((NI) -1); { NI i_118324; NI HEX3Atmp_118337; NI res_118340; i_118324 = 0; HEX3Atmp_118337 = 0; HEX3Atmp_118337 = (NI)((path ? path->Sup.len : 0) - ((NI) 1)); res_118340 = HEX3Atmp_118337; { while (1) { if (!(((NI) 0) <= res_118340)) goto LA3; i_118324 = res_118340; { if (!(((NU8)(path->data[i_118324])) == ((NU8)(47)) || ((NU8)(path->data[i_118324])) == ((NU8)(47)))) goto LA6; seppos = i_118324; goto LA1; } LA6: ; res_118340 -= ((NI) 1); } LA3: ; } } LA1: ; { if (!(((NI) 0) <= seppos)) goto LA10; unsureAsgnRef((void**) (&(*Result).Field0), copyStrLast(path, ((NI) 0), (NI)(seppos - ((NI) 1)))); unsureAsgnRef((void**) (&(*Result).Field1), copyStr(path, (NI)(seppos + ((NI) 1)))); } goto LA8; LA10: ; { unsureAsgnRef((void**) (&(*Result).Field0), copyString(((NimStringDesc*) &TMP136))); unsureAsgnRef((void**) (&(*Result).Field1), copyString(path)); } LA8: ; }
N_NIMCALL(void, noscreateDir)(NimStringDesc* dir) { NIM_BOOL omitnext; omitnext = NIM_FALSE; { NI i_123211; NI HEX3Atmp_123224; NI res_123227; i_123211 = 0; HEX3Atmp_123224 = 0; HEX3Atmp_123224 = (NI)((dir ? dir->Sup.len : 0) - ((NI) 1)); res_123227 = ((NI) 1); { while (1) { if (!(res_123227 <= HEX3Atmp_123224)) goto LA3; i_123211 = res_123227; { if (!(((NU8)(dir->data[i_123211])) == ((NU8)(47)) || ((NU8)(dir->data[i_123211])) == ((NU8)(47)))) goto LA6; { if (!omitnext) goto LA10; omitnext = NIM_FALSE; } goto LA8; LA10: ; { NimStringDesc* LOC13; LOC13 = 0; LOC13 = copyStrLast(dir, ((NI) 0), (NI)(i_123211 - ((NI) 1))); rawcreatedir_122843(LOC13); } LA8: ; } LA6: ; res_123227 += ((NI) 1); } LA3: ; } } rawcreatedir_122843(dir); }
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext) { NimStringDesc* result; NI extPos; result = (NimStringDesc*)0; extPos = searchExtPos_GvT9b2csQmLzVANEJ9bdAuNA(filename); { NimStringDesc* T5_; NimStringDesc* T6_; if (!(extPos < ((NI) 0))) goto LA3_; T5_ = (NimStringDesc*)0; T6_ = (NimStringDesc*)0; T6_ = normExt_3yxSdoh5oykvpUqYYeaz2g(ext); T5_ = rawNewString(filename->Sup.len + T6_->Sup.len + 0); appendString(T5_, filename); appendString(T5_, T6_); result = T5_; } goto LA1_; LA3_: ; { NimStringDesc* T8_; NimStringDesc* T9_; NimStringDesc* T10_; T8_ = (NimStringDesc*)0; T9_ = (NimStringDesc*)0; T9_ = copyStrLast(filename, ((NI) 0), (NI)(extPos - ((NI) 1))); T10_ = (NimStringDesc*)0; T10_ = normExt_3yxSdoh5oykvpUqYYeaz2g(ext); T8_ = rawNewString(T9_->Sup.len + T10_->Sup.len + 0); appendString(T8_, T9_); appendString(T8_, T10_); result = T8_; } LA1_: ; return result; }
N_NIMCALL(NimStringDesc*, mac_319009)(NimStringDesc* val, NI sec) { NimStringDesc* result; NimStringDesc* LOC1; NimStringDesc* LOC2; NimStringDesc* LOC3; NimStringDesc* LOC4; NimStringDesc* LOC5; result = 0; LOC1 = 0; LOC2 = 0; LOC2 = nimIntToStr(sec); LOC3 = 0; LOC3 = HEX3FHEX3F_319015(val, ((NimStringDesc*) &TMP1459)); LOC1 = rawNewString(Key_264379->Sup.len + LOC2->Sup.len + LOC3->Sup.len + 0); appendString(LOC1, Key_264379); appendString(LOC1, LOC2); appendString(LOC1, LOC3); LOC4 = 0; LOC4 = sha3_265041(LOC1); LOC5 = 0; LOC5 = copyStrLast(LOC4, ((NI) 0), ((NI) 11)); result = hex_240200(LOC5); return result; }
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext) { NimStringDesc* result; NI extpos; result = 0; extpos = searchextpos_118536(filename); { NimStringDesc* LOC5; NimStringDesc* LOC6; if (!(extpos < ((NI) 0))) goto LA3; LOC5 = 0; LOC6 = 0; LOC6 = normext_118526(ext); LOC5 = rawNewString(filename->Sup.len + LOC6->Sup.len + 0); appendString(LOC5, filename); appendString(LOC5, LOC6); result = LOC5; } goto LA1; LA3: ; { NimStringDesc* LOC8; NimStringDesc* LOC9; NimStringDesc* LOC10; LOC8 = 0; LOC9 = 0; LOC9 = copyStrLast(filename, ((NI) 0), (NI)(extpos - ((NI) 1))); LOC10 = 0; LOC10 = normext_118526(ext); LOC8 = rawNewString(LOC9->Sup.len + LOC10->Sup.len + 0); appendString(LOC8, LOC9); appendString(LOC8, LOC10); result = LOC8; } LA1: ; return result; }
N_NIMCALL(tstringtable120810*, parsecookies_333012)(NimStringDesc* s) { tstringtable120810* result; NI i; nimfr("parseCookies", "cookies.nim") result = 0; nimln(16, "cookies.nim"); result = nstnewStringTable(((NU8) 1)); nimln(17, "cookies.nim"); i = 0; nimln(18, "cookies.nim"); while (1) { NI keystart; NI keyend; NI TMP4687; NI valstart; NimStringDesc* LOC15; NI TMP4688; NimStringDesc* LOC16; nimln(19, "cookies.nim"); while (1) { NIM_BOOL LOC3; nimln(19, "cookies.nim"); LOC3 = 0; nimln(19, "cookies.nim"); if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError(); LOC3 = ((NU8)(s->data[i]) == (NU8)(32)); if (LOC3) goto LA4; nimln(19, "cookies.nim"); if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError(); LOC3 = ((NU8)(s->data[i]) == (NU8)(9)); LA4: ; if (!LOC3) goto LA2; nimln(19, "cookies.nim"); i = addInt(i, 1); } LA2: ; nimln(20, "cookies.nim"); keystart = i; nimln(21, "cookies.nim"); while (1) { NIM_BOOL LOC6; nimln(21, "cookies.nim"); LOC6 = 0; nimln(21, "cookies.nim"); nimln(21, "cookies.nim"); if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError(); LOC6 = !(((NU8)(s->data[i]) == (NU8)(61))); if (!(LOC6)) goto LA7; nimln(21, "cookies.nim"); nimln(21, "cookies.nim"); if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError(); LOC6 = !(((NU8)(s->data[i]) == (NU8)(0))); LA7: ; if (!LOC6) goto LA5; nimln(21, "cookies.nim"); i = addInt(i, 1); } LA5: ; nimln(22, "cookies.nim"); nimln(22, "cookies.nim"); TMP4687 = subInt(i, 1); keyend = (NI32)(TMP4687); nimln(23, "cookies.nim"); { nimln(23, "cookies.nim"); if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError(); if (!((NU8)(s->data[i]) == (NU8)(0))) goto LA10; nimln(23, "cookies.nim"); goto LA1; } LA10: ; nimln(24, "cookies.nim"); i = addInt(i, 1); nimln(25, "cookies.nim"); valstart = i; nimln(26, "cookies.nim"); while (1) { NIM_BOOL LOC13; nimln(26, "cookies.nim"); LOC13 = 0; nimln(26, "cookies.nim"); nimln(26, "cookies.nim"); if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError(); LOC13 = !(((NU8)(s->data[i]) == (NU8)(59))); if (!(LOC13)) goto LA14; nimln(26, "cookies.nim"); nimln(26, "cookies.nim"); if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError(); LOC13 = !(((NU8)(s->data[i]) == (NU8)(0))); LA14: ; if (!LOC13) goto LA12; nimln(26, "cookies.nim"); i = addInt(i, 1); } LA12: ; nimln(27, "cookies.nim"); nimln(27, "cookies.nim"); LOC15 = 0; LOC15 = copyStrLast(s, keystart, keyend); nimln(27, "cookies.nim"); nimln(27, "cookies.nim"); TMP4688 = subInt(i, 1); LOC16 = 0; LOC16 = copyStrLast(s, valstart, (NI32)(TMP4688)); nstPut(result, LOC15, LOC16); nimln(28, "cookies.nim"); { nimln(28, "cookies.nim"); if ((NU)(i) > (NU)(s->Sup.len)) raiseIndexError(); if (!((NU8)(s->data[i]) == (NU8)(0))) goto LA19; nimln(28, "cookies.nim"); goto LA1; } LA19: ; nimln(29, "cookies.nim"); i = addInt(i, 1); } LA1: ; 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_80421(((NimStringDesc*) &TMP545)); } LA40: ; popFrame(); return result; }
N_NIMCALL(NimStringDesc*, nstFormat)(NimStringDesc* f, tstringtable113610* t, NU8 flags) { NimStringDesc* result; NI i; nimfr("%", "strtabs.nim") result = 0; nimln(194, "strtabs.nim"); result = copyString(((NimStringDesc*) &TMP297)); nimln(195, "strtabs.nim"); i = 0; nimln(196, "strtabs.nim"); while (1) { nimln(196, "strtabs.nim"); nimln(196, "strtabs.nim"); if (!(i < f->Sup.len)) goto LA1; nimln(197, "strtabs.nim"); { NI TMP314; nimln(197, "strtabs.nim"); if ((NU)(i) > (NU)(f->Sup.len)) raiseIndexError(); if (!((NU8)(f->data[i]) == (NU8)(36))) goto LA4; nimln(198, "strtabs.nim"); nimln(198, "strtabs.nim"); TMP314 = addInt(i, 1); if ((NU)((NI32)(TMP314)) > (NU)(f->Sup.len)) raiseIndexError(); switch (((NU8)(f->data[(NI32)(TMP314)]))) { case 36: { nimln(200, "strtabs.nim"); result = addChar(result, 36); nimln(201, "strtabs.nim"); i = addInt(i, 2); } break; case 123: { NI j; NI TMP315; NI TMP316; NI TMP317; NimStringDesc* LOC11; NimStringDesc* LOC12; NI TMP318; nimln(203, "strtabs.nim"); nimln(203, "strtabs.nim"); TMP315 = addInt(i, 1); j = (NI32)(TMP315); nimln(204, "strtabs.nim"); while (1) { NIM_BOOL LOC9; nimln(204, "strtabs.nim"); LOC9 = 0; nimln(204, "strtabs.nim"); nimln(204, "strtabs.nim"); LOC9 = (j < f->Sup.len); if (!(LOC9)) goto LA10; nimln(698, "system.nim"); nimln(698, "system.nim"); if ((NU)(j) > (NU)(f->Sup.len)) raiseIndexError(); LOC9 = !(((NU8)(f->data[j]) == (NU8)(125))); LA10: ; if (!LOC9) goto LA8; nimln(204, "strtabs.nim"); j = addInt(j, 1); } LA8: ; nimln(205, "strtabs.nim"); nimln(205, "strtabs.nim"); nimln(205, "strtabs.nim"); nimln(205, "strtabs.nim"); TMP316 = addInt(i, 2); nimln(205, "strtabs.nim"); TMP317 = subInt(j, 1); LOC11 = 0; LOC11 = copyStrLast(f, (NI32)(TMP316), (NI32)(TMP317)); LOC12 = 0; LOC12 = getvalue_113975(t, flags, LOC11); result = resizeString(result, LOC12->Sup.len + 0); appendString(result, LOC12); nimln(206, "strtabs.nim"); nimln(206, "strtabs.nim"); TMP318 = addInt(j, 1); i = (NI32)(TMP318); } break; case 97 ... 122: case 65 ... 90: case 128 ... 255: case 95: { NI j; NI TMP319; NI TMP320; NI TMP321; NimStringDesc* LOC17; NimStringDesc* LOC18; nimln(208, "strtabs.nim"); nimln(208, "strtabs.nim"); TMP319 = addInt(i, 1); j = (NI32)(TMP319); nimln(209, "strtabs.nim"); while (1) { NIM_BOOL LOC15; nimln(209, "strtabs.nim"); LOC15 = 0; nimln(209, "strtabs.nim"); nimln(209, "strtabs.nim"); LOC15 = (j < f->Sup.len); if (!(LOC15)) goto LA16; nimln(730, "system.nim"); if ((NU)(j) > (NU)(f->Sup.len)) raiseIndexError(); LOC15 = (((NU8)(f->data[j])) >= ((NU8)(97)) && ((NU8)(f->data[j])) <= ((NU8)(122)) || ((NU8)(f->data[j])) >= ((NU8)(65)) && ((NU8)(f->data[j])) <= ((NU8)(90)) || ((NU8)(f->data[j])) >= ((NU8)(48)) && ((NU8)(f->data[j])) <= ((NU8)(57)) || ((NU8)(f->data[j])) == ((NU8)(95)) || ((NU8)(f->data[j])) >= ((NU8)(128)) && ((NU8)(f->data[j])) <= ((NU8)(255))); LA16: ; if (!LOC15) goto LA14; nimln(209, "strtabs.nim"); j = addInt(j, 1); } LA14: ; nimln(210, "strtabs.nim"); nimln(210, "strtabs.nim"); nimln(210, "strtabs.nim"); nimln(210, "strtabs.nim"); TMP320 = addInt(i, 1); nimln(210, "strtabs.nim"); TMP321 = subInt(j, 1); LOC17 = 0; LOC17 = copyStrLast(f, (NI32)(TMP320), (NI32)(TMP321)); LOC18 = 0; LOC18 = getvalue_113975(t, flags, LOC17); result = resizeString(result, LOC18->Sup.len + 0); appendString(result, LOC18); nimln(211, "strtabs.nim"); i = j; } break; default: { nimln(213, "strtabs.nim"); if ((NU)(i) > (NU)(f->Sup.len)) raiseIndexError(); result = addChar(result, f->data[i]); nimln(214, "strtabs.nim"); i = addInt(i, 1); } break; } } goto LA2; LA4: ; { nimln(216, "strtabs.nim"); if ((NU)(i) > (NU)(f->Sup.len)) raiseIndexError(); result = addChar(result, f->data[i]); nimln(217, "strtabs.nim"); i = addInt(i, 1); } LA2: ; } LA1: ; popFrame(); return result; }
N_NIMCALL(Stringtableobj144212*, parsecookies_237014)(NimStringDesc* s) { Stringtableobj144212* result; NI i; result = 0; result = nstnewStringTable(((NU8) 1)); i = ((NI) 0); { while (1) { NI keystart; NI keyend; NI valstart; NimStringDesc* LOC19; NimStringDesc* LOC20; { while (1) { NIM_BOOL LOC5; LOC5 = 0; LOC5 = ((NU8)(s->data[i]) == (NU8)(32)); if (LOC5) goto LA6; LOC5 = ((NU8)(s->data[i]) == (NU8)(9)); LA6: ; if (!LOC5) goto LA4; i += ((NI) 1); } LA4: ; } keystart = i; { while (1) { NIM_BOOL LOC9; LOC9 = 0; LOC9 = !(((NU8)(s->data[i]) == (NU8)(61))); if (!(LOC9)) goto LA10; LOC9 = !(((NU8)(s->data[i]) == (NU8)(0))); LA10: ; if (!LOC9) goto LA8; i += ((NI) 1); } LA8: ; } keyend = (NI)(i - ((NI) 1)); { if (!((NU8)(s->data[i]) == (NU8)(0))) goto LA13; goto LA1; } LA13: ; i += ((NI) 1); valstart = i; { while (1) { NIM_BOOL LOC17; LOC17 = 0; LOC17 = !(((NU8)(s->data[i]) == (NU8)(59))); if (!(LOC17)) goto LA18; LOC17 = !(((NU8)(s->data[i]) == (NU8)(0))); LA18: ; if (!LOC17) goto LA16; i += ((NI) 1); } LA16: ; } LOC19 = 0; LOC19 = copyStrLast(s, keystart, keyend); LOC20 = 0; LOC20 = copyStrLast(s, valstart, (NI)(i - ((NI) 1))); nstPut(result, LOC19, LOC20); { if (!((NU8)(s->data[i]) == (NU8)(0))) goto LA23; goto LA1; } LA23: ; i += ((NI) 1); } } LA1: ; return result; }
N_NIMCALL(void, loadconfigs_185811)(NimStringDesc* cfg) { NimStringDesc* pd; { NimStringDesc* prefix; if (!((libpath_153233) && (libpath_153233)->Sup.len == 0)) goto LA3; prefix = getprefixdir_153371(); { NimStringDesc* LOC9; if (!eqStrings(prefix, ((NimStringDesc*) &TMP1872))) goto LA7; LOC9 = 0; LOC9 = libpath_153233; libpath_153233 = copyStringRC1(((NimStringDesc*) &TMP1873)); if (LOC9) nimGCunrefNoCycle(LOC9); } goto LA5; LA7: ; { NimStringDesc* LOC13; if (!eqStrings(prefix, ((NimStringDesc*) &TMP1874))) goto LA11; LOC13 = 0; LOC13 = libpath_153233; libpath_153233 = copyStringRC1(((NimStringDesc*) &TMP1875)); if (LOC13) nimGCunrefNoCycle(LOC13); } goto LA5; LA11: ; { asgnRefNoCycle((void**) (&libpath_153233), nosjoinPath(prefix, ((NimStringDesc*) &TMP1876))); } LA5: ; } LA3: ; { NimStringDesc* LOC19; if (!!(((gglobaloptions_153128 &(1<<((((NU8) 16))&31)))!=0))) goto LA17; LOC19 = 0; LOC19 = getsystemconfigpath_185592(cfg); readconfigfile_185522(LOC19); } LA17: ; { NimStringDesc* LOC24; if (!!(((gglobaloptions_153128 &(1<<((((NU8) 18))&31)))!=0))) goto LA22; LOC24 = 0; LOC24 = getuserconfigpath_185580(cfg); readconfigfile_185522(LOC24); } LA22: ; { if (!(((NI) 0) < (gprojectpath_153235 ? gprojectpath_153235->Sup.len : 0))) goto LA27; pd = copyString(gprojectpath_153235); } goto LA25; LA27: ; { pd = nosgetCurrentDir(); } LA25: ; { if (!!(((gglobaloptions_153128 &(1<<((((NU8) 19))&31)))!=0))) goto LA32; { NimStringDesc* dir_186034; dir_186034 = 0; { NimStringDesc* current_186051; if (!NIM_FALSE) goto LA37; current_186051 = copyString(pd); { NimStringDesc* LOC43; if (!NIM_FALSE) goto LA41; dir_186034 = pd; LOC43 = 0; LOC43 = HEX2F_118292(dir_186034, cfg); readconfigfile_185522(LOC43); } LA41: ; { while (1) { NimStringDesc* LOC51; { NIM_BOOL LOC48; LOC48 = 0; LOC48 = nosisRootDir(current_186051); if (!LOC48) goto LA49; goto LA44; } LA49: ; current_186051 = nosparentDir(current_186051); dir_186034 = current_186051; LOC51 = 0; LOC51 = HEX2F_118292(dir_186034, cfg); readconfigfile_185522(LOC51); } } LA44: ; } goto LA35; LA37: ; { { NI i_186053; NI HEX3Atmp_186055; NI res_186057; i_186053 = 0; HEX3Atmp_186055 = 0; HEX3Atmp_186055 = (NI)((pd ? pd->Sup.len : 0) - ((NI) 2)); res_186057 = ((NI) 0); { while (1) { if (!(res_186057 <= HEX3Atmp_186055)) goto LA55; i_186053 = res_186057; { NIM_BOOL LOC58; NIM_BOOL LOC60; NimStringDesc* LOC64; LOC58 = 0; LOC58 = (((NU8)(pd->data[i_186053])) == ((NU8)(47)) || ((NU8)(pd->data[i_186053])) == ((NU8)(47))); if (!(LOC58)) goto LA59; LOC60 = 0; LOC60 = (i_186053 == ((NI) 0)); if (LOC60) goto LA61; LOC60 = !((((NU8)(pd->data[(NI)(i_186053 - ((NI) 1))])) == ((NU8)(47)) || ((NU8)(pd->data[(NI)(i_186053 - ((NI) 1))])) == ((NU8)(47)))); LA61: ; LOC58 = LOC60; LA59: ; if (!LOC58) goto LA62; dir_186034 = copyStrLast(pd, ((NI) 0), i_186053); LOC64 = 0; LOC64 = HEX2F_118292(dir_186034, cfg); readconfigfile_185522(LOC64); } LA62: ; res_186057 += ((NI) 1); } LA55: ; } } { NimStringDesc* LOC69; if (!NIM_FALSE) goto LA67; dir_186034 = pd; LOC69 = 0; LOC69 = HEX2F_118292(dir_186034, cfg); readconfigfile_185522(LOC69); } LA67: ; } LA35: ; } } LA32: ; { NimStringDesc* LOC74; if (!!(((gglobaloptions_153128 &(1<<((((NU8) 17))&31)))!=0))) goto LA72; LOC74 = 0; LOC74 = HEX2F_118292(pd, cfg); readconfigfile_185522(LOC74); { NimStringDesc* projectconfig; if (!!(((gprojectname_153234 ? gprojectname_153234->Sup.len : 0) == ((NI) 0)))) goto LA77; projectconfig = noschangeFileExt(gprojectfull_153236, ((NimStringDesc*) &TMP1896)); { NIM_BOOL LOC81; LOC81 = 0; LOC81 = fileexists_117010(projectconfig); if (!!(LOC81)) goto LA82; projectconfig = noschangeFileExt(gprojectfull_153236, ((NimStringDesc*) &TMP1897)); } LA82: ; { NIM_BOOL LOC86; LOC86 = 0; LOC86 = fileexists_117010(projectconfig); if (!!(LOC86)) goto LA87; projectconfig = noschangeFileExt(gprojectfull_153236, ((NimStringDesc*) &TMP1898)); { NIM_BOOL LOC91; LOC91 = 0; LOC91 = fileexists_117010(projectconfig); if (!LOC91) goto LA92; rawmessage_163970(((NU16) 234), projectconfig); } LA92: ; } LA87: ; readconfigfile_185522(projectconfig); } LA77: ; } LA72: ; }