Branch Coverage

djbsort_src/int32_sort.c
Criterion Covered Total %
branch 31 32 96.8


line true false branch
10 1 17 if (n < 2) return;
12 49 17 while (top < n - top) top += top;
14 66 17 for (p = top;p >= 1;p >>= 1) {
16 1210 66 while (i + 2 * p <= n) {
17 4564 1210 for (j = i;j < i + p;++j)
21 961 66 for (j = i;j < n - p;++j)
26 127 66 for (q = top;q > p;q >>= 1) {
27 7 120 if (j != i) for (;;) {
28 0 52 if (j == n - q) goto done;
30 104 52 for (r = q;r > p;r >>= 1)
34 7 45 if (j == i + p) {
39 1174 127 while (i + p <= n - q) {
40 4348 1174 for (j = i;j < i + p;++j) {
42 19389 4348 for (r = q;r > p;r >>= 1)
50 67 127 while (j < n - q) {
52 163 67 for (r = q;r > p;r >>= 1)