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 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 - F2x.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21351-66b5338) Lines: 1436 1548 92.8 %
Date: 2017-11-22 06:21:08 Functions: 174 185 94.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2m_to_Flm 0
F2v_to_Flv 0
F2xC_to_FlxC 0
F2xX_F2x_add 0
F2xY_F2xq_evalx 0
F2x_deflate 0
F2xqX_powu 0
F2xq_powu 0
Flm_to_F2m 0
_F2xqX_mul 0
_F2xqX_sqr 0
F2xqXQ_inv 7
F2xqXQ_invsafe 7
F2xqXQ_pow 7
F2xqX_extgcd 7
F2xq_conjvec 7
F2m_rowslice 14
F2xq_log_Coppersmith 14
F2xq_log_index 14
check_kernel 14
smallirred_F2x 14
F2v_slice 28
F2xq_log_Coppersmith_rec 28
monomial_F2x 35
_F2xqXQ_zero 56
F2xqXQV_red 63
F2m_to_mod 70
F2xq_log_find_rel 90
F2xqX_invBarrett_Newton 101
F2xq_log_from_rel 126
F2xq_log_Coppersmith_d 152
gener_F2xq 154
F2x_to_F2xX 168
RgM_to_F2m 217
F2x_eval 224
get_F2xq_field 252
FlxXC_to_F2xXC 287
polx_F2xX 357
F2xq_order 378
_F2xq_inv 399
F2xqX_invBarrett_basecase 408
Flv_to_F2v 518
_F2xq_s 672
F2xXC_to_ZXXC 714
_F2xq_neg 728
F2x_halfgcd 775
F2x_halfgcd_i 775
F2xqX_invBarrett 813
F2x_get_red 819
_F2xq_equal0 910
RgX_to_F2x 1141
F2c_to_mod 1561
F2x_shiftneg 1742
F2xq_log_Coppersmith_worker 2044
FlxX_to_F2xX 2128
F2xC_to_ZXC 2331
F2xX_to_ZXX 2408
_F2xq_rmul 2506
F2xqX_get_red 2555
F2xqXQ_auttrace 2639
random_F2xqX 2758
ZXX_to_F2xX 3045
F2xqX_divrem_Barrett_noGC 3383
F2xqXQ_auttrace_sqr 4613
RgV_to_F2v 4753
F2xqXQ_auttrace_mul 6874
F2xqXQ_powers 7315
F2xqX_F2xq_mul 7558
F2xq_sqrtn 9198
_F2xq_rand 9324
F2xX_addspec 13395
F2xqX_divrem_Barrettspec 13395
F2xqX_F2xqXQV_eval 13797
F2xq_autpow_mul 14450
FlxC_to_F2xC 15134
F2x_factorel 15172
F2x_is_x 18296
F2xq_autpow 18303
mkF2 26207
F2xX_recipspec 26891
F2x_addshift 27035
F2xqX_mulspec 28058
F2xq_autpow_sqr 28114
F2xX_lgrenormalizespec 28692
_F2xqXQ_sqr 32928
F2xq_sqrt 32947
F2xqX_divrem 33138
F2xqXQ_autpow_mul 33453
F2x_issquare 35808
F2x_F2xq_eval 42928
F2x_addspec 43337
F2xq_log 46718
F2xX_to_Kronecker_spec 56116
F2x_valrem 57225
F2x_even_odd 63127
F2xq_sqrt_fast 63127
F2xqXQ_autpow 70770
F2xX_deriv 80738
F2x_sqrt 80991
F2xq_easylog 81402
F2xqXQ_autpow_sqr 89145
F2xqXQ_sqr 104258
F2xqX_sqr 105210
F2x_to_Flx 113116
F2xqXQ_mul 114604
_F2xqXQ_mul 114604
F2m_to_ZM 121167
F2xqX_F2xqXQ_eval 122598
F2xY_F2xqV_evalx 136346
rel_Coppersmith 147717
F2xqX_mul 153660
ZX_to_F2x 157267
F2xqX_gcd 169141
Kronecker_to_F2xqX 181718
F2x_1_add 189950
F2x_to_ZX 191360
F2xqX_F2xq_mul_to_monic 204603
F2xqX_normalize 204617
Z_to_F2x 204701
F2xY_degreex 205681
F2xq_Artin_Schreier 212653
F2x_pow2n 220954
F2xV_to_F2m 232108
F2x_matFrobenius 232108
F2xq_matrix_pow 232108
ZM_to_F2m 238069
Flx_to_F2x 245136
F2x_is_smooth 259326
_F2xq_zero 260050
F2x_is_smooth_squarefree 295069
F2xX_to_Kronecker 307320
F2x_shiftpos 321236
F2x_shift 322974
F2x_Frobenius 329916
const_F2v 335869
_F2xqXQ_add 344407
_F2xqXQ_red 352520
F2xq_powers 361580
_F2xq_pow 365448
_F2xqXQ_one 375417
F2xq_pow 413953
F2xX_add 422590
pol1_F2xX 447048
F2xq_trace 459828
F2xX_F2x_mul 480746
_F2xqXQ_cmul 480746
F2xq_div 531867
F2xqX_divrem_basecase 543005
F2c_to_ZC 553562
_F2xq_red 570560
F2x_F2xqV_eval 609994
F2xqX_red 663439
F2xqX_rem 750029
get_F2xqX_red 783167
F2x_deriv 877223
_F2xq_one 912194
_F2xq_sqr 1135654
Rg_to_F2xq 1209686
F2xq_inv 1317541
F2xq_invsafe 1317548
F2x_extgcd 1317549
F2x_to_F2v 1362604
_F2xq_mul 1410525
ZV_to_F2v 1551067
_F2xq_add 1648785
F2x_slice 1781658
_F2xq_cmul 2040193
F2xX_renormalize 2424627
F2x_gcd 3275980
F2x_mulspec_basecase 5098690
F2xq_sqr 8531346
F2xq_mul 8733407
F2x_sqr 8971803
F2x_divrem 13350644
F2x_mul1 17567312
F2x_shiftip 22684093
F2x_mul 26968150
F2x_mulspec 27004591
F2x_add 30774043
F2v_add_inplace 56497195
F2x_rem 57683657
F2x_degree 80851061
F2x_addshiftip 160043049
F2x_addshiftipspec 193656851
F2x_degree_lg 300114331

Generated by: LCOV version 1.11