| line |
true |
false |
branch |
|
116
|
576 |
36 |
for (len = 0; len <= MAXBITS; len++)
|
|
118
|
3758 |
36 |
for (sym = 0; sym < codes; sym++)
|
|
123
|
447 |
0 |
for (max = MAXBITS; max >= 1; max--)
|
|
124
|
36 |
411 |
if (count[max] != 0) break;
|
|
125
|
36 |
0 |
if (root > max) root = max;
|
|
126
|
0 |
36 |
if (max == 0) { /* no symbols to code at all */
|
|
135
|
36 |
12 |
for (min = 1; min < max; min++)
|
|
136
|
24 |
12 |
if (count[min] != 0) break;
|
|
137
|
0 |
36 |
if (root < min) root = min;
|
|
141
|
540 |
36 |
for (len = 1; len <= MAXBITS; len++) {
|
|
144
|
0 |
540 |
if (left < 0) return -1; /* over-subscribed */
|
|
146
|
0 |
36 |
if (left > 0 && (type == CODES || max != 1))
|
|
|
0 |
0 |
if (left > 0 && (type == CODES || max != 1))
|
|
|
0 |
0 |
if (left > 0 && (type == CODES || max != 1))
|
|
151
|
504 |
36 |
for (len = 1; len < MAXBITS; len++)
|
|
155
|
3758 |
36 |
for (sym = 0; sym < codes; sym++)
|
|
156
|
312 |
3446 |
if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym;
|
|
216
|
12 |
24 |
if ((type == LENS && used > ENOUGH_LENS) ||
|
|
|
12 |
0 |
if ((type == LENS && used > ENOUGH_LENS) ||
|
|
|
24 |
12 |
if ((type == LENS && used > ENOUGH_LENS) ||
|
|
217
|
12 |
0 |
(type == DISTS && used > ENOUGH_DISTS))
|
|
224
|
252 |
60 |
if (work[sym] + 1U < match) {
|
|
228
|
48 |
12 |
else if (work[sym] >= match) {
|
|
244
|
600 |
312 |
} while (fill != 0);
|
|
248
|
276 |
312 |
while (huff & incr)
|
|
250
|
276 |
36 |
if (incr != 0) {
|
|
259
|
101 |
211 |
if (--(count[len]) == 0) {
|
|
260
|
36 |
65 |
if (len == max) break;
|
|
265
|
0 |
276 |
if (len > root && (huff & mask) != low) {
|
|
|
0 |
0 |
if (len > root && (huff & mask) != low) {
|
|
267
|
0 |
0 |
if (drop == 0)
|
|
276
|
0 |
0 |
while (curr + drop < max) {
|
|
278
|
0 |
0 |
if (left <= 0) break;
|
|
285
|
0 |
0 |
if ((type == LENS && used > ENOUGH_LENS) ||
|
|
|
0 |
0 |
if ((type == LENS && used > ENOUGH_LENS) ||
|
|
|
0 |
0 |
if ((type == LENS && used > ENOUGH_LENS) ||
|
|
286
|
0 |
0 |
(type == DISTS && used > ENOUGH_DISTS))
|
|
300
|
0 |
36 |
if (huff != 0) {
|