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 - FlxX.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29732-95c6201d93) Lines: 1195 1473 81.1 %
Date: 2024-11-21 09:08:54 Functions: 149 195 76.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FlxXC_sub 0
FlxXM_to_ZXXM 0
FlxXV_to_FlxM 0
FlxX_Flx_mul 0
FlxX_translate1 0
FlxX_triple 0
FlxY_Flx_translate 0
FlxY_FlxqV_evalx 0
FlxY_Flxq_evalx 0
FlxY_Flxq_evalx_pre 0
FlxqXC_FlxqXQV_eval 0
FlxqXC_FlxqXQV_eval_pre 0
FlxqXC_FlxqXQ_eval 0
FlxqXQ_autpow 0
FlxqXQ_autsum 0
FlxqXQ_auttrace 0
FlxqXQ_div 0
FlxqXQ_div_pre 0
FlxqXQ_invsafe 0
FlxqXQ_matrix_pow 0
FlxqXQ_powers 0
FlxqXQ_powu 0
FlxqXQ_sqr 0
FlxqX_FlxqXQV_eval 0
FlxqX_FlxqXQ_eval 0
FlxqX_Flxq_mul 0
FlxqX_Flxq_mul_to_monic 0
FlxqX_Newton 0
FlxqX_eval 0
FlxqX_fromNewton 0
FlxqX_halfgcd 0
FlxqX_halfres 0
FlxqX_halfres_update 0
FlxqX_powu 0
FlxqX_red 0
FlxqXn_expint 0
FlxqXn_inv 0
FlxqXn_mul 0
FlxqXn_sqr 0
FlxqXn_sqr_pre 0
Kronecker_to_FlxqX 0
ZXXV_to_FlxXV 0
_FlxqXQ_add 0
matJ2_FlxXM 0
matid2_FlxXM 0
zlxX_translate1 0
FlxqX_halfgcd_all 7
FlxqXQ_inv 14
FlxqXQ_inv_pre 14
FlxqXQ_invsafe_pre 14
FlxqX_disc 14
FlxqXQ_auttrace_sqr 20
FlxqXQ_auttrace_mul 27
FlxqXQ_pow 35
FlxqX_resultant 56
FlxqX_resultant_basecase 56
FlxqX_resultant_pre 56
FlxqXQ_minpoly 62
FlxqX_invBarrett 76
FlxqXQ_pow_pre 91
FlxqX_extgcd_halfgcd 130
FlxqX_normalize 133
FlxY_evalx 231
FlxX_Flx_add 245
FlxqXQ_minpoly_pre 262
_FlxqXQ_zero 316
FlxqX_halfgcd_pre 320
polxn_FlxX 320
FlxqX_get_red 371
FlxqXQ_auttrace_pre 375
ZXXT_to_FlxXT 512
FlxqXQ_transmul_init 640
random_FlxqX 695
FlxX_Fl_mul 761
FlxX_double 761
get_FlxqXQ_algebra 761
FlxqX_halfgcd_all_i 844
FlxqX_halfgcd_all_pre 844
FlxX_Laplace 1195
FlxqX_composedsum 1195
FlxqX_fromNewton_pre 1195
FlxqXn_expint_pre 1195
FlxqX_sqr 1260
FlxqX_invBarrett_basecase 1340
FlxqXQ_transmul 1364
FlxqXQ_mul 1947
FlxX_invLaplace 2390
FlxqX_Newton_pre 2390
FlxqXn_inv_pre 2390
Fly_to_FlxY 2513
FlxX_neg 2636
FlxqXM_mul2 3289
FlxqX_FlxqXM_qmul 3289
FlxqX_halfres_split 3362
FlxqXQ_autpow_mul 3735
FlxqX_halfres_basecase 4133
FlxX_integXn 4741
_FlxqXQ_sub 5526
FlxqX_rem 5949
FlxXn_recip 5975
_FlxqXQ_red 6044
FlxqXM_FlxqX_mul2 6651
FlxqX_invBarrett_Newton 6697
FlxqX_halfres_i 7495
FlxY_Flx_div 7516
FlxqX_invBarrett_pre 8037
FlxqX_saferesultant 9009
FlxqX_powu_pre 10248
_FlxqX_sqr 10283
FlxYqq_mul 10316
FlxX_Flx_sub 11729
FlxqXQ_autsum_pre 12192
FlxXC_to_ZXXC 12551
FlxX_blocks 13028
FlxqXn_mulhigh 13028
FlxqX_addmulmul 13580
FlxqX_mulhigh_i 17769
FlxqXQ_autsum_sqr 18841
FlxqX_gcd 23646
FlxqXQ_autsum_mul 30428
FlxqV_roots_to_deg1 32143
FlxqV_roots_to_pol 32143
FlxYqq_pow 39198
FlxqXn_mul_pre 39971
FlxqX_div_by_X_x 53700
FlxqX_div_by_X_x_pre 53700
FlxX_to_Flm 55412
FlxqX_mul 63691
FlxXn_red 65516
FlxqXQ_autpow_pre 69303
FlxX_shift 71732
FlxqXQ_autpow_sqr 72666
FlxqX_FlxqXQ_eval_pre 76763
FlxYqq_sqr 80427
FlxqXQ_powu_pre 82153
FlxX_deriv 82649
FlxqX_safegcd 89130
FlxYqq_redswap 90741
FlxqX_divrem_Barrett 102410
Flxq_addmul_pre 107400
FlxqXQ_powers_pre 108743
FlxX_subspec 109012
FlxqX_divrem_Barrettspec 109285
_FlxqXQ_one 111778
FlxqX_extgcd 133812
FlxqX_extgcd_pre 133826
FlxqX_extgcd_basecase 133827
FlxY_FlxqV_evalx_pre 137257
FlxXV_to_FlxM_lg 139284
FlxX_blocks_FlxM 139284
FlxqX_FlxqXQV_eval_pre 139284
RgX_to_FlxqX 152662
FlxqX_Flxq_mul_pre 155104
FlxqX_gcd_basecase 166986
FlxqX_gcd_pre 176128
_FlxqXQ_mul 180037
FlxX_swap 181472
FlxqX_normalize_pre 190401
Flm_to_FlxX 221457
FlxqXV_prod 223086
FlxX_recipspec 233162
_FlxqXQ_sqr 263448
FlxqXQ_sqr_pre 263889
FlxqX_mulspec 290346
FlxX_to_FlxC 323942
FlxX_lgrenormalizespec 325174
FlxX_add 346161
FlxqX_sqr_pre 355859
FlxqX_saferem 356516
FlxX_to_Flx 365352
FlxqXQ_mul_pre 470036
FlxqX_get_red_pre 493432
_FlxqX_mul 538490
FlxX_sub 624871
FlxqX_Flxq_mul_to_monic_pre 636052
polx_FlxX 690449
pol1_FlxX 760928
FlxqX_divrem 1074108
FlxqX_red_pre 1260809
FlxqX_divrem_pre 1576840
FlxqX_mul_pre 1709659
FlxqX_rem_pre 2016189
Kronecker_to_FlxqX_pre 2355845
zxX_to_FlxX 2681853
FlxX_to_ZXX 2772943
ZXX_to_FlxX 2816156
FlxY_degreex 2886285
FlxqX_divrem_basecase 3145801
get_FlxqX_red 3593659
zxX_to_Kronecker 3775157
zxX_to_Kronecker_spec 4355843
FlxY_evalx_pre 5571148
FlxY_eval_powers_pre 6820583
FlxY_evalx_powers_pre 10165690
FlxX_renormalize 15230764

Generated by: LCOV version 1.16