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 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 - arith1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21723-7dc29a5) Lines: 2920 3166 92.2 %
Date: 2018-01-18 06:18:29 Functions: 268 286 93.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Fl_log 0
Fl_log_Fp 0
Fl_log_naive 0
Fl_sqrtl 0
Z_ZV_mod 0
Z_nv_mod 0
Zp_issquare 0
bestappr_frac 0
gcf2 0
gissquare 0
gissquareall 0
nmV_chinese_center_tree 0
order 0
pnqn 0
qfi_log 0
quadclassno 0
rootsof1_Fp 0
sersfcont 0
fibo 7
quadunit 7
quadunit0 7
rootsof1u_Fp 7
sqrt_Cipolla 8
get_quad 14
sfcont2 14
update_f 14
chinese_intpol 21
classno2 21
quadregulator 21
sqrt_Cipolla_msqr 23
is_gener_expo 34
mod_to_frac 42
odd_prime_divisors 43
remove2 43
Fp_log_index 49
Fp_log_sieve 49
check_kernel 49
chinese1 49
compute_nbgen 49
contfrac0 49
opt_param 49
polmodispower 49
ZXM_nv_mod_tree 51
nxMV_chinese_center_tree_seq 51
nxMV_polint_center_tree_seq 51
Fp_factored_order 56
bestappr_ser 56
err_oo 56
logint0 56
lucas 56
znorder 63
Zp_order 70
mod_to_rfrac 70
bestapprPade 77
bestappr_RgX 77
get_PHI 84
kroui 88
gcf 91
Fp_log_find_ind 98
is_gener_Fp 98
_Fp_rand 112
relative_order 112
znlog_rec 112
geomsum 120
geomsumu 120
_Fp_one 140
qfbclassno0 140
err_p 161
err_prec 196
Fp_ispower 210
lift_padic 210
znlog 224
contfracpnqn 231
gener_Zp 231
nxMV_chinese_center 248
nxMV_polint_center_tree 248
Fp_log_find_rel 256
ZXC_nv_mod_tree 270
Up_ispower 273
bestappr_real_max 287
znprimroot 301
Zn_ispower 308
handle_pe 413
lift_intmod 420
ZXX_nv_mod_tree 423
nxV_chinese_center_tree 423
muls_interval 448
sqrt_Cipolla_sqr 449
equal1 518
ECP_psi 525
_computeG 525
hilbert 658
polispower 672
Fp_2gener 686
nmV_chinese_center_tree_seq 755
nmV_polint_center_tree_seq 755
Z_chinese_coprime 1050
Qp_ispower 1113
_Fp_sqr 1128
_psi 1367
ispolygonal 1386
fa_isfundamental 1407
Z_ispowerall 1533
ispseudoprimepower 1605
nxV_chinese_center 2014
Fp_powers 2016
Z_chinese 2142
U2_issquare 2373
rootsof1_Fl 2415
Zn_issquare 2548
addifsmooth1 2583
Fl_powers 2751
fa_quaddisc 2821
quaddisc 2821
polissquareall 2968
to_ZX 3240
nxMV_polint_center_tree_worker 3330
nxCV_polint_center_tree 3600
ncV_chinese_center 3641
Up_issquare 4690
get_Fp_field 4981
Fl_order 5761
ok_q 6600
Fp_2gener_all 6774
ramanujantau 7035
hclassno6_large 7873
Fp_invmBarrett 9897
mphilbertoo 9982
sisfundamental 10381
uposisfundamental 10597
Fp_order 10732
ZM_nv_mod_tree 12015
ZV_chinese 12931
tauprime 14903
bestappr 15658
chinese 16520
Z_isfundamental 16681
nmV_chinese_center 17339
nmV_polint_center_tree 17339
isfundamental 17521
polint_chinese 17587
Fl_log_naive_pre 19097
Fl_log_pre 19097
unegisfundamental 21050
Fp_pows 21567
_Fp_inv 21970
pgener_Fp 23415
pgener_Fp_local 23968
sqrtint 30563
krois 30681
Hspec 36750
ZV_chinese_center 38313
u_remove2 38970
u_odd_prime_divisors 38971
Fp_log_sieve_worker 38999
u_is_gener_expo 39072
Fl_lgener_pre_all 45224
hclassno 45346
hilbertii 53144
Fp_sqrtn 61090
Fl_sqrtn 63449
Fl_sqrtn_pre 63449
nxV_polint_center_tree 64490
pgener_Zl 65599
pgener_Zp 65604
istotient 70000
Fp_log_halfgcd 70687
Z_ispow2 71730
gc_chinese 74486
u_chinese_coprime 84336
u_chinese_post 84336
ZV_nv_mod_tree 96365
is_gener_Fl 99798
addifsmooth2 99869
_Fp_s 104751
pgener_Fl 106603
Fl_sqrtl_pre 107984
Fl_sqrtl_i 107985
Fl_sqrtl_raw 108280
uissquare 120574
hclassno6 121128
pgener_Fl_local 129000
Fl_2gener_pre 147341
issquare 157836
issquareall 163086
nmV_polint_center_tree_worker 190877
_Fp_neg 201876
ncV_polint_center_tree 203085
Z_chinese_all 218612
bestappr_real 233143
Z_chinese_pre 237211
ulogintall 251832
logintall 259414
chinese1_coprime_Z_aux 278429
chinese1_coprime_Z 289536
gen_chinese 289585
init_montdata 311234
Z_factor_listP 350651
split_lcm 356471
update_g1 356471
bestappr_Q 378072
ZX_nv_mod_tree 390011
Fp_select_red 408577
ZV_chinesetree 466140
ZV_invdivexact 466230
ZV_sqr 466233
ZV_producttree 467636
_mul_remiibar 485545
ZV_allpnqn 490035
icopy_lg 497555
Qsfcont 497851
gboundcf 498073
split_exponent 505715
Z_chinese_post 516956
uisprimepower 541752
_Fp_equal0 586141
_Fp_mul 591852
Fp_log 598110
qfi_Shanks 618944
istotient_i 621565
Fp_log_use_index 626800
krosi 632494
krouodd 632582
isprimepower 840098
isprimepower_i 841703
Fp_easylog 861366
Z_isanypower_nosmalldiv 864597
Fp_powu 958524
mulu_interval 994646
_mul2_remiibar 1214811
_Fp_red 1294928
_mul_remii 1346777
_Fp_add 1610500
_Fp_rmul 1889818
get_forms 2019659
two_rank 2019659
conductor_part 2019680
Shanks_order 2019708
classno 2021993
corediscfact 2027553
Fp_sqrt 2331918
Fp_sqrt_i 2347927
mpfact 2358499
_Fp_pow 2702919
find_order 2732776
Fl_2powu 2815907
qfi_order 2902256
_mul_montred 3096309
ZT_sqr 3114881
_mul2_remii 3269919
Fl_sqrt_pre 3387252
_sqr_remiibar 4243131
Fp_dblsqr 4484730
Fp_rem_mBarrett 4728676
Fp_pow 5044024
ZV_chinese_tree 5150044
_mul2_montred 5379597
gome 5401983
kronecker 6100274
Z_issquareall 6253352
gisanypower 7000182
Z_isanypower 7000791
Z_isanypower_aux 7000791
ispower 7002996
Z_ZV_mod_tree 10225446
Fl_powers_pre 11054382
uissquareall 11605594
qfb_equal1 12754913
_sqr_remii 12964511
carremod 13095019
qfi_pow 18042141
lcmii 18124274
Fl_2powu_pre 20063849
qfi_comp 22656169
Fl_2gener_pre_all 26732135
_sqr_montred 31472548
sqr_primeform 38371426
Fl_powu 43553812
Fl_sqrt 60601310
Fl_sqrt_pre_i 64017167
kross 73961535
Fl_powu_pre 96246550
krouu 109161967
kroiu 337376908
krouu_s 522313885
ome 666846340

Generated by: LCOV version 1.11