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.0 lcov report (development 29732-95c6201d93) Lines: 7543 7749 97.3 %
Date: 2024-11-21 09:08:54 Functions: 766 772 99.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Qab_tracerel 0
discard_Ti 0
fs2_get_bitprec 0
search_A5 0
tag4 0
wt1mulcond 0
Hfind 7
checkbij_i 7
compatlift 7
err_space 7
merge_dims 7
mfchiembed 7
mffvanish 7
mfheckemat_mfcoefs_p2 7
mfkohneneigenbasis 7
mfpeterssonnoncusp 7
mftocoset 7
pathmattovec 7
vecact_GL2 7
wt1newlevel 7
RgX_by_parity 14
c_derivE2 14
consttabdihedral 14
err_cyclo 14
findq 14
fs_set_expan 14
getcache 14
gsubstvec_i 14
mfcanfindp0 14
mfdihedral 14
mfdihedralall 14
mfisCM 14
mfkohnenbijection 14
mfkohnenbijection_i 14
mftaylor 14
mftraceform_cusp 14
mycoredisc2pos 14
unact 14
c_cusptrace 21
desc_dihedral 21
fs2_get_den 21
fs2_init 21
get_Shimura 21
get_vP 21
initwt1newtrace 21
lfunfindchi 21
mfderivE2 21
mffromlfun 21
mfkohnenbasis 21
mfkohnenbasis_i 21
mfpetersson2 21
mftwist 21
mkS 21
newd_params2 21
RgX_isspherical 28
anyembed 28
checkPv 28
checkemb_i 28
dim_filter 28
initwt1trace 28
lfunquadneg_naive 28
mf1olddimall 28
mfbracket 28
mfcusps 28
mffromell 28
mfisinkohnen 28
mfsearch 28
mfstabiter 28
symbol_same_mf 28
u_pporad 28
QabM_rank 35
c_shift 35
desc_hecke 35
mfcharchiliftprim 35
mfeigensearch 35
mffields 35
mffindeisen1 35
mfheckemat_mfcoefs_p 35
mfperiodpol 35
mfs_iscusp 35
actal 42
c_bracket 42
foo_stable 42
mf1 42
mfinittonew 42
mfmanin 42
mfs_checkmf 42
mfshift 42
mfshimura_space_cusp 42
unpack2 42
vecembed2 42
Mindex_as_coef 49
c_QFsimple_i 49
deg1ser_shallow 49
findqganew 49
mfatkineigenvalues 49
mfcusps_i 49
mfdiv 49
mfembed0 49
mfisetaquo 49
mfisetaquo_i 49
mfperiodpolbasis 49
mfshimura 49
mfval 49
simple_pole 49
constcoredisc 52
c_QF_i 56
checkmfa 56
fs2_get_F 56
fs2_get_MF 56
fs2_get_W 56
fs2_get_al0 56
fs2_get_cusps 56
fs_get_EF 56
matTp 56
mf1newdimall 56
mfDelta 56
mfatkin 56
mfatkineigenquad 56
mfcharconj 56
mfthetaI 56
mysqrtu 56
tag0 56
hclassno6_count 58
intAoo0 63
mfsymbolevalpartial 63
search_levels 63
RgX_valrem_root 70
cache_report 70
inveis_extraprec 70
mfgaexpansionatkin 70
mfmatembed 70
mycore 70
sertocol2 70
tp2apply 70
tp2eapply 70
c_ell 77
mfEHcoef 77
mffrickeeigen 77
mffromqf 77
mfgaloisprojrep 77
mfheckemat 77
mfpow 77
not_in_space 77
search_solvable 77
heckef2_data 84
lfunmf 84
mftrivial 84
myusqrt 84
hclassno6u_2 89
findqga 91
mfatkininit 91
RgV_heckef2 98
RgXV_embed 98
desc_linear 98
mf2init 98
mffrickeeigen_i 98
mfsplit 98
mfsymboleval_direct 98
mftraceform 98
mftraceform_i 98
normal 98
RgV_shimura 105
mat2cusp 105
mf1dims 105
mfatkinmatnewquad 105
mfcharAL 105
mfhecke 105
mfisnotA5 105
mfisnotS4 105
RgV_pows_RgXn 112
c_pow 112
col2cusp 119
mfpetersson 119
mfunram 119
myradicalu 119
RgV_approx 126
bestapprnf2 126
intAoowithvanall 126
paramconst 126
Haberland 133
NK_eisen2 133
checkNK 133
mflfuncreateall 133
mfpetersson_i 133
c_const 140
mfgaexpansionall 140
polishomogeneous 140
constdiv 145
QabM_tracerel 147
mfcharpow 147
mfcheapeisen 147
mfcosets 147
mfperiodpols_i 147
mfsymbol_i 147
mintau 147
symbol_type 147
RgX_act_gen 154
consttabh 154
lfunthetaall 154
mfeigenembed 154
mfsymbol 154
c_twist 161
mfcuspwidth 161
mfeval 161
mfeval_i 161
mfgetvan 161
mflfuncreate 161
zero_at_cusp 161
valNC2 168
constfact 173
c_deriv 175
cxredga0N 175
mfconductor 175
ZX_roots 182
mfderiv 182
mfgaloistype_i 182
mfsymboleval 182
myimag_i 182
search_abelian 182
checkfs2_i 189
val 189
mfisequal 196
AX_B 203
CX_D 203
c_etaquo 203
mfcuspval 203
mfatkininit_i 210
mffrometaquo 210
mftonew 210
nfcontent 210
findd 217
get_P 217
rootspowers 217
mf1intermat 224
mfgaloistype0 224
mfiscuspidal 224
mfisdihedral 224
mfolddim 224
split 224
atkin_get_NQ 231
mfeisensteindim 231
mfgaloistype 231
mfisinspace_i 238
MF_get_r 245
getcolswt2 245
act_GL2 252
mf1_cusptonew 252
mfbd 252
mfkdimsum 252
mfstabitermod 252
c_F2TH4 266
mf2basis 266
mf2init_Nkchi 266
mfEH 266
mfEHmat 266
mfperiod_prelim 266
bdexpandall 287
dim_sum 287
mfspace 287
mfspace_i 287
matTpmod 301
mfcoef 301
unpack23 308
mfcuspisregular 315
RgX_embedall 322
divisorsNF 322
nf_primpart 329
van_embedall 329
mfeigenbasis 336
RgC_embedall 343
c_mfEH 343
mf2gaexpansion 343
mfheckemat_p 343
mfthetaexpansion 343
mfthetamultiplier 343
evalcusp 350
mfheckemat_mfcoefs 350
mfbasis 357
cusp_canon 364
cmp_ord 371
mfeisenstein 371
mfeisenstein_i 371
RgXn_negpow 375
_RgXQM_mul 378
matdeflate 385
mfEk 392
moreorders 392
RgV_div_RgXn 399
getcolsgen 406
MF_set_space 413
seenD 413
vanembed 420
mfsturmmf 427
pol_red 427
vecmflineardiv0 427
mf_get_r 441
mfmultheta 448
mftonew_i 448
mfak_i 455
mfmul 455
get_mf_F 462
Tp 469
eta3_ZXn 469
mf1olddimsum 469
c_delta 476
mf1cuspdim 476
mflinear_i 476
vecmflineardiv_linear 476
cache_reset 503
desc_mfeisen 504
mftobasisES 511
cache_set 517
cusp2mat 518
mf_setfield 518
polabstorel 518
RgX_embed2 532
sqrtm3modN 539
fs_get_bitprec 574
MF_get_fields 581
QabM_Minv 581
mfeisensteinspaceinit 581
mfgetembed 581
mkM 581
QabM_to_Flm 595
mf1dimmod 595
mfcharinv_i 595
sqrtm1modN 595
mfEMPTYall 616
same_cyc 616
charsmodN 623
desc 623
mfeisensteinspaceinit_i 623
mfvec_first_cusp 623
mflineardivtomat 630
c_mul 637
chicompatfix 651
chicompatlift 651
mfcoefsser 665
MFcusp_get_vMjd 672
mflinear_bhn 686
mfmatsermul 686
mf2dimwt32 693
mfparams 700
checkfs_i 721
mfbd_E2 721
grootsof1_CHI 742
MF_get_newforms 770
fs_get_vES 777
mftreatdihedral 784
mfTheta 798
mfsturm 798
vecembed1 798
c_div 833
c_div_i 833
sertovecslice 833
c_Ek 840
mfclean2 840
mffulldim 840
intAoo 861
getembed 889
mfnewmathecke_p 889
search_from_split 889
const_mat 896
RgX_embed1 910
mfthetaancreate 924
mfcuspcanon_width 945
mftraceform_new 945
mfdescribe 966
mfchilift 980
mf_eisendec 994
mfeisensteindec 994
mftobasis 994
tobasis 994
QabM_pseudoinv 1015
mfEMPTY 1022
vecGalois 1022
mflinear 1036
unpack0 1043
c_hecke 1050
mf1newdimsum 1050
mfgaexpansion_i 1057
shift_M 1057
cusp_AC 1064
mfspclean 1064
sort_by_dim 1064
split_starting_space 1064
mfslashexpansion 1071
mfperiod_prelim_double 1085
ZabM_pseudoinv_i 1092
mf_same_CHI 1092
mfcharmul 1106
GL2toSL2 1127
lfuntag 1127
fs_get_vE 1134
mf_same_k 1134
mfmatsermul_Fl 1141
split_i 1141
update_Mj 1169
zncharsG 1169
ZM_mulS 1190
vecpush 1204
vecmflinear 1211
QabM_init 1218
znstar_get_expo 1246
Minv_RgM_mul 1274
QabM_pseudoinv_i 1274
RgX_act_S 1281
fs_get_MF 1288
findbestsplit 1316
mfistrivial 1316
vecpermute_inplace 1330
MF_set_new 1337
vecpermute_partial 1351
mftobasis_i 1372
mfeisensteinbasis_i 1386
mfdim_Nkchi 1393
mfeisensteinbasis 1414
fs_get_pols 1463
split_ii 1463
mf_normalize 1470
QabX_to_Flx 1484
mynffactor 1491
bestapprnfrel 1519
mkF2bd 1519
desc_i 1540
QabM_ker 1561
condC 1568
bern_init 1589
mfchisimpl 1596
RgX_embed 1645
fs_get_expan 1694
mfvecembed 1694
mf1chars 1729
mfgaexpansion 1757
check_SL2Z 1764
getcols 1764
mflinear_strip 1806
mf1_pre 1834
pindices 1834
MF_get_basis 1841
pari_close_mf 1855
c_newtrace 1897
c_theta 1911
fs_get_cosets 1974
charLFwt1_Fl 1988
mflinear_linear 2016
mflineardiv_linear 2016
RgV_normalize 2065
mfvectomat 2093
mf1dimsum 2114
mfdiv_val 2163
c_linear_bhn 2198
update_factor_cache 2256
mfqk 2282
getnlim2 2289
getw1w2 2289
act_S 2310
ZM_mulTi 2352
get_vDIH 2373
mfinit 2387
sertocol 2387
Tpmod 2408
RgM_Minv_mul 2436
hecke_i 2527
abundant 2548
RgX_act_typ 2562
toRgX0 2562
mfcoefs_mf 2576
normalizeapprox 2590
charLFwt1 2604
mfeisenstein2all 2604
anextract 2618
mfcharistrivial 2653
mfinit_Nndkchi 2688
non_residues 2702
chicompat 2723
taglinear 2765
mfchiadjust 2821
charLFwtk_Fl 2828
check_M2Z 2891
mfkdims 2961
c_linear 2975
mynumdivu 2975
mfdim0all 3010
mfskcx 3178
mfinitcusp 3199
vecmfNK 3227
mfsturmNgk 3248
mfchars 3255
RgV_mul_RgXn 3353
mfinit_i 3353
lamCO 3360
mfcuspdim 3381
dim22 3696
zeta2CO 3696
checkMF 3808
mfcoefs 3857
mfdihedralcusp 3857
mfsamefield 3906
mf1init 3969
ok_bhn_linear 3976
fmt_dim 3983
gmfcharno 3983
mfcleanCHI 4025
get_mfchar 4039
mf1cuspdimsum 4123
mf1cuspdimall 4144
charLFwtk 4284
getcols_i 4312
mfeisenstein2_0_Fl 4312
mfeisenstein2pure_Fl 4312
MF_get_E 4368
ZM_mulT 4424
mfsturm_mf 4522
RgV_to_ser_full 4655
f00 4669
MF_get_Minv 4746
mfchargalois 4872
Rg_embedall_i 4907
mfclean 4977
mfinit_Nkchi 4984
RgV_shift 4991
vecj_expand 4991
mfeisenstein2pure 5096
mfalchi2 5264
mfcharmulcxeval 5264
mfeisensteingacx 5264
mfgatogap 5264
mfchardiv 5341
mfchardiv_i 5341
expandbd 5355
MF_get_dim 5467
c_dihedral 5579
mkeisen 5691
mfdim 5719
improve 5740
mfchartrivial 5768
nf2_get_conj 5768
f00_i 5894
space_is_cusp 5978
bdexpand 6174
char2 6447
taglinear_i 6727
mffindrootof1 6741
MF_get_M 6762
bhnmat_extend_nocache 6867
MF_get_k 6881
expandbd_Fl 6895
tracerel_z 6944
mubeta 6993
mfdihedralcuspdim 7105
MFnew_get_vj 7168
Minv_RgC_mul 7266
mf1cuspdim_i 7315
mfbdall 7343
c_Bd 7462
ceilA1 7595
get_badj 7595
hash_eisengacx 7672
mkMinv 7686
badchar 7791
get_gb 7805
mfeisenstein2_0 7826
Rg_approx 8120
m1pk 8148
mfolddim_i 8351
MF_get_CHI 8421
c_deflate 8778
SL2_div_D 8785
mftocoset_iD 8785
mftocoset_i 8799
mfZC_width 8813
mfdihedralnew 8820
bhnmat_extend 9009
mfcharcxeval 9065
mftocol 9065
parse_vecj 9156
checkCHI 9184
checkNK2 9191
cache_delete 9275
dihan_bnf 9331
nu3 10157
tag 10206
Wcoshall 10304
Wint 10304
Wparams 10304
MF_get_Mindex 10360
QabM_indexrank 10381
mfcharmuleval 10528
c_mfeisen 11256
mf1basis 11284
coset_complete 11298
mfconreyminimize 12138
mkmf 12299
get_DIH 12355
mfcharinduce 13048
init_cachenew 13139
Rg_embed2 13328
dihan 13573
mfcharno 13671
gausssumcx 13706
mfcharcxinit 13706
charistotallyeven 13846
mfchareval 14203
MF_get_gk 14294
MF_get_space 14504
CHIvec_CHI 14980
mkNK 15001
mfnewinit 15575
mfnewdim 15820
get_bnrconreyN 15862
tag3 16072
QabV_tracerel 16093
mfdihedralnewdim 16149
wt1empty 16632
dbg_cachenew 17150
nu2 17521
hecke_data 17535
checkmf_i 18536
checkMF_i 18585
append_dihedral 18718
mf_get_NK 18760
MF_get_N 18970
MF_get_gN 20034
MF_get_S 21007
mybezout 21056
mfsturmNk 21693
sigchi 24192
mf_get_field 24206
mfhecke_i 24605
mfdihedralnew_i 24969
cyc_normalize_zv 26810
mklvchi 26810
Galois 30331
bhn_newtrace 32438
initnewtrace_i 32571
inittrconj 32571
mfcharinit 32578
initnewtrace 32676
mfnewzerodata 32676
newtrace_DATA 33593
newtrace_stripped 33593
reset_cachenew 33593
mfdihedralcommon 33698
cmp_coset 33775
Qab_trace_init 34013
bnrchartwist2conrey 34489
conreydenormalize 34489
CHIvec_ord 34853
mfbd_i 35805
tag2 36120
phipart 36869
mkgNK 36939
dihan_bnr 37758
mfcoefs_i 37828
QabC_to_Flc 38164
mysumdivku 38311
nuinf 38864
mf2dimwt12 41363
newd_params 41391
di_N 42042
induceN 42364
A4 43232
mfcuspdim_i 43309
mf2dim_Nkchi 43463
A21 43673
A22 43673
checkmf2 43729
A3 44121
mfdim_Nndkchi 44744
is_cond 49364
CHIvec_parity 53907
sigchi2_Fl 55335
mfrhopol_eval 56617
mf_get_CHI 61824
tagparams 62580
VS 63742
Wint2 63742
mymoebiusu 65709
mfcharparity 68362
mf_get_k 71638
Unelson 71932
cmp_small_priority 73381
WfromZ 74046
mfchartoprimitive 75999
tracerel_i 80255
RgC_Bd_expand 82425
bhn_parse 82425
Miyake 84028
Rg_embed1 84658
tracerelz 84756
hclassno6u_no_cache 86913
heckenewtrace 88634
Rg_embedall 95000
mfembed 100663
mfdiheval 107611
myeulerphiu 109368
char_normalize_zv 118517
mf_get_N 118720
inittrace 126833
mkbez 126833
mkgcd 126833
mkmup 126833
mksqr 126833
mf_get_gk 138838
colnewtrace 179165
mf_get_gN 183820
Qab_zeta 200242
trconj 204061
Qab_Czeta_Fl 221067
mf_get_type 231413
fix_pol 234178
tracerel 253855
get_PSI 299775
mfcharmul_i 301861
induce 307846
div_restrict 322077
A1 358582
mfrhopol 361541
mfcharGL 373702
mypsiu 393127
mfcharconductor 397278
vchip_lift 410711
CHIvec_expo 420490
mycharexpo 420490
mfcharpol 563248
sigchi2 593488
fg1g2n 594013
sigchi2_dec 648823
gmfcharmodulus 1558137
mfcharmodulus 1558137
newt_params 1873036
vchip_polmod 1911711
Qab_Czeta 2189222
hclassno6u 2427669
znchareval_i 2507827
mfnewchkzero 2594443
mfnewtrace_i 2594443
mfrhopol_u_eval 3251065
mfcharevalord 3562440
mfcharorder 3683022
gmfcharorder 3720801
mfnewtracecache 4495904
corediscs_fact 5769468
TA1 6385657
TA2 6385657
TA3 6385657
TA4 6385657
mfcusptrace_i 6385657
vchip_mod 6437523
mfcusptracecache 7645307
mubeta2 7645307
eiscnm 7645316
Qab_to_Fl 8534960
myh 10627729
lamsig 13779422
mutglistall 15192258
mychareval 23328522
CHIvec_val 23338273
CHIvec_N 23980950
auxsum 33165215
myfactoru 33626594
mydivisorsu 68967613
hclassno6u_i 156422363
mutg1 161226393
mfrhopowsimp 168009327
mycoredisc2neg 176418754
vchip_FC 279392507
myugcd 283118101
mychicgcd 402268100
cache_get 448503263

Generated by: LCOV version 1.16