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.18.0 lcov report (development 29806-4d001396c7) Lines: 1437 1578 91.1 %
Date: 2024-12-22 09:08:28 Functions: 647 717 90.2 %
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
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
mkmat4 63
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
mkcol5 94
Z_ispower 98
pari_err_FLAG 98
pari_err_PRIME 98
rnf_get_index 105
ellnf_get_bnf 126
RgX_to_RgV 140
pari_err_OVERFLOW 156
mkvecs 161
FqX_to_mod 175
nbits2ndec 214
pari_err_COMPONENT 214
pari_err_PREC 238
pari_err_PRIORITY 245
zm_transpose 266
err_get_compo 273
rowsplice 273
pol_xnall 294
ellQp_get_prec 308
mkcol3s 315
rnf_get_disc 315
gchar_get_nfree 322
gchar_get_ntors 322
pari_err_VAR 371
polxn_Flx 371
sturm 385
get_F2xqX_mod 399
pari_err_OP 406
vecsmall_lengthen 505
pari_err_IMPL 511
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
pari_err_DIM 711
perm_sqr 728
Rg_to_Fq 756
F2m_set 798
gchar_set_m0 950
row_i 987
rnf_get_k 1015
RgM_minor 1036
rnf_get_alpha 1043
quad_disc 1078
rnf_get_idealdisc 1127
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 1463
powIs 1561
gchar_set_basis 1573
gchar_set_cyc 1573
gchar_get_sfu 1747
gchar_set_evalprec 1785
mkintmodu 1806
gchar_get_nm 1841
pari_realloc 1862
RgXQX_div 1904
gchar_get_nalg 2042
gchar_set_nf 2076
gchar_set_u0 2093
rnf_get_ramified_primes 2282
vecreverse_inplace 2570
pari_err_DOMAIN 2750
gchar_set_nfprec 2949
vecsmall_reverse 3052
vecsmall_to_vec_inplace 3304
gchar_get_m0 3320
pari_err_TYPE2 3493
get_FpXQX_degree 3686
rnf_get_nfvarn 3724
matpascal 3885
gchar_get_evalprec 4011
gchar_get_modP 4095
nf_get_r2 4140
rnf_get_zk 4263
gchar_get_u0 4266
identity_ZV 4333
nf_get_zk 4382
nf_get_diff 4458
F2v_copy 4487
idealchineseinit 4514
FpXQX_div 4546
FqX_normalize 4872
rnf_get_nfzk 5516
pari_stack_pushp 5767
gval 5796
gal_get_p 6041
FqX_get_red 6090
FqXn_expint 6590
gal_get_orders 6664
is_extscalar_t 6946
FqXn_inv 7126
FqX_roots 7273
submuliu 7693
bnr_get_gen 7847
get_FlxqX_mod 8047
cgetalloc 8213
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 11549
R_abs_shallow 13083
closure_get_dbg 13320
gchar_get_nfprec 13419
zx_renormalize 14049
gener_Fq_local 14602
pari_err_TYPE 15251
zeropadic_shallow 15358
gal_get_gen 15456
znstar_get_gen 16150
gchar_get_cyc 16168
ZX_equal1 16659
mkmat3 17001
gchar_get_r1 17416
Fp_muls 17780
gchar_get_prec 18732
vec_lengthen 18940
FqX_halve 19411
Qtoss 19838
rnf_get_nfdegree 19957
pari_err_INV 20004
FpXY_Fq_evaly 20587
FqX_mulu 21942
nf_get_Tr 22085
RgM_fpnorml2 22183
gtomp 22428
FqXQ_mul 22766
ZV_dvd 23485
gal_get_mod 23744
zerovec_block 24429
FqX_neg 24956
FqX_red 25354
bnf_get_fu 25851
nfV_to_scalar_or_alg 26293
gal_get_den 27587
gal_get_invvdm 27594
gequalgs 29176
gal_get_roots 32487
gchar_get_basis 32639
ndec2prec 32831
F2xqX_div 33243
mkcolcopy 33542
bid_get_arch 35098
gal_get_pol 36050
closure_get_text 36442
gchar_get_S 36864
gchar_get_ns 36864
gchar_get_nc 37130
FqX_rem 37743
F2v_to_F2x 38054
FqX_div 40284
mkcols 40411
ndec2nlong 41087
pari_calloc 46684
znstar_get_Ui 46788
absfrac_shallow 47277
FqX_degfact 47786
vecmoduu 49784
gchar_get_loccyc 50346
bid_get_sarch 51226
get_FpXQX_var 51837
locs_get_cyc 51954
bid_get_gen 53326
div_content 57584
nf_get_ramified_primes 59183
RgX_fpnorml2 60463
err_get_num 61899
RgX_is_rational 67462
FqX_sub 68607
mkquad 69118
quadnorm 69860
FqX_sqr 71855
FqX_div_by_X_x 71939
vecsmall_shorten 72570
bid_get_ideal 78295
gal_get_group 80135
mkcol3 88314
cyclic_perm 99911
gtou 102636
mkcol4 103320
zv_to_zx 104146
mkmoo 105720
zeromat 109004
RgV_isin 109213
RgV_isin_i 109213
Fq_to_FpXQ 110255
RgXQX_rem 114083
mkmatcopy 121084
mkveccopy 122507
mkvec2copy 123181
rnf_get_map 124543
FqX_add 127694
Flx_constant 137726
idealred 138598
zeroser 138698
RgV_is_QV 139962
bnr_get_mod 141040
FqX_factor 141723
get_FpXQX_mod 146583
FlxqX_div_pre 165537
Q_abs_shallow 171565
znstar_get_U 176051
rowslicepermute 182190
vecsmall_prepend 186771
gchar_get_DLdata 188468
locs_get_Lsprk 191695
F2m_copy 197769
get_F2xqX_degree 201663
gchar_get_bnf 203105
rowcopy 204988
locs_get_m_infty 207235
mkmat22s 207452
mkvec2s 219598
affgr 220535
mkcol6 232043
zero_Flm_copy 232050
ellR_get_prec 232652
rnf_get_nfpol 235999
affc_fixlg 239591
gchar_get_nf 241464
Fp_halve 252241
znstar_get_cyc 261948
FqXn_mul 263403
bnf_get_tuN 265151
get_FlxqX_var 265846
gchar_get_zm 279433
rnf_get_polabs 287409
bnf_get_fu_nocheck 288140
bnf_get_tuU 290491
vec_prepend 300926
nf_get_G 301288
bnr_get_no 314586
get_FlxqX_degree 319083
ZM_hnfrem 326807
upr_norm 343929
RgX_renormalize 347497
vecsplice 354715
FqX_mul 368585
ellR_get_sign 370819
get_F2xqX_var 376978
RgX_is_QX 378526
cxtoreal 384630
abgrp_get_no 391984
coltrunc_init 393680
addmuliu 404597
perm_conj 418299
FqX_Fq_mul 427368
FqX_extgcd 442871
nf_get_disc 456276
Z_issquare 458559
precdbl 474394
RgX_shift_inplace 480656
RgX_shift_inplace_init 480656
vecsmall_ei 495630
zv_to_ZV 501462
vecsmall_to_vec 510023
nf_get_sign 516468
mkvec3s 524441
gdivsg 528209
ZM_ZV_mod 539052
FqX_Fp_mul 568197
prec2nbits_mul 570917
RgC_fpnorml2 618706
mkvecsmall5 688708
FqX_gcd 693364
vecreverse 697025
rnf_get_nf 697220
mkrfrac 698145
FqX_deriv 723681
logint 751870
row 762494
gcmpgs 780384
ellff_get_a4a6 800247
zero_F2m_copy 842301
FpXX_renormalize 853152
zeropadic 855976
gmin_shallow 869183
ZXQ_sqr 949795
cgetc 963393
Flx_lead 964131
gerepilemany 984820
vecsmall_max 1006996
pr_norm 1067474
sstoQ 1074486
mkoo 1075644
polx_F2x 1077708
Flx_mulu 1086864
Fp_invsafe 1095734
RgV_isscalar 1140296
nf_get_varn 1166918
inf_get_sign 1193638
mkfracss 1209528
bnr_get_nf 1260075
gen_I 1268004
bnf_get_sunits 1278409
Rg_col_ei 1290031
ell_get_j 1296377
guncloneNULL_deep 1327955
rnf_get_absdegree 1377518
bid_get_mod 1386563
zero_Flx 1427152
constant_coeff 1435256
vecsmall_concat 1457322
nf_get_roots 1509077
F2m_flip 1559291
F2v_flip 1559291
F2x_flip 1559291
F2x_div 1568888
bnf_get_gen 1579972
Fp_div 1614754
abgrp_get_gen 1653741
nf_get_roundG 1685744
gsubgs 1691691
vec_ei 1703252
ulogint 1721452
killblock 1861310
ellinf 1872111
modpr_get_p 1888115
Fp_divu 1898876
get_F2x_degree 1934395
bnr_get_bid 1937012
Flx_div 1988792
bid_get_MOD 1990746
bid_get_sprk 1991476
bid_get_fact2 2025283
ellnf_get_nf 2029428
ellff_get_field 2037202
pari_realloc_ip 2075153
ZXQ_mul 2124947
ell_get_b4 2135457
zv_copy 2184067
gerepilecoeffs 2197482
bid_get_archp 2217737
pol_xn 2226900
bid_get_fact 2313929
bnr_get_cyc 2396497
rnf_get_degree 2466302
get_F2x_mod 2501634
Flv_copy 2505955
mul_content 2509471
cyc_get_expo 2521768
get_F2x_var 2534956
RgX_coeff 2544022
ell_get_b8 2608999
vecslicepermute 2618551
hash_str 2688624
bnf_get_logfu 2702202
bnr_get_clgp 2728695
zero_Flm 2752070
perm_inv 2764338
rnf_get_pol 2776606
sqrtnr 2792086
znstar_get_pe 2820763
F2x_equal1 2871440
gisdouble 2967868
mkpolmod 2973529
ell_get_b6 3054739
RgX_is_monomial 3079233
identity_perm 3103965
identity_zv 3128308
bit_accuracy_mul 3178230
ZV_to_zv 3190422
F3m_coeff 3206523
znstar_get_conreygen 3221793
bid_get_U 3378365
get_FpX_mod 3388058
Fq_red 3424553
vec_append 3430117
bnf_get_cyc 3509271
pol_x 3538901
nf_get_index 3581384
zero_F2v 3617853
bnr_get_bnf 3632334
mulsubii 3845843
pol1_F2x 3955527
vec_to_vecsmall 4014934
vecsmall_append 4065073
sqrfrac 4142571
vecsmall_copy 4291355
pol_1 4387530
mkcol2s 4415292
mkmat 4640322
checkell_i 4680904
F2x_equal 4691587
FpXQX_renormalize 4707434
mkfraccopy 4795893
qfb_disc3 4847601
nf_get_zkprimpart 5012048
nf_get_zkden 5058141
bnf_get_clgp 5097783
is_rational_t 5126894
pari_stack_delete 5151606
bid_get_cyc 5361598
bid_get_grp 5415500
FpX_div 5427954
ell_get_b2 5432107
pari_stack_init 5553312
col_ei 5699950
ell_get_a2 5716521
isintm1 5956068
get_FpX_degree 6017056
Flm_copy 6246132
ell_get_a4 6526034
sqrti 6589194
mkvec4 6589253
veclast 6905268
ell_get_a3 6922398
ZM_lll 6933584
RgX_div 7102623
RgX_gtofp 7117061
ell_get_a1 7133605
ZX_is_monic 7180806
vecsmall_lexcmp 7208565
znstar_get_faN 7210394
get_FpX_var 7238523
ZV_ZV_mod 7322736
zc_to_ZC 7746445
vecsmall_to_col 7760625
Q_abs 7793377
znstar_get_conreycyc 7823726
ell_get_a6 7959620
ell_get_c4 8021789
F2m_coeff 8081729
RgM_gtofp 8174886
mkintmod 8206611
Flm_row 8467907
ell_get_c6 8850646
cxtofp 8951450
RgM_dimensions 9406250
bnf_get_nf 9426125
ismpzero 9579259
is_intreal_t 9579356
const_col 9629558
nf_get_invzk 9892264
ser_isexactzero 10079024
mkcol 10175226
Flx_equal1 10179463
ZC_hnfrem 10677185
mul_denom 11278163
ell_get_disc 11280325
Fp_addmul 11285347
pr_get_gen 11511122
abgrp_get_cyc 11549405
ell_get_type 11592144
vectrunc_init 11715964
F2x_clear 12150377
F2v_clear 12150381
nbits2nlong 12611447
closure_get_frame 12949408
pol0_F2x 13244493
gmax_shallow 13509916
Fp_center_i 13855552
modpr_get_T 13920846
zeromatcopy 14016779
rowpermute 14411642
mkvec5 14486942
zeropol 14736190
vectrunc_append 15249895
mkvecsmall4 15488595
RgX_is_ZX 15637992
pr_get_e 15754874
pr_is_inert 16405911
matslice 16478003
normalize_frac 16693953
isint1 17292134
cxcompotor 17934626
hash_str_len 18254733
qfb_disc 18474957
gerepileall 19024870
const_vecsmall 19085996
vecpermute 20009892
nf_get_M 20774262
Fp_double 21034975
RgM_shallowcopy 21104415
Flx_div_pre 21358818
gmulgs 22094161
nf_get_r1 22160471
ZV_isscalar 22782514
pr_get_f 25354485
shallowcopy 25828005
get_Flx_mod 25883936
zerovec 26625765
RgX_equal_var 26766285
mkqfb 27797359
Fp_neg 28670806
RgV_is_ZV 31340522
modpr_get_pr 32093467
mkmat2 32543888
submulii 32710809
const_vec 32901116
RgC_gtofp 33676434
mkfrac 33750841
znstar_get_N 34543777
pol_0 35023121
zero_zv 36089554
Fp_inv 36333342
polx_Flx 37607272
lincombii 37825173
closure_is_variadic 39983924
powii 42911143
is_vec_t 43356397
absfrac 45169884
pr_get_tau 47873599
guncloneNULL 48600124
mkmat22 50318519
ell_is_inf 51299050
pol1_Flx 55399162
zero_Flv 58638206
addmuliu_inplace 59212934
submuliu_inplace 59715147
gtodouble 60523041
F2x_copy 60749591
is_real_t 62692072
Fp_sqr 64293258
QV_isscalar 64689832
mkvec 68040741
qfb_is_qfi 68049483
get_Flx_var 68332597
Fp_mulu 73136360
Fp_center 75539552
vecsmallpermute 77063764
rowslice 77570777
perm_mul 79253985
sqrtr 79874131
Fp_red 80053326
nf_get_degree 81968318
gtos 85800607
gc_all 86920633
get_Flx_degree 88421687
mkcomplex 90188137
cxnorm 90730727
pr_get_p 91462842
dbllog2r 92831257
is_noncalc_t 95089872
vecsmalltrunc_append 99880148
mkvecsmall3 100377903
F2v_set 101399440
pol0_Flx 102852639
RgX_copy 103548857
prec2nbits 104205121
vecsmall_prefixcmp 108088071
nf_get_pol 109048300
F2x_renormalize 115675341
both_odd 116450398
cgiv 117908110
nchar2nlong 120928236
zerocol 121281763
gaddgs 123137239
mkvec3 123620743
gmulgu 124173007
F2x_set 124877509
mkvecsmall 130138359
equalim1 139000263
bit_prec 141370998
FpX_renormalize 142666959
Fp_sub 147896401
ZX_renormalize 152662320
nbrows 154546319
mkcol2 155871525
uutoQ 158074130
leading_coeff 169879389
Flx_copy 173657837
Fp_add 174514302
Fp_mul 181898830
mkvec2 182151311
nbits2prec 185215462
vecsmalltrunc_init 187179187
mkvecsmall2 224639770
gerepilecopy 227235901
gtofp 251861172
is_universal_constant 291063788
lg_increase 310884880
closure_get_data 311834353
closure_get_oper 311858626
closure_codestr 311878913
is_scalar_t 314820346
lgcols 341562719
closure_arity 360514325
bin_copy 478130104
pari_free 491311370
leafcopy_avma 550278060
is_bigint 556656067
pari_stack_new 597321367
is_matvec_t 605729665
vecslice 634069057
F2v_coeff 660378711
F2x_coeff 667013446
pari_stack_alloc 690195023
pari_stack_base 695346913
pari_malloc 721614949
GENbinbase 927166145
gerepileuptoleaf 1091407922
equali1 1220837451
nbits2extraprec 1474259146
gerepileupto 1810894404
odd 2028126775
is_pm1 2190722294
lgpol 2569602484
isintzero 2814318962
bit_accuracy 2837692894
gerepileuptoint 3970645456
prec2lg 4457161597
is_const_t 4751632190
degpol 5405800044
icopy_avma 7825077113
isonstack 7937665289
remsBIL 7971291378
divsBIL 8058524199
is_recursive_t 8443813714

Generated by: LCOV version 1.16