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 29712-7c8a932571) Lines: 2402 2712 88.6 %
Date: 2024-11-15 09:08:45 Functions: 296 342 86.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Fl_Xp1_powu 0
Flv_prod 0
FlxC_FlxqV_eval 0
FlxC_FlxqV_eval_pre 0
FlxC_Flxq_eval 0
FlxC_Flxq_eval_pre 0
FlxC_neg 0
FlxC_sub 0
FlxM_Flx_add_shallow 0
FlxM_neg 0
FlxM_sub 0
FlxM_to_FlxXV 0
FlxV_Flx_fromdigits 0
FlxV_prod 0
FlxV_red 0
Flx_Flv_multieval 0
Flx_composedprod 0
Flx_convol 0
Flx_digits 0
Flx_halfgcd 0
Flx_integ 0
Flx_invBarrett 0
Flx_matFrobenius 0
Flx_powu 0
Flx_recip 0
Flxn_exp 0
Flxn_sqr 0
Flxn_sqr_pre 0
FlxqC_Flxq_mul 0
FlxqM_Flxq_mul 0
FlxqV_dotproduct 0
Flxq_autsum 0
Flxq_auttrace 0
Flxq_is2npower 0
Flxq_lroot 0
Flxq_lroot_fast 0
Flxq_pow_init 0
Flxq_pow_table 0
ZXV_to_FlxV 0
Z_mod2BIL_Flx_3 0
_Flx_divrem 0
_Flx_sqr 0
kron_pack_Flx_spec_3 0
kron_unpack_Flx_3 0
zero_FlxC 0
zero_FlxM 0
Flxq_autpow 7
RgXV_to_FlxV 7
matJ2_FlxM 13
Flxq_conjvec 20
Flxq_pow_init_pre 28
Flx_extresultant 53
Flx_extresultant_basecase 53
Flx_extresultant_pre 53
_Flxq_powu 68
Flx_sqrspec_halfsqri 136
Flx_halfgcd_all 154
Flxq_matrix_pow 399
ZpX_invLaplace_init 497
matid2_FlxM 895
Flxn_inv 1030
Flx_halfres_pre 1044
Flx_rescale 1117
Flxq_autpowers 1667
Flx_sqrspec_sqri 2263
Flm_to_FlxV 2282
FlxqX_dotproduct 2456
FlxV_Flv_multieval 2471
FlxV_Flv_multieval_tree 2471
kron_unpack_Flx_2 2930
Flv_prod_pre 3255
kron_pack_Flx_spec_2 3389
Flxq_charpoly 3632
_Flx_composedsum 3826
Flxq_pow_table_pre 4393
Flxq_trace 4402
FlxM_to_ZXM 4605
Flx_FlxqV_eval 5103
Flx_mulspec_halfmulii 5454
Flx_FlxM_qmul 6345
FlxM_mul2 6517
gener_Flxq 7187
Flx_powu_pre 7888
Flx_is_l_pow 8351
Flx_halfres_update_pre 9405
Flx_mulspec_mulii 10039
Flx_sqrspec_quartsqri 10221
Flx_Fl2_eval_pre 10402
Flv_inv_pre 10850
Flx_sqrspec_sqri_inflate 11501
Flv_inv_inplace 12017
zl_Xp1_powu 12017
int_to_Flx 12303
init_invlaplace 12514
Flx_diff1 13447
Flx_halve 14265
Flx_translate1 16107
_Flxq_inv 18980
Flx_halfres_split 19281
FlxM_eval_powers_pre 19403
Flxq_autpow_msqr 20726
Flx_invBarrett_Newton 23115
FlxM_Flx_mul2 24752
Flxq_lroot_pre 25053
_Flxq_s 25157
zlx_translate1 25259
Flx_Laplace 27278
Flx_composedsum 27498
Flx_translate1_basecase 28201
FlxV_composedsum 28908
ZM_unpack_FlxqM 29345
Flx_mod_Xn1 30281
FlxV_Flc_mul 34482
Fl_Flxq_log 35416
translate_basecase 41366
kron_unpack_Flx 42953
Flxq_minpoly 44415
Flv_inv_indir 49734
kron_pack_Flx_spec 53832
Flx_Newton 53990
Flx_invLaplace 54261
Flxn_div 55034
Flxn_div_pre 55059
FlxM_pack_ZM 58683
ZM_unpack_FlxqM_bits 59848
Fl2_sqrt_pre 67842
Flx_to_FlxX 71517
get_Flxq_field 73608
set_Flxq 73628
Flx_is_smooth 74256
Fl2_sqrtn_pre 74718
Flxn_mul 75259
Flx_matFrobenius_pre 86451
Flx_Frobenius 86485
FlxqM_mul_Kronecker 89193
Flxq_order 96584
Flx_mulspec_quartmulii 97113
Flv_Flm_polint 101075
int_to_Flx_quart 107334
Flx_fromNewton 109342
Flxn_expint 109344
FlxC_to_ZXC 109530
_Fl2_rand 111029
FlxqV_dotproduct_pre 113589
Flxq_lroot_fast_pre 113589
Flx_is_smooth_pre 118282
FlxM_pack_ZM_bits 119615
Fl2_norm_pre 126148
Flx_is_smooth_squarefree 126607
Flx_invBarrett_basecase 134214
Flx_splitting 147497
Flx_Fl_sub 151005
Flx_extgcd_halfgcd 152028
Flv_invVandermonde 152987
Flx_inflate 158198
Flx_invBarrett_pre 158720
Flxq_log 164469
_Flxq_equal0 165726
Flxq_matrix_pow_pre 170487
FlxV_to_Flm 171711
Flxq_sqrtn 177037
Fl2_inv_pre 193042
Flx_to_int_quartspec 204447
Flxn_recip 217062
Flxq_sqrt 224774
Flxq_sqrt_pre 224774
Flxq_powers 232189
Flxq_div 237416
FlxC_eval_powers_pre 250772
Flx_mulspec_mulii_inflate 283395
Z_mod2BIL_Flx 294896
FlxT_red 295598
Z_mod2BIL_Flx_2 297826
Flxq_autpow_pre 304369
Flxq_autsum_pre 315822
_Flxq_rand 329972
Flxq_inv 345519
Flx_sqr 356050
Flv_polint 368207
Flxq_autsum_sqr 379955
Flxq_autpow_sqr 386196
FlxV_to_FlxX 396559
Flxq_issquare 399304
Flx_deflate 419205
Flx_integXn 422550
Flx_addmulmul 430132
get_Flxq_star 431804
Flxq_norm 438058
Fl2_equal1 439602
Flxq_powu 486924
Flx_to_int_halfspec 509899
Flxn_mulhigh 516170
Flx_blocks 516286
_Flxq_neg 553759
_Flx_add 578752
Flx_eval2BILspec 581680
Flxq_autsum_mul 588807
int_to_Flx_half 594101
FlxV_to_ZXV 600401
Flx_divrem_Barrett 604037
Flv_inv 623542
Flv_producttree 624744
Flv_inv_i 635555
Flxq_auttrace_sqr 635639
Flxq_invsafe 656237
_Fl2_pow 657020
Fl2_pow_pre 657024
Flx_Flv_multieval_tree 665047
Flx_sqrspec_Kronecker 688624
Flxq_easylog 691326
Flv_roots_to_pol 737494
Flxq_auttrace_mul 762585
Flxq_minpoly_pre 783975
Flx_Flxq_eval 786391
Flx_halfgcd_pre 845325
bounded_order 851062
Flx_extgcd 852642
kron_pack_Flx_spec_half 857451
Flx_subspec 896819
Flx_divrem_Barrettspec 904419
monomial_Flx 912110
Flxq_pow 915439
Flxq_auttrace_pre 934932
Flx_mulhigh_i 937766
Flx_triple 1043249
Flx_halfgcd_all_i 1110277
Flx_halfgcd_all_pre 1110279
Flx_halfres_basecase 1116786
Flx_halfres_i 1136072
FlvV_polint_tree 1386194
_Flxq_rmul 1577269
Flxq_transmul_init 1690623
Rg_to_F2 1706848
Flx_neg_inplace 1766287
_Flxq_red 1773388
Flx_red 1875559
_Fl2_mul 1887152
Fl2_mul_pre 1915258
Flx_lgrenormalizespec 2130297
Flxq_div_pre 2414484
Flx_double 2434345
Flx_Flxq_eval_pre 2627269
random_Flx 2663636
Z_to_Flx 2673291
Flxq_sqr 2747578
RgX_to_Flx 2826380
FlxV_to_ZXV_inplace 2923573
Flx_neg 3451751
Flx_negspec 3451778
Rg_to_Flxq 3565048
Flx_addshift 3701783
ZXT_to_FlxT 3782706
Flxq_transmul 4081317
Flx_val 4154496
Flx_resultant 4654513
Flxq_inv_pre 4809784
Fl2_sqr_pre 4819702
_Fl2_sqr 4819720
Flxn_mul_pre 5063067
Flx_mod_Xnm1 5098812
kron_unpack_Flx_bits_wide 5538873
kron_unpack_Flx_bits_narrow 5685701
Flxq_invsafe_pre 5911644
zx_to_Flx 6067959
Flxn_red 6230348
Flx_extgcd_basecase 6764268
Flx_extgcd_pre 6764271
Flx_Fl_mul 7115443
Flx_recipspec 7117273
mkF2 7187395
Flx_addspec 7204967
Flx_mulspec_Kronecker 7271814
maxbitcoeffpol 8383606
Flx_is_squarefree 8524379
Flx_Fl_add 9692880
Flx_resultant_basecase_pre 10184921
Flx_resultant_pre 10186834
_Flx_mul 10477149
Flx_Fl_mul_to_monic 11945093
Flx_blocks_Flm 13019509
FlxV_to_Flm_lg 13020522
Flxq_mul 13180590
Flx_FlxqV_eval_pre 13218337
Flx_Frobenius_pre 13667334
Flx_get_red 14032782
Flv_inv_pre_inplace 18289827
Flx_Fl_mul_pre 18845521
Flv_inv_pre_indir 18888049
Fl_to_Flx 19848040
Flx_eval 20377237
kron_pack_Flx_spec_bits 20848370
Flx_deriv 21063125
_Flxq_one 22681882
Flxq_powers_pre 22683677
_Flxq_powu_i 22870566
Flxq_powu_pre 23913870
Flx_valrem 26305036
Flx_shift 26732214
Flv_to_Flx 26922068
_Flxq_pow 27698999
Flxq_pow_Frobenius 27706381
Flx_mul 28047311
Flxq_pow_pre 28456360
Flx_equal 29973661
Flx_divrem 30358213
Flx_gcd 32490198
Flx_div_by_X_x 33033288
Flx_to_ZX_inplace 36780955
Flx_to_ZX 37063598
Flx_rem 41756335
Flx_eval_powers_pre 43736941
Flx_normalize 62146007
Flx_divrem_basecase 63147302
Flx_add 63674153
Flx_to_Flv 63884327
set_Flxq_pre 74217894
Rg_to_Fl 74782591
Flx_divrem_pre 80563981
Flx_gcd_basecase 82953503
Flx_gcd_pre 84593110
Flx_eval_pre 100603638
Flx_get_red_pre 101895478
Flx_sub 139452809
_Flxq_mul 153762646
ZX_to_Flx 167532270
Flxq_mul_pre 195244088
_Flxq_sqr 273960987
Flxq_sqr_pre 281401435
Flx_sqrspec_basecase 282282541
Flx_sqr_pre 282336310
Flx_sqrspec 282559724
Flx_mulspec_basecase 346091278
Flx_mul_pre 377942221
Flx_mulspec 383591171
Flx_shiftip 637311118
Flx_rem_basecase 794099829
Flx_rem_pre 918887437
get_Flx_red 983685984
Flx_mullimb 1150512029
Flx_renormalize 2142352987
get_Fl_threshold 2328023261
Flx_mullimb_ok 3437171071

Generated by: LCOV version 1.16