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 29806-4d001396c7) Lines: 1330 1636 81.3 %
Date: 2024-12-22 09:08:28 Functions: 125 128 97.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Babai 0
Babai_dpe 4585385
Babai_fast 29913903
Babai_heuristic 220292
GS_extraprec 4689331
REDgen 196
RgM_Cholesky_dynprec 2967
RgM_flip 34904
RgM_flop 0
RgM_is_square_mat 45828
ZC_to_RC 15591
ZM2_lll_norms 4700399
ZM_flatter 618256
ZM_flatter_rank 616255
ZM_flattergram 961
ZM_flattergram_rank 961
ZM_is_knapsack 606142
ZM_is_lower 1182558
ZM_is_upper 4178712
ZM_lll_norms 6953732
ZM_to_RM 4111
absrsmall 554845
absrsmall2 320494
addmuliu2n 4040937
addmuliu642n 668569
addmuliu64_inplace 9438234
addmulziu 4576034
addmulzu2n 270968
addzi 17769209
affdbldpe 3136894
affdpe 25548593
affidpe 20514614
affii_or_copy_gc 1387078
cget_dblmat 8276182
cget_dblvec 34480185
cget_dpemat 3136896
cget_dpevec 13042488
condition_bound 4689332
dbldotproduct 117112631
dbldotsquare 2440560
dblrotate 34333161
do_SWAPgen 196
dpeM_diagonal_shallow 20228
dpe_abscmp 14389919
dpe_abssmall 1387089
dpe_addmuluz 342556
dpe_addz 1941340
dpe_cmp 5193420
dpe_cmpmul 5193423
dpe_divz 13949067
dpe_muluz 798797
dpe_mulz 56683904
dpe_negz 243673
dpe_normalize 47879414
dpe_normalize0 107976519
dpe_submuluz 411757
dpe_submulz 51490584
dpe_subz 53520007
dperotate 651112
dpetor 93858
drop 1338556
flat 1335590
flattergram_i 2967
fplll 0
fplll_dpe 1568449
fplll_fast 2069049
fplll_flatter 617216
fplll_heuristic 4111
gc_lll 4665
get_gaussred 44232
get_gramschmidt 1082619
gramschmidt_dynprec 2671177
gramschmidt_upper 1312
gsisinv 5149451
incrementalGSgen 168
itodbl_exp 160938128
kerint 42
kerint0 70
lll 1174954
lll_finish 2129355
lll_trivial 769898
lllall 36699
lllallgen 168
lllfp 5268209
lllgen 42
lllgram 9089
lllgramallgen 168
lllgramgen 42
lllgramint 36439
lllgramkerim 35
lllgramkerimgen 42
lllint 183
lllkerim 35
lllkerimgen 42
matkerint0 28
mpabscmp 4080137
mulshift 315966
nbits2prec64 7414249
pari_rint 10701858
potential 1335589
pslg 504
qflll0 301
qflllgram 63
qflllgram0 245
realdotproduct 930581
realsqrdotproduct 154056
rotate 31556339
rotateG 419042
rotateG_fast 11444389
setG2_fast 16845452
setG2_heuristic 144478
setG_fast 22397981
setG_heuristic 162040
set_line 24633773
sizered 1335591
spread 5806160
submuliu2n 4127033
submuliu642n 684655
submuliu64_inplace 9496657
submulshift 1493610
submulziu 5918644
submulzu2n 262957
subzi 18512999
truncexpo 11502
u64toi 19619546
u64toineg 668569
update_alpha 11863566
vectail_inplace 2055465

Generated by: LCOV version 1.16