OpenCoverage

memcasecmp.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/memcasecmp.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9int-
10memcasecmp (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
i < nDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • uniq
FALSEevaluated 12 times by 1 test
Evaluated by:
  • uniq
; i++)
12
16 {-
17 unsigned char u1 = s1[i];-
18 unsigned char u2 = s2[i];-
19 int U1 = -
20 (__extension__ ({ int __res; if (sizeof (
sizeof ( u1 ) > 1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • uniq
0-12
21 u1
sizeof ( u1 ) > 1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • uniq
0-12
22 ) > 1
sizeof ( u1 ) > 1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • uniq
) { if (__builtin_constant_p (
__builtin_constant_p ( u1 )Description
TRUEnever evaluated
FALSEnever evaluated
0-12
23 u1
__builtin_constant_p ( u1 )Description
TRUEnever evaluated
FALSEnever evaluated
0
24 )
__builtin_constant_p ( u1 )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
0
25 u1-
26 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_toupper_loc ())[__c]; }
never executed: end of block
else __res = toupper (
never executed: __res = toupper ( u1 );
0
27 u1
never executed: __res = toupper ( u1 );
0
28 );
never executed: __res = toupper ( u1 );
} else __res = (*__ctype_toupper_loc ())[(int) (
executed 12 times by 1 test: __res = (*__ctype_toupper_loc ())[(int) ( u1 )];
Executed by:
  • uniq
0-12
29 u1
executed 12 times by 1 test: __res = (*__ctype_toupper_loc ())[(int) ( u1 )];
Executed by:
  • uniq
12
30 )];
executed 12 times by 1 test: __res = (*__ctype_toupper_loc ())[(int) ( u1 )];
Executed by:
  • uniq
__res; }))
12
31 ;-
32 int U2 = -
33 (__extension__ ({ int __res; if (sizeof (
sizeof ( u2 ) > 1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • uniq
0-12
34 u2
sizeof ( u2 ) > 1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • uniq
0-12
35 ) > 1
sizeof ( u2 ) > 1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • uniq
) { if (__builtin_constant_p (
__builtin_constant_p ( u2 )Description
TRUEnever evaluated
FALSEnever evaluated
0-12
36 u2
__builtin_constant_p ( u2 )Description
TRUEnever evaluated
FALSEnever evaluated
0
37 )
__builtin_constant_p ( u2 )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
0
38 u2-
39 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_toupper_loc ())[__c]; }
never executed: end of block
else __res = toupper (
never executed: __res = toupper ( u2 );
0
40 u2
never executed: __res = toupper ( u2 );
0
41 );
never executed: __res = toupper ( u2 );
} else __res = (*__ctype_toupper_loc ())[(int) (
executed 12 times by 1 test: __res = (*__ctype_toupper_loc ())[(int) ( u2 )];
Executed by:
  • uniq
0-12
42 u2
executed 12 times by 1 test: __res = (*__ctype_toupper_loc ())[(int) ( u2 )];
Executed by:
  • uniq
12
43 )];
executed 12 times by 1 test: __res = (*__ctype_toupper_loc ())[(int) ( u2 )];
Executed by:
  • uniq
__res; }))
12
44 ;-
45 int diff = (-
46 (
(0x7f * 2 + 1) <= 0x7fffffffDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • uniq
FALSEnever evaluated
0x7f * 2 + 1)
(0x7f * 2 + 1) <= 0x7fffffffDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • uniq
FALSEnever evaluated
0-12
47 <= 0x7fffffff
(0x7f * 2 + 1) <= 0x7fffffffDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • uniq
FALSEnever evaluated
? U1 - U2
0-12
48 : U1 < U2
U1 < U2Description
TRUEnever evaluated
FALSEnever evaluated
? -1 : U2 < U1);
0
49 if (diff
diffDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • uniq
)
0-12
50 return
never executed: return diff;
diff;
never executed: return diff;
0
51 }
executed 12 times by 1 test: end of block
Executed by:
  • uniq
12
52 return
executed 12 times by 1 test: return 0;
Executed by:
  • uniq
0;
executed 12 times by 1 test: return 0;
Executed by:
  • uniq
12
53}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2