Branch Coverage

src/ed25519/ge.c
Criterion Covered Total %
branch 43 50 86.0


line true false branch
30 512 2 for (i = 0; i < 256; ++i) {
34 512 2 for (i = 0; i < 256; ++i)
35 84 428 if (r[i]) {
36 466 20 for (b = 1; b <= 6 && i + b < 256; ++b) {
465 1 for (b = 1; b <= 6 && i + b < 256; ++b) {
37 237 228 if (r[i + b]) {
38 128 109 if (r[i] + (r[i + b] << b) <= 15) {
41 46 63 } else if (r[i] - (r[i + b] << b) >= -15) {
44 155 0 for (k = i + b; k < 256; ++k) {
45 46 109 if (!r[k]) {
103 6 0 for (i = 255; i >= 0; --i) {
104 6 0 if (aslide[i] || bslide[i]) {
5 1 if (aslide[i] || bslide[i]) {
109 251 1 for (; i >= 0; --i) {
112 20 231 if (aslide[i] > 0) {
115 21 210 } else if (aslide[i] < 0) {
120 18 233 if (bslide[i] > 0) {
123 25 208 } else if (bslide[i] < 0) {
165 0 1 if (fe_isnonzero(check)) {
168 0 0 if (fe_isnonzero(check)) {
175 1 0 if (fe_isnegative(h->X) == (s[31] >> 7)) {
394 64 2 for (i = 0; i < 32; ++i) {
403 126 2 for (i = 0; i < 63; ++i) {
414 64 2 for (i = 1; i < 64; i += 2) {
429 64 2 for (i = 0; i < 64; i += 2) {