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 | 186880896 |
Zf_mul | 15275520 |
Zf_mulsqrt2 | 186880896 |
Zf_red_destroy | 397539939 |
Zf_shift | 205368684 |
Zf_sqr | 448896 |
Zf_sub | 190263924 |
absdiviu_rem | 274375905 |
addiispec | 4399820751 |
addshiftw | 650593227 |
adduispec | 2253890235 |
adduispec_offset | 353291856 |
addumului | 0 |
affir | 319716486 |
catii | 468181938 |
cmpiispec | 4007996391 |
convi | 315885 |
convi_dac | 733725 |
diviiexact | 377000646 |
divis | 722529 |
divis_rem | 64986648 |
diviuexact | 22482027 |
diviuexact_i | 29433594 |
diviuuexact | 149130 |
divri | 113276781 |
divrr | 129350880 |
dvmdii | 1475383896 |
equaliispec | 203015874 |
floorr | 5227971 |
incloop | 32253222 |
incneg | 49989 |
incpos | 31950762 |
int_normalize | 847179843 |
mantissa2nr | 48670071 |
muliifft_dis | 15639399 |
muliifft_dit | 30831561 |
muliifft_spliti | 168375 |
muliifft_unspliti | 85017 |
muliispec | 5292883857 |
muliispec_basecase | 5090122518 |
muliispec_fft | 83358 |
mulliifft_params | 85017 |
muluispec | 4732536480 |
muluui | 165798 |
p_sqrtu1 | 94650594 |
p_sqrtu2 | 91936812 |
pari_kernel_close | 774 |
pari_kernel_init | 776 |
pari_kernel_version | 2 |
red_montgomery | 39029946 |
remi2n | 18451053 |
resetloop | 130656 |
roundr_up_ip | 443444305 |
setloop | 2247000 |
shiftispec | 1273352391 |
sqrispec | 908256381 |
sqrispec_basecase | 900945150 |
sqrispec_fft | 1659 |
sqrtispec | 325754817 |
sqrtispec1_sh | 2713782 |
sqrtispec2 | 91663848 |
sqrtispec2_sh | 272964 |
sqrtr_abs | 90887109 |
sqrtremi | 3764040 |
subiispec | 3308786832 |
subiuspec | 1545748590 |
truncr | 2612814 |
umodiu | 1406147136 |
xmpn_copy | 1067823237 |
xmpn_zero | 90887109 |
Generated by: LCOV version 1.16 |