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 | 115122768 |
absdiviu_rem | 109860778 |
addiispec | 3319878615 |
adduispec | 2779482985 |
adduispec_offset | 765774087 |
addumului | 0 |
affir | 401187154 |
cmpiispec | 3943191202 |
convi | 438559 |
diviiexact | 525661274 |
divis | 966619 |
divis_rem | 85222431 |
diviuexact | 39182358 |
diviuexact_i | 413739934 |
diviuuexact | 200486 |
divri | 151126210 |
divri_with_gmp | 35235553 |
divrr | 141823454 |
divrr_with_gmp | 75794112 |
dvmdii | 2178597692 |
equaliispec | 267252661 |
floorr | 7001099 |
icopy_ef | 41191440 |
incloop | 103449670 |
incneg | 66684 |
incpos | 103043966 |
int_normalize | 307115387 |
mantissa2nr | 137371060 |
mpz2GEN | 57562364 |
muliispec | 5921277531 |
muliispec_mirror | 85236796 |
muluispec | 5585209265 |
muluui | 222711 |
pari_gmp_free | 1759234 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
pari_kernel_version | 4 |
red_montgomery | 33641261 |
remi2n | 37409706 |
resetloop | 174328 |
roundr_up_ip | 524450068 |
setloop | 2997603 |
shiftispec | 703541022 |
sqrispec | 1018894515 |
sqrispec_mirror | 41415537 |
sqrtr_abs | 125621563 |
sqrtremi | 5114746 |
subiispec | 3003167652 |
subiuspec | 1768120392 |
truncr | 3543378 |
umodiu | 1303968685 |
xmpn_copy | 6706885 |
xmpn_mirror | 584905210 |
xmpn_mirrorcopy | 716215405 |
xmpn_zero | 236401478 |
![]() |
Generated by: LCOV version 1.16 |