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 - alglin1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29712-7c8a932571) Lines: 2751 3142 87.6 %
Date: 2024-11-15 09:08:45 Functions: 296 317 93.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FlkM_inv 0
FpM_intersect 0
FpM_invimage 0
RgM_indexrank_FqM 0
RgMs_structelim 0
RgV_deplin 0
ZM_imagecompl 0
ZM_inv_ratlift 0
ZabM_inv_ratlift 0
_F2xqM_mul 0
_copy 0
add_slices 0
eigen 0
gen_gerepile_gauss_ker 0
gen_matcolinvimage 0
gen_matmul_sw 0
gerepile_gauss 0
gerepile_gauss_ker 0
gerepile_mat 0
reducemodlll 0
subtract_slices 0
F2m_image 7
F2xqM_det 7
F2xqM_image 7
F2xqM_indexrank 7
F2xqM_rank 7
F2xqM_suppl 7
FlxqM_indexrank 7
FqM_indexrank 7
image2 7
reducemodinvertible 7
FpM_FpC_invimage_gen 8
F2m_suppl 14
F2xqM_deplin 14
FlxqM_FlxqC_gauss 14
FlxqM_suppl 14
FpM_FpC_gauss 14
FqM_FqC_gauss 14
RgC_inflate 14
F2xqM_F2xqC_invimage 21
F2xqM_F2xqC_mul 21
F2xqM_gauss 21
F2xqM_gauss_pivot 21
F2xqM_invimage 21
F2xqM_ker 21
FlxqM_FlxqC_invimage 21
FlxqM_gauss 21
FlxqM_image 21
FqM_FqC_invimage 21
FqM_gauss 21
QM_rank 21
gen_get_suppl 21
gen_suppl 21
F2xqM_F2xqC_gauss 28
FlxqM_det 28
FlxqM_ker 28
RgM_RgC_invimage_FpC 28
RgM_deplin_i 28
RgM_div 28
RgM_indexrank_FpM 28
gen_matinv_upper 28
F2xqM_inv 35
F2xqM_ker_i 35
FlxqM_FlxqC_mul 35
FlxqM_deplin 35
FlxqM_rank 35
FpM_gauss 35
FpM_invimage_gen 35
RgM_image_FqM 35
gen_matrank 35
FlxqM_invimage 42
FqM_invimage 42
RgM_det_FqM 42
RgM_inv_FqM 42
F2Ms_colelim 46
FqM_image 49
RgM_RgC_solve_FpC 49
RgM_deplin_FqM 49
RgM_rank_FqM 49
F2m_indexrank 53
RgM_is_symmetric_cx 53
eigen_err 53
FlxqM_inv 56
FpM_rank 56
FqM_FqC_mul 63
gen_invimage_CUP 63
FqM_det 70
FqM_rank 70
RgM_suppl_FpM 70
gen_matcolinvimage_i 71
gen_matinv_upper_ind 77
gen_matinvimage 77
F2xqM_gauss_gen 84
FqM_deplin 84
RgM_invimage_FpM 84
imagecompl 84
imagecompl_aux 84
FlxqM_gauss_i 91
RgM_ker_FqM 91
FqM_inv 98
RgM_solve_FpM 98
Flm_suppl 105
FqM_gauss_pivot_gen 105
RgM_deplin_FpM 105
gen_deplin_echelon 105
QM_deplin 119
FqM_ker_gen 126
RgM_rank_FpM 126
FqM_gauss_gen 133
ZabM_pseudoinv 140
gen_det_CUP 140
gen_invimage 140
mateigen 144
RgMs_structelim_col 147
gen_colei 154
RgM_suppl_fast 175
suppl 175
QM_det 203
matimage0 217
det_init_max 252
gen_det 294
FpM_det_gen 315
RgM_rank_fast 315
rank 315
RgM_invimage 364
RgM_invimage_fast 364
RgM_deplin 385
RgM_deplin_fast 385
deplin 385
coeff_det 406
gen_det_i 420
gauss 434
det_bareiss 462
RgM_image_FpM 525
RgM_ker_FpM 539
gen_gauss_CUP 559
ZabM_ker 623
RgM_Fp_init3 644
ZabM_ker_check 655
det_develop 658
gen_pivots_CUP 904
FpM_gauss_pivot_gen 1214
gauss_pivot_ker 1271
ker_aux 1271
FlkM_ker 1276
FpXM_ratlift 1276
QM_indexrank 1344
FlxqM_gauss_pivot 1427
F2xqM_mul 1449
row_count_non_zero 1456
col_count_non_zero 1470
FqM_gauss_pivot 1504
RgM_det_FpM 1519
ZabM_inv 1820
ZabM_true_Hadamard 1820
gen_Gauss_pivot 1891
gen_ker 1906
ZabM_inv_slice 1978
ZabM_inv_worker 1978
RgM_inv_FpM 2051
RgM_RgC_invimage_fast 2184
gen_rsolve_upper_2 2256
RgM_RgC_invimage 2289
ZabM_indexrank 2387
inverseimage 2450
FpM_ker_gen 2646
FpM_gauss_gen 2749
gen_pivots 2788
FlxqM_ker_i 2994
gen_gauss 3057
FlkM_adjoint 3201
gen_ker_echelon 3938
gen_matneg 4015
gen_solve_upper_1 4085
FlmV_recover_pre 4477
gauss_get_pivot_NZ 4501
RgM_Fp_init 4578
FpM_det 4676
ZM_pseudoinv 5019
FqM_suppl 5319
QM_image 5411
vecnorml1 5467
gen_rsolve_upper 5840
gen_ker_i 5872
RgM_image_fast 6034
image 6034
QM_gauss 6146
gen_lsolve_upper_2 6180
QM_image_shallow 6181
ZM_indeximage 6181
indeximage0 6181
_FqM_mul 6349
QM_gauss_i 6475
QC_normalize 6482
fill_wcol 7445
rem_singleton 7638
gen_lsolve_lower_unit_2 7858
ZM_det2 8617
RgM_ker_fast 9198
ker 9198
FqM_ker 11226
FqM_ker_i 11310
gen_CUP 11480
gen_Gauss 13612
gen_lsolve_upper 14256
gen_zeromat 14885
closemodinvertible 14979
_FlxqM_mul 16072
QM_ker 16709
gen_rsolve_lower_unit_2 17183
indexcompl 17592
gen_colneg 19326
RgM_Hadamard 19996
gen_lsolve_lower_unit 20118
ZM_det_slice 20875
ZM_det_worker 20875
indexrank_all 21779
gen_CUP_basecase 22429
_FpM_mul 22741
det0 26593
gen_echelon 27879
RgM_det_fast 33900
FpM_indexrank 39191
gen_rsolve_lower_unit 40198
Flm_image 40859
ZM_inv0 43504
perm_complete 43558
matker0 46221
gen_zerocol 46734
RgM_solve_fast 48789
ZM_ker 49269
detint 49964
gen_matscalmul 54434
Flm_indexrank 56405
det_simple_gauss 58280
_gen_get_col 61724
QM_inv 64227
parallelogramarea 64282
ZM_ker_i 65103
ZM_ker_chinese 69559
FpM_ratlift_worker 74444
gauss_pivot 75889
RgM_indexrank_fast 77509
indexrank 77509
gen_matsub 78576
gen_matmul 85117
gen_matmul_classical 85117
gen_matmul_i 85117
FqM_mul 86037
RgM_det2 94081
rem_col 95967
ZM_det3 100472
ZM_ker_filter 105226
ZM_det 130653
ZM_ker_slice 131838
ZM_ker_worker 131838
det2 134171
_gen_addmul 145653
FlxqM_mul 158058
RgM_pivots 167543
ZM_detmult 169271
gauss_get_pivot_padic 201792
gen_matcolmul 206341
det 246213
FpM_intersect_i 263082
FpM_suppl 267968
init_suppl 269535
get_suppl 269537
FpM_FpC_invimage 296913
FpM_image 323641
FpM_inv 347431
FpM_gauss_i 347480
gen_colscalmul 354675
image_from_pivot 364603
FpM_deplin 454860
RgM_inv 527177
RgM_inv_fast 527177
FpM_gauss_pivot 630850
ZM_inv1 644083
gen_matcolmul_i 644421
gen_colsub 681846
RgM_true_Hadamard 717414
ZM_inv2 724567
ZM_adj_ratlift 755034
can_ratlift 762155
ZM_inv_slice 790272
ZM_inv_worker 790272
get_pivot_fun 801809
FpM_ker 841354
RgM_RgC_solve_fast 1183429
RgM_solve_realimag 1215619
RgM_solve 1232218
get_col 1265613
FpM_init 1275904
FpM_ker_i 1304444
FpM_init3 1304445
RgM_inv_upper 1616827
RgM_solve_basecase 1693399
ZM_gauss 1742323
ZM_gauss_i 1742323
ZM_indexrank 1773307
init_indexrank 1950872
indexrank0 1966474
ZM_gauss_slice 1999214
ZM_gauss_worker 1999214
ZM_inv 2065343
ZM_inv_i 2129571
ZM_rank 2224891
init_gauss 2408440
split_realimag 2570284
gauss_get_pivot_max 2592627
FpM_ratlift_parallel 2739088
RgM_inv_upper_ind 3229535
ZM_count_0_cols 4244756
ZM_pivots 4258341
split_realimag_col 4517453
_submul 18289070

Generated by: LCOV version 1.16