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 | 115519616 |
absdiviu_rem | 113196772 |
addiispec | 3336442974 |
adduispec | 2787188633 |
adduispec_offset | 764640690 |
addumului | 0 |
affir | 404213266 |
cmpiispec | 3983075956 |
convi | 439451 |
diviiexact | 534555868 |
divis | 1006216 |
divis_rem | 86222329 |
diviuexact | 40539066 |
diviuexact_i | 422546531 |
diviuuexact | 200470 |
divri | 151453509 |
divri_with_gmp | 35251160 |
divrr | 142815707 |
divrr_with_gmp | 76348096 |
dvmdii | 2196363915 |
equaliispec | 269638710 |
floorr | 7137462 |
icopy_ef | 41478766 |
incloop | 103605906 |
incneg | 66684 |
incpos | 103198590 |
int_normalize | 306496104 |
mantissa2nr | 138412723 |
mpz2GEN | 57761176 |
muliispec | 5945445368 |
muliispec_mirror | 85119160 |
muluispec | 5614478384 |
muluui | 222712 |
pari_gmp_free | 1755942 |
pari_gmp_realloc | 0 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
pari_kernel_version | 4 |
red_montgomery | 35013859 |
remi2n | 39118181 |
resetloop | 174328 |
roundr_up_ip | 527110508 |
setloop | 2999291 |
shiftispec | 717956128 |
sqrispec | 1031673826 |
sqrispec_mirror | 41408447 |
sqrtr_abs | 126575964 |
sqrtremi | 5160694 |
subiispec | 3022957548 |
subiuspec | 1778634296 |
truncr | 3650089 |
umodiu | 1327939604 |
xmpn_copy | 6896300 |
xmpn_mirror | 587709151 |
xmpn_mirrorcopy | 719570944 |
xmpn_zero | 237894358 |
![]() |
Generated by: LCOV version 1.16 |