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 - Qfb.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30374-15b900da95) Lines: 1108 1229 90.2 %
Date: 2025-07-08 09:22:12 Functions: 133 143 93.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
qfb_1 0
qfbcompraw_i 0
qfisolvep 0
qfr3_1 0
qfr3_powraw 0
qfr5_1 0
qfr_1_fill 0
qfr_red 0
qfrsolvep 0
quadgen 0
_qfimulraw 7
_qfisqrraw 7
qfbinv 7
qfi_rho 7
qfipowraw 7
qfr5_powraw 7
qfrinvraw 7
qfrpowraw 14
qfbpowraw 21
qfr5_pow 21
qfr_1 35
qfr_disc 35
qfrsqr0 35
qfr_red_av 63
qfb_comp_gen 84
qfrpow 112
qfr5_init 140
qfr3_init 371
qfr_red_basecase_i 427
qfr_red_i 427
qfrcomp0 441
qfr5_to_qfr 483
quadgen0 574
nupow 1008
quadpoly0 1036
quadpoly 2051
qfr_data_init 2170
check_quaddisc_imag 2177
qfbcompraw 2198
qfr3_pow 4557
mul_nucomp 4739
famat_divsqr 5299
qfr_1_by_disc 6867
check_quaddisc_real 6916
qfbcornacchia 7630
qfbsolve_all 10227
mul_nudupl 11606
nudupl 11648
qfr3_to_qfr 31920
cornacchia2_sqrt 42714
allsols 48046
qfbred 53218
qfbred0 55031
cornacchia 55244
GL2_qfb_equal 61068
pqfbred_basecase 61492
qfb3_SL2_apply 61913
Qfb0 77231
pqfbred_iter_1 124020
pqfbred_rec 124020
qfb_minexpi 125056
qfbsqr 130923
primeform 135767
qfbcomp 136887
qfb3 139081
check_quaddisc 151919
qfr5_dist 184688
qfr_redsl2 209575
qfr_to_qfr5 217728
qfisolvep_all 223037
quadpoly_i 241304
quadpoly_ii 243348
SL2_div_mul_e1 344317
nucomp 400722
parteucl 412328
qfbredsl2 519893
qfbsqr_i 697020
qfi_1 763695
qfrsolve_normform 770126
qfi_1_by_disc 775961
is_qfi 814212
qfisqr0 827908
qfb_inv 933597
qfi_red_1_b0 947400
qfr_redsl2_basecase 979701
qfr3_comp 1009397
qfr3_compraw 1009397
quadpoly_bc 1019309
setq_b0 1061716
qfr3_rho 1139446
qfr3_red 1172847
cornacchia2 1381727
qfbpows 1396436
cornacchia2_i 1423561
lastqi 1423561
qfisolve_normform 1445677
qfbpow 1495609
qfr5_comp 1735216
qfr5_compraw 1735230
known_prime 1862929
pqfbred_1 1921185
qfr5_red 1952895
check_qfbext 1959754
is_minimal 2046352
qfsolve_normform 2215803
normforms 2620772
REDB 2783988
qfbsolve_primitive 2828272
qfb_initrd 2838497
qfbsolve 2838503
qfbsolve_primitive_i 2843804
redimagsl2 4872573
lti2n 4940497
qfi_redsl2 5182892
qfi_redsl2_basecase 6773240
qfr5_rho 8486681
fix_expo 10217928
qfr_rhosl2 10810674
primeform_u 12611515
qfr_rhosl2_i 13379357
REDBU 14124091
rho_get_BC 14152531
_qfimul 14319622
qfbpow_i 15295208
qfbred_i 16027011
qfipow 16790704
dvmdii_round 16908077
ab_isreduced 17712973
qfi_red 23628897
qfb_equal 23783631
qfbcomp_i 27857329
_qfisqr 33271617
qfb_sqr 35228581
qficomp0 75584744
qfb_comp 78326642
setq 99195612
qfi_red_av 100198073
qfi_red_1 100222073
qfi_red_basecase_av 100397395
qfi_red_fast 105588438
qfb_maxexpi 105897773
sREDB 114750905
dvmdsu_round 114756148

Generated by: LCOV version 1.16