| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/idea/i_cbc.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||||||||
| 2 | void 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
| 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
| 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 blockExecuted by:
| 3 | ||||||||||||||||||||||||
| 27 | if (l != -8
| 0-1 | ||||||||||||||||||||||||
| 28 | { | - | ||||||||||||||||||||||||
| 29 | { in+=l+8; tin0=tin1=0; switch (l+8) { case never executed: 8:case 8:never executed: tin1 =((unsigned long)(*(--(in)))) ; casecase 8:never executed: 7:case 7:never executed: case 7:code before this statement never executed: tin1|=((unsigned long)(*(--(in))))<< 8; casecase 7:executed 1 time by 1 test: case 6:Executed by:
code before this statement never executed: case 6:executed 1 time by 1 test: 6:case 6:Executed by:
code before this statement never executed: case 6:executed 1 time by 1 test: tin1|=((unsigned long)(*(--(in))))<<16; casecase 6:Executed by:
never executed: case 5:code before this statement executed 1 time by 1 test: case 5:Executed by:
never executed: 5:case 5:code before this statement executed 1 time by 1 test: case 5:Executed by:
never executed: tin1|=((unsigned long)(*(--(in))))<<24; casecase 5:never executed: case 4:code before this statement executed 1 time by 1 test: case 4:Executed by:
never executed: 4:case 4:code before this statement executed 1 time by 1 test: case 4:Executed by:
never executed: tin0 =((unsigned long)(*(--(in)))) ; casecase 4:never executed: case 3:code before this statement executed 1 time by 1 test: case 3:Executed by:
never executed: 3:case 3:code before this statement executed 1 time by 1 test: case 3:Executed by:
never executed: tin0|=((unsigned long)(*(--(in))))<< 8; casecase 3:never executed: case 2:code before this statement executed 1 time by 1 test: case 2:Executed by:
never executed: 2:case 2:code before this statement executed 1 time by 1 test: case 2:Executed by:
never executed: tin0|=((unsigned long)(*(--(in))))<<16; casecase 2:executed 1 time by 1 test: 1:case 1:Executed by:
executed 1 time by 1 test: case 1:Executed by:
code before this statement executed 1 time by 1 test: tin0|=((unsigned long)(*(--(in))))<<24; }case 1:Executed by:
executed 1 time by 1 test: };end of blockExecuted by:
| 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 blockExecuted by:
| 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 blockExecuted by:
| 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
| 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 blockExecuted by:
| 3 | ||||||||||||||||||||||||
| 58 | if (l != -8
| 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: 8:case 8:never executed: *(--(out))=(unsigned char)(((tout1) )&0xff); casecase 8:never executed: 7:case 7:never executed: case 7:code before this statement never executed: *(--(out))=(unsigned char)(((tout1)>> 8)&0xff); casecase 7:executed 1 time by 1 test: case 6:Executed by:
code before this statement never executed: case 6:executed 1 time by 1 test: 6:case 6:Executed by:
code before this statement never executed: case 6:executed 1 time by 1 test: *(--(out))=(unsigned char)(((tout1)>>16)&0xff); casecase 6:Executed by:
never executed: case 5:code before this statement executed 1 time by 1 test: case 5:Executed by:
never executed: 5:case 5:code before this statement executed 1 time by 1 test: case 5:Executed by:
never executed: *(--(out))=(unsigned char)(((tout1)>>24)&0xff); casecase 5:never executed: case 4:code before this statement executed 1 time by 1 test: case 4:Executed by:
never executed: 4:case 4:code before this statement executed 1 time by 1 test: case 4:Executed by:
never executed: *(--(out))=(unsigned char)(((tout0) )&0xff); casecase 4:never executed: case 3:code before this statement executed 1 time by 1 test: case 3:Executed by:
never executed: 3:case 3:code before this statement executed 1 time by 1 test: case 3:Executed by:
never executed: *(--(out))=(unsigned char)(((tout0)>> 8)&0xff); casecase 3:never executed: case 2:code before this statement executed 1 time by 1 test: case 2:Executed by:
never executed: 2:case 2:code before this statement executed 1 time by 1 test: case 2:Executed by:
never executed: *(--(out))=(unsigned char)(((tout0)>>16)&0xff); casecase 2:executed 1 time by 1 test: 1:case 1:Executed by:
executed 1 time by 1 test: case 1:Executed by:
code before this statement executed 1 time by 1 test: *(--(out))=(unsigned char)(((tout0)>>24)&0xff); }case 1:Executed by:
executed 1 time by 1 test: };end of blockExecuted by:
| 0-1 | ||||||||||||||||||||||||
| 66 | xor0=tin0; | - | ||||||||||||||||||||||||
| 67 | xor1=tin1; | - | ||||||||||||||||||||||||
| 68 | } executed 1 time by 1 test: end of blockExecuted by:
| 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 blockExecuted by:
| 2 | ||||||||||||||||||||||||
| 72 | tin0=tin1=tout0=tout1=xor0=xor1=0; | - | ||||||||||||||||||||||||
| 73 | tin[0]=tin[1]=0; | - | ||||||||||||||||||||||||
| 74 | } executed 3 times by 1 test: end of blockExecuted by:
| 3 | ||||||||||||||||||||||||
| 75 | - | |||||||||||||||||||||||||
| 76 | void 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
executed 15 times by 1 test: else x1=(-(int)x1-*p+1);end of blockExecuted by:
executed 1 time by 1 test: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1);Executed by:
executed 16 times by 1 test: else x4=(-(int)x4-*p+1);end of blockExecuted by:
never executed: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1);
executed 16 times by 1 test: else t0=(-(int)t0-*p+1);end of blockExecuted by:
never executed: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1);
executed 16 times by 1 test: else t1=(-(int)t1-*p+1);end of blockExecuted by:
never executed: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); | 0-16 | ||||||||||||||||||||||||
| 89 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 16 times by 1 test: else x1=(-(int)x1-*p+1);end of blockExecuted by:
never executed: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1);
executed 16 times by 1 test: else x4=(-(int)x4-*p+1);end of blockExecuted by:
never executed: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1);
executed 11 times by 1 test: else t0=(-(int)t0-*p+1);end of blockExecuted by:
executed 5 times by 1 test: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1);Executed by:
executed 16 times by 1 test: else t1=(-(int)t1-*p+1);end of blockExecuted by:
never executed: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); | 0-16 | ||||||||||||||||||||||||
| 90 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 16 times by 1 test: else x1=(-(int)x1-*p+1);end of blockExecuted by:
never executed: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1);
executed 16 times by 1 test: else x4=(-(int)x4-*p+1);end of blockExecuted by:
never executed: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1);
executed 16 times by 1 test: else t0=(-(int)t0-*p+1);end of blockExecuted by:
never executed: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1);
executed 16 times by 1 test: else t1=(-(int)t1-*p+1);end of blockExecuted by:
never executed: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); | 0-16 | ||||||||||||||||||||||||
| 91 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 16 times by 1 test: else x1=(-(int)x1-*p+1);end of blockExecuted by:
never executed: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1);
executed 16 times by 1 test: else x4=(-(int)x4-*p+1);end of blockExecuted by:
never executed: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1);
executed 16 times by 1 test: else t0=(-(int)t0-*p+1);end of blockExecuted by:
never executed: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1);
executed 16 times by 1 test: else t1=(-(int)t1-*p+1);end of blockExecuted by:
never executed: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); | 0-16 | ||||||||||||||||||||||||
| 92 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 16 times by 1 test: else x1=(-(int)x1-*p+1);end of blockExecuted by:
never executed: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1);
executed 16 times by 1 test: else x4=(-(int)x4-*p+1);end of blockExecuted by:
never executed: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1);
executed 16 times by 1 test: else t0=(-(int)t0-*p+1);end of blockExecuted by:
never executed: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1);
executed 16 times by 1 test: else t1=(-(int)t1-*p+1);end of blockExecuted by:
never executed: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); | 0-16 | ||||||||||||||||||||||||
| 93 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 16 times by 1 test: else x1=(-(int)x1-*p+1);end of blockExecuted by:
never executed: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1);
executed 16 times by 1 test: else x4=(-(int)x4-*p+1);end of blockExecuted by:
never executed: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1);
executed 16 times by 1 test: else t0=(-(int)t0-*p+1);end of blockExecuted by:
never executed: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1);
executed 16 times by 1 test: else t1=(-(int)t1-*p+1);end of blockExecuted by:
never executed: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); | 0-16 | ||||||||||||||||||||||||
| 94 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 16 times by 1 test: else x1=(-(int)x1-*p+1);end of blockExecuted by:
never executed: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1);
executed 16 times by 1 test: else x4=(-(int)x4-*p+1);end of blockExecuted by:
never executed: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1);
executed 11 times by 1 test: else t0=(-(int)t0-*p+1);end of blockExecuted by:
executed 5 times by 1 test: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1);Executed by:
executed 16 times by 1 test: else t1=(-(int)t1-*p+1);end of blockExecuted by:
never executed: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); | 0-16 | ||||||||||||||||||||||||
| 95 | x1&=0xffff; ul=(unsigned long)x1**p; if (ul != 0
executed 16 times by 1 test: else x1=(-(int)x1-*p+1);end of blockExecuted by:
never executed: ; p++; x2+= *(p++); x3+= *(p++); x4&=0xffff; ul=(unsigned long)x4**p; if (ul != 0x1=(-(int)x1-*p+1);
executed 16 times by 1 test: else x4=(-(int)x4-*p+1);end of blockExecuted by:
never executed: ; p++; t0=(x1^x3)&0xffff; ul=(unsigned long)t0**p; if (ul != 0x4=(-(int)x4-*p+1);
executed 16 times by 1 test: else t0=(-(int)t0-*p+1);end of blockExecuted by:
never executed: ; p++; t1=(t0+(x2^x4))&0xffff; ul=(unsigned long)t1**p; if (ul != 0t0=(-(int)t0-*p+1);
executed 16 times by 1 test: else t1=(-(int)t1-*p+1);end of blockExecuted by:
never executed: ; p++; t0+=t1; x1^=t1; x4^=t0; ul=x2^t0; x2=x3^t1; x3=ul;;t1=(-(int)t1-*p+1); | 0-16 | ||||||||||||||||||||||||
| 96 | - | |||||||||||||||||||||||||
| 97 | x1&=0xffff; | - | ||||||||||||||||||||||||
| 98 | ul=(unsigned long)x1**p; if (ul != 0
executed 15 times by 1 test: else x1=(-(int)x1-*p+1);end of blockExecuted by:
executed 1 time by 1 test: ; p++;x1=(-(int)x1-*p+1);Executed by:
| 1-15 | ||||||||||||||||||||||||
| 99 | - | |||||||||||||||||||||||||
| 100 | t0= x3+ *(p++); | - | ||||||||||||||||||||||||
| 101 | t1= x2+ *(p++); | - | ||||||||||||||||||||||||
| 102 | - | |||||||||||||||||||||||||
| 103 | x4&=0xffff; | - | ||||||||||||||||||||||||
| 104 | ul=(unsigned long)x4**p; if (ul != 0
executed 16 times by 1 test: else x4=(-(int)x4-*p+1);end of blockExecuted by:
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 blockExecuted by:
| 16 | ||||||||||||||||||||||||
| Switch to Source code | Preprocessed file |