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 17908-5dc2363) Lines: 3241 3565 90.9 %
Date: 2015-07-03 Functions: 292 306 95.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1576 2274 69.3 %

Function Name Sort by function name Hit count Sort by hit count
CM_factor 14
E_compose_r 248465
E_compose_rst 260708
E_compose_t 234633
E_compose_u 14
F2_card 427
F3_card 1876
Fl_c4_to_a4 137708
Fl_c4c6_to_a4a6 137288
Fl_ell_to_a4a6 137288
FpE_issingular 252
Mod32 566076
PiI2div 8904
Q_numer 329
Zec_h_evalx 7
ZtoF2 84
_elleisnum 13489
_elleta 8869
_hell 217
_mul 175
_sqr 595
a4a6_ch 21990
a4a6_ch_Fl 420
addii3 1134
addii4 756
addii5 378
akell 693
anell 133
anellsmall 483
apk_good 735
approx_mod2 0
approx_mod3 0
aux 829094
aux2 1346828
base_ring 627968
bilhell 7
bilhell_i 21
c4_to_a4 2707742
c4c6_to_a4a6 2707740
cardmod2 406
cardmod3 1736
ch_FF 126
ch_Fp 7
ch_Fq 119
ch_Q 133
ch_Qp 7
ch_R 133
ch_Rg 7
check_periods 14469
check_real 13734
checkcoordch 616
checkell 3049856
checkell5 280
checkell_Fq 123844
checkell_Q 456673
checkell_Qp 0
checkell_int 1176
checkellisog 70
checkellp 2809739
checkellpt 93239
chk_p 97137
composev_r 248465
composev_rst 260708
composev_s 67130
composev_st 97461
composev_t 246428
composev_u 14
compute_periods 14462
coordch 273
coordch_r 509446
coordch_rst 260981
coordch_s 111433
coordch_st 260981
coordch_t 328678
coordch_u 329
do_padic_agm 119
doellQp_Tate_uniformization 49
doellQp_ab 126
doellQp_root 161
doellR_ab 70
doellR_eta 28
doellR_omega 253
doellR_roots 351
doellcard 76890
doellff_get_o 903
doellgens 16800
doellglobalred 453208
doellgroup 38689
doellrootno 301
ec_2divpol_evalx 1015
ec_LHS_evalQ 2926
ec_bmodel 1632
ec_dFdx_evalQ 819
ec_dFdy_evalQ 504
ec_dmFdy_evalQ 4235
ec_f_evalx 416262
ec_h_evalx 878192
ec_half_deriv_2divpol_evalx 840
ellQ_get_CM 728
ellQ_get_N 945
ellQ_get_Nfa 49
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 1274
ellR_on_neutral 973
ellR_root 973
ellR_roots 1331
ell_is_integral 301
ell_over_Fq 226565
ell_reset 259
ell_to_a4a6 2707595
ell_to_a4a6_bc 21990
elladd 3276
ellan_get_ap 137743
ellanal_globalred 868
ellap 2718100
ellap_CM_fast 137918
ellbasechar 322
ellcard 50262
ellcard_ram 2665747
ellchangecurve 280
ellchangeinvert 14
ellchangepoint 280
ellchangepoint0 280
ellchangepointinv 63
ellchangepointinv0 63
elldivpol 812
elldivpol0 3339
elldivpol4 1750
elleisnum 4438
elleta 42
ellexpo 7
ellff_get_card 120703
ellff_get_gens 16877
ellff_get_group 39186
ellff_get_o 1183
ellff_get_p 142137
ellffmul 77703
ellformaldifferential 21
ellformaldifferential_i 273
ellformalexp 21
ellformallog 49
ellformallogsigma_t 203
ellformalpoint 21
ellformalpoint_i 294
ellformalw 329
ellfromj 33642
ellfromj_simple 22379
ellgen 1764
ellgenerators 16828
ellglobalred 452956
ellglobalred_all 453222
ellglobalred_i 454818
ellgroup 22701
ellgroup0 21294
ellgroup_m 22785
ellheight 126
ellheight0 28
ellheightmatrix 7
ellheightoo 868
ellheightpairing 35
ellinit 630200
ellinit_Fp 28894
ellinit_Fq 73264
ellinit_Q 492086
ellinit_Qp 56
ellinit_Rg 126
ellinit_nf 35917
ellinit_nf_to_Fq 2506
ellintegralmodel 453509
ellisoncurve 4158
ellissupersingular 164738
elljissupersingular 164703
elllocalred 97979
elllog 126
elllseries 14
ellminimalmodel 119
ellminimalmodel_i 453621
ellminimaltwist 14
ellminimaltwist0 14
ellminimaltwistcond 7
ellmul 78186
ellmul_CM 14
ellmul_CM_aux 14
ellmul_Z 78186
ellneg 343
ellneg_i 49
ellnonsingularmultiple 217
ellomega_agm 246
ellomega_cx 78
ellordinate 1330
ellordinate_i 1330
ellpadicbil 7
ellpadicfrobenius 175
ellpadicheight 217
ellpadicheight0 70
ellpadicheightmatrix 28
ellpadiclog 14
ellpadics2 21
ellperiods 14
ellprint 0
ellrandom 93611
ellrootno 42
ellrootno_2 133
ellrootno_3 84
ellrootno_global 539
ellrootno_p 427
ellsigma 8904
ellsub 49
elltaniyama 14
elltatepairing 203
elltwist 27279
ellweilpairing 252
ellwp 0
ellwp0 140
ellwpnum_all 980
ellwpseries 14
ellwpseries_aux 196
ellxn 259
ellzeta 119
eta_correction 8862
expIxy 33446
exphellagm 973
fix_nftype 35917
gcomposev 49
get_c4c6 189
get_periods 14427
get_slope 3101
get_toadd 9835
get_u 453250
get_vu_p_small 2156
handle_Q 0
handle_coeff 2267545
hoo_aux 973
init_ch 2580249
initsmall 630344
invcmp 486
is_minimal_ap 742
is_minimal_ap_small 1939
is_trivial_change 453376
j_pval 877583
kod_23 217
localred 1625001
localred_23 747866
localred_p 877156
localred_result 1674001
localredbug 0
log_prec 7
logsigma_prec 203
min_get_v 453250
min_set_2 28
min_set_3 140
min_set_D 453257
min_set_a 453278
min_set_b 453418
min_set_c 453565
min_set_u 453565
min_to_ell 453257
myroundr 42
neron_2 133
neron_3 70
nfVtoalg 35924
nflocalred 48979
nflocalred_p 48979
nftoalg 181685
numroots2 745703
numroots3 228172
oncurve 3003
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 28
set_gamma 23366
sievep 137743
sievep_bad 1141
sievep_good 136602
slope_samex 1652
smod2BIL 0
tfromx 203
triv_ser 0
trueE 13489
val_aux 651
val_init 217
xmP 378
zell 42
zellQp 28
zell_closest_0 0
zellcx 7
zellrealneg 0
zellrealpos 7

Generated by: LCOV version 1.9