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 |
| Zf_add | 188395200 |
| Zf_mul | 15393408 |
| Zf_mulsqrt2 | 188395200 |
| Zf_red_destroy | 400920264 |
| Zf_shift | 207111684 |
| Zf_sqr | 456960 |
| Zf_sub | 191832396 |
| absdiviu_rem | 234810015 |
| addiispec | 4589967645 |
| addshiftw | 715240026 |
| adduispec | 2391681456 |
| adduispec_offset | 491263947 |
| addumului | 0 |
| affir | 324810843 |
| catii | 484531572 |
| cmpiispec | 4125899259 |
| convi | 319025 |
| convi_dac | 738921 |
| diviiexact | 388118511 |
| divis | 245628 |
| divis_rem | 65910105 |
| diviuexact | 22392822 |
| diviuexact_i | 29659023 |
| diviuuexact | 150129 |
| divri | 114999012 |
| divrr | 136094145 |
| dvmdii | 1686784554 |
| equaliispec | 198383004 |
| floorr | 5201916 |
| incloop | 35267328 |
| incneg | 50013 |
| incpos | 34964829 |
| int_normalize | 867715275 |
| mantissa2nr | 49456953 |
| muliifft_dis | 15764802 |
| muliifft_dit | 31074348 |
| muliifft_spliti | 169428 |
| muliifft_unspliti | 85566 |
| muliispec | 5379895296 |
| muliispec_basecase | 5151534318 |
| muliispec_fft | 83862 |
| mulliifft_params | 85566 |
| muluispec | 4839198540 |
| muluui | 166797 |
| p_sqrtu1 | 98510946 |
| p_sqrtu2 | 95799195 |
| pari_kernel_close | 792 |
| pari_kernel_init | 794 |
| pari_kernel_version | 2 |
| red_montgomery | 36218184 |
| remi2n | 20286087 |
| resetloop | 130656 |
| roundr_up_ip | 449700034 |
| setloop | 2248398 |
| shiftispec | 1290822888 |
| sqrispec | 1005766212 |
| sqrispec_basecase | 995784909 |
| sqrispec_fft | 1704 |
| sqrtispec | 337793715 |
| sqrtispec1_sh | 2711751 |
| sqrtispec2 | 95527929 |
| sqrtispec2_sh | 271266 |
| sqrtr_abs | 94741875 |
| sqrtremi | 3769626 |
| subiispec | 3404839887 |
| subiuspec | 1594450467 |
| truncr | 2544978 |
| umodiu | 1429372044 |
| xmpn_copy | 1106248014 |
| xmpn_zero | 94741875 |
| Generated by: LCOV version 1.16 |