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.1 lcov report (development 22726-9e20c6a88) Lines: 1431 1543 92.7 %
Date: 2018-06-23 05:36:28 Functions: 176 187 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
F2xq_pow_init 14
check_kernel 14
smallirred_F2x 14
F2v_slice 28
F2xq_log_Coppersmith_rec 28
F2xq_log_from_rel 46
F2xq_log_find_rel 52
_F2xqXQ_zero 56
F2xq_log_Coppersmith_d 58
F2xqXQV_red 63
monomial_F2x 63
F2m_to_mod 84
F2xqX_invBarrett_Newton 101
gener_F2xq 154
RgM_to_F2m 238
F2x_eval 245
FlxXC_to_F2xXC 252
F2x_to_F2xX 322
F2xq_order 378
F2xqX_invBarrett_basecase 408
_F2xq_inv 413
polx_F2xX 441
F2x_halfgcd 509
F2x_halfgcd_i 509
FlxX_to_F2xX 553
Flv_to_F2v 595
F2x_shiftneg 673
_F2xq_s 679
F2xXC_to_ZXXC 763
_F2xq_neg 798
F2xqX_invBarrett 813
F2xX_to_ZXX 889
F2x_get_red 945
_F2xq_equal0 973
RgX_to_F2x 1183
F2c_to_mod 1610
get_F2xq_field 1659
F2xq_log_Coppersmith_worker 2120
F2xqXQ_auttrace 2639
F2xqX_get_red 2639
random_F2xqX 2744
F2xqX_divrem_Barrett_noGC 3383
F2xC_to_ZXC 3682
ZXX_to_F2xX 4445
F2xqXQ_auttrace_sqr 4613
RgV_to_F2v 4788
F2xq_pow_table 5245
F2xqXQ_auttrace_mul 6874
F2xqXQ_powers 7385
F2xqX_F2xq_mul 7551
F2xq_sqrtn 9282
_F2xq_rand 9324
F2x_valrem 11709
F2xq_autpow_mul 13190
F2xX_addspec 13395
F2xqX_divrem_Barrettspec 13395
_F2xq_rmul 13748
F2xqX_F2xqXQV_eval 13797
F2x_factorel 15186
FlxC_to_F2xC 16597
F2x_is_x 18149
F2xq_autpow 18154
mkF2 25834
F2xq_autpow_sqr 26880
F2xX_recipspec 26891
F2xqX_mulspec 28058
F2xX_lgrenormalizespec 28692
F2x_addshift 30514
_F2xqXQ_sqr 32928
F2xq_sqrt 32988
F2xqX_divrem 33292
F2xqXQ_autpow_mul 33488
F2x_issquare 37159
F2x_F2xq_eval 40770
F2xq_log 45444
F2x_addspec 46088
F2x_even_odd 49509
F2xq_sqrt_fast 49511
F2xX_to_Kronecker_spec 56116
F2xqXQ_autpow 70714
F2xq_easylog 80076
F2xX_deriv 80717
F2xqXQ_autpow_sqr 89089
Flx_to_F2x 93383
F2x_sqrt 96131
F2x_to_Flx 103639
F2xqXQ_sqr 104132
F2xqX_sqr 105084
_F2xqXQ_mul 114506
F2xqXQ_mul 114513
F2xqX_F2xqXQ_eval 122577
F2xY_F2xqV_evalx 136325
F2x_pow2n 138172
F2xqX_mul 153345
rel_Coppersmith 154976
F2m_to_ZM 164206
F2xqX_gcd 169113
Kronecker_to_F2xqX 181403
F2x_1_add 189962
F2x_to_ZX 197343
F2xqX_F2xq_mul_to_monic 206178
F2xqX_normalize 206192
F2xY_degreex 206857
Z_to_F2x 208292
F2xq_Artin_Schreier 212660
F2xV_to_F2m 223277
F2x_matFrobenius 223277
F2xq_matrix_pow 223277
F2x_is_smooth 224691
F2x_shiftpos 242206
F2x_shift 242890
_F2xq_zero 259889
F2x_is_smooth_squarefree 261564
F2xX_to_Kronecker 306690
ZM_to_F2m 321208
const_F2v 342462
_F2xqXQ_add 344239
ZX_to_F2x 347328
_F2xqXQ_red 352303
F2xq_powers 352728
_F2xq_pow 361739
F2x_Frobenius 374648
_F2xqXQ_one 375347
F2xq_pow 404997
F2xX_add 422296
pol1_F2xX 446964
F2xq_trace 459786
F2xX_F2x_mul 480557
_F2xqXQ_cmul 480557
F2xqX_divrem_basecase 542984
_F2xq_red 549746
F2xq_div 575391
F2x_F2xqV_eval 609784
F2xqX_red 664566
F2c_to_ZC 716813
F2xqX_rem 749812
get_F2xqX_red 783104
_F2xq_sqr 852985
F2x_deriv 856824
_F2xq_one 882433
Rg_to_F2xq 1162757
F2xq_inv 1362119
F2x_extgcd 1362126
F2xq_invsafe 1362126
_F2xq_add 1413093
F2x_to_F2v 1503185
_F2xq_mul 1544670
F2x_slice 1787979
_F2xq_cmul 1793149
ZV_to_F2v 2049211
F2xX_renormalize 2428260
F2x_gcd 2849798
F2x_mulspec_basecase 5074680
F2xq_sqr 7838139
F2x_sqr 8105415
F2xq_mul 8953140
F2x_divrem 13113126
F2x_mul1 17854631
F2x_shiftip 22950488
F2x_mul 27311341
F2x_mulspec 27355444
F2x_add 30095282
F2v_add_inplace 30983525
F2x_rem 47334216
F2x_degree 70081740
F2x_addshiftip 129035808
F2x_addshiftipspec 161589084
F2x_degree_lg 248852422

Generated by: LCOV version 1.13