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 22303-eb3e11d) Lines: 3710 3973 93.4 %
Date: 2018-04-21 06:16:28 Functions: 339 347 97.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
CM_factor 14
F2_card 1638
F3_card 1981
FF_ellinit_ns 114123
Fl_c4_to_a4 303306
Fl_c4c6_to_a4a6 303012
Fl_ell_to_a4a6 303012
Fq_c4_to_a4 70112
Fq_c4c6_to_a4a6 70112
PiI2div 9002
Q_numer 721
Q_to_globalred 784
Q_to_minimalprimes 847
Z_gcd_primes 455448
Zec_h_evalx 516453
ZtoF2 126
_elleisnum 13545
_elleta 8925
_hell 140
_mul 175
_sqr 602
a4a6_ch 22723
a4a6_ch_Fl 294
akell 693
apk_good 735
approx_mod2 26306
approx_mod3 13153
aux 888468
aux2 1421980
base_ring 713674
bilhell 7
bilhell_i 21
bnf_get_v 56
c4_to_a4 2740683
c4c6_to_a4a6 2740683
cardmod2 1617
cardmod3 1841
ch_FF 126
ch_Fp 7
ch_Fq 119
ch_Q 36855
ch_Qp 35
ch_R 36855
ch_Rg 7
check_complex 15561
check_periods 14581
check_real 13790
checkcoordch 72793
checkell 4271116
checkell5 72212
checkell_Fq 279447
checkell_Q 2737
checkell_Qp 0
checkell_int 693
checkellisog 3248
checkellp 3271102
checkellpt 307455
chk_p 99673
compute_periods 14574
coordch 72275
coordch_r 611177
coordch_rst 347473
coordch_s 117992
coordch_st 347473
coordch_t 344918
coordch_uinv 73318
cxredsl2 8981
cxredsl2_i 9016
doellGm 40649
doellR_ab 203
doellR_eta 70
doellR_omega 3872
doellR_roots 4271
doellR_roots_i 7667
doellcard 116769
doellff_get_o 19278
doellgens 18683
doellnfrootno 147
doellrootno 616
ec_2divpol_evalx 1785
ec_3divpol_evalx 14
ec_LHS_evalQ 15470
ec_bmodel 12105
ec_dFdx_evalQ 2247
ec_dFdy_evalQ 532
ec_dmFdy_evalQ 5684
ec_f_evalx 528780
ec_h_evalx 545538
ec_half_deriv_2divpol_evalx 1491
ellQ_bsd 21
ellQ_get_CM 2177
ellQ_get_N 7336
ellQ_get_Nfa 588
ellQ_globalred 454111
ellQ_height 133
ellQ_rootno 42
ellQ_tamagawa 35
ellQap 98581
ellQap_u 101325
ellQminimalmodel 1211
ellQp_P2t 112
ellQp_P2t_err 7
ellQp_t2P 56
ellR_ab 1106
ellR_area 2142
ellR_eta 84
ellR_omega 5145
ellR_on_neutral 1106
ellR_root 1106
ellR_roots 5244
ell_is_integral 203
ell_over_Fq 528438
ell_reset 72191
ell_to_a4a6 2740536
ell_to_a4a6_bc 22723
ell_to_nfell10 99295
elladd 13321
ellan 1659
ellanQ 1477
ellanQ_zv 1750
ellan_get_ap 302991
ellanal_globalred 1568
ellap 2947959
ellap_CM_fast 305777
ellbasechar 2492
ellbsd 63
ellcard 87075
ellcard_ram 2794911
ellchangecurve 72212
ellchangeinvert 21
ellchangepoint 525
ellchangepoint0 525
ellchangepointinv 63
ellchangepointinv0 63
elldivpol 3549
elldivpol0 4165
elldivpol4 5047
elleisnum 4438
elleta 84
ellexpo 7
ellff_Gm 80171
ellff_get_D 18683
ellff_get_card 162549
ellff_get_gens 18760
ellff_get_group 61488
ellff_get_m 18683
ellff_get_o 19817
ellff_get_p 179923
ellffmul 248515
ellfromj 33817
ellfromj_simple 22540
ellgenerators 16842
ellglobalred 453950
ellglobalred_i 463029
ellgroup 22008
ellgroup0 21483
ellgroup_m 21595
ellheight 231
ellheight0 147
ellheight_C 28
ellheightmatrix 7
ellheightoo 1001
ellheightpairing 35
ellinit 679283
ellinit_Fp 30416
ellinit_Fq 114270
ellinit_Q 495824
ellinit_Qp 196
ellinit_Rg 5922
ellinit_nf 36953
ellinit_nf_to_Fq 3052
ellintegralmodel 224
ellintegralmodel_i 3550288
ellisoncurve 16681
ellissupersingular 164906
elljissupersingular 164703
elllocalred 197057
elllog 133
elllseries 14
ellminimaldisc 28
ellminimalmodel 1274
ellminimalmodel_i 455637
ellminimalnormu 756
ellminimalprimes 833
ellminimaltwist 497
ellminimaltwist0 441
ellminimaltwistcond 231
ellmul 249054
ellmul_CM 14
ellmul_CM_aux 14
ellmul_Z 248991
ellneg 735
ellneg_i 49
ellnf2isog 252
ellnf_D_primes 784
ellnf_adelicvolume 756
ellnf_bsd 42
ellnf_bsdperiod 756
ellnf_c4c6_primes 861
ellnf_get_nf_prec 1036
ellnf_height 98
ellnf_localheight 245
ellnf_reladelicvolume 217
ellnf_rootno_global 147
ellnf_tamagawa 784
ellnf_to_Fq 3073
ellnf_vec_wrap 98
ellnf_vecarea 35
ellnf_veceta 28
ellnf_vecomega 35
ellnfan 189
ellnfap 168329
ellnfembed 945
ellnfembed_free 854
ellnfglobalred 784
ellnflocal 69405
ellnfminimalmodel 56
ellnfminimalmodel_i 56
ellomega_agm 3872
ellomega_cx 3067
ellordinate 1470
ellordinate_i 1470
ellpadicheight0 70
ellpadicheightmatrix 21
ellperiods 49
ellpointnfembed 91
ellprint 0
ellrandom 244062
ellrnfup 322
ellrootno 140
ellrootno_2 161
ellrootno_3 147
ellrootno_global 1624
ellrootno_p 770
ellsea 126
ellsigma 8967
ellsub 49
elltamagawa 42
elltaniyama 14
elltatepairing 294
elltwist 28231
ellweilpairing 5236
ellwp 0
ellwp0 182
ellwpnum_all 987
ellwpseries 14
ellwpseries_aux 301
ellxn 392
ellzeta 154
eta_correction 8890
expIxy 33600
exphellagm 1106
fix_nftype 36379
gcomposev 574
get_c4c6 294
get_periods 14497
get_piinv 3619
get_r0 161
get_toadd 9891
get_u 454587
get_uniformizers 150220
get_vp_u 878864
get_vp_u_small 1684378
handle_Q 9142
handle_coeff 17751440
hoo_aux 1106
init_ch 2565969
initsmall 683560
initsmall_i 683581
invcmp 5736
is_trivial_change 455882
j_pval 879634
kod_23 308
localred 1582539
localred_23 703920
localred_p 878864
localred_result 1733004
localredbug 0
min_get_v 516453
min_set_2 28
min_set_3 140
min_set_D 516460
min_set_a 516481
min_set_all 516453
min_set_b 516621
min_set_c 516768
min_set_u 516768
min_to_ell 503363
myroundr 42
neron_2 161
neron_3 112
nfVtoalg 36967
nf_compose_r 164143
nf_compose_rt 251643
nf_compose_s 109557
nf_compose_st 184163
nf_compose_t 253673
nf_compose_u 152985
nf_coordch 420
nf_coordch_r 267246
nf_coordch_rst 420
nf_coordch_rt 171087
nf_coordch_s 109557
nf_coordch_st 12922
nf_coordch_t 251839
nf_coordch_uinv 153405
nfembed_extraprec 1981
nfembedall 4907
nflocalred 101129
nflocalred_23 99295
nflocalred_p 50925
nflocalred_section7 15498
nfrestrict23 35
nftoalg 387394
numroots2 788879
numroots3 244230
oncurve 15547
padic_prec 252
point_to_a4a6 0
point_to_a4a6_Fl 294
pointell 966
pol2sqrt_23 584563
pola1a2 241878
pola2a4a6 216265
pola3a6 391622
quad_root 1106
real_prec 84
red_modSL2 14574
reduce_z 9919
rootnovalp 252
safe_Z_lval 2618
set_gamma 23590
sievep 302991
sievep_bad 2688
sievep_good 300303
slope_samex 1743
triv_ser 0
trueE 13545
twist2 364
val_aux 924
val_init 308
zell 154
zell_closest_0 0
zellcx 35
zellrealneg 0
zellrealpos 7
zk_capZ 2506

Generated by: LCOV version 1.11