本文整理汇总了C++中raiseOverflow函数的典型用法代码示例。如果您正苦于以下问题:C++ raiseOverflow函数的具体用法?C++ raiseOverflow怎么用?C++ raiseOverflow使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了raiseOverflow函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: N_INLINE
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;
}
示例2: N_NIMCALL
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;
}
示例3: N_NIMCALL
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();
}
示例4: N_NIMCALL
//.........这里部分代码省略.........
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;
}
示例5: N_NIMCALL
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();
}
示例6: N_NIMCALL
//.........这里部分代码省略.........
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;
}