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 20084-3366ab4) Lines: 3816 4081 93.5 %
Date: 2017-01-19 05:50:13 Functions: 331 340 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 2975
Fl_c4_to_a4 277049
Fl_c4c6_to_a4a6 276629
Fl_ell_to_a4a6 276629
FpE_issingular 252
Fq_c4_to_a4 135156
Fq_c4c6_to_a4a6 135156
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 22164
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 707526
bilhell 7
bilhell_i 21
bnf_get_v 42
c4_to_a4 2715002
c4c6_to_a4a6 2715002
cardmod2 1456
cardmod3 2835
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 3998441
checkell5 71890
checkell_Fq 274435
checkell_Q 3787
checkell_Qp 0
checkell_int 693
checkellisog 2212
checkellp 3050556
checkellpt 244763
chk_p 97282
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
doellQp_Tate 91
doellQp_ab 273
doellQp_root 224
doellR_ab 70
doellR_eta 28
doellR_omega 610
doellR_roots 715
doellcard 115196
doellff_get_o 903
doellgens 16800
doellgroup 38815
doellrootno 686
ec_2divpol_evalx 1449
ec_LHS_evalQ 3031
ec_bmodel 3431
ec_dFdx_evalQ 1351
ec_dFdy_evalQ 532
ec_dmFdy_evalQ 5453
ec_f_evalx 753732
ec_h_evalx 763959
ec_half_deriv_2divpol_evalx 1253
ellQ_get_CM 2205
ellQ_get_N 8015
ellQ_get_Nfa 588
ellQ_globalred 454251
ellQ_tamagawa 14
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_eta 42
ellR_omega 1638
ellR_on_neutral 973
ellR_root 973
ellR_roots 1688
ell_is_integral 301
ell_over_Fq 527773
ell_reset 71869
ell_to_a4a6 2714854
ell_to_a4a6_bc 22164
elladd 3507
ellan 1050
ellanQ 812
ellanQ_zv 1470
ellan_get_ap 275985
ellanal_globalred 2100
ellap 2920890
ellap_CM_fast 279079
ellbasechar 1533
ellcard 88023
ellcard_ram 2770866
ellchangecurve 71890
ellchangeinvert 21
ellchangepoint 280
ellchangepoint0 280
ellchangepointinv 63
ellchangepointinv0 63
elldivpol 2065
elldivpol0 4305
elldivpol4 3577
elleisnum 4438
elleta 42
ellexpo 7
ellff_get_card 158520
ellff_get_gens 16877
ellff_get_group 39312
ellff_get_o 1183
ellff_get_p 180087
ellffmul 228117
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 16828
ellglobalred 453152
ellglobalred_i 464289
ellgroup 22827
ellgroup0 21301
ellgroup_m 22911
ellheight 133
ellheight0 35
ellheightmatrix 7
ellheightoo 868
ellheightpairing 35
ellinit 673233
ellinit_Fp 29332
ellinit_Fq 112741
ellinit_Q 495481
ellinit_Qp 91
ellinit_Rg 154
ellinit_nf 36071
ellinit_nf_to_Fq 3122
ellintegralmodel 21
ellintegralmodel_i 457058
ellisoncurve 4242
ellissupersingular 164878
elljissupersingular 164703
elllocalred 195153
elllog 126
elllseries 14
ellminimalmodel 1463
ellminimalmodel_i 456148
ellminimaltwist 497
ellminimaltwist0 441
ellminimaltwistcond 231
ellmul 228733
ellmul_CM 14
ellmul_CM_aux 14
ellmul_Z 228677
ellneg 406
ellneg_i 49
ellnf_D_primes 112
ellnf_c4c6_primes 154
ellnf_tamagawa 21
ellnf_to_Fq 3122
ellnfan 245
ellnfap 233506
ellnfglobalred 112
ellnflocal 135590
ellnfminimalmodel 42
ellnfminimalmodel_i 42
ellnonsingularmultiple 217
ellomega_agm 610
ellomega_cx 162
ellordinate 1946
ellordinate_i 1946
ellpadicbil 7
ellpadicfrobenius 175
ellpadicheight 217
ellpadicheight0 70
ellpadicheightmatrix 28
ellpadiclog 14
ellpadics2 21
ellperiods 14
ellprint 0
ellrandom 244048
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 336
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 3304
get_toadd 9842
get_u 454608
get_vp_u 878486
get_vp_u_small 1682618
handle_Q 455
handle_coeff 2285290
hoo_aux 973
init_ch 3263799
initsmall 673870
invcmp 759
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 1257403
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
redtausl2 8911
reduce_z 9884
rellg 7434
safe_Z_lval 2576
set_gamma 23373
sievep 275985
sievep_bad 2450
sievep_good 273535
slope_samex 1799
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