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 ![]() |
Zf_add | 187743168 |
Zf_mul | 15346560 |
Zf_mulsqrt2 | 187743168 |
Zf_red_destroy | 399451479 |
Zf_shift | 206356761 |
Zf_sqr | 448896 |
Zf_sub | 191155632 |
absdiviu_rem | 280532724 |
addiispec | 4587905403 |
addshiftw | 707471754 |
adduispec | 2395861296 |
adduispec_offset | 491214021 |
addumului | 0 |
affir | 322951134 |
catii | 473843970 |
cmpiispec | 4127100948 |
convi | 317435 |
convi_dac | 736542 |
diviiexact | 394993254 |
divis | 751356 |
divis_rem | 65790498 |
diviuexact | 28739553 |
diviuexact_i | 29566812 |
diviuuexact | 149898 |
divri | 114207165 |
divrr | 130299924 |
dvmdii | 1685242404 |
equaliispec | 200363064 |
floorr | 5347842 |
incloop | 35265825 |
incneg | 50013 |
incpos | 34963326 |
int_normalize | 856561041 |
mantissa2nr | 49099899 |
muliifft_dis | 15710103 |
muliifft_dit | 30972969 |
muliifft_spliti | 169047 |
muliifft_unspliti | 85353 |
muliispec | 5468806920 |
muliispec_basecase | 5241635400 |
muliispec_fft | 83694 |
mulliifft_params | 85353 |
muluispec | 4853114415 |
muluui | 166566 |
p_sqrtu1 | 95610048 |
p_sqrtu2 | 92858775 |
pari_kernel_close | 786 |
pari_kernel_init | 788 |
pari_kernel_version | 2 |
red_montgomery | 40617075 |
remi2n | 19992306 |
resetloop | 130656 |
roundr_up_ip | 448884007 |
setloop | 2248386 |
shiftispec | 1284903684 |
sqrispec | 949050417 |
sqrispec_basecase | 939111324 |
sqrispec_fft | 1659 |
sqrtispec | 329505852 |
sqrtispec1_sh | 2751273 |
sqrtispec2 | 92583867 |
sqrtispec2_sh | 274908 |
sqrtr_abs | 91796427 |
sqrtremi | 3814176 |
subiispec | 3396902391 |
subiuspec | 1593556134 |
truncr | 2698422 |
umodiu | 1428634131 |
xmpn_copy | 1080640743 |
xmpn_zero | 91796427 |
![]() |
Generated by: LCOV version 1.16 |