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 - F2x.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.1 lcov report (development 24014-841134d83) Lines: 1435 1664 86.2 %
Date: 2019-07-15 05:55:26 Functions: 175 195 89.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2xC_to_FlxC 0
F2xX_F2x_add 0
F2xY_F2xq_evalx 0
F2x_deflate 0
F2x_recip 0
F2x_recip1 0
F2x_recip_raw 0
F2xqXM_F2xqX_mul2 0
F2xqXM_mul2 0
F2xqX_F2xqXM_qmul 0
F2xqX_addmulmul 0
F2xqX_extgcd_halfgcd 0
F2xqX_halfgcd 0
F2xqX_halfgcd_basecase 0
F2xqX_halfgcd_i 0
F2xqX_halfgcd_split 0
F2xqX_powu 0
_F2xqX_mul 0
_F2xqX_sqr 0
matid2_F2xXM 0
F2xqX_invBarrett_basecase 6
F2xqXQ_inv 7
F2xqXQ_invsafe 7
F2xqXQ_pow 7
F2xq_conjvec 7
F2xqX_disc 14
F2xqX_extgcd 14
F2xqX_extgcd_basecase 14
F2xq_log_Coppersmith 14
F2xq_log_index 14
F2xq_pow_init 14
check_kernel 14
smallirred_F2x 14
F2xqX_resultant 21
F2xq_log_Coppersmith_rec 28
F2xqX_invBarrett_Newton 44
F2xq_log_from_rel 45
F2xq_powu 49
F2xqX_invBarrett 50
F2xq_log_find_rel 52
F2xX_to_FlxX 56
_F2xqXQ_zero 56
F2xq_log_Coppersmith_d 57
F2xqXQV_red 63
monomial_F2x 63
F2x_mulspec_mulii 102
int_to_F2x 102
gener_F2xq 154
F2x_degreespec 204
F2x_to_int 204
F2x_eval 245
FlxXC_to_F2xXC 252
F2x_to_F2xX 378
F2xq_order 378
_F2xq_inv 413
polx_F2xX 476
F2x_halfgcd 486
F2x_halfgcd_i 486
FlxX_to_F2xX 581
F2x_shiftneg 660
_F2xq_s 693
_F2xq_neg 798
F2xXC_to_ZXXC 833
F2xX_to_ZXX 966
_F2xq_equal0 973
RgX_to_F2x 1190
F2xX_addspec 1359
F2xqX_divrem_Barrett 1362
F2xqX_divrem_Barrettspec 1362
get_F2xq_field 1659
F2xq_log_Coppersmith_worker 2112
F2xqXQ_auttrace 2646
random_F2xqX 2765
F2xX_recipspec 2768
F2xqX_mulspec 3339
F2xX_lgrenormalizespec 3651
F2xC_to_ZXC 3682
ZXX_to_F2xX 4522
F2xqXQ_auttrace_sqr 4641
F2xq_pow_table 5247
F2xX_to_Kronecker_spec 6678
F2xqXQ_auttrace_mul 6916
F2xqX_F2xq_mul 7021
F2xqXQ_powers 7462
_F2xq_rand 9247
F2xq_sqrtn 9268
F2x_valrem 11873
F2xq_autpow_mul 13208
_F2xq_rmul 13748
F2xqX_F2xqXQV_eval 13888
F2x_factorel 15167
FlxC_to_F2xC 16625
F2x_is_x 18152
F2xq_autpow 18159
F2xV_to_FlxV_inplace 20321
mkF2 25830
F2xq_autpow_sqr 26899
_F2xqXQ_sqr 32984
F2xq_sqrt 33097
F2xqX_divrem 33355
F2xqXQ_autpow_mul 33439
F2x_issquare 37045
F2x_addshift 38503
F2x_F2xq_eval 40834
F2x_even_odd 49696
F2xq_sqrt_fast 49697
F2xq_log 51163
F2x_addspec 57750
F2xqXQ_autpow 70833
F2xX_deriv 80857
F2xq_easylog 88160
F2xqXQ_autpow_sqr 89348
Flx_to_F2x 97384
F2x_sqrt 98921
F2xqXQ_sqr 104384
F2x_to_Flx 104706
F2xqX_sqr 105350
_F2xqXQ_mul 114576
F2xqXQ_mul 114632
F2xqX_F2xqXQ_eval 122787
F2x_pow2n 136411
F2xY_F2xqV_evalx 136619
F2xqX_mul 154206
rel_Coppersmith 154531
Kronecker_to_F2xqX 157545
F2xV_to_ZXV_inplace 164191
F2xqX_gcd_basecase 170009
F2xqX_gcd 170373
F2x_1_add 189750
F2xqX_F2xq_mul_to_monic 206591
F2xqX_normalize 206605
F2xY_degreex 207172
Z_to_F2x 209160
F2xq_Artin_Schreier 212513
F2x_get_red 218645
F2xqX_get_red 220290
F2xV_to_F2m 223252
F2x_matFrobenius 223252
F2xq_matrix_pow 223252
F2x_is_smooth 223400
F2x_to_ZX 223739
F2x_shiftpos 240192
F2x_shift 240792
_F2xq_zero 260071
F2x_is_smooth_squarefree 260170
F2xX_to_Kronecker 308412
_F2xqXQ_add 344680
_F2xqXQ_red 352730
F2xq_powers 352955
_F2xqXQ_one 375998
F2x_Frobenius 379440
ZX_to_F2x 384321
_F2xq_pow 389290
F2xX_add 423017
F2xq_pow 432627
pol1_F2xX 447741
F2xq_trace 460496
F2xX_F2x_mul 481299
_F2xqXQ_cmul 481299
F2xqX_divrem_basecase 546136
_F2xq_red 552017
F2xq_div 576318
F2x_F2xqV_eval 610750
F2xqX_rem 751646
get_F2xqX_red 785001
F2x_deriv 863082
_F2xq_sqr 881481
_F2xq_one 884243
F2xqX_red 1007689
Rg_to_F2xq 1164501
F2xq_inv 1373187
F2x_extgcd 1373194
F2xq_invsafe 1373194
_F2xq_add 1422569
F2x_to_F2v 1502888
_F2xq_mul 1572919
F2x_slice 1598374
_F2xq_cmul 1805727
F2xX_renormalize 2713787
F2x_gcd 2858903
F2x_mulspec_basecase 5074533
F2xq_sqr 7875226
F2x_sqr 8139910
F2xq_mul 8991646
F2x_divrem 13150784
F2x_mul1 18508932
F2x_shiftip 23610356
F2x_mul 27988708
F2x_mulspec 28044002
F2x_add 30691412
F2x_rem 49348209
F2x_degree 72137389
F2x_addshiftip 128328847
F2x_addshiftipspec 160073852
F2x_degree_lg 252154601

Generated by: LCOV version 1.13