Branch Coverage

GMP.xs
Criterion Covered Total %
branch 32 52 61.5


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 5546 if (SvGMAGICAL(sv)) mg_get(sv);
94 5303 243 if (SvROK(sv) && sv_derived_from(sv, "Math::GMP")) {
5303 0 if (SvROK(sv) && sv_derived_from(sv, "Math::GMP")) {
95 5303 0 IV tmp = SvIV((SV*)SvRV(sv));
99 0 243 pv = SvPV_nolen(sv);
327 0 59 if (mpz_sgn(*m) < 0) {
344 3 0 RETVAL = mpz_sgn(*m) ? &PL_sv_yes : &PL_sv_no;
3 0 RETVAL = mpz_sgn(*m) ? &PL_sv_yes : &PL_sv_no;
370 2 70 SWAP_GMP
432 2 62 SWAP_GMP
454 0 129 EXTEND(SP, 2);
467 2 63 SWAP_GMP
497 4 42 if (swap) {
500 32 14 RETVAL = (i < 0) ? -1 : (i > 0) ? 1 : 0;
643 0 9 SWAP_GMP
657 0 13 SWAP_GMP
734 0 6 if (need_rootrem_workaround(m, n)) {
745 0 6 EXTEND(SP, 2);
773 0 10 EXTEND(SP, 2);