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 | 186394752 |
Zf_mul | 15237120 |
Zf_mulsqrt2 | 186394752 |
Zf_red_destroy | 396451020 |
Zf_shift | 204805143 |
Zf_sqr | 448896 |
Zf_sub | 189757548 |
absdiviu_rem | 271879443 |
addiispec | 4302815313 |
addshiftw | 643940736 |
adduispec | 2194701645 |
adduispec_offset | 349292886 |
addumului | 0 |
affir | 317752731 |
catii | 467677278 |
cmpiispec | 3920153283 |
convi | 308660 |
convi_dac | 734235 |
diviiexact | 351726294 |
divis | 720507 |
divis_rem | 64080264 |
diviuexact | 22212936 |
diviuexact_i | 28978512 |
diviuuexact | 149130 |
divri | 113724402 |
divrr | 128273541 |
dvmdii | 1450975014 |
equaliispec | 200950026 |
floorr | 5214747 |
incloop | 32250972 |
incneg | 49989 |
incpos | 31948608 |
int_normalize | 842982801 |
mantissa2nr | 48780324 |
muliifft_dis | 15601146 |
muliifft_dit | 30755055 |
muliifft_spliti | 168081 |
muliifft_unspliti | 84870 |
muliispec | 5187783177 |
muliispec_basecase | 4988283054 |
muliispec_fft | 83211 |
mulliifft_params | 84870 |
muluispec | 4629668463 |
muluui | 165798 |
p_sqrtu1 | 94498674 |
p_sqrtu2 | 91791366 |
pari_kernel_close | 765 |
pari_kernel_init | 767 |
pari_kernel_version | 2 |
red_montgomery | 39674454 |
remi2n | 18694242 |
resetloop | 130656 |
roundr_up_ip | 443030530 |
setloop | 2246652 |
shiftispec | 1258922310 |
sqrispec | 907185324 |
sqrispec_basecase | 899872020 |
sqrispec_fft | 1659 |
sqrtispec | 325358385 |
sqrtispec1_sh | 2707308 |
sqrtispec2 | 91519746 |
sqrtispec2_sh | 271620 |
sqrtr_abs | 90743958 |
sqrtremi | 3755271 |
subiispec | 3239708061 |
subiuspec | 1497080052 |
truncr | 2590494 |
umodiu | 1294969332 |
xmpn_copy | 1066659651 |
xmpn_zero | 90743958 |
![]() |
Generated by: LCOV version 1.16 |