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 ![]() |
Zf_add | 187743168 |
Zf_mul | 15346560 |
Zf_mulsqrt2 | 187743168 |
Zf_red_destroy | 399451641 |
Zf_shift | 206356764 |
Zf_sqr | 448896 |
Zf_sub | 191155650 |
absdiviu_rem | 280532976 |
addiispec | 4590630429 |
addshiftw | 707455560 |
adduispec | 2398028568 |
adduispec_offset | 491214603 |
addumului | 0 |
affir | 322951125 |
catii | 473843802 |
cmpiispec | 4122219636 |
convi | 317110 |
convi_dac | 736512 |
diviiexact | 395183286 |
divis | 751344 |
divis_rem | 65790327 |
diviuexact | 28712127 |
diviuexact_i | 29566749 |
diviuuexact | 149898 |
divri | 114207165 |
divrr | 130299918 |
dvmdii | 1687308774 |
equaliispec | 200339307 |
floorr | 5347839 |
incloop | 35259978 |
incneg | 50013 |
incpos | 34957494 |
int_normalize | 856562298 |
mantissa2nr | 49099899 |
muliifft_dis | 15710103 |
muliifft_dit | 30972969 |
muliifft_spliti | 169047 |
muliifft_unspliti | 85353 |
muliispec | 5473532316 |
muliispec_basecase | 5246368725 |
muliispec_fft | 83694 |
mulliifft_params | 85353 |
muluispec | 4857899667 |
muluui | 166566 |
p_sqrtu1 | 95610003 |
p_sqrtu2 | 92858748 |
pari_kernel_close | 786 |
pari_kernel_init | 788 |
pari_kernel_version | 2 |
red_montgomery | 40596525 |
remi2n | 19992291 |
resetloop | 130656 |
roundr_up_ip | 448883869 |
setloop | 2247333 |
shiftispec | 1284981219 |
sqrispec | 949030260 |
sqrispec_basecase | 939091170 |
sqrispec_fft | 1659 |
sqrtispec | 329505741 |
sqrtispec1_sh | 2751255 |
sqrtispec2 | 92583840 |
sqrtispec2_sh | 274908 |
sqrtr_abs | 91796415 |
sqrtremi | 3814143 |
subiispec | 3393830238 |
subiuspec | 1592334903 |
truncr | 2698419 |
umodiu | 1425715563 |
xmpn_copy | 1080640383 |
xmpn_zero | 91796415 |
![]() |
Generated by: LCOV version 1.16 |