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 | 187658496 |
Zf_mul | 15338496 |
Zf_mulsqrt2 | 187658496 |
Zf_red_destroy | 399271821 |
Zf_shift | 206264025 |
Zf_sqr | 448896 |
Zf_sub | 191070960 |
absdiviu_rem | 233521281 |
addiispec | 4592075847 |
addshiftw | 708433689 |
adduispec | 2399891790 |
adduispec_offset | 491230134 |
addumului | 0 |
affir | 323172861 |
catii | 476216046 |
cmpiispec | 4133058783 |
convi | 317693 |
convi_dac | 737568 |
diviiexact | 396846201 |
divis | 240009 |
divis_rem | 65817915 |
diviuexact | 22434684 |
diviuexact_i | 29602704 |
diviuuexact | 149898 |
divri | 114247233 |
divrr | 130387773 |
dvmdii | 1687021308 |
equaliispec | 199779165 |
floorr | 5350197 |
incloop | 35266008 |
incneg | 50013 |
incpos | 34963509 |
int_normalize | 858272088 |
mantissa2nr | 49152720 |
muliifft_dis | 15702102 |
muliifft_dit | 30956967 |
muliifft_spliti | 168921 |
muliifft_unspliti | 85290 |
muliispec | 5396221263 |
muliispec_basecase | 5169160815 |
muliispec_fft | 83631 |
mulliifft_params | 85290 |
muluispec | 4851967713 |
muluui | 166566 |
p_sqrtu1 | 95811774 |
p_sqrtu2 | 93077481 |
pari_kernel_close | 786 |
pari_kernel_init | 788 |
pari_kernel_version | 2 |
red_montgomery | 40629585 |
remi2n | 20045946 |
resetloop | 130656 |
roundr_up_ip | 449255224 |
setloop | 2248392 |
shiftispec | 1289977635 |
sqrispec | 951973746 |
sqrispec_basecase | 942033912 |
sqrispec_fft | 1659 |
sqrtispec | 330914361 |
sqrtispec1_sh | 2734293 |
sqrtispec2 | 92806338 |
sqrtispec2_sh | 271143 |
sqrtr_abs | 92018865 |
sqrtremi | 3793464 |
subiispec | 3402385197 |
subiuspec | 1597635519 |
truncr | 2701041 |
umodiu | 1432084401 |
xmpn_copy | 1085672583 |
xmpn_zero | 92018865 |
![]() |
Generated by: LCOV version 1.16 |