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 | 187658496 |
| Zf_mul | 15338496 |
| Zf_mulsqrt2 | 187658496 |
| Zf_red_destroy | 399271821 |
| Zf_shift | 206264025 |
| Zf_sqr | 448896 |
| Zf_sub | 191070960 |
| absdiviu_rem | 234664644 |
| addiispec | 4589529165 |
| addshiftw | 707304267 |
| adduispec | 2399964333 |
| adduispec_offset | 491095416 |
| addumului | 0 |
| affir | 323219982 |
| catii | 474679638 |
| cmpiispec | 4131472545 |
| convi | 317931 |
| convi_dac | 737718 |
| diviiexact | 396864315 |
| divis | 239013 |
| divis_rem | 65910012 |
| diviuexact | 22391949 |
| diviuexact_i | 29690601 |
| diviuuexact | 149898 |
| divri | 114310134 |
| divrr | 130122708 |
| dvmdii | 1685219292 |
| equaliispec | 199750533 |
| floorr | 5204046 |
| incloop | 35267175 |
| incneg | 50013 |
| incpos | 34964676 |
| int_normalize | 856693365 |
| mantissa2nr | 49204863 |
| muliifft_dis | 15702102 |
| muliifft_dit | 30956967 |
| muliifft_spliti | 168921 |
| muliifft_unspliti | 85290 |
| muliispec | 5395221231 |
| muliispec_basecase | 5168342589 |
| muliispec_fft | 83631 |
| mulliifft_params | 85290 |
| muluispec | 4854610977 |
| muluui | 166566 |
| p_sqrtu1 | 95559708 |
| p_sqrtu2 | 92825607 |
| pari_kernel_close | 786 |
| pari_kernel_init | 788 |
| pari_kernel_version | 2 |
| red_montgomery | 36216201 |
| remi2n | 20104053 |
| resetloop | 130656 |
| roundr_up_ip | 442583548 |
| setloop | 2248395 |
| shiftispec | 1287366069 |
| sqrispec | 946298271 |
| sqrispec_basecase | 936358386 |
| sqrispec_fft | 1659 |
| sqrtispec | 329894169 |
| sqrtispec1_sh | 2734101 |
| sqrtispec2 | 92554350 |
| sqrtispec2_sh | 271257 |
| sqrtr_abs | 91768326 |
| sqrtremi | 3791937 |
| subiispec | 3400334160 |
| subiuspec | 1598203452 |
| truncr | 2554575 |
| umodiu | 1432327728 |
| xmpn_copy | 1082226882 |
| xmpn_zero | 91768326 |
| Generated by: LCOV version 1.16 |