line |
true |
false |
branch |
216
|
41 |
131031 |
*p = (Pos)(m >= wsize ? m - wsize : NIL); |
217
|
131069 |
3 |
} while (--n); |
223
|
97529 |
775 |
*p = (Pos)(m >= wsize ? m - wsize : NIL); |
227
|
98301 |
3 |
} while (--n); |
258
|
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] || |
262
|
0 |
33 |
if (strm == Z_NULL) return Z_STREAM_ERROR; |
265
|
0 |
33 |
if (strm->zalloc == (alloc_func)0) { |
273
|
0 |
33 |
if (strm->zfree == (free_func)0) |
283
|
29 |
4 |
if (level == Z_DEFAULT_COMPRESSION) level = 6; |
286
|
2 |
31 |
if (windowBits < 0) { /* suppress zlib wrapper */ |
288
|
0 |
2 |
if (windowBits < -15) |
293
|
2 |
29 |
else if (windowBits > 15) { |
298
|
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 || |
299
|
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 || |
300
|
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)) { |
303
|
0 |
33 |
if (windowBits == 8) windowBits = 9; /* until 256-byte window bug fixed */ |
305
|
0 |
33 |
if (s == Z_NULL) return Z_MEM_ERROR; |
371
|
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 || |
|
0 |
33 |
if (s->window == Z_NULL || s->prev == Z_NULL || s->head == Z_NULL || |
399
|
420 |
0 |
if (strm == Z_NULL || |
|
420 |
0 |
if (strm == Z_NULL || |
400
|
0 |
420 |
strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0) |
403
|
420 |
0 |
if (s == Z_NULL || s->strm != strm || (s->status != INIT_STATE && |
|
420 |
0 |
if (s == Z_NULL || s->strm != strm || (s->status != INIT_STATE && |
|
355 |
65 |
if (s == Z_NULL || s->strm != strm || (s->status != INIT_STATE && |
|
353 |
2 |
if (s == Z_NULL || s->strm != strm || (s->status != INIT_STATE && |
405
|
353 |
0 |
s->status != GZIP_STATE && |
407
|
353 |
0 |
s->status != EXTRA_STATE && |
408
|
353 |
0 |
s->status != NAME_STATE && |
409
|
353 |
0 |
s->status != COMMENT_STATE && |
410
|
84 |
269 |
s->status != HCRC_STATE && |
411
|
0 |
84 |
s->status != BUSY_STATE && |
429
|
1 |
0 |
if (deflateStateCheck(strm) || dictionary == Z_NULL) |
|
0 |
1 |
if (deflateStateCheck(strm) || dictionary == Z_NULL) |
433
|
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) |
437
|
1 |
0 |
if (wrap == 1) |
442
|
0 |
1 |
if (dictLength >= s->w_size) { |
443
|
0 |
0 |
if (wrap == 0) { /* already empty otherwise */ |
459
|
1 |
1 |
while (s->lookahead >= MIN_MATCH) { |
469
|
2 |
1 |
} while (--n); |
495
|
0 |
0 |
if (deflateStateCheck(strm)) |
499
|
0 |
0 |
if (len > s->w_size) |
501
|
0 |
0 |
if (dictionary != Z_NULL && len) |
|
0 |
0 |
if (dictionary != Z_NULL && len) |
503
|
0 |
0 |
if (dictLength != Z_NULL) |
514
|
0 |
33 |
if (deflateStateCheck(strm)) { |
526
|
0 |
33 |
if (s->wrap < 0) { |
531
|
2 |
31 |
s->wrap == 2 ? GZIP_STATE : |
536
|
2 |
31 |
s->wrap == 2 ? crc32(0L, Z_NULL, 0) : |
553
|
33 |
0 |
if (ret == Z_OK) |
563
|
0 |
0 |
if (deflateStateCheck(strm) || strm->state->wrap != 2) |
|
0 |
0 |
if (deflateStateCheck(strm) || strm->state->wrap != 2) |
575
|
0 |
0 |
if (deflateStateCheck(strm)) return Z_STREAM_ERROR; |
576
|
0 |
0 |
if (pending != Z_NULL) |
578
|
0 |
0 |
if (bits != Z_NULL) |
592
|
0 |
0 |
if (deflateStateCheck(strm)) return Z_STREAM_ERROR; |
594
|
0 |
0 |
if (bits < 0 || bits > 16 || |
|
0 |
0 |
if (bits < 0 || bits > 16 || |
|
0 |
0 |
if (bits < 0 || bits > 16 || |
599
|
0 |
0 |
if (put > bits) |
606
|
0 |
0 |
} while (bits); |
619
|
0 |
4 |
if (deflateStateCheck(strm)) return Z_STREAM_ERROR; |
625
|
1 |
3 |
if (level == Z_DEFAULT_COMPRESSION) level = 6; |
627
|
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) { |
632
|
1 |
3 |
if ((strategy != s->strategy || func != configuration_table[level].func) && |
|
1 |
0 |
if ((strategy != s->strategy || func != configuration_table[level].func) && |
|
4 |
0 |
if ((strategy != s->strategy || func != configuration_table[level].func) && |
636
|
0 |
4 |
if (err == Z_STREAM_ERROR) |
638
|
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) |
641
|
3 |
1 |
if (s->level != level) { |
642
|
0 |
3 |
if (s->level == 0 && s->matches != 0) { |
|
0 |
0 |
if (s->level == 0 && s->matches != 0) { |
643
|
0 |
0 |
if (s->matches == 1) |
669
|
0 |
0 |
if (deflateStateCheck(strm)) return Z_STREAM_ERROR; |
721
|
0 |
0 |
if (deflateStateCheck(strm)) |
731
|
0 |
0 |
wraplen = 6 + (s->strstart ? 4 : 0); |
736
|
0 |
0 |
if (s->gzhead != Z_NULL) { /* user-supplied gzip header */ |
738
|
0 |
0 |
if (s->gzhead->extra != Z_NULL) |
741
|
0 |
0 |
if (str != Z_NULL) |
744
|
0 |
0 |
} while (*str++); |
746
|
0 |
0 |
if (str != Z_NULL) |
749
|
0 |
0 |
} while (*str++); |
750
|
0 |
0 |
if (s->gzhead->hcrc) |
760
|
0 |
0 |
if (s->w_bits != 15 || s->hash_bits != 8 + 7) |
|
0 |
0 |
if (s->w_bits != 15 || s->hash_bits != 8 + 7) |
761
|
0 |
0 |
return (s->w_bits <= s->hash_bits ? fixedlen : storelen) + wraplen; |
796
|
68 |
103 |
if (len > strm->avail_out) len = strm->avail_out; |
797
|
2 |
169 |
if (len == 0) return; |
805
|
101 |
68 |
if (s->pending == 0) { |
828
|
349 |
0 |
if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) { |
|
349 |
0 |
if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) { |
|
0 |
349 |
if (deflateStateCheck(strm) || flush > Z_BLOCK || flush < 0) { |
833
|
349 |
0 |
if (strm->next_out == Z_NULL || |
|
248 |
101 |
if (strm->next_out == Z_NULL || |
834
|
248 |
0 |
(strm->avail_in != 0 && strm->next_in == Z_NULL) || |
|
54 |
295 |
(strm->avail_in != 0 && strm->next_in == Z_NULL) || |
835
|
0 |
54 |
(s->status == FINISH_STATE && flush != Z_FINISH)) { |
838
|
0 |
349 |
if (strm->avail_out == 0) ERR_RETURN(strm, Z_BUF_ERROR); |
844
|
68 |
281 |
if (s->pending != 0) { |
846
|
42 |
26 |
if (strm->avail_out == 0) { |
861
|
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) && |
867
|
21 |
283 |
if (s->status == FINISH_STATE && strm->avail_in != 0) { |
|
0 |
21 |
if (s->status == FINISH_STATE && strm->avail_in != 0) { |
872
|
31 |
273 |
if (s->status == INIT_STATE && s->wrap == 0) |
|
2 |
29 |
if (s->status == INIT_STATE && s->wrap == 0) |
874
|
29 |
275 |
if (s->status == INIT_STATE) { |
879
|
29 |
0 |
if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2) |
|
0 |
29 |
if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2) |
881
|
0 |
29 |
else if (s->level < 6) |
883
|
25 |
4 |
else if (s->level == 6) |
888
|
1 |
28 |
if (s->strstart != 0) header |= PRESET_DICT; |
894
|
1 |
28 |
if (s->strstart != 0) { |
903
|
0 |
29 |
if (s->pending != 0) { |
909
|
2 |
302 |
if (s->status == GZIP_STATE) { |
915
|
2 |
0 |
if (s->gzhead == Z_NULL) { |
921
|
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 : |
929
|
0 |
2 |
if (s->pending != 0) { |
935
|
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) + |
945
|
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 : |
949
|
0 |
0 |
if (s->gzhead->extra != Z_NULL) { |
953
|
0 |
0 |
if (s->gzhead->hcrc) |
960
|
0 |
304 |
if (s->status == EXTRA_STATE) { |
961
|
0 |
0 |
if (s->gzhead->extra != Z_NULL) { |
964
|
0 |
0 |
while (s->pending + left > s->pending_buf_size) { |
969
|
0 |
0 |
HCRC_UPDATE(beg); |
|
0 |
0 |
HCRC_UPDATE(beg); |
972
|
0 |
0 |
if (s->pending != 0) { |
982
|
0 |
0 |
HCRC_UPDATE(beg); |
|
0 |
0 |
HCRC_UPDATE(beg); |
987
|
0 |
304 |
if (s->status == NAME_STATE) { |
988
|
0 |
0 |
if (s->gzhead->name != Z_NULL) { |
992
|
0 |
0 |
if (s->pending == s->pending_buf_size) { |
993
|
0 |
0 |
HCRC_UPDATE(beg); |
|
0 |
0 |
HCRC_UPDATE(beg); |
995
|
0 |
0 |
if (s->pending != 0) { |
1003
|
0 |
0 |
} while (val != 0); |
1004
|
0 |
0 |
HCRC_UPDATE(beg); |
|
0 |
0 |
HCRC_UPDATE(beg); |
1009
|
0 |
304 |
if (s->status == COMMENT_STATE) { |
1010
|
0 |
0 |
if (s->gzhead->comment != Z_NULL) { |
1014
|
0 |
0 |
if (s->pending == s->pending_buf_size) { |
1015
|
0 |
0 |
HCRC_UPDATE(beg); |
|
0 |
0 |
HCRC_UPDATE(beg); |
1017
|
0 |
0 |
if (s->pending != 0) { |
1025
|
0 |
0 |
} while (val != 0); |
1026
|
0 |
0 |
HCRC_UPDATE(beg); |
|
0 |
0 |
HCRC_UPDATE(beg); |
1030
|
0 |
304 |
if (s->status == HCRC_STATE) { |
1031
|
0 |
0 |
if (s->gzhead->hcrc) { |
1032
|
0 |
0 |
if (s->pending + 2 > s->pending_buf_size) { |
1034
|
0 |
0 |
if (s->pending != 0) { |
1047
|
0 |
0 |
if (s->pending != 0) { |
1056
|
61 |
243 |
if (strm->avail_in != 0 || s->lookahead != 0 || |
|
27 |
34 |
if (strm->avail_in != 0 || s->lookahead != 0 || |
|
27 |
0 |
if (strm->avail_in != 0 || s->lookahead != 0 || |
1057
|
6 |
21 |
(flush != Z_NO_FLUSH && s->status != FINISH_STATE)) { |
1060
|
4 |
279 |
bstate = s->level == 0 ? deflate_stored(s, flush) : |
|
0 |
279 |
bstate = s->level == 0 ? deflate_stored(s, flush) : |
|
0 |
279 |
bstate = s->level == 0 ? deflate_stored(s, flush) : |
1065
|
263 |
20 |
if (bstate == finish_started || bstate == finish_done) { |
|
10 |
253 |
if (bstate == finish_started || bstate == finish_done) { |
1068
|
36 |
247 |
if (bstate == need_more || bstate == finish_started) { |
|
20 |
16 |
if (bstate == need_more || bstate == finish_started) { |
1069
|
27 |
240 |
if (strm->avail_out == 0) { |
1081
|
6 |
10 |
if (bstate == block_done) { |
1082
|
0 |
6 |
if (flush == Z_PARTIAL_FLUSH) { |
1084
|
4 |
2 |
} else if (flush != Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */ |
1089
|
1 |
3 |
if (flush == Z_FULL_FLUSH) { |
1091
|
1 |
0 |
if (s->lookahead == 0) { |
1099
|
0 |
6 |
if (strm->avail_out == 0) { |
1106
|
6 |
31 |
if (flush != Z_FINISH) return Z_OK; |
1107
|
2 |
29 |
if (s->wrap <= 0) return Z_STREAM_END; |
1111
|
2 |
27 |
if (s->wrap == 2) { |
1131
|
29 |
0 |
if (s->wrap > 0) s->wrap = -s->wrap; /* write the trailer only once! */ |
1141
|
0 |
33 |
if (deflateStateCheck(strm)) return Z_STREAM_ERROR; |
1146
|
33 |
0 |
TRY_FREE(strm, strm->state->pending_buf); |
1147
|
33 |
0 |
TRY_FREE(strm, strm->state->head); |
1148
|
33 |
0 |
TRY_FREE(strm, strm->state->prev); |
1149
|
33 |
0 |
TRY_FREE(strm, strm->state->window); |
1154
|
3 |
30 |
return status == BUSY_STATE ? Z_DATA_ERROR : Z_OK; |
1173
|
0 |
0 |
if (deflateStateCheck(source) || dest == Z_NULL) { |
|
0 |
0 |
if (deflateStateCheck(source) || dest == Z_NULL) { |
1182
|
0 |
0 |
if (ds == Z_NULL) return Z_MEM_ERROR; |
1192
|
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 || |
|
0 |
0 |
if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL || |
1228
|
3 |
244 |
if (len > size) len = size; |
1229
|
0 |
247 |
if (len == 0) return 0; |
1234
|
217 |
30 |
if (strm->state->wrap == 1) { |
1238
|
2 |
28 |
else if (strm->state->wrap == 2) { |
1295
|
7389 |
8061 |
s->strstart - (IPos)MAX_DIST(s) : NIL; |
1321
|
3 |
15447 |
if (s->prev_length >= s->good_match) { |
1327
|
77 |
15373 |
if ((uInt)nice_match > s->lookahead) nice_match = (int)s->lookahead; |
1380
|
5441 |
13118 |
if (match[best_len] != scan_end || |
|
2280 |
3161 |
if (match[best_len] != scan_end || |
1381
|
1301 |
979 |
match[best_len - 1] != scan_end1 || |
1382
|
0 |
1301 |
*match != *scan || |
1398
|
38861 |
2 |
} while (*++scan == *++match && *++scan == *++match && |
|
38861 |
0 |
} while (*++scan == *++match && *++scan == *++match && |
1399
|
38861 |
0 |
*++scan == *++match && *++scan == *++match && |
|
38861 |
0 |
*++scan == *++match && *++scan == *++match && |
1400
|
38861 |
0 |
*++scan == *++match && *++scan == *++match && |
|
38861 |
0 |
*++scan == *++match && *++scan == *++match && |
1401
|
38859 |
2 |
*++scan == *++match && *++scan == *++match && |
|
37646 |
1213 |
*++scan == *++match && *++scan == *++match && |
1402
|
38863 |
84 |
scan < strend); |
1412
|
1301 |
0 |
if (len > best_len) { |
1415
|
1220 |
81 |
if (len >= nice_match) break; |
1424
|
3112 |
14227 |
&& --chain_length != 0); |
|
3109 |
3 |
&& --chain_length != 0); |
1426
|
15446 |
4 |
if ((uInt)best_len <= s->lookahead) return (uInt)best_len; |
1562
|
3 |
1633 |
if (s->strstart >= wsize + MAX_DIST(s)) { |
1568
|
0 |
3 |
if (s->insert > s->strstart) |
1573
|
1391 |
245 |
if (s->strm->avail_in == 0) break; |
1592
|
227 |
18 |
if (s->lookahead + s->insert >= MIN_MATCH) { |
1599
|
4 |
227 |
while (s->insert) { |
1607
|
0 |
4 |
if (s->lookahead + s->insert < MIN_MATCH) |
1615
|
232 |
13 |
} while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0); |
|
0 |
232 |
} while (s->lookahead < MIN_LOOKAHEAD && s->strm->avail_in != 0); |
1624
|
1624 |
12 |
if (s->high_water < s->window_size) { |
1628
|
33 |
1591 |
if (s->high_water < curr) { |
1633
|
31 |
2 |
if (init > WIN_INIT) |
1638
|
209 |
1382 |
else if (s->high_water < (ulg)curr + WIN_INIT) { |
1644
|
0 |
209 |
if (init > s->window_size - s->high_water) |
1720
|
0 |
4 |
if (s->strm->avail_out < have) /* need room for header */ |
1725
|
4 |
0 |
if (len > (ulg)left + s->strm->avail_in) |
1727
|
4 |
0 |
if (len > have) |
1735
|
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) || |
1736
|
0 |
2 |
flush == Z_NO_FLUSH || |
1743
|
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; |
1762
|
0 |
0 |
if (left) { |
1763
|
0 |
0 |
if (left > len) |
1776
|
0 |
0 |
if (len) { |
1782
|
0 |
0 |
} while (last == 0); |
1791
|
0 |
4 |
if (used) { |
1795
|
0 |
0 |
if (used >= s->w_size) { /* supplant the previous history */ |
1802
|
0 |
0 |
if (s->window_size - s->strstart <= used) { |
1806
|
0 |
0 |
if (s->matches < 2) |
1808
|
0 |
0 |
if (s->insert > s->strstart) |
1817
|
0 |
4 |
if (s->high_water < s->strstart) |
1821
|
0 |
4 |
if (last) |
1825
|
2 |
2 |
if (flush != Z_NO_FLUSH && flush != Z_FINISH && |
|
1 |
1 |
if (flush != Z_NO_FLUSH && flush != Z_FINISH && |
|
1 |
0 |
if (flush != Z_NO_FLUSH && flush != Z_FINISH && |
1826
|
0 |
1 |
s->strm->avail_in == 0 && (long)s->strstart == s->block_start) |
1831
|
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) { |
1836
|
1 |
0 |
if (s->matches < 2) |
1839
|
0 |
1 |
if (s->insert > s->strstart) |
1842
|
4 |
0 |
if (have > s->strm->avail_in) |
1844
|
2 |
2 |
if (have) { |
1849
|
0 |
4 |
if (s->high_water < s->strstart) |
1862
|
4 |
0 |
if (left >= min_block || |
|
0 |
4 |
if (left >= min_block || |
1863
|
0 |
0 |
((left || flush == Z_FINISH) && flush != Z_NO_FLUSH && |
|
2 |
2 |
((left || flush == Z_FINISH) && flush != Z_NO_FLUSH && |
|
2 |
0 |
((left || flush == Z_FINISH) && flush != Z_NO_FLUSH && |
1864
|
2 |
0 |
s->strm->avail_in == 0 && left <= have)) { |
1866
|
1 |
0 |
last = flush == Z_FINISH && s->strm->avail_in == 0 && |
1867
|
1 |
1 |
len == left ? 1 : 0; |
|
1 |
0 |
len == left ? 1 : 0; |
1874
|
1 |
3 |
return last ? finish_started : need_more; |
1897
|
0 |
0 |
if (s->lookahead < MIN_LOOKAHEAD) { |
1899
|
0 |
0 |
if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) { |
|
0 |
0 |
if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) { |
1902
|
0 |
0 |
if (s->lookahead == 0) break; /* flush the current block */ |
1909
|
0 |
0 |
if (s->lookahead >= MIN_MATCH) { |
1916
|
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)) { |
1924
|
0 |
0 |
if (s->match_length >= MIN_MATCH) { |
1927
|
0 |
0 |
_tr_tally_dist(s, s->strstart - s->match_start, |
1936
|
0 |
0 |
if (s->match_length <= s->max_insert_length && |
|
0 |
0 |
if (s->match_length <= s->max_insert_length && |
1945
|
0 |
0 |
} while (--s->match_length != 0); |
1968
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
1971
|
0 |
0 |
if (flush == Z_FINISH) { |
1972
|
0 |
0 |
FLUSH_BLOCK(s, 1); |
|
0 |
0 |
FLUSH_BLOCK(s, 1); |
1975
|
0 |
0 |
if (s->sym_next) |
1976
|
0 |
0 |
FLUSH_BLOCK(s, 0); |
|
0 |
0 |
FLUSH_BLOCK(s, 0); |
2000
|
1634 |
61741 |
if (s->lookahead < MIN_LOOKAHEAD) { |
2002
|
1621 |
13 |
if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) { |
|
240 |
1381 |
if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) { |
2005
|
38 |
1356 |
if (s->lookahead == 0) break; /* flush the current block */ |
2012
|
63043 |
54 |
if (s->lookahead >= MIN_MATCH) { |
2021
|
17984 |
45113 |
if (hash_head != NIL && s->prev_length < s->max_lazy_match && |
|
16767 |
1217 |
if (hash_head != NIL && s->prev_length < s->max_lazy_match && |
|
15450 |
1317 |
if (hash_head != NIL && s->prev_length < s->max_lazy_match && |
2030
|
14227 |
1223 |
if (s->match_length <= 5 && (s->strategy == Z_FILTERED |
|
14227 |
0 |
if (s->match_length <= 5 && (s->strategy == Z_FILTERED |
2032
|
85 |
14142 |
|| (s->match_length == MIN_MATCH && |
|
66 |
19 |
|| (s->match_length == MIN_MATCH && |
2046
|
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) { |
2052
|
1226 |
9 |
_tr_tally_dist(s, s->strstart - 1 - s->prev_match, |
2063
|
310790 |
14 |
if (++s->strstart <= max_insert) { |
2066
|
309569 |
1235 |
} while (--s->prev_length != 0); |
2071
|
0 |
1235 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
2073
|
60600 |
1262 |
} else if (s->match_available) { |
2080
|
1 |
60599 |
if (bflush) { |
2081
|
1 |
0 |
FLUSH_BLOCK_ONLY(s, 0); |
2085
|
1 |
60599 |
if (s->strm->avail_out == 0) return need_more; |
2096
|
27 |
11 |
if (s->match_available) { |
2102
|
29 |
9 |
if (flush == Z_FINISH) { |
2103
|
29 |
0 |
FLUSH_BLOCK(s, 1); |
|
19 |
10 |
FLUSH_BLOCK(s, 1); |
2106
|
5 |
4 |
if (s->sym_next) |
2107
|
4 |
1 |
FLUSH_BLOCK(s, 0); |
|
3 |
2 |
FLUSH_BLOCK(s, 0); |
2130
|
0 |
0 |
if (s->lookahead <= MAX_MATCH) { |
2132
|
0 |
0 |
if (s->lookahead <= MAX_MATCH && flush == Z_NO_FLUSH) { |
|
0 |
0 |
if (s->lookahead <= MAX_MATCH && flush == Z_NO_FLUSH) { |
2135
|
0 |
0 |
if (s->lookahead == 0) break; /* flush the current block */ |
2140
|
0 |
0 |
if (s->lookahead >= MIN_MATCH && s->strstart > 0) { |
|
0 |
0 |
if (s->lookahead >= MIN_MATCH && s->strstart > 0) { |
2143
|
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) { |
2146
|
0 |
0 |
} while (prev == *++scan && prev == *++scan && |
|
0 |
0 |
} while (prev == *++scan && prev == *++scan && |
2147
|
0 |
0 |
prev == *++scan && prev == *++scan && |
|
0 |
0 |
prev == *++scan && prev == *++scan && |
2148
|
0 |
0 |
prev == *++scan && prev == *++scan && |
|
0 |
0 |
prev == *++scan && prev == *++scan && |
2149
|
0 |
0 |
prev == *++scan && prev == *++scan && |
|
0 |
0 |
prev == *++scan && prev == *++scan && |
2150
|
0 |
0 |
scan < strend); |
2152
|
0 |
0 |
if (s->match_length > s->lookahead) |
2160
|
0 |
0 |
if (s->match_length >= MIN_MATCH) { |
2163
|
0 |
0 |
_tr_tally_dist(s, 1, s->match_length - MIN_MATCH, bflush); |
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); |
2199
|
0 |
0 |
if (s->lookahead == 0) { |
2201
|
0 |
0 |
if (s->lookahead == 0) { |
2202
|
0 |
0 |
if (flush == Z_NO_FLUSH) |
2214
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
|
0 |
0 |
if (bflush) FLUSH_BLOCK(s, 0); |
2217
|
0 |
0 |
if (flush == Z_FINISH) { |
2218
|
0 |
0 |
FLUSH_BLOCK(s, 1); |
|
0 |
0 |
FLUSH_BLOCK(s, 1); |
2221
|
0 |
0 |
if (s->sym_next) |
2222
|
0 |
0 |
FLUSH_BLOCK(s, 0); |
|
0 |
0 |
FLUSH_BLOCK(s, 0); |