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 |
sqrtispec2_sh | 274908 |
convi | 317428 |
Zf_sqr | 448896 |
convi_dac | 736542 |
divis | 751356 |
setloop | 2248386 |
truncr | 2698422 |
sqrtispec1_sh | 2751273 |
sqrtremi | 3814176 |
floorr | 5347842 |
Zf_mul | 15338496 |
muliifft_dis | 15702102 |
remi2n | 19992306 |
diviuexact | 28739520 |
diviuexact_i | 29566941 |
muliifft_dit | 30956967 |
incpos | 34963326 |
incloop | 35265825 |
red_montgomery | 40617075 |
mantissa2nr | 49099899 |
divis_rem | 65790498 |
sqrtr_abs | 91796427 |
xmpn_zero | 91796427 |
sqrtispec2 | 92583867 |
p_sqrtu2 | 92858775 |
p_sqrtu1 | 95610048 |
divri | 114207165 |
divrr | 130299924 |
Zf_add | 187658496 |
Zf_mulsqrt2 | 187658496 |
Zf_sub | 191070960 |
equaliispec | 200363064 |
Zf_shift | 206264025 |
absdiviu_rem | 280533384 |
affir | 322951134 |
sqrtispec | 329505852 |
diviiexact | 394993791 |
Zf_red_destroy | 399271821 |
roundr_up_ip | 448884007 |
catii | 473843970 |
adduispec_offset | 491216778 |
addshiftw | 707156079 |
int_normalize | 855889599 |
sqrispec_basecase | 939111102 |
sqrispec | 949050195 |
xmpn_copy | 1080640743 |
shiftispec | 1284732345 |
umodiu | 1428624978 |
subiuspec | 1593526263 |
dvmdii | 1685241168 |
adduispec | 2395863903 |
subiispec | 3396531843 |
cmpiispec | 4126888416 |
addiispec | 4587040128 |
muluispec | 4853112861 |
muliispec_basecase | 5241311634 |
muliispec | 5468325213 |
![]() |
Generated by: LCOV version 1.16 |