Code coverage tests

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-bordeaux1.fr machine (x86_64 architecture), and agregate them in the final report:

The target is 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
Current view: top level - basemath - elliptic.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 18603-5baf4f6) Lines: 3256 3580 90.9 %
Date: 2016-02-11 Functions: 292 307 95.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1634 2280 71.7 %

Function Name Sort by function name Hit count Sort by hit count
CM_factor 14
E_compose_r 248829
E_compose_rst 261065
E_compose_t 234857
E_compose_u 0
F2_card 742
F3_card 2359
Fl_c4_to_a4 428999
Fl_c4c6_to_a4a6 428579
Fl_ell_to_a4a6 428579
FpE_issingular 252
Mod32 567399
PiI2div 8904
Q_numer 329
Zec_h_evalx 7
ZtoF2 98
_elleisnum 13489
_elleta 8869
_hell 217
_mul 175
_sqr 595
a4a6_ch 50094
a4a6_ch_Fl 420
addii3 1134
addii4 756
addii5 378
akell 693
anell 581
anellsmall 938
apk_good 735
approx_mod2 0
approx_mod3 0
aux 830354
aux2 1348942
base_ring 630894
bilhell 7
bilhell_i 21
c4_to_a4 2743779
c4c6_to_a4a6 2743780
cardmod2 721
cardmod3 2219
ch_FF 126
ch_Fp 7
ch_Fq 119
ch_Q 539
ch_Qp 7
ch_R 539
ch_Rg 7
check_periods 14469
check_real 13734
checkcoordch 616
checkell 3145316
checkell5 280
checkell_Fq 123844
checkell_Q 458444
checkell_Qp 0
checkell_int 1631
checkellisog 2212
checkellp 2860719
checkellpt 93267
chk_p 97198
composev_r 248829
composev_rst 261065
composev_s 67214
composev_st 97587
composev_t 246694
composev_u 0
compute_periods 14462
coordch 273
coordch_r 510167
coordch_rst 261338
coordch_s 111608
coordch_st 261338
coordch_t 329035
coordch_u 406
do_padic_agm 119
doellQp_Tate_uniformization 49
doellQp_ab 126
doellQp_root 161
doellR_ab 70
doellR_eta 28
doellR_omega 309
doellR_roots 407
doellcard 119722
doellff_get_o 903
doellgens 16800
doellglobalred 453607
doellgroup 38689
doellrootno 406
ec_2divpol_evalx 1449
ec_LHS_evalQ 2905
ec_bmodel 2661
ec_dFdx_evalQ 1351
ec_dFdy_evalQ 532
ec_dmFdy_evalQ 5033
ec_f_evalx 416857
ec_h_evalx 880145
ec_half_deriv_2divpol_evalx 1253
ellQ_get_CM 1190
ellQ_get_N 7028
ellQ_get_Nfa 322
ellQp_Tate_uniformization 84
ellQp_ab 28
ellQp_q 0
ellQp_root 168
ellQp_u 28
ellQp_u2 0
ellR_ab 973
ellR_eta 42
ellR_omega 1330
ellR_on_neutral 973
ellR_root 973
ellR_roots 1387
ell_is_integral 301
ell_over_Fq 226581
ell_reset 259
ell_to_a4a6 2743633
ell_to_a4a6_bc 50096
elladd 3283
ellan_get_ap 430329
ellanal_globalred 1211
ellap 2769046
ellap_CM_fast 429909
ellbasechar 1533
ellcard 50268
ellcard_ram 2673860
ellchangecurve 280
ellchangeinvert 14
ellchangepoint 280
ellchangepoint0 280
ellchangepointinv 63
ellchangepointinv0 63
elldivpol 1778
elldivpol0 3339
elldivpol4 2716
elleisnum 4438
elleta 42
ellexpo 7
ellff_get_card 163542
ellff_get_gens 16877
ellff_get_group 39186
ellff_get_o 1183
ellff_get_p 184997
ellffmul 77718
ellformaldifferential 21
ellformaldifferential_i 273
ellformalexp 21
ellformallog 49
ellformallogsigma_t 203
ellformalpoint 21
ellformalpoint_i 294
ellformalw 329
ellfromj 33817
ellfromj_simple 22540
ellgen 1764
ellgenerators 16828
ellglobalred 452956
ellglobalred_all 453621
ellglobalred_i 461517
ellgroup 22701
ellgroup0 21294
ellgroup_m 22785
ellheight 126
ellheight0 28
ellheightmatrix 7
ellheightoo 868
ellheightpairing 35
ellinit 675553
ellinit_Fp 57029
ellinit_Fq 87991
ellinit_Q 494543
ellinit_Qp 56
ellinit_Rg 126
ellinit_nf 35952
ellinit_nf_to_Fq 45339
ellintegralmodel 454069
ellisoncurve 4116
ellissupersingular 164738
elljissupersingular 164703
elllocalred 98196
elllog 126
elllseries 14
ellminimalmodel 714
ellminimalmodel_i 454671
ellminimaltwist 238
ellminimaltwist0 189
ellminimaltwistcond 224
ellmul 78202
ellmul_CM 14
ellmul_CM_aux 14
ellmul_Z 78201
ellneg 343
ellneg_i 49
ellnonsingularmultiple 217
ellomega_agm 302
ellomega_cx 92
ellordinate 1351
ellordinate_i 1351
ellpadicbil 7
ellpadicfrobenius 175
ellpadicheight 217
ellpadicheight0 70
ellpadicheightmatrix 28
ellpadiclog 14
ellpadics2 21
ellperiods 14
ellprint 0
ellrandom 93611
ellrootno 42
ellrootno_2 182
ellrootno_3 126
ellrootno_global 833
ellrootno_p 511
ellsea 28
ellsigma 8904
ellsub 49
elltaniyama 14
elltatepairing 203
elltwist 27706
ellweilpairing 252
ellwp 0
ellwp0 140
ellwpnum_all 980
ellwpseries 14
ellwpseries_aux 196
ellxn 259
ellzeta 119
eta_correction 8862
expIxy 33418
exphellagm 973
fix_nftype 35952
gcomposev 140
get_c4c6 189
get_periods 14427
get_slope 3108
get_toadd 9835
get_u 453803
get_vu_p_small 2968
handle_Q 0
handle_coeff 2270345
hoo_aux 973
init_ch 2582461
initsmall 675697
invcmp 528
is_minimal_ap 833
is_minimal_ap_small 2660
is_trivial_change 454524
j_pval 878430
kod_23 308
localred 1626583
localred_23 748685
localred_p 877919
localred_result 1675583
localredbug 0
log_prec 7
logsigma_prec 203
min_get_v 453803
min_set_2 28
min_set_3 140
min_set_D 453810
min_set_a 453831
min_set_b 453971
min_set_c 454118
min_set_u 454118
min_to_ell 453810
myroundr 42
neron_2 182
neron_3 91
nfVtoalg 35959
nflocalred 48979
nflocalred_p 48979
nftoalg 181860
numroots2 746823
numroots3 228550
oncurve 2982
padic_mod 420
padic_prec 77
parse_p 210
point_to_a4a6 0
point_to_a4a6_Fl 420
pointell 910
precp_fix 301
quad_root 973
real_prec 77
red_modSL2 14455
redtausl2 8911
reduce_z 9877
rellg 7434
safe_Z_pval 1946
set_gamma 23366
sievep 430329
sievep_bad 1771
sievep_good 428558
slope_samex 1659
smod2BIL 56
tfromx 203
triv_ser 0
trueE 13489
val_aux 924
val_init 308
xmP 378
zell 42
zellQp 28
zell_closest_0 0
zellcx 7
zellrealneg 0
zellrealpos 7

Generated by: LCOV version 1.9