This page documents the degree to which the PARI/GP source code is tested by
our public test suite, distributed with the source distribution in directory
src/test/
. This is measured by the gcov utility; we then
process gcov output using the lcov frond-end.
We test a few variants depending on Configure
flags
on the pari.math.u-bordeaux.fr
machine (x86_64
architecture), and agregate them in the final report:
x86_32
architecture at
Configure time via setarch
The target is to exceed 90% coverage for all mathematical modules
(given that branches depending on DEBUGLEVEL
or DEBUGMEM
are not covered). This script is
run to produce the results below.
LCOV - code coverage report | |||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
![]() |
Function Name ![]() |
Hit count ![]() |
addumului | 0 |
pari_kernel_version | 2 |
pari_kernel_close | 777 |
pari_kernel_init | 779 |
sqrispec_fft | 1659 |
incneg | 50013 |
muliispec_fft | 83451 |
muliifft_unspliti | 85110 |
mulliifft_params | 85110 |
resetloop | 130656 |
diviuuexact | 149130 |
muluui | 165798 |
muliifft_spliti | 168561 |
sqrtispec2_sh | 275109 |
convi | 316228 |
Zf_sqr | 448896 |
divis | 721872 |
convi_dac | 733815 |
setloop | 2247087 |
truncr | 2663010 |
sqrtispec1_sh | 2702628 |
sqrtremi | 3764757 |
floorr | 5243496 |
Zf_mul | 15295488 |
muliifft_dis | 15659274 |
remi2n | 18491472 |
diviuexact | 28234683 |
diviuexact_i | 29497869 |
muliifft_dit | 30871311 |
incpos | 34954041 |
incloop | 35256525 |
red_montgomery | 39049344 |
mantissa2nr | 48739242 |
divis_rem | 65137269 |
sqrtr_abs | 90916779 |
xmpn_zero | 90916779 |
sqrtispec2 | 91703244 |
p_sqrtu2 | 91978353 |
p_sqrtu1 | 94680981 |
divri | 113307054 |
divrr | 129584295 |
Zf_add | 187122816 |
Zf_mulsqrt2 | 187122816 |
Zf_sub | 190514628 |
equaliispec | 197853081 |
Zf_shift | 205647228 |
absdiviu_rem | 277278447 |
affir | 320683815 |
sqrtispec | 325861353 |
diviiexact | 389433558 |
Zf_red_destroy | 398080593 |
roundr_up_ip | 443928775 |
catii | 468316218 |
adduispec_offset | 491446833 |
addshiftw | 703499397 |
int_normalize | 850535667 |
sqrispec_basecase | 929242590 |
sqrispec | 939180831 |
xmpn_copy | 1068143847 |
shiftispec | 1274740152 |
umodiu | 1408935738 |
subiuspec | 1587491034 |
dvmdii | 1670385579 |
adduispec | 2389856328 |
subiispec | 3380480082 |
cmpiispec | 4097637447 |
addiispec | 4569102876 |
muluispec | 4800810786 |
muliispec_basecase | 5188520793 |
muliispec | 5415087453 |
![]() |
Generated by: LCOV version 1.16 |