N_NIMCALL(tsym191843*, importmoduleas_259873)(tnode191813* n, tsym191843* realmodule) { tsym191843* result; nimfr("importModuleAs", "importer.nim") result = 0; nimln(150, "importer.nim"); result = realmodule; nimln(151, "importer.nim"); { nimln(151, "importer.nim"); nimln(151, "importer.nim"); if (!!(((*n).Kind == ((NU8) 78)))) goto LA3; } goto LA1; LA3: ; { NIM_BOOL LOC6; NI LOC7; nimln(152, "importer.nim"); LOC6 = 0; nimln(152, "importer.nim"); nimln(152, "importer.nim"); nimln(152, "importer.nim"); LOC7 = 0; LOC7 = len_192274(n); LOC6 = !((LOC7 == 2)); if (LOC6) goto LA8; nimln(152, "importer.nim"); nimln(152, "importer.nim"); if (((TMP3276[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3277)); if ((NU)(1) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); LOC6 = !(((*(*n).kindU.S6.Sons->data[1]).Kind == ((NU8) 2))); LA8: ; if (!LOC6) goto LA9; nimln(153, "importer.nim"); localerror_168571((*n).Info, ((NU16) 4), ((NimStringDesc*) &TMP3292)); } goto LA1; LA9: ; { nimln(154, "importer.nim"); nimln(154, "importer.nim"); if (((TMP3276[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3277)); if ((NU)(1) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); if (!(((TMP3272[(*(*n).kindU.S6.Sons->data[1]).Kind/8] &(1<<((*(*n).kindU.S6.Sons->data[1]).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3273)); if (!!(((*(*(*n).kindU.S6.Sons->data[1]).kindU.S5.Ident).Sup.Id == (*(*realmodule).Name).Sup.Id))) goto LA12; nimln(156, "importer.nim"); if (((TMP3276[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3277)); if ((NU)(1) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); if (!(((TMP3272[(*(*n).kindU.S6.Sons->data[1]).Kind/8] &(1<<((*(*n).kindU.S6.Sons->data[1]).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3273)); if (((TMP3276[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3277)); if ((NU)(1) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); result = createmodulealias_194841(realmodule, (*(*n).kindU.S6.Sons->data[1]).kindU.S5.Ident, (*(*n).kindU.S6.Sons->data[1]).Info); } goto LA1; LA12: ; LA1: ; popFrame(); return result; }
N_NIMCALL(void, annotatetype_420194)(tnode191813* n, ttype191847* t) { ttype191847* x; nimfr("annotateType", "semmacrosanity.nim") nimln(37, "semmacrosanity.nim"); x = skiptypes_195793(t, IL64(211106232576256)); nimln(40, "semmacrosanity.nim"); switch ((*n).Kind) { case ((NU8) 37): { nimln(42, "semmacrosanity.nim"); { NI i_420229; NI HEX3Atmp_420404; NI LOC6; NI res_420406; nimln(42, "semmacrosanity.nim"); if (!((*x).Kind == ((NU8) 17))) goto LA4; nimln(43, "semmacrosanity.nim"); asgnRefNoCycle((void**) &(*n).Typ, t); i_420229 = 0; HEX3Atmp_420404 = 0; nimln(44, "semmacrosanity.nim"); nimln(44, "semmacrosanity.nim"); nimln(44, "semmacrosanity.nim"); LOC6 = 0; LOC6 = len_192274(n); HEX3Atmp_420404 = subInt(LOC6, 1); nimln(1458, "system.nim"); res_420406 = 0; nimln(1459, "system.nim"); while (1) { tsym191843* field; nimln(1459, "system.nim"); if (!(res_420406 <= HEX3Atmp_420404)) goto LA7; nimln(1458, "system.nim"); i_420229 = res_420406; nimln(45, "semmacrosanity.nim"); field = ithfield_420007((*x).N, i_420229); nimln(46, "semmacrosanity.nim"); { NimStringDesc* LOC12; NimStringDesc* LOC13; nimln(46, "semmacrosanity.nim"); if (!field == 0) goto LA10; nimln(46, "semmacrosanity.nim"); nimln(46, "semmacrosanity.nim"); LOC12 = 0; nimln(46, "semmacrosanity.nim"); LOC13 = 0; LOC13 = nimIntToStr(i_420229); LOC12 = rawNewString(LOC13->Sup.len + 23); appendString(LOC12, ((NimStringDesc*) &TMP5691)); appendString(LOC12, LOC13); globalerror_168565((*n).Info, LOC12); } goto LA8; LA10: ; { nimln(47, "semmacrosanity.nim"); if (((TMP5679[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5680)); if ((NU)(i_420229) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); annotatetype_420194((*n).kindU.S6.Sons->data[i_420229], (*field).Typ); } LA8: ; nimln(1461, "system.nim"); res_420406 = addInt(res_420406, 1); } LA7: ; } goto LA2; LA4: ; { NI i_420286; NI HEX3Atmp_420408; NI LOC18; NI res_420410; nimln(48, "semmacrosanity.nim"); if (!((*x).Kind == ((NU8) 18))) goto LA16; nimln(49, "semmacrosanity.nim"); asgnRefNoCycle((void**) &(*n).Typ, t); i_420286 = 0; HEX3Atmp_420408 = 0; nimln(50, "semmacrosanity.nim"); nimln(50, "semmacrosanity.nim"); nimln(50, "semmacrosanity.nim"); LOC18 = 0; LOC18 = len_192274(n); HEX3Atmp_420408 = subInt(LOC18, 1); nimln(1458, "system.nim"); res_420410 = 0; nimln(1459, "system.nim"); while (1) { nimln(1459, "system.nim"); if (!(res_420410 <= HEX3Atmp_420408)) goto LA19; nimln(1458, "system.nim"); i_420286 = res_420410; nimln(51, "semmacrosanity.nim"); { NI LOC22; NimStringDesc* LOC25; NimStringDesc* LOC26; nimln(51, "semmacrosanity.nim"); nimln(51, "semmacrosanity.nim"); LOC22 = 0; LOC22 = len_195569(x); if (!(LOC22 <= i_420286)) goto LA23; nimln(51, "semmacrosanity.nim"); nimln(51, "semmacrosanity.nim"); LOC25 = 0; nimln(51, "semmacrosanity.nim"); LOC26 = 0; LOC26 = nimIntToStr(i_420286); LOC25 = rawNewString(LOC26->Sup.len + 23); appendString(LOC25, ((NimStringDesc*) &TMP5691)); appendString(LOC25, LOC26); globalerror_168565((*n).Info, LOC25); } goto LA20; LA23: ; { nimln(52, "semmacrosanity.nim"); if (((TMP5679[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5680)); if ((NU)(i_420286) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); if ((NU)(i_420286) >= (NU)((*x).Sons->Sup.len)) raiseIndexError(); annotatetype_420194((*n).kindU.S6.Sons->data[i_420286], (*x).Sons->data[i_420286]); } LA20: ; nimln(1461, "system.nim"); res_420410 = addInt(res_420410, 1); } LA19: ; } goto LA2; LA16: ; { NIM_BOOL LOC29; nimln(53, "semmacrosanity.nim"); LOC29 = 0; nimln(53, "semmacrosanity.nim"); LOC29 = ((*x).Kind == ((NU8) 25)); if (!(LOC29)) goto LA30; nimln(53, "semmacrosanity.nim"); LOC29 = ((*x).Callconv == ((NU8) 8)); LA30: ; if (!LOC29) goto LA31; nimln(54, "semmacrosanity.nim"); asgnRefNoCycle((void**) &(*n).Typ, t); } goto LA2; LA31: ; { nimln(56, "semmacrosanity.nim"); globalerror_168565((*n).Info, ((NimStringDesc*) &TMP5692)); } LA2: ; } break; case ((NU8) 41): { nimln(58, "semmacrosanity.nim"); { tnode191813* m_420333; NI i_420413; NI HEX3Atmp_420415; NI LOC39; NI res_420417; nimln(58, "semmacrosanity.nim"); if (!((*x).Kind == ((NU8) 4) || (*x).Kind == ((NU8) 16) || (*x).Kind == ((NU8) 24) || (*x).Kind == ((NU8) 27))) goto LA37; nimln(59, "semmacrosanity.nim"); asgnRefNoCycle((void**) &(*n).Typ, t); m_420333 = 0; i_420413 = 0; HEX3Atmp_420415 = 0; nimln(1521, "ast.nim"); nimln(1521, "ast.nim"); nimln(1521, "ast.nim"); LOC39 = 0; LOC39 = len_192274(n); HEX3Atmp_420415 = subInt(LOC39, 1); nimln(1458, "system.nim"); res_420417 = 0; nimln(1459, "system.nim"); while (1) { ttype191847* LOC41; nimln(1459, "system.nim"); if (!(res_420417 <= HEX3Atmp_420415)) goto LA40; nimln(1458, "system.nim"); i_420413 = res_420417; nimln(1521, "ast.nim"); if (((TMP5679[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5680)); if ((NU)(i_420413) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); m_420333 = (*n).kindU.S6.Sons->data[i_420413]; nimln(60, "semmacrosanity.nim"); nimln(60, "semmacrosanity.nim"); LOC41 = 0; LOC41 = elemtype_227559(x); annotatetype_420194(m_420333, LOC41); nimln(1461, "system.nim"); res_420417 = addInt(res_420417, 1); } LA40: ; } goto LA35; LA37: ; { nimln(62, "semmacrosanity.nim"); globalerror_168565((*n).Info, ((NimStringDesc*) &TMP5693)); } LA35: ; } break; case ((NU8) 39): { nimln(64, "semmacrosanity.nim"); { tnode191813* m_420348; NI i_420419; NI HEX3Atmp_420421; NI LOC48; NI res_420423; nimln(64, "semmacrosanity.nim"); if (!((*x).Kind == ((NU8) 19))) goto LA46; nimln(65, "semmacrosanity.nim"); asgnRefNoCycle((void**) &(*n).Typ, t); m_420348 = 0; i_420419 = 0; HEX3Atmp_420421 = 0; nimln(1521, "ast.nim"); nimln(1521, "ast.nim"); nimln(1521, "ast.nim"); LOC48 = 0; LOC48 = len_192274(n); HEX3Atmp_420421 = subInt(LOC48, 1); nimln(1458, "system.nim"); res_420423 = 0; nimln(1459, "system.nim"); while (1) { ttype191847* LOC50; nimln(1459, "system.nim"); if (!(res_420423 <= HEX3Atmp_420421)) goto LA49; nimln(1458, "system.nim"); i_420419 = res_420423; nimln(1521, "ast.nim"); if (((TMP5679[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5680)); if ((NU)(i_420419) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); m_420348 = (*n).kindU.S6.Sons->data[i_420419]; nimln(66, "semmacrosanity.nim"); nimln(66, "semmacrosanity.nim"); LOC50 = 0; LOC50 = elemtype_227559(x); annotatetype_420194(m_420348, LOC50); nimln(1461, "system.nim"); res_420423 = addInt(res_420423, 1); } LA49: ; } goto LA44; LA46: ; { nimln(68, "semmacrosanity.nim"); globalerror_168565((*n).Info, ((NimStringDesc*) &TMP5694)); } LA44: ; } break; case ((NU8) 16) ... ((NU8) 19): { nimln(70, "semmacrosanity.nim"); { nimln(70, "semmacrosanity.nim"); if (!((*x).Kind >= ((NU8) 36) && (*x).Kind <= ((NU8) 39))) goto LA55; nimln(71, "semmacrosanity.nim"); asgnRefNoCycle((void**) &(*n).Typ, t); } goto LA53; LA55: ; { nimln(73, "semmacrosanity.nim"); globalerror_168565((*n).Info, ((NimStringDesc*) &TMP5695)); } LA53: ; } break; case ((NU8) 5) ... ((NU8) 15): { nimln(75, "semmacrosanity.nim"); { nimln(75, "semmacrosanity.nim"); if (!((*x).Kind >= ((NU8) 31) && (*x).Kind <= ((NU8) 44) || (*x).Kind == ((NU8) 1) || (*x).Kind == ((NU8) 2) || (*x).Kind == ((NU8) 14))) goto LA61; nimln(76, "semmacrosanity.nim"); asgnRefNoCycle((void**) &(*n).Typ, t); } goto LA59; LA61: ; { nimln(78, "semmacrosanity.nim"); globalerror_168565((*n).Info, ((NimStringDesc*) &TMP5696)); } LA59: ; } break; case ((NU8) 20) ... ((NU8) 22): { nimln(80, "semmacrosanity.nim"); { nimln(80, "semmacrosanity.nim"); if (!((*x).Kind == ((NU8) 28) || (*x).Kind == ((NU8) 29))) goto LA67; nimln(81, "semmacrosanity.nim"); asgnRefNoCycle((void**) &(*n).Typ, t); } goto LA65; LA67: ; { nimln(83, "semmacrosanity.nim"); globalerror_168565((*n).Info, ((NimStringDesc*) &TMP5697)); } LA65: ; } break; case ((NU8) 23): { nimln(85, "semmacrosanity.nim"); { nimln(85, "semmacrosanity.nim"); 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 LA73; nimln(86, "semmacrosanity.nim"); asgnRefNoCycle((void**) &(*n).Typ, t); } goto LA71; LA73: ; { nimln(88, "semmacrosanity.nim"); globalerror_168565((*n).Info, ((NimStringDesc*) &TMP5698)); } LA71: ; } break; default: { } break; } popFrame(); }
N_NIMCALL(NimStringDesc*, rendertype_342208)(tnode191813* n) { NimStringDesc* result; nimfr("renderType", "typesrenderer.nim") result = 0; nimln(33, "typesrenderer.nim"); switch ((*n).Kind) { case ((NU8) 2): { nimln(34, "typesrenderer.nim"); if (!(((TMP4772[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP4773)); result = copyString((*(*n).kindU.S5.Ident).S); } break; case ((NU8) 3): { nimln(35, "typesrenderer.nim"); if (!(((TMP4775[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP4776)); result = typetostring_227020((*(*n).kindU.S4.Sym).Typ, ((NU8) 0)); } break; case ((NU8) 141): { tnode191813* LOC9; nimln(37, "typesrenderer.nim"); { NI LOC6; nimln(37, "typesrenderer.nim"); nimln(37, "typesrenderer.nim"); nimln(37, "typesrenderer.nim"); LOC6 = 0; LOC6 = len_192274(n); if (!!((LOC6 == 1))) goto LA7; nimln(37, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4779)); } LA7: ; nimln(38, "typesrenderer.nim"); nimln(38, "typesrenderer.nim"); LOC9 = 0; LOC9 = HEX5BHEX5D_192711(n, 0); result = rendertype_342208(LOC9); } break; case ((NU8) 139): { NimStringDesc* LOC16; tnode191813* LOC17; NimStringDesc* LOC18; nimln(40, "typesrenderer.nim"); { NI LOC13; nimln(40, "typesrenderer.nim"); nimln(40, "typesrenderer.nim"); nimln(40, "typesrenderer.nim"); LOC13 = 0; LOC13 = len_192274(n); if (!!((LOC13 == 1))) goto LA14; nimln(40, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4779)); } LA14: ; nimln(41, "typesrenderer.nim"); nimln(41, "typesrenderer.nim"); LOC16 = 0; nimln(41, "typesrenderer.nim"); nimln(41, "typesrenderer.nim"); LOC17 = 0; LOC17 = HEX5BHEX5D_192711(n, 0); LOC18 = 0; LOC18 = rendertype_342208(LOC17); LOC16 = rawNewString(LOC18->Sup.len + 4); appendString(LOC16, ((NimStringDesc*) &TMP4780)); appendString(LOC16, LOC18); result = LOC16; } break; case ((NU8) 140): { NimStringDesc* LOC25; tnode191813* LOC26; NimStringDesc* LOC27; nimln(43, "typesrenderer.nim"); { NI LOC22; nimln(43, "typesrenderer.nim"); nimln(43, "typesrenderer.nim"); nimln(43, "typesrenderer.nim"); LOC22 = 0; LOC22 = len_192274(n); if (!!((LOC22 == 1))) goto LA23; nimln(43, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4779)); } LA23: ; nimln(44, "typesrenderer.nim"); nimln(44, "typesrenderer.nim"); LOC25 = 0; nimln(44, "typesrenderer.nim"); nimln(44, "typesrenderer.nim"); LOC26 = 0; LOC26 = HEX5BHEX5D_192711(n, 0); LOC27 = 0; LOC27 = rendertype_342208(LOC26); LOC25 = rawNewString(LOC27->Sup.len + 4); appendString(LOC25, ((NimStringDesc*) &TMP4781)); appendString(LOC25, LOC27); result = LOC25; } break; case ((NU8) 145): { tnode191813* params; NI i_343423; NI HEX3Atmp_344401; NI LOC43; NI res_344403; nimln(46, "typesrenderer.nim"); { NI LOC31; nimln(46, "typesrenderer.nim"); nimln(46, "typesrenderer.nim"); nimln(46, "typesrenderer.nim"); LOC31 = 0; LOC31 = len_192274(n); if (!!((1 < LOC31))) goto LA32; nimln(46, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4782)); } LA32: ; nimln(47, "typesrenderer.nim"); params = HEX5BHEX5D_192711(n, 0); nimln(48, "typesrenderer.nim"); { nimln(48, "typesrenderer.nim"); nimln(48, "typesrenderer.nim"); if (!!(((*params).Kind == ((NU8) 76)))) goto LA36; nimln(48, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4783)); } LA36: ; nimln(49, "typesrenderer.nim"); { NI LOC40; nimln(49, "typesrenderer.nim"); nimln(49, "typesrenderer.nim"); nimln(49, "typesrenderer.nim"); LOC40 = 0; LOC40 = len_192274(params); if (!!((0 < LOC40))) goto LA41; nimln(49, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4784)); } LA41: ; nimln(50, "typesrenderer.nim"); result = copyString(((NimStringDesc*) &TMP4785)); i_343423 = 0; HEX3Atmp_344401 = 0; nimln(51, "typesrenderer.nim"); nimln(51, "typesrenderer.nim"); nimln(51, "typesrenderer.nim"); LOC43 = 0; LOC43 = len_192274(params); HEX3Atmp_344401 = subInt(LOC43, 1); nimln(1458, "system.nim"); res_344403 = 1; nimln(1459, "system.nim"); while (1) { NimStringDesc* LOC45; tnode191813* LOC46; NimStringDesc* LOC47; nimln(1459, "system.nim"); if (!(res_344403 <= HEX3Atmp_344401)) goto LA44; nimln(1458, "system.nim"); i_343423 = res_344403; nimln(51, "typesrenderer.nim"); nimln(51, "typesrenderer.nim"); LOC45 = 0; nimln(51, "typesrenderer.nim"); nimln(51, "typesrenderer.nim"); LOC46 = 0; LOC46 = HEX5BHEX5D_192711(params, i_343423); LOC47 = 0; LOC47 = rendertype_342208(LOC46); LOC45 = rawNewString(LOC47->Sup.len + 1); appendString(LOC45, LOC47); appendChar(LOC45, 44); result = resizeString(result, LOC45->Sup.len + 0); appendString(result, LOC45); nimln(1461, "system.nim"); res_344403 = addInt(res_344403, 1); } LA44: ; nimln(52, "typesrenderer.nim"); nimln(52, "typesrenderer.nim"); nimln(52, "typesrenderer.nim"); if ((NU)(subInt(result->Sup.len, 1)) > (NU)(result->Sup.len)) raiseIndexError(); result->data[subInt(result->Sup.len, 1)] = 41; } break; case ((NU8) 35): { NI typepos; NI LOC54; NI TMP4787; NimStringDesc* typestr; tnode191813* LOC55; NI i_343624; NI HEX3Atmp_344405; NI res_344407; nimln(54, "typesrenderer.nim"); { NI LOC51; nimln(54, "typesrenderer.nim"); nimln(54, "typesrenderer.nim"); nimln(54, "typesrenderer.nim"); LOC51 = 0; LOC51 = len_192274(n); if (!!((3 <= LOC51))) goto LA52; nimln(54, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4786)); } LA52: ; nimln(55, "typesrenderer.nim"); nimln(55, "typesrenderer.nim"); nimln(55, "typesrenderer.nim"); LOC54 = 0; LOC54 = len_192274(n); TMP4787 = subInt(LOC54, 2); typepos = (NI64)(TMP4787); nimln(56, "typesrenderer.nim"); nimln(56, "typesrenderer.nim"); LOC55 = 0; LOC55 = HEX5BHEX5D_192711(n, typepos); typestr = rendertype_342208(LOC55); nimln(57, "typesrenderer.nim"); result = copyString(typestr); i_343624 = 0; HEX3Atmp_344405 = 0; nimln(58, "typesrenderer.nim"); nimln(58, "typesrenderer.nim"); HEX3Atmp_344405 = subInt(typepos, 1); nimln(1458, "system.nim"); res_344407 = 1; nimln(1459, "system.nim"); while (1) { NimStringDesc* LOC62; nimln(1459, "system.nim"); if (!(res_344407 <= HEX3Atmp_344405)) goto LA56; nimln(1458, "system.nim"); i_343624 = res_344407; nimln(59, "typesrenderer.nim"); { tnode191813* LOC59; nimln(59, "typesrenderer.nim"); nimln(59, "typesrenderer.nim"); nimln(59, "typesrenderer.nim"); LOC59 = 0; LOC59 = HEX5BHEX5D_192711(n, i_343624); if (!!(((*LOC59).Kind == ((NU8) 2)))) goto LA60; nimln(59, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4788)); } LA60: ; nimln(60, "typesrenderer.nim"); nimln(60, "typesrenderer.nim"); LOC62 = 0; LOC62 = rawNewString(typestr->Sup.len + 1); appendChar(LOC62, 44); appendString(LOC62, typestr); result = resizeString(result, LOC62->Sup.len + 0); appendString(result, LOC62); nimln(1461, "system.nim"); res_344407 = addInt(res_344407, 1); } LA56: ; } break; case ((NU8) 133): { NI i_344023; NI HEX3Atmp_344409; NI LOC69; NI res_344411; nimln(62, "typesrenderer.nim"); { NI LOC66; nimln(62, "typesrenderer.nim"); nimln(62, "typesrenderer.nim"); nimln(62, "typesrenderer.nim"); LOC66 = 0; LOC66 = len_192274(n); if (!!((0 < LOC66))) goto LA67; nimln(62, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4789)); } LA67: ; nimln(63, "typesrenderer.nim"); result = copyString(((NimStringDesc*) &TMP4790)); i_344023 = 0; HEX3Atmp_344409 = 0; nimln(64, "typesrenderer.nim"); nimln(64, "typesrenderer.nim"); nimln(64, "typesrenderer.nim"); LOC69 = 0; LOC69 = len_192274(n); HEX3Atmp_344409 = subInt(LOC69, 1); nimln(1458, "system.nim"); res_344411 = 0; nimln(1459, "system.nim"); while (1) { NimStringDesc* LOC71; tnode191813* LOC72; NimStringDesc* LOC73; nimln(1459, "system.nim"); if (!(res_344411 <= HEX3Atmp_344409)) goto LA70; nimln(1458, "system.nim"); i_344023 = res_344411; nimln(64, "typesrenderer.nim"); nimln(64, "typesrenderer.nim"); LOC71 = 0; nimln(64, "typesrenderer.nim"); nimln(64, "typesrenderer.nim"); LOC72 = 0; LOC72 = HEX5BHEX5D_192711(n, i_344023); LOC73 = 0; LOC73 = rendertype_342208(LOC72); LOC71 = rawNewString(LOC73->Sup.len + 1); appendString(LOC71, LOC73); appendChar(LOC71, 44); result = resizeString(result, LOC71->Sup.len + 0); appendString(result, LOC71); nimln(1461, "system.nim"); res_344411 = addInt(res_344411, 1); } LA70: ; nimln(65, "typesrenderer.nim"); nimln(65, "typesrenderer.nim"); nimln(65, "typesrenderer.nim"); if ((NU)(subInt(result->Sup.len, 1)) > (NU)(result->Sup.len)) raiseIndexError(); result->data[subInt(result->Sup.len, 1)] = 93; } break; case ((NU8) 42): { NimStringDesc* LOC80; tnode191813* LOC81; NimStringDesc* LOC82; NI i_344222; NI HEX3Atmp_344413; NI LOC83; NI res_344415; nimln(67, "typesrenderer.nim"); { NI LOC77; nimln(67, "typesrenderer.nim"); nimln(67, "typesrenderer.nim"); nimln(67, "typesrenderer.nim"); LOC77 = 0; LOC77 = len_192274(n); if (!!((2 <= LOC77))) goto LA78; nimln(67, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4791)); } LA78: ; nimln(68, "typesrenderer.nim"); nimln(68, "typesrenderer.nim"); LOC80 = 0; nimln(68, "typesrenderer.nim"); nimln(68, "typesrenderer.nim"); LOC81 = 0; LOC81 = HEX5BHEX5D_192711(n, 0); LOC82 = 0; LOC82 = rendertype_342208(LOC81); LOC80 = rawNewString(LOC82->Sup.len + 1); appendString(LOC80, LOC82); appendChar(LOC80, 91); result = LOC80; i_344222 = 0; HEX3Atmp_344413 = 0; nimln(69, "typesrenderer.nim"); nimln(69, "typesrenderer.nim"); nimln(69, "typesrenderer.nim"); LOC83 = 0; LOC83 = len_192274(n); HEX3Atmp_344413 = subInt(LOC83, 1); nimln(1458, "system.nim"); res_344415 = 1; nimln(1459, "system.nim"); while (1) { NimStringDesc* LOC85; tnode191813* LOC86; NimStringDesc* LOC87; nimln(1459, "system.nim"); if (!(res_344415 <= HEX3Atmp_344413)) goto LA84; nimln(1458, "system.nim"); i_344222 = res_344415; nimln(69, "typesrenderer.nim"); nimln(69, "typesrenderer.nim"); LOC85 = 0; nimln(69, "typesrenderer.nim"); nimln(69, "typesrenderer.nim"); LOC86 = 0; LOC86 = HEX5BHEX5D_192711(n, i_344222); LOC87 = 0; LOC87 = rendertype_342208(LOC86); LOC85 = rawNewString(LOC87->Sup.len + 1); appendString(LOC85, LOC87); appendChar(LOC85, 44); result = resizeString(result, LOC85->Sup.len + 0); appendString(result, LOC85); nimln(1461, "system.nim"); res_344415 = addInt(res_344415, 1); } LA84: ; nimln(70, "typesrenderer.nim"); nimln(70, "typesrenderer.nim"); nimln(70, "typesrenderer.nim"); if ((NU)(subInt(result->Sup.len, 1)) > (NU)(result->Sup.len)) raiseIndexError(); result->data[subInt(result->Sup.len, 1)] = 93; } break; default: { nimln(71, "typesrenderer.nim"); result = copyString(((NimStringDesc*) &TMP4769)); } break; } nimln(72, "typesrenderer.nim"); { nimln(72, "typesrenderer.nim"); nimln(72, "typesrenderer.nim"); nimln(72, "typesrenderer.nim"); if (!!(!(result == 0))) goto LA91; nimln(72, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4778)); } LA91: ; popFrame(); return result; }
N_NIMCALL(NimStringDesc*, renderplainsymbolname_342007)(tnode191813* n) { NimStringDesc* result; nimfr("renderPlainSymbolName", "typesrenderer.nim") result = 0; nimln(11, "typesrenderer.nim"); result = copyString(((NimStringDesc*) &TMP4769)); nimln(12, "typesrenderer.nim"); switch ((*n).Kind) { case ((NU8) 31): { NI i_342032; NI HEX3Atmp_342201; NI LOC2; NI res_342203; i_342032 = 0; HEX3Atmp_342201 = 0; nimln(14, "typesrenderer.nim"); nimln(14, "typesrenderer.nim"); nimln(14, "typesrenderer.nim"); LOC2 = 0; LOC2 = len_192274(n); HEX3Atmp_342201 = subInt(LOC2, 1); nimln(1458, "system.nim"); res_342203 = 0; nimln(1459, "system.nim"); while (1) { NI LOC4; tnode191813* LOC5; nimln(1459, "system.nim"); if (!(res_342203 <= HEX3Atmp_342201)) goto LA3; nimln(1458, "system.nim"); i_342032 = res_342203; nimln(15, "typesrenderer.nim"); nimln(15, "typesrenderer.nim"); nimln(15, "typesrenderer.nim"); nimln(15, "typesrenderer.nim"); LOC4 = 0; LOC4 = len_192274(n); LOC5 = 0; LOC5 = HEX5BHEX5D_192711(n, subInt(LOC4, 1)); result = renderplainsymbolname_342007(LOC5); nimln(16, "typesrenderer.nim"); { nimln(16, "typesrenderer.nim"); nimln(16, "typesrenderer.nim"); if (!(0 < result->Sup.len)) goto LA8; nimln(17, "typesrenderer.nim"); goto BeforeRet; } LA8: ; nimln(1461, "system.nim"); res_342203 = addInt(res_342203, 1); } LA3: ; } break; case ((NU8) 2): { nimln(19, "typesrenderer.nim"); { nimln(19, "typesrenderer.nim"); nimln(19, "typesrenderer.nim"); if (!(((TMP4772[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP4773)); if (!!(eqStrings((*(*n).kindU.S5.Ident).S, ((NimStringDesc*) &TMP4774)))) goto LA13; nimln(20, "typesrenderer.nim"); if (!(((TMP4772[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP4773)); result = copyString((*(*n).kindU.S5.Ident).S); } LA13: ; } break; case ((NU8) 3): { nimln(22, "typesrenderer.nim"); if (!(((TMP4775[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP4776)); result = renderdefinitionname_215118((*n).kindU.S4.Sym, NIM_TRUE); } break; case ((NU8) 43): { tnode191813* LOC17; nimln(24, "typesrenderer.nim"); nimln(24, "typesrenderer.nim"); LOC17 = 0; LOC17 = HEX5BHEX5D_192711(n, 0); result = renderplainsymbolname_342007(LOC17); } break; case ((NU8) 53): { NI LOC19; tnode191813* LOC20; nimln(26, "typesrenderer.nim"); nimln(26, "typesrenderer.nim"); nimln(26, "typesrenderer.nim"); nimln(26, "typesrenderer.nim"); LOC19 = 0; LOC19 = len_192274(n); LOC20 = 0; LOC20 = HEX5BHEX5D_192711(n, subInt(LOC19, 1)); result = renderplainsymbolname_342007(LOC20); } break; default: { NimStringDesc* LOC22; nimln(28, "typesrenderer.nim"); nimln(28, "typesrenderer.nim"); LOC22 = 0; nimln(28, "typesrenderer.nim"); LOC22 = rawNewString(reprEnum((*n).Kind, (&NTI191023))->Sup.len + 29); appendString(LOC22, ((NimStringDesc*) &TMP4777)); appendString(LOC22, reprEnum((*n).Kind, (&NTI191023))); internalerror_168591((*n).Info, LOC22); } break; } nimln(29, "typesrenderer.nim"); { nimln(29, "typesrenderer.nim"); nimln(29, "typesrenderer.nim"); nimln(29, "typesrenderer.nim"); if (!!(!(result == 0))) goto LA25; nimln(29, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4778)); } LA25: ; BeforeRet: ; popFrame(); return result; }
N_NIMCALL(void, renderparamtypes_344423)(TY10865** found, tnode191813* n) { nimfr("renderParamTypes", "typesrenderer.nim") nimln(81, "typesrenderer.nim"); switch ((*n).Kind) { case ((NU8) 76): { NI i_344450; NI HEX3Atmp_344835; NI LOC2; NI res_344837; i_344450 = 0; HEX3Atmp_344835 = 0; nimln(83, "typesrenderer.nim"); nimln(83, "typesrenderer.nim"); nimln(83, "typesrenderer.nim"); LOC2 = 0; LOC2 = len_192274(n); HEX3Atmp_344835 = subInt(LOC2, 1); nimln(1458, "system.nim"); res_344837 = 1; nimln(1459, "system.nim"); while (1) { tnode191813* LOC4; nimln(1459, "system.nim"); if (!(res_344837 <= HEX3Atmp_344835)) goto LA3; nimln(1458, "system.nim"); i_344450 = res_344837; nimln(83, "typesrenderer.nim"); nimln(83, "typesrenderer.nim"); LOC4 = 0; LOC4 = HEX5BHEX5D_192711(n, i_344450); renderparamtypes_344423(found, LOC4); nimln(1461, "system.nim"); res_344837 = addInt(res_344837, 1); } LA3: ; } break; case ((NU8) 35): { NI typepos; NI LOC6; NI TMP4792; NimStringDesc* typestr; tnode191813* LOC11; NI i_344647; NI HEX3Atmp_344839; NI res_344841; nimln(86, "typesrenderer.nim"); nimln(86, "typesrenderer.nim"); nimln(86, "typesrenderer.nim"); LOC6 = 0; LOC6 = len_192274(n); TMP4792 = subInt(LOC6, 2); typepos = (NI64)(TMP4792); nimln(87, "typesrenderer.nim"); { nimln(87, "typesrenderer.nim"); nimln(87, "typesrenderer.nim"); if (!!((0 < typepos))) goto LA9; nimln(87, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4793)); } LA9: ; nimln(88, "typesrenderer.nim"); nimln(88, "typesrenderer.nim"); LOC11 = 0; LOC11 = HEX5BHEX5D_192711(n, typepos); typestr = rendertype_342208(LOC11); nimln(89, "typesrenderer.nim"); { NIM_BOOL LOC14; NI TMP4794; tnode191813* LOC16; ttype191847* typ; NI TMP4795; tnode191813* LOC19; nimln(89, "typesrenderer.nim"); LOC14 = 0; nimln(89, "typesrenderer.nim"); nimln(89, "typesrenderer.nim"); LOC14 = (typestr->Sup.len < 1); if (!(LOC14)) goto LA15; nimln(89, "typesrenderer.nim"); nimln(89, "typesrenderer.nim"); nimln(89, "typesrenderer.nim"); nimln(89, "typesrenderer.nim"); TMP4794 = addInt(typepos, 1); LOC16 = 0; LOC16 = HEX5BHEX5D_192711(n, (NI64)(TMP4794)); LOC14 = !(((*LOC16).Kind == ((NU8) 1))); LA15: ; if (!LOC14) goto LA17; nimln(91, "typesrenderer.nim"); nimln(91, "typesrenderer.nim"); nimln(91, "typesrenderer.nim"); TMP4795 = addInt(typepos, 1); LOC19 = 0; LOC19 = HEX5BHEX5D_192711(n, (NI64)(TMP4795)); typ = (*LOC19).Typ; nimln(92, "typesrenderer.nim"); { nimln(92, "typesrenderer.nim"); nimln(92, "typesrenderer.nim"); if (!!(typ == 0)) goto LA22; nimln(92, "typesrenderer.nim"); typestr = typetostring_227020(typ, ((NU8) 2)); } LA22: ; nimln(93, "typesrenderer.nim"); { nimln(93, "typesrenderer.nim"); nimln(93, "typesrenderer.nim"); if (!(typestr->Sup.len < 1)) goto LA26; nimln(93, "typesrenderer.nim"); goto BeforeRet; } LA26: ; } LA17: ; i_344647 = 0; HEX3Atmp_344839 = 0; nimln(94, "typesrenderer.nim"); nimln(94, "typesrenderer.nim"); HEX3Atmp_344839 = subInt(typepos, 1); nimln(1458, "system.nim"); res_344841 = 0; nimln(1459, "system.nim"); while (1) { NimStringDesc* LOC34; nimln(1459, "system.nim"); if (!(res_344841 <= HEX3Atmp_344839)) goto LA28; nimln(1458, "system.nim"); i_344647 = res_344841; nimln(95, "typesrenderer.nim"); { tnode191813* LOC31; nimln(95, "typesrenderer.nim"); nimln(95, "typesrenderer.nim"); nimln(95, "typesrenderer.nim"); LOC31 = 0; LOC31 = HEX5BHEX5D_192711(n, i_344647); if (!!(((*LOC31).Kind == ((NU8) 2)))) goto LA32; nimln(95, "typesrenderer.nim"); failedassertimpl_80421(((NimStringDesc*) &TMP4788)); } LA32: ; nimln(96, "typesrenderer.nim"); (*found) = (TY10865*) incrSeq(&((*found))->Sup, sizeof(NimStringDesc*)); LOC34 = 0; LOC34 = (*found)->data[(*found)->Sup.len-1]; (*found)->data[(*found)->Sup.len-1] = copyStringRC1(typestr); if (LOC34) nimGCunrefNoCycle(LOC34); nimln(1461, "system.nim"); res_344841 = addInt(res_344841, 1); } LA28: ; } break; default: { NimStringDesc* LOC36; nimln(98, "typesrenderer.nim"); nimln(98, "typesrenderer.nim"); LOC36 = 0; nimln(98, "typesrenderer.nim"); LOC36 = rawNewString(reprEnum((*n).Kind, (&NTI191023))->Sup.len + 31); appendString(LOC36, ((NimStringDesc*) &TMP4796)); appendString(LOC36, reprEnum((*n).Kind, (&NTI191023))); internalerror_168591((*n).Info, LOC36); } break; } BeforeRet: ; popFrame(); }
N_NIMCALL(NU8, ispartof_416411)(tnode191813* a, tnode191813* b) { NU8 result; nimfr("isPartOf", "aliases.nim") result = 0; nimln(94, "aliases.nim"); { nimln(94, "aliases.nim"); if (!((*a).Kind == (*b).Kind)) goto LA3; nimln(95, "aliases.nim"); switch ((*a).Kind) { case ((NU8) 3): { nimln(99, "aliases.nim"); { nimln(99, "aliases.nim"); if (!(((TMP5626[(*a).Kind/8] &(1<<((*a).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP5627)); if (!(((TMP5626[(*b).Kind/8] &(1<<((*b).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP5627)); if (!((*(*a).kindU.S4.Sym).Sup.Id == (*(*b).kindU.S4.Sym).Sup.Id)) goto LA8; nimln(99, "aliases.nim"); result = ((NU8) 2); } goto LA6; LA8: ; { NIM_BOOL LOC11; nimln(100, "aliases.nim"); LOC11 = 0; nimln(100, "aliases.nim"); if (!(((TMP5626[(*a).Kind/8] &(1<<((*a).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP5627)); LOC11 = ((4384 &(1<<(((*(*a).kindU.S4.Sym).Kind)&31)))!=0); if (LOC11) goto LA12; nimln(100, "aliases.nim"); if (!(((TMP5626[(*b).Kind/8] &(1<<((*b).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP5627)); LOC11 = ((4384 &(1<<(((*(*b).kindU.S4.Sym).Kind)&31)))!=0); LA12: ; if (!LOC11) goto LA13; nimln(103, "aliases.nim"); result = ((NU8) 0); } goto LA6; LA13: ; { nimln(106, "aliases.nim"); { NU8 LOC18; nimln(106, "aliases.nim"); nimln(106, "aliases.nim"); nimln(106, "aliases.nim"); if (!(((TMP5626[(*a).Kind/8] &(1<<((*a).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP5627)); if (!(((TMP5626[(*b).Kind/8] &(1<<((*b).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP5627)); LOC18 = 0; LOC18 = ispartof_416402((*(*a).kindU.S4.Sym).Typ, (*(*b).kindU.S4.Sym).Typ); if (!!((LOC18 == ((NU8) 0)))) goto LA19; nimln(107, "aliases.nim"); result = ((NU8) 1); } LA19: ; } LA6: ; } break; case ((NU8) 42): { tnode191813* LOC22; tnode191813* LOC23; nimln(109, "aliases.nim"); nimln(109, "aliases.nim"); LOC22 = 0; LOC22 = HEX5BHEX5D_192711(a, 0); nimln(109, "aliases.nim"); LOC23 = 0; LOC23 = HEX5BHEX5D_192711(b, 0); result = ispartof_416411(LOC22, LOC23); nimln(110, "aliases.nim"); { NIM_BOOL LOC26; NI LOC27; NI LOC29; nimln(110, "aliases.nim"); LOC26 = 0; nimln(110, "aliases.nim"); nimln(110, "aliases.nim"); LOC27 = 0; LOC27 = len_192274(a); LOC26 = (2 <= LOC27); if (!(LOC26)) goto LA28; nimln(110, "aliases.nim"); nimln(110, "aliases.nim"); LOC29 = 0; LOC29 = len_192274(b); LOC26 = (2 <= LOC29); LA28: ; if (!LOC26) goto LA30; nimln(112, "aliases.nim"); { NIM_BOOL LOC34; NIM_BOOL LOC35; tnode191813* LOC37; tnode191813* LOC39; tnode191813* x; tnode191813* y; nimln(112, "aliases.nim"); LOC34 = 0; nimln(112, "aliases.nim"); LOC35 = 0; nimln(112, "aliases.nim"); LOC35 = (result == ((NU8) 2)); if (!(LOC35)) goto LA36; nimln(112, "aliases.nim"); nimln(112, "aliases.nim"); LOC37 = 0; LOC37 = HEX5BHEX5D_192711(a, 1); LOC35 = isdeepconstexpr_225876(LOC37); LA36: ; LOC34 = LOC35; if (!(LOC34)) goto LA38; nimln(112, "aliases.nim"); nimln(112, "aliases.nim"); LOC39 = 0; LOC39 = HEX5BHEX5D_192711(b, 1); LOC34 = isdeepconstexpr_225876(LOC39); LA38: ; if (!LOC34) goto LA40; nimln(115, "aliases.nim"); nimln(115, "aliases.nim"); { tnode191813* LOC44; tnode191813* LOC47; nimln(115, "aliases.nim"); nimln(115, "aliases.nim"); LOC44 = 0; LOC44 = HEX5BHEX5D_192711(a, 1); if (!((*LOC44).Kind == ((NU8) 58))) goto LA45; nimln(115, "aliases.nim"); nimln(115, "aliases.nim"); LOC47 = 0; LOC47 = HEX5BHEX5D_192711(a, 1); x = HEX5BHEX5D_192711(LOC47, 1); } goto LA42; LA45: ; { nimln(115, "aliases.nim"); x = HEX5BHEX5D_192711(a, 1); } LA42: ; nimln(116, "aliases.nim"); nimln(116, "aliases.nim"); { tnode191813* LOC51; tnode191813* LOC54; nimln(116, "aliases.nim"); nimln(116, "aliases.nim"); LOC51 = 0; LOC51 = HEX5BHEX5D_192711(b, 1); if (!((*LOC51).Kind == ((NU8) 58))) goto LA52; nimln(116, "aliases.nim"); nimln(116, "aliases.nim"); LOC54 = 0; LOC54 = HEX5BHEX5D_192711(b, 1); y = HEX5BHEX5D_192711(LOC54, 1); } goto LA49; LA52: ; { nimln(116, "aliases.nim"); y = HEX5BHEX5D_192711(b, 1); } LA49: ; nimln(118, "aliases.nim"); { NIM_BOOL LOC58; nimln(118, "aliases.nim"); LOC58 = 0; LOC58 = samevalue_200271(x, y); if (!LOC58) goto LA59; nimln(118, "aliases.nim"); result = ((NU8) 2); } goto LA56; LA59: ; { nimln(119, "aliases.nim"); result = ((NU8) 0); } LA56: ; } LA40: ; } goto LA24; LA30: ; { nimln(123, "aliases.nim"); { nimln(123, "aliases.nim"); nimln(123, "aliases.nim"); if (!!((result == ((NU8) 2)))) goto LA65; nimln(124, "aliases.nim"); { NU8 LOC69; nimln(124, "aliases.nim"); nimln(124, "aliases.nim"); nimln(124, "aliases.nim"); LOC69 = 0; LOC69 = ispartof_416402((*a).Typ, (*b).Typ); if (!!((LOC69 == ((NU8) 0)))) goto LA70; nimln(124, "aliases.nim"); result = ((NU8) 1); } LA70: ; } LA65: ; } LA24: ; } break; case ((NU8) 45): { tnode191813* LOC73; tnode191813* LOC74; nimln(127, "aliases.nim"); nimln(127, "aliases.nim"); LOC73 = 0; LOC73 = HEX5BHEX5D_192711(a, 0); nimln(127, "aliases.nim"); LOC74 = 0; LOC74 = HEX5BHEX5D_192711(b, 0); result = ispartof_416411(LOC73, LOC74); nimln(128, "aliases.nim"); { nimln(128, "aliases.nim"); nimln(128, "aliases.nim"); if (!!((result == ((NU8) 0)))) goto LA77; nimln(130, "aliases.nim"); { tnode191813* LOC81; tnode191813* LOC82; nimln(130, "aliases.nim"); nimln(130, "aliases.nim"); nimln(130, "aliases.nim"); LOC81 = 0; LOC81 = HEX5BHEX5D_192711(a, 1); if (!(((TMP5626[(*LOC81).Kind/8] &(1<<((*LOC81).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP5627)); nimln(130, "aliases.nim"); LOC82 = 0; LOC82 = HEX5BHEX5D_192711(b, 1); if (!(((TMP5626[(*LOC82).Kind/8] &(1<<((*LOC82).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP5627)); if (!!(((*(*LOC81).kindU.S4.Sym).Sup.Id == (*(*LOC82).kindU.S4.Sym).Sup.Id))) goto LA83; nimln(131, "aliases.nim"); result = ((NU8) 0); } LA83: ; } LA77: ; } break; case ((NU8) 65): case ((NU8) 47): { tnode191813* LOC86; tnode191813* LOC87; nimln(134, "aliases.nim"); nimln(134, "aliases.nim"); LOC86 = 0; LOC86 = HEX5BHEX5D_192711(a, 0); nimln(134, "aliases.nim"); LOC87 = 0; LOC87 = HEX5BHEX5D_192711(b, 0); result = ispartof_416411(LOC86, LOC87); nimln(136, "aliases.nim"); { nimln(136, "aliases.nim"); nimln(136, "aliases.nim"); if (!!((result == ((NU8) 2)))) goto LA90; nimln(137, "aliases.nim"); { NU8 LOC94; nimln(137, "aliases.nim"); nimln(137, "aliases.nim"); nimln(137, "aliases.nim"); LOC94 = 0; LOC94 = ispartof_416402((*a).Typ, (*b).Typ); if (!!((LOC94 == ((NU8) 0)))) goto LA95; nimln(137, "aliases.nim"); result = ((NU8) 1); } LA95: ; } LA90: ; } break; case ((NU8) 58): case ((NU8) 59): case ((NU8) 60): { tnode191813* LOC98; tnode191813* LOC99; nimln(140, "aliases.nim"); nimln(140, "aliases.nim"); LOC98 = 0; LOC98 = HEX5BHEX5D_192711(a, 1); nimln(140, "aliases.nim"); LOC99 = 0; LOC99 = HEX5BHEX5D_192711(b, 1); result = ispartof_416411(LOC98, LOC99); } break; case ((NU8) 67): case ((NU8) 66): case ((NU8) 46): { tnode191813* LOC101; tnode191813* LOC102; nimln(142, "aliases.nim"); nimln(142, "aliases.nim"); LOC101 = 0; LOC101 = HEX5BHEX5D_192711(a, 0); nimln(142, "aliases.nim"); LOC102 = 0; LOC102 = HEX5BHEX5D_192711(b, 0); result = ispartof_416411(LOC101, LOC102); } break; default: { } break; } } goto LA1; LA3: ; { nimln(152, "aliases.nim"); switch ((*b).Kind) { case ((NU8) 45): case ((NU8) 42): case ((NU8) 67): case ((NU8) 66): case ((NU8) 46): { tnode191813* LOC106; nimln(155, "aliases.nim"); nimln(155, "aliases.nim"); LOC106 = 0; LOC106 = HEX5BHEX5D_192711(b, 0); result = ispartof_416411(a, LOC106); } break; case ((NU8) 65): case ((NU8) 47): { nimln(159, "aliases.nim"); { NU8 LOC110; tnode191813* LOC113; nimln(159, "aliases.nim"); nimln(159, "aliases.nim"); nimln(159, "aliases.nim"); LOC110 = 0; LOC110 = ispartof_416402((*a).Typ, (*b).Typ); if (!!((LOC110 == ((NU8) 0)))) goto LA111; nimln(160, "aliases.nim"); nimln(160, "aliases.nim"); LOC113 = 0; LOC113 = HEX5BHEX5D_192711(b, 0); result = ispartof_416411(a, LOC113); nimln(161, "aliases.nim"); { nimln(161, "aliases.nim"); if (!(result == ((NU8) 0))) goto LA116; nimln(161, "aliases.nim"); result = ((NU8) 1); } LA116: ; } LA111: ; } break; case ((NU8) 58): case ((NU8) 59): case ((NU8) 60): { tnode191813* LOC119; nimln(165, "aliases.nim"); nimln(165, "aliases.nim"); LOC119 = 0; LOC119 = HEX5BHEX5D_192711(b, 1); result = ispartof_416411(a, LOC119); } break; case ((NU8) 3): { nimln(169, "aliases.nim"); switch ((*a).Kind) { case ((NU8) 45): case ((NU8) 42): case ((NU8) 67): case ((NU8) 66): case ((NU8) 46): { tnode191813* LOC122; nimln(172, "aliases.nim"); nimln(172, "aliases.nim"); LOC122 = 0; LOC122 = HEX5BHEX5D_192711(a, 0); result = ispartof_416411(LOC122, b); } break; case ((NU8) 58): case ((NU8) 59): case ((NU8) 60): { tnode191813* LOC124; nimln(174, "aliases.nim"); nimln(174, "aliases.nim"); LOC124 = 0; LOC124 = HEX5BHEX5D_192711(a, 1); result = ispartof_416411(LOC124, b); } break; case ((NU8) 65): case ((NU8) 47): { nimln(177, "aliases.nim"); { NU8 LOC128; tnode191813* LOC131; nimln(177, "aliases.nim"); nimln(177, "aliases.nim"); nimln(177, "aliases.nim"); LOC128 = 0; LOC128 = ispartof_416402((*a).Typ, (*b).Typ); if (!!((LOC128 == ((NU8) 0)))) goto LA129; nimln(178, "aliases.nim"); nimln(178, "aliases.nim"); LOC131 = 0; LOC131 = HEX5BHEX5D_192711(a, 0); result = ispartof_416411(LOC131, b); nimln(179, "aliases.nim"); { nimln(179, "aliases.nim"); if (!(result == ((NU8) 0))) goto LA134; nimln(179, "aliases.nim"); result = ((NU8) 1); } LA134: ; } LA129: ; } break; default: { } break; } } break; default: { } break; } } LA1: ; popFrame(); return result; }
N_NIMCALL(tnode191813*, evaltemplate_395275)(tnode191813* n, tsym191843* tmpl, tsym191843* gensymowner) { tnode191813* result; tnode191813* args; templctx395010 ctx; tnode191813* body; nimfr("evalTemplate", "evaltempl.nim") result = 0; nimln(78, "evaltempl.nim"); evaltemplatecounter_395273 = addInt(evaltemplatecounter_395273, 1); nimln(79, "evaltempl.nim"); { nimln(79, "evaltempl.nim"); if (!(100 < evaltemplatecounter_395273)) goto LA3; nimln(80, "evaltempl.nim"); globalerror_168558((*n).Info, ((NU16) 183), ((NimStringDesc*) &TMP5466)); nimln(81, "evaltempl.nim"); result = n; } LA3: ; nimln(84, "evaltempl.nim"); args = evaltemplateargs_395174(n, tmpl); memset((void*)&ctx, 0, sizeof(ctx)); nimln(86, "evaltempl.nim"); ctx.Owner = tmpl; nimln(87, "evaltempl.nim"); ctx.Gensymowner = gensymowner; nimln(88, "evaltempl.nim"); initidtable_192130(&ctx.Mapping); nimln(90, "evaltempl.nim"); body = getbody_243243(tmpl); nimln(91, "evaltempl.nim"); { NIM_BOOL LOC7; nimln(91, "evaltempl.nim"); LOC7 = 0; LOC7 = isatom_198187(body); if (!LOC7) goto LA8; nimln(92, "evaltempl.nim"); result = newnodei_192109(((NU8) 37), (*body).Info); nimln(93, "evaltempl.nim"); evaltemplateaux_395024(body, args, &ctx, result); nimln(94, "evaltempl.nim"); { NI LOC12; nimln(94, "evaltempl.nim"); nimln(94, "evaltempl.nim"); LOC12 = 0; LOC12 = len_192274(result); if (!(LOC12 == 1)) goto LA13; nimln(94, "evaltempl.nim"); if (((TMP5461[(*result).Kind/8] &(1<<((*result).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5462)); if ((NU)(0) >= (NU)((*result).kindU.S6.Sons->Sup.len)) raiseIndexError(); result = (*result).kindU.S6.Sons->data[0]; } goto LA10; LA13: ; { NimStringDesc* LOC16; nimln(96, "evaltempl.nim"); nimln(97, "evaltempl.nim"); LOC16 = 0; LOC16 = rendertree_215051(result, 4); globalerror_168558((*result).Info, ((NU16) 1), LOC16); } LA10: ; } goto LA5; LA8: ; { NI i_395345; NI HEX3Atmp_395378; NI LOC22; NI TMP5468; NI res_395380; nimln(99, "evaltempl.nim"); result = copynode_192243(body); nimln(100, "evaltempl.nim"); nimln(100, "evaltempl.nim"); nimln(100, "evaltempl.nim"); ctx.Instlines = !(((*body).Kind == ((NU8) 114) || (*body).Kind == ((NU8) 125) || (*body).Kind == ((NU8) 111) || (*body).Kind == ((NU8) 126))); nimln(102, "evaltempl.nim"); { if (!ctx.Instlines) goto LA20; nimln(102, "evaltempl.nim"); (*result).Info = (*n).Info; } LA20: ; i_395345 = 0; HEX3Atmp_395378 = 0; nimln(103, "evaltempl.nim"); nimln(103, "evaltempl.nim"); nimln(103, "evaltempl.nim"); LOC22 = 0; LOC22 = safelen_192330(body); TMP5468 = subInt(LOC22, 1); HEX3Atmp_395378 = (NI64)(TMP5468); nimln(1451, "system.nim"); res_395380 = 0; nimln(1452, "system.nim"); while (1) { nimln(1452, "system.nim"); if (!(res_395380 <= HEX3Atmp_395378)) goto LA23; nimln(1451, "system.nim"); i_395345 = res_395380; nimln(104, "evaltempl.nim"); if (((TMP5461[(*body).Kind/8] &(1<<((*body).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5462)); if ((NU)(i_395345) >= (NU)((*body).kindU.S6.Sons->Sup.len)) raiseIndexError(); evaltemplateaux_395024((*body).kindU.S6.Sons->data[i_395345], args, &ctx, result); nimln(1454, "system.nim"); res_395380 = addInt(res_395380, 1); } LA23: ; } LA5: ; nimln(106, "evaltempl.nim"); evaltemplatecounter_395273 = subInt(evaltemplatecounter_395273, 1); popFrame(); return result; }
N_NIMCALL(void, evaltemplateaux_395024)(tnode191813* templ, tnode191813* actual, templctx395010* c, tnode191813* result) { nimfr("evalTemplateAux", "evaltempl.nim") nimln(28, "evaltempl.nim"); switch ((*templ).Kind) { case ((NU8) 3): { tsym191843* s; nimln(30, "evaltempl.nim"); if (!(((TMP5459[(*templ).Kind/8] &(1<<((*templ).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP5460)); s = (*templ).kindU.S4.Sym; nimln(31, "evaltempl.nim"); { nimln(31, "evaltempl.nim"); if (!((*(*s).Owner).Sup.Id == (*(*c).Owner).Sup.Id)) goto LA4; nimln(32, "evaltempl.nim"); { tnode191813* x; nimln(32, "evaltempl.nim"); if (!((*s).Kind == ((NU8) 3))) goto LA8; nimln(33, "evaltempl.nim"); if (((TMP5461[(*actual).Kind/8] &(1<<((*actual).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5462)); if ((NU)((*s).Position) >= (NU)((*actual).kindU.S6.Sons->Sup.len)) raiseIndexError(); x = (*actual).kindU.S6.Sons->data[(*s).Position]; nimln(34, "evaltempl.nim"); { tnode191813* y_395079; NI i_395161; NI HEX3Atmp_395163; NI LOC14; NI res_395165; nimln(34, "evaltempl.nim"); if (!((*x).Kind == ((NU8) 150))) goto LA12; y_395079 = 0; i_395161 = 0; HEX3Atmp_395163 = 0; nimln(1521, "ast.nim"); nimln(1521, "ast.nim"); nimln(1521, "ast.nim"); LOC14 = 0; LOC14 = len_192274(x); HEX3Atmp_395163 = subInt(LOC14, 1); nimln(1458, "system.nim"); res_395165 = 0; nimln(1459, "system.nim"); while (1) { nimln(1459, "system.nim"); if (!(res_395165 <= HEX3Atmp_395163)) goto LA15; nimln(1458, "system.nim"); i_395161 = res_395165; nimln(1521, "ast.nim"); if (((TMP5461[(*x).Kind/8] &(1<<((*x).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5462)); if ((NU)(i_395161) >= (NU)((*x).kindU.S6.Sons->Sup.len)) raiseIndexError(); y_395079 = (*x).kindU.S6.Sons->data[i_395161]; nimln(35, "evaltempl.nim"); add_192400(result, y_395079); nimln(1461, "system.nim"); res_395165 = addInt(res_395165, 1); } LA15: ; } goto LA10; LA12: ; { tnode191813* LOC17; nimln(37, "evaltempl.nim"); nimln(37, "evaltempl.nim"); LOC17 = 0; LOC17 = copytree_192247(x); add_192400(result, LOC17); } LA10: ; } goto LA6; LA8: ; { tsym191843* x; TNimObject* LOC24; tlineinfo166527 LOC29; tnode191813* LOC35; nimln(849, "msgs.nim"); { NimStringDesc* LOC23; nimln(849, "msgs.nim"); nimln(39, "evaltempl.nim"); if (!!((((*s).Flags &(1<<((((NU8) 31))&31)))!=0))) goto LA21; nimln(849, "msgs.nim"); nimln(849, "msgs.nim"); LOC23 = 0; LOC23 = HEX24_168714(TMP5463); internalerror_168606(LOC23); } LA21: ; nimln(40, "evaltempl.nim"); nimln(40, "evaltempl.nim"); LOC24 = 0; LOC24 = idtableget_200137((*c).Mapping, &s->Sup); if (LOC24) chckObj((*LOC24).m_type, (&NTI191843)); x = ((tsym191843*) (LOC24)); nimln(41, "evaltempl.nim"); { nimln(41, "evaltempl.nim"); if (!(x == NIM_NIL)) goto LA27; nimln(42, "evaltempl.nim"); x = copysym_192157(s, NIM_FALSE); nimln(43, "evaltempl.nim"); asgnRefNoCycle((void**) &(*x).Owner, (*c).Gensymowner); nimln(44, "evaltempl.nim"); idtableput_200147(&(*c).Mapping, &s->Sup, &x->Sup.Sup); } LA27: ; nimln(45, "evaltempl.nim"); nimln(45, "evaltempl.nim"); nimln(45, "evaltempl.nim"); { if (!(*c).Instlines) goto LA32; LOC29 = (*actual).Info; } goto LA30; LA32: ; { LOC29 = (*templ).Info; } LA30: ; LOC35 = 0; LOC35 = newsymnode_193722(x, LOC29); add_192400(result, LOC35); } LA6: ; } goto LA2; LA4: ; { tnode191813* LOC37; nimln(47, "evaltempl.nim"); nimln(47, "evaltempl.nim"); LOC37 = 0; LOC37 = copynode_395016(&(*c), templ, actual); add_192400(result, LOC37); } LA2: ; } break; case ((NU8) 0) ... ((NU8) 2): case ((NU8) 4) ... ((NU8) 23): { tnode191813* LOC39; nimln(49, "evaltempl.nim"); nimln(49, "evaltempl.nim"); LOC39 = 0; LOC39 = copynode_395016(&(*c), templ, actual); add_192400(result, LOC39); } break; default: { tnode191813* res; NI i_395145; NI HEX3Atmp_395166; NI LOC41; NI TMP5465; NI res_395168; nimln(51, "evaltempl.nim"); res = copynode_395016(&(*c), templ, actual); i_395145 = 0; HEX3Atmp_395166 = 0; nimln(52, "evaltempl.nim"); nimln(52, "evaltempl.nim"); nimln(52, "evaltempl.nim"); LOC41 = 0; LOC41 = sonslen_192191(templ); TMP5465 = subInt(LOC41, 1); HEX3Atmp_395166 = (NI64)(TMP5465); nimln(1451, "system.nim"); res_395168 = 0; nimln(1452, "system.nim"); while (1) { nimln(1452, "system.nim"); if (!(res_395168 <= HEX3Atmp_395166)) goto LA42; nimln(1451, "system.nim"); i_395145 = res_395168; nimln(53, "evaltempl.nim"); if (((TMP5461[(*templ).Kind/8] &(1<<((*templ).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP5462)); if ((NU)(i_395145) >= (NU)((*templ).kindU.S6.Sons->Sup.len)) raiseIndexError(); evaltemplateaux_395024((*templ).kindU.S6.Sons->data[i_395145], actual, c, res); nimln(1454, "system.nim"); res_395168 = addInt(res_395168, 1); } LA42: ; nimln(54, "evaltempl.nim"); add_192400(result, res); } break; } popFrame(); }
N_NIMCALL(void, importforwarded_259633)(tcontext254019* c, tnode191813* n, tintset188047* exceptset) { nimfr("importForwarded", "importer.nim") nimln(133, "importer.nim"); { nimln(133, "importer.nim"); if (!n == 0) goto LA3; nimln(133, "importer.nim"); goto BeforeRet; } LA3: ; nimln(134, "importer.nim"); switch ((*n).Kind) { case ((NU8) 117): { tnode191813* a_259649; NI i_259860; NI HEX3Atmp_259862; NI LOC6; NI res_259864; a_259649 = 0; i_259860 = 0; HEX3Atmp_259862 = 0; nimln(1521, "ast.nim"); nimln(1521, "ast.nim"); nimln(1521, "ast.nim"); LOC6 = 0; LOC6 = len_192274(n); HEX3Atmp_259862 = subInt(LOC6, 1); nimln(1458, "system.nim"); res_259864 = 0; nimln(1459, "system.nim"); while (1) { tsym191843* s; nimln(1459, "system.nim"); if (!(res_259864 <= HEX3Atmp_259862)) goto LA7; nimln(1458, "system.nim"); i_259860 = res_259864; nimln(1521, "ast.nim"); if (((TMP3276[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3277)); if ((NU)(i_259860) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); a_259649 = (*n).kindU.S6.Sons->data[i_259860]; nimln(137, "importer.nim"); { nimln(137, "importer.nim"); nimln(137, "importer.nim"); if (!!(((*a_259649).Kind == ((NU8) 3)))) goto LA10; nimln(137, "importer.nim"); failedassertimpl_81621(((NimStringDesc*) &TMP3289)); } LA10: ; nimln(138, "importer.nim"); if (!(((TMP3274[(*a_259649).Kind/8] &(1<<((*a_259649).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3275)); s = (*a_259649).kindU.S4.Sym; nimln(139, "importer.nim"); { nimln(139, "importer.nim"); if (!((*s).Kind == ((NU8) 6))) goto LA14; nimln(140, "importer.nim"); importallsymbolsexcept_259529(c, s, exceptset); } goto LA12; LA14: ; { NIM_BOOL LOC17; NIM_BOOL LOC19; nimln(141, "importer.nim"); LOC17 = 0; nimln(141, "importer.nim"); LOC17 = empty_189342(exceptset); if (LOC17) goto LA18; nimln(141, "importer.nim"); nimln(141, "importer.nim"); LOC19 = 0; LOC19 = contains_188838(exceptset, (*(*s).Name).Sup.Id); LOC17 = !(LOC19); LA18: ; if (!LOC17) goto LA20; nimln(142, "importer.nim"); rawimportsymbol_259235(c, s); } goto LA12; LA20: ; LA12: ; nimln(1461, "system.nim"); res_259864 = addInt(res_259864, 1); } LA7: ; } break; case ((NU8) 118): { nimln(144, "importer.nim"); localerror_168571((*n).Info, ((NU16) 4), ((NimStringDesc*) &TMP3290)); } break; default: { NI i_259844; NI HEX3Atmp_259865; NI LOC24; NI TMP3291; NI res_259867; i_259844 = 0; HEX3Atmp_259865 = 0; nimln(146, "importer.nim"); nimln(146, "importer.nim"); nimln(146, "importer.nim"); LOC24 = 0; LOC24 = safelen_192330(n); TMP3291 = subInt(LOC24, 1); HEX3Atmp_259865 = (NI64)(TMP3291); nimln(1458, "system.nim"); res_259867 = 0; nimln(1459, "system.nim"); while (1) { nimln(1459, "system.nim"); if (!(res_259867 <= HEX3Atmp_259865)) goto LA25; nimln(1458, "system.nim"); i_259844 = res_259867; nimln(147, "importer.nim"); if (((TMP3276[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3277)); if ((NU)(i_259844) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); importforwarded_259633(c, (*n).kindU.S6.Sons->data[i_259844], exceptset); nimln(1461, "system.nim"); res_259867 = addInt(res_259867, 1); } LA25: ; } break; } BeforeRet: ; popFrame(); }
N_NIMCALL(void, compileconstraints_280106)(tnode191813* p, NimStringDesc** result) { nimfr("compileConstraints", "parampatterns.nim") nimln(57, "parampatterns.nim"); switch ((*p).Kind) { case ((NU8) 27): case ((NU8) 29): case ((NU8) 30): case ((NU8) 31): case ((NU8) 26): case ((NU8) 28): case ((NU8) 32): { tident170019* op; nimln(59, "parampatterns.nim"); { nimln(59, "parampatterns.nim"); nimln(59, "parampatterns.nim"); if (((TMP3570[(*p).Kind/8] &(1<<((*p).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(0) >= (NU)((*p).kindU.S6.Sons->Sup.len)) raiseIndexError(); if (!!(((*(*p).kindU.S6.Sons->data[0]).Kind == ((NU8) 2)))) goto LA4; nimln(60, "parampatterns.nim"); if (((TMP3570[(*p).Kind/8] &(1<<((*p).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(0) >= (NU)((*p).kindU.S6.Sons->Sup.len)) raiseIndexError(); patternerror_280040((*p).kindU.S6.Sons->data[0]); nimln(61, "parampatterns.nim"); goto BeforeRet; } LA4: ; nimln(62, "parampatterns.nim"); if (((TMP3570[(*p).Kind/8] &(1<<((*p).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(0) >= (NU)((*p).kindU.S6.Sons->Sup.len)) raiseIndexError(); if (!(((TMP3572[(*(*p).kindU.S6.Sons->data[0]).Kind/8] &(1<<((*(*p).kindU.S6.Sons->data[0]).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3573)); op = (*(*p).kindU.S6.Sons->data[0]).kindU.S5.Ident; nimln(63, "parampatterns.nim"); { NI LOC8; nimln(63, "parampatterns.nim"); nimln(63, "parampatterns.nim"); LOC8 = 0; LOC8 = len_192274(p); if (!(LOC8 == 3)) goto LA9; nimln(64, "parampatterns.nim"); { NIM_BOOL LOC13; nimln(64, "parampatterns.nim"); LOC13 = 0; nimln(64, "parampatterns.nim"); LOC13 = eqStrings((*op).S, ((NimStringDesc*) &TMP3574)); if (LOC13) goto LA14; nimln(64, "parampatterns.nim"); LOC13 = ((*op).Sup.Id == 47); LA14: ; if (!LOC13) goto LA15; nimln(65, "parampatterns.nim"); if (((TMP3570[(*p).Kind/8] &(1<<((*p).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(1) >= (NU)((*p).kindU.S6.Sons->Sup.len)) raiseIndexError(); compileconstraints_280106((*p).kindU.S6.Sons->data[1], result); nimln(66, "parampatterns.nim"); if (((TMP3570[(*p).Kind/8] &(1<<((*p).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(2) >= (NU)((*p).kindU.S6.Sons->Sup.len)) raiseIndexError(); compileconstraints_280106((*p).kindU.S6.Sons->data[2], result); nimln(67, "parampatterns.nim"); add_280046(result, ((NU8) 2)); } goto LA11; LA15: ; { NIM_BOOL LOC18; nimln(68, "parampatterns.nim"); LOC18 = 0; nimln(68, "parampatterns.nim"); LOC18 = eqStrings((*op).S, ((NimStringDesc*) &TMP3575)); if (LOC18) goto LA19; nimln(68, "parampatterns.nim"); LOC18 = ((*op).Sup.Id == 2); LA19: ; if (!LOC18) goto LA20; nimln(69, "parampatterns.nim"); if (((TMP3570[(*p).Kind/8] &(1<<((*p).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(1) >= (NU)((*p).kindU.S6.Sons->Sup.len)) raiseIndexError(); compileconstraints_280106((*p).kindU.S6.Sons->data[1], result); nimln(70, "parampatterns.nim"); if (((TMP3570[(*p).Kind/8] &(1<<((*p).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(2) >= (NU)((*p).kindU.S6.Sons->Sup.len)) raiseIndexError(); compileconstraints_280106((*p).kindU.S6.Sons->data[2], result); nimln(71, "parampatterns.nim"); add_280046(result, ((NU8) 3)); } goto LA11; LA20: ; { nimln(73, "parampatterns.nim"); patternerror_280040(p); } LA11: ; } goto LA6; LA9: ; { NIM_BOOL LOC24; NI LOC25; NIM_BOOL LOC27; nimln(74, "parampatterns.nim"); LOC24 = 0; nimln(74, "parampatterns.nim"); nimln(74, "parampatterns.nim"); LOC25 = 0; LOC25 = len_192274(p); LOC24 = (LOC25 == 2); if (!(LOC24)) goto LA26; nimln(74, "parampatterns.nim"); LOC27 = 0; nimln(74, "parampatterns.nim"); LOC27 = eqStrings((*op).S, ((NimStringDesc*) &TMP3576)); if (LOC27) goto LA28; nimln(74, "parampatterns.nim"); LOC27 = ((*op).Sup.Id == 43); LA28: ; LOC24 = LOC27; LA26: ; if (!LOC24) goto LA29; nimln(75, "parampatterns.nim"); if (((TMP3570[(*p).Kind/8] &(1<<((*p).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(1) >= (NU)((*p).kindU.S6.Sons->Sup.len)) raiseIndexError(); compileconstraints_280106((*p).kindU.S6.Sons->data[1], result); nimln(76, "parampatterns.nim"); add_280046(result, ((NU8) 4)); } goto LA6; LA29: ; { nimln(78, "parampatterns.nim"); patternerror_280040(p); } LA6: ; } break; case ((NU8) 53): case ((NU8) 37): { nimln(80, "parampatterns.nim"); { NI LOC35; nimln(80, "parampatterns.nim"); nimln(80, "parampatterns.nim"); LOC35 = 0; LOC35 = len_192274(p); if (!(LOC35 == 1)) goto LA36; nimln(81, "parampatterns.nim"); if (((TMP3570[(*p).Kind/8] &(1<<((*p).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(0) >= (NU)((*p).kindU.S6.Sons->Sup.len)) raiseIndexError(); compileconstraints_280106((*p).kindU.S6.Sons->data[0], result); } goto LA33; LA36: ; { nimln(83, "parampatterns.nim"); patternerror_280040(p); } LA33: ; } break; case ((NU8) 2): { NimStringDesc* spec; nimln(85, "parampatterns.nim"); if (!(((TMP3572[(*p).Kind/8] &(1<<((*p).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3573)); spec = nsuNormalize((*(*p).kindU.S5.Ident).S); nimln(86, "parampatterns.nim"); switch (hashString(spec) & 15) { case 1: if (eqStrings(spec, ((NimStringDesc*) &TMP3587))) goto LA50; break; case 3: if (eqStrings(spec, ((NimStringDesc*) &TMP3583))) goto LA46; if (eqStrings(spec, ((NimStringDesc*) &TMP3584))) goto LA47; if (eqStrings(spec, ((NimStringDesc*) &TMP3586))) goto LA49; break; case 4: if (eqStrings(spec, ((NimStringDesc*) &TMP3579))) goto LA42; break; case 6: if (eqStrings(spec, ((NimStringDesc*) &TMP3580))) goto LA43; if (eqStrings(spec, ((NimStringDesc*) &TMP3585))) goto LA48; break; case 11: if (eqStrings(spec, ((NimStringDesc*) &TMP3577))) goto LA40; break; case 12: if (eqStrings(spec, ((NimStringDesc*) &TMP3578))) goto LA41; break; case 13: if (eqStrings(spec, ((NimStringDesc*) &TMP3581))) goto LA44; break; case 14: if (eqStrings(spec, ((NimStringDesc*) &TMP3582))) goto LA45; break; } goto LA51; LA40: ; { nimln(87, "parampatterns.nim"); add_280046(result, ((NU8) 6)); } goto LA52; LA41: ; { nimln(88, "parampatterns.nim"); add_280046(result, ((NU8) 7)); } goto LA52; LA42: ; { nimln(89, "parampatterns.nim"); add_280046(result, ((NU8) 5)); } goto LA52; LA43: ; { nimln(90, "parampatterns.nim"); add_280046(result, ((NU8) 8)); } goto LA52; LA44: ; { nimln(91, "parampatterns.nim"); add_280046(result, ((NU8) 9)); } goto LA52; LA45: ; { nimln(92, "parampatterns.nim"); if ((NU)(0) > (NU)((*result)->Sup.len)) raiseIndexError(); (*result)->data[0] = 2; } goto LA52; LA46: ; { nimln(93, "parampatterns.nim"); if ((NU)(0) > (NU)((*result)->Sup.len)) raiseIndexError(); (*result)->data[0] = 3; } goto LA52; LA47: ; { nimln(94, "parampatterns.nim"); add_280046(result, ((NU8) 12)); } goto LA52; LA48: ; { nimln(95, "parampatterns.nim"); add_280046(result, ((NU8) 13)); } goto LA52; LA49: ; { nimln(96, "parampatterns.nim"); add_280046(result, ((NU8) 14)); } goto LA52; LA50: ; { nimln(97, "parampatterns.nim"); add_280046(result, ((NU8) 15)); } goto LA52; LA51: ; { NU8 i_280371; NU8 res_280461; NU8 i_280442; NU8 res_280466; nimln(849, "msgs.nim"); { NimStringDesc* LOC69; if (!NIM_FALSE) goto LA67; nimln(849, "msgs.nim"); nimln(849, "msgs.nim"); LOC69 = 0; LOC69 = HEX24_168714(TMP3588); internalerror_168606(LOC69); } LA67: ; i_280371 = 0; nimln(1458, "system.nim"); res_280461 = ((NU8) 0); nimln(1459, "system.nim"); while (1) { nimln(1459, "system.nim"); if (!(res_280461 <= ((NU8) 24))) goto LA70; nimln(1458, "system.nim"); i_280371 = res_280461; nimln(102, "parampatterns.nim"); { NimStringDesc* LOC73; NI LOC74; nimln(102, "parampatterns.nim"); nimln(102, "parampatterns.nim"); nimln(102, "parampatterns.nim"); nimln(102, "parampatterns.nim"); LOC73 = 0; LOC73 = copyStr(reprEnum(i_280371, (&NTI191451)), 2); LOC74 = 0; LOC74 = nsuCmpIgnoreStyle(LOC73, spec); if (!(LOC74 == 0)) goto LA75; nimln(103, "parampatterns.nim"); add_280046(result, ((NU8) 10)); nimln(104, "parampatterns.nim"); nimln(104, "parampatterns.nim"); nimln(104, "parampatterns.nim"); (*result) = addChar((*result), ((NIM_CHAR) (((NI) (i_280371))))); nimln(105, "parampatterns.nim"); goto BeforeRet; } LA75: ; nimln(1461, "system.nim"); res_280461 = addInt(res_280461, 1); } LA70: ; nimln(849, "msgs.nim"); { NimStringDesc* LOC81; if (!NIM_FALSE) goto LA79; nimln(849, "msgs.nim"); nimln(849, "msgs.nim"); LOC81 = 0; LOC81 = HEX24_168714(TMP3590); internalerror_168606(LOC81); } LA79: ; i_280442 = 0; nimln(1458, "system.nim"); res_280466 = ((NU8) 0); nimln(1459, "system.nim"); while (1) { nimln(1459, "system.nim"); if (!(res_280466 <= ((NU8) 156))) goto LA82; nimln(1458, "system.nim"); i_280442 = res_280466; nimln(109, "parampatterns.nim"); { NI LOC85; nimln(109, "parampatterns.nim"); nimln(109, "parampatterns.nim"); nimln(109, "parampatterns.nim"); LOC85 = 0; LOC85 = nsuCmpIgnoreStyle(reprEnum(i_280442, (&NTI191023)), spec); if (!(LOC85 == 0)) goto LA86; nimln(110, "parampatterns.nim"); add_280046(result, ((NU8) 11)); nimln(111, "parampatterns.nim"); nimln(111, "parampatterns.nim"); nimln(111, "parampatterns.nim"); (*result) = addChar((*result), ((NIM_CHAR) (((NI) (i_280442))))); nimln(112, "parampatterns.nim"); goto BeforeRet; } LA86: ; nimln(1461, "system.nim"); res_280466 = addInt(res_280466, 1); } LA82: ; nimln(113, "parampatterns.nim"); patternerror_280040(p); } LA52: ; } break; default: { nimln(115, "parampatterns.nim"); patternerror_280040(p); } break; } BeforeRet: ; popFrame(); }
N_NIMCALL(NU8, checkforsideeffects_280740)(tnode191813* n) { NU8 result; nimfr("checkForSideEffects", "parampatterns.nim") result = 0; nimln(139, "parampatterns.nim"); switch ((*n).Kind) { case ((NU8) 27): case ((NU8) 29): case ((NU8) 30): case ((NU8) 31): case ((NU8) 26): case ((NU8) 28): case ((NU8) 32): { tnode191813* op; NI i_280844; NI HEX3Atmp_280951; NI LOC16; NI res_280953; nimln(142, "parampatterns.nim"); if (((TMP3570[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(0) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); op = (*n).kindU.S6.Sons->data[0]; nimln(143, "parampatterns.nim"); { NIM_BOOL LOC4; tsym191843* s; nimln(143, "parampatterns.nim"); LOC4 = 0; nimln(143, "parampatterns.nim"); LOC4 = ((*op).Kind == ((NU8) 3)); if (!(LOC4)) goto LA5; nimln(143, "parampatterns.nim"); if (!(((TMP3593[(*op).Kind/8] &(1<<((*op).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3594)); LOC4 = isroutine_198040((*op).kindU.S4.Sym); LA5: ; if (!LOC4) goto LA6; nimln(144, "parampatterns.nim"); if (!(((TMP3593[(*op).Kind/8] &(1<<((*op).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3594)); s = (*op).kindU.S4.Sym; nimln(145, "parampatterns.nim"); { nimln(145, "parampatterns.nim"); if (!(((*s).Flags &(1<<((((NU8) 11))&31)))!=0)) goto LA10; nimln(146, "parampatterns.nim"); nimln(146, "parampatterns.nim"); result = ((NU8) 1); goto BeforeRet; } LA10: ; nimln(148, "parampatterns.nim"); result = ((NU8) 2); } goto LA2; LA6: ; { nimln(149, "parampatterns.nim"); if (!(((*(*op).Typ).Flags &(1<<((((NU8) 1))&31)))!=0)) goto LA13; nimln(151, "parampatterns.nim"); result = ((NU8) 2); } goto LA2; LA13: ; { nimln(154, "parampatterns.nim"); nimln(154, "parampatterns.nim"); result = ((NU8) 1); goto BeforeRet; } LA2: ; i_280844 = 0; HEX3Atmp_280951 = 0; nimln(156, "parampatterns.nim"); nimln(156, "parampatterns.nim"); nimln(156, "parampatterns.nim"); LOC16 = 0; LOC16 = len_192274(n); HEX3Atmp_280951 = subInt(LOC16, 1); nimln(1458, "system.nim"); res_280953 = 0; nimln(1459, "system.nim"); while (1) { NU8 ret; nimln(1459, "system.nim"); if (!(res_280953 <= HEX3Atmp_280951)) goto LA17; nimln(1458, "system.nim"); i_280844 = res_280953; nimln(157, "parampatterns.nim"); if (((TMP3570[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(i_280844) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); ret = checkforsideeffects_280740((*n).kindU.S6.Sons->data[i_280844]); nimln(158, "parampatterns.nim"); { nimln(158, "parampatterns.nim"); if (!(ret == ((NU8) 1))) goto LA20; nimln(158, "parampatterns.nim"); nimln(158, "parampatterns.nim"); result = ret; goto BeforeRet; } goto LA18; LA20: ; { NIM_BOOL LOC23; nimln(159, "parampatterns.nim"); LOC23 = 0; nimln(159, "parampatterns.nim"); LOC23 = (ret == ((NU8) 0)); if (!(LOC23)) goto LA24; nimln(159, "parampatterns.nim"); LOC23 = (result == ((NU8) 2)); LA24: ; if (!LOC23) goto LA25; nimln(160, "parampatterns.nim"); result = ((NU8) 0); } goto LA18; LA25: ; LA18: ; nimln(1461, "system.nim"); res_280953 = addInt(res_280953, 1); } LA17: ; } break; case ((NU8) 0) ... ((NU8) 23): { nimln(163, "parampatterns.nim"); result = ((NU8) 2); } break; default: { NI i_280908; NI HEX3Atmp_280955; NI LOC29; NI res_280957; i_280908 = 0; HEX3Atmp_280955 = 0; nimln(165, "parampatterns.nim"); nimln(165, "parampatterns.nim"); nimln(165, "parampatterns.nim"); LOC29 = 0; LOC29 = len_192274(n); HEX3Atmp_280955 = subInt(LOC29, 1); nimln(1458, "system.nim"); res_280957 = 0; nimln(1459, "system.nim"); while (1) { NU8 ret; nimln(1459, "system.nim"); if (!(res_280957 <= HEX3Atmp_280955)) goto LA30; nimln(1458, "system.nim"); i_280908 = res_280957; nimln(166, "parampatterns.nim"); if (((TMP3570[(*n).Kind/8] &(1<<((*n).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(i_280908) >= (NU)((*n).kindU.S6.Sons->Sup.len)) raiseIndexError(); ret = checkforsideeffects_280740((*n).kindU.S6.Sons->data[i_280908]); nimln(167, "parampatterns.nim"); { nimln(167, "parampatterns.nim"); if (!(ret == ((NU8) 1))) goto LA33; nimln(167, "parampatterns.nim"); nimln(167, "parampatterns.nim"); result = ret; goto BeforeRet; } goto LA31; LA33: ; { NIM_BOOL LOC36; nimln(168, "parampatterns.nim"); LOC36 = 0; nimln(168, "parampatterns.nim"); LOC36 = (ret == ((NU8) 0)); if (!(LOC36)) goto LA37; nimln(168, "parampatterns.nim"); LOC36 = (result == ((NU8) 2)); LA37: ; if (!LOC36) goto LA38; nimln(169, "parampatterns.nim"); result = ((NU8) 0); } goto LA31; LA38: ; LA31: ; nimln(1461, "system.nim"); res_280957 = addInt(res_280957, 1); } LA30: ; } break; } BeforeRet: ; popFrame(); return result; }
N_NIMCALL(tnode191813*, semnodekindconstraints_280472)(tnode191813* p) { tnode191813* result; nimfr("semNodeKindConstraints", "parampatterns.nim") result = 0; nimln(120, "parampatterns.nim"); { nimln(120, "parampatterns.nim"); nimln(120, "parampatterns.nim"); if (!!(((*p).Kind == ((NU8) 40)))) goto LA3; nimln(120, "parampatterns.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP3591)); } LA3: ; nimln(121, "parampatterns.nim"); result = newnodei_192109(((NU8) 20), (*p).Info); nimln(122, "parampatterns.nim"); if (!(((TMP3568[(*result).Kind/8] &(1<<((*result).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3569)); nimln(122, "parampatterns.nim"); asgnRefNoCycle((void**) &(*result).kindU.S3.Strval, rawNewString(10)); nimln(123, "parampatterns.nim"); if (!(((TMP3568[(*result).Kind/8] &(1<<((*result).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3569)); (*result).kindU.S3.Strval = addChar((*result).kindU.S3.Strval, 1); nimln(124, "parampatterns.nim"); { NI LOC7; NI i_280667; NI HEX3Atmp_280727; NI LOC10; NI res_280729; nimln(124, "parampatterns.nim"); nimln(124, "parampatterns.nim"); LOC7 = 0; LOC7 = len_192274(p); if (!(2 <= LOC7)) goto LA8; i_280667 = 0; HEX3Atmp_280727 = 0; nimln(125, "parampatterns.nim"); nimln(125, "parampatterns.nim"); nimln(125, "parampatterns.nim"); LOC10 = 0; LOC10 = len_192274(p); HEX3Atmp_280727 = subInt(LOC10, 1); nimln(1458, "system.nim"); res_280729 = 1; nimln(1459, "system.nim"); while (1) { nimln(1459, "system.nim"); if (!(res_280729 <= HEX3Atmp_280727)) goto LA11; nimln(1458, "system.nim"); i_280667 = res_280729; nimln(126, "parampatterns.nim"); if (((TMP3570[(*p).Kind/8] &(1<<((*p).Kind%8)))!=0)) raiseFieldError(((NimStringDesc*) &TMP3571)); if ((NU)(i_280667) >= (NU)((*p).kindU.S6.Sons->Sup.len)) raiseIndexError(); if (!(((TMP3568[(*result).Kind/8] &(1<<((*result).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3569)); compileconstraints_280106((*p).kindU.S6.Sons->data[i_280667], &(*result).kindU.S3.Strval); nimln(1461, "system.nim"); res_280729 = addInt(res_280729, 1); } LA11: ; nimln(127, "parampatterns.nim"); { nimln(127, "parampatterns.nim"); nimln(127, "parampatterns.nim"); if (!(((TMP3568[(*result).Kind/8] &(1<<((*result).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3569)); if (!(63 < (*result).kindU.S3.Strval->Sup.len)) goto LA14; nimln(128, "parampatterns.nim"); internalerror_168591((*p).Info, ((NimStringDesc*) &TMP3592)); } LA14: ; } goto LA5; LA8: ; { nimln(130, "parampatterns.nim"); patternerror_280040(p); } LA5: ; nimln(131, "parampatterns.nim"); if (!(((TMP3568[(*result).Kind/8] &(1<<((*result).Kind%8)))!=0))) raiseFieldError(((NimStringDesc*) &TMP3569)); add_280046(&(*result).kindU.S3.Strval, ((NU8) 1)); popFrame(); return result; }