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 21351-66b5338) Lines: 4154 4416 94.1 %
Date: 2017-11-22 06:21:08 Functions: 369 378 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
checkell_Qp 0
ellQp_L 0
ellprint 0
ellwp 0
localredbug 0
point_to_a4a6 0
triv_ser 0
zell_closest_0 0
zellrealneg 0
bilhell 7
ch_Fp 7
ch_Qp 7
ellQp_P2t_err 7
ellexpo 7
ellheightmatrix 7
ellpadicbil 7
log_prec 7
zellrealpos 7
CM_factor 14
ec_3divpol_evalx 14
elllseries 14
ellmul_CM 14
ellmul_CM_aux 14
ellpadiclog 14
elltaniyama 14
ellwpseries 14
bilhell_i 21
ellQ_bsd 21
ellchangeinvert 21
ellminimaldisc 21
ellpadics2 21
ch_Rg 28
ellheight_C 28
ellnf_vecarea 28
ellnf_veceta 28
ellnf_vecomega 28
ellpadicheightmatrix 28
min_set_2 28
nfrestrict23 28
ellQ_tamagawa 35
ellheightpairing 35
ellsea 35
zellcx 35
ellQ_rootno 42
ellnf_bsd 42
ellperiods 42
elltamagawa 42
myroundr 42
bnf_get_v 49
ellneg_i 49
ellnfminimalmodel 49
ellnfminimalmodel_i 49
ellsub 49
Qp_ascending_Landen 56
ellQp_t2P 56
ellQp_u2 56
ellbsd 63
ellchangepointinv 63
ellchangepointinv0 63
doellR_eta 70
ellformaldifferential 70
ellformalexp 70
ellformalpoint 70
ellpadicheight0 70
real_prec 77
ellR_eta 84
elleta 84
ellnf_vec_wrap 84
doellQp_Tate 91
ellinit_Qp 91
ellnf_height 91
ellpointnfembed 91
ellQp_ab 105
ellQp_q 105
ZtoF2 112
ellQp_P2t 112
ch_Fq 119
padic_prec 119
ch_FF 126
ellheight0 126
ellQ_height 133
elllog 133
ellrootno 140
min_set_3 140
doellnfrootno 147
ellQp_AGM 147
ellformallog 147
ellnf_rootno_global 147
ellzeta 154
zell 154
get_r0 161
ellQp_u 168
ellrootno_2 168
neron_2 168
_mul 175
ellpadicfrobenius 175
ellwp0 182
neron_3 182
ellnfan 189
ellintegralmodel 196
doellR_ab 203
ellformallogsigma_t 203
logsigma_prec 203
tfromx 203
Qp_agm2_sequence 210
parse_p 210
_hell 217
ellnf_reladelicvolume 217
ellnonsingularmultiple 217
ellpadicheight 217
doellQp_root 224
ellheight 224
ellrootno_3 224
ellminimaltwistcond 231
ellnf_localheight 245
FpE_issingular 252
ellnf2isog 252
rootnovalp 252
doellQp_ab 273
ell_is_integral 280
elltatepairing 294
get_c4c6 294
Qp_descending_Landen 301
ellwpseries_aux 301
precp_fix 301
ellrnfup 322
Q_numer 329
ellformalpoint_i 343
twist2 364
a4a6_ch_Fl 371
point_to_a4a6_Fl 371
addii5 378
xmP 378
ellxn 392
kod_23 392
val_init 392
ellformaldifferential_i 420
nf_coordch 420
nf_coordch_rst 420
ellminimaltwist0 441
ellQp_root 455
gcomposev 476
ellminimaltwist 497
ellchangepoint 525
ellchangepoint0 525
ec_dFdy_evalQ 532
ellformalw 574
Tate_prec 581
ellQ_get_Nfa 588
_sqr 616
ellQp_Tate_uniformization 665
doellrootno 686
akell 693
checkell_int 693
apk_good 735
addii4 756
ellminimalnormu 756
ellnf_adelicvolume 756
ellnf_bsdperiod 756
Q_to_globalred 784
ellnf_D_primes 784
ellnf_tamagawa 784
ellnfglobalred 784
ellminimalprimes 819
ellneg 826
Q_to_minimalprimes 833
ellnfembed_free 840
ellnf_c4c6_primes 847
ellrootno_p 861
doellff_get_o 917
ellnfembed 931
ellanQ 938
pointell 966
ellwpnum_all 987
ellheightoo 1001
ellR_ab 1106
ellR_on_neutral 1106
ellR_root 1106
exphellagm 1106
hoo_aux 1106
quad_root 1106
ellan 1120
addii3 1134
val_aux 1176
ellff_get_o 1218
ellQminimalmodel 1421
ellminimalmodel 1477
ec_half_deriv_2divpol_evalx 1491
cardmod2 1547
F2_card 1568
ellanQ_zv 1596
ec_2divpol_evalx 1687
ellgen 1764
slope_samex 1848
ellrootno_global 2030
ellanal_globalred 2100
ellordinate 2100
ellordinate_i 2100
ellR_area 2114
ec_dFdx_evalQ 2205
ellQ_get_CM 2359
ellbasechar 2450
zk_capZ 2478
sievep_bad 2576
safe_Z_lval 2583
ellomega_cx 2990
cardmod3 3003
ellinit_nf_to_Fq 3024
ellnf_to_Fq 3024
F3_card 3143
checkellisog 3248
invcmp 3258
checkell_Q 3521
get_piinv 3556
elldivpol 3731
doellR_omega 3809
ellomega_agm 3809
doellR_roots 4208
elleisnum 4438
elldivpol0 4585
ellR_omega 4872
ellR_roots 5181
handle_Q 5222
ellweilpairing 5236
elldivpol4 5439
ellinit_Rg 5894
ec_dmFdy_evalQ 6139
rellg 7434
ellQ_get_N 8015
eta_correction 8890
_elleta 8925
ellsigma 8967
ec_bmodel 8982
cxredsl2 8995
PiI2div 9002
get_toadd 9891
reduce_z 9919
nf_coordch_st 12901
approx_mod3 13153
elladd 13524
_elleisnum 13545
trueE 13545
check_real 13790
get_periods 14490
compute_periods 14567
red_modSL2 14567
check_periods 14574
nflocalred_section7 15498
ec_LHS_evalQ 15519
check_complex 15561
oncurve 15596
ellisoncurve 16730
doellgens 16828
ellgenerators 16842
ellff_get_gens 16905
ellgroup0 21329
ellfromj_simple 22540
a4a6_ch 22738
ell_to_a4a6_bc 22738
ellgroup 22862
ellgroup_m 22918
set_gamma 23562
approx_mod2 26306
elltwist 28385
ellinit_Fp 29877
expIxy 33600
ellfromj 33817
fix_nftype 36337
ch_Q 36771
ch_R 36771
ellinit_nf 36911
nfVtoalg 36925
doellgroup 38850
ellff_get_group 39389
nflocalred_p 50904
ellnflocal 69405
Fq_c4_to_a4 70105
Fq_c4c6_to_a4a6 70105
ell_reset 72128
checkell5 72149
ellchangecurve 72149
coordch 72198
checkcoordch 72730
coordch_uinv 73052
ellcard 88506
ellQap 98574
ell_to_nfell10 99218
nflocalred_23 99218
chk_p 99663
nflocalred 101052
ellQap_u 101206
nf_compose_s 109550
nf_coordch_s 109550
ellinit_Fq 113020
doellcard 115036
coordch_s 117992
get_uniformizers 150122
nf_compose_u 152943
nf_coordch_uinv 153363
ellff_get_card 158870
nf_compose_r 164045
elljissupersingular 164703
ellissupersingular 164878
ellnfap 168294
nf_coordch_rt 171059
ellff_get_p 180444
nf_compose_st 184114
elllocalred 195153
pola2a4a6 216216
pola1a2 241787
ellrandom 244062
numroots3 244307
ellffmul 248513
ellmul_Z 249026
ellmul 249083
nf_compose_rt 251538
nf_coordch_t 251783
nf_compose_t 253610
nf_coordch_r 267162
sievep_good 273549
ellan_get_ap 276125
sievep 276125
Fl_c4c6_to_a4a6 276818
Fl_ell_to_a4a6 276818
Fl_c4_to_a4 277189
checkell_Fq 279440
ellap_CM_fast 279485
checkellpt 308261
coordch_t 344925
coordch_rst 347452
coordch_st 347452
nftoalg 386904
pola3a6 391531
ellglobalred 453971
ellQ_globalred 454279
get_u 454643
Z_gcd_primes 455490
is_trivial_change 456141
ellminimalmodel_i 456183
ellintegralmodel_i 459067
ellglobalred_i 464331
ellinit_Q 495712
ec_f_evalx 529466
ec_h_evalx 546973
ell_over_Fq 553176
pol2sqrt_23 584423
coordch_r 611149
ellinit 677060
initsmall 681506
localred_23 702695
base_ring 711388
numroots2 788886
get_vp_u 878514
localred_p 878514
j_pval 879375
aux 888699
min_to_ell 1157345
Zec_h_evalx 1170428
min_get_v 1170428
min_set_all 1170428
min_set_D 1170435
min_set_a 1170456
min_set_b 1170596
min_set_c 1170743
min_set_u 1170743
aux2 1421994
localred 1580964
get_vp_u_small 1682800
localred_result 1731331
handle_coeff 2295335
ell_to_a4a6 2741097
c4_to_a4 2741244
c4c6_to_a4a6 2741244
ellcard_ram 2796570
ellap 2947672
checkellp 3077870
init_ch 3267376
checkell 4073223

Generated by: LCOV version 1.11