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 | 789 |
| pari_kernel_init | 791 |
| sqrispec_fft | 1704 |
| incneg | 50013 |
| muliispec_fft | 83817 |
| muliifft_unspliti | 85521 |
| mulliifft_params | 85521 |
| resetloop | 130656 |
| diviuuexact | 149898 |
| muluui | 166566 |
| muliifft_spliti | 169338 |
| divis | 239031 |
| sqrtispec2_sh | 271275 |
| convi | 318368 |
| Zf_sqr | 456960 |
| convi_dac | 739068 |
| setloop | 2248395 |
| truncr | 2555445 |
| sqrtispec1_sh | 2710686 |
| sqrtremi | 3768582 |
| floorr | 5204907 |
| Zf_mul | 15381120 |
| muliifft_dis | 15752559 |
| remi2n | 20315364 |
| diviuexact | 22390335 |
| diviuexact_i | 29660841 |
| muliifft_dit | 31049862 |
| incpos | 34964676 |
| incloop | 35267175 |
| red_montgomery | 36216750 |
| mantissa2nr | 49394493 |
| divis_rem | 65918394 |
| sqrtr_abs | 91764534 |
| xmpn_zero | 91764534 |
| sqrtispec2 | 92550600 |
| p_sqrtu2 | 92821875 |
| p_sqrtu1 | 95532561 |
| divri | 114499098 |
| divrr | 130287933 |
| Zf_add | 188238528 |
| Zf_mulsqrt2 | 188238528 |
| Zf_sub | 191668980 |
| equaliispec | 198955980 |
| Zf_shift | 206929605 |
| absdiviu_rem | 234812985 |
| affir | 323928930 |
| sqrtispec | 329873196 |
| diviiexact | 387226908 |
| Zf_red_destroy | 400568400 |
| roundr_up_ip | 442626142 |
| catii | 474645192 |
| adduispec_offset | 491115630 |
| addshiftw | 710088222 |
| int_normalize | 857474517 |
| sqrispec_basecase | 936349080 |
| sqrispec | 946330389 |
| xmpn_copy | 1082154381 |
| shiftispec | 1283670462 |
| umodiu | 1428391833 |
| subiuspec | 1592174607 |
| dvmdii | 1681481979 |
| adduispec | 2390506509 |
| subiispec | 3398096904 |
| cmpiispec | 4116999576 |
| addiispec | 4589003649 |
| muluispec | 4837462677 |
| muliispec_basecase | 5149731342 |
| muliispec | 5377987881 |
| Generated by: LCOV version 1.16 |