Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/memcasecmp.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | - | |||||||||||||
4 | - | |||||||||||||
5 | - | |||||||||||||
6 | - | |||||||||||||
7 | - | |||||||||||||
8 | - | |||||||||||||
9 | int | - | ||||||||||||
10 | memcasecmp (const void *vs1, const void *vs2, size_t n) | - | ||||||||||||
11 | { | - | ||||||||||||
12 | size_t i; | - | ||||||||||||
13 | char const *s1 = vs1; | - | ||||||||||||
14 | char const *s2 = vs2; | - | ||||||||||||
15 | for (i = 0; i < n
| 12 | ||||||||||||
16 | { | - | ||||||||||||
17 | unsigned char u1 = s1[i]; | - | ||||||||||||
18 | unsigned char u2 = s2[i]; | - | ||||||||||||
19 | int U1 = | - | ||||||||||||
20 | (__extension__ ({ int __res; if (sizeof (
| 0-12 | ||||||||||||
21 | u1
| 0-12 | ||||||||||||
22 | ) > 1
| 0-12 | ||||||||||||
23 | u1
| 0 | ||||||||||||
24 | )
| 0 | ||||||||||||
25 | u1 | - | ||||||||||||
26 | ); __res = __c < -128
never executed: else __res = toupper (end of block never executed: __res = toupper ( u1 ); | 0 | ||||||||||||
27 | u1 never executed: __res = toupper ( u1 ); | 0 | ||||||||||||
28 | ); never executed: } else __res = (*__ctype_toupper_loc ())[(int) (__res = toupper ( u1 ); executed 12 times by 1 test: __res = (*__ctype_toupper_loc ())[(int) ( u1 )]; Executed by:
| 0-12 | ||||||||||||
29 | u1 executed 12 times by 1 test: __res = (*__ctype_toupper_loc ())[(int) ( u1 )]; Executed by:
| 12 | ||||||||||||
30 | )]; executed 12 times by 1 test: __res; }))__res = (*__ctype_toupper_loc ())[(int) ( u1 )]; Executed by:
| 12 | ||||||||||||
31 | ; | - | ||||||||||||
32 | int U2 = | - | ||||||||||||
33 | (__extension__ ({ int __res; if (sizeof (
| 0-12 | ||||||||||||
34 | u2
| 0-12 | ||||||||||||
35 | ) > 1
| 0-12 | ||||||||||||
36 | u2
| 0 | ||||||||||||
37 | )
| 0 | ||||||||||||
38 | u2 | - | ||||||||||||
39 | ); __res = __c < -128
never executed: else __res = toupper (end of block never executed: __res = toupper ( u2 ); | 0 | ||||||||||||
40 | u2 never executed: __res = toupper ( u2 ); | 0 | ||||||||||||
41 | ); never executed: } else __res = (*__ctype_toupper_loc ())[(int) (__res = toupper ( u2 ); executed 12 times by 1 test: __res = (*__ctype_toupper_loc ())[(int) ( u2 )]; Executed by:
| 0-12 | ||||||||||||
42 | u2 executed 12 times by 1 test: __res = (*__ctype_toupper_loc ())[(int) ( u2 )]; Executed by:
| 12 | ||||||||||||
43 | )]; executed 12 times by 1 test: __res; }))__res = (*__ctype_toupper_loc ())[(int) ( u2 )]; Executed by:
| 12 | ||||||||||||
44 | ; | - | ||||||||||||
45 | int diff = ( | - | ||||||||||||
46 | (
| 0-12 | ||||||||||||
47 | <= 0x7fffffff
| 0-12 | ||||||||||||
48 | : U1 < U2
| 0 | ||||||||||||
49 | if (diff
| 0-12 | ||||||||||||
50 | return never executed: diff;return diff; never executed: return diff; | 0 | ||||||||||||
51 | } executed 12 times by 1 test: end of block Executed by:
| 12 | ||||||||||||
52 | return executed 12 times by 1 test: 0;return 0; Executed by:
executed 12 times by 1 test: return 0; Executed by:
| 12 | ||||||||||||
53 | } | - | ||||||||||||
Switch to Source code | Preprocessed file |