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 | 187658496 |
Zf_mul | 15338496 |
Zf_mulsqrt2 | 187658496 |
Zf_red_destroy | 399271983 |
Zf_shift | 206264028 |
Zf_sqr | 448896 |
Zf_sub | 191070978 |
absdiviu_rem | 278862033 |
addiispec | 4576542189 |
addshiftw | 705683262 |
adduispec | 2392635636 |
adduispec_offset | 491917644 |
addumului | 0 |
affir | 320922399 |
catii | 471186822 |
cmpiispec | 4100512761 |
convi | 317022 |
convi_dac | 736332 |
diviiexact | 390693963 |
divis | 721893 |
divis_rem | 65080182 |
diviuexact | 28478289 |
diviuexact_i | 29513355 |
diviuuexact | 149898 |
divri | 114002430 |
divrr | 129588567 |
dvmdii | 1672965609 |
equaliispec | 198592176 |
floorr | 5246172 |
incloop | 35257065 |
incneg | 50013 |
incpos | 34954581 |
int_normalize | 854068410 |
mantissa2nr | 48736806 |
muliifft_dis | 15702102 |
muliifft_dit | 30956967 |
muliifft_spliti | 168921 |
muliifft_unspliti | 85290 |
muliispec | 5456442567 |
muliispec_basecase | 5229501543 |
muliispec_fft | 83631 |
mulliifft_params | 85290 |
muluispec | 4837381110 |
muluui | 166566 |
p_sqrtu1 | 94999644 |
p_sqrtu2 | 92297391 |
pari_kernel_close | 786 |
pari_kernel_init | 788 |
pari_kernel_version | 2 |
red_montgomery | 36739086 |
remi2n | 19717713 |
resetloop | 130656 |
roundr_up_ip | 446523136 |
setloop | 2247126 |
shiftispec | 1276928511 |
sqrispec | 939501873 |
sqrispec_basecase | 929562798 |
sqrispec_fft | 1659 |
sqrtispec | 327615975 |
sqrtispec1_sh | 2702253 |
sqrtispec2 | 92022564 |
sqrtispec2_sh | 274827 |
sqrtr_abs | 91236606 |
sqrtremi | 3763593 |
subiispec | 3384295017 |
subiuspec | 1588277832 |
truncr | 2621961 |
umodiu | 1407853731 |
xmpn_copy | 1074441855 |
xmpn_zero | 91236606 |
![]() |
Generated by: LCOV version 1.16 |