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 | 316822 |
Zf_sqr | 448896 |
divis | 721647 |
convi_dac | 736188 |
setloop | 2247123 |
truncr | 2610042 |
sqrtispec1_sh | 2702022 |
sqrtremi | 3763359 |
floorr | 5228313 |
Zf_mul | 15325056 |
muliifft_dis | 15688713 |
remi2n | 18483759 |
diviuexact | 28224111 |
diviuexact_i | 29476611 |
muliifft_dit | 30930189 |
incpos | 34954578 |
incloop | 35257062 |
red_montgomery | 36737337 |
mantissa2nr | 48718581 |
divis_rem | 65060415 |
sqrtr_abs | 90923865 |
xmpn_zero | 90923865 |
sqrtispec2 | 91709823 |
p_sqrtu2 | 91984647 |
p_sqrtu1 | 94686669 |
divri | 113526405 |
divrr | 129541461 |
Zf_add | 187488576 |
Zf_mulsqrt2 | 187488576 |
Zf_sub | 190893876 |
equaliispec | 197809869 |
Zf_shift | 206067384 |
absdiviu_rem | 276990291 |
affir | 320511816 |
sqrtispec | 325917006 |
diviiexact | 389182800 |
Zf_red_destroy | 398892054 |
roundr_up_ip | 444146131 |
catii | 468414366 |
adduispec_offset | 491433237 |
addshiftw | 703980819 |
int_normalize | 850901577 |
sqrispec_basecase | 926828448 |
sqrispec | 936767181 |
xmpn_copy | 1068360291 |
shiftispec | 1274243535 |
umodiu | 1406973066 |
subiuspec | 1586760081 |
dvmdii | 1669155798 |
adduispec | 2388380865 |
subiispec | 3379564950 |
cmpiispec | 4095576507 |
addiispec | 4569878322 |
muluispec | 4806817323 |
muliispec_basecase | 5197480497 |
muliispec | 5424260127 |
![]() |
Generated by: LCOV version 1.16 |