Branch Coverage

GMP.xs
Criterion Covered Total %
branch 30 46 65.2


line true false branch
40 2 4 if ((n & 1) == 0)
44 2 2 if (mpz_sgn(*m) >= 0)
48 2 0 if ((gmp_version[0] && gmp_version[1] != '.') /* >= 10.0.0 */
2 0 if ((gmp_version[0] && gmp_version[1] != '.') /* >= 10.0.0 */
49 0 2 || (gmp_version[0] > '5') /* >= 6.0.0 */
50 0 0 || (gmp_version[0] == '5' && gmp_version[2] != '0') /* >= 5.1.0 */
0 0 || (gmp_version[0] == '5' && gmp_version[2] != '0') /* >= 5.1.0 */
92 0 5732 if (SvGMAGICAL(sv)) mg_get(sv);
94 5426 306 if (SvROK(sv) && sv_derived_from(sv, "Math::GMP")) {
5426 0 if (SvROK(sv) && sv_derived_from(sv, "Math::GMP")) {
95 5426 0 IV tmp = SvIV((SV*)SvRV(sv));
99 59 247 pv = SvPV_nolen(sv);
319 2 70 SWAP_GMP
381 2 62 SWAP_GMP
403 0 129 EXTEND(SP, 2);
416 2 63 SWAP_GMP
446 4 105 if (swap) {
449 95 14 RETVAL = (i < 0) ? -1 : (i > 0) ? 1 : 0;
592 0 9 SWAP_GMP
606 0 13 SWAP_GMP
683 0 6 if (need_rootrem_workaround(m, n)) {
694 0 6 EXTEND(SP, 2);
722 0 10 EXTEND(SP, 2);