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 ![]() |
GEN2mpz | 115524426 |
absdiviu_rem | 50858018 |
addiispec | 3336398759 |
adduispec | 2790340121 |
adduispec_offset | 764231948 |
addumului | 0 |
affir | 404232600 |
cmpiispec | 3978752141 |
convi | 439394 |
diviiexact | 533953102 |
divis | 325418 |
divis_rem | 86243240 |
diviuexact | 31842141 |
diviuexact_i | 413239907 |
diviuuexact | 200504 |
divri | 151459402 |
divri_with_gmp | 35251047 |
divrr | 142861909 |
divrr_with_gmp | 76407899 |
dvmdii | 2195867780 |
equaliispec | 268849143 |
floorr | 7139839 |
icopy_ef | 41492061 |
incloop | 102915809 |
incneg | 66684 |
incpos | 102510482 |
int_normalize | 306489827 |
mantissa2nr | 138486970 |
mpz2GEN | 57763453 |
muliispec | 5842953149 |
muliispec_mirror | 85062633 |
muluispec | 5601533459 |
muluui | 222733 |
pari_gmp_free | 1755942 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
pari_kernel_version | 4 |
red_montgomery | 35058582 |
remi2n | 39010505 |
resetloop | 174328 |
roundr_up_ip | 527480540 |
setloop | 2999289 |
shiftispec | 720254003 |
sqrispec | 1031529850 |
sqrispec_mirror | 41484538 |
sqrtr_abs | 126690645 |
sqrtremi | 5161992 |
subiispec | 3022582598 |
subiuspec | 1778820969 |
truncr | 3655302 |
umodiu | 1331238860 |
xmpn_copy | 6896922 |
xmpn_mirror | 587886191 |
xmpn_mirrorcopy | 720517610 |
xmpn_zero | 238122534 |
![]() |
Generated by: LCOV version 1.16 |