static N_INLINE(NI, divInt)(NI a, NI b) { NI result; result = 0; { if (!(b == 0)) goto LA3; raiseDivByZero(); } LA3: ; { NIM_BOOL LOC7; LOC7 = 0; LOC7 = (a == (-2147483647 -1)); if (!(LOC7)) goto LA8; LOC7 = (b == -1); LA8: ; if (!LOC7) goto LA9; raiseOverflow(); } LA9: ; result = (NI32)(a / b); goto BeforeRet; BeforeRet: ; return result; }
static N_INLINE(NI, divInt)(NI a, NI b) { NI result; result = 0; { if (!(b == 0)) goto LA3; raiseDivByZero(); } LA3: ; { NIM_BOOL LOC7; LOC7 = 0; LOC7 = (a == (IL64(-9223372036854775807) - IL64(1))); if (!(LOC7)) goto LA8; LOC7 = (b == -1); LA8: ; if (!LOC7) goto LA9; raiseOverflow(); } LA9: ; result = (NI64)(a / b); goto BeforeRet; BeforeRet: ; return result; }
N_NIMCALL(NI64, HEX7CabsHEX7C_264035)(NI64 a) { NI64 result; nimfr("|abs|", "saturate.nim") result = 0; nimln(32, "saturate.nim"); { nimln(32, "saturate.nim"); nimln(32, "saturate.nim"); if (!!((a == (IL64(-9223372036854775807) - IL64(1))))) goto LA3; nimln(33, "saturate.nim"); { nimln(33, "saturate.nim"); if (!(0 <= a)) goto LA7; nimln(33, "saturate.nim"); result = a; } goto LA5; LA7: ; { nimln(34, "saturate.nim"); nimln(34, "saturate.nim"); if (a == (IL64(-9223372036854775807) - IL64(1))) raiseOverflow(); result = -(a); } LA5: ; } goto LA1; LA3: ; { nimln(36, "saturate.nim"); result = (IL64(-9223372036854775807) - IL64(1)); } LA1: ; popFrame(); return result; }
N_NIMCALL(void, encodevintaux_178193)(NI x, NimStringDesc** result) { NIM_CHAR d_178199; NI v_178201; NI rem_178203; NI TMP2082; NI idx_178205; nimfr("encodeVIntAux", "rodutils.nim") d_178199 = 0; nimln(69, "rodutils.nim"); v_178201 = x; nimln(70, "rodutils.nim"); nimln(70, "rodutils.nim"); TMP2082 = modInt(v_178201, 190); rem_178203 = (NI32)(TMP2082); nimln(71, "rodutils.nim"); { NI TMP2083; nimln(71, "rodutils.nim"); if (!(((NI) (rem_178203)) < 0)) goto LA3; nimln(72, "rodutils.nim"); (*result) = addChar((*result), 45); nimln(73, "rodutils.nim"); nimln(73, "rodutils.nim"); nimln(73, "rodutils.nim"); TMP2083 = divInt(v_178201, 190); if ((NI32)(TMP2083) == (-2147483647 -1)) raiseOverflow(); v_178201 = ((NI32)-((NI32)(TMP2083))); nimln(74, "rodutils.nim"); nimln(74, "rodutils.nim"); if (((NI) (rem_178203)) == (-2147483647 -1)) raiseOverflow(); rem_178203 = ((NI32)-(((NI) (rem_178203)))); } goto LA1; LA3: ; { NI TMP2084; nimln(76, "rodutils.nim"); nimln(76, "rodutils.nim"); TMP2084 = divInt(v_178201, 190); v_178201 = (NI32)(TMP2084); } LA1: ; nimln(77, "rodutils.nim"); idx_178205 = ((NI) (rem_178203)); nimln(78, "rodutils.nim"); { nimln(78, "rodutils.nim"); if (!(idx_178205 < 62)) goto LA8; nimln(78, "rodutils.nim"); if ((NU)(idx_178205) > (NU)(((NimStringDesc*) &TMP2079)->Sup.len)) raiseIndexError(); d_178199 = ((NimStringDesc*) &TMP2079)->data[idx_178205]; } goto LA6; LA8: ; { NI TMP2085; NI TMP2086; nimln(79, "rodutils.nim"); nimln(79, "rodutils.nim"); nimln(79, "rodutils.nim"); nimln(79, "rodutils.nim"); TMP2085 = subInt(idx_178205, 62); TMP2086 = addInt((NI32)(TMP2085), 128); d_178199 = ((NIM_CHAR) (((NI)chckRange((NI32)(TMP2086), 0, 255)))); } LA6: ; nimln(80, "rodutils.nim"); { nimln(698, "system.nim"); nimln(698, "system.nim"); if (!!((v_178201 == 0))) goto LA13; nimln(80, "rodutils.nim"); encodevintaux_178193(v_178201, result); } LA13: ; nimln(81, "rodutils.nim"); (*result) = addChar((*result), d_178199); popFrame(); }
N_NIMCALL(void, encodevbiggestintaux_178161)(NI64 x, NimStringDesc** result) { NIM_CHAR d_178167; NI64 v_178169; NI64 rem_178171; NI64 TMP2076; NI idx_178173; nimfr("encodeVBiggestIntAux", "rodutils.nim") d_178167 = 0; nimln(69, "rodutils.nim"); v_178169 = x; nimln(70, "rodutils.nim"); nimln(70, "rodutils.nim"); TMP2076 = modInt64(v_178169, 190); rem_178171 = (NI64)(TMP2076); nimln(71, "rodutils.nim"); { NI64 TMP2077; nimln(71, "rodutils.nim"); if (!(((NI) (rem_178171)) < 0)) goto LA3; nimln(72, "rodutils.nim"); (*result) = addChar((*result), 45); nimln(73, "rodutils.nim"); nimln(73, "rodutils.nim"); nimln(73, "rodutils.nim"); TMP2077 = divInt64(v_178169, 190); if ((NI64)(TMP2077) == (IL64(-9223372036854775807) - IL64(1))) raiseOverflow(); v_178169 = -((NI64)(TMP2077)); nimln(74, "rodutils.nim"); nimln(74, "rodutils.nim"); if (((NI64) (rem_178171)) == (IL64(-9223372036854775807) - IL64(1))) raiseOverflow(); rem_178171 = -(((NI64) (rem_178171))); } goto LA1; LA3: ; { NI64 TMP2078; nimln(76, "rodutils.nim"); nimln(76, "rodutils.nim"); TMP2078 = divInt64(v_178169, 190); v_178169 = (NI64)(TMP2078); } LA1: ; nimln(77, "rodutils.nim"); idx_178173 = ((NI) (rem_178171)); nimln(78, "rodutils.nim"); { nimln(78, "rodutils.nim"); if (!(idx_178173 < 62)) goto LA8; nimln(78, "rodutils.nim"); if ((NU)(idx_178173) > (NU)(((NimStringDesc*) &TMP2079)->Sup.len)) raiseIndexError(); d_178167 = ((NimStringDesc*) &TMP2079)->data[idx_178173]; } goto LA6; LA8: ; { NI TMP2080; NI TMP2081; nimln(79, "rodutils.nim"); nimln(79, "rodutils.nim"); nimln(79, "rodutils.nim"); nimln(79, "rodutils.nim"); TMP2080 = subInt(idx_178173, 62); TMP2081 = addInt((NI32)(TMP2080), 128); d_178167 = ((NIM_CHAR) (((NI)chckRange((NI32)(TMP2081), 0, 255)))); } LA6: ; nimln(80, "rodutils.nim"); { nimln(698, "system.nim"); nimln(698, "system.nim"); if (!!((v_178169 == 0))) goto LA13; nimln(80, "rodutils.nim"); encodevbiggestintaux_178161(v_178169, result); } LA13: ; nimln(81, "rodutils.nim"); (*result) = addChar((*result), d_178167); popFrame(); }
N_NIMCALL(tident171019*, getident_171250)(NCSTRING identifier, NI length, NI h) { tident171019* result; NI idx; tident171019* last; NI id; NI i_171429; NI HEX3Atmp_171448; NI TMP983; NI res_171450; nimfr("getIdent", "idents.nim") result = 0; nimln(69, "idents.nim"); nimln(69, "idents.nim"); idx = (NI)(h & 8191); nimln(70, "idents.nim"); result = buckets_171033[(idx)- 0]; nimln(71, "idents.nim"); last = NIM_NIL; nimln(72, "idents.nim"); id = 0; nimln(73, "idents.nim"); while (1) { nimln(73, "idents.nim"); nimln(73, "idents.nim"); if (!!((result == NIM_NIL))) goto LA1; nimln(74, "idents.nim"); { NI LOC4; nimln(74, "idents.nim"); nimln(74, "idents.nim"); LOC4 = 0; LOC4 = cmpexact_171186((*result).S->data, identifier, length); if (!(LOC4 == 0)) goto LA5; nimln(75, "idents.nim"); { nimln(75, "idents.nim"); nimln(75, "idents.nim"); if (!!((last == NIM_NIL))) goto LA9; nimln(77, "idents.nim"); asgnRefNoCycle((void**) &(*last).Next, (*result).Next); nimln(78, "idents.nim"); asgnRefNoCycle((void**) &(*result).Next, buckets_171033[(idx)- 0]); nimln(79, "idents.nim"); asgnRefNoCycle((void**) &buckets_171033[(idx)- 0], result); } LA9: ; nimln(80, "idents.nim"); goto BeforeRet; } goto LA2; LA5: ; { NI LOC12; nimln(81, "idents.nim"); nimln(81, "idents.nim"); LOC12 = 0; LOC12 = cmpignorestyle_171036((*result).S->data, identifier, length); if (!(LOC12 == 0)) goto LA13; nimln(82, "idents.nim"); { NIM_BOOL LOC17; nimln(82, "idents.nim"); nimln(82, "idents.nim"); LOC17 = 0; nimln(82, "idents.nim"); LOC17 = (id == 0); if (LOC17) goto LA18; nimln(82, "idents.nim"); LOC17 = (id == (*result).Sup.Id); LA18: ; if (!!(LOC17)) goto LA19; nimln(82, "idents.nim"); failedassertimpl_80621(((NimStringDesc*) &TMP980)); } LA19: ; nimln(83, "idents.nim"); id = (*result).Sup.Id; } goto LA2; LA13: ; LA2: ; nimln(84, "idents.nim"); last = result; nimln(85, "idents.nim"); result = (*result).Next; } LA1: ; nimln(86, "idents.nim"); result = (tident171019*) newObj((&NTI171017), sizeof(tident171019)); (*result).Sup.Sup.m_type = (&NTI171019); nimln(87, "idents.nim"); (*result).H = h; nimln(88, "idents.nim"); nimln(88, "idents.nim"); asgnRefNoCycle((void**) &(*result).S, mnewString(length)); i_171429 = 0; HEX3Atmp_171448 = 0; nimln(89, "idents.nim"); nimln(89, "idents.nim"); TMP983 = subInt(length, 1); HEX3Atmp_171448 = (NI32)(TMP983); nimln(1451, "system.nim"); res_171450 = 0; nimln(1452, "system.nim"); while (1) { nimln(1452, "system.nim"); if (!(res_171450 <= HEX3Atmp_171448)) goto LA21; nimln(1451, "system.nim"); i_171429 = res_171450; nimln(89, "idents.nim"); if ((NU)(i_171429) > (NU)((*result).S->Sup.len)) raiseIndexError(); (*result).S->data[i_171429] = identifier[i_171429]; nimln(1454, "system.nim"); res_171450 = addInt(res_171450, 1); } LA21: ; nimln(90, "idents.nim"); asgnRefNoCycle((void**) &(*result).Next, buckets_171033[(idx)- 0]); nimln(91, "idents.nim"); asgnRefNoCycle((void**) &buckets_171033[(idx)- 0], result); nimln(92, "idents.nim"); { nimln(92, "idents.nim"); if (!(id == 0)) goto LA24; nimln(93, "idents.nim"); wordcounter_171248 = addInt(wordcounter_171248, 1); nimln(94, "idents.nim"); nimln(94, "idents.nim"); if (wordcounter_171248 == (-2147483647 -1)) raiseOverflow(); (*result).Sup.Id = ((NI32)-(wordcounter_171248)); } goto LA22; LA24: ; { nimln(96, "idents.nim"); (*result).Sup.Id = id; } LA22: ; BeforeRet: ; popFrame(); return result; }
N_NIMCALL(void, encodevintaux_199231)(NI x, NimStringDesc** result) { NIM_CHAR d_199237; NI v_199239; NI rem_199241; NI TMP2116; NI idx_199243; nimfr("encodeVIntAux", "rodutils.nim") d_199237 = 0; nimln(69, "rodutils.nim"); v_199239 = x; nimln(70, "rodutils.nim"); nimln(70, "rodutils.nim"); TMP2116 = modInt(v_199239, 190); rem_199241 = (NI32)(TMP2116); nimln(71, "rodutils.nim"); { NI TMP2117; nimln(71, "rodutils.nim"); if (!(((NI) (rem_199241)) < 0)) goto LA3; nimln(72, "rodutils.nim"); (*result) = addChar((*result), 45); nimln(73, "rodutils.nim"); nimln(73, "rodutils.nim"); nimln(73, "rodutils.nim"); TMP2117 = divInt(v_199239, 190); if ((NI32)(TMP2117) == (-2147483647 -1)) raiseOverflow(); v_199239 = ((NI32)-((NI32)(TMP2117))); nimln(74, "rodutils.nim"); nimln(74, "rodutils.nim"); if (((NI) (rem_199241)) == (-2147483647 -1)) raiseOverflow(); rem_199241 = ((NI32)-(((NI) (rem_199241)))); } goto LA1; LA3: ; { NI TMP2118; nimln(76, "rodutils.nim"); nimln(76, "rodutils.nim"); TMP2118 = divInt(v_199239, 190); v_199239 = (NI32)(TMP2118); } LA1: ; nimln(77, "rodutils.nim"); idx_199243 = ((NI) (rem_199241)); nimln(78, "rodutils.nim"); { nimln(78, "rodutils.nim"); if (!(idx_199243 < 62)) goto LA8; nimln(78, "rodutils.nim"); if ((NU)(idx_199243) > (NU)(((NimStringDesc*) &TMP2113)->Sup.len)) raiseIndexError(); d_199237 = ((NimStringDesc*) &TMP2113)->data[idx_199243]; } goto LA6; LA8: ; { NI TMP2119; NI TMP2120; nimln(79, "rodutils.nim"); nimln(79, "rodutils.nim"); nimln(79, "rodutils.nim"); nimln(79, "rodutils.nim"); TMP2119 = subInt(idx_199243, 62); TMP2120 = addInt((NI32)(TMP2119), 128); d_199237 = ((NIM_CHAR) (((NI)chckRange((NI32)(TMP2120), 0, 255)))); } LA6: ; nimln(80, "rodutils.nim"); { nimln(80, "rodutils.nim"); nimln(80, "rodutils.nim"); if (!!((v_199239 == 0))) goto LA13; nimln(80, "rodutils.nim"); encodevintaux_199231(v_199239, result); } LA13: ; nimln(81, "rodutils.nim"); (*result) = addChar((*result), d_199237); popFrame(); }
N_NIMCALL(void, encodevbiggestintaux_199198)(NI64 x, NimStringDesc** result) { NIM_CHAR d_199204; NI64 v_199206; NI64 rem_199208; NI64 TMP2110; NI idx_199210; nimfr("encodeVBiggestIntAux", "rodutils.nim") d_199204 = 0; nimln(69, "rodutils.nim"); v_199206 = x; nimln(70, "rodutils.nim"); nimln(70, "rodutils.nim"); TMP2110 = modInt64(v_199206, 190); rem_199208 = (NI64)(TMP2110); nimln(71, "rodutils.nim"); { NI64 TMP2111; nimln(71, "rodutils.nim"); if (!(((NI) (rem_199208)) < 0)) goto LA3; nimln(72, "rodutils.nim"); (*result) = addChar((*result), 45); nimln(73, "rodutils.nim"); nimln(73, "rodutils.nim"); nimln(73, "rodutils.nim"); TMP2111 = divInt64(v_199206, 190); if ((NI64)(TMP2111) == (IL64(-9223372036854775807) - IL64(1))) raiseOverflow(); v_199206 = -((NI64)(TMP2111)); nimln(74, "rodutils.nim"); nimln(74, "rodutils.nim"); if (((NI64) (rem_199208)) == (IL64(-9223372036854775807) - IL64(1))) raiseOverflow(); rem_199208 = -(((NI64) (rem_199208))); } goto LA1; LA3: ; { NI64 TMP2112; nimln(76, "rodutils.nim"); nimln(76, "rodutils.nim"); TMP2112 = divInt64(v_199206, 190); v_199206 = (NI64)(TMP2112); } LA1: ; nimln(77, "rodutils.nim"); idx_199210 = ((NI) (rem_199208)); nimln(78, "rodutils.nim"); { nimln(78, "rodutils.nim"); if (!(idx_199210 < 62)) goto LA8; nimln(78, "rodutils.nim"); if ((NU)(idx_199210) > (NU)(((NimStringDesc*) &TMP2113)->Sup.len)) raiseIndexError(); d_199204 = ((NimStringDesc*) &TMP2113)->data[idx_199210]; } goto LA6; LA8: ; { NI TMP2114; NI TMP2115; nimln(79, "rodutils.nim"); nimln(79, "rodutils.nim"); nimln(79, "rodutils.nim"); nimln(79, "rodutils.nim"); TMP2114 = subInt(idx_199210, 62); TMP2115 = addInt((NI32)(TMP2114), 128); d_199204 = ((NIM_CHAR) (((NI)chckRange((NI32)(TMP2115), 0, 255)))); } LA6: ; nimln(80, "rodutils.nim"); { nimln(80, "rodutils.nim"); nimln(80, "rodutils.nim"); if (!!((v_199206 == 0))) goto LA13; nimln(80, "rodutils.nim"); encodevbiggestintaux_199198(v_199206, result); } LA13: ; nimln(81, "rodutils.nim"); (*result) = addChar((*result), d_199204); popFrame(); }
N_NIMCALL(tident141017*, getident_141202)(NCSTRING identifier, NI length, NI h) { tident141017* result; NI idx; tident141017* last; NI id; NI i_141422; NI HEX3Atmp_141435; NI TMP891; NI res_141437; nimfr("getIdent", "idents.nim") result = 0; nimln(69, "idents.nim"); nimln(69, "idents.nim"); idx = (NI)(h & 8191); nimln(70, "idents.nim"); result = buckets_141031[(idx)- 0]; nimln(71, "idents.nim"); last = NIM_NIL; nimln(72, "idents.nim"); id = 0; nimln(73, "idents.nim"); while (1) { nimln(698, "system.nim"); nimln(698, "system.nim"); if (!!((result == NIM_NIL))) goto LA1; nimln(74, "idents.nim"); { NI LOC4; nimln(74, "idents.nim"); nimln(74, "idents.nim"); LOC4 = 0; LOC4 = cmpexact_141152((*result).S->data, identifier, length); if (!(LOC4 == 0)) goto LA5; nimln(75, "idents.nim"); { nimln(698, "system.nim"); nimln(698, "system.nim"); if (!!((last == NIM_NIL))) goto LA9; nimln(77, "idents.nim"); asgnRefNoCycle((void**) &(*last).Next, (*result).Next); nimln(78, "idents.nim"); asgnRefNoCycle((void**) &(*result).Next, buckets_141031[(idx)- 0]); nimln(79, "idents.nim"); asgnRefNoCycle((void**) &buckets_141031[(idx)- 0], result); } LA9: ; nimln(80, "idents.nim"); goto BeforeRet; } goto LA2; LA5: ; { NI LOC12; nimln(81, "idents.nim"); nimln(81, "idents.nim"); LOC12 = 0; LOC12 = cmpignorestyle_141034((*result).S->data, identifier, length); if (!(LOC12 == 0)) goto LA13; nimln(82, "idents.nim"); { NIM_BOOL LOC17; nimln(82, "idents.nim"); nimln(82, "idents.nim"); LOC17 = 0; nimln(82, "idents.nim"); LOC17 = (id == 0); if (LOC17) goto LA18; nimln(82, "idents.nim"); LOC17 = (id == (*result).Sup.Id); LA18: ; if (!!(LOC17)) goto LA19; nimln(82, "idents.nim"); hiddenraiseassert_76217(((NimStringDesc*) &TMP888)); } LA19: ; nimln(83, "idents.nim"); id = (*result).Sup.Id; } goto LA2; LA13: ; LA2: ; nimln(84, "idents.nim"); last = result; nimln(85, "idents.nim"); result = (*result).Next; } LA1: ; nimln(86, "idents.nim"); result = (tident141017*) newObj((&NTI141015), sizeof(tident141017)); (*result).Sup.Sup.m_type = (&NTI141017); nimln(87, "idents.nim"); (*result).H = h; nimln(88, "idents.nim"); nimln(88, "idents.nim"); asgnRefNoCycle((void**) &(*result).S, mnewString(length)); i_141422 = 0; HEX3Atmp_141435 = 0; nimln(89, "idents.nim"); nimln(89, "idents.nim"); TMP891 = subInt(length, 1); HEX3Atmp_141435 = (NI32)(TMP891); nimln(1301, "system.nim"); res_141437 = 0; nimln(1302, "system.nim"); while (1) { nimln(1302, "system.nim"); if (!(res_141437 <= HEX3Atmp_141435)) goto LA21; nimln(1301, "system.nim"); i_141422 = res_141437; nimln(89, "idents.nim"); if ((NU)(i_141422) > (NU)((*result).S->Sup.len)) raiseIndexError(); (*result).S->data[i_141422] = identifier[i_141422]; nimln(1304, "system.nim"); res_141437 = addInt(res_141437, 1); } LA21: ; nimln(90, "idents.nim"); asgnRefNoCycle((void**) &(*result).Next, buckets_141031[(idx)- 0]); nimln(91, "idents.nim"); asgnRefNoCycle((void**) &buckets_141031[(idx)- 0], result); nimln(92, "idents.nim"); { nimln(92, "idents.nim"); if (!(id == 0)) goto LA24; nimln(93, "idents.nim"); wordcounter_141200 = addInt(wordcounter_141200, 1); nimln(94, "idents.nim"); nimln(94, "idents.nim"); if (wordcounter_141200 == (-2147483647 -1)) raiseOverflow(); (*result).Sup.Id = ((NI32)-(wordcounter_141200)); } goto LA22; LA24: ; { nimln(96, "idents.nim"); (*result).Sup.Id = id; } LA22: ; BeforeRet: ; popFrame(); return result; }