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 29814-7ab976b450) Lines: 2454 2766 88.7 %
Date: 2024-12-24 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
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 1679
FlxqX_dotproduct 2058
Flx_sqrspec_sqri 2261
Flm_to_FlxV 2296
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 4391
FlxM_to_ZXM 4611
Flxq_trace 4696
Flx_FlxqV_eval 5103
Flx_mulspec_halfmulii 5454
Flx_FlxM_qmul 6345
FlxM_mul2 6517
gener_Flxq 7187
Flx_powu_pre 7937
Flx_is_l_pow 8397
Flx_halfres_update_pre 9405
Flx_mulspec_mulii 10027
Flx_sqrspec_quartsqri 10221
Flx_Fl2_eval_pre 10402
Flv_inv_pre 10851
Flx_sqrspec_sqri_inflate 11501
Flv_inv_inplace 12017
zl_Xp1_powu 12017
int_to_Flx 12302
init_invlaplace 12514
Flx_diff1 13447
Flx_halve 14229
Flx_translate1 16107
_Flxq_s 16890
_Flxq_inv 18980
Flx_halfres_split 19282
FlxM_eval_powers_pre 19452
Flxq_sqrtn 20110
Flxq_autpow_msqr 20767
Flx_invBarrett_Newton 23116
FlxM_Flx_mul2 24752
Flxq_lroot_pre 25053
zlx_translate1 25259
Flx_Laplace 27268
Flx_composedsum 27479
Flx_translate1_basecase 28201
FlxV_composedsum 28911
ZM_unpack_FlxqM 29494
Flx_mod_Xn1 30305
Flxq_autpow_pre 31997
FlxV_Flc_mul 34482
Fl_Flxq_log 35484
Flxq_sumautsum_msqr 40494
_Flxq_rand 41035
translate_basecase 41366
kron_unpack_Flx 42953
Flxq_minpoly 44433
Flxq_autpow_sqr 46403
Flv_inv_indir 49730
kron_pack_Flx_spec 53832
Flx_Newton 53967
Flx_invLaplace 54225
Flxn_div 54986
Flxn_div_pre 55025
ZM_unpack_FlxqM_bits 58900
FlxM_pack_ZM 58981
Fl2_sqrt_pre 67676
Flx_to_FlxX 71409
get_Flxq_field 73605
set_Flxq 73625
Flx_is_smooth 74256
Fl2_sqrtn_pre 74624
Flxn_mul 75309
Flx_Frobenius 86497
Flx_matFrobenius_pre 86528
FlxqM_mul_Kronecker 88394
Flx_mulspec_quartmulii 97116
Flxq_order 97239
Flxq_autsum_pre 99234
Flv_Flm_polint 101077
Flxq_autsum_sqr 105651
int_to_Flx_quart 107337
Flx_fromNewton 109334
Flxn_expint 109338
FlxC_to_ZXC 109566
_Fl2_rand 111109
Flxq_autsum_mul 113368
FlxqV_dotproduct_pre 113589
Flxq_lroot_fast_pre 113589
FlxM_pack_ZM_bits 117719
Flx_is_smooth_pre 118906
Fl2_norm_pre 125960
Flx_is_smooth_squarefree 127279
Flx_invBarrett_basecase 134232
Flx_extgcd_halfgcd 147556
Flx_splitting 147667
Flx_Fl_sub 150914
Flv_invVandermonde 152995
Flx_inflate 158444
Flx_invBarrett_pre 158654
Flxq_log 164469
_Flxq_equal0 165726
Flxq_matrix_pow_pre 170598
FlxV_to_Flm 171818
Fl2_inv_pre 192638
Flxq_sumautsum_pre 200606
Flx_to_int_quartspec 204453
Flxn_recip 216897
Flxq_sqrt 225383
Flxq_sqrt_pre 225383
Flxq_powers 232067
Flxq_div 237696
FlxC_eval_powers_pre 251058
get_Flxq_star 281811
Flx_mulspec_mulii_inflate 283431
Flxq_sumautsum_sqr 284170
Z_mod2BIL_Flx 294932
FlxT_red 297145
Z_mod2BIL_Flx_2 297862
Flxq_inv 345515
Flx_sqr 356107
Flv_polint 368287
FlxV_to_FlxX 397971
Flxq_issquare 403982
Flx_addmulmul 416903
Flx_deflate 419065
Flx_integXn 422507
bounded_order 422696
Fl2_equal1 439180
Flxq_norm 442908
Flxq_powu 486765
Flx_to_int_halfspec 510002
Flxn_mulhigh 516009
Flx_blocks 516093
Flxq_easylog 548291
_Flxq_neg 553759
_Flx_add 578752
Flx_eval2BILspec 581752
int_to_Flx_half 594205
FlxV_to_ZXV 600280
Flx_divrem_Barrett 604945
Flv_inv 623629
Flv_producttree 624831
Flv_inv_i 635639
Flxq_auttrace_sqr 635754
Flxq_invsafe 656112
_Fl2_pow 656195
Fl2_pow_pre 656200
Flx_Flv_multieval_tree 665130
Flx_sqrspec_Kronecker 683842
Flv_roots_to_pol 737467
Flxq_auttrace_mul 762983
Flxq_minpoly_pre 784122
Flx_Flxq_eval 786189
Flx_halfgcd_pre 845934
Flx_extgcd 852866
kron_pack_Flx_spec_half 857537
Flx_subspec 897713
Flx_divrem_Barrettspec 905502
monomial_Flx 912753
Flxq_pow 930809
Flxq_auttrace_pre 934735
Flx_mulhigh_i 937471
Flx_triple 1049005
Flx_halfgcd_all_i 1102496
Flx_halfgcd_all_pre 1102500
Flx_halfres_basecase 1109009
Flx_halfres_i 1128292
FlvV_polint_tree 1386352
_Flxq_rmul 1577339
Flxq_transmul_init 1691844
Rg_to_F2 1706867
Flx_neg_inplace 1745517
_Flxq_red 1773458
Flx_red 1877197
_Fl2_mul 1886889
Fl2_mul_pre 1915002
Flx_lgrenormalizespec 2131788
RgX_to_Flx 2355305
Flx_Flxq_eval_pre 2393908
Flxq_div_pre 2416227
Flx_double 2443754
random_Flx 2579637
Z_to_Flx 2673760
Flxq_sqr 2750871
FlxV_to_ZXV_inplace 2923331
Flx_negspec 3451405
Flx_neg 3451411
Rg_to_Flxq 3564736
Flx_addshift 3660078
ZXT_to_FlxT 3798350
Flxq_transmul 4084057
Flx_val 4172149
Flxq_inv_pre 4381508
Flx_resultant 4659374
Fl2_sqr_pre 4821346
_Fl2_sqr 4821378
Flxn_mul_pre 5062824
Flx_mod_Xnm1 5097631
Flxq_invsafe_pre 5483306
kron_unpack_Flx_bits_wide 5539000
kron_unpack_Flx_bits_narrow 5652154
zx_to_Flx 6082709
Flxn_red 6229495
Flx_extgcd_pre 6336160
Flx_extgcd_basecase 6336164
Flx_addspec 7121686
Flx_recipspec 7122596
mkF2 7190907
Flx_mulspec_Kronecker 7219313
Flx_Fl_mul 7261300
maxbitcoeffpol 8328025
Flx_is_squarefree 8526970
Flx_Fl_add 9681275
Flx_resultant_basecase_pre 10192943
Flx_resultant_pre 10195014
_Flx_mul 10482815
Flx_Fl_mul_to_monic 11947892
Flx_blocks_Flm 12767320
FlxV_to_Flm_lg 12768630
Flx_FlxqV_eval_pre 12967140
Flxq_mul 13185351
Flx_Frobenius_pre 13661494
Flx_get_red 14231388
Flx_Fl_mul_pre 18307537
Flv_inv_pre_inplace 18371830
Flv_inv_pre_indir 18987642
Fl_to_Flx 19868467
Flx_eval 20395221
kron_pack_Flx_spec_bits 20735036
Flx_deriv 21066466
_Flxq_one 22184995
Flxq_powers_pre 22185585
_Flxq_powu_i 22871429
Flxq_powu_pre 24103787
_Flxq_pow 25039354
Flxq_pow_Frobenius 25046711
Flv_to_Flx 25184750
Flxq_pow_pre 25972070
Flx_valrem 26296791
Flx_shift 26732869
Flx_mul 27655733
Flx_equal 29269517
Flx_divrem 30256894
Flx_gcd 32416593
Flx_div_by_X_x 33030597
Flx_to_ZX_inplace 36404038
Flx_to_ZX 37066313
Flx_rem 41767584
Flx_eval_powers_pre 43911986
Flx_divrem_basecase 61684957
Flx_normalize 62156560
Flx_add 62910028
Flx_to_Flv 65626087
set_Flxq_pre 71426932
Rg_to_Fl 72639687
Flx_divrem_pre 79106911
Flx_gcd_basecase 82870383
Flx_gcd_pre 84507303
Flx_get_red_pre 98758629
Flx_eval_pre 100660553
Flx_sub 137881424
_Flxq_mul 151965490
ZX_to_Flx 167372359
Flxq_mul_pre 192798663
_Flxq_sqr 271367655
Flxq_sqr_pre 279322157
Flx_sqrspec_basecase 280115966
Flx_sqr_pre 280356221
Flx_sqrspec 280559156
Flx_mulspec_basecase 342210189
Flx_mul_pre 373886173
Flx_mulspec 379401684
Flx_shiftip 630792902
Flx_rem_basecase 790709028
Flx_rem_pre 914403855
get_Flx_red 977780698
Flx_mullimb 1154188011
Flx_renormalize 2117818531
get_Fl_threshold 2307980549
Flx_mullimb_ok 3377636443

Generated by: LCOV version 1.16