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 29395-ef22f77854) Lines: 1442 1584 91.0 %
Date: 2024-06-15 09:03:40 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
F2v_copy 4074
gchar_get_modP 4095
nf_get_r2 4231
identity_ZV 4249
gchar_get_u0 4272
nf_get_diff 4444
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 6636
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
gal_get_gen 8638
prec2ndec 9750
zeropadic_shallow 10339
vectrunc_append_batch 10864
gchar_get_Ui 10969
vec_shorten 11543
closure_get_dbg 12865
R_abs_shallow 13083
gchar_get_nfprec 13419
zx_renormalize 14049
ZX_equal1 14136
gener_Fq_local 14581
pari_err_TYPE 14796
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 19257
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
ndec2prec 31914
gal_get_roots 32319
gchar_get_basis 32639
F2xqX_div 33243
bid_get_arch 35090
closure_get_text 35546
matpascal 35812
gal_get_pol 35875
gchar_get_S 36866
gchar_get_ns 36866
gchar_get_nc 37132
F2v_to_F2x 37554
FqX_rem 37743
FqX_div 39757
ndec2nlong 40170
mkcols 40411
pari_calloc 45536
absfrac_shallow 46738
znstar_get_Ui 46788
FqX_degfact 47786
vecmoduu 49784
vecsmall_ei 50058
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 60023
err_get_num 61010
RgX_is_rational 66833
FqX_sub 68607
mkquad 69132
quadnorm 69860
FqX_sqr 71855
FqX_div_by_X_x 71939
vecsmall_shorten 72475
bid_get_ideal 78295
gal_get_group 79464
mkcol3 87642
zeromat 90515
cyclic_perm 99547
mkcol4 102935
mkmoo 103548
zv_to_zx 104139
gtou 107447
RgXQX_rem 107489
rnf_get_map 107826
RgV_isin 109073
RgV_isin_i 109073
Fq_to_FpXQ 110255
mkmatcopy 112283
mkvec2copy 119998
mkveccopy 121947
FqX_add 127694
rowslicepermute 129692
Flx_constant 137779
idealred 138542
zeroser 138712
RgV_is_QV 139421
bnr_get_mod 140823
FqX_factor 141254
get_FpXQX_mod 146583
FlxqX_div_pre 165312
Q_abs_shallow 169277
znstar_get_U 176051
vecsmall_prepend 184938
gchar_get_DLdata 188468
locs_get_Lsprk 191695
F2m_copy 195740
rnf_get_nfpol 199417
mkoo 200962
get_F2xqX_degree 201663
gchar_get_bnf 203105
rowcopy 204988
mkmat22s 206822
locs_get_m_infty 207235
mkvec2s 213244
affgr 220528
rnf_get_polabs 227315
zero_Flm_copy 231827
mkcol6 232050
nf_get_G 238311
affc_fixlg 239487
gchar_get_nf 241405
ellR_get_prec 249641
Fp_halve 252540
znstar_get_cyc 261920
FqXn_mul 263403
bnf_get_tuN 264976
get_FlxqX_var 265620
gchar_get_zm 279435
bnf_get_fu_nocheck 287962
bnf_get_tuU 290311
vec_prepend 300756
bnr_get_no 314407
inf_get_sign 316828
get_FlxqX_degree 318850
ZM_hnfrem 326510
upr_norm 343930
RgX_renormalize 347497
vecsplice 354182
RgX_is_QX 362074
FqX_mul 367892
ellR_get_sign 370840
get_F2xqX_var 376978
cxtoreal 384525
coltrunc_init 391664
abgrp_get_no 391804
addmuliu 405970
perm_conj 418299
FqX_Fq_mul 426825
FqX_extgcd 440614
nf_get_disc 452818
Z_issquare 458589
rnf_get_nf 459753
precdbl 472929
RgX_shift_inplace 480471
RgX_shift_inplace_init 480471
zv_to_ZV 500491
vecsmall_to_vec 509052
nf_get_sign 516144
gdivsg 522389
mkvec3s 524441
ZM_ZV_mod 538641
FqX_Fp_mul 565085
prec2nbits_mul 570811
gcmpgs 616064
RgC_fpnorml2 616895
mkvecsmall5 669635
FqX_gcd 692594
vecreverse 697018
mkrfrac 698138
FqX_deriv 723681
logint 747840
row 759806
rnf_get_absdegree 768035
Flx_lead 773346
ellff_get_a4a6 800254
zero_F2m_copy 833998
zeropadic 846163
FpXX_renormalize 853096
sstoQ 869113
gmin_shallow 893264
vecsmall_max 927805
ZXQ_sqr 959545
cgetc 981716
gerepilemany 983994
pr_norm 1000401
polx_F2x 1059038
Flx_mulu 1086049
RgV_isscalar 1140309
nf_get_varn 1163571
Fp_invsafe 1181920
mkfracss 1209507
rnf_get_degree 1224663
ellinf 1232350
Rg_col_ei 1243332
bnr_get_nf 1259702
gen_I 1266751
bnf_get_sunits 1278257
ell_get_j 1296342
guncloneNULL_deep 1311163
zero_Flx 1334694
bid_get_mod 1386659
nf_get_roots 1398945
constant_coeff 1433064
vecsmall_concat 1481027
rnf_get_pol 1486912
F2x_div 1515805
gsubgs 1541969
F2m_flip 1556957
F2v_flip 1556957
F2x_flip 1556957
bnf_get_gen 1579650
Fp_div 1614030
nf_get_roundG 1618838
abgrp_get_gen 1653395
vec_ei 1699621
ulogint 1709224
F3m_coeff 1807422
killblock 1850078
is_vec_t 1884543
modpr_get_p 1887276
ellnf_get_nf 1888740
Fp_divu 1906557
get_F2x_degree 1933582
bnr_get_bid 1936770
Flx_div 1985541
bid_get_MOD 1990523
bid_get_sprk 1991250
bid_get_fact2 2025049
ellff_get_field 2037203
pari_realloc_ip 2063079
ell_get_b4 2135394
ZXQ_mul 2139891
zv_copy 2157556
gerepilecoeffs 2185824
bid_get_archp 2217411
pol_xn 2222600
bid_get_fact 2313513
Flv_copy 2384827
bnr_get_cyc 2396010
vecslicepermute 2423334
mul_content 2462111
get_F2x_mod 2517994
cyc_get_expo 2521255
get_F2x_var 2533610
RgX_coeff 2543693
ell_get_b8 2608971
hash_str 2641954
perm_inv 2671832
zero_Flm 2684438
pol_x 2688522
bnf_get_logfu 2701982
gisdouble 2713436
sqrtnr 2725420
bnr_get_clgp 2728015
identity_perm 2738579
identity_zv 2762915
mkpolmod 2813515
znstar_get_pe 2819363
F2x_equal1 2869989
RgX_is_monomial 2943669
ell_get_b6 3054676
bit_accuracy_mul 3177770
ZV_to_zv 3189434
znstar_get_conreygen 3219560
bid_get_U 3378236
Fq_red 3413165
vec_append 3426728
get_FpX_mod 3473581
bnf_get_cyc 3508921
zero_F2v 3516101
nf_get_index 3569507
bnr_get_bnf 3631902
mulsubii 3800353
vecsmall_copy 3943421
pol1_F2x 3967220
sqrfrac 4008161
vec_to_vecsmall 4013243
vecsmall_append 4061518
nf_get_zkprimpart 4080282
nf_get_zkden 4126688
mkcol2s 4414032
pol_1 4466014
F2x_equal 4502454
mkmat 4575015
checkell_i 4682597
FpXQX_renormalize 4702888
mkfraccopy 4736590
qfb_disc3 4777536
is_rational_t 5028738
pari_stack_delete 5091426
bnf_get_clgp 5097111
bid_get_cyc 5361253
FpX_div 5412746
bid_get_grp 5415159
ell_get_b2 5432040
pari_stack_init 5520650
col_ei 5624831
ell_get_a2 5716413
get_FpX_degree 5820440
isintm1 5944931
Flm_copy 6179684
ell_get_a4 6525926
mkvec4 6553891
sqrti 6567135
ZM_lll 6856972
RgX_div 6917089
ell_get_a3 6922286
veclast 6925651
ZX_is_monic 6952784
get_FpX_var 7019117
vecsmall_lexcmp 7073230
RgX_gtofp 7088986
ell_get_a1 7133479
znstar_get_faN 7205872
ZV_ZV_mod 7319586
Q_abs 7513942
F2m_coeff 7544055
zc_to_ZC 7673664
vecsmall_to_col 7687760
znstar_get_conreycyc 7818252
Flm_row 7818552
ell_get_a6 7959540
ell_get_c4 8020847
RgM_gtofp 8154558
mkintmod 8201382
ell_get_c6 8849717
cxtofp 8933231
const_col 9165808
RgM_dimensions 9243839
bnf_get_nf 9424640
ismpzero 9600597
is_intreal_t 9600698
mkcol 9802638
nf_get_invzk 9831076
Flx_equal1 9975483
ser_isexactzero 10106625
mul_denom 10331646
ZC_hnfrem 10630319
Fp_addmul 11275251
ell_get_disc 11280160
ell_get_type 11379379
pr_get_gen 11411653
abgrp_get_cyc 11548223
vectrunc_init 11706910
F2x_clear 11707575
F2v_clear 11707581
nbits2nlong 12170321
closure_get_frame 12958655
pol0_F2x 13084880
gmax_shallow 13509610
Fp_center_i 13555400
rowpermute 13855101
zeromatcopy 13877295
modpr_get_T 13884908
mkvec5 14160448
RgX_is_ZX 14593096
zeropol 14735437
vectrunc_append 15229594
mkvecsmall4 15283582
pr_get_e 15510321
matslice 16016915
isint1 16092045
pr_is_inert 16409313
normalize_frac 16517204
cxcompotor 17898241
hash_str_len 18160840
qfb_disc 18474829
const_vecsmall 18633208
vecpermute 18757984
shallowcopy 19514359
gerepileall 19532932
gmulgs 20397448
RgM_shallowcopy 20542605
Fp_double 21082667
Flx_div_pre 21260655
nf_get_r1 22515552
nf_get_M 22662588
ZV_isscalar 24490815
pr_get_f 25207863
Fp_inv 25501410
get_Flx_mod 25858081
zerovec 25907413
RgX_equal_var 26749178
mkqfb 27654437
Fp_neg 28267298
RgV_is_ZV 31331742
mkmat2 31658951
modpr_get_pr 32021497
const_vec 32261399
submulii 32717233
mkfrac 33052015
RgC_gtofp 33558346
znstar_get_N 33820236
pol_0 35201292
polx_Flx 35881349
lincombii 36920652
zero_zv 36968622
powii 37985605
closure_is_variadic 40018671
absfrac 43987922
ell_is_inf 47570062
pr_get_tau 47889914
guncloneNULL 49129337
mkmat22 50565581
pol1_Flx 55345253
addmuliu_inplace 59160087
qfb_is_qfi 59611675
submuliu_inplace 59664487
F2x_copy 60084505
gtodouble 60251912
zero_Flv 60646394
is_real_t 62699436
QV_isscalar 63373038
Fp_sqr 64122424
both_odd 66333205
get_Flx_var 67355864
mkvec 67831510
Fp_mulu 68785292
vecsmallpermute 74200462
Fp_center 75154378
rowslice 75618858
perm_mul 76192337
gc_all 79464494
sqrtr 79680274
nf_get_degree 80177557
Fp_red 85539401
get_Flx_degree 85728117
gtos 85757639
mkcomplex 89861686
dbllog2r 90494054
pr_get_p 91249167
cxnorm 91907254
mkvecsmall3 94459638
is_noncalc_t 94578731
pol0_Flx 98840707
vecsmalltrunc_append 99923164
F2v_set 101269630
RgX_copy 103032909
prec2nbits 104394447
nf_get_pol 106065088
vecsmall_prefixcmp 108088071
mkvec3 116833480
cgiv 117864362
zerocol 118660049
nchar2nlong 119087623
F2x_renormalize 119271282
gaddgs 120747446
gmulgu 124149795
mkvecsmall 125979529
F2x_set 127478757
Fp_sub 135875475
equalim1 138649355
bit_prec 141172714
FpX_renormalize 143468752
ZX_renormalize 149669408
nbrows 151740601
mkcol2 154278990
uutoQ 158054726
leading_coeff 162682098
Fp_add 170515629
Flx_copy 171338829
Fp_mul 177109166
mkvec2 179297467
nbits2prec 185370296
vecsmalltrunc_init 187133385
gerepilecopy 204209387
mkvecsmall2 221292846
gtofp 250407720
is_universal_constant 290414102
lg_increase 310972525
closure_get_data 311917297
closure_get_oper 311936979
closure_codestr 311949544
is_scalar_t 319993567
lgcols 337878441
closure_arity 360603332
bin_copy 448820356
pari_free 461954511
leafcopy_avma 531509971
is_bigint 554915745
vecslice 589946738
pari_stack_new 596285269
is_matvec_t 601777473
F2v_coeff 645497681
F2x_coeff 652096078
pari_stack_alloc 689197980
pari_malloc 692227053
pari_stack_base 694242661
GENbinbase 871569607
gerepileuptoleaf 1065115330
equali1 1164616312
nbits2extraprec 1473917080
gerepileupto 1777254565
odd 2018942342
is_pm1 2167942061
lgpol 2507604879
bit_accuracy 2762076206
isintzero 2816270793
gerepileuptoint 3876179910
prec2lg 4433656157
is_const_t 4753214331
degpol 4944497845
icopy_avma 7656364826
isonstack 7770110027
remsBIL 7914897181
divsBIL 8000721235
is_recursive_t 8185300589

Generated by: LCOV version 1.16