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 - mftrace.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30120-da4d49cf2e) Lines: 7496 7702 97.3 %
Date: 2025-04-04 09:18:53 Functions: 769 775 99.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
A1 359429
A21 43750
A22 43750
A3 44198
A4 43288
AX_B 203
CHIvec_CHI 15456
CHIvec_N 24695398
CHIvec_expo 422457
CHIvec_ord 35777
CHIvec_parity 54082
CHIvec_val 24048745
CX_D 203
GL2toSL2 1211
Galois 30331
Haberland 140
Hfind 7
MF_get_CHI 8659
MF_get_E 4438
MF_get_M 6797
MF_get_Mindex 10430
MF_get_Minv 4795
MF_get_N 19369
MF_get_S 21133
MF_get_basis 1855
MF_get_dim 5523
MF_get_fields 595
MF_get_gN 20475
MF_get_gk 14777
MF_get_k 7126
MF_get_newforms 798
MF_get_r 245
MF_get_space 14714
MF_set_new 1379
MF_set_space 413
MFcusp_get_vMjd 672
MFnew_get_vj 7189
Mindex_as_coef 49
Minv_RgC_mul 7329
Minv_RgM_mul 1281
Miyake 84028
NK_eisen2 133
QabC_to_Flc 38164
QabM_Minv 602
QabM_indexrank 10402
QabM_init 1239
QabM_ker 1561
QabM_pseudoinv 1015
QabM_pseudoinv_i 1274
QabM_rank 35
QabM_to_Flm 595
QabM_tracerel 147
QabV_tracerel 16114
QabX_to_Flx 1484
Qab_Czeta 2189747
Qab_Czeta_Fl 221585
Qab_to_Fl 8534960
Qab_trace_init 34034
Qab_tracerel 0
Qab_zeta 200242
RgC_Bd_expand 82495
RgC_embedall 350
RgM_Minv_mul 2436
RgV_approx 126
RgV_div_RgXn 399
RgV_heckef2 98
RgV_inflatemod 7
RgV_mul_RgXn 3381
RgV_normalize 2065
RgV_pows_RgXn 112
RgV_shift 5159
RgV_shimura 105
RgV_to_ser_full 4655
RgXV_embed 98
RgX_act_S 1288
RgX_act_gen 154
RgX_act_typ 2842
RgX_approx 2863
RgX_by_parity 14
RgX_embed 1687
RgX_embed1 14203
RgX_embed2 532
RgX_embedall 364
RgX_isspherical 28
RgX_valrem_root 70
RgXn_negpow 375
Rg_approx 8582
Rg_embed1 84658
Rg_embed2 13328
Rg_embedall 95154
Rg_embedall_i 4907
SL2_div_D 9177
TA1 6390872
TA2 6390872
TA3 6390872
TA4 6390872
Tp 469
Tpmod 2408
Unelson 71932
VS 63742
Wcoshall 10304
WfromZ 74046
Wint 10304
Wint2 63742
Wparams 10304
ZM_mulS 1337
ZM_mulT 4634
ZM_mulTi 2352
ZX_roots 182
ZabM_pseudoinv_i 1092
_RgXQM_mul 378
abundant 2569
act_GL2 266
act_S 2576
actal 42
anextract 2618
anyembed 28
append_dihedral 18718
atkin_get_NQ 238
auxsum 33177381
badchar 7840
bdexpand 6370
bdexpandall 329
bern_init 1589
bestapprnf2 126
bestapprnfrel 1519
bhn_newtrace 32501
bhn_parse 82495
bhnmat_extend 9079
bhnmat_extend_nocache 6923
bnrchartwist2conrey 34489
c_Bd 7462
c_Ek 882
c_F2TH4 266
c_QF_i 56
c_QFsimple_i 49
c_bracket 42
c_const 140
c_cusptrace 21
c_deflate 8834
c_delta 539
c_deriv 175
c_derivE2 14
c_dihedral 5579
c_div 833
c_div_i 833
c_ell 77
c_etaquo 203
c_hecke 1050
c_linear 3003
c_linear_bhn 2233
c_mfEH 343
c_mfeisen 11277
c_mul 637
c_newtrace 1897
c_pow 112
c_shift 35
c_theta 1911
c_twist 161
cache_delete 9415
cache_get 448746005
cache_report 70
cache_reset 517
cache_set 531
ceilA1 7616
char2 6615
charLFwt1 2618
charLFwt1_Fl 2002
charLFwtk 4361
charLFwtk_Fl 2891
char_normalize_zv 118517
charistotallyeven 13846
charsmodN 644
checkCHI 9198
checkMF 3920
checkMF_i 18816
checkNK 133
checkNK2 9205
checkPv 28
check_M2Z 3052
check_SL2Z 1841
checkbij_i 7
checkemb_i 28
checkfs2_i 210
checkfs_i 798
checkmf2 43729
checkmf_i 18781
checkmfa 56
chicompat 2723
chicompatfix 651
chicompatlift 651
cmp_coset 35469
cmp_ord 371
cmp_small_priority 73759
col2cusp 126
colnewtrace 179263
condC 1568
conreydenormalize 34489
const_mat 896
constcoredisc 51
constdiv 152
constfact 187
consttabdihedral 14
consttabh 155
corediscs_fact 5532052
coset_complete 11963
cusp2mat 518
cusp_AC 1134
cusp_canon 364
cxredga0N 182
cyc_normalize_zv 26810
dbg_cachenew 17241
deg1ser_shallow 49
desc 623
desc_dihedral 21
desc_hecke 35
desc_i 1540
desc_linear 98
desc_mfeisen 504
di_N 42042
dihan 13573
dihan_bnf 9331
dihan_bnr 37758
dim22 3696
dim_filter 28
dim_sum 287
discard_Ti 0
div_restrict 322077
divisorsNF 322
eiscnm 7830900
err_cyclo 14
err_space 7
eta3_ZXn 525
evalcusp 364
expandbd 5425
expandbd_Fl 7021
f00 4865
f00_i 6146
fg1g2n 612675
findbestsplit 1323
findd 217
findq 14
findqga 91
findqganew 49
fix_pol 234178
fmt_dim 3983
foo_stable 42
fs2_get_F 56
fs2_get_MF 56
fs2_get_W 56
fs2_get_al0 56
fs2_get_bitprec 0
fs2_get_cusps 56
fs2_get_den 21
fs2_init 21
fs_get_EF 70
fs_get_MF 1463
fs_get_bitprec 630
fs_get_cosets 2191
fs_get_expan 1890
fs_get_pols 1596
fs_get_vE 1246
fs_get_vES 847
fs_set_expan 28
gausssumcx 14266
get_DIH 12355
get_P 259
get_PSI 299775
get_Shimura 21
get_badj 7616
get_bnrconreyN 15862
get_gb 7805
get_mf_F 546
get_mfchar 4039
get_vDIH 2373
get_vP 21
getcache 14
getcols 1806
getcols_i 4382
getcolsgen 427
getcolswt2 252
getembed 924
getnlim2 2555
getw1w2 2555
gmfcharmodulus 1560867
gmfcharno 3983
gmfcharorder 3723251
grootsof1_CHI 777
gsubstvec_i 14
hash_eisengacx 7868
hclassno6_count 58
hclassno6u 2412549
hclassno6u_2 92
hclassno6u_i 156440633
hclassno6u_no_cache 86914
hecke_data 17542
hecke_i 2527
heckef2_data 84
heckenewtrace 88725
improve 5740
induce 307937
induceN 42364
inflatemod 49
init_cachenew 13216
initnewtrace 32816
initnewtrace_i 32711
inittrace 127197
inittrconj 32711
initwt1newtrace 21
initwt1trace 28
intAoo 945
intAoo0 77
intAoowithvanall 147
inveis_extraprec 70
is_cond 49364
lamCO 3360
lamsig 14255503
lfunfindchi 21
lfunmf 84
lfunquadneg_naive 28
lfuntag 1155
lfunthetaall 161
m1pk 8197
mat2cusp 112
matTp 56
matTpmod 301
matdeflate 385
merge_dims 7
mf1 42
mf1_cusptonew 252
mf1_pre 1834
mf1basis 11284
mf1chars 1729
mf1cuspdim 476
mf1cuspdim_i 7315
mf1cuspdimall 4144
mf1cuspdimsum 4123
mf1dimmod 595
mf1dims 105
mf1dimsum 2114
mf1init 3969
mf1intermat 224
mf1newdimall 56
mf1newdimsum 1050
mf1olddimall 28
mf1olddimsum 469
mf2basis 266
mf2dim_Nkchi 43463
mf2dimwt12 41363
mf2dimwt32 693
mf2gaexpansion 343
mf2init 98
mf2init_Nkchi 266
mfDelta 56
mfEH 266
mfEHcoef 77
mfEHmat 266
mfEMPTY 1029
mfEMPTYall 616
mfEk 406
mfTheta 798
mfZC_width 9772
mf_eisendec 1015
mf_get_CHI 62055
mf_get_N 118979
mf_get_NK 18767
mf_get_field 24325
mf_get_gN 184093
mf_get_gk 139132
mf_get_k 71750
mf_get_r 441
mf_get_type 231791
mf_normalize 1477
mf_same_CHI 1127
mf_same_k 1169
mf_setfield 525
mfak_i 455
mfalchi2 5460
mfatkin 56
mfatkineigenquad 56
mfatkineigenvalues 49
mfatkininit 91
mfatkininit_i 217
mfatkinmatnewquad 112
mfbasis 357
mfbd 252
mfbd_E2 721
mfbd_i 35840
mfbdall 7364
mfbracket 28
mfcanfindp0 14
mfcharAL 105
mfcharGL 373898
mfcharchiliftprim 35
mfcharconductor 397418
mfcharconj 56
mfcharcxeval 9499
mfcharcxinit 14266
mfchardiv 5509
mfchardiv_i 5509
mfchareval 14217
mfcharevalord 3563462
mfchargalois 4872
mfcharinduce 13048
mfcharinit 32718
mfcharinv_i 595
mfcharistrivial 2709
mfcharmodulus 1560867
mfcharmul 1106
mfcharmul_i 301861
mfcharmulcxeval 5460
mfcharmuleval 10920
mfcharno 13692
mfcharorder 3684898
mfcharparity 68411
mfcharpol 564193
mfcharpow 147
mfchars 3255
mfchartoprimitive 76405
mfchartrivial 5796
mfcheapeisen 154
mfchiadjust 2821
mfchiembed 7
mfchilift 980
mfchisimpl 1596
mfclean 4998
mfclean2 847
mfcleanCHI 4046
mfcoef 301
mfcoefs 3878
mfcoefs_i 38017
mfcoefs_mf 2597
mfcoefsser 665
mfconductor 175
mfconreyminimize 12138
mfcosets 168
mfcuspcanon_width 987
mfcuspdim 3402
mfcuspdim_i 43365
mfcuspisregular 315
mfcusps 28
mfcusps_i 49
mfcusptrace_i 6390872
mfcusptracecache 7650522
mfcuspval 203
mfcuspwidth 161
mfderiv 182
mfderivE2 21
mfdescribe 966
mfdihedral 14
mfdihedralall 14
mfdihedralcommon 33698
mfdihedralcusp 3857
mfdihedralcuspdim 7105
mfdihedralnew 8820
mfdihedralnew_i 24969
mfdihedralnewdim 16149
mfdiheval 107611
mfdim 5719
mfdim0all 3010
mfdim_Nkchi 1393
mfdim_Nndkchi 44744
mfdiv 49
mfdiv_val 2163
mfeigenbasis 343
mfeigenembed 161
mfeigensearch 35
mfeisenstein 371
mfeisenstein2_0 7917
mfeisenstein2_0_Fl 4382
mfeisenstein2all 2625
mfeisenstein2pure 5166
mfeisenstein2pure_Fl 4382
mfeisenstein_i 371
mfeisensteinbasis 1435
mfeisensteinbasis_i 1407
mfeisensteindec 1015
mfeisensteindim 231
mfeisensteingacx 5460
mfeisensteinspaceinit 602
mfeisensteinspaceinit_i 644
mfembed 100831
mfembed0 49
mfeval 168
mfeval_i 168
mffields 35
mffindeisen1 35
mffindrootof1 6741
mffrickeeigen 84
mffrickeeigen_i 105
mffromell 28
mffrometaquo 210
mffromlfun 21
mffromqf 77
mffulldim 861
mffvanish 14
mfgaexpansion 1834
mfgaexpansion_i 1085
mfgaexpansionall 175
mfgaexpansionatkin 77
mfgaloisprojrep 77
mfgaloistype 231
mfgaloistype0 224
mfgaloistype_i 182
mfgatogap 5460
mfgetembed 609
mfgetvan 189
mfhecke 105
mfhecke_i 24633
mfheckemat 77
mfheckemat_mfcoefs 350
mfheckemat_mfcoefs_p 35
mfheckemat_mfcoefs_p2 7
mfheckemat_p 343
mfinit 2401
mfinit_Nkchi 5012
mfinit_Nndkchi 2716
mfinit_i 3381
mfinitcusp 3220
mfinittonew 42
mfisCM 14
mfiscuspidal 231
mfisdihedral 224
mfisequal 196
mfisetaquo 49
mfisetaquo_i 49
mfisinkohnen 28
mfisinspace_i 245
mfisnotA5 105
mfisnotS4 105
mfistrivial 1351
mfkdims 2961
mfkdimsum 252
mfkohnenbasis 21
mfkohnenbasis_i 21
mfkohnenbijection 14
mfkohnenbijection_i 14
mfkohneneigenbasis 7
mflfuncreate 161
mflfuncreateall 133
mflinear 1050
mflinear_bhn 700
mflinear_i 476
mflinear_linear 2016
mflinear_strip 1827
mflineardiv_linear 2016
mflineardivtomat 630
mfmanin 42
mfmatembed 70
mfmatsermul 686
mfmatsermul_Fl 1141
mfmul 455
mfmultheta 448
mfnewchkzero 2599616
mfnewdim 15841
mfnewinit 15596
mfnewmathecke_p 896
mfnewtrace_i 2599616
mfnewtracecache 4501189
mfnewzerodata 32816
mfolddim 224
mfolddim_i 8372
mfparams 700
mfperiod_prelim 301
mfperiod_prelim_double 1253
mfperiodpol 35
mfperiodpolbasis 49
mfperiodpols_i 168
mfpetersson 126
mfpetersson2 21
mfpetersson_i 140
mfpeterssonnoncusp 14
mfpow 77
mfqk 2338
mfrhopol 361569
mfrhopol_eval 56617
mfrhopol_u_eval 3251107
mfrhopowsimp 168051124
mfs_checkmf 49
mfs_iscusp 35
mfsamefield 3920
mfsearch 28
mfshift 42
mfshimura 49
mfshimura_space_cusp 42
mfskcx 3346
mfslashexpansion 1148
mfspace 287
mfspace_i 287
mfspclean 1071
mfsplit 98
mfstabiter 28
mfstabitermod 252
mfsturm 805
mfsturmNgk 3304
mfsturmNk 21777
mfsturm_mf 4536
mfsturmmf 427
mfsymbol 175
mfsymbol_i 168
mfsymboleval 210
mfsymboleval_direct 112
mfsymbolevalpartial 77
mftaylor 14
mfthetaI 56
mfthetaancreate 952
mfthetaexpansion 343
mfthetamultiplier 343
mftobasis 1022
mftobasisES 532
mftobasis_i 1407
mftocol 9086
mftocoset 7
mftocoset_i 9198
mftocoset_iD 9177
mftonew 210
mftonew_i 448
mftraceform 98
mftraceform_cusp 14
mftraceform_i 98
mftraceform_new 952
mftreatdihedral 784
mftrivial 84
mftwist 21
mfunram 119
mfval 49
mfvec_first_cusp 623
mfvecembed 1715
mfvectomat 2114
mintau 154
mkF2bd 1645
mkM 602
mkMinv 7742
mkNK 15064
mkS 21
mkbez 127197
mkeisen 5782
mkgNK 37023
mkgcd 127197
mklvchi 26810
mkmf 12341
mkmup 127197
mksqr 127197
moreorders 392
mubeta 6993
mubeta2 7650522
mutg1 161244663
mutglistall 15215785
mybezout 21840
mychareval 24038714
mycharexpo 422457
mychicgcd 402384895
mycore 72
mycoredisc2neg 176460554
mycoredisc2pos 14
mydivisorsu 69087425
myeulerphiu 109711
myfactoru 33685503
myh 10646797
myimag_i 189
mymoebiusu 65709
mynffactor 1498
mynumdivu 2996
mypsiu 394156
myradicalu 119
mysqrtu 56
mysumdivku 48020
myugcd 283248371
myusqrt 84
newd_params 41552
newd_params2 21
newt_params 1874793
newtrace_DATA 33740
newtrace_stripped 33740
nf2_get_conj 5768
nf_primpart 329
nfcontent 210
non_residues 2814
normal 98
normalizeapprox 56
normalizeapprox_i 2898
not_in_space 77
nu2 17549
nu3 10178
nuinf 38941
ok_bhn_linear 3983
paramconst 126
pari_close_mf 1883
parse_vecj 9394
pathmattovec 7
phipart 36869
pindices 1834
pol_red 427
polabstorel 518
polishomogeneous 140
reset_cachenew 33740
rootspowers 217
same_cyc 616
search_A5 0
search_abelian 182
search_from_split 889
search_levels 63
search_solvable 77
seenD 413
sertocol 2387
sertocol2 70
sertovecslice 833
shift_M 1085
sigchi 24192
sigchi2 593803
sigchi2_Fl 55615
sigchi2_dec 649418
simple_pole 49
sort_by_dim 1071
space_is_cusp 6020
split 231
split_i 1148
split_ii 1470
split_starting_space 1071
sqrtm1modN 595
sqrtm3modN 539
symbol_same_mf 35
symbol_type 161
tag 10248
tag0 56
tag2 36148
tag3 16093
tag4 0
taglinear 2772
taglinear_i 6748
tagparams 62671
toRgX0 2863
tobasis 1008
tp2apply 70
tp2eapply 70
tracerel 253855
tracerel_i 80255
tracerel_z 6944
tracerelz 84756
trconj 204089
u_pporad 28
unact 14
unpack0 1043
unpack2 42
unpack23 308
update_Mj 1190
update_factor_cache 2239
val 189
valNC2 168
van_embedall 343
vanembed 490
vchip_FC 279516148
vchip_lift 410718
vchip_mod 6440981
vchip_polmod 1913468
vecGalois 1022
vecact_GL2 7
vecembed1 798
vecembed2 42
vecj_expand 5159
vecmfNK 3227
vecmflinear 1211
vecmflineardiv0 427
vecmflineardiv_linear 476
vecpermute_inplace 1330
vecpermute_partial 1379
vecpush 1211
wt1empty 16632
wt1mulcond 0
wt1newlevel 7
zero_at_cusp 168
zeta2CO 3696
znchareval_i 2508317
zncharsG 1169
znstar_get_expo 1288

Generated by: LCOV version 1.16