Branch Coverage

lib/PDL/Math/cpoly.c
Criterion Covered Total %
branch 114 166 68.6


line true false branch
213 1 10 if (degree < 1)
216 0 10 if (opr[0] == 0.0 && opi[0] == 0.0)
0 0 if (opr[0] == 0.0 && opi[0] == 0.0)
233 10 0 if (!(pc && hc && qpc && qhc && shc)) {
10 0 if (!(pc && hc && qpc && qhc && shc)) {
10 0 if (!(pc && hc && qpc && qhc && shc)) {
10 0 if (!(pc && hc && qpc && qhc && shc)) {
0 10 if (!(pc && hc && qpc && qhc && shc)) {
242 0 10 while (opr[nn-1] == 0.0 && opi[nn-1] == 0.0) {
0 0 while (opr[nn-1] == 0.0 && opi[nn-1] == 0.0) {
250 64 10 for (i=0;i
257 0 10 if (bnd != 1.0) {
258 0 0 for (i=0;i
263 54 0 while (!failreason) {
266 10 44 if (nn < 3) {
274 283 44 for (i=0;i
282 44 44 for(cnt1=1;failreason && (cnt1<=2);cnt1++) {
44 0 for(cnt1=1;failreason && (cnt1<=2);cnt1++) {
286 44 0 if (isnan(creal(tc)) || isnan(cimag(tc)))
0 44 if (isnan(creal(tc)) || isnan(cimag(tc)))
290 44 44 for (cnt2=1;failreason && (cnt2<10);cnt2++) {
44 0 for (cnt2=1;failreason && (cnt2<10);cnt2++) {
299 44 0 if (fxshft(10*cnt2,nn,shc,qpc,hc,pc,qhc,&tc,&sc,&pvc,&zc)) {
307 239 44 for(i=0;i
319 10 0 if (shc) free(shc);
320 10 0 if (qhc) free(qhc);
321 10 0 if (qpc) free(qpc);
322 10 0 if (hc) free(hc);
323 10 0 if (pc) free(pc);
334 239 44 for (i=0;i
336 220 44 for (jj=0;jj
337 214 6 if (cmod(hc[nm1]) > eta*10.0*cmod(pc[nm1])) {
339 214 0 if (isnan(creal(tc)) || isnan(cimag(tc)))
0 214 if (isnan(creal(tc)) || isnan(cimag(tc)))
341 960 214 for (i=0;i
348 15 6 for (i=0;i
383 102 1 for (j=0;j
393 102 0 if (boolvar || !test || j == l2-1) continue;
102 0 if (boolvar || !test || j == l2-1) continue;
1 101 if (boolvar || !test || j == l2-1) continue;
394 14 87 if (cmod(*tc-otc) >= .5*cmod(*zc)) { pasd = FALSE; continue; }
395 44 43 if (!pasd) { pasd = TRUE; continue; }
399 235 43 for (i=0;i
403 43 0 if (vrshft(10,nn,qpc,pc,qhc,hc,tc,sc,pvc,zc))
409 0 0 for (i=0;i
436 182 0 for (i=0; i
441 44 138 if (mp <= 20.0L*errev(nn,ms,mp,qpc)) {
447 97 41 if (i!=0) {
448 85 12 if (!b && mp>=omp && relstp < .05L) {
4 81 if (!b && mp>=omp && relstp < .05L) {
4 0 if (!b && mp>=omp && relstp < .05L) {
453 0 4 double tp = (relstp < eta) ? eta : relstp;
456 20 4 for (j=0;j<5;j++) {
463 0 93 if (mp*0.1L > omp)
476 138 0 if (!boolvar) {
491 442 0 *tc = boolvar ? 0.0 : cdivid(-pvc, hvc);
502 260 0 if (!boolvar) {
503 1094 260 for (j=1;j
509 0 0 for (j=1;j
525 3111 672 for (i=1;i
542 1152 182 for (i=0;i
559 42 2 if (creal(pc[nm]) != 0.0) {
562 41 1 if (xm < x)
570 239 44 for (i=1;i
572 44 0 if (f <= 0.) break;
578 131 44 while (fabs(dx/x) > .005L) {
580 712 131 for(i=1;i
584 581 131 for (i=1;i
609 64 10 for (i=0;i
611 46 18 if (x > max)
613 60 4 if (x != 0.0 && x < min)
11 49 if (x != 0.0 && x < min)
618 10 0 if (min >= lo && max <= hi)
10 0 if (min >= lo && max <= hi)
621 0 0 if (x <= 1.0L) {
625 0 0 if (infin/sc > max)
636 0 666 if (br == 0.0 && bi == 0.0) {
0 0 if (br == 0.0 && bi == 0.0) {
639 73 593 } else if (fabs(br) < fabs(bi)) {
646 0 593 if (isinf(d)) return 0 + 0*I; /* clang 3.4.1 has 1/inf = NaN so we dodge */
655 368 3479 if (ar < ai) {
658 3443 36 } else if (ar > ai) {
722 3 7 if (nmax == 0) {