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: 1436 1578 91.0 %
Date: 2024-12-21 09:08:57 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 22079
RgM_fpnorml2 22184
gtomp 22428
FqXQ_mul 22766
ZV_dvd 23485
gal_get_mod 23744
zerovec_block 24429
FqX_neg 24956
FqX_red 25354
bnf_get_fu 25852
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 33535
bid_get_arch 35097
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 38172
FqX_div 40283
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 57585
nf_get_ramified_primes 59184
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 72572
bid_get_ideal 78295
gal_get_group 80134
mkcol3 88314
cyclic_perm 99911
gtou 102632
mkcol4 103320
zv_to_zx 104146
mkmoo 105721
zeromat 108975
RgV_isin 109213
RgV_isin_i 109213
Fq_to_FpXQ 110255
RgXQX_rem 114083
mkmatcopy 121090
mkveccopy 122507
mkvec2copy 123181
rnf_get_map 124543
FqX_add 127694
Flx_constant 137722
idealred 138595
zeroser 138698
RgV_is_QV 139963
bnr_get_mod 141041
FqX_factor 141723
get_FpXQX_mod 146583
FlxqX_div_pre 165540
Q_abs_shallow 171562
znstar_get_U 176051
rowslicepermute 182408
vecsmall_prepend 186771
gchar_get_DLdata 188468
locs_get_Lsprk 191695
F2m_copy 197766
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 232046
ellR_get_prec 232652
rnf_get_nfpol 235999
affc_fixlg 239593
gchar_get_nf 241464
Fp_halve 252241
znstar_get_cyc 261948
FqXn_mul 263403
bnf_get_tuN 265152
get_FlxqX_var 265846
gchar_get_zm 279433
rnf_get_polabs 287409
bnf_get_fu_nocheck 288139
bnf_get_tuU 290495
vec_prepend 300923
nf_get_G 301297
bnr_get_no 314588
get_FlxqX_degree 319083
ZM_hnfrem 326807
upr_norm 343928
RgX_renormalize 347497
vecsplice 354707
FqX_mul 368586
ellR_get_sign 370819
get_F2xqX_var 376978
RgX_is_QX 378540
cxtoreal 384630
abgrp_get_no 391986
coltrunc_init 393680
addmuliu 404588
perm_conj 418299
FqX_Fq_mul 427373
FqX_extgcd 442869
nf_get_disc 456285
Z_issquare 458562
precdbl 474403
RgX_shift_inplace 480655
RgX_shift_inplace_init 480655
vecsmall_ei 495598
zv_to_ZV 501462
vecsmall_to_vec 510023
nf_get_sign 516469
mkvec3s 524441
gdivsg 528209
ZM_ZV_mod 539050
FqX_Fp_mul 568187
prec2nbits_mul 570917
RgC_fpnorml2 618706
mkvecsmall5 688707
FqX_gcd 693364
vecreverse 697025
rnf_get_nf 697220
mkrfrac 698145
FqX_deriv 723681
logint 751879
row 762497
gcmpgs 780385
ellff_get_a4a6 800248
zero_F2m_copy 842288
FpXX_renormalize 853152
zeropadic 855832
gmin_shallow 869188
ZXQ_sqr 949797
cgetc 963394
Flx_lead 964492
gerepilemany 984812
vecsmall_max 1007031
pr_norm 1067465
sstoQ 1074486
mkoo 1075569
polx_F2x 1077600
Flx_mulu 1086868
Fp_invsafe 1095736
RgV_isscalar 1140296
nf_get_varn 1166920
inf_get_sign 1193558
mkfracss 1209528
bnr_get_nf 1260079
gen_I 1268027
bnf_get_sunits 1278413
Rg_col_ei 1289993
ell_get_j 1296377
guncloneNULL_deep 1326086
rnf_get_absdegree 1377518
bid_get_mod 1386564
zero_Flx 1427243
constant_coeff 1435208
vecsmall_concat 1457318
nf_get_roots 1509079
F2m_flip 1559307
F2v_flip 1559307
F2x_flip 1559307
F2x_div 1568493
bnf_get_gen 1579968
Fp_div 1614753
abgrp_get_gen 1653739
nf_get_roundG 1685753
gsubgs 1691680
vec_ei 1703204
ulogint 1718712
killblock 1860470
ellinf 1872114
modpr_get_p 1888117
Fp_divu 1898866
get_F2x_degree 1934377
bnr_get_bid 1937016
Flx_div 1988744
bid_get_MOD 1990748
bid_get_sprk 1991466
bid_get_fact2 2025257
ellnf_get_nf 2029433
ellff_get_field 2037201
pari_realloc_ip 2075599
ZXQ_mul 2124924
ell_get_b4 2135457
zv_copy 2184076
gerepilecoeffs 2197423
bid_get_archp 2217724
pol_xn 2226905
bid_get_fact 2313901
bnr_get_cyc 2396501
rnf_get_degree 2466302
get_F2x_mod 2501564
Flv_copy 2505962
mul_content 2509418
cyc_get_expo 2521788
get_F2x_var 2534941
RgX_coeff 2544022
ell_get_b8 2608999
vecslicepermute 2619010
hash_str 2688625
bnf_get_logfu 2702205
bnr_get_clgp 2728694
zero_Flm 2751829
perm_inv 2764312
rnf_get_pol 2776606
sqrtnr 2791986
znstar_get_pe 2820763
F2x_equal1 2871291
gisdouble 2967147
mkpolmod 2973528
ell_get_b6 3054739
RgX_is_monomial 3079132
identity_perm 3103701
identity_zv 3128044
bit_accuracy_mul 3178231
ZV_to_zv 3190421
F3m_coeff 3206424
znstar_get_conreygen 3221793
bid_get_U 3378366
get_FpX_mod 3388046
Fq_red 3424527
vec_append 3430080
bnf_get_cyc 3509273
pol_x 3538796
nf_get_index 3581394
zero_F2v 3617816
bnr_get_bnf 3632364
mulsubii 3844999
pol1_F2x 3955273
vec_to_vecsmall 4014911
vecsmall_append 4065084
sqrfrac 4142462
vecsmall_copy 4291324
pol_1 4387557
mkcol2s 4415292
mkmat 4640286
checkell_i 4680883
F2x_equal 4688373
FpXQX_renormalize 4707349
mkfraccopy 4795917
qfb_disc3 4847388
nf_get_zkprimpart 5011992
nf_get_zkden 5058094
bnf_get_clgp 5097781
is_rational_t 5126896
pari_stack_delete 5146555
bid_get_cyc 5361590
bid_get_grp 5415490
FpX_div 5427916
ell_get_b2 5432109
pari_stack_init 5551864
col_ei 5699930
ell_get_a2 5716520
isintm1 5956149
get_FpX_degree 6017045
Flm_copy 6246064
ell_get_a4 6526033
sqrti 6589080
mkvec4 6589254
veclast 6905280
ell_get_a3 6922399
ZM_lll 6933205
RgX_div 7102623
RgX_gtofp 7117176
ell_get_a1 7133606
ZX_is_monic 7180818
vecsmall_lexcmp 7208565
znstar_get_faN 7210394
get_FpX_var 7238541
ZV_ZV_mod 7322752
zc_to_ZC 7746771
vecsmall_to_col 7760953
Q_abs 7793515
znstar_get_conreycyc 7823726
ell_get_a6 7959619
ell_get_c4 8021770
F2m_coeff 8081746
RgM_gtofp 8174233
mkintmod 8206606
Flm_row 8467905
ell_get_c6 8850627
cxtofp 8952259
RgM_dimensions 9406187
bnf_get_nf 9426133
ismpzero 9578881
is_intreal_t 9578994
const_col 9629515
nf_get_invzk 9892199
ser_isexactzero 10079024
mkcol 10175258
Flx_equal1 10179941
ZC_hnfrem 10677262
Fp_addmul 11277903
mul_denom 11278309
ell_get_disc 11280300
pr_get_gen 11511058
abgrp_get_cyc 11549420
ell_get_type 11591946
vectrunc_init 11717215
F2x_clear 12150184
F2v_clear 12150198
nbits2nlong 12610628
closure_get_frame 12949258
pol0_F2x 13239595
gmax_shallow 13509917
Fp_center_i 13860354
modpr_get_T 13920828
zeromatcopy 14016036
rowpermute 14411541
mkvec5 14486882
zeropol 14736171
vectrunc_append 15252225
mkvecsmall4 15486586
RgX_is_ZX 15638269
pr_get_e 15754983
pr_is_inert 16406050
matslice 16477315
normalize_frac 16694014
isint1 17292217
cxcompotor 17936175
hash_str_len 18254690
qfb_disc 18474961
gerepileall 19024778
const_vecsmall 19085884
vecpermute 20011218
nf_get_M 20774248
Fp_double 21011760
RgM_shallowcopy 21104122
Flx_div_pre 21356736
gmulgs 22042522
nf_get_r1 22160370
ZV_isscalar 22782599
pr_get_f 25354532
shallowcopy 25827527
get_Flx_mod 25882891
zerovec 26625648
RgX_equal_var 26766285
mkqfb 27796908
Fp_neg 28669634
RgV_is_ZV 31340520
modpr_get_pr 32093470
mkmat2 32544104
submulii 32710809
const_vec 32900028
RgC_gtofp 33672132
mkfrac 33746262
znstar_get_N 34543777
pol_0 35023266
zero_zv 36088521
Fp_inv 36333524
polx_Flx 37606732
lincombii 37820223
closure_is_variadic 39983724
powii 42911102
is_vec_t 43351133
absfrac 45170109
pr_get_tau 47873969
guncloneNULL 48597692
mkmat22 50318231
ell_is_inf 51359114
pol1_Flx 55394778
zero_Flv 58636620
addmuliu_inplace 59273921
submuliu_inplace 59775365
gtodouble 60522843
F2x_copy 60707355
is_real_t 62692074
Fp_sqr 64222178
QV_isscalar 64690079
mkvec 68053718
qfb_is_qfi 68056599
get_Flx_var 68329987
Fp_mulu 71509766
Fp_center 75556740
vecsmallpermute 77061356
rowslice 77569474
perm_mul 79251631
sqrtr 79872170
Fp_red 80052942
nf_get_degree 81968422
gtos 85800599
gc_all 86920048
get_Flx_degree 87615481
mkcomplex 90193151
cxnorm 90734860
pr_get_p 91463210
dbllog2r 92832056
is_noncalc_t 95089119
vecsmalltrunc_append 99855382
mkvecsmall3 100378035
F2v_set 101399386
pol0_Flx 102841228
RgX_copy 103548879
prec2nbits 104205372
vecsmall_prefixcmp 108088071
nf_get_pol 109048654
F2x_renormalize 115660998
both_odd 116615288
cgiv 117944080
nchar2nlong 120925115
mkvec3 121205175
zerocol 121274671
gaddgs 123137182
gmulgu 124173007
F2x_set 124867905
mkvecsmall 130126370
equalim1 139000290
bit_prec 141356451
FpX_renormalize 142662965
Fp_sub 147892100
ZX_renormalize 152675319
nbrows 154538263
mkcol2 155874485
uutoQ 158074130
leading_coeff 169879009
Flx_copy 173656671
Fp_add 174471679
mkvec2 181757610
Fp_mul 181887530
nbits2prec 185199700
vecsmalltrunc_init 186438123
mkvecsmall2 224645634
gerepilecopy 227228572
gtofp 251844756
is_universal_constant 291010506
lg_increase 308865333
closure_get_data 311742191
closure_get_oper 311763128
closure_codestr 311783185
is_scalar_t 314820633
lgcols 341550712
closure_arity 360424109
bin_copy 478120118
pari_free 491300167
leafcopy_avma 550179600
is_bigint 556632805
pari_stack_new 597264888
is_matvec_t 605664607
vecslice 634032153
F2v_coeff 660378317
F2x_coeff 666998537
pari_stack_alloc 690140112
pari_stack_base 695287188
pari_malloc 721604664
GENbinbase 927147337
gerepileuptoleaf 1088231743
equali1 1220844208
nbits2extraprec 1474193261
gerepileupto 1810854110
odd 2027765720
is_pm1 2190240878
lgpol 2565026617
isintzero 2814046420
bit_accuracy 2837483738
gerepileuptoint 3970331443
prec2lg 4456936019
is_const_t 4752429043
degpol 5396404097
icopy_avma 7825060237
isonstack 7934120602
remsBIL 7971438102
divsBIL 8058751781
is_recursive_t 8443715203

Generated by: LCOV version 1.16