OpenCoverage

i_cbc.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/idea/i_cbc.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2void idea_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,-
3 IDEA_KEY_SCHEDULE *ks, unsigned char *iv, int encrypt)-
4 {-
5 unsigned long tin0,tin1;-
6 unsigned long tout0,tout1,xor0,xor1;-
7 long l=length;-
8 unsigned long tin[2];-
9-
10 if (encrypt
encryptDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ideatest
FALSEevaluated 2 times by 1 test
Evaluated by:
  • ideatest
)
1-2
11 {-
12 (tout0 =((unsigned long)(*((iv)++)))<<24L, tout0|=((unsigned long)(*((iv)++)))<<16L, tout0|=((unsigned long)(*((iv)++)))<< 8L, tout0|=((unsigned long)(*((iv)++))));-
13 (tout1 =((unsigned long)(*((iv)++)))<<24L, tout1|=((unsigned long)(*((iv)++)))<<16L, tout1|=((unsigned long)(*((iv)++)))<< 8L, tout1|=((unsigned long)(*((iv)++))));-
14 iv-=8;-
15 for (l-=8; l>=0
l>=0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • ideatest
FALSEevaluated 1 time by 1 test
Evaluated by:
  • ideatest
; l-=8)
1-3
16 {-
17 (tin0 =((unsigned long)(*((in)++)))<<24L, tin0|=((unsigned long)(*((in)++)))<<16L, tin0|=((unsigned long)(*((in)++)))<< 8L, tin0|=((unsigned long)(*((in)++))));-
18 (tin1 =((unsigned long)(*((in)++)))<<24L, tin1|=((unsigned long)(*((in)++)))<<16L, tin1|=((unsigned long)(*((in)++)))<< 8L, tin1|=((unsigned long)(*((in)++))));-
19 tin0^=tout0;-
20 tin1^=tout1;-
21 tin[0]=tin0;-
22 tin[1]=tin1;-
23 idea_encrypt(tin,ks);-
24 tout0=tin[0]; (*((out)++)=(unsigned char)(((tout0)>>24L)&0xff), *((out)++)=(unsigned char)(((tout0)>>16L)&0xff), *((out)++)=(unsigned char)(((tout0)>> 8L)&0xff), *((out)++)=(unsigned char)(((tout0) )&0xff));-
25 tout1=tin[1]; (*((out)++)=(unsigned char)(((tout1)>>24L)&0xff), *((out)++)=(unsigned char)(((tout1)>>16L)&0xff), *((out)++)=(unsigned char)(((tout1)>> 8L)&0xff), *((out)++)=(unsigned char)(((tout1) )&0xff));-
26 }
executed 3 times by 1 test: end of block
Executed by:
  • ideatest
3
27 if (l != -8
l != -8Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
)
0-1
28 {-
29 { in+=l+8; tin0=tin1=0; switch (l+8) { case
never executed: case 8:
8:
never executed: case 8:
tin1 =((unsigned long)(*(--(in)))) ; case
never executed: case 7:
7:
never executed: case 7:
code before this statement never executed: case 7:
tin1|=((unsigned long)(*(--(in))))<< 8; case
executed 1 time by 1 test: case 6:
Executed by:
  • ideatest
code before this statement never executed: case 6:
executed 1 time by 1 test: case 6:
Executed by:
  • ideatest
6:
code before this statement never executed: case 6:
executed 1 time by 1 test: case 6:
Executed by:
  • ideatest
tin1|=((unsigned long)(*(--(in))))<<16; case
never executed: case 5:
code before this statement executed 1 time by 1 test: case 5:
Executed by:
  • ideatest
never executed: case 5:
5:
code before this statement executed 1 time by 1 test: case 5:
Executed by:
  • ideatest
never executed: case 5:
tin1|=((unsigned long)(*(--(in))))<<24; case
never executed: case 4:
code before this statement executed 1 time by 1 test: case 4:
Executed by:
  • ideatest
never executed: case 4:
4:
code before this statement executed 1 time by 1 test: case 4:
Executed by:
  • ideatest
never executed: case 4:
tin0 =((unsigned long)(*(--(in)))) ; case
never executed: case 3:
code before this statement executed 1 time by 1 test: case 3:
Executed by:
  • ideatest
never executed: case 3:
3:
code before this statement executed 1 time by 1 test: case 3:
Executed by:
  • ideatest
never executed: case 3:
tin0|=((unsigned long)(*(--(in))))<< 8; case
never executed: case 2:
code before this statement executed 1 time by 1 test: case 2:
Executed by:
  • ideatest
never executed: case 2:
2:
code before this statement executed 1 time by 1 test: case 2:
Executed by:
  • ideatest
never executed: case 2:
tin0|=((unsigned long)(*(--(in))))<<16; case
executed 1 time by 1 test: case 1:
Executed by:
  • ideatest
1:
executed 1 time by 1 test: case 1:
Executed by:
  • ideatest
code before this statement executed 1 time by 1 test: case 1:
Executed by:
  • ideatest
tin0|=((unsigned long)(*(--(in))))<<24; }
executed 1 time by 1 test: end of block
Executed by:
  • ideatest
};
0-1
30 tin0^=tout0;-
31 tin1^=tout1;-
32 tin[0]=tin0;-
33 tin[1]=tin1;-
34 idea_encrypt(tin,ks);-
35 tout0=tin[0]; (*((out)++)=(unsigned char)(((tout0)>>24L)&0xff), *((out)++)=(unsigned char)(((tout0)>>16L)&0xff), *((out)++)=(unsigned char)(((tout0)>> 8L)&0xff), *((out)++)=(unsigned char)(((tout0) )&0xff));-
36 tout1=tin[1]; (*((out)++)=(unsigned char)(((tout1)>>24L)&0xff), *((out)++)=(unsigned char)(((tout1)>>16L)&0xff), *((out)++)=(unsigned char)(((tout1)>> 8L)&0xff), *((out)++)=(unsigned char)(((tout1) )&0xff));-
37 }
executed 1 time by 1 test: end of block
Executed by:
  • ideatest
1
38 (*((iv)++)=(unsigned char)(((tout0)>>24L)&0xff), *((iv)++)=(unsigned char)(((tout0)>>16L)&0xff), *((iv)++)=(unsigned char)(((tout0)>> 8L)&0xff), *((iv)++)=(unsigned char)(((tout0) )&0xff));-
39 (*((iv)++)=(unsigned char)(((tout1)>>24L)&0xff), *((iv)++)=(unsigned char)(((tout1)>>16L)&0xff), *((iv)++)=(unsigned char)(((tout1)>> 8L)&0xff), *((iv)++)=(unsigned char)(((tout1) )&0xff));-
40 }
executed 1 time by 1 test: end of block
Executed by:
  • ideatest
1
41 else-
42 {-
43 (xor0 =((unsigned long)(*((iv)++)))<<24L, xor0|=((unsigned long)(*((iv)++)))<<16L, xor0|=((unsigned long)(*((iv)++)))<< 8L, xor0|=((unsigned long)(*((iv)++))));-
44 (xor1 =((unsigned long)(*((iv)++)))<<24L, xor1|=((unsigned long)(*((iv)++)))<<16L, xor1|=((unsigned long)(*((iv)++)))<< 8L, xor1|=((unsigned long)(*((iv)++))));-
45 iv-=8;-
46 for (l-=8; l>=0
l>=0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • ideatest
FALSEevaluated 2 times by 1 test
Evaluated by:
  • ideatest
; l-=8)
2-3
47 {-
48 (tin0 =((unsigned long)(*((in)++)))<<24L, tin0|=((unsigned long)(*((in)++)))<<16L, tin0|=((unsigned long)(*((in)++)))<< 8L, tin0|=((unsigned long)(*((in)++)))); tin[0]=tin0;-
49 (tin1 =((unsigned long)(*((in)++)))<<24L, tin1|=((unsigned long)(*((in)++)))<<16L, tin1|=((unsigned long)(*((in)++)))<< 8L, tin1|=((unsigned long)(*((in)++)))); tin[1]=tin1;-
50 idea_encrypt(tin,ks);-
51 tout0=tin[0]^xor0;-
52 tout1=tin[1]^xor1;-
53 (*((out)++)=(unsigned char)(((tout0)>>24L)&0xff), *((out)++)=(unsigned char)(((tout0)>>16L)&0xff), *((out)++)=(unsigned char)(((tout0)>> 8L)&0xff), *((out)++)=(unsigned char)(((tout0) )&0xff));-
54 (*((out)++)=(unsigned char)(((tout1)>>24L)&0xff), *((out)++)=(unsigned char)(((tout1)>>16L)&0xff), *((out)++)=(unsigned char)(((tout1)>> 8L)&0xff), *((out)++)=(unsigned char)(((tout1) )&0xff));-
55 xor0=tin0;-
56 xor1=tin1;-
57 }
executed 3 times by 1 test: end of block
Executed by:
  • ideatest
3
58 if (l != -8
l != -8Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • ideatest
FALSEevaluated 1 time by 1 test
Evaluated by:
  • ideatest
)
1
59 {-
60 (tin0 =((unsigned long)(*((in)++)))<<24L, tin0|=((unsigned long)(*((in)++)))<<16L, tin0|=((unsigned long)(*((in)++)))<< 8L, tin0|=((unsigned long)(*((in)++)))); tin[0]=tin0;-
61 (tin1 =((unsigned long)(*((in)++)))<<24L, tin1|=((unsigned long)(*((in)++)))<<16L, tin1|=((unsigned long)(*((in)++)))<< 8L, tin1|=((unsigned long)(*((in)++)))); tin[1]=tin1;-
62 idea_encrypt(tin,ks);-
63 tout0=tin[0]^xor0;-
64 tout1=tin[1]^xor1;-
65 { out+=l+8; switch (l+8) { case
never executed: case 8:
8:
never executed: case 8:
*(--(out))=(unsigned char)(((tout1) )&0xff); case
never executed: case 7:
7:
never executed: case 7:
code before this statement never executed: case 7:
*(--(out))=(unsigned char)(((tout1)>> 8)&0xff); case
executed 1 time by 1 test: case 6:
Executed by:
  • ideatest
code before this statement never executed: case 6:
executed 1 time by 1 test: case 6:
Executed by:
  • ideatest
6:
code before this statement never executed: case 6:
executed 1 time by 1 test: case 6:
Executed by:
  • ideatest
*(--(out))=(unsigned char)(((tout1)>>16)&0xff); case
never executed: case 5:
code before this statement executed 1 time by 1 test: case 5:
Executed by:
  • ideatest
never executed: case 5:
5:
code before this statement executed 1 time by 1 test: case 5:
Executed by:
  • ideatest
never executed: case 5:
*(--(out))=(unsigned char)(((tout1)>>24)&0xff); case
never executed: case 4:
code before this statement executed 1 time by 1 test: case 4:
Executed by:
  • ideatest
never executed: case 4:
4:
code before this statement executed 1 time by 1 test: case 4:
Executed by:
  • ideatest
never executed: case 4:
*(--(out))=(unsigned char)(((tout0) )&0xff); case
never executed: case 3:
code before this statement executed 1 time by 1 test: case 3:
Executed by:
  • ideatest
never executed: case 3:
3:
code before this statement executed 1 time by 1 test: case 3:
Executed by:
  • ideatest
never executed: case 3:
*(--(out))=(unsigned char)(((tout0)>> 8)&0xff); case
never executed: case 2:
code before this statement executed 1 time by 1 test: case 2:
Executed by:
  • ideatest
never executed: case 2:
2:
code before this statement executed 1 time by 1 test: case 2:
Executed by:
  • ideatest
never executed: case 2:
*(--(out))=(unsigned char)(((tout0)>>16)&0xff); case
executed 1 time by 1 test: case 1:
Executed by:
  • ideatest
1:
executed 1 time by 1 test: case 1:
Executed by:
  • ideatest
code before this statement executed 1 time by 1 test: case 1:
Executed by:
  • ideatest
*(--(out))=(unsigned char)(((tout0)>>24)&0xff); }
executed 1 time by 1 test: end of block
Executed by:
  • ideatest
};
0-1
66 xor0=tin0;-
67 xor1=tin1;-
68 }
executed 1 time by 1 test: end of block
Executed by:
  • ideatest
1
69 (*((iv)++)=(unsigned char)(((xor0)>>24L)&0xff), *((iv)++)=(unsigned char)(((xor0)>>16L)&0xff), *((iv)++)=(unsigned char)(((xor0)>> 8L)&0xff), *((iv)++)=(unsigned char)(((xor0) )&0xff));-
70 (*((iv)++)=(unsigned char)(((xor1)>>24L)&0xff), *((iv)++)=(unsigned char)(((xor1)>>16L)&0xff), *((iv)++)=(unsigned char)(((xor1)>> 8L)&0xff), *((iv)++)=(unsigned char)(((xor1) )&0xff));-
71 }
executed 2 times by 1 test: end of block
Executed by:
  • ideatest
2
72 tin0=tin1=tout0=tout1=xor0=xor1=0;-
73 tin[0]=tin[1]=0;-
74 }
executed 3 times by 1 test: end of block
Executed by:
  • ideatest
3
75-
76void idea_encrypt(unsigned long *d, IDEA_KEY_SCHEDULE *key)-
77 {-
78 unsigned int *p;-
79 unsigned long x1,x2,x3,x4,t0,t1,ul;-
80-
81 x2=d[0];-
82 x1=(x2>>16);-
83 x4=d[1];-
84 x3=(x4>>16);-
85-
86 p= &(key->data[0][0]);-
87-
88 x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
ul != 0Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • ideatest
FALSEevaluated 1 time by 1 test
Evaluated by:
  • ideatest
) { x1=(ul&0xffff)-(ul>>16); x1-=((x1)>>16); }
executed 15 times by 1 test: end of block
Executed by:
  • ideatest
else x1=(-(int)x1-*p+1);
executed 1 time by 1 test: x1=(-(int)x1-*p+1);
Executed by:
  • ideatest
; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x4=(ul&0xffff)-(ul>>16); x4-=((x4)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x4=(-(int)x4-*p+1);
never executed: x4=(-(int)x4-*p+1);
; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t0=(ul&0xffff)-(ul>>16); t0-=((t0)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t0=(-(int)t0-*p+1);
never executed: t0=(-(int)t0-*p+1);
; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t1=(ul&0xffff)-(ul>>16); t1-=((t1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t1=(-(int)t1-*p+1);
never executed: t1=(-(int)t1-*p+1);
; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;
0-16
89 x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x1=(ul&0xffff)-(ul>>16); x1-=((x1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x1=(-(int)x1-*p+1);
never executed: x1=(-(int)x1-*p+1);
; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x4=(ul&0xffff)-(ul>>16); x4-=((x4)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x4=(-(int)x4-*p+1);
never executed: x4=(-(int)x4-*p+1);
; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0
ul != 0Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • ideatest
FALSEevaluated 5 times by 1 test
Evaluated by:
  • ideatest
) { t0=(ul&0xffff)-(ul>>16); t0-=((t0)>>16); }
executed 11 times by 1 test: end of block
Executed by:
  • ideatest
else t0=(-(int)t0-*p+1);
executed 5 times by 1 test: t0=(-(int)t0-*p+1);
Executed by:
  • ideatest
; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t1=(ul&0xffff)-(ul>>16); t1-=((t1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t1=(-(int)t1-*p+1);
never executed: t1=(-(int)t1-*p+1);
; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;
0-16
90 x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x1=(ul&0xffff)-(ul>>16); x1-=((x1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x1=(-(int)x1-*p+1);
never executed: x1=(-(int)x1-*p+1);
; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x4=(ul&0xffff)-(ul>>16); x4-=((x4)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x4=(-(int)x4-*p+1);
never executed: x4=(-(int)x4-*p+1);
; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t0=(ul&0xffff)-(ul>>16); t0-=((t0)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t0=(-(int)t0-*p+1);
never executed: t0=(-(int)t0-*p+1);
; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t1=(ul&0xffff)-(ul>>16); t1-=((t1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t1=(-(int)t1-*p+1);
never executed: t1=(-(int)t1-*p+1);
; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;
0-16
91 x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x1=(ul&0xffff)-(ul>>16); x1-=((x1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x1=(-(int)x1-*p+1);
never executed: x1=(-(int)x1-*p+1);
; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x4=(ul&0xffff)-(ul>>16); x4-=((x4)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x4=(-(int)x4-*p+1);
never executed: x4=(-(int)x4-*p+1);
; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t0=(ul&0xffff)-(ul>>16); t0-=((t0)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t0=(-(int)t0-*p+1);
never executed: t0=(-(int)t0-*p+1);
; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t1=(ul&0xffff)-(ul>>16); t1-=((t1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t1=(-(int)t1-*p+1);
never executed: t1=(-(int)t1-*p+1);
; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;
0-16
92 x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x1=(ul&0xffff)-(ul>>16); x1-=((x1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x1=(-(int)x1-*p+1);
never executed: x1=(-(int)x1-*p+1);
; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x4=(ul&0xffff)-(ul>>16); x4-=((x4)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x4=(-(int)x4-*p+1);
never executed: x4=(-(int)x4-*p+1);
; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t0=(ul&0xffff)-(ul>>16); t0-=((t0)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t0=(-(int)t0-*p+1);
never executed: t0=(-(int)t0-*p+1);
; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t1=(ul&0xffff)-(ul>>16); t1-=((t1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t1=(-(int)t1-*p+1);
never executed: t1=(-(int)t1-*p+1);
; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;
0-16
93 x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x1=(ul&0xffff)-(ul>>16); x1-=((x1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x1=(-(int)x1-*p+1);
never executed: x1=(-(int)x1-*p+1);
; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x4=(ul&0xffff)-(ul>>16); x4-=((x4)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x4=(-(int)x4-*p+1);
never executed: x4=(-(int)x4-*p+1);
; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t0=(ul&0xffff)-(ul>>16); t0-=((t0)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t0=(-(int)t0-*p+1);
never executed: t0=(-(int)t0-*p+1);
; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t1=(ul&0xffff)-(ul>>16); t1-=((t1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t1=(-(int)t1-*p+1);
never executed: t1=(-(int)t1-*p+1);
; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;
0-16
94 x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x1=(ul&0xffff)-(ul>>16); x1-=((x1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x1=(-(int)x1-*p+1);
never executed: x1=(-(int)x1-*p+1);
; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x4=(ul&0xffff)-(ul>>16); x4-=((x4)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x4=(-(int)x4-*p+1);
never executed: x4=(-(int)x4-*p+1);
; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0
ul != 0Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • ideatest
FALSEevaluated 5 times by 1 test
Evaluated by:
  • ideatest
) { t0=(ul&0xffff)-(ul>>16); t0-=((t0)>>16); }
executed 11 times by 1 test: end of block
Executed by:
  • ideatest
else t0=(-(int)t0-*p+1);
executed 5 times by 1 test: t0=(-(int)t0-*p+1);
Executed by:
  • ideatest
; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t1=(ul&0xffff)-(ul>>16); t1-=((t1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t1=(-(int)t1-*p+1);
never executed: t1=(-(int)t1-*p+1);
; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;
0-16
95 x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x1=(ul&0xffff)-(ul>>16); x1-=((x1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x1=(-(int)x1-*p+1);
never executed: x1=(-(int)x1-*p+1);
; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x4=(ul&0xffff)-(ul>>16); x4-=((x4)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x4=(-(int)x4-*p+1);
never executed: x4=(-(int)x4-*p+1);
; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t0=(ul&0xffff)-(ul>>16); t0-=((t0)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t0=(-(int)t0-*p+1);
never executed: t0=(-(int)t0-*p+1);
; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { t1=(ul&0xffff)-(ul>>16); t1-=((t1)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else t1=(-(int)t1-*p+1);
never executed: t1=(-(int)t1-*p+1);
; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;
0-16
96-
97 x1&=0xffff;-
98 ul=(unsigned long)x1**p; if (ul != 0
ul != 0Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • ideatest
FALSEevaluated 1 time by 1 test
Evaluated by:
  • ideatest
) { x1=(ul&0xffff)-(ul>>16); x1-=((x1)>>16); }
executed 15 times by 1 test: end of block
Executed by:
  • ideatest
else x1=(-(int)x1-*p+1);
executed 1 time by 1 test: x1=(-(int)x1-*p+1);
Executed by:
  • ideatest
; p++;
1-15
99-
100 t0= x3+ *(p++);-
101 t1= x2+ *(p++);-
102-
103 x4&=0xffff;-
104 ul=(unsigned long)x4**p; if (ul != 0
ul != 0Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • ideatest
FALSEnever evaluated
) { x4=(ul&0xffff)-(ul>>16); x4-=((x4)>>16); }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
else x4=(-(int)x4-*p+1);
never executed: x4=(-(int)x4-*p+1);
;
0-16
105-
106 d[0]=(t0&0xffff)|((x1&0xffff)<<16);-
107 d[1]=(x4&0xffff)|((t1&0xffff)<<16);-
108 }
executed 16 times by 1 test: end of block
Executed by:
  • ideatest
16
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2