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 30582-6e9af8ee1d) Lines: 2626 2740 95.8 %
Date: 2025-12-20 09:23:49 Functions: 157 161 97.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Fl_addmul2 63715116
Fl_addmul3 12612029
Fl_addmul4 5317745
Fl_addmul5 26435367
Fl_mul4 1854428
Fl_mul5 98975
Fl_mul6 828385
Fl_mul7 98974
Fl_mul8 927289
Fle_quotient_from_kernel_generator 98989
Flm_Fl_phi2_evalx 29889809
Flm_Fl_phi3_evalx 4215793
Flm_Fl_phi5_evalx 5307958
Flm_Fl_polmodular_evalx 46443822
Flv_deriv_pre_inplace 2464
Flv_lastnonzero 336717
Flv_powu_inplace_pre 39845
Flx_double_eta_jpoly 32113
Flx_double_eta_xpoly 61086
FpV_deriv 56
Fp_modinv_to_j 1133
Fp_polmodular_evalx 126
_qsort_cmp 15420475
append_neighbours 660599
calc_primes_for_discriminants 3228
carray_reverse_inplace 20110
check_generators 813798
compute_L_isogenous_curve 90290
db_add_levels 24
disc_best_modinv 1907423
discriminant_with_classno_at_least 3226
double_eta_Fl 33889
double_eta_exponent 67341
double_eta_initial_js 6697
double_eta_power 32113
double_eta_raw 34609
double_eta_raw_to_Fl 39903
double_eta_raw_to_Fp 455
double_eta_root 34774
eighth_root 5021
enum_volcano_floor 41797
enum_volcano_surface 41792
eval_modpoly_modp 2674
find_L_tors_point 144772
find_noniso_L_isogenous_curve 90286
fourth_root 3926
get_Lsqr_cycle 41799
inflate_polys 9971
internal_db 24946
interpolate_coeffs 44453
make_pcp_floor 3104
make_pcp_surface 3104
mkqfis 152847
modfn_preimage 70203
modfn_root 205999
modfn_unambiguous_root 20577
modinv_degree 7437562
modinv_double_eta_from_2j 20496
modinv_double_eta_from_j 6697
modinv_double_eta_good_disc 5500283
modinv_f3_from_j 168
modinv_f_from_j 3259
modinv_good_atkin 665182
modinv_good_disc 15170644
modinv_good_prime 11453157
modinv_height_factor 22917001
modinv_is_Weber 1078
modinv_is_double_eta 259174
modinv_j_from_2double_eta 6011
modinv_j_from_f 1844
modinv_level 41368
modinv_max_internal_level 28158
modinv_odd_conductor 566569
modinv_parent 140
modinv_parent_power 140
modinv_pfilter 15877
modinv_ramified 798
modinv_sparse_factor 48096
modpoly_height_bound 3226
modpoly_pickD 3228
modpoly_pickD_primes 12649
normalise_coeffs 9971
oneroot_of_classpoly 41787
orientation_ambiguity 48746
phi2_ZV 20015
phi2_atkin11_ZV 0
phi2_atkin13_ZV 0
phi2_atkin17_ZV 0
phi2_atkin19_ZV 14
phi2_atkin23_ZV 21
phi2_atkin29_ZV 21
phi2_atkin3_ZV 7
phi2_atkin5_ZV 14
phi2_atkin7_ZV 7
phi2_g2_ZV 98
phi2_w3w13_ZV 14
phi2_w3w3e2_ZV 21
phi2_w3w5_ZV 35
phi2_w5w7_ZV 70
phi3_ZV 1910
phi3_f3_ZV 14
phi3_w2w13_ZV 35
phi3_w2w7_ZV 182
phi5_ZV 1880
phi5_f_ZV 189
phi5_w2w3_ZV 56
phi5_w3w3_ZV 63
phi5_w3w7_ZV 49
phi7_w2w5_ZV 91
phi_atkin11_j 0
phi_atkin13_j 1119
phi_atkin17_j 1119
phi_atkin19_j 1073
phi_atkin23_j 1883
phi_atkin29_j 3858
phi_atkin3_j 693
phi_atkin5_j 727
phi_atkin7_j 70
phi_w2w13_j 2157
phi_w2w3_j 1060
phi_w2w5_j 2927
phi_w2w7_j 6628
phi_w3w13_j 210
phi_w3w3_j 3608
phi_w3w5_j 1160
phi_w3w7_j 2986
phi_w5w7_j 3331
polmodular 651
polmodular0_ZM 28039
polmodular0_powerup_ZM 140
polmodular_ZM 19266
polmodular_ZXX 19182
polmodular_db_add_level 27200
polmodular_db_add_levels 5277
polmodular_db_for_inv 393209
polmodular_db_getp 569036
polmodular_db_init 21492
polmodular_small_ZM 24946
polmodular_split_p_Flm 41783
polmodular_worker 41791
prime_to_conductor 3502361
primeform_discrete_log 211978
primeform_exp_order 1116787
qfb_distinct_prods 235817
qfb_is_two_torsion 1717114
qfb_nform 144613
qform_primeform2 86991
red_primeform 3502361
root_matrix 41798
roots_to_coeffs 44126
safe_abs_sqrt 10064
scanD0 3228
select_L0 3226
select_curve_with_L_tors_point 90290
sixth_root 5537
sympol_to_ZM 24806
twelth_root 893
update_Lsqr_cycle 618778
vecsmall_pick 660594
verify_L_sylow_is_cyclic 50485
weber_exponent 77

Generated by: LCOV version 1.16