Branch Coverage

deflate.c
Criterion Covered Total %
branch 352 810 43.4


line true false branch
196 41 131031 *p = (Pos)(m >= wsize ? m - wsize : NIL);
197 131069 3 } while (--n);
203 97529 775 *p = (Pos)(m >= wsize ? m - wsize : NIL);
207 98301 3 } while (--n);
222 3 244 if (len > size) len = size;
223 0 247 if (len == 0) return 0;
228 217 30 if (strm->state->wrap == 1) {
232 2 28 else if (strm->state->wrap == 2) {
285 3 1634 if (s->strstart >= wsize + MAX_DIST(s)) {
291 0 3 if (s->insert > s->strstart)
296 1392 245 if (s->strm->avail_in == 0) break;
315 227 18 if (s->lookahead + s->insert >= MIN_MATCH) {
322 4 227 while (s->insert) {
330 0 4 if (s->lookahead + s->insert < MIN_MATCH)
338 232 13 } while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0);
0 232 } while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0);
347 1625 12 if (s->high_water < s->window_size) {
351 33 1592 if (s->high_water < curr) {
356 31 2 if (init > WIN_INIT)
361 209 1383 else if (s->high_water < (ulg)curr + WIN_INIT) {
367 0 209 if (init > s->window_size - s->high_water)
394 33 0 if (version == Z_NULL || version[0] != my_version[0] ||
33 0 if (version == Z_NULL || version[0] != my_version[0] ||
0 33 if (version == Z_NULL || version[0] != my_version[0] ||
398 0 33 if (strm == Z_NULL) return Z_STREAM_ERROR;
401 0 33 if (strm->zalloc == (alloc_func)0) {
409 0 33 if (strm->zfree == (free_func)0)
419 29 4 if (level == Z_DEFAULT_COMPRESSION) level = 6;
422 2 31 if (windowBits < 0) { /* suppress zlib wrapper */
424 0 2 if (windowBits < -15)
429 2 29 else if (windowBits > 15) {
434 33 0 if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method != Z_DEFLATED ||
33 0 if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method != Z_DEFLATED ||
33 0 if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method != Z_DEFLATED ||
33 0 if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method != Z_DEFLATED ||
435 33 0 windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
33 0 windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
33 0 windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
33 0 windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||
436 33 0 strategy < 0 || strategy > Z_FIXED || (windowBits == 8 && wrap != 1)) {
0 33 strategy < 0 || strategy > Z_FIXED || (windowBits == 8 && wrap != 1)) {
0 0 strategy < 0 || strategy > Z_FIXED || (windowBits == 8 && wrap != 1)) {
439 0 33 if (windowBits == 8) windowBits = 9; /* until 256-byte window bug fixed */
441 0 33 if (s == Z_NULL) return Z_MEM_ERROR;
508 33 0 if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL ||
33 0 if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL ||
33 0 if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL ||
509 0 33 s->pending_buf == Z_NULL) {
540 417 0 if (strm == Z_NULL ||
541 417 0 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0)
0 417 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0)
544 417 0 if (s == Z_NULL || s->strm != strm || (s->status != INIT_STATE &&
417 0 if (s == Z_NULL || s->strm != strm || (s->status != INIT_STATE &&
352 65 if (s == Z_NULL || s->strm != strm || (s->status != INIT_STATE &&
546 350 2 s->status != GZIP_STATE &&
548 350 0 s->status != EXTRA_STATE &&
549 350 0 s->status != NAME_STATE &&
550 350 0 s->status != COMMENT_STATE &&
551 350 0 s->status != HCRC_STATE &&
552 81 269 s->status != BUSY_STATE &&
553 0 81 s->status != FINISH_STATE))
567 1 0 if (deflateStateCheck(strm) || dictionary == Z_NULL)
0 1 if (deflateStateCheck(strm) || dictionary == Z_NULL)
571 1 0 if (wrap == 2 || (wrap == 1 && s->status != INIT_STATE) || s->lookahead)
1 0 if (wrap == 2 || (wrap == 1 && s->status != INIT_STATE) || s->lookahead)
1 0 if (wrap == 2 || (wrap == 1 && s->status != INIT_STATE) || s->lookahead)
0 1 if (wrap == 2 || (wrap == 1 && s->status != INIT_STATE) || s->lookahead)
575 1 0 if (wrap == 1)
580 0 1 if (dictLength >= s->w_size) {
581 0 0 if (wrap == 0) { /* already empty otherwise */
597 1 1 while (s->lookahead >= MIN_MATCH) {
607 2 1 } while (--n);
630 0 0 if (deflateStateCheck(strm))
634 0 0 if (len > s->w_size)
636 0 0 if (dictionary != Z_NULL && len)
0 0 if (dictionary != Z_NULL && len)
638 0 0 if (dictLength != Z_NULL)
647 0 33 if (deflateStateCheck(strm)) {
659 0 33 if (s->wrap < 0) {
664 2 31 s->wrap == 2 ? GZIP_STATE :
669 2 31 s->wrap == 2 ? crc32(0L, Z_NULL, 0) :
708 33 0 if (ret == Z_OK)
715 0 0 if (deflateStateCheck(strm) || strm->state->wrap != 2)
0 0 if (deflateStateCheck(strm) || strm->state->wrap != 2)
723 0 0 if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
724 0 0 if (bits != Z_NULL)
726 0 0 if (pending != Z_NULL) {
728 0 0 if (*pending != strm->state->pending) {
738 0 0 if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
739 0 0 if (bits != Z_NULL)
749 0 0 if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
756 0 0 if (bits < 0 || bits > 16 ||
0 0 if (bits < 0 || bits > 16 ||
757 0 0 s->sym_buf < s->pending_out + ((Buf_size + 7) >> 3))
762 0 0 if (put > bits)
769 0 0 } while (bits);
778 0 4 if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
784 1 3 if (level == Z_DEFAULT_COMPRESSION) level = 6;
786 4 0 if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) {
4 0 if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) {
4 0 if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) {
0 4 if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) {
791 1 3 if ((strategy != s->strategy || func != configuration_table[level].func) &&
1 0 if ((strategy != s->strategy || func != configuration_table[level].func) &&
792 4 0 s->last_flush != -2) {
795 0 4 if (err == Z_STREAM_ERROR)
797 4 0 if (strm->avail_in || (s->strstart - s->block_start) + s->lookahead)
0 4 if (strm->avail_in || (s->strstart - s->block_start) + s->lookahead)
800 3 1 if (s->level != level) {
801 0 3 if (s->level == 0 && s->matches != 0) {
0 0 if (s->level == 0 && s->matches != 0) {
802 0 0 if (s->matches == 1)
823 0 0 if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
865 0 0 if (fixedlen < sourceLen)
872 0 0 if (storelen < sourceLen)
876 0 0 if (deflateStateCheck(strm)) {
888 0 0 wraplen = 6 + (s->strstart ? 4 : 0);
893 0 0 if (s->gzhead != Z_NULL) { /* user-supplied gzip header */
895 0 0 if (s->gzhead->extra != Z_NULL)
898 0 0 if (str != Z_NULL)
901 0 0 } while (*str++);
903 0 0 if (str != Z_NULL)
906 0 0 } while (*str++);
907 0 0 if (s->gzhead->hcrc)
917 0 0 if (s->w_bits != 15 || s->hash_bits != 8 + 7) {
0 0 if (s->w_bits != 15 || s->hash_bits != 8 + 7) {
918 0 0 bound = s->w_bits <= s->hash_bits && s->level ? fixedlen :
0 0 bound = s->w_bits <= s->hash_bits && s->level ? fixedlen :
920 0 0 return bound + wraplen < bound ? (z_size_t)-1 : bound + wraplen;
927 0 0 return bound < sourceLen ? (z_size_t)-1 : bound;
955 65 103 len = s->pending > strm->avail_out ? strm->avail_out :
957 2 166 if (len == 0) return;
965 101 65 if (s->pending == 0) {
985 346 0 if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) {
346 0 if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) {
0 346 if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) {
990 346 0 if (strm->next_out == Z_NULL ||
991 248 98 (strm->avail_in != 0 && strm->next_in == Z_NULL) ||
248 0 (strm->avail_in != 0 && strm->next_in == Z_NULL) ||
992 51 295 (s->status == FINISH_STATE && flush != Z_FINISH)) {
0 51 (s->status == FINISH_STATE && flush != Z_FINISH)) {
995 0 346 if (strm->avail_out == 0) ERR_RETURN(strm, Z_BUF_ERROR);
1001 65 281 if (s->pending != 0) {
1003 34 31 if (strm->avail_out == 0) {
1018 39 242 } else if (strm->avail_in == 0 && RANK(flush) <= RANK(old_flush) &&
4 35 } else if (strm->avail_in == 0 && RANK(flush) <= RANK(old_flush) &&
1 38 } else if (strm->avail_in == 0 && RANK(flush) <= RANK(old_flush) &&
3 36 } else if (strm->avail_in == 0 && RANK(flush) <= RANK(old_flush) &&
3 0 } else if (strm->avail_in == 0 && RANK(flush) <= RANK(old_flush) &&
1024 26 283 if (s->status == FINISH_STATE && strm->avail_in != 0) {
0 26 if (s->status == FINISH_STATE && strm->avail_in != 0) {
1029 31 278 if (s->status == INIT_STATE && s->wrap == 0)
2 29 if (s->status == INIT_STATE && s->wrap == 0)
1031 29 280 if (s->status == INIT_STATE) {
1036 29 0 if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2)
0 29 if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2)
1038 0 29 else if (s->level < 6)
1040 25 4 else if (s->level == 6)
1045 1 28 if (s->strstart != 0) header |= PRESET_DICT;
1051 1 28 if (s->strstart != 0) {
1060 0 29 if (s->pending != 0) {
1066 2 307 if (s->status == GZIP_STATE) {
1072 2 0 if (s->gzhead == Z_NULL) {
1078 2 0 put_byte(s, s->level == 9 ? 2 :
2 0 put_byte(s, s->level == 9 ? 2 :
0 2 put_byte(s, s->level == 9 ? 2 :
1086 0 2 if (s->pending != 0) {
1092 0 0 put_byte(s, (s->gzhead->text ? 1 : 0) +
0 0 put_byte(s, (s->gzhead->text ? 1 : 0) +
0 0 put_byte(s, (s->gzhead->text ? 1 : 0) +
0 0 put_byte(s, (s->gzhead->text ? 1 : 0) +
0 0 put_byte(s, (s->gzhead->text ? 1 : 0) +
1102 0 0 put_byte(s, s->level == 9 ? 2 :
0 0 put_byte(s, s->level == 9 ? 2 :
0 0 put_byte(s, s->level == 9 ? 2 :
1106 0 0 if (s->gzhead->extra != Z_NULL) {
1110 0 0 if (s->gzhead->hcrc)
1117 0 309 if (s->status == EXTRA_STATE) {
1118 0 0 if (s->gzhead->extra != Z_NULL) {
1121 0 0 while (s->pending + left > s->pending_buf_size) {
1126 0 0 HCRC_UPDATE(beg);
0 0 HCRC_UPDATE(beg);
1129 0 0 if (s->pending != 0) {
1139 0 0 HCRC_UPDATE(beg);
0 0 HCRC_UPDATE(beg);
1144 0 309 if (s->status == NAME_STATE) {
1145 0 0 if (s->gzhead->name != Z_NULL) {
1149 0 0 if (s->pending == s->pending_buf_size) {
1150 0 0 HCRC_UPDATE(beg);
0 0 HCRC_UPDATE(beg);
1152 0 0 if (s->pending != 0) {
1160 0 0 } while (val != 0);
1161 0 0 HCRC_UPDATE(beg);
0 0 HCRC_UPDATE(beg);
1166 0 309 if (s->status == COMMENT_STATE) {
1167 0 0 if (s->gzhead->comment != Z_NULL) {
1171 0 0 if (s->pending == s->pending_buf_size) {
1172 0 0 HCRC_UPDATE(beg);
0 0 HCRC_UPDATE(beg);
1174 0 0 if (s->pending != 0) {
1182 0 0 } while (val != 0);
1183 0 0 HCRC_UPDATE(beg);
0 0 HCRC_UPDATE(beg);
1187 0 309 if (s->status == HCRC_STATE) {
1188 0 0 if (s->gzhead->hcrc) {
1189 0 0 if (s->pending + 2 > s->pending_buf_size) {
1191 0 0 if (s->pending != 0) {
1204 0 0 if (s->pending != 0) {
1213 66 243 if (strm->avail_in != 0 || s->lookahead != 0 ||
32 34 if (strm->avail_in != 0 || s->lookahead != 0 ||
32 0 if (strm->avail_in != 0 || s->lookahead != 0 ||
1214 6 26 (flush != Z_NO_FLUSH && s->status != FINISH_STATE)) {
1217 4 279 bstate = s->level == 0 ? deflate_stored(s, flush) :
1218 0 279 s->strategy == Z_HUFFMAN_ONLY ? deflate_huff(s, flush) :
1219 0 279 s->strategy == Z_RLE ? deflate_rle(s, flush) :
1222 261 22 if (bstate == finish_started || bstate == finish_done) {
8 253 if (bstate == finish_started || bstate == finish_done) {
1225 36 247 if (bstate == need_more || bstate == finish_started) {
22 14 if (bstate == need_more || bstate == finish_started) {
1226 27 242 if (strm->avail_out == 0) {
1238 6 8 if (bstate == block_done) {
1239 0 6 if (flush == Z_PARTIAL_FLUSH) {
1241 4 2 } else if (flush != Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */
1246 1 3 if (flush == Z_FULL_FLUSH) {
1248 1 0 if (s->lookahead == 0) {
1256 0 6 if (strm->avail_out == 0) {
1263 6 34 if (flush != Z_FINISH) return Z_OK;
1264 5 29 if (s->wrap <= 0) return Z_STREAM_END;
1268 2 27 if (s->wrap == 2) {
1288 29 0 if (s->wrap > 0) s->wrap = -s->wrap; /* write the trailer only once! */
1296 0 33 if (deflateStateCheck(strm)) return Z_STREAM_ERROR;
1301 33 0 TRY_FREE(strm, strm->state->pending_buf);
1302 33 0 TRY_FREE(strm, strm->state->head);
1303 33 0 TRY_FREE(strm, strm->state->prev);
1304 33 0 TRY_FREE(strm, strm->state->window);
1309 3 30 return status == BUSY_STATE ? Z_DATA_ERROR : Z_OK;
1327 0 0 if (deflateStateCheck(source) || dest == Z_NULL) {
0 0 if (deflateStateCheck(source) || dest == Z_NULL) {
1336 0 0 if (ds == Z_NULL) return Z_MEM_ERROR;
1347 0 0 if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL ||
0 0 if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL ||
0 0 if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL ||
1348 0 0 ds->pending_buf == Z_NULL) {
1355 0 0 (ss->slid || ss->strstart - ss->insert > ds->w_size ? ds->w_size :
0 0 (ss->slid || ss->strstart - ss->insert > ds->w_size ? ds->w_size :
1397 7430 7981 s->strstart - (IPos)MAX_DIST(s) : NIL;
1423 3 15408 if (s->prev_length >= s->good_match) {
1429 87 15324 if ((uInt)nice_match > s->lookahead) nice_match = (int)s->lookahead;
1482 5622 12957 if (match[best_len] != scan_end ||
1483 2363 3259 match[best_len - 1] != scan_end1 ||
1484 1286 1077 *match != *scan ||
1485 0 1286 *++match != scan[1]) continue;
1500 38861 2 } while (*++scan == *++match && *++scan == *++match &&
1501 38861 0 *++scan == *++match && *++scan == *++match &&
38861 0 *++scan == *++match && *++scan == *++match &&
1502 38861 0 *++scan == *++match && *++scan == *++match &&
38861 0 *++scan == *++match && *++scan == *++match &&
1503 38863 69 *++scan == *++match && *++scan == *++match &&
38861 0 *++scan == *++match && *++scan == *++match &&
38859 2 *++scan == *++match && *++scan == *++match &&
37646 1213 *++scan == *++match && *++scan == *++match &&
1514 1286 0 if (len > best_len) {
1517 1220 66 if (len >= nice_match) break;
1526 3171 14188 && --chain_length != 0);
3168 3 && --chain_length != 0);
1528 15407 4 if ((uInt)best_len <= s->lookahead) return (uInt)best_len;
1673 4 0 unsigned min_block = (unsigned)(MIN(s->pending_buf_size - 5, s->w_size));
1689 0 4 if (s->strm->avail_out < have) /* need room for header */
1694 4 0 if (len > (ulg)left + s->strm->avail_in)
1696 4 0 if (len > have)
1704 4 0 if (len < min_block && ((len == 0 && flush != Z_FINISH) ||
0 4 if (len < min_block && ((len == 0 && flush != Z_FINISH) ||
0 0 if (len < min_block && ((len == 0 && flush != Z_FINISH) ||
2 2 if (len < min_block && ((len == 0 && flush != Z_FINISH) ||
1706 0 2 len != left + s->strm->avail_in))
1712 0 0 last = flush == Z_FINISH && len == left + s->strm->avail_in ? 1 : 0;
0 0 last = flush == Z_FINISH && len == left + s->strm->avail_in ? 1 : 0;
1731 0 0 if (left) {
1732 0 0 if (left > len)
1745 0 0 if (len) {
1751 0 0 } while (last == 0);
1760 0 4 if (used) {
1764 0 0 if (used >= s->w_size) { /* supplant the previous history */
1771 0 0 if (s->window_size - s->strstart <= used) {
1775 0 0 if (s->matches < 2)
1777 0 0 if (s->insert > s->strstart)
1786 0 4 if (s->high_water < s->strstart)
1790 0 4 if (last) {
1796 2 2 if (flush != Z_NO_FLUSH && flush != Z_FINISH &&
1 1 if (flush != Z_NO_FLUSH && flush != Z_FINISH &&
1797 1 0 s->strm->avail_in == 0 && (long)s->strstart == s->block_start)
0 1 s->strm->avail_in == 0 && (long)s->strstart == s->block_start)
1802 1 3 if (s->strm->avail_in > have && s->block_start >= (long)s->w_size) {
1 0 if (s->strm->avail_in > have && s->block_start >= (long)s->w_size) {
1807 1 0 if (s->matches < 2)
1810 0 1 if (s->insert > s->strstart)
1813 4 0 if (have > s->strm->avail_in)
1815 2 2 if (have) {
1820 0 4 if (s->high_water < s->strstart)
1830 0 4 have = (unsigned)MIN(s->pending_buf_size - have, MAX_STORED);
1833 4 0 if (left >= min_block ||
0 4 if (left >= min_block ||
1834 0 0 ((left || flush == Z_FINISH) && flush != Z_NO_FLUSH &&
2 2 ((left || flush == Z_FINISH) && flush != Z_NO_FLUSH &&
1835 2 0 s->strm->avail_in == 0 && left <= have)) {
2 0 s->strm->avail_in == 0 && left <= have)) {
1837 1 0 last = flush == Z_FINISH && s->strm->avail_in == 0 &&
1838 1 1 len == left ? 1 : 0;
1 0 len == left ? 1 : 0;
1845 1 3 if (last)
1847 1 3 return last ? finish_started : need_more;
1867 0 0 if (s->lookahead < MIN_LOOKAHEAD) {
1869 0 0 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
0 0 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1872 0 0 if (s->lookahead == 0) break; /* flush the current block */
1879 0 0 if (s->lookahead >= MIN_MATCH) {
1886 0 0 if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) {
0 0 if (hash_head != NIL && s->strstart - hash_head <= MAX_DIST(s)) {
1894 0 0 if (s->match_length >= MIN_MATCH) {
1897 0 0 _tr_tally_dist(s, s->strstart - s->match_start,
1906 0 0 if (s->match_length <= s->max_insert_length &&
1907 0 0 s->lookahead >= MIN_MATCH) {
1915 0 0 } while (--s->match_length != 0);
1938 0 0 if (bflush) FLUSH_BLOCK(s, 0);
0 0 if (bflush) FLUSH_BLOCK(s, 0);
0 0 if (bflush) FLUSH_BLOCK(s, 0);
1941 0 0 if (flush == Z_FINISH) {
1942 0 0 FLUSH_BLOCK(s, 1);
0 0 FLUSH_BLOCK(s, 1);
1945 0 0 if (s->sym_next)
1946 0 0 FLUSH_BLOCK(s, 0);
0 0 FLUSH_BLOCK(s, 0);
1967 1635 61740 if (s->lookahead < MIN_LOOKAHEAD) {
1969 1622 13 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
240 1382 if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
1972 38 1357 if (s->lookahead == 0) break; /* flush the current block */
1979 63043 54 if (s->lookahead >= MIN_MATCH) {
1988 17935 45162 if (hash_head != NIL && s->prev_length < s->max_lazy_match &&
16718 1217 if (hash_head != NIL && s->prev_length < s->max_lazy_match &&
1989 15411 1307 s->strstart - hash_head <= MAX_DIST(s)) {
1997 14188 1223 if (s->match_length <= 5 && (s->strategy == Z_FILTERED
14188 0 if (s->match_length <= 5 && (s->strategy == Z_FILTERED
1999 68 14120 || (s->match_length == MIN_MATCH &&
2000 51 17 s->strstart - s->match_start > TOO_FAR)
2013 1235 61862 if (s->prev_length >= MIN_MATCH && s->match_length <= s->prev_length) {
1235 0 if (s->prev_length >= MIN_MATCH && s->match_length <= s->prev_length) {
2019 1225 10 _tr_tally_dist(s, s->strstart - 1 - s->prev_match,
2030 310790 14 if (++s->strstart <= max_insert) {
2033 309569 1235 } while (--s->prev_length != 0);
2038 0 1235 if (bflush) FLUSH_BLOCK(s, 0);
0 0 if (bflush) FLUSH_BLOCK(s, 0);
0 0 if (bflush) FLUSH_BLOCK(s, 0);
2040 60600 1262 } else if (s->match_available) {
2047 1 60599 if (bflush) {
2048 1 0 FLUSH_BLOCK_ONLY(s, 0);
2052 1 60599 if (s->strm->avail_out == 0) return need_more;
2063 27 11 if (s->match_available) {
2069 29 9 if (flush == Z_FINISH) {
2070 29 0 FLUSH_BLOCK(s, 1);
21 8 FLUSH_BLOCK(s, 1);
2073 5 4 if (s->sym_next)
2074 4 1 FLUSH_BLOCK(s, 0);
3 2 FLUSH_BLOCK(s, 0);
2094 0 0 if (s->lookahead <= MAX_MATCH) {
2096 0 0 if (s->lookahead <= MAX_MATCH && flush == Z_NO_FLUSH) {
0 0 if (s->lookahead <= MAX_MATCH && flush == Z_NO_FLUSH) {
2099 0 0 if (s->lookahead == 0) break; /* flush the current block */
2104 0 0 if (s->lookahead >= MIN_MATCH && s->strstart > 0) {
0 0 if (s->lookahead >= MIN_MATCH && s->strstart > 0) {
2107 0 0 if (prev == *++scan && prev == *++scan && prev == *++scan) {
0 0 if (prev == *++scan && prev == *++scan && prev == *++scan) {
0 0 if (prev == *++scan && prev == *++scan && prev == *++scan) {
2110 0 0 } while (prev == *++scan && prev == *++scan &&
2111 0 0 prev == *++scan && prev == *++scan &&
0 0 prev == *++scan && prev == *++scan &&
2112 0 0 prev == *++scan && prev == *++scan &&
0 0 prev == *++scan && prev == *++scan &&
2113 0 0 prev == *++scan && prev == *++scan &&
0 0 prev == *++scan && prev == *++scan &&
0 0 prev == *++scan && prev == *++scan &&
0 0 prev == *++scan && prev == *++scan &&
2116 0 0 if (s->match_length > s->lookahead)
2124 0 0 if (s->match_length >= MIN_MATCH) {
2127 0 0 _tr_tally_dist(s, 1, s->match_length - MIN_MATCH, bflush);
2139 0 0 if (bflush) FLUSH_BLOCK(s, 0);
0 0 if (bflush) FLUSH_BLOCK(s, 0);
0 0 if (bflush) FLUSH_BLOCK(s, 0);
2142 0 0 if (flush == Z_FINISH) {
2143 0 0 FLUSH_BLOCK(s, 1);
0 0 FLUSH_BLOCK(s, 1);
2146 0 0 if (s->sym_next)
2147 0 0 FLUSH_BLOCK(s, 0);
0 0 FLUSH_BLOCK(s, 0);
2160 0 0 if (s->lookahead == 0) {
2162 0 0 if (s->lookahead == 0) {
2163 0 0 if (flush == Z_NO_FLUSH)
2175 0 0 if (bflush) FLUSH_BLOCK(s, 0);
0 0 if (bflush) FLUSH_BLOCK(s, 0);
0 0 if (bflush) FLUSH_BLOCK(s, 0);
2178 0 0 if (flush == Z_FINISH) {
2179 0 0 FLUSH_BLOCK(s, 1);
0 0 FLUSH_BLOCK(s, 1);
2182 0 0 if (s->sym_next)
2183 0 0 FLUSH_BLOCK(s, 0);
0 0 FLUSH_BLOCK(s, 0);