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 | 786 |
pari_kernel_init | 788 |
sqrispec_fft | 1659 |
incneg | 50013 |
muliispec_fft | 83631 |
muliifft_unspliti | 85290 |
mulliifft_params | 85290 |
resetloop | 130656 |
diviuuexact | 149898 |
muluui | 166566 |
muliifft_spliti | 168921 |
divis | 240030 |
sqrtispec2_sh | 271143 |
convi | 317615 |
Zf_sqr | 448896 |
convi_dac | 737271 |
setloop | 2248389 |
truncr | 2698983 |
sqrtispec1_sh | 2733366 |
sqrtremi | 3792537 |
floorr | 5348343 |
Zf_mul | 15338496 |
muliifft_dis | 15702102 |
remi2n | 20034210 |
diviuexact | 22434063 |
diviuexact_i | 29602416 |
muliifft_dit | 30956967 |
incpos | 34963494 |
incloop | 35265993 |
red_montgomery | 40617075 |
mantissa2nr | 49147554 |
divis_rem | 65816856 |
sqrtr_abs | 91951701 |
xmpn_zero | 91951701 |
sqrtispec2 | 92739174 |
p_sqrtu2 | 93010317 |
p_sqrtu1 | 95743683 |
divri | 114245811 |
divrr | 130340583 |
Zf_add | 187658496 |
Zf_mulsqrt2 | 187658496 |
Zf_sub | 191070960 |
equaliispec | 200367168 |
Zf_shift | 206264025 |
absdiviu_rem | 233503437 |
affir | 323161080 |
sqrtispec | 330542979 |
diviiexact | 396797913 |
Zf_red_destroy | 399271821 |
roundr_up_ip | 449031805 |
catii | 475607610 |
adduispec_offset | 491224647 |
addshiftw | 708040275 |
int_normalize | 857661492 |
sqrispec_basecase | 941656710 |
sqrispec | 951596058 |
xmpn_copy | 1084354125 |
shiftispec | 1289482338 |
umodiu | 1431816489 |
subiuspec | 1597467930 |
dvmdii | 1686396945 |
adduispec | 2399735562 |
subiispec | 3401416104 |
cmpiispec | 4131994191 |
addiispec | 4590935595 |
muluispec | 4850622864 |
muliispec_basecase | 5168622201 |
muliispec | 5395636752 |
![]() |
Generated by: LCOV version 1.16 |