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 | 783 |
pari_kernel_init | 785 |
sqrispec_fft | 1659 |
incneg | 50013 |
muliispec_fft | 83580 |
muliifft_unspliti | 85239 |
mulliifft_params | 85239 |
resetloop | 130656 |
diviuuexact | 149898 |
muluui | 166566 |
muliifft_spliti | 168819 |
sqrtispec2_sh | 274824 |
convi | 316820 |
Zf_sqr | 448896 |
divis | 721647 |
convi_dac | 736188 |
setloop | 2247123 |
truncr | 2610069 |
sqrtispec1_sh | 2702022 |
sqrtremi | 3763359 |
floorr | 5228340 |
Zf_mul | 15325056 |
muliifft_dis | 15688713 |
remi2n | 19693998 |
diviuexact | 28224117 |
diviuexact_i | 29478606 |
muliifft_dit | 30930189 |
incpos | 34954578 |
incloop | 35257062 |
red_montgomery | 36737337 |
mantissa2nr | 48718581 |
divis_rem | 65060415 |
sqrtr_abs | 90923919 |
xmpn_zero | 90923919 |
sqrtispec2 | 91709877 |
p_sqrtu2 | 91984701 |
p_sqrtu1 | 94686723 |
divri | 113526447 |
divrr | 129541737 |
Zf_add | 187488576 |
Zf_mulsqrt2 | 187488576 |
Zf_sub | 190893876 |
equaliispec | 197809857 |
Zf_shift | 206067384 |
absdiviu_rem | 276983796 |
affir | 320511993 |
sqrtispec | 325917192 |
diviiexact | 390511998 |
Zf_red_destroy | 398892054 |
roundr_up_ip | 444146920 |
catii | 468414630 |
adduispec_offset | 491395092 |
addshiftw | 703961739 |
int_normalize | 850894563 |
sqrispec_basecase | 927082494 |
sqrispec | 937021173 |
xmpn_copy | 1068360873 |
shiftispec | 1274807616 |
umodiu | 1406995731 |
subiuspec | 1586717439 |
dvmdii | 1669159026 |
adduispec | 2388291600 |
subiispec | 3379349955 |
cmpiispec | 4098003144 |
addiispec | 4569720714 |
muluispec | 4808615319 |
muliispec_basecase | 5199107022 |
muliispec | 5425876995 |
![]() |
Generated by: LCOV version 1.16 |