Branch Coverage

inffast.c
Criterion Covered Total %
branch 47 70 67.1


line true false branch
104 660 1219 if (bits < 15) {
116 352 1527 if (op == 0) { /* literal */
122 1517 10 else if (op & 16) { /* length base */
125 10 1507 if (op) {
126 0 10 if (bits < op) {
135 76 1441 if (bits < 15) {
147 1517 0 if (op & 16) { /* distance base */
150 0 1517 if (bits < op) {
153 0 0 if (bits < op) {
170 6 1511 if (dist > op) { /* see if copy from window */
172 0 6 if (op > whave) {
173 0 0 if (state->sane) {
200 1 5 if (wnext == 0) { /* very common case */
202 1 0 if (op < len) { /* some from window */
206 8 1 } while (--op);
210 0 5 else if (wnext < op) { /* wrap around window */
213 0 0 if (op < len) { /* some from end of window */
217 0 0 } while (--op);
219 0 0 if (wnext < len) { /* some from start of window */
224 0 0 } while (--op);
231 5 0 if (op < len) { /* some from window */
235 69 5 } while (--op);
239 486 6 while (len > 2) {
245 4 2 if (len) {
247 3 1 if (len > 1)
258 127364 1511 } while (len > 2);
259 10 1501 if (len) {
261 9 1 if (len > 1)
266 0 0 else if ((op & 64) == 0) { /* 2nd level distance code */
276 0 10 else if ((op & 64) == 0) { /* 2nd level length code */
280 10 0 else if (op & 32) { /* end-of-block */
290 1827 42 } while (in < last && out < end);
1750 77 } while (in < last && out < end);
301 115 14 strm->avail_in = (unsigned)(in < last ? 5 + (last - in) : 5 - (in - last));
302 52 77 strm->avail_out = (unsigned)(out < end ?