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 - polmodular.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30587-f85873d515) Lines: 2651 2817 94.1 %
Date: 2025-12-27 09:21:13 Functions: 157 163 96.3 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Fl_addmul2 64549057
Fl_addmul3 13209390
Fl_addmul4 5173053
Fl_addmul5 25729121
Fl_mul4 1854428
Fl_mul5 98043
Fl_mul6 829424
Fl_mul7 98043
Fl_mul8 927396
Fle_quotient_from_kernel_generator 98051
Flm_Fl_phi2_evalx 30215538
Flm_Fl_phi3_evalx 4414953
Flm_Fl_phi5_evalx 5164182
Flm_Fl_polmodular_evalx 46759125
Flv_deriv_pre_inplace 2464
Flv_lastnonzero 330356
Flv_powu_inplace_pre 38568
Flx_double_eta_jpoly 31102
Flx_double_eta_xpoly 53901
FpV_deriv 56
Fp_modinv_to_j 1043
Fp_polmodular_evalx 126
_qsort_cmp 14914912
append_neighbours 667665
calc_primes_for_discriminants 3116
carray_reverse_inplace 20083
check_generators 802637
compute_L_isogenous_curve 89351
db_add_levels 24
disc_best_modinv 1907423
discriminant_with_classno_at_least 3114
double_eta_Fl 30003
double_eta_exponent 62318
double_eta_initial_js 6102
double_eta_power 31102
double_eta_raw 30640
double_eta_raw_to_Fl 36401
double_eta_raw_to_Fp 357
double_eta_root 30860
eighth_root 4719
enum_volcano_floor 41627
enum_volcano_surface 41622
eval_modpoly_modp 2674
find_L_tors_point 143370
find_noniso_L_isogenous_curve 89343
fourth_root 3925
get_Lsqr_cycle 41628
inflate_polys 9644
internal_db 24967
interpolate_coeffs 44188
make_pcp_floor 2992
make_pcp_surface 2992
mkqfis 148849
modfn_preimage 71053
modfn_root 201915
modfn_unambiguous_root 17877
modinv_degree 7402228
modinv_double_eta_from_2j 17799
modinv_double_eta_from_j 6101
modinv_double_eta_good_disc 5468111
modinv_f3_from_j 168
modinv_f_from_j 3146
modinv_good_atkin 633269
modinv_good_disc 15109326
modinv_good_prime 11096729
modinv_height_factor 22899725
modinv_is_Weber 1029
modinv_is_double_eta 251072
modinv_j_from_2double_eta 6398
modinv_j_from_f 1830
modinv_level 40815
modinv_max_internal_level 28067
modinv_odd_conductor 548100
modinv_parent 140
modinv_parent_power 140
modinv_pfilter 15691
modinv_ramified 700
modinv_sparse_factor 47699
modpoly_height_bound 3114
modpoly_pickD 3116
modpoly_pickD_primes 12575
normalise_coeffs 9644
oneroot_of_classpoly 41617
orientation_ambiguity 43897
phi2_ZV 20050
phi2_atkin11_ZV 0
phi2_atkin13_ZV 0
phi2_atkin17_ZV 0
phi2_atkin19_ZV 0
phi2_atkin23_ZV 7
phi2_atkin29_ZV 14
phi2_atkin31_ZV 14
phi2_atkin3_ZV 7
phi2_atkin5_ZV 7
phi2_atkin7_ZV 14
phi2_g2_ZV 98
phi2_w3w13_ZV 14
phi2_w3w3e2_ZV 21
phi2_w3w5_ZV 35
phi2_w5w7_ZV 70
phi3_ZV 1917
phi3_f3_ZV 14
phi3_w2w13_ZV 49
phi3_w2w7_ZV 182
phi5_ZV 1887
phi5_f_ZV 175
phi5_w2w3_ZV 56
phi5_w3w3_ZV 63
phi5_w3w7_ZV 42
phi7_w2w5_ZV 91
phi_atkin11_j 0
phi_atkin13_j 224
phi_atkin17_j 672
phi_atkin19_j 0
phi_atkin23_j 504
phi_atkin29_j 2039
phi_atkin31_j 2222
phi_atkin3_j 931
phi_atkin5_j 287
phi_atkin7_j 273
phi_w2w13_j 2755
phi_w2w3_j 1060
phi_w2w5_j 2500
phi_w2w7_j 6166
phi_w3w13_j 210
phi_w3w3_j 3883
phi_w3w5_j 1160
phi_w3w7_j 2412
phi_w5w7_j 3342
polmodular 651
polmodular0_ZM 27948
polmodular0_powerup_ZM 140
polmodular_ZM 19294
polmodular_ZXX 19210
polmodular_db_add_level 26100
polmodular_db_add_levels 5025
polmodular_db_for_inv 377651
polmodular_db_getp 548070
polmodular_db_init 21527
polmodular_small_ZM 24967
polmodular_split_p_Flm 41608
polmodular_worker 41616
prime_to_conductor 3464791
primeform_discrete_log 209134
primeform_exp_order 1101615
qfb_distinct_prods 231183
qfb_is_two_torsion 1697990
qfb_nform 144557
qform_primeform2 84555
red_primeform 3464791
root_matrix 41630
roots_to_coeffs 43862
safe_abs_sqrt 9840
scanD0 3116
select_L0 3114
select_curve_with_L_tors_point 89352
sixth_root 5340
sympol_to_ZM 24827
twelth_root 893
update_Lsqr_cycle 626022
vecsmall_pick 667651
verify_L_sylow_is_cyclic 50320
weber_exponent 63

Generated by: LCOV version 1.16