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 - kernel/none - level1.h (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29804-254f602fce) Lines: 607 765 79.3 %
Date: 2024-12-18 09:08:59 Functions: 219 285 76.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Mod64 0
addiiz 0
addirz 0
addriz 0
addsiz 0
addsrz 0
addssz 0
affectsign 0
affsz 0
diviiz 0
divirz 0
divisz 0
divriz 0
divrsz 0
divsi_rem 0
divsiz 0
divsrz 0
divss 0
divss_rem 0
divssz 0
dvdisz 0
dvdiuz 0
dvmdiiz 0
dvmdis 0
dvmdisz 0
dvmdsi 0
dvmdsiz 0
dvmdss 0
dvmdssz 0
get_avma 0
mod64 0
modisz 0
modsiz 0
modss 0
modssz 0
mpaddz 0
mpceil 0
mpfloor 0
mpmulz 0
mpsubz 0
muliiz 0
mulirz 0
mulriz 0
mulsiz 0
mulsrz 0
mulssz 0
rdivis 0
rdivsi 0
remiiz 0
remis 0
remisz 0
remsi 0
remsiz 0
remss 0
remssz 0
sdivss_rem 0
shiftl 0
shiftlr 0
subirz 0
subisz 0
subriz 0
subrsz 0
subsiz 0
subsrz 0
subssz 0
varnmin 0
subiiz 28
mptrunc 49
real_m2n 126
absr 140
varnmax 203
mod32 259
dvdsi 371
real_m1 455
divrrz 501
mpcopy 707
ugcdui 2737
dvdiiz 3246
stack_calloc_align 3318
uabsdivui_rem 15833
addss 25067
subss 25067
subuu 25067
dvdis 33569
cmprs 40996
cgetr_block 42528
sdivsi 102150
stack_calloc 109136
gc_stoi 150958
dvdui 167195
subis 170944
mulrrz 192514
Mod32 199255
ugcdiu 211386
Fl_ellj_pre 223464
mod16 236389
truedivis 249240
mindd 254901
Mod16 277446
cmpri 282127
affiz 282555
uutoineg 319107
cgetg_block 372709
gc_utoi 469155
dvdiu 576535
mpdiv 665072
mpaff 674453
cmpsr 814589
rdivss 839647
real2n 1058354
real_0 1064991
addri 1102142
equalis 1103830
equalsi 1104051
gc_utoipos 1119788
mpround 1215585
absrnz_equal2n 1276478
umodui 1289578
subrrz 1296706
cmpss 1300662
addrrz 1307127
Mod2 2024379
Mod8 2070075
mpcmp 2141135
gc_int 2567015
mulru 2766389
equaliu 2948862
equalui 2948863
itou_or_0 2995321
subir 3003826
maxdd 3123314
negr 3509044
ceildivuu 3713569
Fl_center 4023647
cmpis 4091577
cmpsi 4322711
absrnz_equal1 4508032
mod4 4674207
real_1_bit 4674503
maxuu 4749178
umuluu_or_0 5523751
umuluu_le 5630478
subsi 5894778
subri 6016017
affsi 6167902
truedivsi 6201919
gc_NULL 6957140
mulrs 7181596
fractor 7374797
cmpir 9222723
cmpiu 9665770
cmpui 9665817
affectsign_safe 10517586
uabsdiviu_rem 11892741
addrs 12130482
smodss 12453098
mod8 12902700
rdivii 13001941
rdiviiz 13045633
utor 13418065
affur 13418165
mpabs_shallow 13431858
divii 14010109
subrs 16281392
dvdii 16545358
Fl_halve 16963493
modis 19602559
smodis 21139673
evalvalser 21442008
int_bit 21614338
itos_or_0 24006968
Fl_div 33078379
abscmpiu 35858298
abscmpui 35858368
gc_ulong 36241915
mulri 37872657
mpexpo 38574468
absequaliu 41840023
absequalui 43588449
Mod4 44560508
evalprecp 44639189
modsi 45222660
affui 45447943
truedivii 46026251
stack_malloc 46110927
gc_bool 48388666
umodi2n 49131884
sdivsi_rem 51424824
stack_malloc_align 54709649
affrr_fixlg 55170159
Fl_addmulmul_pre 55906088
mod2 60275827
absi_shallow 61529310
remlll_pre 74914511
minuu 76222006
evalvalp 78778094
Fl_triple 89592052
mpsqr 90060799
Fl_sqr 92030464
addiu 98112783
mod2BIL 100818363
addui 101589382
fixlg 102932130
mpodd 112561623
icopyspec 115276708
togglesign_safe 124579662
subiu 128804892
real_1 130111813
subui 132977112
mpshift 152865099
udivuu_rem 158853294
varncmp 163729978
dvmduBIL 166266474
itou 174778045
shiftr 177553933
addis 179607608
gc_double 179960854
vali 184167166
gc_long 239799150
mpsub 250199503
utoineg 262868341
cgetineg 263723851
rtor 296468321
addsi 304786991
muliu 354744839
Fl_double 448441803
itos 455615250
mulis 463851267
real_0_bit 472002071
addir 474062420
shiftr_inplace 475107613
affsr 489316117
stor 489621795
mpadd 568595799
negi 619863872
itor 705537548
Fl_neg 705876161
umodsu 720661636
stoi 734587908
expu 781770028
lg2prec 798042507
mpmul 830319736
rcopy 892436853
mpneg 897941013
affii 924079023
subrr 988561071
cgetg_copy 1294105318
cmpuu 1432317952
minss 1687287178
cgetr 1836045815
togglesign 1915319437
Fl_sqr_pre 2053426487
absi 2056237002
mpabs 2126473672
expi 2127867882
setabssign 2192688343
nbits2lg 2354943885
Fl_mul 2367009928
remii 2533599592
addrr 2849136186
adduu 3387681343
stackdummy 3447113622
Fl_mul_pre 3923268592
Fl_add 4296281673
leafcopy 4907931358
shift_right 5594007267
dvmdsBIL 6980498584
Fl_sub 7184282806
shift_left 7378332805
Fl_addmul_pre 7459476303
subii 7509861741
uutoi 8625265740
icopy 8854820842
maxss 9541415909
utoi 11641497030
addii 12103856283
evalexpo 13100235573
utoipos 13890756926
gc_const 14577261029
cgetipos 16004662158
cgetg 24005553915
cgeti 26095144047
new_chunk 90243321397
evallg 92406912148
set_avma 124617786329

Generated by: LCOV version 1.16