NIM_EXTERNC N_NOINLINE(void, compiler_optionsInit)(void) { NimStringDesc* LOC1; NimStringDesc* LOC2; NimStringDesc* LOC3; NimStringDesc* LOC4; NimStringDesc* LOC5; NimStringDesc* LOC6; NimStringDesc* LOC7; NimStringDesc* LOC8; NimStringDesc* LOC9; NimStringDesc* LOC10; goptions_153126 = 2202238; gglobaloptions_153128 = 8388608; gcmd_153130 = ((NU8) 0); gselectedgc_153131 = ((NU8) 3); LOC1 = 0; LOC1 = outfile_153134; outfile_153134 = copyStringRC1(((NimStringDesc*) &TMP39)); if (LOC1) nimGCunrefNoCycle(LOC1); LOC2 = 0; LOC2 = docseesrcurl_153135; docseesrcurl_153135 = copyStringRC1(((NimStringDesc*) &TMP39)); if (LOC2) nimGCunrefNoCycle(LOC2); LOC3 = 0; LOC3 = headerfile_153136; headerfile_153136 = copyStringRC1(((NimStringDesc*) &TMP39)); if (LOC3) nimGCunrefNoCycle(LOC3); gverbosity_153137 = ((NI) 1); LOC4 = 0; LOC4 = gevalexpr_153140; gevalexpr_153140 = copyStringRC1(((NimStringDesc*) &TMP39)); if (LOC4) nimGCunrefNoCycle(LOC4); isserving_153143 = NIM_FALSE; gnonimblepath_153144 = NIM_FALSE; asgnRef((void**) (&gconfigvars_153231), nstnewStringTable(((NU8) 2))); asgnRef((void**) (&gdlloverrides_153232), nstnewStringTable(((NU8) 1))); LOC5 = 0; LOC5 = libpath_153233; libpath_153233 = copyStringRC1(((NimStringDesc*) &TMP39)); if (LOC5) nimGCunrefNoCycle(LOC5); LOC6 = 0; LOC6 = gprojectname_153234; gprojectname_153234 = copyStringRC1(((NimStringDesc*) &TMP39)); if (LOC6) nimGCunrefNoCycle(LOC6); LOC7 = 0; LOC7 = gprojectpath_153235; gprojectpath_153235 = copyStringRC1(((NimStringDesc*) &TMP39)); if (LOC7) nimGCunrefNoCycle(LOC7); LOC8 = 0; LOC8 = gprojectfull_153236; gprojectfull_153236 = copyStringRC1(((NimStringDesc*) &TMP39)); if (LOC8) nimGCunrefNoCycle(LOC8); LOC9 = 0; LOC9 = nimcachedir_153238; nimcachedir_153238 = copyStringRC1(((NimStringDesc*) &TMP39)); if (LOC9) nimGCunrefNoCycle(LOC9); LOC10 = 0; LOC10 = command_153239; command_153239 = copyStringRC1(((NimStringDesc*) &TMP39)); if (LOC10) nimGCunrefNoCycle(LOC10); if (commandargs_153259) nimGCunrefNoCycle(commandargs_153259); commandargs_153259 = (TY121008*) newSeqRC1((&NTI121008), 0); gkeepcomments_153260 = NIM_TRUE; if (implicitimports_153280) nimGCunrefNoCycle(implicitimports_153280); implicitimports_153280 = (TY121008*) newSeqRC1((&NTI121008), 0); if (implicitincludes_153300) nimGCunrefNoCycle(implicitincludes_153300); implicitincludes_153300 = (TY121008*) newSeqRC1((&NTI121008), 0); asgnRef((void**) (&packagecache_153601), nstnewStringTable(((NU8) 1))); }
N_NIMCALL(Stringtableobj144212*, nstnewStringTableWithTableConstr)(TY145352* keyvaluepairs, NI keyvaluepairsLen0, NU8 mode) { Stringtableobj144212* result; result = 0; result = nstnewStringTable(mode); { NimStringDesc* key_145393; NimStringDesc* val_145394; NI i_145398; key_145393 = 0; val_145394 = 0; i_145398 = ((NI) 0); { while (1) { if (!(i_145398 < keyvaluepairsLen0)) goto LA3; key_145393 = keyvaluepairs[i_145398].Field0; val_145394 = keyvaluepairs[i_145398].Field1; nstPut(result, key_145393, val_145394); i_145398 += ((NI) 1); } LA3: ; } } return result; }
N_NIMCALL(void, initdefines_166254)(void) { nimfr("initDefines", "condsyms.nim") nimln(75, "condsyms.nim"); asgnRef((void**) (&gsymbols_166004), nstnewStringTable(((NU8) 2))); nimln(76, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1345)); nimln(78, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1346)); nimln(79, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1347)); nimln(80, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1348)); nimln(81, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1349)); nimln(82, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1350)); nimln(83, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1351)); nimln(84, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1352)); nimln(85, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1353)); nimln(86, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1354)); nimln(87, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1355)); nimln(88, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1356)); nimln(89, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1357)); nimln(90, "condsyms.nim"); definesymbol_166013(((NimStringDesc*) &TMP1358)); popFrame(); }
N_NIMCALL(tstringtable113610*, nstnewStringTableWithPairs)(NimStringDesc** keyvaluepairs, NI keyvaluepairsLen0, NU8 mode) { tstringtable113610* result; NI i; nimfr("newStringTable", "strtabs.nim") result = 0; nimln(173, "strtabs.nim"); result = nstnewStringTable(mode); nimln(174, "strtabs.nim"); i = 0; nimln(175, "strtabs.nim"); while (1) { NI TMP313; nimln(175, "strtabs.nim"); nimln(175, "strtabs.nim"); if (!(i < (keyvaluepairsLen0-1))) goto LA1; nimln(176, "strtabs.nim"); if ((NU)(i) >= (NU)(keyvaluepairsLen0)) raiseIndexError(); nimln(176, "strtabs.nim"); TMP313 = addInt(i, 1); if ((NU)((NI32)(TMP313)) >= (NU)(keyvaluepairsLen0)) raiseIndexError(); nstPut(result, keyvaluepairs[i], keyvaluepairs[(NI32)(TMP313)]); nimln(177, "strtabs.nim"); i = addInt(i, 2); } LA1: ; popFrame(); return result; }
N_NIMCALL(tstringtable120810*, nstnewStringTableWithTableConstr)(TY94106* keyvaluepairs, NI keyvaluepairsLen0, NU8 mode) { tstringtable120810* result; NimStringDesc* key_121370; NimStringDesc* val_121371; NI i_121373; nimfr("newStringTable", "strtabs.nim") result = 0; nimln(186, "strtabs.nim"); result = nstnewStringTable(mode); key_121370 = 0; val_121371 = 0; nimln(1530, "system.nim"); i_121373 = 0; nimln(1531, "system.nim"); while (1) { nimln(1531, "system.nim"); nimln(1531, "system.nim"); if (!(i_121373 < keyvaluepairsLen0)) goto LA1; nimln(1532, "system.nim"); if ((NU)(i_121373) >= (NU)(keyvaluepairsLen0)) raiseIndexError(); key_121370 = keyvaluepairs[i_121373].Field0; nimln(1532, "system.nim"); if ((NU)(i_121373) >= (NU)(keyvaluepairsLen0)) raiseIndexError(); val_121371 = keyvaluepairs[i_121373].Field1; nimln(187, "strtabs.nim"); nstPut(result, key_121370, val_121371); nimln(1533, "system.nim"); i_121373 = addInt(i_121373, 1); } LA1: ; popFrame(); return result; }
N_NIMCALL(tstringtable113610*, nstnewStringTableWithTableConstr)(TY92504* keyvaluepairs, NI keyvaluepairsLen0, NU8 mode) { tstringtable113610* result; NimStringDesc* key_114101; NimStringDesc* val_114102; NI i_114104; nimfr("newStringTable", "strtabs.nim") result = 0; nimln(186, "strtabs.nim"); result = nstnewStringTable(mode); key_114101 = 0; val_114102 = 0; nimln(1377, "system.nim"); i_114104 = 0; nimln(1378, "system.nim"); while (1) { nimln(1378, "system.nim"); nimln(1378, "system.nim"); if (!(i_114104 < keyvaluepairsLen0)) goto LA1; nimln(1379, "system.nim"); if ((NU)(i_114104) >= (NU)(keyvaluepairsLen0)) raiseIndexError(); key_114101 = keyvaluepairs[i_114104].Field0; nimln(1379, "system.nim"); if ((NU)(i_114104) >= (NU)(keyvaluepairsLen0)) raiseIndexError(); val_114102 = keyvaluepairs[i_114104].Field1; nimln(187, "strtabs.nim"); nstPut(result, key_114101, val_114102); nimln(1380, "system.nim"); i_114104 = addInt(i_114104, 1); } LA1: ; popFrame(); return result; }
N_NIMCALL(void, initdefines_cpH2nhcvqZlKU3W1Gx7n5Q)(void) { asgnRef((void**) (&gsymbols_tS4f2TwBfIz6zIuFAktH6g), nstnewStringTable(((Stringtablemode_G9c4wVDFIzf0xHmQvxso9a9cQ) 2))); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_23), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_25), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_26), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_27), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_28), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_29), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_30), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_31), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_32), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_33), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_34), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_35), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_36), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_37), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_38), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_39), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_40), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_41), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_42), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_43), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_44), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); definesymbol_9aZwRQ421PtIIOO9cHOBczPA(((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_45), ((NimStringDesc*) &T_UpH3CWy69aOHB2xkQBDirlg_24)); }
N_NIMCALL(void, initdefines_168254)(void) { asgnRef((void**) (&gsymbols_168004), nstnewStringTable(((NU8) 2))); definesymbol_168013(((NimStringDesc*) &TMP1510)); definesymbol_168013(((NimStringDesc*) &TMP1511)); definesymbol_168013(((NimStringDesc*) &TMP1512)); definesymbol_168013(((NimStringDesc*) &TMP1513)); definesymbol_168013(((NimStringDesc*) &TMP1514)); definesymbol_168013(((NimStringDesc*) &TMP1515)); definesymbol_168013(((NimStringDesc*) &TMP1516)); definesymbol_168013(((NimStringDesc*) &TMP1517)); definesymbol_168013(((NimStringDesc*) &TMP1518)); definesymbol_168013(((NimStringDesc*) &TMP1519)); definesymbol_168013(((NimStringDesc*) &TMP1520)); definesymbol_168013(((NimStringDesc*) &TMP1521)); definesymbol_168013(((NimStringDesc*) &TMP1522)); definesymbol_168013(((NimStringDesc*) &TMP1523)); }
N_NIMCALL(void, initdefines_191184)(void) { asgnRef((void**) (&gsymbols_191001), nstnewStringTable(((NU8) 2))); definesymbol_191004(((NimStringDesc*) &TMP1640)); definesymbol_191004(((NimStringDesc*) &TMP1641)); definesymbol_191004(((NimStringDesc*) &TMP1642)); definesymbol_191004(((NimStringDesc*) &TMP1643)); definesymbol_191004(((NimStringDesc*) &TMP1644)); definesymbol_191004(((NimStringDesc*) &TMP1645)); definesymbol_191004(((NimStringDesc*) &TMP1646)); definesymbol_191004(((NimStringDesc*) &TMP1647)); definesymbol_191004(((NimStringDesc*) &TMP1648)); definesymbol_191004(((NimStringDesc*) &TMP1649)); definesymbol_191004(((NimStringDesc*) &TMP1650)); definesymbol_191004(((NimStringDesc*) &TMP1651)); definesymbol_191004(((NimStringDesc*) &TMP1652)); definesymbol_191004(((NimStringDesc*) &TMP1653)); definesymbol_191004(((NimStringDesc*) &TMP1654)); definesymbol_191004(((NimStringDesc*) &TMP1655)); definesymbol_191004(((NimStringDesc*) &TMP1656)); definesymbol_191004(((NimStringDesc*) &TMP1657)); definesymbol_191004(((NimStringDesc*) &TMP1658)); }
N_NIMCALL(void, initdefines_198193_1967573533)(void) { asgnRef((void**) (&gsymbols_198001_1967573533), nstnewStringTable(((Stringtablemode152602) 2))); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_23), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_25), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_26), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_27), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_28), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_29), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_30), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_31), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_32), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_33), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_34), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_35), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_36), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_37), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_38), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_39), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_40), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_41), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_42), ((NimStringDesc*) &T1967573533_24)); definesymbol_198004_1967573533(((NimStringDesc*) &T1967573533_43), ((NimStringDesc*) &T1967573533_24)); }
N_NIMCALL(void, addpathrec_277112_1623492514)(NimStringDesc* dir0, Tlineinfo192336 info0) { Stringtableobj152608* packages0; NI pos0; packages0 = nstnewStringTable(((Stringtablemode152602) 2)); pos0 = (NI)((dir0 ? dir0->Sup.len : 0) - ((NI) 1)); { if (!(((NU8)(dir0->data[pos0])) == ((NU8)(47)) || ((NU8)(dir0->data[pos0])) == ((NU8)(47)))) goto LA3; pos0 += ((NI) 1); } LA3: ; { Pathcomponent137212 k_277138_1623492514; NimStringDesc* p_277139_1623492514; DIR* d_277166_1623492514; k_277138_1623492514 = (Pathcomponent137212)0; p_277139_1623492514 = (NimStringDesc*)0; d_277166_1623492514 = opendir(dir0->data); { TSafePoint T1623492514_2; if (!!((d_277166_1623492514 == NIM_NIL))) goto LA8; pushSafePoint(&T1623492514_2); T1623492514_2.status = _setjmp(T1623492514_2.context); if (T1623492514_2.status == 0) { { while (1) { { struct dirent* x_277168_1623492514; NimStringDesc* volatile y_277170_1623492514; x_277168_1623492514 = readdir(d_277166_1623492514); { if (!(x_277168_1623492514 == NIM_NIL)) goto LA16; goto LA11; } LA16: ; y_277170_1623492514 = cstrToNimstr(((NCSTRING) ((*x_277168_1623492514).d_name))); { NIM_BOOL LOC20; struct stat s_277172_1623492514; Pathcomponent137212 volatile k_277174_1623492514; LOC20 = (NIM_BOOL)0; LOC20 = !(eqStrings(y_277170_1623492514, ((NimStringDesc*) &T1623492514_3))); if (!(LOC20)) goto LA21; LOC20 = !(eqStrings(y_277170_1623492514, ((NimStringDesc*) &T1623492514_4))); LA21: ; if (!LOC20) goto LA22; memset((void*)(&s_277172_1623492514), 0, sizeof(s_277172_1623492514)); { if (!NIM_TRUE) goto LA26; y_277170_1623492514 = HEX2F_128265_2125978480(dir0, y_277170_1623492514); } LA26: ; k_277174_1623492514 = ((Pathcomponent137212) 0); { if (!!(((*x_277168_1623492514).d_type == ((NI8) 0)))) goto LA30; { if (!((*x_277168_1623492514).d_type == ((NI8) 4))) goto LA34; k_277174_1623492514 = ((Pathcomponent137212) 2); } LA34: ; { if (!((*x_277168_1623492514).d_type == ((NI8) 10))) goto LA38; { NIM_BOOL LOC42; LOC42 = (NIM_BOOL)0; LOC42 = direxists_131608_2125978480(y_277170_1623492514); if (!LOC42) goto LA43; k_277174_1623492514 = ((Pathcomponent137212) 3); } goto LA40; LA43: ; { k_277174_1623492514 = ((Pathcomponent137212) 1); } LA40: ; } LA38: ; k_277138_1623492514 = k_277174_1623492514; p_277139_1623492514 = y_277170_1623492514; { NIM_BOOL LOC48; LOC48 = (NIM_BOOL)0; LOC48 = (k_277138_1623492514 == ((Pathcomponent137212) 2)); if (!(LOC48)) goto LA49; LOC48 = !(((NU8)(p_277139_1623492514->data[pos0]) == (NU8)(46))); LA49: ; if (!LOC48) goto LA50; addpackage_277083_1623492514(packages0, p_277139_1623492514); } LA50: ; goto LA13; } LA30: ; { int LOC54; LOC54 = (int)0; LOC54 = lstat(y_277170_1623492514->data, (&s_277172_1623492514)); if (!(LOC54 < ((NI32) 0))) goto LA55; goto LA11; } LA55: ; { NIM_BOOL LOC59; LOC59 = (NIM_BOOL)0; LOC59 = S_ISDIR(s_277172_1623492514.st_mode); if (!LOC59) goto LA60; k_277174_1623492514 = ((Pathcomponent137212) 2); } goto LA57; LA60: ; { NIM_BOOL LOC63; LOC63 = (NIM_BOOL)0; LOC63 = S_ISLNK(s_277172_1623492514.st_mode); if (!LOC63) goto LA64; k_277174_1623492514 = getsymlinkfilekind_137219_2125978480(y_277170_1623492514); } goto LA57; LA64: ; LA57: ; k_277138_1623492514 = k_277174_1623492514; p_277139_1623492514 = y_277170_1623492514; { NIM_BOOL LOC68; LOC68 = (NIM_BOOL)0; LOC68 = (k_277138_1623492514 == ((Pathcomponent137212) 2)); if (!(LOC68)) goto LA69; LOC68 = !(((NU8)(p_277139_1623492514->data[pos0]) == (NU8)(46))); LA69: ; if (!LOC68) goto LA70; addpackage_277083_1623492514(packages0, p_277139_1623492514); } LA70: ; } LA22: ; } LA13: ; } } LA11: ; popSafePoint(); } else { popSafePoint(); } { int LOC74; LOC74 = (int)0; LOC74 = closedir(d_277166_1623492514); } if (T1623492514_2.status != 0) reraiseException(); } LA8: ; } { NimStringDesc* p_277149_1623492514; p_277149_1623492514 = (NimStringDesc*)0; { NimStringDesc* key_277180_1623492514; NimStringDesc* val_277182_1623492514; key_277180_1623492514 = (NimStringDesc*)0; val_277182_1623492514 = (NimStringDesc*)0; { NI h_277184_1623492514; NI HEX3Atmp_277186_1623492514; NI res_277188_1623492514; h_277184_1623492514 = (NI)0; HEX3Atmp_277186_1623492514 = (NI)0; HEX3Atmp_277186_1623492514 = ((*packages0).data ? ((*packages0).data->Sup.len-1) : -1); res_277188_1623492514 = ((NI) 0); { while (1) { if (!(res_277188_1623492514 <= HEX3Atmp_277186_1623492514)) goto LA79; h_277184_1623492514 = res_277188_1623492514; { NimStringDesc* res_277192_1623492514; if (!!((*packages0).data->data[h_277184_1623492514].Field0 == 0)) goto LA82; key_277180_1623492514 = (*packages0).data->data[h_277184_1623492514].Field0; val_277182_1623492514 = (*packages0).data->data[h_277184_1623492514].Field1; { if (!eqStrings(val_277182_1623492514, ((NimStringDesc*) &T1623492514_5))) goto LA86; res_277192_1623492514 = key_277180_1623492514; } goto LA84; LA86: ; { NimStringDesc* LOC89; LOC89 = (NimStringDesc*)0; LOC89 = rawNewString(key_277180_1623492514->Sup.len + val_277182_1623492514->Sup.len + 1); appendString(LOC89, key_277180_1623492514); appendChar(LOC89, 45); appendString(LOC89, val_277182_1623492514); res_277192_1623492514 = LOC89; } LA84: ; p_277149_1623492514 = res_277192_1623492514; addnimblepath_277107_1623492514(p_277149_1623492514, info0); } LA82: ; res_277188_1623492514 += ((NI) 1); } LA79: ; } } } } }
N_NIMCALL(void, addpathrec_176216)(NimStringDesc* dir, tlineinfo167527 info) { tstringtable122810* packages; NI pos; NI TMP1439; NU8 k_176252; NimStringDesc* p_176253; DIR* d_176265; NimStringDesc* p_176263; NimStringDesc* key_176275; NimStringDesc* val_176277; NI h_176279; NI HEX3Atmp_176281; NI res_176283; nimfr("addPathRec", "babelcmd.nim") nimln(79, "babelcmd.nim"); packages = nstnewStringTable(((NU8) 2)); nimln(80, "babelcmd.nim"); nimln(80, "babelcmd.nim"); nimln(80, "babelcmd.nim"); TMP1439 = subInt(dir->Sup.len, 1); pos = (NI64)(TMP1439); nimln(81, "babelcmd.nim"); { nimln(81, "babelcmd.nim"); if ((NU)(pos) > (NU)(dir->Sup.len)) raiseIndexError(); if (!(((NU8)(dir->data[pos])) == ((NU8)(47)) || ((NU8)(dir->data[pos])) == ((NU8)(47)))) goto LA3; nimln(81, "babelcmd.nim"); pos = addInt(pos, 1); } LA3: ; k_176252 = 0; p_176253 = 0; nimln(1262, "os.nim"); d_176265 = opendir(dir->data); nimln(1263, "os.nim"); { int LOC41; nimln(1263, "os.nim"); nimln(1263, "os.nim"); if (!!((d_176265 == NIM_NIL))) goto LA7; nimln(1264, "os.nim"); while (1) { struct dirent* x_176267; NimStringDesc* y_176269; nimln(1265, "os.nim"); x_176267 = readdir(d_176265); nimln(1266, "os.nim"); { nimln(1266, "os.nim"); if (!(x_176267 == NIM_NIL)) goto LA12; nimln(1266, "os.nim"); goto LA9; } LA12: ; nimln(1267, "os.nim"); nimln(1267, "os.nim"); y_176269 = cstrToNimstr(((NCSTRING) ((*x_176267).d_name))); nimln(1268, "os.nim"); { NIM_BOOL LOC16; struct stat s_176271; NU8 k_176273; nimln(1268, "os.nim"); LOC16 = 0; nimln(1268, "os.nim"); nimln(1268, "os.nim"); LOC16 = !(eqStrings(y_176269, ((NimStringDesc*) &TMP1433))); if (!(LOC16)) goto LA17; nimln(1268, "os.nim"); nimln(1268, "os.nim"); LOC16 = !(eqStrings(y_176269, ((NimStringDesc*) &TMP1434))); LA17: ; if (!LOC16) goto LA18; memset((void*)&s_176271, 0, sizeof(s_176271)); nimln(1270, "os.nim"); y_176269 = HEX2F_109477(dir, y_176269); nimln(1271, "os.nim"); { int LOC22; nimln(1271, "os.nim"); nimln(1271, "os.nim"); LOC22 = 0; LOC22 = lstat(y_176269->data, &s_176271); if (!(LOC22 < ((NI32) 0))) goto LA23; nimln(1271, "os.nim"); goto LA9; } LA23: ; nimln(1272, "os.nim"); k_176273 = ((NU8) 0); nimln(1273, "os.nim"); { NIM_BOOL LOC27; nimln(1273, "os.nim"); LOC27 = 0; LOC27 = S_ISDIR(s_176271.st_mode); if (!LOC27) goto LA28; nimln(1273, "os.nim"); k_176273 = ((NU8) 2); } LA28: ; nimln(1274, "os.nim"); { NIM_BOOL LOC32; nimln(1274, "os.nim"); LOC32 = 0; LOC32 = S_ISLNK(s_176271.st_mode); if (!LOC32) goto LA33; nimln(1274, "os.nim"); nimln(1274, "os.nim"); k_176273 = addInt(k_176273, 1); } LA33: ; nimln(1272, "os.nim"); k_176252 = k_176273; nimln(1267, "os.nim"); p_176253 = y_176269; nimln(83, "babelcmd.nim"); { NIM_BOOL LOC37; nimln(83, "babelcmd.nim"); LOC37 = 0; nimln(83, "babelcmd.nim"); LOC37 = (k_176252 == ((NU8) 2)); if (!(LOC37)) goto LA38; nimln(83, "babelcmd.nim"); nimln(83, "babelcmd.nim"); if ((NU)(pos) > (NU)(p_176253->Sup.len)) raiseIndexError(); LOC37 = !(((NU8)(p_176253->data[pos]) == (NU8)(46))); LA38: ; if (!LOC37) goto LA39; nimln(84, "babelcmd.nim"); addpackage_176137(packages, p_176253); } LA39: ; } LA18: ; } LA9: ; nimln(1276, "os.nim"); nimln(1276, "os.nim"); LOC41 = 0; LOC41 = closedir(d_176265); } LA7: ; p_176263 = 0; key_176275 = 0; val_176277 = 0; h_176279 = 0; HEX3Atmp_176281 = 0; nimln(40, "strtabs.nim"); nimln(40, "strtabs.nim"); HEX3Atmp_176281 = ((*packages).Data->Sup.len-1); nimln(1458, "system.nim"); res_176283 = 0; nimln(1459, "system.nim"); while (1) { nimln(1459, "system.nim"); if (!(res_176283 <= HEX3Atmp_176281)) goto LA42; nimln(1458, "system.nim"); h_176279 = res_176283; nimln(41, "strtabs.nim"); { NimStringDesc* res_176285; nimln(41, "strtabs.nim"); nimln(41, "strtabs.nim"); if ((NU)(h_176279) >= (NU)((*packages).Data->Sup.len)) raiseIndexError(); if (!!((*packages).Data->data[h_176279].Field0 == 0)) goto LA45; nimln(42, "strtabs.nim"); if ((NU)(h_176279) >= (NU)((*packages).Data->Sup.len)) raiseIndexError(); key_176275 = (*packages).Data->data[h_176279].Field0; nimln(42, "strtabs.nim"); if ((NU)(h_176279) >= (NU)((*packages).Data->Sup.len)) raiseIndexError(); val_176277 = (*packages).Data->data[h_176279].Field1; nimln(58, "babelcmd.nim"); nimln(58, "babelcmd.nim"); { nimln(58, "babelcmd.nim"); if (!eqStrings(val_176277, ((NimStringDesc*) &TMP1430))) goto LA49; res_176285 = key_176275; } goto LA47; LA49: ; { NimStringDesc* LOC52; nimln(58, "babelcmd.nim"); LOC52 = 0; LOC52 = rawNewString(key_176275->Sup.len + val_176277->Sup.len + 1); appendString(LOC52, key_176275); appendChar(LOC52, 45); appendString(LOC52, val_176277); res_176285 = LOC52; } LA47: ; nimln(58, "babelcmd.nim"); p_176263 = res_176285; nimln(86, "babelcmd.nim"); addbabelpath_176163(p_176263, info); } LA45: ; nimln(1461, "system.nim"); res_176283 = addInt(res_176283, 1); } LA42: ; popFrame(); }
N_NIMCALL(void, initdefines_142065)(void) { NimStringDesc* LOC13; NimStringDesc* LOC14; NimStringDesc* LOC15; nimfr("InitDefines", "condsyms.nim") nimln(41, "condsyms.nim"); asgnRefNoCycle((void**) &gsymbols_142003, nstnewStringTable(((NU8) 2))); nimln(42, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP899)); nimln(44, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP900)); nimln(45, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP901)); nimln(46, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP902)); nimln(47, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP903)); nimln(48, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP904)); nimln(49, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP905)); nimln(52, "condsyms.nim"); switch (targetcpu_119560) { case ((NU8) 1): { nimln(53, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP906)); } break; case ((NU8) 8): { nimln(54, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP907)); } break; case ((NU8) 9): { nimln(55, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP908)); } break; default: { } break; } nimln(57, "condsyms.nim"); switch (targetos_119562) { case ((NU8) 1): { nimln(59, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP909)); } break; case ((NU8) 2): { nimln(61, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP910)); nimln(62, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP911)); } break; case ((NU8) 4): case ((NU8) 5): case ((NU8) 6): case ((NU8) 8): case ((NU8) 13): case ((NU8) 14): case ((NU8) 16): case ((NU8) 12): case ((NU8) 20): { nimln(66, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP912)); nimln(67, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP913)); } break; case ((NU8) 7): { nimln(69, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP914)); nimln(70, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP912)); nimln(71, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP913)); } break; case ((NU8) 9): case ((NU8) 10): case ((NU8) 11): { nimln(73, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP912)); nimln(74, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP915)); nimln(75, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP913)); } break; case ((NU8) 18): { nimln(77, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP916)); } break; case ((NU8) 19): { nimln(79, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP916)); nimln(80, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP912)); nimln(81, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP913)); } break; default: { } break; } nimln(83, "condsyms.nim"); nimln(83, "condsyms.nim"); LOC13 = 0; nimln(83, "condsyms.nim"); if (targetcpu_119560 < 1 || targetcpu_119560 > 14) raiseIndexError(); LOC14 = 0; LOC14 = nimIntToStr(cpu_119460[(targetcpu_119560)- 1].Field4); LOC13 = rawNewString(LOC14->Sup.len + 3); appendString(LOC13, ((NimStringDesc*) &TMP917)); appendString(LOC13, LOC14); definesymbol_142006(LOC13); nimln(84, "condsyms.nim"); nimln(84, "condsyms.nim"); if (targetcpu_119560 < 1 || targetcpu_119560 > 14) raiseIndexError(); LOC15 = 0; LOC15 = nsuNormalize(endiantostr_119455[(cpu_119460[(targetcpu_119560)- 1].Field2)- 0]); definesymbol_142006(LOC15); nimln(85, "condsyms.nim"); if (targetcpu_119560 < 1 || targetcpu_119560 > 14) raiseIndexError(); definesymbol_142006(cpu_119460[(targetcpu_119560)- 1].Field0); nimln(86, "condsyms.nim"); if (targetos_119562 < 1 || targetos_119562 > 23) raiseIndexError(); definesymbol_142006(os_119061[(targetos_119562)- 1].Field0); nimln(87, "condsyms.nim"); { nimln(87, "condsyms.nim"); if (targetos_119562 < 1 || targetos_119562 > 23) raiseIndexError(); if (!((os_119061[(targetos_119562)- 1].Field12 &(1<<((((NU8) 3))&7)))!=0)) goto LA18; nimln(88, "condsyms.nim"); definesymbol_142006(((NimStringDesc*) &TMP918)); } LA18: ; popFrame(); }N_NOINLINE(void, compilercondsymsInit)(void) {
N_NIMCALL(void, initdefines_171072)(void) { NimStringDesc* LOC13; NimStringDesc* LOC14; NimStringDesc* LOC15; nimfr("initDefines", "condsyms.nim") nimln(41, "condsyms.nim"); asgnRef((void**) &gsymbols_171003, nstnewStringTable(((NU8) 2))); nimln(42, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP984)); nimln(44, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP985)); nimln(45, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP986)); nimln(46, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP987)); nimln(47, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP988)); nimln(48, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP989)); nimln(49, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP990)); nimln(50, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP991)); nimln(51, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP992)); nimln(52, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP993)); nimln(55, "condsyms.nim"); switch (targetcpu_145573) { case ((NU8) 1): { nimln(56, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP994)); } break; case ((NU8) 8): { nimln(57, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP995)); } break; case ((NU8) 9): { nimln(58, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP996)); } break; default: { } break; } nimln(60, "condsyms.nim"); switch (targetos_145575) { case ((NU8) 1): { nimln(62, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP997)); } break; case ((NU8) 2): { nimln(64, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP998)); nimln(65, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP999)); } break; case ((NU8) 4): case ((NU8) 5): case ((NU8) 6): case ((NU8) 8): case ((NU8) 13): case ((NU8) 14): case ((NU8) 16): case ((NU8) 12): case ((NU8) 20): { nimln(69, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP1000)); nimln(70, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP1001)); } break; case ((NU8) 7): { nimln(72, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP1002)); nimln(73, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP1000)); nimln(74, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP1001)); } break; case ((NU8) 9): case ((NU8) 10): case ((NU8) 11): { nimln(76, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP1000)); nimln(77, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP1003)); nimln(78, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP1001)); } break; case ((NU8) 18): { nimln(80, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP1004)); } break; case ((NU8) 19): { nimln(82, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP1004)); nimln(83, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP1000)); nimln(84, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP1001)); } break; default: { } break; } nimln(86, "condsyms.nim"); nimln(86, "condsyms.nim"); LOC13 = 0; nimln(86, "condsyms.nim"); if (targetcpu_145573 < 1 || targetcpu_145573 > 14) raiseIndexError(); LOC14 = 0; LOC14 = nimIntToStr(cpu_145468[(targetcpu_145573)- 1].Field4); LOC13 = rawNewString(LOC14->Sup.len + 3); appendString(LOC13, ((NimStringDesc*) &TMP1005)); appendString(LOC13, LOC14); definesymbol_171006(LOC13); nimln(87, "condsyms.nim"); nimln(87, "condsyms.nim"); if (targetcpu_145573 < 1 || targetcpu_145573 > 14) raiseIndexError(); LOC15 = 0; LOC15 = nsuNormalize(endiantostr_145462[(cpu_145468[(targetcpu_145573)- 1].Field2)- 0]); definesymbol_171006(LOC15); nimln(88, "condsyms.nim"); if (targetcpu_145573 < 1 || targetcpu_145573 > 14) raiseIndexError(); definesymbol_171006(cpu_145468[(targetcpu_145573)- 1].Field0); nimln(89, "condsyms.nim"); if (targetos_145575 < 1 || targetos_145575 > 23) raiseIndexError(); definesymbol_171006(os_145063[(targetos_145575)- 1].Field0); nimln(90, "condsyms.nim"); { nimln(90, "condsyms.nim"); if (targetos_145575 < 1 || targetos_145575 > 23) raiseIndexError(); if (!((os_145063[(targetos_145575)- 1].Field12 &(1<<((((NU8) 3))&7)))!=0)) goto LA18; nimln(91, "condsyms.nim"); definesymbol_171006(((NimStringDesc*) &TMP1008)); } LA18: ; popFrame(); }
N_NIMCALL(void, addpathrec_3JEODh79bt1SXwL9cUHI7lhw)(NimStringDesc* dir0, Tlineinfo_T9c3PM9bs7WZ4LIQfEici9cZw info0) { Stringtableobj_DKRIdH9c9cKI7YpQb9c0wKlEw* packages0; NI pos0; packages0 = nstnewStringTable(((Stringtablemode_G9c4wVDFIzf0xHmQvxso9a9cQ) 2)); pos0 = (NI)((dir0 ? dir0->Sup.len : 0) - ((NI) 1)); { if (!(((NU8)(dir0->data[pos0])) == ((NU8)(92)) || ((NU8)(dir0->data[pos0])) == ((NU8)(47)))) goto LA3; pos0 += ((NI) 1); } LA3: ; { Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg k_KeWeZHiyBnWbJ7NUxRxrzQ; NimStringDesc* p_dm2MlSSgl6QuA4g3oqnzug; Win32finddata_aYwmSz9bIz0JHAL9ciwIrnhA f_yneQFFyrNSt4aVInhReW9aA; NI h_0lk9afqbBF9cAQtskh16RYmQ; NimStringDesc* LOC6; k_KeWeZHiyBnWbJ7NUxRxrzQ = (Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg)0; p_dm2MlSSgl6QuA4g3oqnzug = (NimStringDesc*)0; memset((void*)(&f_yneQFFyrNSt4aVInhReW9aA), 0, sizeof(f_yneQFFyrNSt4aVInhReW9aA)); LOC6 = (NimStringDesc*)0; LOC6 = HEX2F_BsTQv9c9anbxt9bKmR0aN1elQ(dir0, ((NimStringDesc*) &T_asNQM9aynXXg9ccUABbReyew_2)); h_0lk9afqbBF9cAQtskh16RYmQ = findfirstfile_9cPKjuaUWDYlrzWunhDgNng(LOC6, (&f_yneQFFyrNSt4aVInhReW9aA)); { TSafePoint T_asNQM9aynXXg9ccUABbReyew_3; if (!!((h_0lk9afqbBF9cAQtskh16RYmQ == ((NI) -1)))) goto LA9; pushSafePoint(&T_asNQM9aynXXg9ccUABbReyew_3); T_asNQM9aynXXg9ccUABbReyew_3.status = setjmp(T_asNQM9aynXXg9ccUABbReyew_3.context); if (T_asNQM9aynXXg9ccUABbReyew_3.status == 0) { { while (1) { Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg volatile k_KeWeZHiyBnWbJ7NUxRxrzQ_2; k_KeWeZHiyBnWbJ7NUxRxrzQ_2 = ((Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg) 0); { NIM_BOOL LOC16; NimStringDesc* xx_D6S9bE74YCnbt3gCAKHz9cNA; LOC16 = (NIM_BOOL)0; LOC16 = skipfinddata_Paqclu9aSY8chOSEIvA5ZoAoptions((&f_yneQFFyrNSt4aVInhReW9aA)); if (!!(LOC16)) goto LA17; { if (!!(((NI32)(f_yneQFFyrNSt4aVInhReW9aA.dwfileattributes & ((NI32) 16)) == ((NI32) 0)))) goto LA21; k_KeWeZHiyBnWbJ7NUxRxrzQ_2 = ((Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg) 2); } LA21: ; { if (!!(((NI32)(f_yneQFFyrNSt4aVInhReW9aA.dwfileattributes & ((NI32) 1024)) == ((NI32) 0)))) goto LA25; k_KeWeZHiyBnWbJ7NUxRxrzQ_2 = (Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg)(k_KeWeZHiyBnWbJ7NUxRxrzQ_2 + ((NI) 1)); } LA25: ; { NimStringDesc* LOC31; if (!NIM_FALSE) goto LA29; LOC31 = (NimStringDesc*)0; LOC31 = HEX24_QjWkJEdnPpNzR7KF7dYIoQ(((NI16*) ((&f_yneQFFyrNSt4aVInhReW9aA.cfilename[(((NI) 0))- 0])))); xx_D6S9bE74YCnbt3gCAKHz9cNA = nosextractFilename(LOC31); } goto LA27; LA29: ; { NimStringDesc* LOC33; NimStringDesc* LOC34; LOC33 = (NimStringDesc*)0; LOC33 = HEX24_QjWkJEdnPpNzR7KF7dYIoQ(((NI16*) ((&f_yneQFFyrNSt4aVInhReW9aA.cfilename[(((NI) 0))- 0])))); LOC34 = (NimStringDesc*)0; LOC34 = nosextractFilename(LOC33); xx_D6S9bE74YCnbt3gCAKHz9cNA = HEX2F_BsTQv9c9anbxt9bKmR0aN1elQ(dir0, LOC34); } LA27: ; k_KeWeZHiyBnWbJ7NUxRxrzQ = k_KeWeZHiyBnWbJ7NUxRxrzQ_2; p_dm2MlSSgl6QuA4g3oqnzug = xx_D6S9bE74YCnbt3gCAKHz9cNA; { NIM_BOOL LOC37; LOC37 = (NIM_BOOL)0; LOC37 = (k_KeWeZHiyBnWbJ7NUxRxrzQ == ((Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg) 2)); if (!(LOC37)) goto LA38; LOC37 = !(((NU8)(p_dm2MlSSgl6QuA4g3oqnzug->data[pos0]) == (NU8)(46))); LA38: ; if (!LOC37) goto LA39; addpackage_mPfTsfux8gBVeyQ8xwDYTQ(packages0, p_dm2MlSSgl6QuA4g3oqnzug); } LA39: ; } LA17: ; { NI32 LOC43; LOC43 = (NI32)0; LOC43 = Dl_120437(h_0lk9afqbBF9cAQtskh16RYmQ, (&f_yneQFFyrNSt4aVInhReW9aA)); if (!(LOC43 == ((NI32) 0))) goto LA44; goto LA12; } LA44: ; } } LA12: ; popSafePoint(); } else { popSafePoint(); } { Dl_120601(h_0lk9afqbBF9cAQtskh16RYmQ); } if (T_asNQM9aynXXg9ccUABbReyew_3.status != 0) reraiseException(); } LA9: ; } { NimStringDesc* p_dm2MlSSgl6QuA4g3oqnzug_2; p_dm2MlSSgl6QuA4g3oqnzug_2 = (NimStringDesc*)0; { NimStringDesc* key_Ev9apnmbO2PJJuXUQfg55Zg; NimStringDesc* val_ybgqP7AeGJc5RfjZOOmLIA; key_Ev9apnmbO2PJJuXUQfg55Zg = (NimStringDesc*)0; val_ybgqP7AeGJc5RfjZOOmLIA = (NimStringDesc*)0; { NI h_0lk9afqbBF9cAQtskh16RYmQ_2; NI HEX3Atmp_xBs1KTOTJ0azvpgP9bD601g; NI res_yPiyJP1ZM9abouUrPkQkp8Q; h_0lk9afqbBF9cAQtskh16RYmQ_2 = (NI)0; HEX3Atmp_xBs1KTOTJ0azvpgP9bD601g = (NI)0; HEX3Atmp_xBs1KTOTJ0azvpgP9bD601g = ((*packages0).data ? ((*packages0).data->Sup.len-1) : -1); res_yPiyJP1ZM9abouUrPkQkp8Q = ((NI) 0); { while (1) { if (!(res_yPiyJP1ZM9abouUrPkQkp8Q <= HEX3Atmp_xBs1KTOTJ0azvpgP9bD601g)) goto LA52; h_0lk9afqbBF9cAQtskh16RYmQ_2 = res_yPiyJP1ZM9abouUrPkQkp8Q; { NimStringDesc* res_yPiyJP1ZM9abouUrPkQkp8Q_2; if (!!(((*packages0).data->data[h_0lk9afqbBF9cAQtskh16RYmQ_2].Field0 == 0))) goto LA55; key_Ev9apnmbO2PJJuXUQfg55Zg = (*packages0).data->data[h_0lk9afqbBF9cAQtskh16RYmQ_2].Field0; val_ybgqP7AeGJc5RfjZOOmLIA = (*packages0).data->data[h_0lk9afqbBF9cAQtskh16RYmQ_2].Field1; { if (!eqStrings(val_ybgqP7AeGJc5RfjZOOmLIA, ((NimStringDesc*) &T_asNQM9aynXXg9ccUABbReyew_4))) goto LA59; res_yPiyJP1ZM9abouUrPkQkp8Q_2 = key_Ev9apnmbO2PJJuXUQfg55Zg; } goto LA57; LA59: ; { NimStringDesc* LOC62; LOC62 = (NimStringDesc*)0; LOC62 = rawNewString(key_Ev9apnmbO2PJJuXUQfg55Zg->Sup.len + val_ybgqP7AeGJc5RfjZOOmLIA->Sup.len + 1); appendString(LOC62, key_Ev9apnmbO2PJJuXUQfg55Zg); appendChar(LOC62, 45); appendString(LOC62, val_ybgqP7AeGJc5RfjZOOmLIA); res_yPiyJP1ZM9abouUrPkQkp8Q_2 = LOC62; } LA57: ; p_dm2MlSSgl6QuA4g3oqnzug_2 = res_yPiyJP1ZM9abouUrPkQkp8Q_2; addnimblepath_Io0tiMEKgDlbf67BdbC9cWw(p_dm2MlSSgl6QuA4g3oqnzug_2, info0); } LA55: ; res_yPiyJP1ZM9abouUrPkQkp8Q += ((NI) 1); } LA52: ; } } } } }
}N_NOINLINE(void, compileroptionsInit)(void) { NimStringDesc* LOC1; NimStringDesc* LOC2; NimStringDesc* LOC3; NimStringDesc* LOC4; NimStringDesc* LOC5; NimStringDesc* LOC6; NimStringDesc* LOC7; NimStringDesc* LOC8; NimStringDesc* LOC9; NimStringDesc* LOC10; nimfr("options", "options.nim") nimln(93, "options.nim"); goptions_114107 = 2202238; nimln(97, "options.nim"); gglobaloptions_114109 = 134217728; nimln(99, "options.nim"); gcmd_114111 = ((NU8) 0); nimln(100, "options.nim"); gselectedgc_114112 = ((NU8) 3); nimln(102, "options.nim"); LOC1 = 0; LOC1 = outfile_114115; outfile_114115 = copyStringRC1(((NimStringDesc*) &TMP313)); if (LOC1) nimGCunrefNoCycle(LOC1); nimln(103, "options.nim"); LOC2 = 0; LOC2 = headerfile_114116; headerfile_114116 = copyStringRC1(((NimStringDesc*) &TMP313)); if (LOC2) nimGCunrefNoCycle(LOC2); nimln(104, "options.nim"); gverbosity_114117 = 1; nimln(107, "options.nim"); LOC3 = 0; LOC3 = gevalexpr_114120; gevalexpr_114120 = copyStringRC1(((NimStringDesc*) &TMP313)); if (LOC3) nimGCunrefNoCycle(LOC3); nimln(110, "options.nim"); isserving_114123 = NIM_FALSE; nimln(111, "options.nim"); gdirtybufferidx_114124 = ((NI32) 0); nimln(113, "options.nim"); gdirtyoriginalidx_114125 = ((NI32) 0); nimln(114, "options.nim"); gnobabelpath_114126 = NIM_FALSE; nimln(145, "options.nim"); asgnRefNoCycle((void**) &gconfigvars_114194, nstnewStringTable(((NU8) 2))); nimln(146, "options.nim"); asgnRefNoCycle((void**) &gdlloverrides_114195, nstnewStringTable(((NU8) 1))); nimln(147, "options.nim"); LOC4 = 0; LOC4 = libpath_114196; libpath_114196 = copyStringRC1(((NimStringDesc*) &TMP313)); if (LOC4) nimGCunrefNoCycle(LOC4); nimln(148, "options.nim"); LOC5 = 0; LOC5 = gprojectname_114197; gprojectname_114197 = copyStringRC1(((NimStringDesc*) &TMP313)); if (LOC5) nimGCunrefNoCycle(LOC5); nimln(149, "options.nim"); LOC6 = 0; LOC6 = gprojectpath_114198; gprojectpath_114198 = copyStringRC1(((NimStringDesc*) &TMP313)); if (LOC6) nimGCunrefNoCycle(LOC6); nimln(150, "options.nim"); LOC7 = 0; LOC7 = gprojectfull_114199; gprojectfull_114199 = copyStringRC1(((NimStringDesc*) &TMP313)); if (LOC7) nimGCunrefNoCycle(LOC7); nimln(152, "options.nim"); LOC8 = 0; LOC8 = optmainmodule_114201; optmainmodule_114201 = copyStringRC1(((NimStringDesc*) &TMP313)); if (LOC8) nimGCunrefNoCycle(LOC8); nimln(153, "options.nim"); LOC9 = 0; LOC9 = nimcachedir_114202; nimcachedir_114202 = copyStringRC1(((NimStringDesc*) &TMP313)); if (LOC9) nimGCunrefNoCycle(LOC9); nimln(154, "options.nim"); LOC10 = 0; LOC10 = command_114203; command_114203 = copyStringRC1(((NimStringDesc*) &TMP313)); if (LOC10) nimGCunrefNoCycle(LOC10); nimln(155, "options.nim"); if (commandargs_114222) nimGCunrefNoCycle(commandargs_114222); commandargs_114222 = (TY9552*) newSeqRC1((&NTI9552), 0); nimln(156, "options.nim"); gkeepcomments_114223 = NIM_TRUE; nimln(157, "options.nim"); if (implicitimports_114242) nimGCunrefNoCycle(implicitimports_114242); implicitimports_114242 = (TY9552*) newSeqRC1((&NTI9552), 0); nimln(158, "options.nim"); if (implicitincludes_114261) nimGCunrefNoCycle(implicitincludes_114261); implicitincludes_114261 = (TY9552*) newSeqRC1((&NTI9552), 0); popFrame(); }
N_NIMCALL(void, addpathrec_196184)(NimStringDesc* dir, Tlineinfo181337 info) { Stringtableobj140209* packages; NI pos; packages = nstnewStringTable(((NU8) 2)); pos = (NI)((dir ? dir->Sup.len : 0) - ((NI) 1)); { if (!(((NU8)(dir->data[pos])) == ((NU8)(47)) || ((NU8)(dir->data[pos])) == ((NU8)(47)))) goto LA3; pos += ((NI) 1); } LA3: ; { NU8 k_196210; NimStringDesc* p_196211; DIR* d_196238; k_196210 = 0; p_196211 = 0; d_196238 = opendir(dir->data); { int LOC72; if (!!((d_196238 == NIM_NIL))) goto LA8; { while (1) { { struct dirent* x_196240; NimStringDesc* y_196242; x_196240 = readdir(d_196238); { if (!(x_196240 == NIM_NIL)) goto LA15; goto LA10; } LA15: ; y_196242 = cstrToNimstr(((NCSTRING) ((*x_196240).d_name))); { NIM_BOOL LOC19; struct stat s_196244; NU8 k_196246; LOC19 = 0; LOC19 = !(eqStrings(y_196242, ((NimStringDesc*) &TMP1792))); if (!(LOC19)) goto LA20; LOC19 = !(eqStrings(y_196242, ((NimStringDesc*) &TMP1793))); LA20: ; if (!LOC19) goto LA21; memset((void*)(&s_196244), 0, sizeof(s_196244)); { if (!NIM_TRUE) goto LA25; y_196242 = HEX2F_118665(dir, y_196242); } LA25: ; k_196246 = ((NU8) 0); { if (!!(((*x_196240).d_type == ((NI8) 0)))) goto LA29; { if (!((*x_196240).d_type == ((NI8) 4))) goto LA33; k_196246 = ((NU8) 2); } LA33: ; { if (!((*x_196240).d_type == ((NI8) 10))) goto LA37; { NIM_BOOL LOC41; LOC41 = 0; LOC41 = direxists_122008(y_196242); if (!LOC41) goto LA42; k_196246 = ((NU8) 3); } goto LA39; LA42: ; { k_196246 = (NU8)(k_196246 + ((NI) 1)); } LA39: ; } LA37: ; k_196210 = k_196246; p_196211 = y_196242; { NIM_BOOL LOC47; LOC47 = 0; LOC47 = (k_196210 == ((NU8) 2)); if (!(LOC47)) goto LA48; LOC47 = !(((NU8)(p_196211->data[pos]) == (NU8)(46))); LA48: ; if (!LOC47) goto LA49; addpackage_196084(packages, p_196211); } LA49: ; goto LA12; } LA29: ; { int LOC53; LOC53 = 0; LOC53 = lstat(y_196242->data, (&s_196244)); if (!(LOC53 < ((NI32) 0))) goto LA54; goto LA10; } LA54: ; { NIM_BOOL LOC58; LOC58 = 0; LOC58 = S_ISDIR(s_196244.st_mode); if (!LOC58) goto LA59; k_196246 = ((NU8) 2); } LA59: ; { NIM_BOOL LOC63; LOC63 = 0; LOC63 = S_ISLNK(s_196244.st_mode); if (!LOC63) goto LA64; k_196246 = (NU8)(k_196246 + ((NI) 1)); } LA64: ; k_196210 = k_196246; p_196211 = y_196242; { NIM_BOOL LOC68; LOC68 = 0; LOC68 = (k_196210 == ((NU8) 2)); if (!(LOC68)) goto LA69; LOC68 = !(((NU8)(p_196211->data[pos]) == (NU8)(46))); LA69: ; if (!LOC68) goto LA70; addpackage_196084(packages, p_196211); } LA70: ; } LA21: ; } LA12: ; } } LA10: ; LOC72 = 0; LOC72 = closedir(d_196238); } LA8: ; } { NimStringDesc* p_196221; p_196221 = 0; { NimStringDesc* key_196252; NimStringDesc* val_196254; key_196252 = 0; val_196254 = 0; { NI h_196256; NI HEX3Atmp_196258; NI res_196260; h_196256 = 0; HEX3Atmp_196258 = 0; HEX3Atmp_196258 = ((*packages).data ? ((*packages).data->Sup.len-1) : -1); res_196260 = ((NI) 0); { while (1) { if (!(res_196260 <= HEX3Atmp_196258)) goto LA77; h_196256 = res_196260; { NimStringDesc* res_196264; if (!!((*packages).data->data[h_196256].Field0 == 0)) goto LA80; key_196252 = (*packages).data->data[h_196256].Field0; val_196254 = (*packages).data->data[h_196256].Field1; { if (!eqStrings(val_196254, ((NimStringDesc*) &TMP1794))) goto LA84; res_196264 = key_196252; } goto LA82; LA84: ; { NimStringDesc* LOC87; LOC87 = 0; LOC87 = rawNewString(key_196252->Sup.len + val_196254->Sup.len + 1); appendString(LOC87, key_196252); appendChar(LOC87, 45); appendString(LOC87, val_196254); res_196264 = LOC87; } LA82: ; p_196221 = res_196264; addnimblepath_196108(p_196221, info); } LA80: ; res_196260 += ((NI) 1); } LA77: ; } } } } }
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(void, addpathrec_150180)(NimStringDesc* dir, tlineinfo136509 info) { tstringtable112610* packages; NI pos; NI TMP1402; NU8 k_150207; NimStringDesc* p_150208; DIR* d_150219; NimStringDesc* p_150217; NimStringDesc* key_150229; NimStringDesc* val_150231; NI h_150233; NI HEX3Atmp_150235; NI res_150237; nimfr("addPathRec", "babelcmd.nim") nimln(79, "babelcmd.nim"); packages = nstnewStringTable(((NU8) 2)); nimln(80, "babelcmd.nim"); nimln(80, "babelcmd.nim"); nimln(80, "babelcmd.nim"); TMP1402 = subInt(dir->Sup.len, 1); pos = (NI32)(TMP1402); nimln(81, "babelcmd.nim"); { nimln(730, "system.nim"); if ((NU)(pos) > (NU)(dir->Sup.len)) raiseIndexError(); if (!(((NU8)(dir->data[pos])) == ((NU8)(47)) || ((NU8)(dir->data[pos])) == ((NU8)(47)))) goto LA3; nimln(81, "babelcmd.nim"); pos = addInt(pos, 1); } LA3: ; k_150207 = 0; p_150208 = 0; nimln(1227, "os.nim"); d_150219 = opendir(dir->data); nimln(1228, "os.nim"); { int LOC41; nimln(698, "system.nim"); nimln(698, "system.nim"); if (!!((d_150219 == NIM_NIL))) goto LA7; nimln(1229, "os.nim"); while (1) { struct dirent* x_150221; NimStringDesc* y_150223; nimln(1230, "os.nim"); x_150221 = readdir(d_150219); nimln(1231, "os.nim"); { nimln(1231, "os.nim"); if (!(x_150221 == NIM_NIL)) goto LA12; nimln(1231, "os.nim"); goto LA9; } LA12: ; nimln(1232, "os.nim"); nimln(1232, "os.nim"); y_150223 = cstrToNimstr(((NCSTRING) ((*x_150221).d_name))); nimln(1233, "os.nim"); { NIM_BOOL LOC16; struct stat s_150225; NU8 k_150227; nimln(1233, "os.nim"); LOC16 = 0; nimln(698, "system.nim"); nimln(698, "system.nim"); LOC16 = !(eqStrings(y_150223, ((NimStringDesc*) &TMP1396))); if (!(LOC16)) goto LA17; nimln(698, "system.nim"); nimln(698, "system.nim"); LOC16 = !(eqStrings(y_150223, ((NimStringDesc*) &TMP1397))); LA17: ; if (!LOC16) goto LA18; memset((void*)&s_150225, 0, sizeof(s_150225)); nimln(1235, "os.nim"); y_150223 = HEX2F_102067(dir, y_150223); nimln(1236, "os.nim"); { int LOC22; nimln(1236, "os.nim"); nimln(1236, "os.nim"); LOC22 = 0; LOC22 = lstat(y_150223->data, &s_150225); if (!(LOC22 < ((NI32) 0))) goto LA23; nimln(1236, "os.nim"); goto LA9; } LA23: ; nimln(1237, "os.nim"); k_150227 = ((NU8) 0); nimln(1238, "os.nim"); { NIM_BOOL LOC27; nimln(1238, "os.nim"); LOC27 = 0; LOC27 = S_ISDIR(s_150225.st_mode); if (!LOC27) goto LA28; nimln(1238, "os.nim"); k_150227 = ((NU8) 2); } LA28: ; nimln(1239, "os.nim"); { NIM_BOOL LOC32; nimln(1239, "os.nim"); LOC32 = 0; LOC32 = S_ISLNK(s_150225.st_mode); if (!LOC32) goto LA33; nimln(1239, "os.nim"); nimln(1239, "os.nim"); k_150227 = addInt(k_150227, 1); } LA33: ; nimln(1237, "os.nim"); k_150207 = k_150227; nimln(1232, "os.nim"); p_150208 = y_150223; nimln(83, "babelcmd.nim"); { NIM_BOOL LOC37; nimln(83, "babelcmd.nim"); LOC37 = 0; nimln(83, "babelcmd.nim"); LOC37 = (k_150207 == ((NU8) 2)); if (!(LOC37)) goto LA38; nimln(698, "system.nim"); nimln(698, "system.nim"); if ((NU)(pos) > (NU)(p_150208->Sup.len)) raiseIndexError(); LOC37 = !(((NU8)(p_150208->data[pos]) == (NU8)(46))); LA38: ; if (!LOC37) goto LA39; nimln(84, "babelcmd.nim"); addpackage_150103(packages, p_150208); } LA39: ; } LA18: ; } LA9: ; nimln(1241, "os.nim"); nimln(1241, "os.nim"); LOC41 = 0; LOC41 = closedir(d_150219); } LA7: ; p_150217 = 0; key_150229 = 0; val_150231 = 0; h_150233 = 0; HEX3Atmp_150235 = 0; nimln(40, "strtabs.nim"); nimln(40, "strtabs.nim"); HEX3Atmp_150235 = ((*packages).Data->Sup.len-1); nimln(1308, "system.nim"); res_150237 = 0; nimln(1309, "system.nim"); while (1) { nimln(1309, "system.nim"); if (!(res_150237 <= HEX3Atmp_150235)) goto LA42; nimln(1308, "system.nim"); h_150233 = res_150237; nimln(41, "strtabs.nim"); { NimStringDesc* res_150239; nimln(41, "strtabs.nim"); nimln(41, "strtabs.nim"); if ((NU)(h_150233) >= (NU)((*packages).Data->Sup.len)) raiseIndexError(); if (!!((*packages).Data->data[h_150233].Field0 == 0)) goto LA45; nimln(42, "strtabs.nim"); if ((NU)(h_150233) >= (NU)((*packages).Data->Sup.len)) raiseIndexError(); key_150229 = (*packages).Data->data[h_150233].Field0; nimln(42, "strtabs.nim"); if ((NU)(h_150233) >= (NU)((*packages).Data->Sup.len)) raiseIndexError(); val_150231 = (*packages).Data->data[h_150233].Field1; nimln(58, "babelcmd.nim"); nimln(58, "babelcmd.nim"); { nimln(58, "babelcmd.nim"); if (!eqStrings(val_150231, ((NimStringDesc*) &TMP1393))) goto LA49; res_150239 = key_150229; } goto LA47; LA49: ; { NimStringDesc* LOC52; nimln(58, "babelcmd.nim"); LOC52 = 0; LOC52 = rawNewString(key_150229->Sup.len + val_150231->Sup.len + 1); appendString(LOC52, key_150229); appendChar(LOC52, 45); appendString(LOC52, val_150231); res_150239 = LOC52; } LA47: ; nimln(58, "babelcmd.nim"); p_150217 = res_150239; nimln(86, "babelcmd.nim"); addbabelpath_150128(p_150217, info); } LA45: ; nimln(1311, "system.nim"); res_150237 = addInt(res_150237, 1); } LA42: ; popFrame(); }
N_NOINLINE(void, optionsInit)(void) { NimStringDesc* LOC1; NimStringDesc* LOC2; NimStringDesc* LOC3; NimStringDesc* LOC4; NimStringDesc* LOC5; NimStringDesc* LOC6; NimStringDesc* LOC7; NimStringDesc* LOC8; NimStringDesc* LOC9; NimStringDesc* LOC10; NimStringDesc* LOC11; nimfr("options", "options.nim") nimln(94, "options.nim"); goptions_136108 = 2202238; nimln(98, "options.nim"); gglobaloptions_136111 = 0; nimln(100, "options.nim"); gcmd_136113 = ((NU8) 0); nimln(101, "options.nim"); gselectedgc_136114 = ((NU8) 3); nimln(103, "options.nim"); LOC1 = 0; LOC1 = outfile_136117; outfile_136117 = copyStringRC1(((NimStringDesc*) &TMP404)); if (LOC1) nimGCunrefNoCycle(LOC1); nimln(104, "options.nim"); LOC2 = 0; LOC2 = docseesrcurl_136118; docseesrcurl_136118 = copyStringRC1(((NimStringDesc*) &TMP404)); if (LOC2) nimGCunrefNoCycle(LOC2); nimln(106, "options.nim"); LOC3 = 0; LOC3 = headerfile_136119; headerfile_136119 = copyStringRC1(((NimStringDesc*) &TMP404)); if (LOC3) nimGCunrefNoCycle(LOC3); nimln(107, "options.nim"); gverbosity_136120 = 1; nimln(110, "options.nim"); LOC4 = 0; LOC4 = gevalexpr_136123; gevalexpr_136123 = copyStringRC1(((NimStringDesc*) &TMP404)); if (LOC4) nimGCunrefNoCycle(LOC4); nimln(113, "options.nim"); isserving_136126 = NIM_FALSE; nimln(114, "options.nim"); gdirtybufferidx_136127 = ((NI32) 0); nimln(116, "options.nim"); gdirtyoriginalidx_136128 = ((NI32) 0); nimln(117, "options.nim"); gnobabelpath_136129 = NIM_FALSE; nimln(148, "options.nim"); asgnRef((void**) &gconfigvars_136203, nstnewStringTable(((NU8) 2))); nimln(149, "options.nim"); asgnRef((void**) &gdlloverrides_136204, nstnewStringTable(((NU8) 1))); nimln(150, "options.nim"); LOC5 = 0; LOC5 = libpath_136205; libpath_136205 = copyStringRC1(((NimStringDesc*) &TMP404)); if (LOC5) nimGCunrefNoCycle(LOC5); nimln(151, "options.nim"); LOC6 = 0; LOC6 = gprojectname_136206; gprojectname_136206 = copyStringRC1(((NimStringDesc*) &TMP404)); if (LOC6) nimGCunrefNoCycle(LOC6); nimln(152, "options.nim"); LOC7 = 0; LOC7 = gprojectpath_136207; gprojectpath_136207 = copyStringRC1(((NimStringDesc*) &TMP404)); if (LOC7) nimGCunrefNoCycle(LOC7); nimln(153, "options.nim"); LOC8 = 0; LOC8 = gprojectfull_136208; gprojectfull_136208 = copyStringRC1(((NimStringDesc*) &TMP404)); if (LOC8) nimGCunrefNoCycle(LOC8); nimln(155, "options.nim"); LOC9 = 0; LOC9 = optmainmodule_136210; optmainmodule_136210 = copyStringRC1(((NimStringDesc*) &TMP404)); if (LOC9) nimGCunrefNoCycle(LOC9); nimln(156, "options.nim"); LOC10 = 0; LOC10 = nimcachedir_136211; nimcachedir_136211 = copyStringRC1(((NimStringDesc*) &TMP404)); if (LOC10) nimGCunrefNoCycle(LOC10); nimln(157, "options.nim"); LOC11 = 0; LOC11 = command_136212; command_136212 = copyStringRC1(((NimStringDesc*) &TMP404)); if (LOC11) nimGCunrefNoCycle(LOC11); nimln(158, "options.nim"); if (commandargs_136234) nimGCunrefNoCycle(commandargs_136234); commandargs_136234 = (TY10665*) newSeqRC1((&NTI10665), 0); nimln(159, "options.nim"); gkeepcomments_136235 = NIM_TRUE; nimln(160, "options.nim"); if (implicitimports_136257) nimGCunrefNoCycle(implicitimports_136257); implicitimports_136257 = (TY10665*) newSeqRC1((&NTI10665), 0); nimln(161, "options.nim"); if (implicitincludes_136279) nimGCunrefNoCycle(implicitincludes_136279); implicitincludes_136279 = (TY10665*) newSeqRC1((&NTI10665), 0); nimln(221, "options.nim"); asgnRef((void**) &packagecache_136601, nstnewStringTable(((NU8) 1))); popFrame(); }
N_NIMCALL(void, resetpackagecache_153605)(void) { asgnRef((void**) (&packagecache_153601), nstnewStringTable(((NU8) 1))); }
N_NIMCALL(void, resetpackagecache_136603)(void) { nimfr("resetPackageCache", "options.nim") nimln(223, "options.nim"); asgnRef((void**) &packagecache_136601, nstnewStringTable(((NU8) 1))); popFrame(); }
N_NIMCALL(void, addpathrec_172266)(NimStringDesc* dir, Tlineinfo162338 info) { Stringtableobj133012* packages; NI pos; packages = nstnewStringTable(((NU8) 2)); pos = (NI)((dir ? dir->Sup.len : 0) - ((NI) 1)); { if (!(((NU8)(dir->data[pos])) == ((NU8)(47)) || ((NU8)(dir->data[pos])) == ((NU8)(47)))) goto LA3; pos += ((NI) 1); } LA3: ; { NU8 k_172292; NimStringDesc* p_172293; DIR* d_172308; k_172292 = 0; p_172293 = 0; d_172308 = opendir(dir->data); { int LOC62; if (!!((d_172308 == NIM_NIL))) goto LA8; { while (1) { { struct dirent* x_172310; NimStringDesc* y_172312; x_172310 = readdir(d_172308); { if (!(x_172310 == NIM_NIL)) goto LA15; goto LA10; } LA15: ; y_172312 = cstrToNimstr(((NCSTRING) ((*x_172310).d_name))); { NIM_BOOL LOC19; struct stat s_172314; NU8 k_172316; LOC19 = 0; LOC19 = !(eqStrings(y_172312, ((NimStringDesc*) &TMP1658))); if (!(LOC19)) goto LA20; LOC19 = !(eqStrings(y_172312, ((NimStringDesc*) &TMP1659))); LA20: ; if (!LOC19) goto LA21; memset((void*)(&s_172314), 0, sizeof(s_172314)); y_172312 = HEX2F_118292(dir, y_172312); k_172316 = ((NU8) 0); { if (!!(((*x_172310).d_type == ((NI8) 0)))) goto LA25; { if (!((*x_172310).d_type == ((NI8) 4))) goto LA29; k_172316 = ((NU8) 2); } LA29: ; { if (!((*x_172310).d_type == ((NI8) 10))) goto LA33; k_172316 = (NU8)(k_172316 + ((NI) 1)); } LA33: ; k_172292 = k_172316; p_172293 = y_172312; { NIM_BOOL LOC37; LOC37 = 0; LOC37 = (k_172292 == ((NU8) 2)); if (!(LOC37)) goto LA38; LOC37 = !(((NU8)(p_172293->data[pos]) == (NU8)(46))); LA38: ; if (!LOC37) goto LA39; addpackage_172126(packages, p_172293); } LA39: ; goto LA12; } LA25: ; { int LOC43; LOC43 = 0; LOC43 = lstat(y_172312->data, (&s_172314)); if (!(LOC43 < ((NI32) 0))) goto LA44; goto LA10; } LA44: ; { NIM_BOOL LOC48; LOC48 = 0; LOC48 = S_ISDIR(s_172314.st_mode); if (!LOC48) goto LA49; k_172316 = ((NU8) 2); } LA49: ; { NIM_BOOL LOC53; LOC53 = 0; LOC53 = S_ISLNK(s_172314.st_mode); if (!LOC53) goto LA54; k_172316 = (NU8)(k_172316 + ((NI) 1)); } LA54: ; k_172292 = k_172316; p_172293 = y_172312; { NIM_BOOL LOC58; LOC58 = 0; LOC58 = (k_172292 == ((NU8) 2)); if (!(LOC58)) goto LA59; LOC58 = !(((NU8)(p_172293->data[pos]) == (NU8)(46))); LA59: ; if (!LOC58) goto LA60; addpackage_172126(packages, p_172293); } LA60: ; } LA21: ; } LA12: ; } } LA10: ; LOC62 = 0; LOC62 = closedir(d_172308); } LA8: ; } { NimStringDesc* p_172303; p_172303 = 0; { NimStringDesc* key_172322; NimStringDesc* val_172324; key_172322 = 0; val_172324 = 0; { NI h_172326; NI HEX3Atmp_172328; NI res_172330; h_172326 = 0; HEX3Atmp_172328 = 0; HEX3Atmp_172328 = ((*packages).data ? ((*packages).data->Sup.len-1) : -1); res_172330 = ((NI) 0); { while (1) { if (!(res_172330 <= HEX3Atmp_172328)) goto LA67; h_172326 = res_172330; { NimStringDesc* res_172334; if (!!((*packages).data->data[h_172326].Field0 == 0)) goto LA70; key_172322 = (*packages).data->data[h_172326].Field0; val_172324 = (*packages).data->data[h_172326].Field1; { if (!eqStrings(val_172324, ((NimStringDesc*) &TMP1660))) goto LA74; res_172334 = key_172322; } goto LA72; LA74: ; { NimStringDesc* LOC77; LOC77 = 0; LOC77 = rawNewString(key_172322->Sup.len + val_172324->Sup.len + 1); appendString(LOC77, key_172322); appendChar(LOC77, 45); appendString(LOC77, val_172324); res_172334 = LOC77; } LA72: ; p_172303 = res_172334; addnimblepath_172175(p_172303, info); } LA70: ; res_172330 += ((NI) 1); } LA67: ; } } } } }
N_NIMCALL(void, addpathrec_277113)(NimStringDesc* dir, Tlineinfo192336 info) { Stringtableobj152608* packages; NI pos; packages = nstnewStringTable(((NU8) 2)); pos = (NI)((dir ? dir->Sup.len : 0) - ((NI) 1)); { if (!(((NU8)(dir->data[pos])) == ((NU8)(47)) || ((NU8)(dir->data[pos])) == ((NU8)(47)))) goto LA3; pos += ((NI) 1); } LA3: ; { NU8 k_277139; NimStringDesc* p_277140; DIR* d_277167; k_277139 = 0; p_277140 = 0; d_277167 = opendir(dir->data); { TSafePoint TMP1827; if (!!((d_277167 == NIM_NIL))) goto LA8; pushSafePoint(&TMP1827); TMP1827.status = setjmp(TMP1827.context); if (TMP1827.status == 0) { { while (1) { { struct dirent* x_277169; NimStringDesc* volatile y_277171; x_277169 = readdir(d_277167); { if (!(x_277169 == NIM_NIL)) goto LA16; goto LA11; } LA16: ; y_277171 = cstrToNimstr(((NCSTRING) ((*x_277169).d_name))); { NIM_BOOL LOC20; struct stat s_277173; NU8 volatile k_277175; LOC20 = 0; LOC20 = !(eqStrings(y_277171, ((NimStringDesc*) &TMP1828))); if (!(LOC20)) goto LA21; LOC20 = !(eqStrings(y_277171, ((NimStringDesc*) &TMP1829))); LA21: ; if (!LOC20) goto LA22; memset((void*)(&s_277173), 0, sizeof(s_277173)); { if (!NIM_TRUE) goto LA26; y_277171 = HEX2F_128265(dir, y_277171); } LA26: ; k_277175 = ((NU8) 0); { if (!!(((*x_277169).d_type == ((NI8) 0)))) goto LA30; { if (!((*x_277169).d_type == ((NI8) 4))) goto LA34; k_277175 = ((NU8) 2); } LA34: ; { if (!((*x_277169).d_type == ((NI8) 10))) goto LA38; { NIM_BOOL LOC42; LOC42 = 0; LOC42 = direxists_131608(y_277171); if (!LOC42) goto LA43; k_277175 = ((NU8) 3); } goto LA40; LA43: ; { k_277175 = ((NU8) 1); } LA40: ; } LA38: ; k_277139 = k_277175; p_277140 = y_277171; { NIM_BOOL LOC48; LOC48 = 0; LOC48 = (k_277139 == ((NU8) 2)); if (!(LOC48)) goto LA49; LOC48 = !(((NU8)(p_277140->data[pos]) == (NU8)(46))); LA49: ; if (!LOC48) goto LA50; addpackage_277084(packages, p_277140); } LA50: ; goto LA13; } LA30: ; { int LOC54; LOC54 = 0; LOC54 = lstat(y_277171->data, (&s_277173)); if (!(LOC54 < ((NI32) 0))) goto LA55; goto LA11; } LA55: ; { NIM_BOOL LOC59; LOC59 = 0; LOC59 = S_ISDIR(s_277173.st_mode); if (!LOC59) goto LA60; k_277175 = ((NU8) 2); } goto LA57; LA60: ; { NIM_BOOL LOC63; LOC63 = 0; LOC63 = S_ISLNK(s_277173.st_mode); if (!LOC63) goto LA64; k_277175 = getsymlinkfilekind_137218(y_277171); } goto LA57; LA64: ; LA57: ; k_277139 = k_277175; p_277140 = y_277171; { NIM_BOOL LOC68; LOC68 = 0; LOC68 = (k_277139 == ((NU8) 2)); if (!(LOC68)) goto LA69; LOC68 = !(((NU8)(p_277140->data[pos]) == (NU8)(46))); LA69: ; if (!LOC68) goto LA70; addpackage_277084(packages, p_277140); } LA70: ; } LA22: ; } LA13: ; } } LA11: ; popSafePoint(); } else { popSafePoint(); } { int LOC74; LOC74 = 0; LOC74 = closedir(d_277167); } if (TMP1827.status != 0) reraiseException(); } LA8: ; } { NimStringDesc* p_277150; p_277150 = 0; { NimStringDesc* key_277181; NimStringDesc* val_277183; key_277181 = 0; val_277183 = 0; { NI h_277185; NI HEX3Atmp_277187; NI res_277189; h_277185 = 0; HEX3Atmp_277187 = 0; HEX3Atmp_277187 = ((*packages).data ? ((*packages).data->Sup.len-1) : -1); res_277189 = ((NI) 0); { while (1) { if (!(res_277189 <= HEX3Atmp_277187)) goto LA79; h_277185 = res_277189; { NimStringDesc* res_277193; if (!!((*packages).data->data[h_277185].Field0 == 0)) goto LA82; key_277181 = (*packages).data->data[h_277185].Field0; val_277183 = (*packages).data->data[h_277185].Field1; { if (!eqStrings(val_277183, ((NimStringDesc*) &TMP1830))) goto LA86; res_277193 = key_277181; } goto LA84; LA86: ; { NimStringDesc* LOC89; LOC89 = 0; LOC89 = rawNewString(key_277181->Sup.len + val_277183->Sup.len + 1); appendString(LOC89, key_277181); appendChar(LOC89, 45); appendString(LOC89, val_277183); res_277193 = LOC89; } LA84: ; p_277150 = res_277193; addnimblepath_277108(p_277150, info); } LA82: ; res_277189 += ((NI) 1); } LA79: ; } } } } }
N_NIMCALL(void, addpathrec_3JEODh79bt1SXwL9cUHI7lhw)(NimStringDesc* dir0, Tlineinfo_T9c3PM9bs7WZ4LIQfEici9cZw info0) { Stringtableobj_DKRIdH9c9cKI7YpQb9c0wKlEw* packages0; NI pos0; packages0 = nstnewStringTable(((Stringtablemode_G9c4wVDFIzf0xHmQvxso9a9cQ) 2)); pos0 = (NI)((dir0 ? dir0->Sup.len : 0) - ((NI) 1)); { if (!(((NU8)(dir0->data[pos0])) == ((NU8)(47)) || ((NU8)(dir0->data[pos0])) == ((NU8)(47)))) goto LA3; pos0 += ((NI) 1); } LA3: ; { Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg k_KeWeZHiyBnWbJ7NUxRxrzQ; NimStringDesc* p_dm2MlSSgl6QuA4g3oqnzug; DIR* d_ZfFno5oDVOm9aHJ009cmNoGQ; k_KeWeZHiyBnWbJ7NUxRxrzQ = (Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg)0; p_dm2MlSSgl6QuA4g3oqnzug = (NimStringDesc*)0; d_ZfFno5oDVOm9aHJ009cmNoGQ = opendir(dir0->data); { TSafePoint T_asNQM9aynXXg9ccUABbReyew_2; if (!!((d_ZfFno5oDVOm9aHJ009cmNoGQ == NIM_NIL))) goto LA8; pushSafePoint(&T_asNQM9aynXXg9ccUABbReyew_2); T_asNQM9aynXXg9ccUABbReyew_2.status = setjmp(T_asNQM9aynXXg9ccUABbReyew_2.context); if (T_asNQM9aynXXg9ccUABbReyew_2.status == 0) { { while (1) { { struct dirent* x_rBzPa0W2aCO6C2N57Y0ovQ; NimStringDesc* volatile y_KzqyWmE69cwQ0l9c9bXwsjU9cw; x_rBzPa0W2aCO6C2N57Y0ovQ = readdir(d_ZfFno5oDVOm9aHJ009cmNoGQ); { if (!(x_rBzPa0W2aCO6C2N57Y0ovQ == NIM_NIL)) goto LA16; goto LA11; } LA16: ; y_KzqyWmE69cwQ0l9c9bXwsjU9cw = cstrToNimstr(((NCSTRING) ((*x_rBzPa0W2aCO6C2N57Y0ovQ).d_name))); { NIM_BOOL LOC20; struct stat s_k2PyMBHM0O7gW5niqUdMGA; Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg volatile k_KeWeZHiyBnWbJ7NUxRxrzQ_2; LOC20 = (NIM_BOOL)0; LOC20 = !(eqStrings(y_KzqyWmE69cwQ0l9c9bXwsjU9cw, ((NimStringDesc*) &T_asNQM9aynXXg9ccUABbReyew_3))); if (!(LOC20)) goto LA21; LOC20 = !(eqStrings(y_KzqyWmE69cwQ0l9c9bXwsjU9cw, ((NimStringDesc*) &T_asNQM9aynXXg9ccUABbReyew_4))); LA21: ; if (!LOC20) goto LA22; memset((void*)(&s_k2PyMBHM0O7gW5niqUdMGA), 0, sizeof(s_k2PyMBHM0O7gW5niqUdMGA)); { if (!NIM_TRUE) goto LA26; y_KzqyWmE69cwQ0l9c9bXwsjU9cw = HEX2F_BsTQv9c9anbxt9bKmR0aN1elQ(dir0, y_KzqyWmE69cwQ0l9c9bXwsjU9cw); } LA26: ; k_KeWeZHiyBnWbJ7NUxRxrzQ_2 = ((Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg) 0); { if (!!(((*x_rBzPa0W2aCO6C2N57Y0ovQ).d_type == ((NI8) 0)))) goto LA30; { if (!((*x_rBzPa0W2aCO6C2N57Y0ovQ).d_type == ((NI8) 4))) goto LA34; k_KeWeZHiyBnWbJ7NUxRxrzQ_2 = ((Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg) 2); } LA34: ; { if (!((*x_rBzPa0W2aCO6C2N57Y0ovQ).d_type == ((NI8) 10))) goto LA38; { NIM_BOOL LOC42; LOC42 = (NIM_BOOL)0; LOC42 = direxists_wf0Ae3eLXw0lSNEFJMV3ognimblecmd(y_KzqyWmE69cwQ0l9c9bXwsjU9cw); if (!LOC42) goto LA43; k_KeWeZHiyBnWbJ7NUxRxrzQ_2 = ((Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg) 3); } goto LA40; LA43: ; { k_KeWeZHiyBnWbJ7NUxRxrzQ_2 = ((Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg) 1); } LA40: ; } LA38: ; k_KeWeZHiyBnWbJ7NUxRxrzQ = k_KeWeZHiyBnWbJ7NUxRxrzQ_2; p_dm2MlSSgl6QuA4g3oqnzug = y_KzqyWmE69cwQ0l9c9bXwsjU9cw; { NIM_BOOL LOC48; LOC48 = (NIM_BOOL)0; LOC48 = (k_KeWeZHiyBnWbJ7NUxRxrzQ == ((Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg) 2)); if (!(LOC48)) goto LA49; LOC48 = !(((NU8)(p_dm2MlSSgl6QuA4g3oqnzug->data[pos0]) == (NU8)(46))); LA49: ; if (!LOC48) goto LA50; addpackage_mPfTsfux8gBVeyQ8xwDYTQ(packages0, p_dm2MlSSgl6QuA4g3oqnzug); } LA50: ; goto LA13; } LA30: ; { int LOC54; LOC54 = (int)0; LOC54 = lstat(y_KzqyWmE69cwQ0l9c9bXwsjU9cw->data, (&s_k2PyMBHM0O7gW5niqUdMGA)); if (!(LOC54 < ((NI32) 0))) goto LA55; goto LA11; } LA55: ; { NIM_BOOL LOC59; LOC59 = (NIM_BOOL)0; LOC59 = S_ISDIR(s_k2PyMBHM0O7gW5niqUdMGA.st_mode); if (!LOC59) goto LA60; k_KeWeZHiyBnWbJ7NUxRxrzQ_2 = ((Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg) 2); } goto LA57; LA60: ; { NIM_BOOL LOC63; LOC63 = (NIM_BOOL)0; LOC63 = S_ISLNK(s_k2PyMBHM0O7gW5niqUdMGA.st_mode); if (!LOC63) goto LA64; k_KeWeZHiyBnWbJ7NUxRxrzQ_2 = getsymlinkfilekind_WoXOp8qmMec1P4MyA3LBKg(y_KzqyWmE69cwQ0l9c9bXwsjU9cw); } goto LA57; LA64: ; LA57: ; k_KeWeZHiyBnWbJ7NUxRxrzQ = k_KeWeZHiyBnWbJ7NUxRxrzQ_2; p_dm2MlSSgl6QuA4g3oqnzug = y_KzqyWmE69cwQ0l9c9bXwsjU9cw; { NIM_BOOL LOC68; LOC68 = (NIM_BOOL)0; LOC68 = (k_KeWeZHiyBnWbJ7NUxRxrzQ == ((Pathcomponent_9c1SIU9cO1wHcl09b703A9cDrg) 2)); if (!(LOC68)) goto LA69; LOC68 = !(((NU8)(p_dm2MlSSgl6QuA4g3oqnzug->data[pos0]) == (NU8)(46))); LA69: ; if (!LOC68) goto LA70; addpackage_mPfTsfux8gBVeyQ8xwDYTQ(packages0, p_dm2MlSSgl6QuA4g3oqnzug); } LA70: ; } LA22: ; } LA13: ; } } LA11: ; popSafePoint(); } else { popSafePoint(); } { int LOC74; LOC74 = (int)0; LOC74 = closedir(d_ZfFno5oDVOm9aHJ009cmNoGQ); } if (T_asNQM9aynXXg9ccUABbReyew_2.status != 0) reraiseException(); } LA8: ; } { NimStringDesc* p_dm2MlSSgl6QuA4g3oqnzug_2; p_dm2MlSSgl6QuA4g3oqnzug_2 = (NimStringDesc*)0; { NimStringDesc* key_Ev9apnmbO2PJJuXUQfg55Zg; NimStringDesc* val_ybgqP7AeGJc5RfjZOOmLIA; key_Ev9apnmbO2PJJuXUQfg55Zg = (NimStringDesc*)0; val_ybgqP7AeGJc5RfjZOOmLIA = (NimStringDesc*)0; { NI h_0lk9afqbBF9cAQtskh16RYmQ; NI HEX3Atmp_xBs1KTOTJ0azvpgP9bD601g; NI res_yPiyJP1ZM9abouUrPkQkp8Q; h_0lk9afqbBF9cAQtskh16RYmQ = (NI)0; HEX3Atmp_xBs1KTOTJ0azvpgP9bD601g = (NI)0; HEX3Atmp_xBs1KTOTJ0azvpgP9bD601g = ((*packages0).data ? ((*packages0).data->Sup.len-1) : -1); res_yPiyJP1ZM9abouUrPkQkp8Q = ((NI) 0); { while (1) { if (!(res_yPiyJP1ZM9abouUrPkQkp8Q <= HEX3Atmp_xBs1KTOTJ0azvpgP9bD601g)) goto LA79; h_0lk9afqbBF9cAQtskh16RYmQ = res_yPiyJP1ZM9abouUrPkQkp8Q; { NimStringDesc* res_yPiyJP1ZM9abouUrPkQkp8Q_2; if (!!(((*packages0).data->data[h_0lk9afqbBF9cAQtskh16RYmQ].Field0 == 0))) goto LA82; key_Ev9apnmbO2PJJuXUQfg55Zg = (*packages0).data->data[h_0lk9afqbBF9cAQtskh16RYmQ].Field0; val_ybgqP7AeGJc5RfjZOOmLIA = (*packages0).data->data[h_0lk9afqbBF9cAQtskh16RYmQ].Field1; { if (!eqStrings(val_ybgqP7AeGJc5RfjZOOmLIA, ((NimStringDesc*) &T_asNQM9aynXXg9ccUABbReyew_5))) goto LA86; res_yPiyJP1ZM9abouUrPkQkp8Q_2 = key_Ev9apnmbO2PJJuXUQfg55Zg; } goto LA84; LA86: ; { NimStringDesc* LOC89; LOC89 = (NimStringDesc*)0; LOC89 = rawNewString(key_Ev9apnmbO2PJJuXUQfg55Zg->Sup.len + val_ybgqP7AeGJc5RfjZOOmLIA->Sup.len + 1); appendString(LOC89, key_Ev9apnmbO2PJJuXUQfg55Zg); appendChar(LOC89, 45); appendString(LOC89, val_ybgqP7AeGJc5RfjZOOmLIA); res_yPiyJP1ZM9abouUrPkQkp8Q_2 = LOC89; } LA84: ; p_dm2MlSSgl6QuA4g3oqnzug_2 = res_yPiyJP1ZM9abouUrPkQkp8Q_2; addnimblepath_Io0tiMEKgDlbf67BdbC9cWw(p_dm2MlSSgl6QuA4g3oqnzug_2, info0); } LA82: ; res_yPiyJP1ZM9abouUrPkQkp8Q += ((NI) 1); } LA79: ; } } } } }
N_NIMCALL(void, addpathrec_172258)(NimStringDesc* dir, Tlineinfo162338 info) { Stringtableobj133012* packages; NI pos; packages = nstnewStringTable(((NU8) 2)); pos = (NI)((dir ? dir->Sup.len : 0) - ((NI) 1)); { if (!(((NU8)(dir->data[pos])) == ((NU8)(47)) || ((NU8)(dir->data[pos])) == ((NU8)(47)))) goto LA3; pos += ((NI) 1); } LA3: ; { NU8 k_172284; NimStringDesc* p_172285; DIR* d_172299; k_172284 = 0; p_172285 = 0; d_172299 = opendir(dir->data); { int LOC43; if (!!((d_172299 == NIM_NIL))) goto LA8; { while (1) { struct dirent* x_172301; NimStringDesc* y_172303; x_172301 = readdir(d_172299); { if (!(x_172301 == NIM_NIL)) goto LA14; goto LA10; } LA14: ; y_172303 = cstrToNimstr(((NCSTRING) ((*x_172301).d_name))); { NIM_BOOL LOC18; struct stat s_172305; NU8 k_172307; LOC18 = 0; LOC18 = !(eqStrings(y_172303, ((NimStringDesc*) &TMP1658))); if (!(LOC18)) goto LA19; LOC18 = !(eqStrings(y_172303, ((NimStringDesc*) &TMP1659))); LA19: ; if (!LOC18) goto LA20; memset((void*)(&s_172305), 0, sizeof(s_172305)); y_172303 = HEX2F_118292(dir, y_172303); k_172307 = ((NU8) 0); { int LOC24; LOC24 = 0; LOC24 = lstat(y_172303->data, (&s_172305)); if (!(LOC24 < ((NI32) 0))) goto LA25; goto LA10; } LA25: ; { NIM_BOOL LOC29; LOC29 = 0; LOC29 = S_ISDIR(s_172305.st_mode); if (!LOC29) goto LA30; k_172307 = ((NU8) 2); } LA30: ; { NIM_BOOL LOC34; LOC34 = 0; LOC34 = S_ISLNK(s_172305.st_mode); if (!LOC34) goto LA35; k_172307 = (NU8)(k_172307 + ((NI) 1)); } LA35: ; k_172284 = k_172307; p_172285 = y_172303; { NIM_BOOL LOC39; LOC39 = 0; LOC39 = (k_172284 == ((NU8) 2)); if (!(LOC39)) goto LA40; LOC39 = !(((NU8)(p_172285->data[pos]) == (NU8)(46))); LA40: ; if (!LOC39) goto LA41; addpackage_172126(packages, p_172285); } LA41: ; } LA20: ; } } LA10: ; LOC43 = 0; LOC43 = closedir(d_172299); } LA8: ; } { NimStringDesc* p_172295; p_172295 = 0; { NimStringDesc* key_172313; NimStringDesc* val_172315; key_172313 = 0; val_172315 = 0; { NI h_172317; NI HEX3Atmp_172319; NI res_172321; h_172317 = 0; HEX3Atmp_172319 = 0; HEX3Atmp_172319 = ((*packages).data ? ((*packages).data->Sup.len-1) : -1); res_172321 = ((NI) 0); { while (1) { if (!(res_172321 <= HEX3Atmp_172319)) goto LA48; h_172317 = res_172321; { NimStringDesc* res_172325; if (!!((*packages).data->data[h_172317].Field0 == 0)) goto LA51; key_172313 = (*packages).data->data[h_172317].Field0; val_172315 = (*packages).data->data[h_172317].Field1; { if (!eqStrings(val_172315, ((NimStringDesc*) &TMP1660))) goto LA55; res_172325 = key_172313; } goto LA53; LA55: ; { NimStringDesc* LOC58; LOC58 = 0; LOC58 = rawNewString(key_172313->Sup.len + val_172315->Sup.len + 1); appendString(LOC58, key_172313); appendChar(LOC58, 45); appendString(LOC58, val_172315); res_172325 = LOC58; } LA53: ; p_172295 = res_172325; addnimblepath_172175(p_172295, info); } LA51: ; res_172321 += ((NI) 1); } LA48: ; } } } } }
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, addpathrec_175210)(NimStringDesc* dir, tlineinfo166527 info) { tstringtable123810* packages; NI pos; NI TMP1425; NU8 k_175246; NimStringDesc* p_175247; twin32finddata96815 f_175259; NI h_175261; NimStringDesc* LOC5; NimStringDesc* p_175257; NimStringDesc* key_175266; NimStringDesc* val_175268; NI h_175270; NI HEX3Atmp_175272; NI res_175274; nimfr("addPathRec", "babelcmd.nim") nimln(79, "babelcmd.nim"); packages = nstnewStringTable(((NU8) 2)); nimln(80, "babelcmd.nim"); nimln(80, "babelcmd.nim"); nimln(80, "babelcmd.nim"); TMP1425 = subInt(dir->Sup.len, 1); pos = (NI32)(TMP1425); nimln(81, "babelcmd.nim"); { nimln(81, "babelcmd.nim"); if ((NU)(pos) > (NU)(dir->Sup.len)) raiseIndexError(); if (!(((NU8)(dir->data[pos])) == ((NU8)(92)) || ((NU8)(dir->data[pos])) == ((NU8)(47)))) goto LA3; nimln(81, "babelcmd.nim"); pos = addInt(pos, 1); } LA3: ; k_175246 = 0; p_175247 = 0; memset((void*)&f_175259, 0, sizeof(f_175259)); nimln(1249, "os.nim"); nimln(1249, "os.nim"); LOC5 = 0; LOC5 = HEX2F_108677(dir, ((NimStringDesc*) &TMP1420)); h_175261 = findfirstfile_105816(LOC5, &f_175259); nimln(1250, "os.nim"); { nimln(1250, "os.nim"); nimln(1250, "os.nim"); if (!!((h_175261 == -1))) goto LA8; nimln(1251, "os.nim"); while (1) { NU8 k_175263; nimln(1252, "os.nim"); k_175263 = ((NU8) 0); nimln(1253, "os.nim"); { NIM_BOOL LOC13; NimStringDesc* LOC24; NimStringDesc* LOC25; nimln(1253, "os.nim"); nimln(1253, "os.nim"); LOC13 = 0; LOC13 = skipfinddata_105834(&f_175259); if (!!(LOC13)) goto LA14; nimln(1254, "os.nim"); { nimln(1254, "os.nim"); nimln(1254, "os.nim"); nimln(1254, "os.nim"); if (!!(((NI32)(f_175259.Dwfileattributes & ((NI32) 16)) == ((NI32) 0)))) goto LA18; nimln(1255, "os.nim"); k_175263 = ((NU8) 2); } LA18: ; nimln(1256, "os.nim"); { nimln(1256, "os.nim"); nimln(1256, "os.nim"); nimln(1256, "os.nim"); if (!!(((NI32)(f_175259.Dwfileattributes & ((NI32) 1024)) == ((NI32) 0)))) goto LA22; nimln(1257, "os.nim"); nimln(1257, "os.nim"); k_175263 = addInt(k_175263, 1); } LA22: ; nimln(1252, "os.nim"); k_175246 = k_175263; nimln(1258, "os.nim"); nimln(1258, "os.nim"); nimln(1258, "os.nim"); LOC24 = 0; LOC24 = HEX24_74991(((NI16*) (&f_175259.Cfilename[(0)- 0]))); LOC25 = 0; LOC25 = nosextractFilename(LOC24); p_175247 = HEX2F_108677(dir, LOC25); nimln(83, "babelcmd.nim"); { NIM_BOOL LOC28; nimln(83, "babelcmd.nim"); LOC28 = 0; nimln(83, "babelcmd.nim"); LOC28 = (k_175246 == ((NU8) 2)); if (!(LOC28)) goto LA29; nimln(83, "babelcmd.nim"); nimln(83, "babelcmd.nim"); if ((NU)(pos) > (NU)(p_175247->Sup.len)) raiseIndexError(); LOC28 = !(((NU8)(p_175247->data[pos]) == (NU8)(46))); LA29: ; if (!LOC28) goto LA30; nimln(84, "babelcmd.nim"); addpackage_175137(packages, p_175247); } LA30: ; } LA14: ; nimln(1259, "os.nim"); { NI32 LOC34; nimln(1259, "os.nim"); nimln(1259, "os.nim"); LOC34 = 0; LOC34 = Dl_96838(h_175261, &f_175259); if (!(LOC34 == ((NI32) 0))) goto LA35; nimln(1259, "os.nim"); goto LA10; } LA35: ; } LA10: ; nimln(1260, "os.nim"); Dl_97002(h_175261); } LA8: ; p_175257 = 0; key_175266 = 0; val_175268 = 0; h_175270 = 0; HEX3Atmp_175272 = 0; nimln(40, "strtabs.nim"); nimln(40, "strtabs.nim"); HEX3Atmp_175272 = ((*packages).Data->Sup.len-1); nimln(1458, "system.nim"); res_175274 = 0; nimln(1459, "system.nim"); while (1) { nimln(1459, "system.nim"); if (!(res_175274 <= HEX3Atmp_175272)) goto LA37; nimln(1458, "system.nim"); h_175270 = res_175274; nimln(41, "strtabs.nim"); { NimStringDesc* res_175276; nimln(41, "strtabs.nim"); nimln(41, "strtabs.nim"); if ((NU)(h_175270) >= (NU)((*packages).Data->Sup.len)) raiseIndexError(); if (!!((*packages).Data->data[h_175270].Field0 == 0)) goto LA40; nimln(42, "strtabs.nim"); if ((NU)(h_175270) >= (NU)((*packages).Data->Sup.len)) raiseIndexError(); key_175266 = (*packages).Data->data[h_175270].Field0; nimln(42, "strtabs.nim"); if ((NU)(h_175270) >= (NU)((*packages).Data->Sup.len)) raiseIndexError(); val_175268 = (*packages).Data->data[h_175270].Field1; nimln(58, "babelcmd.nim"); nimln(58, "babelcmd.nim"); { nimln(58, "babelcmd.nim"); if (!eqStrings(val_175268, ((NimStringDesc*) &TMP1417))) goto LA44; res_175276 = key_175266; } goto LA42; LA44: ; { NimStringDesc* LOC47; nimln(58, "babelcmd.nim"); LOC47 = 0; LOC47 = rawNewString(key_175266->Sup.len + val_175268->Sup.len + 1); appendString(LOC47, key_175266); appendChar(LOC47, 45); appendString(LOC47, val_175268); res_175276 = LOC47; } LA42: ; nimln(58, "babelcmd.nim"); p_175257 = res_175276; nimln(86, "babelcmd.nim"); addbabelpath_175163(p_175257, info); } LA40: ; nimln(1461, "system.nim"); res_175274 = addInt(res_175274, 1); } LA37: ; popFrame(); }