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 | 278806557 |
addiispec | 4572364206 |
addshiftw | 704270652 |
adduispec | 2389385580 |
adduispec_offset | 491859555 |
addumului | 0 |
affir | 320525793 |
catii | 468423300 |
cmpiispec | 4098786696 |
convi | 317011 |
convi_dac | 736128 |
diviiexact | 390661989 |
divis | 721647 |
divis_rem | 65060814 |
diviuexact | 28476120 |
diviuexact_i | 29512044 |
diviuuexact | 149898 |
divri | 113500974 |
divrr | 129485079 |
dvmdii | 1671314826 |
equaliispec | 198584547 |
floorr | 5246184 |
incloop | 35257065 |
incneg | 50013 |
incpos | 34954581 |
int_normalize | 851292963 |
mantissa2nr | 48718818 |
muliifft_dis | 15702102 |
muliifft_dit | 30956967 |
muliifft_spliti | 168921 |
muliifft_unspliti | 85290 |
muliispec | 5426141082 |
muliispec_basecase | 5199216126 |
muliispec_fft | 83631 |
mulliifft_params | 85290 |
muluispec | 4809036840 |
muluui | 166566 |
p_sqrtu1 | 94687737 |
p_sqrtu2 | 91985496 |
pari_kernel_close | 786 |
pari_kernel_init | 788 |
pari_kernel_version | 2 |
red_montgomery | 36737337 |
remi2n | 19702815 |
resetloop | 130656 |
roundr_up_ip | 444314239 |
setloop | 2247126 |
shiftispec | 1275317085 |
sqrispec | 938053002 |
sqrispec_basecase | 928113927 |
sqrispec_fft | 1659 |
sqrtispec | 325922322 |
sqrtispec1_sh | 2702241 |
sqrtispec2 | 91710672 |
sqrtispec2_sh | 274824 |
sqrtr_abs | 90924714 |
sqrtremi | 3763578 |
subiispec | 3382659858 |
subiuspec | 1587892914 |
truncr | 2621976 |
umodiu | 1407658350 |
xmpn_copy | 1068383172 |
xmpn_zero | 90924714 |
![]() |
Generated by: LCOV version 1.16 |