Branch Coverage

AM.xs
Criterion Covered Total %
branch 141 164 85.9


line true false branch
219 768 192 for (i = 0; i < NUM_LATTICES; ++i) {
280 49944 6243 for (j = 8; j; --j){
287 0 6243 Copy(p, dividend, length, sizeof(AM_LONG));
293 64348 6243 while (length && (*(dividend + length - 1) == 0)) --length;
49944 14404 while (length && (*(dividend + length - 1) == 0)) --length;
294 6243 14404 if (length == 0) {
300 14408 14404 while (dptr >= dividend) {
304 230528 14408 for (i = 16; i; ) {
306 17580 212948 if (tens[i] <= *dptr) {
339 221153 121940 while (*i > *j)
341 9227 112713 if (*i == 0) break;
342 33130 79583 if (*i < *j) {
371 516500 182668 while (*i > *j)
373 21261 161407 if (*i == 0)
375 91372 70035 if (*i < *j) {
386 29851 40184 if (class == 0) {
388 1763 28088 if (length > 1) {
396 10704 29480 if (class != subcontext_class[*i]) {
416 160 10 for (i = 16; i; i--) {
467 768 192 for (i = 0; i < NUM_LATTICES; ++i) {
469 0 768 Newz(0, guts.lptr[i], 1 << v, AM_SHORT);
470 0 768 Newz(0, guts.sptr[i], 1 << (v + 1), AM_SUPRA); /* CHANGED */
527 776 194 for (chunk = 0; chunk < NUM_LATTICES; ++chunk) {
531 0 776 Zero(lptr[chunk], 1 << lattice_sizes[chunk], AM_SHORT);
534 6272 776 for (i = 1; i < 1 << (lattice_sizes[chunk] + 1); ++i) /* CHANGED */
553 0 194 subcontextnumber = (AM_SHORT) HvUSEDKEYS(context_to_class);
554 0 194 Newz(0, subcontext, NUM_LATTICES * (subcontextnumber + 1), AM_SHORT);
556 0 194 Newz(0, subcontext_class, subcontextnumber + 1, AM_SHORT);
558 0 194 Newz(0, intersectlist, subcontextnumber + 1, AM_SHORT);
559 0 194 Newz(0, intersectlist2, subcontextnumber + 1, AM_SHORT);
561 0 194 Newz(0, intersectlist3, subcontextnumber + 1, AM_SHORT);
565 8188 194 while (he = hv_iternext(context_to_class)) {
568 32752 8188 for (chunk = 0; chunk < NUM_LATTICES; ++chunk, ++contextptr) {
645 6364 26388 if (context == 0) {
646 22381 6364 for (p = supralist + supralist->next;
649 0 22381 Newz(0, data, p->data[0] + 3, AM_SHORT);
656 732 5632 if (lattice[context] == 0) {
673 2991 732 for (i = 0; i < (1 << active); ++i) {
674 1616 1375 if (lattice[i] == 0) {
686 55397 26388 for (i = 1 << (active - 1); i; i >>= 1)
687 15490 39907 if (!(i & context))
692 25342 1046 if (pi)
702 0 26388 Newz(0, c->data, p->data[0] + 3, AM_SHORT);
709 16929 26388 while (--t) {
711 1439 16929 for (i = 0, tt = ~t & (t - 1); tt; tt >>= 1, ++i)
716 16404 525 if (pi)
731 0 15771 Newz(0, c->data, p->data[0] + 3, AM_SHORT);
746 39980 96081 if (supralist[i = p->next].count == 0) {
755 109673 26388 } while (p->next);
787 630 194 for (p0 = sptr[0] + sptr[0]->next; p0 != sptr[0]; p0 = sptr[0] + p0->next) {
788 2121 630 for (p1 = sptr[1] + sptr[1]->next; p1 != sptr[1]; p1 = sptr[1] + p1->next) {
796 154 1967 if (k == ilist2top)
800 7106 1967 for (p2 = sptr[2] + sptr[2]->next; p2 != sptr[2]; p2 = sptr[2] + p2->next) {
809 694 6412 if (k == ilist3top)
813 33728 6412 for (p3 = sptr[3] + sptr[3]->next; p3 != sptr[3]; p3 = sptr[3] + p3->next) {
826 15621 18107 if (length) {
847 15601 20 if(!linear_flag){
850 34957 15601 for (i = 0; i < length; ++i)
851 0 34957 pointercount += (AM_LONG) SvUV(*hv_fetch(contextsize,
853 0 15601 if (pointercount & 0xffff0000) {
889 34990 15621 for (i = 0; i < length; ++i) {
895 2745 32245 if (!SvPOK(tempsv)) {
896 2745 0 SvUPGRADE(tempsv, SVt_PVNV);
897 2745 0 SvGROW(tempsv, 8 * sizeof(AM_LONG) + 1);
2745 0 SvGROW(tempsv, 8 * sizeof(AM_LONG) + 1);
903 244930 34990 for (j = 0; j < 7; ++j) {
914 630 194 for (p0 = sptr[0] + sptr[0]->next; p0 != sptr[0]; p0 = sptr[0] + p0->next)
916 639 194 for (p1 = sptr[1] + sptr[1]->next; p1 != sptr[1]; p1 = sptr[1] + p1->next)
918 682 194 for (p2 = sptr[2] + sptr[2]->next; p2 != sptr[2]; p2 = sptr[2] + p2->next)
920 960 194 for (p3 = sptr[3] + sptr[3]->next; p3 != sptr[3]; p3 = sptr[3] + p3->next)
945 2745 194 while (he = hv_iternext(pointers)) {
965 19215 2745 for (i = 0; i < 7; ++i) {
972 0 2745 if (counthi) {
973 0 0 for (i = 0; i < 6; ++i) {
978 19215 2745 for (i = 0; i < 7; ++i) {
985 2745 0 SvUPGRADE(tempsv, SVt_PVNV);
992 2702 43 if (this_class) {
994 18914 2702 for (i = 0; i < 7; ++i) {
1000 112 43 while (SvIOK(dataitem)) {
1004 784 112 for (i = 0; i < 7; ++i) {
1012 559 194 for (i = 1; i <= num_classes; ++i) normalize(aTHX_ sum[i])
1015 194 0 SvUPGRADE(tempsv, SVt_PVNV);