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.1 lcov report (development 22726-9e20c6a88) Lines: 3716 3957 93.9 %
Date: 2018-06-23 05:36:28 Functions: 339 346 98.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
checkell_Qp 0
ellprint 0
ellwp 0
localredbug 0
point_to_a4a6 0
triv_ser 0
zellrealneg 0
bilhell 7
ch_Fp 7
ch_Rg 7
ellQp_P2t_err 7
ellexpo 7
ellheightmatrix 7
CM_factor 14
ec_3divpol_evalx 14
elllseries 14
ellmul_CM 14
ellmul_CM_aux 14
elltaniyama 14
ellwpseries 14
zell_closest_0 14
bilhell_i 21
ellQ_bsd 21
ellchangeinvert 21
ellpadicheightmatrix 21
zellrealpos 21
ellheight_C 28
ellminimaldisc 28
ellnf_veceta 28
min_set_2 28
ch_Qp 35
ellQ_tamagawa 35
ellheightpairing 35
ellnf_vecarea 35
ellnf_vecomega 35
nfrestrict23 35
zellcx 35
ellnf_bsd 42
elltamagawa 42
myroundr 42
ellneg_i 49
ellperiods 49
ellsub 49
bnf_get_v 56
ellQp_t2P 56
ellnfminimalmodel 56
ellnfminimalmodel_i 56
zell_i 56
ellbsd 63
ellchangepointinv 63
ellchangepointinv0 63
doellR_eta 70
ellpadicheight0 70
ellQ_rootno 84
ellR_eta 84
elleta 84
real_prec 84
ellnf_height 98
ellnf_vec_wrap 98
ellpointnfembed 98
ellQp_P2t 112
ch_Fq 119
ch_FF 126
ellsea 126
ellQ_height 133
elllog 133
_hell 140
min_set_3 140
neron_3 140
doellnfrootno 147
ellheight0 147
ellnf_rootno_global 147
ellzeta 154
get_r0 161
zell 161
ZtoF2 168
_mul 175
ellrootno 182
ellrootno_3 182
ellwp0 182
ellnfan 189
ellinit_Qp 196
doellR_ab 203
ell_is_integral 203
ellrootno_2 210
neron_2 210
ellnf_reladelicvolume 217
ellheight 231
ellnf_localheight 245
ellnf2isog 252
padic_prec 252
rootnovalp 252
a4a6_ch_Fl 294
elltatepairing 294
get_c4c6 294
point_to_a4a6_Fl 294
ellintegralmodel 301
ellwpseries_aux 301
ellrnfup 322
ellminimaltwistcond 343
ellxn 392
kod_23 392
twist2 392
val_init 392
nf_coordch 420
nf_coordch_rst 420
ellminimaltwist0 448
ellchangepoint 525
ellchangepoint0 525
ec_dFdy_evalQ 532
_sqr 602
ellminimaltwist 609
akell 693
checkell_int 693
doellrootno 700
gcomposev 700
Q_numer 721
apk_good 735
ellneg 735
ellminimalnormu 756
ellnf_adelicvolume 756
ellnf_bsdperiod 756
Q_to_globalred 784
ellnf_D_primes 784
ellnf_tamagawa 784
ellnfglobalred 784
ellQ_get_Nfa 826
ellrootno_p 826
ellminimalprimes 833
Q_to_minimalprimes 847
ellnf_c4c6_primes 861
ellnfembed_free 861
ellnfembed 952
pointell 966
ellwpnum_all 987
ellheightoo 1001
ellnf_get_nf_prec 1050
ellR_ab 1106
ellR_on_neutral 1106
ellR_root 1106
exphellagm 1106
hoo_aux 1106
quad_root 1106
val_aux 1176
ellordinate 1470
ellordinate_i 1470
ec_half_deriv_2divpol_evalx 1519
ellanQ 1519
ellQminimalmodel 1624
ellminimalmodel 1687
ellan 1701
ellanal_globalred 1715
ellrootno_global 1715
slope_samex 1743
ellanQ_zv 1792
ec_2divpol_evalx 1813
cardmod2 1862
F2_card 1883
nfembed_extraprec 2002
cardmod3 2086
ellR_area 2142
F3_card 2226
ellQ_get_CM 2303
ellQ_get_N 2436
ec_dFdx_evalQ 2471
zk_capZ 2506
sievep_bad 2772
ellbasechar 2786
safe_Z_lval 2863
ellinit_nf_to_Fq 3052
ellnf_to_Fq 3073
ellomega_cx 3144
checkellisog 3416
checkell_Q 3619
get_piinv 3619
elldivpol 3871
doellR_omega 4012
ellomega_agm 4012
elldivpol0 4165
doellR_roots 4425
elleisnum 4452
nfembedall 4956
ellweilpairing 5236
elldivpol4 5369
ellR_roots 5398
ellR_omega 5425
ec_dmFdy_evalQ 5768
ellinit_Rg 5936
invcmp 6051
doellR_roots_i 7835
eta_correction 8890
_elleta 8925
ellsigma 8967
PiI2div 9002
cxredsl2 9009
cxredsl2_i 9044
handle_Q 9142
get_toadd 9891
reduce_z 9919
ec_bmodel 12595
nf_coordch_st 12922
approx_mod3 13153
elladd 13321
_elleisnum 13559
get_periods 14511
compute_periods 14588
red_modSL2 14588
check_periods 14595
ec_LHS_evalQ 15470
nflocalred_section7 15498
oncurve 15547
check_complex 15561
ellisoncurve 16681
ellgenerators 16842
doellgens 18683
ellff_get_D 18683
ellff_get_m 18683
ellff_get_gens 18760
doellff_get_o 19278
ellff_get_o 19817
ellgroup0 21483
ellgroup_m 21595
ellgroup 22008
ell_to_a4a6_bc 22184
a4a6_ch 22188
ellfromj_simple 22540
set_gamma 23632
approx_mod2 26306
elltwist 28448
ellinit_Fp 29872
expIxy 33600
ellfromj 33817
fix_nftype 36386
ellinit_nf 36960
nfVtoalg 36974
ch_Q 37037
ch_R 37037
doellGm 40649
nflocalred_p 50925
ellff_get_group 61488
ellnflocal 69405
Fq_c4_to_a4 70112
Fq_c4c6_to_a4a6 70112
ell_reset 72191
checkell5 72212
ellchangecurve 72212
coordch 72275
checkcoordch 72793
coordch_uinv 73444
ellff_Gm 80171
ellcard 86852
chk_p 97497
ellQap 98497
ell_to_nfell10 99295
nflocalred_23 99295
nflocalred 101129
ellQap_u 101325
nf_compose_s 109557
nf_coordch_s 109557
FF_ellinit_ns 113900
ellinit_Fq 114047
doellcard 116546
coordch_s 118013
get_uniformizers 150220
nf_compose_u 152985
nf_coordch_uinv 153405
ellff_get_card 162327
nf_compose_r 164143
elljissupersingular 164703
ellissupersingular 164906
ellnfap 168329
nf_coordch_rt 171087
ellff_get_p 179701
nf_compose_st 184163
elllocalred 197078
pola2a4a6 216265
pola1a2 241878
ellrandom 244062
numroots3 244230
ellffmul 247982
ellmul_Z 248458
ellmul 248521
nf_compose_rt 251643
nf_coordch_t 251839
nf_compose_t 253673
nf_coordch_r 267246
checkell_Fq 279447
sievep_good 301059
ellan_get_ap 303831
sievep 303831
Fl_c4c6_to_a4a6 305154
Fl_ell_to_a4a6 305154
Fl_c4_to_a4 305448
checkellpt 306929
ellap_CM_fast 307961
coordch_t 344925
coordch_rst 347480
coordch_st 347480
nftoalg 387408
pola3a6 391622
ellglobalred 453950
ellQ_globalred 454090
get_u 454832
Z_gcd_primes 455693
ellminimalmodel_i 456092
is_trivial_change 456540
ellglobalred_i 458598
ellinit_Q 496762
min_to_ell 503615
Zec_h_evalx 516705
min_get_v 516705
min_set_all 516705
min_set_D 516712
min_set_a 516733
min_set_b 516873
min_set_c 517020
min_set_u 517020
ell_over_Fq 527905
ec_f_evalx 528766
ec_h_evalx 545608
pol2sqrt_23 584563
coordch_r 611170
ellinit 679466
initsmall 683752
initsmall_i 683774
localred_23 704039
base_ring 714039
numroots2 788851
get_vp_u 878850
localred_p 878850
j_pval 879676
aux 888510
aux2 1421882
localred 1582532
get_vp_u_small 1684567
localred_result 1733109
init_ch 2566340
ell_to_a4a6 2809291
c4_to_a4 2809440
c4c6_to_a4a6 2809440
ellcard_ram 2864568
ellap 3017616
checkellp 3340557
ellintegralmodel_i 3620442
checkell 4341257
handle_coeff 18102210

Generated by: LCOV version 1.13