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 | 240027 |
| sqrtispec2_sh | 271287 |
| convi | 317918 |
| Zf_sqr | 448896 |
| convi_dac | 737718 |
| setloop | 2248395 |
| truncr | 2555130 |
| sqrtispec1_sh | 2734602 |
| sqrtremi | 3794010 |
| floorr | 5204703 |
| Zf_mul | 15338496 |
| muliifft_dis | 15702102 |
| remi2n | 20108415 |
| diviuexact | 22432890 |
| diviuexact_i | 29701239 |
| muliifft_dit | 30956967 |
| incpos | 34964676 |
| incloop | 35267175 |
| red_montgomery | 40629555 |
| mantissa2nr | 49219740 |
| divis_rem | 65921004 |
| sqrtr_abs | 91781790 |
| xmpn_zero | 91781790 |
| sqrtispec2 | 92569356 |
| p_sqrtu2 | 92840643 |
| p_sqrtu1 | 95575245 |
| divri | 114316020 |
| divrr | 130137798 |
| Zf_add | 187658496 |
| Zf_mulsqrt2 | 187658496 |
| Zf_sub | 191070960 |
| equaliispec | 199796958 |
| Zf_shift | 206264025 |
| absdiviu_rem | 234707823 |
| affir | 323388339 |
| sqrtispec | 329934546 |
| diviiexact | 397424268 |
| Zf_red_destroy | 399271821 |
| roundr_up_ip | 442667077 |
| catii | 474730380 |
| adduispec_offset | 491210487 |
| addshiftw | 707687421 |
| int_normalize | 856790058 |
| sqrispec_basecase | 941378985 |
| sqrispec | 951318870 |
| xmpn_copy | 1082348187 |
| shiftispec | 1289461794 |
| umodiu | 1432552620 |
| subiuspec | 1598760426 |
| dvmdii | 1687477281 |
| adduispec | 2401024386 |
| subiispec | 3403093284 |
| cmpiispec | 4134995160 |
| addiispec | 4593289506 |
| muluispec | 4856086578 |
| muliispec_basecase | 5172832383 |
| muliispec | 5399891091 |
| Generated by: LCOV version 1.16 |