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 | 188238528 |
| Zf_mul | 15381120 |
| Zf_mulsqrt2 | 188238528 |
| Zf_red_destroy | 400568400 |
| Zf_shift | 206929605 |
| Zf_sqr | 456960 |
| Zf_sub | 191668980 |
| absdiviu_rem | 234766686 |
| addiispec | 4588929114 |
| addshiftw | 710114373 |
| adduispec | 2390584296 |
| adduispec_offset | 491170875 |
| addumului | 0 |
| affir | 323925669 |
| catii | 474653346 |
| cmpiispec | 4117992123 |
| convi | 318600 |
| convi_dac | 738921 |
| diviiexact | 387114189 |
| divis | 239034 |
| divis_rem | 65909043 |
| diviuexact | 22390311 |
| diviuexact_i | 29656626 |
| diviuuexact | 149898 |
| divri | 114502929 |
| divrr | 130284999 |
| dvmdii | 1681467735 |
| equaliispec | 198095301 |
| floorr | 5200971 |
| incloop | 35267178 |
| incneg | 50013 |
| incpos | 34964679 |
| int_normalize | 857536056 |
| mantissa2nr | 49411899 |
| muliifft_dis | 15752559 |
| muliifft_dit | 31049862 |
| muliifft_spliti | 169338 |
| muliifft_unspliti | 85521 |
| muliispec | 5377619169 |
| muliispec_basecase | 5149351515 |
| muliispec_fft | 83817 |
| mulliifft_params | 85521 |
| muluispec | 4837065432 |
| muluui | 166566 |
| p_sqrtu1 | 95537577 |
| p_sqrtu2 | 92826426 |
| pari_kernel_close | 789 |
| pari_kernel_init | 791 |
| pari_kernel_version | 2 |
| red_montgomery | 36218184 |
| remi2n | 20285937 |
| resetloop | 130656 |
| roundr_up_ip | 442610533 |
| setloop | 2248395 |
| shiftispec | 1283765838 |
| sqrispec | 1000591161 |
| sqrispec_basecase | 990609858 |
| sqrispec_fft | 1704 |
| sqrtispec | 329881833 |
| sqrtispec1_sh | 2711151 |
| sqrtispec2 | 92555160 |
| sqrtispec2_sh | 271266 |
| sqrtr_abs | 91769106 |
| sqrtremi | 3769026 |
| subiispec | 3398022786 |
| subiuspec | 1592242395 |
| truncr | 2543955 |
| umodiu | 1428566124 |
| xmpn_copy | 1082178189 |
| xmpn_zero | 91769106 |
| Generated by: LCOV version 1.16 |