Branch Coverage

inc/CryptX_BigInt_LTM.xs.inc
Criterion Covered Total %
branch 85 172 49.4


line true false branch
16 14614 0 if ((SvUOK(x) || SvIOK(x)) && (sizeof(UV) <= sizeof(unsigned long) || SvUV(x) == (unsigned long)SvUV(x))) {
9124 5490 if ((SvUOK(x) || SvIOK(x)) && (sizeof(UV) <= sizeof(unsigned long) || SvUV(x) == (unsigned long)SvUV(x))) {
17 0 9124 mp_set_int(RETVAL, (unsigned long)SvUV(x));
36 5478 12 merr = mp_read_radix(RETVAL, SvPV_nolen(x), 10);
53 3 0 str = SvPV_nolen(x);
54 3 0 start = (strlen(str)>2 && str[0] == '0' && str[1] == 'b') ? str+2 : str;
3 0 start = (strlen(str)>2 && str[0] == '0' && str[1] == 'b') ? str+2 : str;
3 0 start = (strlen(str)>2 && str[0] == '0' && str[1] == 'b') ? str+2 : str;
71 3 0 str = SvPV_nolen(x);
72 3 0 start = (strlen(str)>2 && str[0] == '0' && str[1] == 'x') ? str+2 : str;
3 0 start = (strlen(str)>2 && str[0] == '0' && str[1] == 'x') ? str+2 : str;
3 0 start = (strlen(str)>2 && str[0] == '0' && str[1] == 'x') ? str+2 : str;
88 4 0 merr = mp_read_radix(RETVAL, SvPV_nolen(x), 8);
103 0 0 merr = mp_read_radix(RETVAL, SvPV_nolen(x), base);
120 0 0 buf_ptr = (unsigned char *)SvPVbyte(x, buf_len);
135 3 0 if ((SvUOK(x) || SvIOK(x)) && (sizeof(UV) <= sizeof(unsigned long) || SvUV(x) == (unsigned long)SvUV(x))) {
3 0 if ((SvUOK(x) || SvIOK(x)) && (sizeof(UV) <= sizeof(unsigned long) || SvUV(x) == (unsigned long)SvUV(x))) {
136 3 0 mp_set_int(n, (unsigned long)SvIV(x));
155 0 0 merr = mp_read_radix(n, SvPV_nolen(x), 10);
257 26689 0 if (n) {
272 113 8448 if (mp_iszero(n) == MP_YES) {
296 0 18878 if (mp_iszero(n) == MP_YES) {
321 28 8 RETVAL = (bits < 5) ? 1 : (int)(bits * 0.301029995663 + 0.499999999999);
339 1 13521 if (mp_iszero(n) == MP_YES) {
348 166448 0 while (len > 0) {
349 13521 152927 if (buf[len-1] != '0') break;
374 1 4 for (i=0; i0; i++) buf[i] = toLOWER(buf[i]);
7 2 for (i=0; i0; i++) buf[i] = toLOWER(buf[i]);
5 2 for (i=0; i0; i++) buf[i] = toLOWER(buf[i]);
434 0 0 if (len > 0) {
464 0 0 if (len > 0) {
486 0 0 if (mp_cmp_d(mod, 1) == MP_EQ) {
510 0 1 EXTEND(SP, 2); /* we return two values */
511 0 1 if (rc != MP_OKAY) {
536 0 9211 XPUSHs(ST(1)); /* x */
548 0 869 XPUSHs(ST(1)); /* x */
560 0 282 XPUSHs(ST(1)); /* x */
571 701 7979 if ( items == 4 && SvTRUE(ST(3)) ) {
701 0 if ( items == 4 && SvTRUE(ST(3)) ) {
0 701 if ( items == 4 && SvTRUE(ST(3)) ) {
0 0 if ( items == 4 && SvTRUE(ST(3)) ) {
0 701 if ( items == 4 && SvTRUE(ST(3)) ) {
0 0 if ( items == 4 && SvTRUE(ST(3)) ) {
0 0 if ( items == 4 && SvTRUE(ST(3)) ) {
0 701 if ( items == 4 && SvTRUE(ST(3)) ) {
0 0 if ( items == 4 && SvTRUE(ST(3)) ) {
0 0 if ( items == 4 && SvTRUE(ST(3)) ) {
0 0 if ( items == 4 && SvTRUE(ST(3)) ) {
0 0 if ( items == 4 && SvTRUE(ST(3)) ) {
0 0 if ( items == 4 && SvTRUE(ST(3)) ) {
701 0 if ( items == 4 && SvTRUE(ST(3)) ) {
701 0 if ( items == 4 && SvTRUE(ST(3)) ) {
0 701 if ( items == 4 && SvTRUE(ST(3)) ) {
0 0 if ( items == 4 && SvTRUE(ST(3)) ) {
0 0 if ( items == 4 && SvTRUE(ST(3)) ) {
701 0 if ( items == 4 && SvTRUE(ST(3)) ) {
0 0 if ( items == 4 && SvTRUE(ST(3)) ) {
574 0 701 XPUSHs(ST(2)); /* y */
579 0 7979 XPUSHs(ST(1)); /* x */
608 0 5490 XPUSHs(ST(1)); /* x */
635 0 3326 XPUSHs(ST(1)); /* x */
647 0 4432 XPUSHs(ST(1)); /* x */
658 1597 0 if (GIMME_V == G_ARRAY) {
4 1593 if (GIMME_V == G_ARRAY) {
662 0 4 EXTEND(SP, 2);
668 0 1593 XPUSHs(ST(1)); /* x */
682 0 2 XPUSHs(ST(1)); /* x */
691 760 9780 if ( RETVAL < 0) RETVAL = -1;
692 8326 2214 if ( RETVAL > 0) RETVAL = 1;
750 0 57 XPUSHs(ST(1)); /* x */
777 0 1 XPUSHs(ST(1)); /* x */
789 0 1 XPUSHs(ST(1)); /* x */
801 0 1 XPUSHs(ST(1)); /* x */
824 20 2 RETVAL = (mp_isodd(n) == MP_YES) ? 1 : 0;
8 12 RETVAL = (mp_isodd(n) == MP_YES) ? 1 : 0;
834 1 1 RETVAL = (mp_iseven(n) == MP_YES || mp_iszero(n) == MP_YES) ? 1 : 0;
0 1 RETVAL = (mp_iseven(n) == MP_YES || mp_iszero(n) == MP_YES) ? 1 : 0;
1 1 RETVAL = (mp_iseven(n) == MP_YES || mp_iszero(n) == MP_YES) ? 1 : 0;
0 1 RETVAL = (mp_iseven(n) == MP_YES || mp_iszero(n) == MP_YES) ? 1 : 0;
848 0 40 XPUSHs(ST(1)); /* x */
864 0 28 XPUSHs(ST(1)); /* x */
875 0 0 XPUSHs(ST(1)); /* x */
891 1 0 if (SvROK(blank_obj) && sv_isa(blank_obj, "Math::BigInt::LTM")) {
1 0 if (SvROK(blank_obj) && sv_isa(blank_obj, "Math::BigInt::LTM")) {
894 1 0 merr = mp_read_radix(mpi, SvPV_nolen(serialized), 10);
915 0 1 if (mp_iszero(self) == MP_YES) {