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 - basemath - Flx.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29815-a300ec5c34) Lines: 2454 2766 88.7 %
Date: 2024-12-26 09:08:56 Functions: 299 345 86.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Fl2_equal1 439119
Fl2_inv_pre 192585
Fl2_mul_pre 1915022
Fl2_norm_pre 125948
Fl2_pow_pre 656073
Fl2_sqr_pre 4821846
Fl2_sqrt_pre 67676
Fl2_sqrtn_pre 74606
Fl_Flxq_log 35479
Fl_Xp1_powu 0
Fl_to_Flx 19857435
Flm_to_FlxV 2296
FlvV_polint_tree 1386316
Flv_Flm_polint 101078
Flv_inv 623632
Flv_invVandermonde 152995
Flv_inv_i 635645
Flv_inv_indir 49733
Flv_inv_inplace 12017
Flv_inv_pre 10850
Flv_inv_pre_indir 18965322
Flv_inv_pre_inplace 18352562
Flv_polint 368284
Flv_prod 0
Flv_prod_pre 3255
Flv_producttree 624833
Flv_roots_to_pol 737453
Flv_to_Flx 25186177
FlxC_FlxqV_eval 0
FlxC_FlxqV_eval_pre 0
FlxC_Flxq_eval 0
FlxC_Flxq_eval_pre 0
FlxC_eval_powers_pre 251067
FlxC_neg 0
FlxC_sub 0
FlxC_to_ZXC 109566
FlxM_Flx_add_shallow 0
FlxM_Flx_mul2 24752
FlxM_eval_powers_pre 19451
FlxM_mul2 6517
FlxM_neg 0
FlxM_pack_ZM 58981
FlxM_pack_ZM_bits 117719
FlxM_sub 0
FlxM_to_FlxXV 0
FlxM_to_ZXM 4611
FlxT_red 297206
FlxV_Flc_mul 34482
FlxV_Flv_multieval 2471
FlxV_Flv_multieval_tree 2471
FlxV_Flx_fromdigits 0
FlxV_composedsum 28911
FlxV_prod 0
FlxV_red 0
FlxV_to_Flm 171803
FlxV_to_Flm_lg 12769061
FlxV_to_FlxX 397971
FlxV_to_ZXV 600286
FlxV_to_ZXV_inplace 2923352
Flx_Fl2_eval_pre 10402
Flx_Fl_add 9681719
Flx_Fl_mul 7262375
Flx_Fl_mul_pre 18307941
Flx_Fl_mul_to_monic 11948121
Flx_Fl_sub 150911
Flx_Flv_multieval 0
Flx_Flv_multieval_tree 665134
Flx_FlxM_qmul 6345
Flx_FlxqV_eval 5103
Flx_FlxqV_eval_pre 12967688
Flx_Flxq_eval 786203
Flx_Flxq_eval_pre 2393956
Flx_Frobenius 86497
Flx_Frobenius_pre 13662058
Flx_Laplace 27256
Flx_Newton 53978
Flx_add 62900776
Flx_addmulmul 416899
Flx_addshift 3660078
Flx_addspec 7121686
Flx_blocks 516004
Flx_blocks_Flm 12768152
Flx_composedprod 0
Flx_composedsum 27494
Flx_convol 0
Flx_deflate 419056
Flx_deriv 21066470
Flx_diff1 13447
Flx_digits 0
Flx_div_by_X_x 33027554
Flx_divrem 30256642
Flx_divrem_Barrett 604943
Flx_divrem_Barrettspec 905612
Flx_divrem_basecase 61679692
Flx_divrem_pre 79102050
Flx_double 2443754
Flx_equal 30551897
Flx_eval 20395072
Flx_eval2BILspec 581750
Flx_eval_powers_pre 43842678
Flx_eval_pre 100655849
Flx_extgcd 852888
Flx_extgcd_basecase 6335964
Flx_extgcd_halfgcd 147555
Flx_extgcd_pre 6335982
Flx_extresultant 53
Flx_extresultant_basecase 53
Flx_extresultant_pre 53
Flx_fromNewton 109344
Flx_gcd 32408702
Flx_gcd_basecase 82872590
Flx_gcd_pre 84503288
Flx_get_red 14232153
Flx_get_red_pre 100041459
Flx_halfgcd 0
Flx_halfgcd_all 154
Flx_halfgcd_all_i 1102595
Flx_halfgcd_all_pre 1102601
Flx_halfgcd_pre 845990
Flx_halfres_basecase 1109106
Flx_halfres_i 1128391
Flx_halfres_pre 1044
Flx_halfres_split 19281
Flx_halfres_update_pre 9405
Flx_halve 14229
Flx_inflate 158740
Flx_integ 0
Flx_integXn 422458
Flx_invBarrett 0
Flx_invBarrett_Newton 23116
Flx_invBarrett_basecase 134230
Flx_invBarrett_pre 158652
Flx_invLaplace 54219
Flx_is_l_pow 8372
Flx_is_smooth 74256
Flx_is_smooth_pre 118766
Flx_is_smooth_squarefree 127111
Flx_is_squarefree 8526926
Flx_lgrenormalizespec 2132121
Flx_matFrobenius 0
Flx_matFrobenius_pre 86526
Flx_mod_Xn1 30303
Flx_mod_Xnm1 5097729
Flx_mul 27656424
Flx_mul_pre 376489721
Flx_mulhigh_i 937196
Flx_mullimb 1150595959
Flx_mullimb_ok 3435486838
Flx_mulspec 382011900
Flx_mulspec_Kronecker 7219707
Flx_mulspec_basecase 344812045
Flx_mulspec_halfmulii 5454
Flx_mulspec_mulii 10028
Flx_mulspec_mulii_inflate 283430
Flx_mulspec_quartmulii 97116
Flx_neg 3451504
Flx_neg_inplace 1745517
Flx_negspec 3451496
Flx_normalize 62141590
Flx_powu 0
Flx_powu_pre 7938
Flx_recip 0
Flx_recipspec 7123182
Flx_red 1877287
Flx_rem 41771457
Flx_rem_basecase 794875995
Flx_rem_pre 918560144
Flx_renormalize 2125959776
Flx_rescale 1117
Flx_resultant 4659448
Flx_resultant_basecase_pre 10192326
Flx_resultant_pre 10194470
Flx_shift 26733362
Flx_shiftip 634876943
Flx_splitting 147667
Flx_sqr 356118
Flx_sqr_pre 281805511
Flx_sqrspec 282006674
Flx_sqrspec_Kronecker 683850
Flx_sqrspec_basecase 281574777
Flx_sqrspec_halfsqri 136
Flx_sqrspec_quartsqri 10221
Flx_sqrspec_sqri 2262
Flx_sqrspec_sqri_inflate 11501
Flx_sub 137879751
Flx_subspec 897743
Flx_to_Flv 65629187
Flx_to_FlxX 71409
Flx_to_ZX 37066748
Flx_to_ZX_inplace 36403472
Flx_to_int_halfspec 510002
Flx_to_int_quartspec 204453
Flx_translate1 16107
Flx_translate1_basecase 28201
Flx_triple 1049005
Flx_val 4163132
Flx_valrem 26286666
Flxn_div 54994
Flxn_div_pre 55031
Flxn_exp 0
Flxn_expint 109338
Flxn_inv 1030
Flxn_mul 75314
Flxn_mul_pre 5062304
Flxn_mulhigh 515896
Flxn_recip 216902
Flxn_red 6228467
Flxn_sqr 0
Flxn_sqr_pre 0
FlxqC_Flxq_mul 0
FlxqM_Flxq_mul 0
FlxqM_mul_Kronecker 88394
FlxqV_dotproduct 0
FlxqV_dotproduct_pre 113589
FlxqX_dotproduct 2058
Flxq_autpow 7
Flxq_autpow_msqr 20771
Flxq_autpow_pre 31997
Flxq_autpow_sqr 46405
Flxq_autpowers 1679
Flxq_autsum 0
Flxq_autsum_mul 113384
Flxq_autsum_pre 99241
Flxq_autsum_sqr 105662
Flxq_auttrace 0
Flxq_auttrace_mul 762992
Flxq_auttrace_pre 934784
Flxq_auttrace_sqr 635760
Flxq_charpoly 3632
Flxq_conjvec 20
Flxq_div 237696
Flxq_div_pre 2416227
Flxq_easylog 548316
Flxq_inv 345513
Flxq_inv_pre 4381563
Flxq_invsafe 655885
Flxq_invsafe_pre 5483154
Flxq_is2npower 0
Flxq_issquare 403982
Flxq_log 164469
Flxq_lroot 0
Flxq_lroot_fast 0
Flxq_lroot_fast_pre 113589
Flxq_lroot_pre 25053
Flxq_matrix_pow 399
Flxq_matrix_pow_pre 170592
Flxq_minpoly 44433
Flxq_minpoly_pre 784176
Flxq_mul 13185338
Flxq_mul_pre 195431158
Flxq_norm 442921
Flxq_order 97239
Flxq_pow 930831
Flxq_pow_Frobenius 26326041
Flxq_pow_init 0
Flxq_pow_init_pre 28
Flxq_pow_pre 27251430
Flxq_pow_table 0
Flxq_pow_table_pre 4393
Flxq_powers 232071
Flxq_powers_pre 22185425
Flxq_powu 486767
Flxq_powu_pre 24101545
Flxq_sqr 2750865
Flxq_sqr_pre 280760795
Flxq_sqrt 225383
Flxq_sqrt_pre 225383
Flxq_sqrtn 20110
Flxq_sumautsum_msqr 40494
Flxq_sumautsum_pre 200606
Flxq_sumautsum_sqr 284170
Flxq_trace 4696
Flxq_transmul 4084383
Flxq_transmul_init 1691949
RgXV_to_FlxV 7
RgX_to_Flx 2355307
Rg_to_F2 1706873
Rg_to_Fl 72639468
Rg_to_Flxq 3564828
ZM_unpack_FlxqM 29494
ZM_unpack_FlxqM_bits 58900
ZXT_to_FlxT 3798359
ZXV_to_FlxV 0
ZX_to_Flx 167372921
Z_mod2BIL_Flx 294931
Z_mod2BIL_Flx_2 297861
Z_mod2BIL_Flx_3 0
Z_to_Flx 2673761
ZpX_invLaplace_init 497
_Fl2_mul 1886912
_Fl2_pow 656059
_Fl2_rand 111134
_Fl2_sqr 4821923
_Flx_add 578752
_Flx_composedsum 3826
_Flx_divrem 0
_Flx_mul 10475447
_Flx_sqr 0
_Flxq_equal0 165726
_Flxq_inv 18980
_Flxq_mul 154592019
_Flxq_neg 553759
_Flxq_one 22186148
_Flxq_pow 26318677
_Flxq_powu 68
_Flxq_powu_i 22870838
_Flxq_rand 41000
_Flxq_red 1773458
_Flxq_rmul 1577339
_Flxq_s 16890
_Flxq_sqr 272795984
bounded_order 422681
gener_Flxq 7187
get_Fl_threshold 2321448999
get_Flx_red 981946279
get_Flxq_field 73605
get_Flxq_star 281811
init_invlaplace 12514
int_to_Flx 12299
int_to_Flx_half 594205
int_to_Flx_quart 107337
kron_pack_Flx_spec 53832
kron_pack_Flx_spec_2 3389
kron_pack_Flx_spec_3 0
kron_pack_Flx_spec_bits 20735387
kron_pack_Flx_spec_half 857537
kron_unpack_Flx 42953
kron_unpack_Flx_2 2930
kron_unpack_Flx_3 0
kron_unpack_Flx_bits_narrow 5652291
kron_unpack_Flx_bits_wide 5538469
matJ2_FlxM 13
matid2_FlxM 895
maxbitcoeffpol 8327688
mkF2 7191667
monomial_Flx 912812
random_Flx 2579740
set_Flxq 73625
set_Flxq_pre 72706631
translate_basecase 41366
zero_FlxC 0
zero_FlxM 0
zl_Xp1_powu 12017
zlx_translate1 25259
zx_to_Flx 6077451

Generated by: LCOV version 1.16