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 - lll.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29644-f1a46412a2) Lines: 1330 1636 81.3 %
Date: 2024-10-12 09:06:38 Functions: 125 128 97.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Babai 0
RgM_flop 0
fplll 0
matkerint0 28
lllgramkerim 35
lllkerim 35
kerint 42
lllgen 42
lllgramgen 42
lllgramkerimgen 42
lllkerimgen 42
qflllgram 63
kerint0 70
incrementalGSgen 168
lllallgen 168
lllgramallgen 168
lllint 183
REDgen 196
do_SWAPgen 196
qflllgram0 245
qflll0 301
pslg 504
ZM_flattergram 961
ZM_flattergram_rank 961
gramschmidt_upper 1312
RgM_Cholesky_dynprec 2967
flattergram_i 2967
ZM_to_RM 4111
fplll_heuristic 4111
gc_lll 4665
lllgram 9089
truncexpo 11502
ZC_to_RC 15591
dpeM_diagonal_shallow 20151
RgM_flip 34904
lllgramint 36439
lllall 36699
get_gaussred 44190
RgM_is_square_mat 45828
dpetor 93663
setG2_heuristic 144478
realsqrdotproduct 154056
setG_heuristic 162040
Babai_heuristic 220292
dpe_negz 243653
submulzu2n 262957
addmulzu2n 270968
mulshift 315966
absrsmall2 320494
dpe_addmuluz 342549
dpe_submuluz 411734
rotateG 419042
absrsmall 554845
ZM_is_knapsack 605740
ZM_flatter_rank 615813
fplll_flatter 616774
ZM_flatter 617814
dperotate 651112
addmuliu642n 668569
u64toineg 668569
submuliu642n 684655
lll_trivial 769420
dpe_muluz 798767
realdotproduct 930581
get_gramschmidt 1081966
lll 1174724
ZM_is_lower 1182163
flat 1334865
potential 1334865
sizered 1334865
drop 1337832
affii_or_copy_gc 1386977
dpe_abssmall 1386988
submulshift 1493610
fplll_dpe 1567413
dpe_addz 1941310
vectail_inplace 2054063
fplll_fast 2067336
lll_finish 2127519
dbldotsquare 2438719
gramschmidt_dynprec 2669728
affdbldpe 3134823
cget_dpemat 3134828
addmuliu2n 4043973
mpabscmp 4077377
submuliu2n 4131514
ZM_is_upper 4176347
addmulziu 4575945
Babai_dpe 4582823
GS_extraprec 4687521
condition_bound 4687521
ZM2_lll_norms 4698055
gsisinv 5147424
dpe_cmp 5191411
dpe_cmpmul 5191412
lllfp 5265369
spread 5803701
submulziu 5918311
ZM_lll_norms 6949112
nbits2prec64 7410316
cget_dblmat 8269319
addmuliu64_inplace 9436968
submuliu64_inplace 9494759
pari_rint 10698827
rotateG_fast 11441269
update_alpha 11860398
cget_dpevec 13034063
dpe_divz 13943280
dpe_abscmp 14384189
setG2_fast 16840534
addzi 17768887
subzi 18512454
u64toi 19616382
affidpe 20505084
setG_fast 22388655
set_line 24623192
affdpe 25539322
Babai_fast 29904077
rotate 31547528
dblrotate 34323647
cget_dblvec 34453082
dpe_normalize 47868595
dpe_submulz 51478346
dpe_subz 53507777
dpe_mulz 56669615
dpe_normalize0 107948411
dbldotproduct 117081872
itodbl_exp 160885015

Generated by: LCOV version 1.16