Branch Coverage

hlines.c
Criterion Covered Total %
branch 47 52 90.3


line true false branch
71 0 83 if (bytes / count_y != sizeof(i_int_hline_entry *)) {
115 0 4805 if (width < 0) {
121 4804 1 if (y < hlines->start_y || y >= hlines->limit_y)
1 4803 if (y < hlines->start_y || y >= hlines->limit_y)
124 4802 1 if (x >= hlines->limit_x || x_limit < hlines->start_x)
0 4802 if (x >= hlines->limit_x || x_limit < hlines->start_x)
128 3 4799 if (x < hlines->start_x)
130 0 4802 if (x_limit > hlines->limit_x)
133 1 4801 if (x == x_limit)
136 133 4668 if (hlines->entries[y - hlines->start_y]) {
140 324 120 for (i = 0; i < entry->count; ++i) {
142 13 311 if (OVERLAPPED(x, x_limit, seg->minx, seg->x_limit)) {
147 13 120 if (found >= 0) {
159 22 11 while (i < entry->count) {
161 22 0 if (OVERLAPPED(x, x_limit, seg->minx, seg->x_limit)) {
167 20 2 if (i < entry->count-1) {
187 2 118 if (entry->count == entry->alloc) {
227 16860 83 for (i = 0; i < entry_count; ++i) {
228 4668 12192 if (hlines->entries[i])
248 13450 71 for (y = hlines->start_y; y < hlines->limit_y; ++y) {
250 4124 9326 if (entry) {
251 4162 4124 for (i = 0; i < entry->count; ++i) {
253 193897 4162 for (x = seg->minx; x < seg->x_limit; ++x) {
275 3200 9 for (y = hlines->start_y; y < hlines->limit_y; ++y) {
277 539 2661 if (entry) {
278 599 539 for (i = 0; i < entry->count; ++i) {