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 ![]() |
powrshalf | 0 |
catalan | 14 |
constcatalan | 14 |
cxlog1p | 14 |
magm | 14 |
mpcatalan | 14 |
ellE | 21 |
ser_agm1 | 21 |
real_I | 35 |
serchop | 42 |
serchop_i | 42 |
cos_p | 49 |
is_ext_qfr | 49 |
ser_cmp_expo | 49 |
mplog1p | 63 |
sin_p | 63 |
mpcotan | 70 |
magm_gap | 84 |
Qp_exp_prec | 98 |
glog1p | 119 |
gpow0 | 126 |
log1p_i | 133 |
mptan | 133 |
ellK | 140 |
ellK_i | 147 |
powp | 161 |
gtan | 224 |
transvecgen | 329 |
Zn_sqrt | 420 |
powrfrac | 518 |
Up_sqrtn_ram | 784 |
teichmullerinit | 1225 |
Up_sqrt | 1834 |
Qp_sqrt | 1862 |
trans_evalgen | 1967 |
dvdsi_quot | 2296 |
Qp_sqrtn | 2534 |
tan_huge_im | 4018 |
gcotan | 4214 |
rootsof1_cx | 4536 |
teich | 5564 |
teichmuller | 5802 |
ser_pow_1 | 8022 |
val_from_i | 8036 |
ser_powfrac | 8043 |
usqrtn | 8108 |
ser_pow | 8127 |
Zp_teichmuller | 10814 |
powPis | 11935 |
upowers | 12017 |
pow2Pis | 12236 |
tofp_safe | 13250 |
_oner | 14196 |
powersr | 14196 |
sqrt_ser | 18739 |
expm1_Ir | 20130 |
mpsincosm1 | 20130 |
cxexpm1 | 20186 |
powr0 | 21377 |
pow_polmod | 23767 |
mpexpm1 | 24683 |
gexpm1 | 26506 |
zellagmcx | 28749 |
sqrtnint | 29234 |
rootsof1q_cx | 29778 |
serchop0 | 37604 |
rootsof1powinit | 37968 |
gsqrpowers | 39928 |
pi_ramanujan | 42276 |
gsqrtn | 43060 |
log2_split | 43092 |
consteuler | 57695 |
mpeuler | 57695 |
serexp | 83545 |
swap_clone | 85913 |
Qp_exp | 109086 |
Qp_exp_safe | 109547 |
agm | 112210 |
agm1 | 112504 |
shiftc_inplace | 119626 |
powruhalf | 121475 |
Z2_sqrt | 144690 |
mpexp0 | 147230 |
gcos | 154871 |
powcx_prec | 192856 |
Qp_log | 196211 |
mplog | 203812 |
gpowers0 | 208524 |
PiI2 | 267723 |
logagmcx | 299939 |
PiI2n | 303556 |
Z_to_padic | 304141 |
agm1cx | 337326 |
pari_close_floats | 341357 |
pari_init_floats | 342658 |
agmcx_a_b | 366075 |
agmcx_init | 366075 |
scalarpol_get_1 | 375153 |
rpowuu | 445640 |
_one | 513191 |
gpowers | 513199 |
sqrtnof1 | 586701 |
_rpowuu_msqr | 629101 |
pow_monome | 638634 |
mpsin | 834970 |
expIr | 927597 |
grootsof1_4 | 1006563 |
logagmr_abs | 1038208 |
agm1r_abs | 1113123 |
grootsof1 | 1217035 |
gsin | 1252143 |
powps | 1316932 |
mulpowu | 1316997 |
expQ | 1468573 |
_rpowuu_sqr | 1620525 |
cubic_prec_mask | 1768055 |
transvec | 2079865 |
rootsof1u_cx | 2212889 |
mpsinc | 2319450 |
gsinc | 2319562 |
gpowg0 | 2498543 |
mpcos | 2745077 |
sqrtnr_abs | 2811385 |
trans_eval | 4022613 |
_mul | 4301396 |
cxexp | 4794566 |
gsincos | 4804009 |
powrs | 5069979 |
powcx | 5520622 |
agmcx_gap | 5540946 |
abpq_init | 5578004 |
_sqr | 6105620 |
powru | 6155261 |
_mulr | 7133309 |
powfrac | 10555975 |
logr_aux | 12070867 |
logr_abs | 13956979 |
mpsincos | 13980772 |
rootsof1pow | 15210468 |
mpaut | 15851336 |
_sqrr | 16243884 |
agmr_gap | 16478131 |
mpcosm1 | 17555469 |
glog | 18180161 |
gexp | 19019048 |
mpexp_basecase | 19124484 |
exp1r_abs | 19201128 |
modlog2 | 19218589 |
mpexp | 19271421 |
gpow | 21757648 |
usqru | 22315171 |
powis | 29129955 |
mplog2 | 29379415 |
constlog2 | 29379428 |
_muli | 30016250 |
Pi2n | 31588995 |
T2 | 42938013 |
powuu | 46702915 |
mppi | 46725016 |
constpi | 46725219 |
gsqrt | 63075988 |
abpq_sum | 81146952 |
_sqri | 81925745 |
powgi | 106282979 |
upowuu | 115085377 |
powiu | 119827918 |
powiu_sign | 120042591 |
gpowgs | 125662773 |
mulii3 | 189720021 |
![]() |
Generated by: LCOV version 1.16 |