Branch Coverage

imgdouble.c
Criterion Covered Total %
branch 235 282 83.3


line true false branch
115 134 2 if (x < 1 || y < 1) {
2 132 if (x < 1 || y < 1) {
119 131 1 if (ch < 1 || ch > MAXCHANNELS) {
1 130 if (ch < 1 || ch > MAXCHANNELS) {
124 0 130 if (bytes / y / ch / sizeof(double) != x) {
148 11817 1 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
11816 1 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
11815 1 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
1 11814 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
152 11813 1 if (I_ALL_CHANNELS_WRITABLE(im)) {
153 35439 11813 for (ch = 0; ch < im->channels; ++ch)
157 3 1 for (ch = 0; ch < im->channels; ++ch)
158 2 1 if (im->ch_mask & (1<
169 90276 2 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
90274 2 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
90272 2 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
2 90270 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
173 270848 90270 for (ch = 0; ch < im->channels; ++ch)
183 180018 1 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
180017 1 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
180016 1 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
1 180015 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
187 180014 1 if (I_ALL_CHANNELS_WRITABLE(im)) {
188 540043 180014 for (ch = 0; ch < im->channels; ++ch)
192 3 1 for (ch = 0; ch < im->channels; ++ch)
193 2 1 if (im->ch_mask & (1 << ch))
204 1581816 0 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
1581816 0 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
1581816 0 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
0 1581816 if (x < 0 || x >= im->xsize || y < 0 || y >= im->ysize)
208 4744055 1581816 for (ch = 0; ch < im->channels; ++ch)
218 12 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
12 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
12 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
12 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
219 0 12 if (r > im->xsize)
223 124 12 for (i = 0; i < count; ++i) {
224 372 124 for (ch = 0; ch < im->channels; ++ch) {
240 2122 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
2122 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
2122 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
2122 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
241 0 2122 if (r > im->xsize)
245 2121 1 if (I_ALL_CHANNELS_WRITABLE(im)) {
246 153567 2121 for (i = 0; i < count; ++i) {
247 456217 153567 for (ch = 0; ch < im->channels; ++ch) {
254 1 1 for (i = 0; i < count; ++i) {
255 3 1 for (ch = 0; ch < im->channels; ++ch) {
256 2 1 if (im->ch_mask & (1 << ch))
273 7010 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
7010 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
7010 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
7010 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
274 0 7010 if (r > im->xsize)
278 684095 7010 for (i = 0; i < count; ++i) {
279 2072808 684095 for (ch = 0; ch < im->channels; ++ch) {
295 8424 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
8423 1 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
8423 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
8423 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
296 0 8423 if (r > im->xsize)
300 8422 1 if (I_ALL_CHANNELS_WRITABLE(im)) {
301 816457 8422 for (i = 0; i < count; ++i) {
302 2289060 816457 for (ch = 0; ch < im->channels; ++ch) {
309 1 1 for (i = 0; i < count; ++i) {
310 3 1 for (ch = 0; ch < im->channels; ++ch) {
311 2 1 if (im->ch_mask & (1 << ch))
330 342 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
342 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
342 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
342 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
331 0 342 if (r > im->xsize)
337 2 340 if (chans) {
339 6 2 for (ch = 0; ch < chan_count; ++ch) {
340 6 0 if (chans[ch] < 0 || chans[ch] >= im->channels) {
0 6 if (chans[ch] < 0 || chans[ch] >= im->channels) {
346 20 2 for (i = 0; i < w; ++i) {
347 60 20 for (ch = 0; ch < chan_count; ++ch) {
355 340 0 if (chan_count <= 0 || chan_count > im->channels) {
0 340 if (chan_count <= 0 || chan_count > im->channels) {
361 27441 340 for (i = 0; i < w; ++i) {
362 82323 27441 for (ch = 0; ch < chan_count; ++ch) {
383 1738 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
1738 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
1738 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
1738 0 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
384 0 1738 if (r > im->xsize)
390 1271 467 if (chans) {
392 1271 1271 for (ch = 0; ch < chan_count; ++ch) {
393 1271 0 if (chans[ch] < 0 || chans[ch] >= im->channels) {
0 1271 if (chans[ch] < 0 || chans[ch] >= im->channels) {
399 148936 1271 for (i = 0; i < w; ++i) {
400 148936 148936 for (ch = 0; ch < chan_count; ++ch) {
408 467 0 if (chan_count <= 0 || chan_count > im->channels) {
0 467 if (chan_count <= 0 || chan_count > im->channels) {
414 41995 467 for (i = 0; i < w; ++i) {
415 127585 41995 for (ch = 0; ch < chan_count; ++ch) {
450 11 1 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
10 1 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
9 1 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
8 1 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
452 1 7 if (r > im->xsize)
458 6 2 if (chans) {
462 17 4 for (ch = 0; ch < chan_count; ++ch) {
463 16 1 if (chans[ch] < 0 || chans[ch] >= im->channels) {
1 15 if (chans[ch] < 0 || chans[ch] >= im->channels) {
468 1 14 if (!((1 << chans[ch]) & im->ch_mask))
471 3 1 if (all_in_mask) {
472 14 3 for (i = 0; i < w; ++i) {
473 40 14 for (ch = 0; ch < chan_count; ++ch) {
482 1 1 for (i = 0; i < w; ++i) {
483 3 1 for (ch = 0; ch < chan_count; ++ch) {
484 2 1 if (im->ch_mask & (1 << (chans[ch])))
495 2 0 if (chan_count <= 0 || chan_count > im->channels) {
0 2 if (chan_count <= 0 || chan_count > im->channels) {
501 2 2 for (i = 0; i < w; ++i) {
503 6 2 for (ch = 0; ch < chan_count; ++ch) {
504 5 1 if (im->ch_mask & mask)
544 21 1 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
20 1 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
19 1 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
18 1 if (y >=0 && y < im->ysize && l < im->xsize && l >= 0) {
546 1 17 if (r > im->xsize)
552 6 12 if (chans) {
556 17 4 for (ch = 0; ch < chan_count; ++ch) {
557 16 1 if (chans[ch] < 0 || chans[ch] >= im->channels) {
1 15 if (chans[ch] < 0 || chans[ch] >= im->channels) {
562 1 14 if (!((1 << chans[ch]) & im->ch_mask))
565 3 1 if (all_in_mask) {
566 14 3 for (i = 0; i < w; ++i) {
567 40 14 for (ch = 0; ch < chan_count; ++ch) {
576 1 1 for (i = 0; i < w; ++i) {
577 3 1 for (ch = 0; ch < chan_count; ++ch) {
578 2 1 if (im->ch_mask & (1 << (chans[ch])))
589 12 0 if (chan_count <= 0 || chan_count > im->channels) {
0 12 if (chan_count <= 0 || chan_count > im->channels) {
595 102 12 for (i = 0; i < w; ++i) {
597 306 102 for (ch = 0; ch < chan_count; ++ch) {
598 305 1 if (im->ch_mask & mask)
638 0 2 if (!targ)
641 160 2 for (y = 0; y < im->ysize; ++y) {