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 | 115528408 |
absdiviu_rem | 50865634 |
addiispec | 3336567534 |
adduispec | 2787557583 |
adduispec_offset | 764281476 |
addumului | 0 |
affir | 404215782 |
cmpiispec | 3979126998 |
convi | 439396 |
diviiexact | 533940809 |
divis | 325426 |
divis_rem | 86249853 |
diviuexact | 31841992 |
diviuexact_i | 413224299 |
diviuuexact | 200497 |
divri | 151459026 |
divri_with_gmp | 35250797 |
divrr | 142856056 |
divrr_with_gmp | 76404161 |
dvmdii | 2196384758 |
equaliispec | 268850642 |
floorr | 7140583 |
icopy_ef | 41488786 |
incloop | 103120943 |
incneg | 66684 |
incpos | 102712972 |
int_normalize | 306764717 |
mantissa2nr | 138485668 |
mpz2GEN | 57765484 |
muliispec | 5843157912 |
muliispec_mirror | 85077435 |
muluispec | 5601584990 |
muluui | 222722 |
pari_gmp_free | 1755944 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
pari_kernel_version | 4 |
red_montgomery | 35055962 |
remi2n | 39040052 |
resetloop | 174328 |
roundr_up_ip | 527476055 |
setloop | 2999288 |
shiftispec | 720235327 |
sqrispec | 1031481990 |
sqrispec_mirror | 41486647 |
sqrtr_abs | 126691445 |
sqrtremi | 5161938 |
subiispec | 3022773567 |
subiuspec | 1778933975 |
truncr | 3655151 |
umodiu | 1328391201 |
xmpn_copy | 6897157 |
xmpn_mirror | 587931707 |
xmpn_mirrorcopy | 720125449 |
xmpn_zero | 238114868 |
![]() |
Generated by: LCOV version 1.16 |