N_NIMCALL(void, savemaxids_190463)(NimStringDesc* project) { FILE* f; NimStringDesc* LOC1; TY129224 LOC2; TY129224 LOC3; nimfr("saveMaxIds", "idgen.nim") nimln(50, "idgen.nim"); nimln(50, "idgen.nim"); LOC1 = 0; LOC1 = togid_190457(project); f = open_10417(LOC1, ((NU8) 1), -1); nimln(51, "idgen.nim"); memset((void*)LOC2, 0, sizeof(LOC2)); nimln(51, "idgen.nim"); nimln(51, "idgen.nim"); LOC2[0] = nimIntToStr(gfrontendid_190007); writeln_139205(f, LOC2, 1); nimln(52, "idgen.nim"); memset((void*)LOC3, 0, sizeof(LOC3)); nimln(52, "idgen.nim"); nimln(52, "idgen.nim"); LOC3[0] = nimIntToStr(gbackendid_190008); writeln_139205(f, LOC3, 1); nimln(53, "idgen.nim"); fclose(f); popFrame(); }
N_NIMCALL(NimStringDesc*, Symtostr_125005)(TY55548* S_125007, NIM_BOOL Islocal_125008) { NimStringDesc* Result_125009; NIM_BOOL LOC5; NimStringDesc* LOC12; NimStringDesc* LOC13; NI LOC14; NimStringDesc* LOC15; NI LOC16; NimStringDesc* LOC17; Result_125009 = 0; Result_125009 = copyString(((NimStringDesc*) &TMP195931)); Result_125009 = resizeString(Result_125009, reprEnum((*S_125007).Kind, NTI55174)->Sup.len + 0); appendString(Result_125009, reprEnum((*S_125007).Kind, NTI55174)); Result_125009 = addChar(Result_125009, 9); if (!!(Islocal_125008)) goto LA2; LOC5 = !(((*S_125007).Kind == ((NU8) 6))); if (!(LOC5)) goto LA6; LOC5 = !(((*S_125007).Owner == NIM_NIL)); LA6: ; if (!LOC5) goto LA7; Result_125009 = resizeString(Result_125009, (*(*(*S_125007).Owner).Name).S->Sup.len + 0); appendString(Result_125009, (*(*(*S_125007).Owner).Name).S); Result_125009 = addChar(Result_125009, 46); LA7: ; LA2: ; Result_125009 = resizeString(Result_125009, (*(*S_125007).Name).S->Sup.len + 0); appendString(Result_125009, (*(*S_125007).Name).S); Result_125009 = addChar(Result_125009, 9); if (!!(((*S_125007).Typ == NIM_NIL))) goto LA10; LOC12 = 0; LOC12 = Typetostring_97014((*S_125007).Typ, ((NU8) 0)); Result_125009 = resizeString(Result_125009, LOC12->Sup.len + 0); appendString(Result_125009, LOC12); LA10: ; Result_125009 = addChar(Result_125009, 9); LOC13 = 0; LOC13 = Tofilename_47718((*S_125007).Info); Result_125009 = resizeString(Result_125009, LOC13->Sup.len + 0); appendString(Result_125009, LOC13); Result_125009 = addChar(Result_125009, 9); LOC14 = Tolinenumber_47724((*S_125007).Info); LOC15 = 0; LOC15 = nimIntToStr(LOC14); Result_125009 = resizeString(Result_125009, LOC15->Sup.len + 0); appendString(Result_125009, LOC15); Result_125009 = addChar(Result_125009, 9); LOC16 = Tocolumn_47728((*S_125007).Info); LOC17 = 0; LOC17 = nimIntToStr(LOC16); Result_125009 = resizeString(Result_125009, LOC17->Sup.len + 0); appendString(Result_125009, LOC17); return Result_125009; }
N_NIMCALL(void, setstyle_190601_4182131368)(FILE* f0, Style190404Set style0) { { Style190404 s_190837_4182131368; NI i_190851_4182131368; s_190837_4182131368 = (Style190404)0; i_190851_4182131368 = ((NI) 1); { while (1) { if (!(i_190851_4182131368 <= ((NI) 8))) goto LA3; { NimStringDesc* LOC8; NimStringDesc* LOC9; if (!((style0 &(1U<<((NU)((((Style190404) (i_190851_4182131368))- 1))&7U)))!=0)) goto LA6; s_190837_4182131368 = ((Style190404) (i_190851_4182131368)); LOC8 = (NimStringDesc*)0; LOC9 = (NimStringDesc*)0; LOC9 = nimIntToStr(((NI) (s_190837_4182131368))); LOC8 = rawNewString(LOC9->Sup.len + 3); appendString(LOC8, ((NimStringDesc*) &T4182131368_2)); appendString(LOC8, LOC9); appendChar(LOC8, 109); write_14891_1689653243(f0, LOC8); } LA6: ; i_190851_4182131368 += ((NI) 1); } LA3: ; } } }
N_NIMCALL(void, savemaxids_213439)(NimStringDesc* project) { FILE* f; NimStringDesc* LOC1; TY183752 LOC2; TY183752 LOC3; LOC1 = 0; LOC1 = togid_213435(project); f = open_15417(LOC1, ((NU8) 1), ((NI) -1)); memset((void*)LOC2, 0, sizeof(LOC2)); LOC2[0] = nimIntToStr(gfrontendid_213003); writeline_161405(f, LOC2, 1); memset((void*)LOC3, 0, sizeof(LOC3)); LOC3[0] = nimIntToStr(gbackendid_213004); writeline_161405(f, LOC3, 1); fclose(f); }
N_NIMCALL(Selectorkey181439*, mget_182057)(Table181466* t, int key) { Selectorkey181439* result; NI hc_182070; NI index_182072; result = 0; hc_182070 = 0; index_182072 = rawget_181585((*t), key, (&hc_182070)); { if (!(((NI) 0) <= index_182072)) goto LA3; result = (&(*t).data->data[index_182072].Field2); } goto LA1; LA3: ; { Keyerror3851* e_182202; NimStringDesc* LOC6; NimStringDesc* LOC7; e_182202 = 0; e_182202 = (Keyerror3851*) newObj((&NTI182603), sizeof(Keyerror3851)); (*e_182202).Sup.Sup.Sup.m_type = (&NTI3851); LOC6 = 0; LOC7 = 0; LOC7 = nimIntToStr(key); LOC6 = rawNewString(LOC7->Sup.len + 15); appendString(LOC6, ((NimStringDesc*) &TMP1111)); appendString(LOC6, LOC7); asgnRefNoCycle((void**) (&(*e_182202).Sup.Sup.message), LOC6); raiseException((Exception*)e_182202, "KeyError"); } LA1: ; return result; }
N_NIMCALL(tnode173659*, verboseprocess_415013)(tpasscontext224003* context, tnode173659* n) { tnode173659* result; nimfr("verboseProcess", "passaux.nim") result = 0; nimln(21, "passaux.nim"); result = n; nimln(22, "passaux.nim"); { nimln(698, "system.nim"); nimln(698, "system.nim"); if (!!((context == NIM_NIL))) goto LA3; nimln(22, "passaux.nim"); internalerror_139383(((NimStringDesc*) &TMP6997)); } LA3: ; nimln(23, "passaux.nim"); { NimStringDesc* LOC9; nimln(23, "passaux.nim"); if (!(gverbosity_115117 == 3)) goto LA7; nimln(26, "passaux.nim"); gnotes_138073 |=((NI64)(1)<<(((((NU16) 254)- 222))%(sizeof(NI64)*8))); nimln(27, "passaux.nim"); nimln(27, "passaux.nim"); LOC9 = 0; LOC9 = nimIntToStr(gbackendid_172007); message_139362((*n).Info, ((NU16) 254), LOC9); } LA7: ; popFrame(); return result; }
N_NIMCALL(void, savemaxids_191472)(NimStringDesc* project) { FILE* f; NimStringDesc* LOC1; TY165580 LOC2; TY165580 LOC3; LOC1 = 0; LOC1 = togid_191462(project); f = open_13217(LOC1, ((NU8) 1), ((NI) -1)); memset((void*)LOC2, 0, sizeof(LOC2)); LOC2[0] = nimIntToStr(gfrontendid_191012); writeln_156205(f, LOC2, 1); memset((void*)LOC3, 0, sizeof(LOC3)); LOC3[0] = nimIntToStr(gbackendid_191013); writeln_156205(f, LOC3, 1); fclose(f); }
N_NIMCALL(tnode186813*, verboseprocess_519014)(tpasscontext245003* context, tnode186813* n) { tnode186813* result; nimfr("verboseProcess", "passaux.nim") result = 0; nimln(21, "passaux.nim"); result = n; nimln(22, "passaux.nim"); { nimln(22, "passaux.nim"); nimln(22, "passaux.nim"); if (!!((context == NIM_NIL))) goto LA3; nimln(22, "passaux.nim"); internalerror_164606(((NimStringDesc*) &TMP7604)); } LA3: ; nimln(23, "passaux.nim"); { NimStringDesc* LOC9; nimln(23, "passaux.nim"); if (!(gverbosity_136120 == 3)) goto LA7; nimln(26, "passaux.nim"); gnotes_163181 |=((NI64)(1)<<(((((NU16) 265)- 230))%(sizeof(NI64)*8))); nimln(27, "passaux.nim"); nimln(27, "passaux.nim"); LOC9 = 0; LOC9 = nimIntToStr(gbackendid_185008); message_164584((*n).Info, ((NU16) 265), LOC9); } LA7: ; popFrame(); return result; }
N_NIMCALL(NimStringDesc*, ntgetDateStr)(void) { NimStringDesc* Result_29803; TY28402 Ti_29804; NI32 LOC1; NimStringDesc* LOC2; NimStringDesc* LOC3; NimStringDesc* LOC4; NimStringDesc* LOC5; Result_29803 = 0; memset((void*)&Ti_29804, 0, sizeof(Ti_29804)); LOC1 = Gettime_28416(); Ti_29804 = Getlocaltime_28418(LOC1); Ti_29804.Sup.m_type = NTI28402; LOC2 = 0; LOC3 = 0; LOC3 = nimIntToStr(Ti_29804.Year); LOC4 = 0; LOC4 = nsuIntToStr((NI32)(Ti_29804.Month + 1), 2); LOC5 = 0; LOC5 = nsuIntToStr(((NI) (Ti_29804.Monthday)), 2); LOC2 = rawNewString(LOC3->Sup.len + LOC4->Sup.len + LOC5->Sup.len + 2); appendString(LOC2, LOC3); appendChar(LOC2, 45); appendString(LOC2, LOC4); appendChar(LOC2, 45); appendString(LOC2, LOC5); Result_29803 = LOC2; return Result_29803; }
N_NIMCALL(NimStringDesc*, ntgetDateStr)(void) { NimStringDesc* result0; Timeinfo_sGezGiKtnmyCJvsDB0xApg ti0; time_t LOC1; NimStringDesc* LOC2; NimStringDesc* LOC3; NimStringDesc* LOC4; NimStringDesc* LOC5; result0 = (NimStringDesc*)0; memset((void*)(&ti0), 0, sizeof(ti0)); ti0.Sup.m_type = (&NTI_sGezGiKtnmyCJvsDB0xApg); LOC1 = (time_t)0; LOC1 = gettime_wqmoaGqnr3gMTpWruGQ3FA(); chckNil((void*)(&ti0)); memset((void*)(&ti0), 0, sizeof(ti0)); ti0.Sup.m_type = (&NTI_sGezGiKtnmyCJvsDB0xApg); getlocaltime_Ql5lAb5s0QPmy9b8QhS3ucg(LOC1, (&ti0)); LOC2 = (NimStringDesc*)0; LOC3 = (NimStringDesc*)0; LOC3 = nimIntToStr(ti0.year); LOC4 = (NimStringDesc*)0; LOC4 = nsuIntToStr(((NI) ((NI)(((NI) (ti0.month)) + ((NI) 1)))), ((NI) 2)); LOC5 = (NimStringDesc*)0; LOC5 = nsuIntToStr(((NI) (ti0.monthday)), ((NI) 2)); LOC2 = rawNewString(LOC3->Sup.len + LOC4->Sup.len + LOC5->Sup.len + 2); appendString(LOC2, LOC3); appendChar(LOC2, 45); appendString(LOC2, LOC4); appendChar(LOC2, 45); appendString(LOC2, LOC5); result0 = LOC2; return result0; }
N_NIMCALL(NimStringDesc*, ntgetDateStr)(void) { NimStringDesc* result0; Timeinfo114804 ti0; time_t LOC1; NimStringDesc* LOC2; NimStringDesc* LOC3; NimStringDesc* LOC4; NimStringDesc* LOC5; result0 = (NimStringDesc*)0; memset((void*)(&ti0), 0, sizeof(ti0)); ti0.Sup.m_type = (&NTI114804); LOC1 = (time_t)0; LOC1 = gettime_114842_2726502234(); chckNil((void*)(&ti0)); memset((void*)(&ti0), 0, sizeof(ti0)); ti0.Sup.m_type = (&NTI114804); getlocaltime_114844_2726502234(LOC1, (&ti0)); LOC2 = (NimStringDesc*)0; LOC3 = (NimStringDesc*)0; LOC3 = nimIntToStr(ti0.year); LOC4 = (NimStringDesc*)0; LOC4 = nsuIntToStr(((NI) ((NI)(((NI) (ti0.month)) + ((NI) 1)))), ((NI) 2)); LOC5 = (NimStringDesc*)0; LOC5 = nsuIntToStr(((NI) (ti0.monthday)), ((NI) 2)); LOC2 = rawNewString(LOC3->Sup.len + LOC4->Sup.len + LOC5->Sup.len + 2); appendString(LOC2, LOC3); appendChar(LOC2, 45); appendString(LOC2, LOC4); appendChar(LOC2, 45); appendString(LOC2, LOC5); result0 = LOC2; return result0; }
N_NIMCALL(void, HEX5BHEX5D_182417)(Table181466 t, int key, Selectorkey181439* Result) { NI hc_182428; NI index_182430; hc_182428 = 0; index_182430 = rawget_181585(t, key, (&hc_182428)); { if (!(((NI) 0) <= index_182430)) goto LA3; (*Result).fd = t.data->data[index_182430].Field2.fd; (*Result).events = t.data->data[index_182430].Field2.events; unsureAsgnRef((void**) (&(*Result).data), t.data->data[index_182430].Field2.data); } goto LA1; LA3: ; { Keyerror3851* e_182602; NimStringDesc* LOC6; NimStringDesc* LOC7; e_182602 = 0; e_182602 = (Keyerror3851*) newObj((&NTI182603), sizeof(Keyerror3851)); (*e_182602).Sup.Sup.Sup.m_type = (&NTI3851); LOC6 = 0; LOC7 = 0; LOC7 = nimIntToStr(key); LOC6 = rawNewString(LOC7->Sup.len + 15); appendString(LOC6, ((NimStringDesc*) &TMP1111)); appendString(LOC6, LOC7); asgnRefNoCycle((void**) (&(*e_182602).Sup.Sup.message), LOC6); raiseException((Exception*)e_182602, "KeyError"); } LA1: ; }
N_NIMCALL(void, setstyle_179601)(FILE* f, NU8 style) { { NU8 s_179837; NI i_179851; s_179837 = 0; i_179851 = ((NI) 1); { while (1) { if (!(i_179851 <= ((NI) 8))) goto LA3; { NimStringDesc* LOC8; NimStringDesc* LOC9; if (!((style &(1U<<((NU)((((NU8) (i_179851))- 1))&7U)))!=0)) goto LA6; s_179837 = ((NU8) (i_179851)); LOC8 = 0; LOC9 = 0; LOC9 = nimIntToStr(((NI) (s_179837))); LOC8 = rawNewString(LOC9->Sup.len + 3); appendString(LOC8, ((NimStringDesc*) &TMP433)); appendString(LOC8, LOC9); appendChar(LOC8, 109); write_15489(f, LOC8); } LA6: ; i_179851 += ((NI) 1); } LA3: ; } } }
N_NIMCALL(NimStringDesc*, ntgetDateStr)(void) { NimStringDesc* result; Timeinfo109404 ti; time_t LOC1; NimStringDesc* LOC2; NimStringDesc* LOC3; NimStringDesc* LOC4; NimStringDesc* LOC5; result = 0; memset((void*)(&ti), 0, sizeof(ti)); ti.Sup.m_type = (&NTI109404); LOC1 = 0; LOC1 = gettime_109436(); chckNil((void*)(&ti)); memset((void*)(&ti), 0, sizeof(ti)); ti.Sup.m_type = (&NTI109404); getlocaltime_109438(LOC1, (&ti)); LOC2 = 0; LOC3 = 0; LOC3 = nimIntToStr(ti.year); LOC4 = 0; LOC4 = nsuIntToStr(((NI) ((NI)(((NI) (ti.month)) + ((NI) 1)))), ((NI) 2)); LOC5 = 0; LOC5 = nsuIntToStr(((NI) (ti.monthday)), ((NI) 2)); LOC2 = rawNewString(LOC3->Sup.len + LOC4->Sup.len + LOC5->Sup.len + 2); appendString(LOC2, LOC3); appendChar(LOC2, 45); appendString(LOC2, LOC4); appendChar(LOC2, 45); appendString(LOC2, LOC5); result = LOC2; return result; }
N_NIMCALL(NimStringDesc*, npcerrorStr)(tcfgparser156014* c, NimStringDesc* msg) { NimStringDesc* result; TY156795 LOC1; NI LOC2; NI LOC3; result = 0; memset((void*)LOC1, 0, sizeof(LOC1)); LOC1[0] = copyString((*c).Filename); LOC2 = 0; LOC2 = npcgetLine(c); LOC1[1] = nimIntToStr(LOC2); LOC3 = 0; LOC3 = npcgetColumn(c); LOC1[2] = nimIntToStr(LOC3); LOC1[3] = copyString(msg); result = nsuFormatOpenArray(((NimStringDesc*) &TMP137), LOC1, 4); return result; }
N_NIMCALL(void, savemaxids_293427_644355110)(NimStringDesc* project0) { FILE* f0; NimStringDesc* LOC1; TY194732 LOC2; LOC1 = (NimStringDesc*)0; LOC1 = togid_293423_644355110(project0); f0 = open_14817_1689653243(LOC1, ((Filemode13009) 1), ((NI) -1)); memset((void*)LOC2, 0, sizeof(LOC2)); LOC2[0] = nimIntToStr(gfrontendid_293004_644355110); writeline_172405_1689653243(f0, LOC2, 1); close_14853_1689653243(f0); }
N_NIMCALL(void, savemaxids_YGw2jee9aWCa1xh69bRnItGQ_2)(NimStringDesc* project0) { FILE* f0; NimStringDesc* LOC1; TY_nHXaesL0DJZHyVS07ARPRA LOC2; LOC1 = (NimStringDesc*)0; LOC1 = togid_Fvw9bbsIDNn4yf7dHlKp4Bg(project0); f0 = open_hqzpWQbdA2B8l9a6wwNoP4g(LOC1, ((Filemode_fVUBHvW79bXUw1j55Oo9avSQ) 1), ((NI) -1)); memset((void*)LOC2, 0, sizeof(LOC2)); LOC2[0] = nimIntToStr(gfrontendid_gyRrMPnY7JyC6tAu9bCfGng); writeline_rBQVO3cm3BhnA9aEFD7PG6Qmsgs(f0, LOC2, 1); close_BWnr8V7RERYno9bIdPmw8Hw_2(f0); }
N_NIMCALL(void, savemaxids_292427)(NimStringDesc* project) { FILE* f; NimStringDesc* LOC1; TY193732 LOC2; LOC1 = 0; LOC1 = togid_292423(project); f = open_14817(LOC1, ((NU8) 1), ((NI) -1)); memset((void*)LOC2, 0, sizeof(LOC2)); LOC2[0] = nimIntToStr(gfrontendid_292007); writeline_171405(f, LOC2, 1); close_14853(f); }
N_NIMCALL(NimStringDesc*, getenumfield_213235_1760177012)(Any203101 x0, NI ordinalvalue0) { NimStringDesc* result0; TNimType* typ0; NI e0; { result0 = (NimStringDesc*)0; typ0 = skiprange_204802_1760177012(((TNimType*) (x0.rawtypeptr))); e0 = ordinalvalue0; { if (!!((((*typ0).flags &(1U<<((NU)(((Tnimtypeflag203009) 2))&7U)))!=0))) goto LA3; { if (!((NU32)(e0) < (NU32)((*(*typ0).node).len))) goto LA7; result0 = cstrToNimstr((*(*(*typ0).node).sons[(e0)- 0]).name); goto BeforeRet; } LA7: ; } goto LA1; LA3: ; { TNimNode* n0; TNimNode** s0; n0 = (*typ0).node; s0 = (*n0).sons; { NI i_213432_1760177012; NI HEX3Atmp_213435_1760177012; NI res_213438_1760177012; i_213432_1760177012 = (NI)0; HEX3Atmp_213435_1760177012 = (NI)0; HEX3Atmp_213435_1760177012 = (NI)((*n0).len - ((NI) 1)); res_213438_1760177012 = ((NI) 0); { while (1) { if (!(res_213438_1760177012 <= HEX3Atmp_213435_1760177012)) goto LA12; i_213432_1760177012 = res_213438_1760177012; { if (!((*s0[(i_213432_1760177012)- 0]).offset == e0)) goto LA15; result0 = cstrToNimstr((*s0[(i_213432_1760177012)- 0]).name); goto BeforeRet; } LA15: ; res_213438_1760177012 += ((NI) 1); } LA12: ; } } } LA1: ; result0 = nimIntToStr(e0); }BeforeRet: ; return result0; }
N_NIMCALL(NIM_BOOL, Externalfilechanged_70524)(NimStringDesc* Filename_70526) { NIM_BOOL Result_70527; NimStringDesc* Crcfile_70528; NI Currentcrc_70529; int LOC1; FILE* F_70530; NIM_BOOL LOC3; NimStringDesc* Line_70532; NIM_BOOL LOC7; NI Oldcrc_70537; NIM_BOOL LOC15; NimStringDesc* LOC18; Result_70527 = 0; Crcfile_70528 = 0; Crcfile_70528 = Togeneratedfile_46105(Filename_70526, ((NimStringDesc*) &TMP195647)); Currentcrc_70529 = 0; LOC1 = Footprint_70520(Filename_70526); Currentcrc_70529 = ((NI) (LOC1)); F_70530 = 0; LOC3 = Open_3817(&F_70530, Crcfile_70528, ((NU8) 0), -1); if (!LOC3) goto LA4; Line_70532 = 0; Line_70532 = Readline_3887(F_70530); LOC7 = Line_70532 == 0; if (LOC7) goto LA8; LOC7 = (Line_70532->Sup.len == 0); LA8: ; if (!LOC7) goto LA9; Line_70532 = copyString(((NimStringDesc*) &TMP195649)); LA9: ; fclose(F_70530); Oldcrc_70537 = 0; Oldcrc_70537 = nsuParseInt(Line_70532); Result_70527 = !((Oldcrc_70537 == Currentcrc_70529)); goto LA2; LA4: ; Result_70527 = NIM_TRUE; LA2: ; if (!Result_70527) goto LA12; LOC15 = Open_3817(&F_70530, Crcfile_70528, ((NU8) 1), -1); if (!LOC15) goto LA16; LOC18 = 0; LOC18 = nimIntToStr(Currentcrc_70529); Writeln_70546(F_70530, LOC18); fclose(F_70530); LA16: ; LA12: ; return Result_70527; }
N_NIMCALL(TY55526*, Verboseprocess_186013)(TY105002* Context_186015, TY55526* N_186016) { TY55526* Result_186017; NimStringDesc* LOC7; Result_186017 = 0; Result_186017 = N_186016; if (!!((Context_186015 == NIM_NIL))) goto LA2; Internalerror_48163(((NimStringDesc*) &TMP195920)); LA2: ; if (!(Gverbosity_46085 == 3)) goto LA5; LOC7 = 0; LOC7 = nimIntToStr(Gid_55693); Message_48149((*N_186016).Info, ((NU8) 231), LOC7); LA5: ; return Result_186017; }
N_NIMCALL(void, setforegroundcolor_191047_4182131368)(FILE* f0, Foregroundcolor191024 fg0, NIM_BOOL bright0) { NimStringDesc* LOC5; NimStringDesc* LOC6; gfg_190414_4182131368 = ((NI) (fg0)); { if (!bright0) goto LA3; gfg_190414_4182131368 += ((NI) 60); } LA3: ; LOC5 = (NimStringDesc*)0; LOC6 = (NimStringDesc*)0; LOC6 = nimIntToStr(gfg_190414_4182131368); LOC5 = rawNewString(LOC6->Sup.len + 3); appendString(LOC5, ((NimStringDesc*) &T4182131368_2)); appendString(LOC5, LOC6); appendChar(LOC5, 109); write_14891_1689653243(f0, LOC5); }
N_NIMCALL(void, setforegroundcolor_180045)(FILE* f, NU8 fg, NIM_BOOL bright) { NimStringDesc* LOC5; NimStringDesc* LOC6; gfg_179413 = ((NI) (fg)); { if (!bright) goto LA3; gfg_179413 += ((NI) 60); } LA3: ; LOC5 = 0; LOC6 = 0; LOC6 = nimIntToStr(gfg_179413); LOC5 = rawNewString(LOC6->Sup.len + 3); appendString(LOC5, ((NimStringDesc*) &TMP433)); appendString(LOC5, LOC6); appendChar(LOC5, 109); write_15489(f, LOC5); }
N_LIB_PRIVATE N_NIMCALL(tyObject_TNode_bROa11lyF5vxEN9aYNbHmhw*, verboseProcess_6fhNRoymw43U9bx1kqA2xCw)(tyObject_TPassContext_qNsm39cWb35W2r5AAd9ch87g* context, tyObject_TNode_bROa11lyF5vxEN9aYNbHmhw* n) { tyObject_TNode_bROa11lyF5vxEN9aYNbHmhw* result; result = (tyObject_TNode_bROa11lyF5vxEN9aYNbHmhw*)0; result = n; { if (!!((context == NIM_NIL))) goto LA3_; internalError_5XY9cUy7hZmUusM38U9cYYdw(((NimStringDesc*) &TM_WN2DmcgfohRZOHm9avzMtLw_2)); } LA3_: ; { NimStringDesc* T9_; if (!(gVerbosity_BhOkdHk9bv1VGWSLnxRNYpw == ((NI) 3))) goto LA7_; gNotes_ra0BBMaJz6cOxn1JA3c6Bg |= ((NU64)1)<<(((((tyEnum_TMsgKind_VhF2u8Sb9c3Fk8NMu6WUVoA) 280)- 241))%(sizeof(NU64)*8)); T9_ = (NimStringDesc*)0; T9_ = nimIntToStr(gFrontEndId_gyRrMPnY7JyC6tAu9bCfGng); message_VpilfPWbplGz6ny7O9cfr2g_2((*n).info, ((tyEnum_TMsgKind_IGAWgv9aR2KqPKJfPZPEWaw) 280), T9_); } LA7_: ; return result; }
N_NIMCALL(Tnode190813*, verboseprocess_505023)(Tpasscontext240005* context, Tnode190813* n) { Tnode190813* result; result = 0; result = n; { if (!!((context == NIM_NIL))) goto LA3; internalerror_164234(((NimStringDesc*) &TMP1926)); } LA3: ; { NimStringDesc* LOC9; if (!(gverbosity_153137 == ((NI) 3))) goto LA7; gnotes_163018 |= ((NI64)1)<<(((((NU16) 269)- 230))%(sizeof(NI64)*8)); LOC9 = 0; LOC9 = nimIntToStr(gbackendid_189013); message_164204((*n).info, ((NU16) 269), LOC9); } LA7: ; return result; }
N_NIMCALL(Tnode215790*, verboseprocess_514008)(Tpasscontext262002* context, Tnode215790* n) { Tnode215790* result; result = 0; result = n; { if (!!((context == NIM_NIL))) goto LA3; internalerror_188113(((NimStringDesc*) &TMP3753)); } LA3: ; { NimStringDesc* LOC9; if (!(gverbosity_161130 == ((NI) 3))) goto LA7; gnotes_184080 |= ((NU64)1)<<(((((NU16) 276)- 237))%(sizeof(NU64)*8)); LOC9 = 0; LOC9 = nimIntToStr(gbackendid_214004); message_188095((*n).info, ((NU16) 276), LOC9); } LA7: ; return result; }
N_NIMCALL(Tnode_bROa11lyF5vxEN9aYNbHmhw*, verboseprocess_6fhNRoymw43U9bx1kqA2xCw)(Tpasscontext_qNsm39cWb35W2r5AAd9ch87g* context0, Tnode_bROa11lyF5vxEN9aYNbHmhw* n0) { Tnode_bROa11lyF5vxEN9aYNbHmhw* result0; result0 = (Tnode_bROa11lyF5vxEN9aYNbHmhw*)0; result0 = n0; { if (!!((context0 == NIM_NIL))) goto LA3; internalerror_5XY9cUy7hZmUusM38U9cYYdw(((NimStringDesc*) &T_WN2DmcgfohRZOHm9avzMtLw_2)); } LA3: ; { NimStringDesc* LOC9; if (!(gverbosity_BhOkdHk9bv1VGWSLnxRNYpw == ((NI) 3))) goto LA7; gnotes_ra0BBMaJz6cOxn1JA3c6Bg |= ((NU64)1)<<(((((Tmsgkind_nDM9aiGzuSlpuw3CrqwaebA) 275)- 236))%(sizeof(NU64)*8)); LOC9 = (NimStringDesc*)0; LOC9 = nimIntToStr(gfrontendid_gyRrMPnY7JyC6tAu9bCfGng); message_VpilfPWbplGz6ny7O9cfr2g_2((*n0).info, ((Tmsgkind_IGAWgv9aR2KqPKJfPZPEWaw) 275), LOC9); } LA7: ; return result0; }
N_NIMCALL(NimStringDesc*, mac_319009)(NimStringDesc* val, NI sec) { NimStringDesc* result; NimStringDesc* LOC1; NimStringDesc* LOC2; NimStringDesc* LOC3; NimStringDesc* LOC4; NimStringDesc* LOC5; result = 0; LOC1 = 0; LOC2 = 0; LOC2 = nimIntToStr(sec); LOC3 = 0; LOC3 = HEX3FHEX3F_319015(val, ((NimStringDesc*) &TMP1459)); LOC1 = rawNewString(Key_264379->Sup.len + LOC2->Sup.len + LOC3->Sup.len + 0); appendString(LOC1, Key_264379); appendString(LOC1, LOC2); appendString(LOC1, LOC3); LOC4 = 0; LOC4 = sha3_265041(LOC1); LOC5 = 0; LOC5 = copyStrLast(LOC4, ((NI) 0), ((NI) 11)); result = hex_240200(LOC5); return result; }
N_NIMCALL(void, annotatetype_402134)(Tnode191813* n, Ttype191849* t) { Ttype191849* x; x = skiptypes_195167(t, IL64(211106232576256)); switch ((*n).kind) { case ((NU8) 37): { { if (!((*x).kind == ((NU8) 17))) goto LA4; asgnRefNoCycle((void**) (&(*n).typ), t); { NI i_402167; NI HEX3Atmp_402297; NI LOC7; NI res_402300; i_402167 = 0; HEX3Atmp_402297 = 0; LOC7 = 0; LOC7 = len_192097(n); HEX3Atmp_402297 = (LOC7 - 1); res_402300 = ((NI) 0); { while (1) { Tsym191843* field; if (!(res_402300 <= HEX3Atmp_402297)) goto LA9; i_402167 = res_402300; field = ithfield_402012((*x).n, i_402167); { NimStringDesc* LOC14; NimStringDesc* LOC15; if (!field == 0) goto LA12; LOC14 = 0; LOC15 = 0; LOC15 = nimIntToStr(i_402167); LOC14 = rawNewString(LOC15->Sup.len + 23); appendString(LOC14, ((NimStringDesc*) &TMP3286)); appendString(LOC14, LOC15); globalerror_165161((*n).info, LOC14); } goto LA10; LA12: ; { annotatetype_402134((*n).kindU.S6.sons->data[i_402167], (*field).typ); } LA10: ; res_402300 += ((NI) 1); } LA9: ; } } } goto LA2; LA4: ; { if (!((*x).kind == ((NU8) 18))) goto LA18; asgnRefNoCycle((void**) (&(*n).typ), t); { NI i_402209; NI HEX3Atmp_402305; NI LOC21; NI res_402308; i_402209 = 0; HEX3Atmp_402305 = 0; LOC21 = 0; LOC21 = len_192097(n); HEX3Atmp_402305 = (LOC21 - 1); res_402308 = ((NI) 0); { while (1) { if (!(res_402308 <= HEX3Atmp_402305)) goto LA23; i_402209 = res_402308; { NI LOC26; NimStringDesc* LOC29; NimStringDesc* LOC30; LOC26 = 0; LOC26 = len_194377(x); if (!(LOC26 <= i_402209)) goto LA27; LOC29 = 0; LOC30 = 0; LOC30 = nimIntToStr(i_402209); LOC29 = rawNewString(LOC30->Sup.len + 23); appendString(LOC29, ((NimStringDesc*) &TMP3286)); appendString(LOC29, LOC30); globalerror_165161((*n).info, LOC29); } goto LA24; LA27: ; { annotatetype_402134((*n).kindU.S6.sons->data[i_402209], (*x).sons->data[i_402209]); } LA24: ; res_402308 += ((NI) 1); } LA23: ; } } } goto LA2; LA18: ; { NIM_BOOL LOC33; LOC33 = 0; LOC33 = ((*x).kind == ((NU8) 25)); if (!(LOC33)) goto LA34; LOC33 = ((*x).callconv == ((NU8) 8)); LA34: ; if (!LOC33) goto LA35; asgnRefNoCycle((void**) (&(*n).typ), t); } goto LA2; LA35: ; { globalerror_165161((*n).info, ((NimStringDesc*) &TMP3287)); } LA2: ; } break; case ((NU8) 41): { { if (!((*x).kind == ((NU8) 4) || (*x).kind == ((NU8) 16) || (*x).kind == ((NU8) 24) || (*x).kind == ((NU8) 27))) goto LA41; asgnRefNoCycle((void**) (&(*n).typ), t); { Tnode191813* m_402240; m_402240 = 0; { NI i_402316; NI HEX3Atmp_402318; NI LOC45; NI res_402320; i_402316 = 0; HEX3Atmp_402318 = 0; LOC45 = 0; LOC45 = len_192097(n); HEX3Atmp_402318 = (LOC45 - 1); res_402320 = ((NI) 0); { while (1) { Ttype191849* LOC48; if (!(res_402320 <= HEX3Atmp_402318)) goto LA47; i_402316 = res_402320; m_402240 = (*n).kindU.S6.sons->data[i_402316]; LOC48 = 0; LOC48 = elemtype_221522(x); annotatetype_402134(m_402240, LOC48); res_402320 += ((NI) 1); } LA47: ; } } } } goto LA39; LA41: ; { globalerror_165161((*n).info, ((NimStringDesc*) &TMP3288)); } LA39: ; } break; case ((NU8) 39): { { if (!((*x).kind == ((NU8) 19))) goto LA53; asgnRefNoCycle((void**) (&(*n).typ), t); { Tnode191813* m_402252; m_402252 = 0; { NI i_402327; NI HEX3Atmp_402329; NI LOC57; NI res_402331; i_402327 = 0; HEX3Atmp_402329 = 0; LOC57 = 0; LOC57 = len_192097(n); HEX3Atmp_402329 = (LOC57 - 1); res_402331 = ((NI) 0); { while (1) { Ttype191849* LOC60; if (!(res_402331 <= HEX3Atmp_402329)) goto LA59; i_402327 = res_402331; m_402252 = (*n).kindU.S6.sons->data[i_402327]; LOC60 = 0; LOC60 = elemtype_221522(x); annotatetype_402134(m_402252, LOC60); res_402331 += ((NI) 1); } LA59: ; } } } } goto LA51; LA53: ; { globalerror_165161((*n).info, ((NimStringDesc*) &TMP3289)); } LA51: ; } break; case ((NU8) 16) ... ((NU8) 19): { { if (!((*x).kind >= ((NU8) 36) && (*x).kind <= ((NU8) 39))) goto LA65; asgnRefNoCycle((void**) (&(*n).typ), t); } goto LA63; LA65: ; { globalerror_165161((*n).info, ((NimStringDesc*) &TMP3290)); } LA63: ; } break; case ((NU8) 5) ... ((NU8) 15): { { if (!((*x).kind >= ((NU8) 31) && (*x).kind <= ((NU8) 44) || (*x).kind == ((NU8) 1) || (*x).kind == ((NU8) 2) || (*x).kind == ((NU8) 14))) goto LA71; asgnRefNoCycle((void**) (&(*n).typ), t); } goto LA69; LA71: ; { globalerror_165161((*n).info, ((NimStringDesc*) &TMP3291)); } LA69: ; } break; case ((NU8) 20) ... ((NU8) 22): { { if (!((*x).kind == ((NU8) 28) || (*x).kind == ((NU8) 29))) goto LA77; asgnRefNoCycle((void**) (&(*n).typ), t); } goto LA75; LA77: ; { globalerror_165161((*n).info, ((NimStringDesc*) &TMP3292)); } LA75: ; } break; case ((NU8) 23): { { if (!((*x).kind == ((NU8) 26) || (*x).kind == ((NU8) 29) || (*x).kind == ((NU8) 22) || (*x).kind == ((NU8) 21) || (*x).kind == ((NU8) 24) || (*x).kind == ((NU8) 25) || (*x).kind == ((NU8) 28) || (*x).kind == ((NU8) 50))) goto LA83; asgnRefNoCycle((void**) (&(*n).typ), t); } goto LA81; LA83: ; { globalerror_165161((*n).info, ((NimStringDesc*) &TMP3293)); } LA81: ; } break; default: { } break; } }
N_NIMCALL(trope148007*, ropef_148079)(NimStringDesc* frmt, trope148007** args, NI argsLen0) { trope148007* result; NI i; NI length; NI num; nimfr("ropef", "ropes.nim") result = 0; nimln(243, "ropes.nim"); i = 0; nimln(244, "ropes.nim"); nimln(244, "ropes.nim"); length = frmt->Sup.len; nimln(245, "ropes.nim"); result = NIM_NIL; nimln(246, "ropes.nim"); num = 0; nimln(247, "ropes.nim"); while (1) { NI TMP558; NI start; nimln(247, "ropes.nim"); nimln(247, "ropes.nim"); TMP558 = subInt(length, 1); if (!(i <= (NI32)(TMP558))) goto LA1; nimln(248, "ropes.nim"); { nimln(248, "ropes.nim"); if ((NU)(i) > (NU)(frmt->Sup.len)) raiseIndexError(); if (!((NU8)(frmt->data[i]) == (NU8)(36))) goto LA4; nimln(249, "ropes.nim"); i = addInt(i, 1); nimln(250, "ropes.nim"); if ((NU)(i) > (NU)(frmt->Sup.len)) raiseIndexError(); switch (((NU8)(frmt->data[i]))) { case 36: { nimln(252, "ropes.nim"); app_148046(&result, ((NimStringDesc*) &TMP559)); nimln(253, "ropes.nim"); i = addInt(i, 1); } break; case 35: { nimln(255, "ropes.nim"); i = addInt(i, 1); nimln(256, "ropes.nim"); if ((NU)(num) >= (NU)(argsLen0)) raiseIndexError(); app_148040(&result, args[num]); nimln(257, "ropes.nim"); num = addInt(num, 1); } break; case 48 ... 57: { NI j; nimln(259, "ropes.nim"); j = 0; nimln(260, "ropes.nim"); while (1) { NI TMP560; NI TMP561; NI TMP562; nimln(261, "ropes.nim"); nimln(261, "ropes.nim"); nimln(261, "ropes.nim"); nimln(261, "ropes.nim"); TMP560 = mulInt(j, 10); nimln(261, "ropes.nim"); if ((NU)(i) > (NU)(frmt->Sup.len)) raiseIndexError(); TMP561 = addInt((NI32)(TMP560), ((NI) (((NU8)(frmt->data[i]))))); TMP562 = subInt((NI32)(TMP561), 48); j = (NI32)(TMP562); nimln(262, "ropes.nim"); i = addInt(i, 1); nimln(263, "ropes.nim"); { NIM_BOOL LOC12; NI TMP563; NI TMP564; nimln(263, "ropes.nim"); LOC12 = 0; nimln(263, "ropes.nim"); nimln(263, "ropes.nim"); nimln(263, "ropes.nim"); TMP563 = addInt(length, 0); TMP564 = subInt((NI32)(TMP563), 1); LOC12 = ((NI32)(TMP564) < i); if (LOC12) goto LA13; nimln(263, "ropes.nim"); nimln(263, "ropes.nim"); if ((NU)(i) > (NU)(frmt->Sup.len)) raiseIndexError(); LOC12 = !((((NU8)(frmt->data[i])) >= ((NU8)(48)) && ((NU8)(frmt->data[i])) <= ((NU8)(57)))); LA13: ; if (!LOC12) goto LA14; nimln(263, "ropes.nim"); goto LA9; } LA14: ; } LA9: ; nimln(264, "ropes.nim"); num = j; nimln(265, "ropes.nim"); { NI TMP565; NimStringDesc* LOC20; nimln(265, "ropes.nim"); nimln(265, "ropes.nim"); nimln(265, "ropes.nim"); TMP565 = addInt((argsLen0-1), 1); if (!((NI32)(TMP565) < j)) goto LA18; nimln(266, "ropes.nim"); nimln(266, "ropes.nim"); LOC20 = 0; LOC20 = nimIntToStr(j); errorhandler_148108.ClEnv? errorhandler_148108.ClPrc(((NU8) 1), LOC20, NIM_FALSE, errorhandler_148108.ClEnv):((TMP566)(errorhandler_148108.ClPrc))(((NU8) 1), LOC20, NIM_FALSE); } goto LA16; LA18: ; { NI TMP567; nimln(268, "ropes.nim"); nimln(268, "ropes.nim"); TMP567 = subInt(j, 1); if ((NU)((NI32)(TMP567)) >= (NU)(argsLen0)) raiseIndexError(); app_148040(&result, args[(NI32)(TMP567)]); } LA16: ; } break; case 110: { nimln(270, "ropes.nim"); app_148040(&result, softrnl_149435); nimln(271, "ropes.nim"); i = addInt(i, 1); } break; case 78: { nimln(273, "ropes.nim"); app_148040(&result, rnl_149434); nimln(274, "ropes.nim"); i = addInt(i, 1); } break; default: { NimStringDesc* LOC25; nimln(276, "ropes.nim"); nimln(276, "ropes.nim"); if ((NU)(i) > (NU)(frmt->Sup.len)) raiseIndexError(); LOC25 = 0; LOC25 = nimCharToStr(frmt->data[i]); errorhandler_148108.ClEnv? errorhandler_148108.ClPrc(((NU8) 1), LOC25, NIM_FALSE, errorhandler_148108.ClEnv):((TMP568)(errorhandler_148108.ClPrc))(((NU8) 1), LOC25, NIM_FALSE); } break; } } LA4: ; nimln(277, "ropes.nim"); start = i; nimln(278, "ropes.nim"); while (1) { nimln(278, "ropes.nim"); if (!(i < length)) goto LA26; nimln(279, "ropes.nim"); { nimln(279, "ropes.nim"); nimln(279, "ropes.nim"); if ((NU)(i) > (NU)(frmt->Sup.len)) raiseIndexError(); if (!!(((NU8)(frmt->data[i]) == (NU8)(36)))) goto LA29; nimln(279, "ropes.nim"); i = addInt(i, 1); } goto LA27; LA29: ; { nimln(280, "ropes.nim"); goto LA26; } LA27: ; } LA26: ; nimln(281, "ropes.nim"); { NI TMP569; NI TMP570; NimStringDesc* LOC36; nimln(281, "ropes.nim"); nimln(281, "ropes.nim"); TMP569 = subInt(i, 1); if (!(start <= (NI32)(TMP569))) goto LA34; nimln(282, "ropes.nim"); nimln(282, "ropes.nim"); nimln(282, "ropes.nim"); TMP570 = subInt(i, 1); LOC36 = 0; LOC36 = copyStrLast(frmt, start, (NI32)(TMP570)); app_148046(&result, LOC36); } LA34: ; } LA1: ; nimln(283, "ropes.nim"); { NIM_BOOL LOC39; nimln(283, "ropes.nim"); nimln(283, "ropes.nim"); LOC39 = 0; LOC39 = ropeinvariant_148098(result); if (!!(LOC39)) goto LA40; nimln(283, "ropes.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP545)); } LA40: ; popFrame(); return result; }