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 to exceed 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.16.2 lcov report (development 29115-f22e516b23) Lines: 4343 4645 93.5 %
Date: 2024-04-23 08:07:35 Functions: 388 396 98.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
CM_factor 14
F2_card 2555
F3_card 3619
FF_ellinit_ns 121027
Fl_c4_to_a4 1269982
Fl_c4c6_to_a4a6 1190014
Fl_c6_to_a6 1190662
Fl_ell_to_a4a6 1190014
FljV_changepointinv_pre 15322
FljV_vecsat 11438
FljV_vecsat_Prickett 2807
FljV_vecsat_Siksek 8631
Flv_firstnonzero 147
Fq_c4_to_a4 93457
Fq_c4c6_to_a4a6 93456
PiI2div 139314
QEV_to_ZJV 4460
QE_to_ZJ 33680
Q_numer 157580
Q_to_globalred 938
Q_to_minimalprimes 29512
RgE2_Fp_init 497
ZV_is_ei 4214
Z_gcd_primes 515207
Zec_h_evalx 547463
ZtoF2 378
_elleisnum 70994
_elleta 66353
_hell 20468
_mul 385
_sqr 1190
a4a6_ch 150698
a4a6_ch_Fl 91290
akell 693
apk_good 735
approx_mod2 140616
approx_mod3 70308
aux 888965
aux2 1421966
base_ring 960524
bilhell 7
bilhell_i 21
bnf_get_v 63
c4_to_a4 2009107
c4c6_to_a4a6 2009111
cardmod2 2534
cardmod3 3479
ch_FF 126
ch_Fp 7
ch_Fq 119
ch_NF 157647
ch_Q 73241
ch_Qp 35
ch_R 73241
ch_Rg 7
check_complex 82446
check_periods 72940
checkcoordch 378225
checkell 3799932
checkell5 229551
checkell_Fq 254086
checkell_Q 6069
checkell_Qp 0
checkell_int 693
checkellisog 3528
checkellp 2528420
checkellpt 728462
chk_p 99614
compute_periods 72933
coordch 230244
coordch_r 769314
coordch_rst 505603
coordch_s 118909
coordch_st 505603
coordch_t 369495
coordch_uinv 232638
cxredsl2 37814
cxredsl2_i 37849
direllnf_worker 4963
doellGm 146454
doellR_ab 58842
doellR_eta 70
doellR_omega 33854
doellR_roots 151447
doellR_roots_i 212684
doellcard 223423
doellff_get_o 19292
doellgens 18690
doellnfrootno 161
doellrootno 1120
ec_2divpol_evalx 29715
ec_3divpol_evalx 65276
ec_LHS_evalQ 129660
ec_bmodel 222127
ec_dFdx_evalQ 130929
ec_dFdy_evalQ 532
ec_dmFdy_evalQ 256042
ec_f_evalx 782403
ec_h_evalx 1175885
ec_half_deriv_2divpol 812
ec_half_deriv_2divpol_evalx 707
ec_phi2 105
ellQ_bsd 28
ellQ_eulerf 56
ellQ_factorback 4228
ellQ_factorback1 15732
ellQ_factorback_chinese 5332
ellQ_factorback_filter 10789
ellQ_factorback_slice 8741
ellQ_factorback_worker 8741
ellQ_genreduce 819
ellQ_get_CM 13942
ellQ_get_N 3773
ellQ_get_Nfa 917
ellQ_globalred 454566
ellQ_height 52410
ellQ_isdivisible 42
ellQ_isdivisible_test 42
ellQ_isisom 7
ellQ_minimalu 485604
ellQ_rootno 91
ellQ_saturation 49
ellQ_tamagawa 49
ellQap 98567
ellQap_u 102417
ellQminimalmodel 3045
ellQp_P2t 140
ellQp_P2t_err 21
ellQp_t2P 56
ellQtwist_bsdperiod 1407
ellR_ab 83056
ellR_area 2646
ellR_eta 84
ellR_omega 64981
ellR_on_neutral 83056
ellR_root 83056
ellR_roots 204536
ell_is_integral 52753
ell_over_Fq 505360
ell_reset 230482
ell_to_a4a6 2008963
ell_to_a4a6_bc 150698
ell_to_nfell10 181783
elladd 57457
ellan 525
ellanQ 329
ellanQ_zv 2415
ellan_get_ap 852334
ellanal_globalred 2401
ellap 1999471
ellap_CM_fast 871927
ellbasechar 3927
ellbsd 70
ellcard 187030
ellcard_ram 1837351
ellchangecurve 229551
ellchangeinvert 70
ellchangepoint 147708
ellchangepoint0 147680
ellchangepointinv 973
ellchangepointinv0 4081
elldivpol 6475
elldivpol0 5075
elldivpol4 8414
elleisnum 4459
elleta 84
elleulerf 70
ellexpo 7
ellff_Gm 185997
ellff_get_D 18690
ellff_get_card 269203
ellff_get_gens 18767
ellff_get_group 167307
ellff_get_m 18690
ellff_get_o 19845
ellff_get_p 385697
ellffmul 250266
ellfromj 34020
ellfromj_simple 22715
ellgenerators 16849
ellglobalred 454181
ellglobalred_i 461160
ellgroup 127806
ellgroup0 21490
ellgroup_m 120715
ellheight 81243
ellheight0 57659
ellheight_C 28728
ellheightfaltings 70
ellheightmatrix 847
ellheightoo 30660
ellheightpairing 35
ellinit 865702
ellinit_Fp 165118
ellinit_Fq 114482
ellinit_Q 535584
ellinit_Qp 203
ellinit_Rg 67361
ellinit_i 866724
ellinit_nf 73395
ellinit_nf_to_Fq 137725
ellintegralbmodel 0
ellintegralmodel 336
ellintegralmodel_i 2693737
elliscm 154
ellisisom 14
ellisoncurve 45899
ellissupersingular 166117
elljissupersingular 165907
elllocalred 197085
elllog 140
elllseries 14
ellminimalbmodel 952
ellminimaldisc 70
ellminimalmodel 3115
ellminimalmodel_i 487074
ellminimalprimes 58618
ellminimaltwist 665
ellminimaltwist0 448
ellminimaltwistcond 399
ellmul 251393
ellmul_CM 14
ellmul_CM_aux 14
ellmul_Z 251274
ellneg 82034
ellneg_i 70
ellnf2isog 273
ellnf_D_primes 938
ellnf_adelicvolume 812
ellnf_bsd 42
ellnf_bsdperiod 812
ellnf_c4c6_primes 29603
ellnf_get_CM 56
ellnf_get_nf_prec 58618
ellnf_height 28833
ellnf_isisom 7
ellnf_localheight 85988
ellnf_minimalnormu 29680
ellnf_reladelicvolume 231
ellnf_rootno_global 161
ellnf_tamagawa 840
ellnf_to_Fq 137746
ellnf_vec_wrap 168
ellnf_vecarea 91
ellnf_veceta 28
ellnf_vecomega 49
ellnf_volume 56
ellnfan 203
ellnfap 191760
ellnfembed 29799
ellnfembed_free 987
ellnfglobalred 938
ellnflocal 83780
ellnfminimalmodel 63
ellnfminimalmodel_i 63
ellomega_agm 33854
ellomega_cx 32243
ellordinate 2996
ellordinate_i 2996
ellpadicheight0 70
ellpadicheightmatrix 861
ellperiods 28749
ellpointnfembed 28819
ellprint 0
ellrandom 245847
ellrnfup 343
ellrootno 203
ellrootno_2 399
ellrootno_3 287
ellrootno_global 2443
ellrootno_p 1393
ellsatp 1204
ellsatp_mat 1204
ellsaturation 49
ellsea 126
ellsigma 37674
ellsub 49
ellsupersingularj 1204
elltamagawa 49
elltaniyama 14
elltatepairing 301
elltrace 70
elltwist 28567
elltwist_card 0
ellweilpairing 5250
ellwp 0
ellwp0 182
ellwpnum_all 1911
ellwpseries 14
ellwpseries_aux 301
ellxn 406
ellzeta 161
eta_correction 37618
exphellagm 83056
fix_nftype 230433
gcomposev 1708
get_c4c6 294
get_j 948121
get_periods 72856
get_piinv 157913
get_r0 189
get_toadd 39417
get_uniformizers 310905
get_vp_u 879487
get_vp_u_small 1686996
handle_Q 41216
handle_coeff 13468434
hoo_aux 83056
init_ch 2686929
initsmall 956122
initsmall46 162584
initsmall5 935906
invcmp 205260
is_trivial_change 488817
j_pval 880880
kod_23 686
localred 1583512
localred_23 704445
localred_p 879487
localred_result 1894837
localredbug 0
ltors_Fl 2807
min_get_v 547463
min_set_2 35
min_set_3 140
min_set_D 547477
min_set_a 547498
min_set_all 547463
min_set_b 547638
min_set_c 547785
min_set_u 547785
min_to_ell 534380
myroundr 42
nb_real_components 462
neron_2 399
neron_3 168
nfVtoalg 116599
nf_compose_r 479230
nf_compose_rt 593824
nf_compose_s 184637
nf_compose_st 496188
nf_compose_t 842954
nf_compose_u 443534
nf_coordch 476
nf_coordch_r 499738
nf_coordch_rst 476
nf_coordch_rt 301348
nf_coordch_s 184637
nf_coordch_st 19378
nf_coordch_t 407287
nf_coordch_uinv 444010
nfembed_extraprec 58618
nfembedall 206633
nflocalred 261758
nflocalred_23 181783
nflocalred_p 129122
nflocalred_section7 27524
nfrestrict23 42
nftoalg 1500758
numroots2 788963
numroots3 244335
oncurve 125882
oncurve_exact 3855
padic_prec 252
point_to_a4a6 0
point_to_a4a6_Fl 64236
pointell 1890
pol2sqrt_23 1626562
pola1a2 579397
pola2a4a6 592746
pola3a6 1069803
prV_merge_factors 28812
quad_root 83056
real_prec 84
red_modSL2 72933
reduce_z 39557
rootnovalp 273
safe_Z_lval 17472
set_gamma 110782
sievep 852334
sievep_bad 3794
sievep_good 848540
slope_samex 29184
to_RgX 126
to_mod 1959081
triv_ser 0
twist2 392
val_aux 2058
val_init 686
zell 28903
zell_closest_0 14
zell_i 28770
zellcx 28735
zellrealneg 7
zellrealpos 28
zk_capZ 60144

Generated by: LCOV version 1.14