N_NIMCALL(void, write_141772)(tstream141629* s, NimStringDesc* x) { nimfr("write", "streams.nim") nimln(107, "streams.nim"); nimln(107, "streams.nim"); writedata_141748(s, ((void*) (x->data)), x->Sup.len); popFrame(); }
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(); }
NIM_EXTERNC N_NOINLINE(void, stdlib_sequtilsInit)(void) { nimfr("sequtils", "sequtils.nim") popFrame(); }
}N_NOINLINE(void, compilernimlexbaseInit)(void) { nimfr("nimlexbase", "nimlexbase.nim") popFrame(); }
N_NIMCALL(NIM_BOOL, hasnimfile_175174)(NimStringDesc* dir) { NIM_BOOL result; NU8 kind_175178; NimStringDesc* path_175179; twin32finddata96815 f_175190; NI h_175192; NimStringDesc* LOC1; nimfr("hasNimFile", "babelcmd.nim") result = 0; kind_175178 = 0; path_175179 = 0; memset((void*)&f_175190, 0, sizeof(f_175190)); nimln(1249, "os.nim"); nimln(1249, "os.nim"); LOC1 = 0; LOC1 = HEX2F_108677(dir, ((NimStringDesc*) &TMP1420)); h_175192 = findfirstfile_105816(LOC1, &f_175190); nimln(1250, "os.nim"); { nimln(1250, "os.nim"); nimln(1250, "os.nim"); if (!!((h_175192 == -1))) goto LA4; nimln(1251, "os.nim"); while (1) { NU8 k_175194; nimln(1252, "os.nim"); k_175194 = ((NU8) 0); nimln(1253, "os.nim"); { NIM_BOOL LOC9; NimStringDesc* LOC20; NimStringDesc* LOC21; nimln(1253, "os.nim"); nimln(1253, "os.nim"); LOC9 = 0; LOC9 = skipfinddata_105834(&f_175190); if (!!(LOC9)) goto LA10; nimln(1254, "os.nim"); { nimln(1254, "os.nim"); nimln(1254, "os.nim"); nimln(1254, "os.nim"); if (!!(((NI32)(f_175190.Dwfileattributes & ((NI32) 16)) == ((NI32) 0)))) goto LA14; nimln(1255, "os.nim"); k_175194 = ((NU8) 2); } LA14: ; nimln(1256, "os.nim"); { nimln(1256, "os.nim"); nimln(1256, "os.nim"); nimln(1256, "os.nim"); if (!!(((NI32)(f_175190.Dwfileattributes & ((NI32) 1024)) == ((NI32) 0)))) goto LA18; nimln(1257, "os.nim"); nimln(1257, "os.nim"); k_175194 = addInt(k_175194, 1); } LA18: ; nimln(1252, "os.nim"); kind_175178 = k_175194; nimln(1258, "os.nim"); nimln(1258, "os.nim"); nimln(1258, "os.nim"); LOC20 = 0; LOC20 = HEX24_74991(((NI16*) (&f_175190.Cfilename[(0)- 0]))); LOC21 = 0; LOC21 = nosextractFilename(LOC20); path_175179 = HEX2F_108677(dir, LOC21); nimln(69, "babelcmd.nim"); { NIM_BOOL LOC24; nimln(69, "babelcmd.nim"); LOC24 = 0; nimln(69, "babelcmd.nim"); LOC24 = (kind_175178 == ((NU8) 0)); if (!(LOC24)) goto LA25; nimln(69, "babelcmd.nim"); LOC24 = nsuEndsWith(path_175179, ((NimStringDesc*) &TMP1424)); LA25: ; if (!LOC24) goto LA26; nimln(70, "babelcmd.nim"); result = NIM_TRUE; nimln(71, "babelcmd.nim"); goto LA6; } LA26: ; } LA10: ; nimln(1259, "os.nim"); { NI32 LOC30; nimln(1259, "os.nim"); nimln(1259, "os.nim"); LOC30 = 0; LOC30 = Dl_96838(h_175192, &f_175190); if (!(LOC30 == ((NI32) 0))) goto LA31; nimln(1259, "os.nim"); goto LA6; } LA31: ; } LA6: ; nimln(1260, "os.nim"); Dl_97002(h_175192); } LA4: ; popFrame(); return result; }
N_NIMCALL(void, processcmdline_418207)(NU8 pass, NimStringDesc* cmd) { toptparser416607 p; NI argscount; nimfr("ProcessCmdLine", "service.nim") nimln(33, "service.nim"); chckNil((void*)&p); memset((void*)&p, 0, sizeof(p)); p.Sup.m_type = (&NTI416607); initoptparser_416619(cmd, &p); nimln(34, "service.nim"); argscount = 0; nimln(35, "service.nim"); while (1) { nimln(36, "service.nim"); nponext(&p); nimln(37, "service.nim"); switch (p.Kind) { case ((NU8) 0): { nimln(38, "service.nim"); goto LA1; } break; case ((NU8) 2): case ((NU8) 3): { NI bracketle; nimln(42, "service.nim"); bracketle = nsuFindChar(p.Key, 91, 0); nimln(43, "service.nim"); { NimStringDesc* key; NI TMP7044; NimStringDesc* val; NimStringDesc* LOC8; NI TMP7045; NimStringDesc* LOC9; nimln(702, "system.nim"); if (!(0 <= bracketle)) goto LA6; nimln(44, "service.nim"); nimln(44, "service.nim"); nimln(44, "service.nim"); TMP7044 = subInt(bracketle, 1); key = copyStrLast(p.Key, 0, (NI64)(TMP7044)); nimln(45, "service.nim"); nimln(45, "service.nim"); LOC8 = 0; nimln(45, "service.nim"); nimln(45, "service.nim"); TMP7045 = addInt(bracketle, 1); LOC9 = 0; LOC9 = copyStr(p.Key, (NI64)(TMP7045)); LOC8 = rawNewString(LOC9->Sup.len + p.Val->Sup.len + 1); appendString(LOC8, LOC9); appendChar(LOC8, 58); appendString(LOC8, p.Val); val = LOC8; nimln(46, "service.nim"); processswitch_151016(key, val, pass, gcmdlineinfo_137008); } goto LA4; LA6: ; { nimln(48, "service.nim"); processswitch_151016(p.Key, p.Val, pass, gcmdlineinfo_137008); } LA4: ; } break; case ((NU8) 1): { nimln(50, "service.nim"); { NimStringDesc* LOC16; nimln(50, "service.nim"); if (!(argscount == 0)) goto LA14; nimln(51, "service.nim"); LOC16 = 0; LOC16 = command_114203; command_114203 = copyStringRC1(p.Key); if (LOC16) nimGCunrefNoCycle(LOC16); } goto LA12; LA14: ; { nimln(53, "service.nim"); { NimStringDesc* LOC22; nimln(53, "service.nim"); if (!(pass == ((NU8) 0))) goto LA20; nimln(53, "service.nim"); commandargs_114222 = (TY9552*) incrSeq(&(commandargs_114222)->Sup, sizeof(NimStringDesc*)); LOC22 = 0; LOC22 = commandargs_114222->data[commandargs_114222->Sup.len-1]; commandargs_114222->data[commandargs_114222->Sup.len-1] = copyStringRC1(p.Key); if (LOC22) nimGCunrefNoCycle(LOC22); } LA20: ; nimln(54, "service.nim"); { nimln(54, "service.nim"); if (!(argscount == 1)) goto LA25; nimln(56, "service.nim"); asgnRefNoCycle((void**) &gprojectname_114197, nosUnixToNativePath(p.Key)); nimln(57, "service.nim"); asgnRefNoCycle((void**) &arguments_418205, npocmdLineRest(&p)); nimln(58, "service.nim"); goto LA1; } LA25: ; } LA12: ; nimln(59, "service.nim"); argscount = addInt(argscount, 1); } break; } } LA1: ; nimln(61, "service.nim"); { nimln(61, "service.nim"); if (!(pass == ((NU8) 1))) goto LA29; nimln(62, "service.nim"); { NIM_BOOL LOC33; TY148228 LOC37; nimln(62, "service.nim"); LOC33 = 0; nimln(731, "system.nim"); nimln(731, "system.nim"); LOC33 = !(((gglobaloptions_114109 &(1<<((((NU8) 13))&31)))!=0)); if (!(LOC33)) goto LA34; nimln(698, "system.nim"); nimln(698, "system.nim"); LOC33 = !(((arguments_418205) && (arguments_418205)->Sup.len == 0)); LA34: ; if (!LOC33) goto LA35; nimln(63, "service.nim"); memset((void*)LOC37, 0, sizeof(LOC37)); rawmessage_138121(((NU16) 57), LOC37, 0); } LA35: ; } LA29: ; popFrame(); }
N_NIMCALL(void, closebaselexer_162035)(tbaselexer162018* l) { nimfr("closeBaseLexer", "nimlexbase.nim") nimln(71, "nimlexbase.nim"); dealloc_4011(((void*) ((*l).Buf))); nimln(72, "nimlexbase.nim"); llstreamclose_161238((*l).Stream); popFrame(); }
N_NIMCALL(NIM_BOOL, readline_124004)(tstream123629* s, NimStringDesc** line) { NIM_BOOL result; nimfr("readLine", "streams.nim") result = 0; nimln(169, "streams.nim"); (*line) = setLengthStr((*line), 0); nimln(170, "streams.nim"); while (1) { NIM_CHAR c; nimln(171, "streams.nim"); c = readchar_123811(s); nimln(172, "streams.nim"); { nimln(172, "streams.nim"); if (!((NU8)(c) == (NU8)(13))) goto LA4; nimln(173, "streams.nim"); c = readchar_123811(s); nimln(174, "streams.nim"); goto LA1; } goto LA2; LA4: ; { nimln(175, "streams.nim"); if (!((NU8)(c) == (NU8)(10))) goto LA7; nimln(175, "streams.nim"); goto LA1; } goto LA2; LA7: ; { nimln(176, "streams.nim"); if (!((NU8)(c) == (NU8)(0))) goto LA10; nimln(177, "streams.nim"); { nimln(177, "streams.nim"); nimln(177, "streams.nim"); if (!(0 < (*line)->Sup.len)) goto LA14; nimln(177, "streams.nim"); goto LA1; } goto LA12; LA14: ; { nimln(178, "streams.nim"); nimln(178, "streams.nim"); result = NIM_FALSE; goto BeforeRet; } LA12: ; } goto LA2; LA10: ; LA2: ; nimln(179, "streams.nim"); (*line) = addChar((*line), c); } LA1: ; nimln(180, "streams.nim"); result = NIM_TRUE; BeforeRet: ; popFrame(); return result; }
N_NIMCALL(NI, cmpignorestyle_170036)(NCSTRING a, NCSTRING b, NI blen) { NI result; NI i; NI j; nimfr("cmpIgnoreStyle", "idents.nim") result = 0; nimln(32, "idents.nim"); { if (!firstchariscs_170025) goto LA3; nimln(33, "idents.nim"); { nimln(33, "idents.nim"); nimln(33, "idents.nim"); if (!!(((NU8)(a[0]) == (NU8)(b[0])))) goto LA7; nimln(33, "idents.nim"); nimln(33, "idents.nim"); result = 1; goto BeforeRet; } LA7: ; } LA3: ; nimln(34, "idents.nim"); i = 0; nimln(35, "idents.nim"); j = 0; nimln(36, "idents.nim"); result = 1; nimln(37, "idents.nim"); while (1) { NIM_CHAR aa; NIM_CHAR bb; NI TMP972; nimln(37, "idents.nim"); if (!(j < blen)) goto LA9; nimln(38, "idents.nim"); while (1) { nimln(38, "idents.nim"); if (!((NU8)(a[i]) == (NU8)(95))) goto LA10; nimln(38, "idents.nim"); i = addInt(i, 1); } LA10: ; nimln(39, "idents.nim"); while (1) { nimln(39, "idents.nim"); if (!((NU8)(b[j]) == (NU8)(95))) goto LA11; nimln(39, "idents.nim"); j = addInt(j, 1); } LA11: ; nimln(41, "idents.nim"); aa = a[i]; nimln(42, "idents.nim"); bb = b[j]; nimln(43, "idents.nim"); { NIM_BOOL LOC14; NI TMP970; nimln(43, "idents.nim"); LOC14 = 0; nimln(43, "idents.nim"); LOC14 = ((NU8)(65) <= (NU8)(aa)); if (!(LOC14)) goto LA15; nimln(43, "idents.nim"); LOC14 = ((NU8)(aa) <= (NU8)(90)); LA15: ; if (!LOC14) goto LA16; nimln(43, "idents.nim"); nimln(43, "idents.nim"); nimln(43, "idents.nim"); nimln(43, "idents.nim"); TMP970 = addInt(((NI) (((NU8)(aa)))), 32); aa = ((NIM_CHAR) (((NI)chckRange((NI32)(TMP970), 0, 255)))); } LA16: ; nimln(44, "idents.nim"); { NIM_BOOL LOC20; NI TMP971; nimln(44, "idents.nim"); LOC20 = 0; nimln(44, "idents.nim"); LOC20 = ((NU8)(65) <= (NU8)(bb)); if (!(LOC20)) goto LA21; nimln(44, "idents.nim"); LOC20 = ((NU8)(bb) <= (NU8)(90)); LA21: ; if (!LOC20) goto LA22; nimln(44, "idents.nim"); nimln(44, "idents.nim"); nimln(44, "idents.nim"); nimln(44, "idents.nim"); TMP971 = addInt(((NI) (((NU8)(bb)))), 32); bb = ((NIM_CHAR) (((NI)chckRange((NI32)(TMP971), 0, 255)))); } LA22: ; nimln(45, "idents.nim"); nimln(45, "idents.nim"); nimln(45, "idents.nim"); nimln(45, "idents.nim"); TMP972 = subInt(((NI) (((NU8)(aa)))), ((NI) (((NU8)(bb))))); result = (NI32)(TMP972); nimln(46, "idents.nim"); { NIM_BOOL LOC26; nimln(46, "idents.nim"); LOC26 = 0; nimln(46, "idents.nim"); nimln(46, "idents.nim"); LOC26 = !((result == 0)); if (LOC26) goto LA27; nimln(46, "idents.nim"); LOC26 = ((NU8)(aa) == (NU8)(0)); LA27: ; if (!LOC26) goto LA28; nimln(46, "idents.nim"); goto LA9; } LA28: ; nimln(47, "idents.nim"); i = addInt(i, 1); nimln(48, "idents.nim"); j = addInt(j, 1); } LA9: ; nimln(49, "idents.nim"); { nimln(49, "idents.nim"); if (!(result == 0)) goto LA32; nimln(50, "idents.nim"); { nimln(50, "idents.nim"); nimln(50, "idents.nim"); if (!!(((NU8)(a[i]) == (NU8)(0)))) goto LA36; nimln(50, "idents.nim"); result = 1; } LA36: ; } LA32: ; BeforeRet: ; popFrame(); return result; }
N_NIMCALL(void, setposition_123713)(tstream123629* s, tstream123629* unused, NI pos) { nimfr("setPosition", "streams.nim") nimln(66, "streams.nim"); (*s).Setpositionimpl(s, pos); popFrame(); }
N_NIMCALL(void, writedata_123757)(tstream123629* s, tstream123629* unused, void* buffer, NI buflen) { nimfr("writeData", "streams.nim") nimln(94, "streams.nim"); (*s).Writedataimpl(s, buffer, buflen); popFrame(); }
N_NIMCALL(void, close_123688)(tstream123629* s, tstream123629* unused) { nimfr("close", "streams.nim") nimln(48, "streams.nim"); (*s).Closeimpl(s); popFrame(); }
static N_INLINE(void, rtladdzct_46202)(tcell41290* c) { nimfr("rtlAddZCT", "gc.nim") nimln(199, "gc.nim"); addzct_44618(&gch_43244.Zct, c); popFrame(); }
N_NOINLINE(void, stdlibstreamsInit)(void) { nimfr("streams", "streams.nim") popFrame(); }
N_NOINLINE(void, stdlibhashesInit)(void) { nimfr("hashes", "hashes.nim") popFrame(); }
N_NIMCALL(NI, cmpexact_170186)(NCSTRING a, NCSTRING b, NI blen) { NI result; NI i; NI j; nimfr("cmpExact", "idents.nim") result = 0; nimln(53, "idents.nim"); i = 0; nimln(54, "idents.nim"); j = 0; nimln(55, "idents.nim"); result = 1; nimln(56, "idents.nim"); while (1) { NIM_CHAR aa; NIM_CHAR bb; NI TMP973; nimln(56, "idents.nim"); if (!(j < blen)) goto LA1; nimln(57, "idents.nim"); aa = a[i]; nimln(58, "idents.nim"); bb = b[j]; nimln(59, "idents.nim"); nimln(59, "idents.nim"); nimln(59, "idents.nim"); nimln(59, "idents.nim"); TMP973 = subInt(((NI) (((NU8)(aa)))), ((NI) (((NU8)(bb))))); result = (NI32)(TMP973); nimln(60, "idents.nim"); { NIM_BOOL LOC4; nimln(60, "idents.nim"); LOC4 = 0; nimln(60, "idents.nim"); nimln(60, "idents.nim"); LOC4 = !((result == 0)); if (LOC4) goto LA5; nimln(60, "idents.nim"); LOC4 = ((NU8)(aa) == (NU8)(0)); LA5: ; if (!LOC4) goto LA6; nimln(60, "idents.nim"); goto LA1; } LA6: ; nimln(61, "idents.nim"); i = addInt(i, 1); nimln(62, "idents.nim"); j = addInt(j, 1); } LA1: ; nimln(63, "idents.nim"); { nimln(63, "idents.nim"); if (!(result == 0)) goto LA10; nimln(64, "idents.nim"); { nimln(64, "idents.nim"); nimln(64, "idents.nim"); if (!!(((NU8)(a[i]) == (NU8)(0)))) goto LA14; nimln(64, "idents.nim"); result = 1; } LA14: ; } LA10: ; popFrame(); return result; }
static N_INLINE(void, rtladdzct_43802)(tcell38848* c) { nimfr("rtlAddZCT", "gc.nim") nimln(197, "gc.nim"); addzct_42215(&gch_40844.Zct, c); popFrame(); }
static N_INLINE(void, rtladdzct_46602)(tcell41688* c) { nimfr("rtlAddZCT", "gc.nim") nimln(199, "gc.nim"); addzct_45018(&gch_43644.Zct, c); popFrame(); }
N_NIMCALL(void, serve_418277)(TY418279 action) { NimStringDesc* typ; nimfr("serve", "service.nim") nimln(74, "service.nim"); typ = getconfigvar_114292(((NimStringDesc*) &TMP7046)); nimln(75, "service.nim"); if (eqStrings(typ, ((NimStringDesc*) &TMP7047))) goto LA1; if (eqStrings(typ, ((NimStringDesc*) &TMP7048))) goto LA2; if (eqStrings(typ, ((NimStringDesc*) &TMP7039))) goto LA2; goto LA3; LA1: ; { nimln(77, "service.nim"); while (1) { NimStringDesc* line; NimStringDesc* LOC11; nimln(78, "service.nim"); nimln(78, "service.nim"); line = readline_9480(stdin); nimln(79, "service.nim"); { nimln(79, "service.nim"); if (!eqStrings(line, ((NimStringDesc*) &TMP7049))) goto LA9; nimln(79, "service.nim"); exit(0); } LA9: ; nimln(67, "service.nim"); LOC11 = 0; LOC11 = curcaascmd_418203; curcaascmd_418203 = copyStringRC1(line); if (LOC11) nimGCunrefNoCycle(LOC11); nimln(68, "service.nim"); processcmdline_418207(((NU8) 1), line); nimln(69, "service.nim"); action(); nimln(70, "service.nim"); gdirtybufferidx_114124 = ((NI32) 0); nimln(71, "service.nim"); gdirtyoriginalidx_114125 = ((NI32) 0); nimln(72, "service.nim"); gerrorcounter_137071 = 0; nimln(81, "service.nim"); printf("%s\012", (((NimStringDesc*) &TMP7039))->data); nimln(82, "service.nim"); fflush(stdout); } } goto LA4; LA2: ; { tsocketimpl124605* server; NimStringDesc* p; NU16 port; NimStringDesc* LOC19; NimStringDesc* inp; nimln(86, "service.nim"); server = socket_125402(((NU8) 2), ((NU8) 1), ((NU8) 6), NIM_TRUE); nimln(87, "service.nim"); p = getconfigvar_114292(((NimStringDesc*) &TMP7054)); nimln(88, "service.nim"); nimln(88, "service.nim"); { NI LOC17; nimln(706, "system.nim"); nimln(88, "service.nim"); if (!(0 < p->Sup.len)) goto LA15; nimln(88, "service.nim"); LOC17 = 0; LOC17 = nsuParseInt(p); port = ((NU16) (LOC17)); } goto LA13; LA15: ; { port = ((NU16) 6000); } LA13: ; nimln(89, "service.nim"); nimln(89, "service.nim"); LOC19 = 0; LOC19 = getconfigvar_114292(((NimStringDesc*) &TMP7055)); bindaddr_126534(server, port, LOC19); nimln(90, "service.nim"); inp = copyString(((NimStringDesc*) &TMP7039)); nimln(91, "service.nim"); listen_126405(server, SOMAXCONN); nimln(92, "service.nim"); if (stdoutsocket_137081) nimGCunrefNoCycle(stdoutsocket_137081); stdoutsocket_137081 = (tsocketimpl124605*) newObjRC1((&NTI124607), sizeof(tsocketimpl124605)); nimln(93, "service.nim"); while (1) { NimStringDesc* LOC21; nimln(94, "service.nim"); accept_128201(server, &stdoutsocket_137081); nimln(95, "service.nim"); readline_132630(stdoutsocket_137081, &inp, -1); nimln(67, "service.nim"); LOC21 = 0; LOC21 = curcaascmd_418203; curcaascmd_418203 = copyStringRC1(inp); if (LOC21) nimGCunrefNoCycle(LOC21); nimln(68, "service.nim"); processcmdline_418207(((NU8) 1), inp); nimln(69, "service.nim"); action(); nimln(70, "service.nim"); gdirtybufferidx_114124 = ((NI32) 0); nimln(71, "service.nim"); gdirtyoriginalidx_114125 = ((NI32) 0); nimln(72, "service.nim"); gerrorcounter_137071 = 0; nimln(97, "service.nim"); send_134204(stdoutsocket_137081, ((NimStringDesc*) &TMP7080)); nimln(98, "service.nim"); close_128258(stdoutsocket_137081); } } goto LA4; LA3: ; { nimln(102, "service.nim"); printf("%s%s\012", (((NimStringDesc*) &TMP7081))->data, (typ)->data); nimln(103, "service.nim"); exit(1); } LA4: ; popFrame(); }N_NOINLINE(void, compilerserviceInit)(void) {
N_NIMCALL(tident170019*, getident_170250)(NCSTRING identifier, NI length, NI h) { tident170019* result; NI idx; tident170019* last; NI id; NI i_170429; NI HEX3Atmp_170448; NI TMP977; NI res_170450; nimfr("getIdent", "idents.nim") result = 0; nimln(69, "idents.nim"); nimln(69, "idents.nim"); idx = (NI)(h & 8191); nimln(70, "idents.nim"); result = buckets_170033[(idx)- 0]; nimln(71, "idents.nim"); last = NIM_NIL; nimln(72, "idents.nim"); id = 0; nimln(73, "idents.nim"); while (1) { nimln(73, "idents.nim"); nimln(73, "idents.nim"); if (!!((result == NIM_NIL))) goto LA1; nimln(74, "idents.nim"); { NI LOC4; nimln(74, "idents.nim"); nimln(74, "idents.nim"); LOC4 = 0; LOC4 = cmpexact_170186((*result).S->data, identifier, length); if (!(LOC4 == 0)) goto LA5; nimln(75, "idents.nim"); { nimln(75, "idents.nim"); nimln(75, "idents.nim"); if (!!((last == NIM_NIL))) goto LA9; nimln(77, "idents.nim"); asgnRefNoCycle((void**) &(*last).Next, (*result).Next); nimln(78, "idents.nim"); asgnRefNoCycle((void**) &(*result).Next, buckets_170033[(idx)- 0]); nimln(79, "idents.nim"); asgnRefNoCycle((void**) &buckets_170033[(idx)- 0], result); } LA9: ; nimln(80, "idents.nim"); goto BeforeRet; } goto LA2; LA5: ; { NI LOC12; nimln(81, "idents.nim"); nimln(81, "idents.nim"); LOC12 = 0; LOC12 = cmpignorestyle_170036((*result).S->data, identifier, length); if (!(LOC12 == 0)) goto LA13; nimln(82, "idents.nim"); { NIM_BOOL LOC17; nimln(82, "idents.nim"); nimln(82, "idents.nim"); LOC17 = 0; nimln(82, "idents.nim"); LOC17 = (id == 0); if (LOC17) goto LA18; nimln(82, "idents.nim"); LOC17 = (id == (*result).Sup.Id); LA18: ; if (!!(LOC17)) goto LA19; nimln(82, "idents.nim"); failedassertimpl_81621(((NimStringDesc*) &TMP974)); } LA19: ; nimln(83, "idents.nim"); id = (*result).Sup.Id; } goto LA2; LA13: ; LA2: ; nimln(84, "idents.nim"); last = result; nimln(85, "idents.nim"); result = (*result).Next; } LA1: ; nimln(86, "idents.nim"); result = (tident170019*) newObj((&NTI170017), sizeof(tident170019)); (*result).Sup.Sup.m_type = (&NTI170019); nimln(87, "idents.nim"); (*result).H = h; nimln(88, "idents.nim"); nimln(88, "idents.nim"); asgnRefNoCycle((void**) &(*result).S, mnewString(length)); i_170429 = 0; HEX3Atmp_170448 = 0; nimln(89, "idents.nim"); nimln(89, "idents.nim"); TMP977 = subInt(length, 1); HEX3Atmp_170448 = (NI32)(TMP977); nimln(1451, "system.nim"); res_170450 = 0; nimln(1452, "system.nim"); while (1) { nimln(1452, "system.nim"); if (!(res_170450 <= HEX3Atmp_170448)) goto LA21; nimln(1451, "system.nim"); i_170429 = res_170450; nimln(89, "idents.nim"); if ((NU)(i_170429) > (NU)((*result).S->Sup.len)) raiseIndexError(); (*result).S->data[i_170429] = identifier[i_170429]; nimln(1454, "system.nim"); res_170450 = addInt(res_170450, 1); } LA21: ; nimln(90, "idents.nim"); asgnRefNoCycle((void**) &(*result).Next, buckets_170033[(idx)- 0]); nimln(91, "idents.nim"); asgnRefNoCycle((void**) &buckets_170033[(idx)- 0], result); nimln(92, "idents.nim"); { nimln(92, "idents.nim"); if (!(id == 0)) goto LA24; nimln(93, "idents.nim"); wordcounter_170248 = addInt(wordcounter_170248, 1); nimln(94, "idents.nim"); nimln(94, "idents.nim"); if (wordcounter_170248 == (-2147483647 -1)) raiseOverflow(); (*result).Sup.Id = ((NI32)-(wordcounter_170248)); } goto LA22; LA24: ; { nimln(96, "idents.nim"); (*result).Sup.Id = id; } LA22: ; BeforeRet: ; popFrame(); return result; }
N_NIMCALL(void, fillbuffer_162072)(tbaselexer162018* l) { NI charsread; NI tocopy; NI s; NI oldbuflen; NI TMP1615; NI TMP1616; NI TMP1620; NI TMP1621; NI LOC13; NI TMP1622; NI TMP1623; nimfr("FillBuffer", "nimlexbase.nim") charsread = 0; tocopy = 0; s = 0; oldbuflen = 0; nimln(82, "nimlexbase.nim"); { nimln(82, "nimlexbase.nim"); nimln(82, "nimlexbase.nim"); if (!!(((*l).Sentinel < (*l).Buflen))) goto LA3; nimln(82, "nimlexbase.nim"); hiddenraiseassert_76017(((NimStringDesc*) &TMP1614)); } LA3: ; nimln(83, "nimlexbase.nim"); nimln(83, "nimlexbase.nim"); nimln(83, "nimlexbase.nim"); TMP1615 = subInt((*l).Buflen, (*l).Sentinel); TMP1616 = subInt((NI64)(TMP1615), 1); tocopy = (NI64)(TMP1616); nimln(84, "nimlexbase.nim"); { nimln(84, "nimlexbase.nim"); nimln(84, "nimlexbase.nim"); if (!!((0 <= tocopy))) goto LA7; nimln(84, "nimlexbase.nim"); hiddenraiseassert_76017(((NimStringDesc*) &TMP1617)); } LA7: ; nimln(85, "nimlexbase.nim"); { NI TMP1618; NI TMP1619; nimln(706, "system.nim"); if (!(0 < tocopy)) goto LA11; nimln(86, "nimlexbase.nim"); nimln(86, "nimlexbase.nim"); TMP1618 = addInt((*l).Sentinel, 1); nimln(86, "nimlexbase.nim"); TMP1619 = mulInt(tocopy, 1); memmove(((void*) ((*l).Buf)), ((void*) (&(*l).Buf[(NI64)(TMP1618)])), (NI64)(TMP1619)); } LA11: ; nimln(88, "nimlexbase.nim"); nimln(89, "nimlexbase.nim"); nimln(88, "nimlexbase.nim"); nimln(89, "nimlexbase.nim"); nimln(89, "nimlexbase.nim"); TMP1620 = addInt((*l).Sentinel, 1); TMP1621 = mulInt((NI64)(TMP1620), 1); LOC13 = 0; LOC13 = llstreamread_161242((*l).Stream, ((void*) (&(*l).Buf[tocopy])), (NI64)(TMP1621)); TMP1622 = divInt(LOC13, 1); charsread = (NI64)(TMP1622); nimln(90, "nimlexbase.nim"); nimln(90, "nimlexbase.nim"); TMP1623 = addInt(tocopy, charsread); s = (NI64)(TMP1623); nimln(91, "nimlexbase.nim"); { NI TMP1624; nimln(91, "nimlexbase.nim"); nimln(91, "nimlexbase.nim"); TMP1624 = addInt((*l).Sentinel, 1); if (!(charsread < (NI64)(TMP1624))) goto LA16; nimln(92, "nimlexbase.nim"); (*l).Buf[s] = 0; nimln(93, "nimlexbase.nim"); (*l).Sentinel = s; } goto LA14; LA16: ; { nimln(96, "nimlexbase.nim"); s = subInt(s, 1); nimln(97, "nimlexbase.nim"); while (1) { nimln(98, "nimlexbase.nim"); { nimln(98, "nimlexbase.nim"); nimln(98, "nimlexbase.nim"); if (!!((s < (*l).Buflen))) goto LA22; nimln(98, "nimlexbase.nim"); hiddenraiseassert_76017(((NimStringDesc*) &TMP1625)); } LA22: ; nimln(99, "nimlexbase.nim"); while (1) { NIM_BOOL LOC25; nimln(99, "nimlexbase.nim"); LOC25 = 0; nimln(702, "system.nim"); LOC25 = (0 <= s); if (!(LOC25)) goto LA26; nimln(99, "nimlexbase.nim"); nimln(730, "system.nim"); LOC25 = !((((NU8)((*l).Buf[s])) == ((NU8)(13)) || ((NU8)((*l).Buf[s])) == ((NU8)(10)))); LA26: ; if (!LOC25) goto LA24; nimln(99, "nimlexbase.nim"); s = subInt(s, 1); } LA24: ; nimln(100, "nimlexbase.nim"); { nimln(702, "system.nim"); if (!(0 <= s)) goto LA29; nimln(102, "nimlexbase.nim"); (*l).Sentinel = s; nimln(103, "nimlexbase.nim"); goto LA19; } goto LA27; LA29: ; { NI TMP1626; NI TMP1627; void* LOC32; NI TMP1630; NI LOC37; NI TMP1631; NI TMP1634; nimln(107, "nimlexbase.nim"); oldbuflen = (*l).Buflen; nimln(108, "nimlexbase.nim"); nimln(108, "nimlexbase.nim"); TMP1626 = mulInt((*l).Buflen, 2); (*l).Buflen = (NI64)(TMP1626); nimln(109, "nimlexbase.nim"); nimln(109, "nimlexbase.nim"); nimln(109, "nimlexbase.nim"); TMP1627 = mulInt((*l).Buflen, 1); LOC32 = 0; LOC32 = realloc_4007(((void*) ((*l).Buf)), (NI64)(TMP1627)); (*l).Buf = ((NCSTRING) (LOC32)); nimln(110, "nimlexbase.nim"); { NI TMP1628; nimln(110, "nimlexbase.nim"); nimln(110, "nimlexbase.nim"); nimln(110, "nimlexbase.nim"); TMP1628 = subInt((*l).Buflen, oldbuflen); if (!!(((NI64)(TMP1628) == oldbuflen))) goto LA35; nimln(110, "nimlexbase.nim"); hiddenraiseassert_76017(((NimStringDesc*) &TMP1629)); } LA35: ; nimln(111, "nimlexbase.nim"); nimln(112, "nimlexbase.nim"); nimln(111, "nimlexbase.nim"); nimln(112, "nimlexbase.nim"); TMP1630 = mulInt(oldbuflen, 1); LOC37 = 0; LOC37 = llstreamread_161242((*l).Stream, ((void*) (&(*l).Buf[oldbuflen])), (NI64)(TMP1630)); TMP1631 = divInt(LOC37, 1); charsread = (NI64)(TMP1631); nimln(113, "nimlexbase.nim"); { NI TMP1632; NI TMP1633; nimln(113, "nimlexbase.nim"); if (!(charsread < oldbuflen)) goto LA40; nimln(114, "nimlexbase.nim"); nimln(114, "nimlexbase.nim"); TMP1632 = addInt(oldbuflen, charsread); (*l).Buf[(NI64)(TMP1632)] = 0; nimln(115, "nimlexbase.nim"); nimln(115, "nimlexbase.nim"); TMP1633 = addInt(oldbuflen, charsread); (*l).Sentinel = (NI64)(TMP1633); nimln(116, "nimlexbase.nim"); goto LA19; } LA40: ; nimln(117, "nimlexbase.nim"); nimln(117, "nimlexbase.nim"); TMP1634 = subInt((*l).Buflen, 1); s = (NI64)(TMP1634); } LA27: ; } LA19: ; } LA14: ; popFrame(); }
N_NIMCALL(NimStringDesc*, nstDollar)(tstringtable111610* t) { NimStringDesc* result; nimfr("$", "strtabs.nim") result = 0; nimln(221, "strtabs.nim"); { NI LOC3; nimln(221, "strtabs.nim"); nimln(221, "strtabs.nim"); LOC3 = 0; LOC3 = nstlen(t); if (!(LOC3 == 0)) goto LA4; nimln(222, "strtabs.nim"); result = copyString(((NimStringDesc*) &TMP308)); } goto LA1; LA4: ; { NimStringDesc* key_112194; NimStringDesc* val_112195; NI h_112198; NI HEX3Atmp_112200; NI res_112202; nimln(224, "strtabs.nim"); result = copyString(((NimStringDesc*) &TMP309)); key_112194 = 0; val_112195 = 0; h_112198 = 0; HEX3Atmp_112200 = 0; nimln(40, "strtabs.nim"); nimln(40, "strtabs.nim"); HEX3Atmp_112200 = ((*t).Data->Sup.len-1); nimln(1308, "system.nim"); res_112202 = 0; nimln(1309, "system.nim"); while (1) { nimln(1309, "system.nim"); if (!(res_112202 <= HEX3Atmp_112200)) goto LA7; nimln(1308, "system.nim"); h_112198 = res_112202; nimln(41, "strtabs.nim"); { nimln(41, "strtabs.nim"); nimln(41, "strtabs.nim"); if ((NU)(h_112198) >= (NU)((*t).Data->Sup.len)) raiseIndexError(); if (!!((*t).Data->data[h_112198].Field0 == 0)) goto LA10; nimln(42, "strtabs.nim"); if ((NU)(h_112198) >= (NU)((*t).Data->Sup.len)) raiseIndexError(); key_112194 = (*t).Data->data[h_112198].Field0; nimln(42, "strtabs.nim"); if ((NU)(h_112198) >= (NU)((*t).Data->Sup.len)) raiseIndexError(); val_112195 = (*t).Data->data[h_112198].Field1; nimln(226, "strtabs.nim"); { nimln(706, "system.nim"); nimln(226, "strtabs.nim"); if (!(1 < result->Sup.len)) goto LA14; nimln(226, "strtabs.nim"); result = resizeString(result, 2); appendString(result, ((NimStringDesc*) &TMP310)); } LA14: ; nimln(227, "strtabs.nim"); result = resizeString(result, key_112194->Sup.len + 0); appendString(result, key_112194); nimln(228, "strtabs.nim"); result = resizeString(result, 2); appendString(result, ((NimStringDesc*) &TMP311)); nimln(229, "strtabs.nim"); result = resizeString(result, val_112195->Sup.len + 0); appendString(result, val_112195); } LA10: ; nimln(1311, "system.nim"); res_112202 = addInt(res_112202, 1); } LA7: ; nimln(230, "strtabs.nim"); result = resizeString(result, 1); appendString(result, ((NimStringDesc*) &TMP312)); } LA1: ; popFrame(); return result; }N_NOINLINE(void, purestrtabsInit)(void) {
N_NIMCALL(NIM_BOOL, HEX3CHEX2E_175054)(NimStringDesc* a, NimStringDesc* b) { NIM_BOOL result; NI i; NI j; NI vera; NI verb; nimfr("<.", "babelcmd.nim") result = 0; nimln(28, "babelcmd.nim"); { nimln(28, "babelcmd.nim"); if (!eqStrings(a, ((NimStringDesc*) &TMP1417))) goto LA3; nimln(28, "babelcmd.nim"); nimln(28, "babelcmd.nim"); result = NIM_FALSE; goto BeforeRet; } LA3: ; nimln(29, "babelcmd.nim"); i = 0; nimln(30, "babelcmd.nim"); j = 0; nimln(31, "babelcmd.nim"); vera = 0; nimln(32, "babelcmd.nim"); verb = 0; nimln(33, "babelcmd.nim"); while (1) { NI ii; NI jj; nimln(34, "babelcmd.nim"); ii = npuParseInt(a, &vera, i); nimln(35, "babelcmd.nim"); jj = npuParseInt(b, &verb, j); nimln(37, "babelcmd.nim"); { NIM_BOOL LOC8; nimln(37, "babelcmd.nim"); LOC8 = 0; nimln(37, "babelcmd.nim"); LOC8 = (ii <= 0); if (LOC8) goto LA9; nimln(37, "babelcmd.nim"); LOC8 = (jj <= 0); LA9: ; if (!LOC8) goto LA10; nimln(37, "babelcmd.nim"); nimln(37, "babelcmd.nim"); nimln(37, "babelcmd.nim"); result = (0 < jj); goto BeforeRet; } LA10: ; nimln(38, "babelcmd.nim"); { nimln(38, "babelcmd.nim"); if (!(vera < verb)) goto LA14; nimln(38, "babelcmd.nim"); nimln(38, "babelcmd.nim"); result = NIM_TRUE; goto BeforeRet; } goto LA12; LA14: ; { nimln(39, "babelcmd.nim"); if (!(verb < vera)) goto LA17; nimln(39, "babelcmd.nim"); nimln(39, "babelcmd.nim"); result = NIM_FALSE; goto BeforeRet; } goto LA12; LA17: ; LA12: ; nimln(41, "babelcmd.nim"); i = addInt(i, ii); nimln(42, "babelcmd.nim"); j = addInt(j, jj); nimln(43, "babelcmd.nim"); { nimln(43, "babelcmd.nim"); if ((NU)(i) > (NU)(a->Sup.len)) raiseIndexError(); if (!((NU8)(a->data[i]) == (NU8)(46))) goto LA21; nimln(43, "babelcmd.nim"); i = addInt(i, 1); } LA21: ; nimln(44, "babelcmd.nim"); { nimln(44, "babelcmd.nim"); if ((NU)(j) > (NU)(b->Sup.len)) raiseIndexError(); if (!((NU8)(b->data[j]) == (NU8)(46))) goto LA25; nimln(44, "babelcmd.nim"); j = addInt(j, 1); } LA25: ; } BeforeRet: ; popFrame(); return result; }
}N_NOINLINE(void, purestrtabsInit)(void) { nimfr("strtabs", "strtabs.nim") popFrame(); }
N_NIMCALL(void, addpathwithnimfiles_175170)(NimStringDesc* p, tlineinfo166527 info) { nimfr("addPathWithNimFiles", "babelcmd.nim") nimln(72, "babelcmd.nim"); { NIM_BOOL LOC3; nimln(72, "babelcmd.nim"); LOC3 = 0; LOC3 = hasnimfile_175174(p); if (!LOC3) goto LA4; nimln(73, "babelcmd.nim"); addbabelpath_175163(p, info); } goto LA1; LA4: ; { NU8 kind_175198; NimStringDesc* p2_175199; twin32finddata96815 f_175201; NI h_175203; NimStringDesc* LOC7; kind_175198 = 0; p2_175199 = 0; memset((void*)&f_175201, 0, sizeof(f_175201)); nimln(1249, "os.nim"); nimln(1249, "os.nim"); LOC7 = 0; LOC7 = HEX2F_108677(p, ((NimStringDesc*) &TMP1420)); h_175203 = findfirstfile_105816(LOC7, &f_175201); nimln(1250, "os.nim"); { nimln(1250, "os.nim"); nimln(1250, "os.nim"); if (!!((h_175203 == -1))) goto LA10; nimln(1251, "os.nim"); while (1) { NU8 k_175205; nimln(1252, "os.nim"); k_175205 = ((NU8) 0); nimln(1253, "os.nim"); { NIM_BOOL LOC15; NimStringDesc* LOC26; NimStringDesc* LOC27; nimln(1253, "os.nim"); nimln(1253, "os.nim"); LOC15 = 0; LOC15 = skipfinddata_105834(&f_175201); if (!!(LOC15)) goto LA16; nimln(1254, "os.nim"); { nimln(1254, "os.nim"); nimln(1254, "os.nim"); nimln(1254, "os.nim"); if (!!(((NI32)(f_175201.Dwfileattributes & ((NI32) 16)) == ((NI32) 0)))) goto LA20; nimln(1255, "os.nim"); k_175205 = ((NU8) 2); } LA20: ; nimln(1256, "os.nim"); { nimln(1256, "os.nim"); nimln(1256, "os.nim"); nimln(1256, "os.nim"); if (!!(((NI32)(f_175201.Dwfileattributes & ((NI32) 1024)) == ((NI32) 0)))) goto LA24; nimln(1257, "os.nim"); nimln(1257, "os.nim"); k_175205 = addInt(k_175205, 1); } LA24: ; nimln(1252, "os.nim"); kind_175198 = k_175205; nimln(1258, "os.nim"); nimln(1258, "os.nim"); nimln(1258, "os.nim"); LOC26 = 0; LOC26 = HEX24_74991(((NI16*) (&f_175201.Cfilename[(0)- 0]))); LOC27 = 0; LOC27 = nosextractFilename(LOC26); p2_175199 = HEX2F_108677(p, LOC27); nimln(76, "babelcmd.nim"); { NIM_BOOL LOC30; nimln(76, "babelcmd.nim"); LOC30 = 0; LOC30 = hasnimfile_175174(p2_175199); if (!LOC30) goto LA31; nimln(76, "babelcmd.nim"); addbabelpath_175163(p2_175199, info); } LA31: ; } LA16: ; nimln(1259, "os.nim"); { NI32 LOC35; nimln(1259, "os.nim"); nimln(1259, "os.nim"); LOC35 = 0; LOC35 = Dl_96838(h_175203, &f_175201); if (!(LOC35 == ((NI32) 0))) goto LA36; nimln(1259, "os.nim"); goto LA12; } LA36: ; } LA12: ; nimln(1260, "os.nim"); Dl_97002(h_175203); } LA10: ; } LA1: ; popFrame(); }
N_NIMCALL(NimStringDesc*, nstFormat)(NimStringDesc* f, tstringtable111610* t, NU8 flags) { NimStringDesc* result; NI i; nimfr("%", "strtabs.nim") result = 0; nimln(194, "strtabs.nim"); result = copyString(((NimStringDesc*) &TMP284)); 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 TMP300; 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"); TMP300 = addInt(i, 1); if ((NU)((NI32)(TMP300)) > (NU)(f->Sup.len)) raiseIndexError(); switch (((NU8)(f->data[(NI32)(TMP300)]))) { case 36: { nimln(200, "strtabs.nim"); result = addChar(result, 36); nimln(201, "strtabs.nim"); i = addInt(i, 2); } break; case 123: { NI j; NI TMP301; NI TMP302; NI TMP303; NimStringDesc* LOC11; NimStringDesc* LOC12; NI TMP304; nimln(203, "strtabs.nim"); nimln(203, "strtabs.nim"); TMP301 = addInt(i, 1); j = (NI32)(TMP301); 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"); TMP302 = addInt(i, 2); nimln(205, "strtabs.nim"); TMP303 = subInt(j, 1); LOC11 = 0; LOC11 = copyStrLast(f, (NI32)(TMP302), (NI32)(TMP303)); LOC12 = 0; LOC12 = getvalue_111975(t, flags, LOC11); result = resizeString(result, LOC12->Sup.len + 0); appendString(result, LOC12); nimln(206, "strtabs.nim"); nimln(206, "strtabs.nim"); TMP304 = addInt(j, 1); i = (NI32)(TMP304); } break; case 97 ... 122: case 65 ... 90: case 128 ... 255: case 95: { NI j; NI TMP305; NI TMP306; NI TMP307; NimStringDesc* LOC17; NimStringDesc* LOC18; nimln(208, "strtabs.nim"); nimln(208, "strtabs.nim"); TMP305 = addInt(i, 1); j = (NI32)(TMP305); 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"); TMP306 = addInt(i, 1); nimln(210, "strtabs.nim"); TMP307 = subInt(j, 1); LOC17 = 0; LOC17 = copyStrLast(f, (NI32)(TMP306), (NI32)(TMP307)); LOC18 = 0; LOC18 = getvalue_111975(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_NOINLINE(void, babelcmdInit)(void) { nimfr("babelcmd", "babelcmd.nim") popFrame(); }
N_NIMCALL(NI, hashignorestyle_119859)(NimStringDesc* x) { NI result; NI h; NI i_119874; NI HEX3Atmp_119927; NI TMP271; NI res_119929; nimfr("hashIgnoreStyle", "hashes.nim") result = 0; nimln(99, "hashes.nim"); h = 0; i_119874 = 0; HEX3Atmp_119927 = 0; nimln(100, "hashes.nim"); nimln(100, "hashes.nim"); nimln(100, "hashes.nim"); TMP271 = subInt(x->Sup.len, 1); HEX3Atmp_119927 = (NI32)(TMP271); nimln(1458, "system.nim"); res_119929 = 0; nimln(1459, "system.nim"); while (1) { nimln(1459, "system.nim"); if (!(res_119929 <= HEX3Atmp_119927)) goto LA1; nimln(1458, "system.nim"); i_119874 = res_119929; { NIM_CHAR c; nimln(101, "hashes.nim"); if ((NU)(i_119874) > (NU)(x->Sup.len)) raiseIndexError(); c = x->data[i_119874]; nimln(102, "hashes.nim"); { nimln(102, "hashes.nim"); if (!((NU8)(c) == (NU8)(95))) goto LA5; nimln(103, "hashes.nim"); goto LA2; } LA5: ; nimln(104, "hashes.nim"); { NI TMP272; nimln(104, "hashes.nim"); if (!(((NU8)(c)) >= ((NU8)(65)) && ((NU8)(c)) <= ((NU8)(90)))) goto LA9; nimln(105, "hashes.nim"); nimln(105, "hashes.nim"); nimln(105, "hashes.nim"); nimln(105, "hashes.nim"); TMP272 = addInt(((NI) (((NU8)(c)))), 32); c = ((NIM_CHAR) (((NI)chckRange((NI32)(TMP272), 0, 255)))); } LA9: ; nimln(106, "hashes.nim"); nimln(106, "hashes.nim"); h = HEX21HEX26_119015(h, ((NI) (((NU8)(c))))); } LA2: ; nimln(1461, "system.nim"); res_119929 = addInt(res_119929, 1); } LA1: ; nimln(107, "hashes.nim"); result = HEX21HEX24_119040(h); popFrame(); return result; }
N_NIMCALL(void, fillbuffer_175072)(tbaselexer175018* l) { NI charsread; NI tocopy; NI s; NI oldbuflen; NI TMP1652; NI TMP1653; NI TMP1657; NI TMP1658; NI LOC13; NI TMP1659; NI TMP1660; nimfr("fillBuffer", "nimlexbase.nim") charsread = 0; tocopy = 0; s = 0; oldbuflen = 0; nimln(82, "nimlexbase.nim"); { nimln(82, "nimlexbase.nim"); nimln(82, "nimlexbase.nim"); if (!!(((*l).Sentinel < (*l).Buflen))) goto LA3; nimln(82, "nimlexbase.nim"); failedassertimpl_79821(((NimStringDesc*) &TMP1651)); } LA3: ; nimln(83, "nimlexbase.nim"); nimln(83, "nimlexbase.nim"); nimln(83, "nimlexbase.nim"); TMP1652 = subInt((*l).Buflen, (*l).Sentinel); TMP1653 = subInt((NI32)(TMP1652), 1); tocopy = (NI32)(TMP1653); nimln(84, "nimlexbase.nim"); { nimln(84, "nimlexbase.nim"); nimln(84, "nimlexbase.nim"); if (!!((0 <= tocopy))) goto LA7; nimln(84, "nimlexbase.nim"); failedassertimpl_79821(((NimStringDesc*) &TMP1654)); } LA7: ; nimln(85, "nimlexbase.nim"); { NI TMP1655; NI TMP1656; nimln(85, "nimlexbase.nim"); if (!(0 < tocopy)) goto LA11; nimln(86, "nimlexbase.nim"); nimln(86, "nimlexbase.nim"); TMP1655 = addInt((*l).Sentinel, 1); nimln(86, "nimlexbase.nim"); TMP1656 = mulInt(tocopy, 1); memmove(((void*) ((*l).Buf)), ((void*) (&(*l).Buf[(NI32)(TMP1655)])), (NI32)(TMP1656)); } LA11: ; nimln(88, "nimlexbase.nim"); nimln(89, "nimlexbase.nim"); nimln(88, "nimlexbase.nim"); nimln(89, "nimlexbase.nim"); nimln(89, "nimlexbase.nim"); TMP1657 = addInt((*l).Sentinel, 1); TMP1658 = mulInt((NI32)(TMP1657), 1); LOC13 = 0; LOC13 = llstreamread_173242((*l).Stream, ((void*) (&(*l).Buf[tocopy])), (NI32)(TMP1658)); TMP1659 = divInt(LOC13, 1); charsread = (NI32)(TMP1659); nimln(90, "nimlexbase.nim"); nimln(90, "nimlexbase.nim"); TMP1660 = addInt(tocopy, charsread); s = (NI32)(TMP1660); nimln(91, "nimlexbase.nim"); { NI TMP1661; nimln(91, "nimlexbase.nim"); nimln(91, "nimlexbase.nim"); TMP1661 = addInt((*l).Sentinel, 1); if (!(charsread < (NI32)(TMP1661))) goto LA16; nimln(92, "nimlexbase.nim"); (*l).Buf[s] = 0; nimln(93, "nimlexbase.nim"); (*l).Sentinel = s; } goto LA14; LA16: ; { nimln(96, "nimlexbase.nim"); s = subInt(s, 1); nimln(97, "nimlexbase.nim"); while (1) { nimln(98, "nimlexbase.nim"); { nimln(98, "nimlexbase.nim"); nimln(98, "nimlexbase.nim"); if (!!((s < (*l).Buflen))) goto LA22; nimln(98, "nimlexbase.nim"); failedassertimpl_79821(((NimStringDesc*) &TMP1662)); } LA22: ; nimln(99, "nimlexbase.nim"); while (1) { NIM_BOOL LOC25; nimln(99, "nimlexbase.nim"); LOC25 = 0; nimln(99, "nimlexbase.nim"); LOC25 = (0 <= s); if (!(LOC25)) goto LA26; nimln(99, "nimlexbase.nim"); nimln(99, "nimlexbase.nim"); LOC25 = !((((NU8)((*l).Buf[s])) == ((NU8)(13)) || ((NU8)((*l).Buf[s])) == ((NU8)(10)))); LA26: ; if (!LOC25) goto LA24; nimln(99, "nimlexbase.nim"); s = subInt(s, 1); } LA24: ; nimln(100, "nimlexbase.nim"); { nimln(100, "nimlexbase.nim"); if (!(0 <= s)) goto LA29; nimln(102, "nimlexbase.nim"); (*l).Sentinel = s; nimln(103, "nimlexbase.nim"); goto LA19; } goto LA27; LA29: ; { NI TMP1663; NI TMP1664; void* LOC32; NI TMP1667; NI LOC37; NI TMP1668; NI TMP1671; nimln(107, "nimlexbase.nim"); oldbuflen = (*l).Buflen; nimln(108, "nimlexbase.nim"); nimln(108, "nimlexbase.nim"); TMP1663 = mulInt((*l).Buflen, 2); (*l).Buflen = (NI32)(TMP1663); nimln(109, "nimlexbase.nim"); nimln(109, "nimlexbase.nim"); nimln(109, "nimlexbase.nim"); TMP1664 = mulInt((*l).Buflen, 1); LOC32 = 0; LOC32 = realloc_4631(((void*) ((*l).Buf)), (NI32)(TMP1664)); (*l).Buf = ((NCSTRING) (LOC32)); nimln(110, "nimlexbase.nim"); { NI TMP1665; nimln(110, "nimlexbase.nim"); nimln(110, "nimlexbase.nim"); nimln(110, "nimlexbase.nim"); TMP1665 = subInt((*l).Buflen, oldbuflen); if (!!(((NI32)(TMP1665) == oldbuflen))) goto LA35; nimln(110, "nimlexbase.nim"); failedassertimpl_79821(((NimStringDesc*) &TMP1666)); } LA35: ; nimln(111, "nimlexbase.nim"); nimln(112, "nimlexbase.nim"); nimln(111, "nimlexbase.nim"); nimln(112, "nimlexbase.nim"); TMP1667 = mulInt(oldbuflen, 1); LOC37 = 0; LOC37 = llstreamread_173242((*l).Stream, ((void*) (&(*l).Buf[oldbuflen])), (NI32)(TMP1667)); TMP1668 = divInt(LOC37, 1); charsread = (NI32)(TMP1668); nimln(113, "nimlexbase.nim"); { NI TMP1669; NI TMP1670; nimln(113, "nimlexbase.nim"); if (!(charsread < oldbuflen)) goto LA40; nimln(114, "nimlexbase.nim"); nimln(114, "nimlexbase.nim"); TMP1669 = addInt(oldbuflen, charsread); (*l).Buf[(NI32)(TMP1669)] = 0; nimln(115, "nimlexbase.nim"); nimln(115, "nimlexbase.nim"); TMP1670 = addInt(oldbuflen, charsread); (*l).Sentinel = (NI32)(TMP1670); nimln(116, "nimlexbase.nim"); goto LA19; } LA40: ; nimln(117, "nimlexbase.nim"); nimln(117, "nimlexbase.nim"); TMP1671 = subInt((*l).Buflen, 1); s = (NI32)(TMP1671); } LA27: ; } LA19: ; } LA14: ; popFrame(); }
N_NIMCALL(void, writedata_141748)(tstream141629* s, void* buffer, NI buflen) { nimfr("writeData", "streams.nim") nimln(86, "streams.nim"); (*s).Writedataimpl(s, buffer, buflen); popFrame(); }