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-bordeaux.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.10.0 lcov report (development 20291-5fbfea9) Lines: 3869 4135 93.6 %
Date: 2017-02-25 05:49:34 Functions: 338 347 97.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
CM_factor 14
E_gcompose_r 161756
E_gcompose_rt 248416
E_gcompose_s 109221
E_gcompose_st 181937
E_gcompose_t 250110
E_gcompose_u 151039
F2_card 1477
F3_card 2989
Fl_c4_to_a4 277070
Fl_c4c6_to_a4a6 276650
Fl_ell_to_a4a6 276650
FpE_issingular 252
Fq_c4_to_a4 126805
Fq_c4c6_to_a4a6 126805
PiI2div 8904
Q_numer 329
Qp_agm2_sequence 210
Qp_ascending_Landen 56
Qp_descending_Landen 301
Tate_prec 581
Z_gcd_primes 454762
Zec_h_evalx 1170365
ZtoF2 112
_elleisnum 13489
_elleta 8869
_hell 217
_mul 175
_sqr 616
a4a6_ch 22284
a4a6_ch_Fl 420
addii3 1134
addii4 756
addii5 378
akell 693
apk_good 735
approx_mod2 26278
approx_mod3 13139
aux 888699
aux2 1421994
base_ring 707529
bilhell 7
bilhell_i 21
bnf_get_v 42
c4_to_a4 2715241
c4c6_to_a4a6 2715241
cardmod2 1456
cardmod3 2849
ch_FF 126
ch_Fp 7
ch_Fq 119
ch_Q 36764
ch_Qp 7
ch_R 36764
ch_Rg 21
check_complex 15540
check_periods 14469
check_real 13734
checkcoordch 72226
checkell 3999196
checkell5 71890
checkell_Fq 274484
checkell_Q 3787
checkell_Qp 0
checkell_int 693
checkellisog 2212
checkellp 3050811
checkellpt 244948
chk_p 97283
compute_periods 14462
coordch 72422
coordch_r 875854
coordch_rst 347648
coordch_rt 169862
coordch_s 227206
coordch_st 359877
coordch_t 594398
coordch_u 223930
cxredsl2 8911
doellQp_Tate 91
doellQp_ab 273
doellQp_root 224
doellR_ab 70
doellR_eta 28
doellR_omega 659
doellR_roots 764
doellcard 115318
doellff_get_o 917
doellgens 16814
doellgroup 38948
doellrootno 686
ec_2divpol_evalx 1449
ec_LHS_evalQ 3031
ec_bmodel 3536
ec_dFdx_evalQ 1351
ec_dFdy_evalQ 532
ec_dmFdy_evalQ 5467
ec_f_evalx 753802
ec_h_evalx 764078
ec_half_deriv_2divpol_evalx 1253
ellQ_bsd 14
ellQ_get_CM 2219
ellQ_get_N 8015
ellQ_get_Nfa 588
ellQ_globalred 454251
ellQ_tamagawa 28
ellQap 98574
ellQap_u 101080
ellQminimalmodel 1414
ellQp_AGM 147
ellQp_L 0
ellQp_P2t 112
ellQp_P2t_err 7
ellQp_Tate_uniformization 665
ellQp_ab 105
ellQp_q 105
ellQp_root 455
ellQp_t2P 56
ellQp_u 168
ellQp_u2 56
ellR_ab 973
ellR_area 77
ellR_eta 42
ellR_omega 1687
ellR_on_neutral 973
ellR_root 973
ellR_roots 1737
ell_is_integral 301
ell_over_Fq 528007
ell_reset 71869
ell_to_a4a6 2715094
ell_to_a4a6_bc 22284
elladd 3556
ellan 1050
ellanQ 812
ellanQ_zv 1470
ellan_get_ap 275985
ellanal_globalred 2100
ellap 2920890
ellap_CM_fast 279114
ellbasechar 1533
ellbsd 35
ellcard 88131
ellcard_ram 2770866
ellchangecurve 71890
ellchangeinvert 21
ellchangepoint 280
ellchangepoint0 280
ellchangepointinv 63
ellchangepointinv0 63
elldivpol 2107
elldivpol0 4466
elldivpol4 3710
elleisnum 4438
elleta 42
ellexpo 7
ellff_get_card 158642
ellff_get_gens 16891
ellff_get_group 39473
ellff_get_o 1218
ellff_get_p 180342
ellffmul 228155
ellformaldifferential 70
ellformaldifferential_i 420
ellformalexp 70
ellformallog 147
ellformallogsigma_t 203
ellformalpoint 70
ellformalpoint_i 343
ellformalw 574
ellfromj 33817
ellfromj_simple 22540
ellgen 1764
ellgenerators 16842
ellglobalred 453187
ellglobalred_i 464303
ellgroup 22974
ellgroup0 21315
ellgroup_m 23030
ellheight 133
ellheight0 35
ellheightmatrix 7
ellheightoo 868
ellheightpairing 35
ellinit 673351
ellinit_Fp 29450
ellinit_Fq 112742
ellinit_Q 495481
ellinit_Qp 91
ellinit_Rg 189
ellinit_nf 36071
ellinit_nf_to_Fq 3241
ellintegralmodel 21
ellintegralmodel_i 457072
ellisoncurve 4242
ellissupersingular 164878
elljissupersingular 164703
elllocalred 195153
elllog 133
elllseries 14
ellminimalmodel 1463
ellminimalmodel_i 456148
ellminimaltwist 497
ellminimaltwist0 441
ellminimaltwistcond 231
ellmul 228771
ellmul_CM 14
ellmul_CM_aux 14
ellmul_Z 228715
ellneg 413
ellneg_i 49
ellnf_D_primes 112
ellnf_bsd 21
ellnf_c4c6_primes 154
ellnf_tamagawa 42
ellnf_to_Fq 3241
ellnfan 245
ellnfap 225155
ellnfbsdperiod 21
ellnfembed 21
ellnfembed_free 21
ellnfglobalred 112
ellnflocal 127330
ellnfminimalmodel 42
ellnfminimalmodel_i 42
ellnonsingularmultiple 217
ellomega_agm 659
ellomega_cx 190
ellordinate 2016
ellordinate_i 2016
ellpadicbil 7
ellpadicfrobenius 175
ellpadicheight 217
ellpadicheight0 70
ellpadicheightmatrix 28
ellpadiclog 14
ellpadics2 21
ellperiods 14
ellprint 0
ellrandom 244062
ellrootno 42
ellrootno_2 168
ellrootno_3 224
ellrootno_global 1764
ellrootno_p 861
ellsea 35
ellsigma 8939
ellsub 49
elltamagawa 35
elltaniyama 14
elltatepairing 294
elltwist 28385
ellweilpairing 280
ellwp 0
ellwp0 175
ellwpnum_all 980
ellwpseries 14
ellwpseries_aux 301
ellxn 364
ellzeta 154
eta_correction 8862
expIxy 33432
exphellagm 973
fix_nftype 36071
gcomposev 462
get_c4c6 294
get_periods 14427
get_piinv 62804
get_r0 161
get_slope 3325
get_toadd 9842
get_u 454608
get_vp_u 878486
get_vp_u_small 1682618
handle_Q 455
handle_coeff 2285360
hoo_aux 973
init_ch 3263806
initsmall 674026
invcmp 801
is_trivial_change 456085
j_pval 879347
kod_23 392
localred 1580908
localred_23 702667
localred_p 878486
localred_result 1728300
localredbug 0
log_prec 7
logsigma_prec 203
min_get_v 1170365
min_set_2 28
min_set_3 140
min_set_D 1170372
min_set_a 1170393
min_set_all 1170365
min_set_b 1170533
min_set_c 1170680
min_set_u 1170680
min_to_ell 1157282
myroundr 42
neron_2 168
neron_3 182
nfVtoalg 36085
nflocalred 97972
nflocalred_23 97902
nflocalred_p 49245
nflocalred_section7 15498
nfrestrict23 21
nftoalg 1257480
numroots2 788886
numroots3 244307
oncurve 3108
padic_prec 119
parse_p 210
point_to_a4a6 0
point_to_a4a6_Fl 420
pointell 966
pol2sqrt_23 578165
pola1a2 238980
pola2a4a6 214039
pola3a6 387240
precp_fix 301
quad_root 973
real_prec 77
red_modSL2 14462
reduce_z 9884
rellg 7434
safe_Z_lval 2576
set_gamma 23373
sievep 275985
sievep_bad 2450
sievep_good 273535
slope_samex 1806
tfromx 203
triv_ser 0
trueE 13489
twist2 364
val_aux 1176
val_init 392
xmP 378
zell 126
zell_closest_0 0
zellcx 7
zellrealneg 0
zellrealpos 7
zk_capZ 420

Generated by: LCOV version 1.11