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 - headers - pariinl.h (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29450-bb9f460d63) Lines: 1442 1584 91.0 %
Date: 2024-07-14 09:03:25 Functions: 646 717 90.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2m_clear 0
F2xX_shift 0
F3m_copy 0
F3m_set 0
FlxqX_div 0
Flxq_add 0
Flxq_sub 0
FpV_FpC_mul 0
FpXQ_add 0
FpXQ_sub 0
FqXQ_add 0
FqXQ_div 0
FqXQ_inv 0
FqXQ_invsafe 0
FqXQ_pow 0
FqXQ_sqr 0
FqXQ_sub 0
FqX_divrem 0
FqX_halfgcd 0
FqX_integ 0
FqXn_exp 0
FqXn_sqr 0
R_abs 0
RgX_isscalar 0
bid_get_gen_nocheck 0
bid_get_no 0
cbrtr 0
cbrtr_abs 0
closure_get_code 0
gabsz 0
gaddz 0
gchar_get_U 0
gchar_get_hnf 0
gdiventz 0
gdivz 0
gmaxsg 0
gminsg 0
gmodz 0
gmul2nz 0
gmulz 0
gnegz 0
gshiftz 0
gsubz 0
inv_content 0
is_qfb_t 0
mkcol4s 0
mkerr 0
mkmat4 0
mkmat5 0
mpcosz 0
mpexpz 0
mplogz 0
mpsinz 0
pari_err_FILE 0
pari_err_MAXPRIME 0
pari_err_PACKAGE 0
polx_zx 0
random_Fq 0
truecoef 0
trunc_safe 0
vec_setconst 0
vecmodii 0
vecsmall_coincidence 0
zero_F2m 0
zero_zm 0
zero_zx 0
zm_copy 0
zm_row 0
zm_to_zxV 0
zx_shift 0
zx_to_zv 0
FqX_ddf 7
FqX_factor_squarefree 7
mkrfraccopy 14
pari_err_BUG 14
znstar_get_no 14
RgM_gtomp 21
mkvec4s 21
pari_err_CONSTPOL 21
vecsmall_indexmax 21
vecsmall_indexmin 21
pari_err_FILEDESC 36
F2v_ei 42
RgV_gtofp 56
pari_err_IRREDPOL 63
pari_err_ROOTS0 63
bnr_get_gen_nocheck 70
pari_err_COPRIME 84
pari_err_SQRTN 84
vecsmall_isin 84
vecsmall_pack 84
gal_get_e 91
Z_ispower 98
pari_err_FLAG 98
pari_err_PRIME 98
mkcol5 101
rnf_get_index 105
ellnf_get_bnf 126
RgX_to_RgV 140
pari_err_OVERFLOW 156
mkvecs 161
FqX_to_mod 175
rowsplice 210
nbits2ndec 214
pari_err_COMPONENT 214
pari_err_PREC 238
pari_err_PRIORITY 245
zm_transpose 266
err_get_compo 273
rnf_get_disc 280
pol_xnall 294
mkcol3s 308
ellQp_get_prec 315
gchar_get_nfree 322
gchar_get_ntors 322
pari_err_VAR 364
polxn_Flx 371
sturm 385
get_F2xqX_mod 399
pari_err_OP 406
vecsmall_lengthen 505
pari_err_IMPL 518
RgC_gtomp 574
rnf_get_varn 574
gchar_get_r2 623
gchar_set_HUUi 623
gchar_set_nalg 623
gchar_set_nfree 623
gchar_set_ntors 623
bnf_get_reg 641
F2m_set 686
pari_err_DIM 690
perm_sqr 728
Rg_to_Fq 756
rnf_get_k 805
rnf_get_idealdisc 819
rnf_get_alpha 903
gchar_set_m0 950
row_i 987
RgM_minor 1036
quad_disc 1078
ellQp_get_p 1134
gchar_copy_precs 1202
gchar_set_prec 1202
rnf_get_invzk 1225
locs_get_Lgenfil 1260
locs_get_famod 1260
FqX_powu 1295
pari_err_MODULUS 1316
zero_F2x 1350
vecsmall_min 1442
ellQp_get_zero 1484
powIs 1561
gchar_set_basis 1573
gchar_set_cyc 1573
gchar_get_sfu 1749
gchar_set_evalprec 1785
mkintmodu 1806
gchar_get_nm 1841
pari_realloc 1841
nf_get_zk 1848
RgXQX_div 1904
rnf_get_ramified_primes 1904
gchar_get_nalg 2042
gchar_set_nf 2078
gchar_set_u0 2093
vecreverse_inplace 2570
pari_err_DOMAIN 2736
gchar_set_nfprec 2951
vecsmall_reverse 3003
vecsmall_to_vec_inplace 3262
gchar_get_m0 3322
rnf_get_nfvarn 3388
idealchineseinit 3415
pari_err_TYPE2 3500
get_FpXQX_degree 3686
rnf_get_zk 3885
gchar_get_evalprec 4011
gchar_get_modP 4095
nf_get_r2 4147
identity_ZV 4249
gchar_get_u0 4272
nf_get_diff 4444
F2v_copy 4487
FqX_normalize 4487
FpXQX_div 4546
rnf_get_nfzk 4760
pari_stack_pushp 5704
gval 5782
gal_get_p 6006
FqX_get_red 6090
FqXn_expint 6590
gal_get_orders 6629
is_extscalar_t 6946
FqXn_inv 7126
FqX_roots 7273
submuliu 7693
bnr_get_gen 7847
get_FlxqX_mod 8040
cgetalloc 8171
gchar_get_mod 8225
locs_get_mod 8225
ndec2nbits 8256
bnf_get_no 8379
prec2ndec 9750
vectrunc_append_batch 10864
gchar_get_Ui 10969
vec_shorten 11542
closure_get_dbg 12865
R_abs_shallow 13083
gchar_get_nfprec 13419
zx_renormalize 14049
ZX_equal1 14133
gener_Fq_local 14581
pari_err_TYPE 14796
gal_get_gen 14889
zeropadic_shallow 15337
znstar_get_gen 16150
gchar_get_cyc 16168
mkmat3 16777
gchar_get_r1 17416
rnf_get_nfdegree 17493
Fp_muls 17780
gchar_get_prec 18732
vec_lengthen 18927
Qtoss 19313
FqX_halve 19411
pari_err_INV 19997
FpXY_Fq_evaly 20587
RgM_fpnorml2 21647
FqX_mulu 21942
nf_get_Tr 22082
gtomp 22428
FqXQ_mul 22766
ZV_dvd 23485
gal_get_mod 23660
zerovec_block 24429
FqX_neg 24956
FqX_red 25354
bnf_get_fu 25838
nfV_to_scalar_or_alg 26279
gal_get_den 27454
gal_get_invvdm 27461
gequalgs 29176
mkcolcopy 29494
gal_get_roots 32319
gchar_get_basis 32639
ndec2prec 32726
F2xqX_div 33243
bid_get_arch 35091
closure_get_text 35546
matpascal 35812
gal_get_pol 35875
gchar_get_S 36866
gchar_get_ns 36866
gchar_get_nc 37132
FqX_rem 37743
F2v_to_F2x 37997
FqX_div 39758
mkcols 40411
ndec2nlong 40982
pari_calloc 45557
absfrac_shallow 46738
znstar_get_Ui 46788
FqX_degfact 47786
vecmoduu 49784
vecsmall_ei 50057
gchar_get_loccyc 50348
bid_get_sarch 51226
get_FpXQX_var 51837
locs_get_cyc 51956
bid_get_gen 53326
div_content 56394
nf_get_ramified_primes 58050
RgX_fpnorml2 60020
err_get_num 61010
RgX_is_rational 66835
FqX_sub 68607
mkquad 69132
quadnorm 69860
FqX_sqr 71855
FqX_div_by_X_x 71939
vecsmall_shorten 72472
bid_get_ideal 78295
gal_get_group 79519
mkcol3 87642
zeromat 90515
cyclic_perm 99547
mkcol4 102935
mkmoo 103551
zv_to_zx 104146
gtou 107432
RgXQX_rem 107489
rnf_get_map 107826
RgV_isin 109073
RgV_isin_i 109073
Fq_to_FpXQ 110255
mkmatcopy 112279
mkvec2copy 119999
mkveccopy 121947
FqX_add 127694
rowslicepermute 129646
Flx_constant 137774
idealred 138543
zeroser 138796
RgV_is_QV 139422
bnr_get_mod 140826
FqX_factor 141254
get_FpXQX_mod 146583
FlxqX_div_pre 165313
Q_abs_shallow 169253
znstar_get_U 176051
vecsmall_prepend 184938
gchar_get_DLdata 188468
locs_get_Lsprk 191695
F2m_copy 195756
rnf_get_nfpol 199417
mkoo 200964
get_F2xqX_degree 201663
gchar_get_bnf 203105
rowcopy 204988
mkmat22s 206822
locs_get_m_infty 207235
mkvec2s 213251
affgr 220528
rnf_get_polabs 227315
zero_Flm_copy 231823
mkcol6 232050
nf_get_G 238306
affc_fixlg 239490
gchar_get_nf 241405
ellR_get_prec 249641
Fp_halve 252540
znstar_get_cyc 261920
FqXn_mul 263403
bnf_get_tuN 264981
get_FlxqX_var 265620
gchar_get_zm 279435
bnf_get_fu_nocheck 287953
bnf_get_tuU 290319
vec_prepend 300756
bnr_get_no 314409
inf_get_sign 316833
get_FlxqX_degree 318850
ZM_hnfrem 326475
upr_norm 343929
RgX_renormalize 347497
vecsplice 354178
RgX_is_QX 362075
FqX_mul 367891
ellR_get_sign 370840
get_F2xqX_var 376978
cxtoreal 384530
coltrunc_init 391664
abgrp_get_no 391806
addmuliu 404733
perm_conj 418299
FqX_Fq_mul 426833
FqX_extgcd 440613
nf_get_disc 452814
Z_issquare 458590
rnf_get_nf 459753
precdbl 472915
RgX_shift_inplace 480471
RgX_shift_inplace_init 480471
zv_to_ZV 500505
vecsmall_to_vec 509066
nf_get_sign 516228
gdivsg 522389
mkvec3s 524441
ZM_ZV_mod 538642
FqX_Fp_mul 565087
prec2nbits_mul 570820
gcmpgs 616064
RgC_fpnorml2 616884
mkvecsmall5 669630
FqX_gcd 692594
vecreverse 697018
mkrfrac 698138
FqX_deriv 723681
logint 747862
row 759809
rnf_get_absdegree 768035
Flx_lead 773071
ellff_get_a4a6 800255
zero_F2m_copy 833998
FpXX_renormalize 853110
zeropadic 855610
gmin_shallow 893398
vecsmall_max 927577
ZXQ_sqr 959331
cgetc 981720
gerepilemany 984010
pr_norm 1000378
sstoQ 1073513
polx_F2x 1076295
Flx_mulu 1086057
RgV_isscalar 1140310
nf_get_varn 1163584
Fp_invsafe 1181930
mkfracss 1209507
rnf_get_degree 1224663
ellinf 1232340
Rg_col_ei 1243384
bnr_get_nf 1259718
gen_I 1266768
bnf_get_sunits 1278266
ell_get_j 1296342
guncloneNULL_deep 1314573
zero_Flx 1334777
bid_get_mod 1386658
nf_get_roots 1398916
constant_coeff 1433065
vecsmall_concat 1440601
rnf_get_pol 1486912
F2m_flip 1556871
F2v_flip 1556871
F2x_flip 1556871
F2x_div 1560746
bnf_get_gen 1579638
Fp_div 1614028
nf_get_roundG 1618834
abgrp_get_gen 1653382
vec_ei 1699616
gsubgs 1712003
ulogint 1719179
F3m_coeff 1807404
killblock 1852227
modpr_get_p 1887277
ellnf_get_nf 1888756
Fp_divu 1898015
get_F2x_degree 1933536
bnr_get_bid 1936775
Flx_div 1985564
bid_get_MOD 1990539
bid_get_sprk 1991257
bid_get_fact2 2025066
ellff_get_field 2037204
pari_realloc_ip 2063505
ell_get_b4 2135394
ZXQ_mul 2139795
zv_copy 2157749
gerepilecoeffs 2185713
bid_get_archp 2217398
pol_xn 2222622
bid_get_fact 2313499
Flv_copy 2385012
bnr_get_cyc 2396062
vecslicepermute 2423628
mul_content 2462163
get_F2x_mod 2517971
cyc_get_expo 2521259
get_F2x_var 2533621
RgX_coeff 2543693
ell_get_b8 2608971
hash_str 2641954
zero_Flm 2684815
pol_x 2688541
bnf_get_logfu 2701996
gisdouble 2713328
perm_inv 2722327
sqrtnr 2725748
bnr_get_clgp 2728083
identity_perm 2738905
identity_zv 2763241
mkpolmod 2813523
znstar_get_pe 2819363
F2x_equal1 2869930
RgX_is_monomial 2943746
ell_get_b6 3054676
bit_accuracy_mul 3178118
ZV_to_zv 3189433
znstar_get_conreygen 3219560
bid_get_U 3378250
Fq_red 3413303
vec_append 3426711
get_FpX_mod 3473598
bnf_get_cyc 3508905
zero_F2v 3517679
nf_get_index 3569503
bnr_get_bnf 3631904
mulsubii 3799672
vecsmall_copy 3949710
pol1_F2x 3967584
sqrfrac 4009302
vec_to_vecsmall 4013238
vecsmall_append 4059681
nf_get_zkprimpart 4080298
nf_get_zkden 4126720
mkcol2s 4414032
pol_1 4465984
mkmat 4575131
checkell_i 4682629
F2x_equal 4693523
FpXQX_renormalize 4702997
mkfraccopy 4739627
qfb_disc3 4777696
is_rational_t 5028692
bnf_get_clgp 5097088
pari_stack_delete 5109675
bid_get_cyc 5361254
FpX_div 5412704
bid_get_grp 5415155
ell_get_b2 5432041
pari_stack_init 5521542
col_ei 5625007
ell_get_a2 5716413
get_FpX_degree 5776034
isintm1 5944851
Flm_copy 6179698
ell_get_a4 6525926
mkvec4 6553259
sqrti 6567447
ZM_lll 6857081
RgX_div 6917101
ell_get_a3 6922287
veclast 6925646
ZX_is_monic 6952458
get_FpX_var 7019256
RgX_gtofp 7088833
ell_get_a1 7133480
znstar_get_faN 7205872
vecsmall_lexcmp 7208565
ZV_ZV_mod 7319600
Q_abs 7513997
F2m_coeff 7545158
zc_to_ZC 7673628
vecsmall_to_col 7687725
znstar_get_conreycyc 7818252
Flm_row 7818601
ell_get_a6 7959540
ell_get_c4 8020878
RgM_gtofp 8154733
mkintmod 8201395
ell_get_c6 8849745
cxtofp 8932656
const_col 9165806
RgM_dimensions 9243747
bnf_get_nf 9424619
ismpzero 9600410
is_intreal_t 9600528
mkcol 9802617
nf_get_invzk 9831250
Flx_equal1 9975354
ser_isexactzero 10128087
mul_denom 10331697
ZC_hnfrem 10630182
ell_get_disc 11280194
Fp_addmul 11291677
ell_get_type 11379521
pr_get_gen 11411696
abgrp_get_cyc 11548273
vectrunc_init 11706141
F2v_clear 11711130
F2x_clear 11711130
nbits2nlong 12167870
closure_get_frame 12949443
pol0_F2x 13251011
gmax_shallow 13509610
Fp_center_i 13540595
rowpermute 13856045
zeromatcopy 13877414
modpr_get_T 13884910
mkvec5 14158440
RgX_is_ZX 14593229
zeropol 14735352
vectrunc_append 15229014
mkvecsmall4 15278570
pr_get_e 15510282
matslice 16018839
isint1 16092002
pr_is_inert 16409270
normalize_frac 16522871
cxcompotor 17897171
is_vec_t 18107081
hash_str_len 18162292
qfb_disc 18474871
const_vecsmall 18636699
vecpermute 18760600
shallowcopy 19514081
gerepileall 19533767
gmulgs 20403616
RgM_shallowcopy 20545044
Fp_double 21074763
Flx_div_pre 21247379
nf_get_r1 22515746
nf_get_M 22662881
ZV_isscalar 24490786
pr_get_f 25207533
get_Flx_mod 25858187
zerovec 25905368
RgX_equal_var 26748791
mkqfb 27654731
Fp_neg 28266159
RgV_is_ZV 31331749
mkmat2 31639073
modpr_get_pr 32021542
const_vec 32243999
submulii 32717233
mkfrac 33273889
RgC_gtofp 33558848
znstar_get_N 33820236
pol_0 35204343
polx_Flx 35876742
Fp_inv 36419644
lincombii 36914491
zero_zv 37003391
powii 37985616
closure_is_variadic 40009707
absfrac 44011735
ell_is_inf 47604656
pr_get_tau 47889607
guncloneNULL 48997094
mkmat22 50568072
pol1_Flx 55342464
addmuliu_inplace 59164478
qfb_is_qfi 59614183
submuliu_inplace 59666694
gtodouble 60251623
zero_Flv 60685183
F2x_copy 62570654
is_real_t 62699698
QV_isscalar 63373507
Fp_sqr 64337138
both_odd 66266503
get_Flx_var 67355366
mkvec 67835480
Fp_mulu 71589354
vecsmallpermute 74203233
Fp_red 74910082
Fp_center 75138481
rowslice 75631270
perm_mul 76382685
gc_all 79459475
sqrtr 79674759
nf_get_degree 80177792
gtos 85736900
get_Flx_degree 87159412
mkcomplex 89858532
dbllog2r 90494364
pr_get_p 91248747
cxnorm 91907229
mkvecsmall3 94450782
is_noncalc_t 94578050
pol0_Flx 98998009
vecsmalltrunc_append 99930139
F2v_set 101327650
RgX_copy 103032987
prec2nbits 104397466
nf_get_pol 106065070
vecsmall_prefixcmp 108088071
cgiv 117889937
zerocol 118660252
nchar2nlong 119082932
mkvec3 120926776
F2x_renormalize 122368546
gaddgs 123149572
gmulgu 124149795
mkvecsmall 126139999
F2x_set 128248573
Fp_sub 136468519
equalim1 138649536
bit_prec 141173100
FpX_renormalize 143333623
ZX_renormalize 149654329
nbrows 151743066
mkcol2 154274682
uutoQ 158054726
leading_coeff 162543435
Fp_add 170429510
Flx_copy 171320632
Fp_mul 177109551
mkvec2 179550914
nbits2prec 185372239
vecsmalltrunc_init 187681874
gerepilecopy 204173867
mkvecsmall2 221331129
gtofp 250411515
is_universal_constant 290374602
is_scalar_t 303869511
closure_get_data 311554229
closure_get_oper 311582740
closure_codestr 311619453
lg_increase 311977489
lgcols 337900008
closure_arity 360219570
bin_copy 448753886
pari_free 461893804
leafcopy_avma 531161471
is_bigint 554912176
vecslice 589947203
pari_stack_new 595999898
is_matvec_t 601483735
F2v_coeff 645694505
F2x_coeff 652295856
pari_stack_alloc 688871409
pari_malloc 692173187
pari_stack_base 693950889
GENbinbase 871470841
gerepileuptoleaf 1070640163
equali1 1164971137
nbits2extraprec 1473969699
gerepileupto 1788337094
odd 2019219367
is_pm1 2169508982
lgpol 2526276397
bit_accuracy 2775304549
isintzero 2811988461
gerepileuptoint 3876744900
prec2lg 4433818776
is_const_t 4728524856
degpol 4962210052
icopy_avma 7656465398
isonstack 7786606321
remsBIL 7923788091
divsBIL 8009688301
is_recursive_t 8229951115

Generated by: LCOV version 1.16