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:
x86_32 architecture at
Configure time via setarchThe 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 | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
| Function Name |
Hit count |
| addumului | 0 |
| pari_kernel_version | 2 |
| pari_kernel_close | 786 |
| pari_kernel_init | 788 |
| sqrispec_fft | 1659 |
| incneg | 50013 |
| muliispec_fft | 83631 |
| muliifft_unspliti | 85290 |
| mulliifft_params | 85290 |
| resetloop | 130656 |
| diviuuexact | 149898 |
| muluui | 166566 |
| muliifft_spliti | 168921 |
| divis | 240009 |
| sqrtispec2_sh | 271143 |
| convi | 317813 |
| Zf_sqr | 448896 |
| convi_dac | 737718 |
| setloop | 2248392 |
| truncr | 2554467 |
| sqrtispec1_sh | 2734293 |
| sqrtremi | 3793464 |
| floorr | 5203623 |
| Zf_mul | 15338496 |
| muliifft_dis | 15702102 |
| remi2n | 20046009 |
| diviuexact | 22434684 |
| diviuexact_i | 29602704 |
| muliifft_dit | 30956967 |
| incpos | 34963512 |
| incloop | 35266011 |
| red_montgomery | 40629585 |
| mantissa2nr | 49152789 |
| divis_rem | 65818026 |
| sqrtr_abs | 91758276 |
| xmpn_zero | 91758276 |
| sqrtispec2 | 92545749 |
| p_sqrtu2 | 92816892 |
| p_sqrtu1 | 95551185 |
| divri | 114256635 |
| divrr | 130115067 |
| Zf_add | 187658496 |
| Zf_mulsqrt2 | 187658496 |
| Zf_sub | 191070960 |
| equaliispec | 199780785 |
| Zf_shift | 206264025 |
| absdiviu_rem | 233629383 |
| affir | 323190069 |
| sqrtispec | 329855949 |
| diviiexact | 396851982 |
| Zf_red_destroy | 399271821 |
| roundr_up_ip | 442485676 |
| catii | 474620400 |
| adduispec_offset | 491230143 |
| addshiftw | 707635866 |
| int_normalize | 856676454 |
| sqrispec_basecase | 941236959 |
| sqrispec | 951176793 |
| xmpn_copy | 1082096268 |
| shiftispec | 1289070348 |
| umodiu | 1432384578 |
| subiuspec | 1597554999 |
| dvmdii | 1686229047 |
| adduispec | 2400007746 |
| subiispec | 3401617068 |
| cmpiispec | 4132282563 |
| addiispec | 4592083893 |
| muluispec | 4851994560 |
| muliispec_basecase | 5169182742 |
| muliispec | 5396243190 |
| Generated by: LCOV version 1.16 |