OpenCoverage

sm_loop.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/bash/src/lib/glob/sm_loop.c
Switch to Source codePreprocessed file
LineSourceCount
1struct smat_struct-
2{-
3 unsigned char *pattern;-
4 unsigned char *string;-
5};-
6-
7int internal_strmatch (unsigned char *, unsigned char *, int);-
8-
9static int gmatch (unsigned char *, unsigned char *, unsigned char *, unsigned char *, struct smat_struct *, int);-
10static unsigned char *parse_collsym (unsigned char *, int *);-
11static unsigned char *brackmatch (unsigned char *, unsigned char, int);-
12static int extmatch (int, unsigned char *, unsigned char *, unsigned char *, unsigned char *, int);-
13-
14 unsigned char *glob_patscan (unsigned char *, unsigned char *, int);-
15-
16int-
17internal_strmatch (pattern, string, flags)-
18 unsigned char *pattern;-
19 unsigned char *string;-
20 int flags;-
21{-
22 unsigned char *se, *pe;-
23-
24 if (string == 0
string == 0Description
TRUEnever evaluated
FALSEevaluated 48823644 times by 1 test
Evaluated by:
  • Self test
|| pattern == 0
pattern == 0Description
TRUEnever evaluated
FALSEevaluated 48823644 times by 1 test
Evaluated by:
  • Self test
)
0-48823644
25 return
never executed: return 1;
1;
never executed: return 1;
0
26-
27 se = string + strlen((char *)string);-
28 pe = pattern + strlen((char *)pattern);-
29-
30 return
executed 48823644 times by 1 test: return (gmatch (string, se, pattern, pe, (struct smat_struct *) ((void *)0) , flags));
Executed by:
  • Self test
(gmatch (string, se, pattern, pe, (struct smat_struct *)
executed 48823644 times by 1 test: return (gmatch (string, se, pattern, pe, (struct smat_struct *) ((void *)0) , flags));
Executed by:
  • Self test
48823644
31 ((void *)0)
executed 48823644 times by 1 test: return (gmatch (string, se, pattern, pe, (struct smat_struct *) ((void *)0) , flags));
Executed by:
  • Self test
48823644
32 , flags));
executed 48823644 times by 1 test: return (gmatch (string, se, pattern, pe, (struct smat_struct *) ((void *)0) , flags));
Executed by:
  • Self test
48823644
33}-
34-
35-
36-
37static int-
38gmatch (string, se, pattern, pe, ends, flags)-
39 unsigned char *string, *se;-
40 unsigned char *pattern, *pe;-
41 struct smat_struct *ends;-
42 int flags;-
43{-
44 unsigned char *p, *n;-
45 int c;-
46 int sc;-
47-
48 p = pattern;-
49 n = string;-
50-
51 if (string == 0
string == 0Description
TRUEnever evaluated
FALSEevaluated 49026933 times by 1 test
Evaluated by:
  • Self test
|| pattern == 0
pattern == 0Description
TRUEnever evaluated
FALSEevaluated 49026933 times by 1 test
Evaluated by:
  • Self test
)
0-49026933
52 return
never executed: return 1;
1;
never executed: return 1;
0
53-
54-
55-
56-
57-
58-
59 while (p < pe
p < peDescription
TRUEevaluated 121590254 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 28282211 times by 1 test
Evaluated by:
  • Self test
)
28282211-121590254
60 {-
61 c = *p++;-
62 c = ((
(flags & (1 << 4))Description
TRUEevaluated 152 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 121590102 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEevaluated 152 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 121590102 times by 1 test
Evaluated by:
  • Self test
? ((1 &&
152-121590102
63 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 140 times by 1 test
Evaluated by:
  • Self test
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 140 times by 1 test
Evaluated by:
  • Self test
12-140
64 (unsigned char)(unsigned char)c
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 140 times by 1 test
Evaluated by:
  • Self test
12-140
65 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 140 times by 1 test
Evaluated by:
  • Self test
12-140
66 ) ? -
67 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • Self test
0-12
68 (unsigned char)c
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • Self test
0-12
69 ) > 1
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • Self test
) { if (__builtin_constant_p (
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
0-12
70 (unsigned char)c
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
0
71 )
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
0
72 (unsigned char)c-
73 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)c );
0
74 (unsigned char)c
never executed: __res = tolower ( (unsigned char)c );
0
75 );
never executed: __res = tolower ( (unsigned char)c );
} else __res = (*__ctype_tolower_loc ())[(int) (
executed 12 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
Executed by:
  • Self test
0-12
76 (unsigned char)c
executed 12 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
Executed by:
  • Self test
12
77 )];
executed 12 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
Executed by:
  • Self test
__res; }))
12
78 : ((unsigned char)c)) : ((unsigned char)c));-
79-
80 sc = n < se
n < seDescription
TRUEevaluated 121315965 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 274289 times by 1 test
Evaluated by:
  • Self test
? *n : '\0';
274289-121315965
81-
82-
83-
84-
85 if ((
(flags & (1 << 5))Description
TRUEevaluated 8030821 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 113559433 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 5))
(flags & (1 << 5))Description
TRUEevaluated 8030821 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 113559433 times by 1 test
Evaluated by:
  • Self test
&& *
*p == '('Description
TRUEevaluated 8437 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 8022384 times by 1 test
Evaluated by:
  • Self test
p == '('
*p == '('Description
TRUEevaluated 8437 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 8022384 times by 1 test
Evaluated by:
  • Self test
&&
8437-113559433
86 (c == '+'
c == '+'Description
TRUEevaluated 163 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 8274 times by 1 test
Evaluated by:
  • Self test
|| c == '*'
c == '*'Description
TRUEevaluated 3021 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5253 times by 1 test
Evaluated by:
  • Self test
|| c == '?'
c == '?'Description
TRUEevaluated 44 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5209 times by 1 test
Evaluated by:
  • Self test
|| c == '@'
c == '@'Description
TRUEevaluated 5060 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 149 times by 1 test
Evaluated by:
  • Self test
|| c == '!'
c == '!'Description
TRUEevaluated 149 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
))
0-8274
87 {-
88 int lflags;-
89-
90-
91 lflags = (
(n == string)Description
TRUEevaluated 7382 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1055 times by 1 test
Evaluated by:
  • Self test
n == string)
(n == string)Description
TRUEevaluated 7382 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1055 times by 1 test
Evaluated by:
  • Self test
? flags : (flags & ~(1 << 2));
1055-7382
92 return
executed 8437 times by 1 test: return (extmatch (c, n, se, p, pe, lflags));
Executed by:
  • Self test
(extmatch (c, n, se, p, pe, lflags));
executed 8437 times by 1 test: return (extmatch (c, n, se, p, pe, lflags));
Executed by:
  • Self test
8437
93 }-
94-
95-
96 switch (c)-
97 {-
98 case
executed 18876 times by 1 test: case '?':
Executed by:
  • Self test
'?':
executed 18876 times by 1 test: case '?':
Executed by:
  • Self test
18876
99 if (sc == '\0'
sc == '\0'Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 18858 times by 1 test
Evaluated by:
  • Self test
)
18-18858
100 return
executed 18 times by 1 test: return 1;
Executed by:
  • Self test
1;
executed 18 times by 1 test: return 1;
Executed by:
  • Self test
18
101 else if ((
(flags & (1 << 0))Description
TRUEevaluated 1772 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 17086 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEevaluated 1772 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 17086 times by 1 test
Evaluated by:
  • Self test
&& sc == '/'
sc == '/'Description
TRUEnever evaluated
FALSEevaluated 1772 times by 1 test
Evaluated by:
  • Self test
)
0-17086
102-
103 return
never executed: return 1;
1;
never executed: return 1;
0
104 else if ((
(flags & (1 << 2))Description
TRUEevaluated 1748 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 17110 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 2))
(flags & (1 << 2))Description
TRUEevaluated 1748 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 17110 times by 1 test
Evaluated by:
  • Self test
&& sc == '.'
sc == '.'Description
TRUEnever evaluated
FALSEevaluated 1748 times by 1 test
Evaluated by:
  • Self test
&&
0-17110
105 (n == string
n == stringDescription
TRUEnever evaluated
FALSEnever evaluated
|| ((
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEnever evaluated
&& n[-1] == '/'
n[-1] == '/'Description
TRUEnever evaluated
FALSEnever evaluated
)))
0
106-
107-
108-
109 return
never executed: return 1;
1;
never executed: return 1;
0
110 break;
executed 18858 times by 1 test: break;
Executed by:
  • Self test
18858
111-
112 case
executed 85217778 times by 1 test: case '\\':
Executed by:
  • Self test
'\\':
executed 85217778 times by 1 test: case '\\':
Executed by:
  • Self test
85217778
113 if (p == pe
p == peDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 85217772 times by 1 test
Evaluated by:
  • Self test
&& sc == '\\'
sc == '\\'Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& (
(n+1 == se)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
n+1 == se)
(n+1 == se)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-85217772
114 break;
executed 6 times by 1 test: break;
Executed by:
  • Self test
6
115-
116 if (p == pe
p == peDescription
TRUEnever evaluated
FALSEevaluated 85217772 times by 1 test
Evaluated by:
  • Self test
)
0-85217772
117 return
never executed: return 1;
1;
never executed: return 1;
0
118-
119 if ((
(flags & (1 << 1)) == 0Description
TRUEevaluated 85217772 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
flags & (1 << 1)) == 0
(flags & (1 << 1)) == 0Description
TRUEevaluated 85217772 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-85217772
120 {-
121 c = *p++;-
122-
123 if (p > pe
p > peDescription
TRUEnever evaluated
FALSEevaluated 85217772 times by 1 test
Evaluated by:
  • Self test
)
0-85217772
124 return
never executed: return 1;
1;
never executed: return 1;
0
125 c = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 85217772 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 85217772 times by 1 test
Evaluated by:
  • Self test
? ((1 &&
0-85217772
126 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
127 (unsigned char)(unsigned char)c
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
128 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
129 ) ? -
130 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0
131 (unsigned char)c
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0
132 ) > 1
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
) { if (__builtin_constant_p (
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
0
133 (unsigned char)c
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
0
134 )
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
0
135 (unsigned char)c-
136 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)c );
0
137 (unsigned char)c
never executed: __res = tolower ( (unsigned char)c );
0
138 );
never executed: __res = tolower ( (unsigned char)c );
} else __res = (*__ctype_tolower_loc ())[(int) (
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
0
139 (unsigned char)c
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
0
140 )];
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
__res; }))
0
141 : ((unsigned char)c)) : ((unsigned char)c));-
142 }
executed 85217772 times by 1 test: end of block
Executed by:
  • Self test
85217772
143 if (((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 85217772 times by 1 test
Evaluated by:
  • Self test
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 85217772 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 85217772 times by 1 test
Evaluated by:
  • Self test
? ((1 &&
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
0-85217772
144 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
0-83827321
145 (unsigned char)(unsigned char)sc
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
0-83827321
146 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
0-83827321
147 ) ?
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
1390451-83827321
148 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi... char)sc ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
0-83827321
149 (unsigned char)sc
sizeof ( (unsi... char)sc ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
0-83827321
150 ) > 1
sizeof ( (unsi... char)sc ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
) { if (__builtin_constant_p (
__builtin_cons...gned char)sc )Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
0-83827321
151 (unsigned char)sc
__builtin_cons...gned char)sc )Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
0-83827321
152 )
__builtin_cons...gned char)sc )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
0-83827321
153 (unsigned char)sc
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
1390451-83827321
154 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)sc );
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
0-83827321
155 (unsigned char)sc
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
never executed: __res = tolower ( (unsigned char)sc );
0-83827321
156 );
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
never executed: __res = tolower ( (unsigned char)sc );
} else __res = (*__ctype_tolower_loc ())[(int) (
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)sc )];
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
0-83827321
157 (unsigned char)sc
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)sc )];
0-83827321
158 )];
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)sc )];
__res; }))
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
0-83827321
159 : ((unsigned char)sc)) : ((unsigned char)sc)) != (unsigned char)c
((flags & (1 <...nsigned char)cDescription
TRUEevaluated 1390451 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 83827321 times by 1 test
Evaluated by:
  • Self test
)
1390451-83827321
160 return
executed 1390451 times by 1 test: return 1;
Executed by:
  • Self test
1;
executed 1390451 times by 1 test: return 1;
Executed by:
  • Self test
1390451
161 break;
executed 83827321 times by 1 test: break;
Executed by:
  • Self test
83827321
162-
163 case
executed 4904304 times by 1 test: case '*':
Executed by:
  • Self test
'*':
executed 4904304 times by 1 test: case '*':
Executed by:
  • Self test
4904304
164-
165-
166 if (ends !=
ends != ((void *)0)Description
TRUEevaluated 59159 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 4845145 times by 1 test
Evaluated by:
  • Self test
59159-4845145
167 ((void *)0)
ends != ((void *)0)Description
TRUEevaluated 59159 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 4845145 times by 1 test
Evaluated by:
  • Self test
59159-4845145
168 )-
169 {-
170 ends->pattern = p - 1;-
171 ends->string = n;-
172 return
executed 59159 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 59159 times by 1 test: return (0);
Executed by:
  • Self test
59159
173 }-
174-
175 if ((
(flags & (1 << 2))Description
TRUEevaluated 24186 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 4820959 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 2))
(flags & (1 << 2))Description
TRUEevaluated 24186 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 4820959 times by 1 test
Evaluated by:
  • Self test
&& sc == '.'
sc == '.'Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 24177 times by 1 test
Evaluated by:
  • Self test
&&
9-4820959
176 (n == string
n == stringDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
|| ((
(flags & (1 << 0))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& n[-1] == '/'
n[-1] == '/'Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
)))
0-7
177-
178-
179-
180 return
executed 7 times by 1 test: return 1;
Executed by:
  • Self test
1;
executed 7 times by 1 test: return 1;
Executed by:
  • Self test
7
181-
182 if (p == pe
p == peDescription
TRUEevaluated 4757910 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 87228 times by 1 test
Evaluated by:
  • Self test
)
87228-4757910
183 return
executed 4757910 times by 1 test: return 0;
Executed by:
  • Self test
0;
executed 4757910 times by 1 test: return 0;
Executed by:
  • Self test
4757910
184-
185-
186-
187 for (c = *p++; (c == '?'
c == '?'Description
TRUEevaluated 2811 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 87222 times by 1 test
Evaluated by:
  • Self test
|| c == '*'
c == '*'Description
TRUEevaluated 407 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 86815 times by 1 test
Evaluated by:
  • Self test
); c = *p++)
407-87222
188 {-
189 if ((
(flags & (1 << 0))Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3212 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3212 times by 1 test
Evaluated by:
  • Self test
&& sc == '/'
sc == '/'Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • Self test
)
0-3212
190-
191 return
never executed: return 1;
1;
never executed: return 1;
0
192-
193 else if ((
(flags & (1 << 5))Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3199 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 5))
(flags & (1 << 5))Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3199 times by 1 test
Evaluated by:
  • Self test
&& c == '?'
c == '?'Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 13 times by 1 test
Evaluated by:
  • Self test
&& *
*p == '('Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
p == '('
*p == '('Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-3199
194 {-
195 unsigned char *newn;-
196-
197-
198 if (extmatch (c, n, se, p, pe, flags) == 0
extmatch (c, n...e, flags) == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
)
1-5
199 return
executed 1 time by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 1 time by 1 test: return (0);
Executed by:
  • Self test
1
200-
201-
202-
203-
204-
205 newn = glob_patscan (p + 1, pe, 0);-
206-
207 p = newn
newnDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
? newn : pe;
0-5
208 }
executed 5 times by 1 test: end of block
Executed by:
  • Self test
5
209-
210 else if (c == '?'
c == '?'Description
TRUEevaluated 2805 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 407 times by 1 test
Evaluated by:
  • Self test
)
407-2805
211 {-
212 if (sc == '\0'
sc == '\0'Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2800 times by 1 test
Evaluated by:
  • Self test
)
5-2800
213 return
executed 5 times by 1 test: return 1;
Executed by:
  • Self test
1;
executed 5 times by 1 test: return 1;
Executed by:
  • Self test
5
214-
215-
216-
217 n++;-
218 sc = n < se
n < seDescription
TRUEevaluated 2721 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 79 times by 1 test
Evaluated by:
  • Self test
? *n : '\0';
79-2721
219 }
executed 2800 times by 1 test: end of block
Executed by:
  • Self test
2800
220-
221-
222-
223 if ((
(flags & (1 << 5))Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3194 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 5))
(flags & (1 << 5))Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3194 times by 1 test
Evaluated by:
  • Self test
&& c == '*'
c == '*'Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
&& *
*p == '('Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
p == '('
*p == '('Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
)
5-3194
224 {-
225 unsigned char *newn;-
226-
227-
228-
229 for (newn = n; newn < se
newn < seDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
; ++newn)
3-16
230 {-
231 if (extmatch (c, newn, se, p, pe, flags) == 0
extmatch (c, n...e, flags) == 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 11 times by 1 test
Evaluated by:
  • Self test
)
5-11
232 return
executed 5 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 5 times by 1 test: return (0);
Executed by:
  • Self test
5
233 }
executed 11 times by 1 test: end of block
Executed by:
  • Self test
11
234-
235-
236-
237-
238 newn = glob_patscan (p + 1, pe, 0);-
239-
240 p = newn
newnDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
? newn : pe;
0-3
241 }
executed 3 times by 1 test: end of block
Executed by:
  • Self test
3
242-
243 if (p == pe
p == peDescription
TRUEevaluated 402 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2805 times by 1 test
Evaluated by:
  • Self test
)
402-2805
244 break;
executed 402 times by 1 test: break;
Executed by:
  • Self test
402
245 }
executed 2805 times by 1 test: end of block
Executed by:
  • Self test
2805
246-
247-
248-
249-
250 if (c == '\0'
c == '\0'Description
TRUEnever evaluated
FALSEevaluated 87217 times by 1 test
Evaluated by:
  • Self test
)
0-87217
251 {-
252 int r = (
(flags & (1 << 0)) == 0Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 0)) == 0
(flags & (1 << 0)) == 0Description
TRUEnever evaluated
FALSEnever evaluated
? 0 : 1;
0
253 if (flags & (1 << 0)
flags & (1 << 0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
254 {-
255 if (flags & (1 << 3)
flags & (1 << 3)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
256 r = 0;
never executed: r = 0;
0
257 else if (memchr((n), ('/'), (se - n)) ==
memchr((n), ('...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
258 ((void *)0)
memchr((n), ('...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
259 )-
260 r = 0;
never executed: r = 0;
0
261 }
never executed: end of block
0
262 return
never executed: return r;
r;
never executed: return r;
0
263 }-
264-
265-
266-
267-
268 if (p == pe
p == peDescription
TRUEevaluated 7686 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 79531 times by 1 test
Evaluated by:
  • Self test
&& (c == '?'
c == '?'Description
TRUEevaluated 149 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 7537 times by 1 test
Evaluated by:
  • Self test
|| c == '*'
c == '*'Description
TRUEevaluated 253 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 7284 times by 1 test
Evaluated by:
  • Self test
))
149-79531
269 return
executed 402 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 402 times by 1 test: return (0);
Executed by:
  • Self test
402
270-
271-
272-
273-
274 if (n == se
n == seDescription
TRUEevaluated 86 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 86729 times by 1 test
Evaluated by:
  • Self test
&& ((
(flags & (1 << 5))Description
TRUEevaluated 66 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 20 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 5))
(flags & (1 << 5))Description
TRUEevaluated 66 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 20 times by 1 test
Evaluated by:
  • Self test
&& (c == '!'
c == '!'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 65 times by 1 test
Evaluated by:
  • Self test
|| c == '?'
c == '?'Description
TRUEnever evaluated
FALSEevaluated 65 times by 1 test
Evaluated by:
  • Self test
) && *
*p == '('Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
p == '('
*p == '('Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
))
0-86729
275 {-
276 --p;-
277 if (extmatch (c, n, se, p, pe, flags) == 0
extmatch (c, n...e, flags) == 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
)
0-1
278 return
never executed: return (c == '!' ? 1 : 0);
(c == '!' ? 1 : 0);
never executed: return (c == '!' ? 1 : 0);
0
279 return
executed 1 time by 1 test: return (c == '!' ? 0 : 1);
Executed by:
  • Self test
(c == '!' ? 0 : 1);
executed 1 time by 1 test: return (c == '!' ? 0 : 1);
Executed by:
  • Self test
1
280 }-
281-
282-
283-
284-
285-
286-
287 if (c == '/'
c == '/'Description
TRUEevaluated 55 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 86759 times by 1 test
Evaluated by:
  • Self test
&& (
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEevaluated 55 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEevaluated 55 times by 1 test
Evaluated by:
  • Self test
)
0-86759
288 {-
289 while (n < se
n < seDescription
TRUEnever evaluated
FALSEnever evaluated
&& *
*n != '/'Description
TRUEnever evaluated
FALSEnever evaluated
n != '/'
*n != '/'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
290 ++
never executed: ++n;
n;
never executed: ++n;
0
291 if (n < se
n < seDescription
TRUEnever evaluated
FALSEnever evaluated
&& *
*n == '/'Description
TRUEnever evaluated
FALSEnever evaluated
n == '/'
*n == '/'Description
TRUEnever evaluated
FALSEnever evaluated
&& (
(gmatch (n+1, ..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
gmatch (n+1, se, p, pe,
(gmatch (n+1, ..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
292 ((void *)0)
(gmatch (n+1, ..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
293 , flags) == 0)
(gmatch (n+1, ..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
294 return
never executed: return 0;
0;
never executed: return 0;
0
295 return
never executed: return 1;
1;
never executed: return 1;
0
296 }-
297-
298-
299 {-
300 unsigned char c1;-
301 const unsigned char *endp;-
302 struct smat_struct end;-
303-
304 end.pattern = -
305 ((void *)0)-
306 ;-
307 endp = memchr((n), ((flags & (1 << 0)) ? '/' : '\0'), (se - n));-
308 if (endp == 0
endp == 0Description
TRUEevaluated 86814 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-86814
309 endp = se;
executed 86814 times by 1 test: endp = se;
Executed by:
  • Self test
86814
310-
311 c1 = ((
(flags & (1 << 1)) == 0Description
TRUEevaluated 86814 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
flags & (1 << 1)) == 0
(flags & (1 << 1)) == 0Description
TRUEevaluated 86814 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& c == '\\'
c == '\\'Description
TRUEevaluated 330 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 86484 times by 1 test
Evaluated by:
  • Self test
) ? *p : c;
0-86814
312 c1 = ((
(flags & (1 << 4))Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 86794 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 86794 times by 1 test
Evaluated by:
  • Self test
? ((1 &&
20-86794
313 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 12 times by 1 test
Evaluated by:
  • Self test
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 12 times by 1 test
Evaluated by:
  • Self test
8-12
314 (unsigned char)(unsigned char)c1
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 12 times by 1 test
Evaluated by:
  • Self test
8-12
315 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 12 times by 1 test
Evaluated by:
  • Self test
8-12
316 ) ? -
317 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi... char)c1 ) > 1Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test
0-8
318 (unsigned char)c1
sizeof ( (unsi... char)c1 ) > 1Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test
0-8
319 ) > 1
sizeof ( (unsi... char)c1 ) > 1Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test
) { if (__builtin_constant_p (
__builtin_cons...gned char)c1 )Description
TRUEnever evaluated
FALSEnever evaluated
0-8
320 (unsigned char)c1
__builtin_cons...gned char)c1 )Description
TRUEnever evaluated
FALSEnever evaluated
0
321 )
__builtin_cons...gned char)c1 )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
0
322 (unsigned char)c1-
323 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)c1 );
0
324 (unsigned char)c1
never executed: __res = tolower ( (unsigned char)c1 );
0
325 );
never executed: __res = tolower ( (unsigned char)c1 );
} else __res = (*__ctype_tolower_loc ())[(int) (
executed 8 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c1 )];
Executed by:
  • Self test
0-8
326 (unsigned char)c1
executed 8 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c1 )];
Executed by:
  • Self test
8
327 )];
executed 8 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c1 )];
Executed by:
  • Self test
__res; }))
8
328 : ((unsigned char)c1)) : ((unsigned char)c1));-
329 for (--p; n < endp
n < endpDescription
TRUEevaluated 633708 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 27520 times by 1 test
Evaluated by:
  • Self test
; ++n)
27520-633708
330 {-
331-
332-
333-
334 if ((
(flags & (1 << 5)) == 0Description
TRUEevaluated 630288 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3420 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 5)) == 0
(flags & (1 << 5)) == 0Description
TRUEevaluated 630288 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3420 times by 1 test
Evaluated by:
  • Self test
&& c != '['
c != '['Description
TRUEevaluated 486190 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 144098 times by 1 test
Evaluated by:
  • Self test
&& ((
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4)) ? ((1 &&
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
14-630288
335 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
0-464082
336 (unsigned char)(unsigned char)*n
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
0-464082
337 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
0-464082
338 ) ?
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
22108-464082
339 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi... char)*n ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
0-464082
340 (unsigned char)*n
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
sizeof ( (unsi... char)*n ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0-464082
341 ) > 1
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
sizeof ( (unsi... char)*n ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
) { if (__builtin_constant_p (
__builtin_cons...gned char)*n )Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
0-464082
342 (unsigned char)*n
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
__builtin_cons...gned char)*n )Description
TRUEnever evaluated
FALSEnever evaluated
0-464082
343 )
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
__builtin_cons...gned char)*n )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
0-464082
344 (unsigned char)*n
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
22108-464082
345 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)*n );
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
0-464082
346 (unsigned char)*n
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
never executed: __res = tolower ( (unsigned char)*n );
0-464082
347 );
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
never executed: __res = tolower ( (unsigned char)*n );
} else __res = (*__ctype_tolower_loc ())[(int) (
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)*n )];
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
0-464082
348 (unsigned char)*n
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)*n )];
0-464082
349 )];
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)*n )];
__res; }))
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
0-464082
350 : ((unsigned char)*n)) : ((unsigned char)*n)) != c1
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 464082 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22108 times by 1 test
Evaluated by:
  • Self test
)
22108-464082
351 continue;
executed 464082 times by 1 test: continue;
Executed by:
  • Self test
464082
352-
353-
354-
355-
356 if ((
(flags & (1 << 5))Description
TRUEevaluated 3420 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 166206 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 5))
(flags & (1 << 5))Description
TRUEevaluated 3420 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 166206 times by 1 test
Evaluated by:
  • Self test
&& p[1] != '('
p[1] != '('Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2408 times by 1 test
Evaluated by:
  • Self test
&&
1012-166206
357 -
358 (
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
__extension__ (__builtin_constant_p (
__builtin_constant_p ( (*p) )Description
TRUEnever evaluated
FALSEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
359 (*p)
__builtin_constant_p ( (*p) )Description
TRUEnever evaluated
FALSEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
360 )
__builtin_constant_p ( (*p) )Description
TRUEnever evaluated
FALSEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
&& !__builtin_constant_p (
!__builtin_con... ( ("?*+@!") )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
361 ("?*+@!")
!__builtin_con... ( ("?*+@!") )Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
362 )
!__builtin_con... ( ("?*+@!") )Description
TRUEnever evaluated
FALSEnever evaluated
&& (
( (*p) ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
363 (*p)
( (*p) ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
364 ) == '\0'
( (*p) ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
? (char *) __rawmemchr (
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
365 ("?*+@!")
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
366 ,
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
367 (*p)
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
368 ) : __builtin_strchr (
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
369 ("?*+@!")
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
370 ,
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
371 (*p)
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
372 )))
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
0-1012
373 == 0
(__extension__... (*p) ))) == 0Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& c != '['
c != '['Description
TRUEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 1012 times by 1 test
Evaluated by:
  • Self test
? ((1 &&
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
0-1012
374 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
0-904
375 (unsigned char)(unsigned char)*n
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
0-904
376 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
0-904
377 ) ?
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
108-904
378 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi... char)*n ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
0-904
379 (unsigned char)*n
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
sizeof ( (unsi... char)*n ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0-904
380 ) > 1
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
sizeof ( (unsi... char)*n ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
) { if (__builtin_constant_p (
__builtin_cons...gned char)*n )Description
TRUEnever evaluated
FALSEnever evaluated
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
0-904
381 (unsigned char)*n
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
__builtin_cons...gned char)*n )Description
TRUEnever evaluated
FALSEnever evaluated
0-904
382 )
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
__builtin_cons...gned char)*n )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
0-904
383 (unsigned char)*n
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
108-904
384 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)*n );
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
0-904
385 (unsigned char)*n
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
never executed: __res = tolower ( (unsigned char)*n );
0-904
386 );
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
never executed: __res = tolower ( (unsigned char)*n );
} else __res = (*__ctype_tolower_loc ())[(int) (
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)*n )];
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
0-904
387 (unsigned char)*n
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)*n )];
0-904
388 )];
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)*n )];
__res; }))
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
0-904
389 : ((unsigned char)*n)) : ((unsigned char)*n)) != c1
((flags & (1 <...har)*n)) != c1Description
TRUEevaluated 904 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 108 times by 1 test
Evaluated by:
  • Self test
)
108-904
390 continue;
executed 904 times by 1 test: continue;
Executed by:
  • Self test
904
391-
392-
393 if (gmatch (n, se, p, pe, &end, flags & ~(1 << 2)) == 0
gmatch (n, se,...(1 << 2)) == 0Description
TRUEevaluated 59294 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 109428 times by 1 test
Evaluated by:
  • Self test
)
59294-109428
394 {-
395 if (end.pattern ==
end.pattern == ((void *)0)Description
TRUEevaluated 135 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 59159 times by 1 test
Evaluated by:
  • Self test
135-59159
396 ((void *)0)
end.pattern == ((void *)0)Description
TRUEevaluated 135 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 59159 times by 1 test
Evaluated by:
  • Self test
135-59159
397 )-
398 return
executed 135 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 135 times by 1 test: return (0);
Executed by:
  • Self test
135
399 break;
executed 59159 times by 1 test: break;
Executed by:
  • Self test
59159
400 }-
401 }
executed 109428 times by 1 test: end of block
Executed by:
  • Self test
109428
402-
403-
404-
405-
406 if (end.pattern !=
end.pattern != ((void *)0)Description
TRUEevaluated 59159 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 27520 times by 1 test
Evaluated by:
  • Self test
27520-59159
407 ((void *)0)
end.pattern != ((void *)0)Description
TRUEevaluated 59159 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 27520 times by 1 test
Evaluated by:
  • Self test
27520-59159
408 )-
409 {-
410 p = end.pattern;-
411 n = end.string;-
412 continue;
executed 59159 times by 1 test: continue;
Executed by:
  • Self test
59159
413 }-
414-
415 return
executed 27520 times by 1 test: return 1;
Executed by:
  • Self test
1;
executed 27520 times by 1 test: return 1;
Executed by:
  • Self test
27520
416 }-
417-
418 case
executed 280515 times by 1 test: case '[':
Executed by:
  • Self test
'[':
executed 280515 times by 1 test: case '[':
Executed by:
  • Self test
280515
419 {-
420 if (sc == '\0'
sc == '\0'Description
TRUEevaluated 191 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 280324 times by 1 test
Evaluated by:
  • Self test
|| n == se
n == seDescription
TRUEnever evaluated
FALSEevaluated 280324 times by 1 test
Evaluated by:
  • Self test
)
0-280324
421 return
executed 191 times by 1 test: return 1;
Executed by:
  • Self test
1;
executed 191 times by 1 test: return 1;
Executed by:
  • Self test
191
422-
423-
424-
425-
426 if ((
(flags & (1 << 2))Description
TRUEevaluated 36812 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 243512 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 2))
(flags & (1 << 2))Description
TRUEevaluated 36812 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 243512 times by 1 test
Evaluated by:
  • Self test
&& sc == '.'
sc == '.'Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 36770 times by 1 test
Evaluated by:
  • Self test
&&
42-243512
427 (n == string
n == stringDescription
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • Self test
|| ((
(flags & (1 << 0))Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& n[-1] == '/'
n[-1] == '/'Description
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • Self test
)))
0-42
428 return
never executed: return (1);
(1);
never executed: return (1);
0
429-
430 p = brackmatch (p, sc, flags);-
431 if (p == 0
p == 0Description
TRUEevaluated 103457 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 176867 times by 1 test
Evaluated by:
  • Self test
)
103457-176867
432 return
executed 103457 times by 1 test: return 1;
Executed by:
  • Self test
1;
executed 103457 times by 1 test: return 1;
Executed by:
  • Self test
103457
433 }-
434 break;
executed 176867 times by 1 test: break;
Executed by:
  • Self test
176867
435-
436 default
executed 31160344 times by 1 test: default:
Executed by:
  • Self test
:
executed 31160344 times by 1 test: default:
Executed by:
  • Self test
31160344
437 if ((
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
unsigned char)c != ((
(flags & (1 << 4))Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 31160312 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 31160312 times by 1 test
Evaluated by:
  • Self test
? ((1 &&
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
32-31160312
438 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 31 times by 1 test
Evaluated by:
  • Self test
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 31 times by 1 test
Evaluated by:
  • Self test
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
1-16763321
439 (unsigned char)(unsigned char)sc
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 31 times by 1 test
Evaluated by:
  • Self test
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
1-16763321
440 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 31 times by 1 test
Evaluated by:
  • Self test
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
1-16763321
441 ) ?
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
14397023-16763321
442 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi... char)sc ) > 1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
0-16763321
443 (unsigned char)sc
sizeof ( (unsi... char)sc ) > 1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
0-16763321
444 ) > 1
sizeof ( (unsi... char)sc ) > 1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
) { if (__builtin_constant_p (
__builtin_cons...gned char)sc )Description
TRUEnever evaluated
FALSEnever evaluated
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
0-16763321
445 (unsigned char)sc
__builtin_cons...gned char)sc )Description
TRUEnever evaluated
FALSEnever evaluated
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
0-16763321
446 )
__builtin_cons...gned char)sc )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
0-16763321
447 (unsigned char)sc
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
14397023-16763321
448 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)sc );
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
0-16763321
449 (unsigned char)sc
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
never executed: __res = tolower ( (unsigned char)sc );
0-16763321
450 );
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
never executed: __res = tolower ( (unsigned char)sc );
} else __res = (*__ctype_tolower_loc ())[(int) (
executed 1 time by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)sc )];
Executed by:
  • Self test
0-16763321
451 (unsigned char)sc
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
executed 1 time by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)sc )];
Executed by:
  • Self test
1-16763321
452 )]; __res; }))
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
1-16763321
453 : ((unsigned char)sc)) : ((unsigned char)sc))
(unsigned char...gned char)sc))Description
TRUEevaluated 14397023 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16763321 times by 1 test
Evaluated by:
  • Self test
)
14397023-16763321
454 return
executed 14397023 times by 1 test: return (1);
Executed by:
  • Self test
(1);
executed 14397023 times by 1 test: return (1);
Executed by:
  • Self test
14397023
455 }
executed 16763321 times by 1 test: end of block
Executed by:
  • Self test
16763321
456-
457 ++n;-
458 }
executed 100786373 times by 1 test: end of block
Executed by:
  • Self test
100786373
459-
460 if (n == se
n == seDescription
TRUEevaluated 23050972 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5231239 times by 1 test
Evaluated by:
  • Self test
)
5231239-23050972
461 return
executed 23050972 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 23050972 times by 1 test: return (0);
Executed by:
  • Self test
23050972
462-
463 if ((
(flags & (1 << 3))Description
TRUEnever evaluated
FALSEevaluated 5231239 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 3))
(flags & (1 << 3))Description
TRUEnever evaluated
FALSEevaluated 5231239 times by 1 test
Evaluated by:
  • Self test
&& *
*n == '/'Description
TRUEnever evaluated
FALSEnever evaluated
n == '/'
*n == '/'Description
TRUEnever evaluated
FALSEnever evaluated
)
0-5231239
464-
465 return
never executed: return 0;
0;
never executed: return 0;
0
466-
467 return
executed 5231239 times by 1 test: return (1);
Executed by:
  • Self test
(1);
executed 5231239 times by 1 test: return (1);
Executed by:
  • Self test
5231239
468}-
469-
470-
471-
472-
473static unsigned char *-
474parse_collsym (p, vp)-
475 unsigned char *p;-
476 int *vp;-
477{-
478 register int pc;-
479 int val;-
480-
481 p++;-
482-
483 for (pc = 0; p[pc]
p[pc]Description
TRUEevaluated 87 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
; pc++)
0-87
484 if (p[pc] == '.'
p[pc] == '.'Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 62 times by 1 test
Evaluated by:
  • Self test
&& p[pc+1] == ']'
p[pc+1] == ']'Description
TRUEevaluated 25 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-62
485 break;
executed 25 times by 1 test: break;
Executed by:
  • Self test
25
486 if (p[pc] == 0
p[pc] == 0Description
TRUEnever evaluated
FALSEevaluated 25 times by 1 test
Evaluated by:
  • Self test
)
0-25
487 {-
488 if (vp
vpDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
489 *
never executed: *vp = -1;
vp = -1;
never executed: *vp = -1;
0
490 return
never executed: return (p + pc);
(p + pc);
never executed: return (p + pc);
0
491 }-
492 val = collsym (p, pc);-
493 if (vp
vpDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-25
494 *
executed 25 times by 1 test: *vp = val;
Executed by:
  • Self test
vp = val;
executed 25 times by 1 test: *vp = val;
Executed by:
  • Self test
25
495 return
executed 25 times by 1 test: return (p + pc + 2);
Executed by:
  • Self test
(p + pc + 2);
executed 25 times by 1 test: return (p + pc + 2);
Executed by:
  • Self test
25
496}-
497-
498-
499static unsigned char *-
500-
501brackmatch (unsigned char *p, unsigned char test, int flags)-
502-
503-
504-
505-
506-
507-
508{-
509 register unsigned char cstart, cend, c;-
510 register int not;-
511 int brcnt, brchr, forcecoll;-
512 int pc;-
513 unsigned char *savep;-
514 unsigned char orig_test;-
515-
516 orig_test = test;-
517 test = ((
(flags & (1 << 4))Description
TRUEevaluated 48 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 280276 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEevaluated 48 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 280276 times by 1 test
Evaluated by:
  • Self test
? ((1 &&
48-280276
518 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 47 times by 1 test
Evaluated by:
  • Self test
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 47 times by 1 test
Evaluated by:
  • Self test
1-47
519 (unsigned char)(unsigned char)orig_test
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 47 times by 1 test
Evaluated by:
  • Self test
1-47
520 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 47 times by 1 test
Evaluated by:
  • Self test
1-47
521 ) ? -
522 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi...rig_test ) > 1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
0-1
523 (unsigned char)orig_test
sizeof ( (unsi...rig_test ) > 1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
0-1
524 ) > 1
sizeof ( (unsi...rig_test ) > 1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
) { if (__builtin_constant_p (
__builtin_cons...ar)orig_test )Description
TRUEnever evaluated
FALSEnever evaluated
0-1
525 (unsigned char)orig_test
__builtin_cons...ar)orig_test )Description
TRUEnever evaluated
FALSEnever evaluated
0
526 )
__builtin_cons...ar)orig_test )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
0
527 (unsigned char)orig_test-
528 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)orig_test );
0
529 (unsigned char)orig_test
never executed: __res = tolower ( (unsigned char)orig_test );
0
530 );
never executed: __res = tolower ( (unsigned char)orig_test );
} else __res = (*__ctype_tolower_loc ())[(int) (
executed 1 time by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)orig_test )];
Executed by:
  • Self test
0-1
531 (unsigned char)orig_test
executed 1 time by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)orig_test )];
Executed by:
  • Self test
1
532 )];
executed 1 time by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)orig_test )];
Executed by:
  • Self test
__res; }))
1
533 : ((unsigned char)orig_test)) : ((unsigned char)orig_test));-
534-
535 savep = p;-
536-
537-
538-
539-
540-
541 if (not = (*
*p == '!'Description
TRUEevaluated 28638 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 251686 times by 1 test
Evaluated by:
  • Self test
p == '!'
*p == '!'Description
TRUEevaluated 28638 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 251686 times by 1 test
Evaluated by:
  • Self test
|| *
*p == '^'Description
TRUEevaluated 116838 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 134848 times by 1 test
Evaluated by:
  • Self test
p == '^'
*p == '^'Description
TRUEevaluated 116838 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 134848 times by 1 test
Evaluated by:
  • Self test
))
28638-251686
542 ++
executed 145476 times by 1 test: ++p;
Executed by:
  • Self test
p;
executed 145476 times by 1 test: ++p;
Executed by:
  • Self test
145476
543-
544 c = *p++;-
545 for (;;)-
546 {-
547-
548-
549 cstart = cend = c;-
550 forcecoll = 0;-
551-
552-
553-
554-
555-
556-
557 if (c == '['
c == '['Description
TRUEevaluated 97129 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 273825 times by 1 test
Evaluated by:
  • Self test
&& *
*p == '='Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 97126 times by 1 test
Evaluated by:
  • Self test
p == '='
*p == '='Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 97126 times by 1 test
Evaluated by:
  • Self test
&& p[2] == '='
p[2] == '='Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& p[3] == ']'
p[3] == ']'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-273825
558 {-
559 pc = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
? ((1 &&
0-3
560 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
561 (unsigned char)(unsigned char)p[1]
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
562 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
563 ) ? -
564 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi...har)p[1] ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0
565 (unsigned char)p[1]
sizeof ( (unsi...har)p[1] ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0
566 ) > 1
sizeof ( (unsi...har)p[1] ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
) { if (__builtin_constant_p (
__builtin_cons...ed char)p[1] )Description
TRUEnever evaluated
FALSEnever evaluated
0
567 (unsigned char)p[1]
__builtin_cons...ed char)p[1] )Description
TRUEnever evaluated
FALSEnever evaluated
0
568 )
__builtin_cons...ed char)p[1] )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
0
569 (unsigned char)p[1]-
570 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)p[1] );
0
571 (unsigned char)p[1]
never executed: __res = tolower ( (unsigned char)p[1] );
0
572 );
never executed: __res = tolower ( (unsigned char)p[1] );
} else __res = (*__ctype_tolower_loc ())[(int) (
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)p[1] )];
0
573 (unsigned char)p[1]
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)p[1] )];
0
574 )];
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)p[1] )];
__res; }))
0
575 : ((unsigned char)p[1])) : ((unsigned char)p[1]));-
576 p += 4;-
577 if (collequiv((test), (pc))
collequiv((test), (pc))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
)
1-2
578 {-
579-
580-
581 p++;-
582 goto
executed 1 time by 1 test: goto matched;
Executed by:
  • Self test
matched;
executed 1 time by 1 test: goto matched;
Executed by:
  • Self test
1
583 }-
584 else-
585 {-
586 c = *p++;-
587 if (c == '\0'
c == '\0'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
)
1
588 return
executed 1 time by 1 test: return ((test == '[') ? savep : (unsigned char *)0);
Executed by:
  • Self test
((test == '[') ? savep : (unsigned char *)0);
executed 1 time by 1 test: return ((test == '[') ? savep : (unsigned char *)0);
Executed by:
  • Self test
1
589 c = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
? ((1 &&
0-1
590 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
591 (unsigned char)(unsigned char)c
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
592 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
593 ) ? -
594 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0
595 (unsigned char)c
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0
596 ) > 1
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
) { if (__builtin_constant_p (
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
0
597 (unsigned char)c
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
0
598 )
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
0
599 (unsigned char)c-
600 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)c );
0
601 (unsigned char)c
never executed: __res = tolower ( (unsigned char)c );
0
602 );
never executed: __res = tolower ( (unsigned char)c );
} else __res = (*__ctype_tolower_loc ())[(int) (
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
0
603 (unsigned char)c
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
0
604 )];
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
__res; }))
0
605 : ((unsigned char)c)) : ((unsigned char)c));-
606 continue;
executed 1 time by 1 test: continue;
Executed by:
  • Self test
1
607 }-
608 }-
609-
610-
611 if (c == '['
c == '['Description
TRUEevaluated 97126 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 273825 times by 1 test
Evaluated by:
  • Self test
&& *
*p == ':'Description
TRUEevaluated 79317 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 17809 times by 1 test
Evaluated by:
  • Self test
p == ':'
*p == ':'Description
TRUEevaluated 79317 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 17809 times by 1 test
Evaluated by:
  • Self test
)
17809-273825
612 {-
613 unsigned char *close, *ccname;-
614-
615 pc = 0;-
616-
617 for (close = p + 1; *
*close != '\0'Description
TRUEevaluated 475915 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test
close != '\0'
*close != '\0'Description
TRUEevaluated 475915 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test
; close++)
14-475915
618 if (*
*close == ':'Description
TRUEevaluated 79303 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 396612 times by 1 test
Evaluated by:
  • Self test
close == ':'
*close == ':'Description
TRUEevaluated 79303 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 396612 times by 1 test
Evaluated by:
  • Self test
&& *(
*(close+1) == ']'Description
TRUEevaluated 79303 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
close+1) == ']'
*(close+1) == ']'Description
TRUEevaluated 79303 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-396612
619 break;
executed 79303 times by 1 test: break;
Executed by:
  • Self test
79303
620-
621 if (*
*close != '\0'Description
TRUEevaluated 79303 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test
close != '\0'
*close != '\0'Description
TRUEevaluated 79303 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test
)
14-79303
622 {-
623 ccname = (unsigned char *)malloc ((close - p) * sizeof (unsigned char));-
624 if (ccname == 0
ccname == 0Description
TRUEnever evaluated
FALSEevaluated 79303 times by 1 test
Evaluated by:
  • Self test
)
0-79303
625 pc = 0;
never executed: pc = 0;
0
626 else-
627 {-
628 bcopy (p + 1, ccname, (close - p - 1) * sizeof (unsigned char));-
629 *(ccname + (close - p - 1)) = '\0';-
630 pc = is_cclass((orig_test), ((char *)ccname));-
631 }
executed 79303 times by 1 test: end of block
Executed by:
  • Self test
79303
632 if (pc == -1
pc == -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 79302 times by 1 test
Evaluated by:
  • Self test
)
1-79302
633 pc = 0;
executed 1 time by 1 test: pc = 0;
Executed by:
  • Self test
1
634 else-
635 p = close + 2;
executed 79302 times by 1 test: p = close + 2;
Executed by:
  • Self test
79302
636-
637 sh_xfree((ccname), "sm_loop.c", 465);-
638 }
executed 79303 times by 1 test: end of block
Executed by:
  • Self test
79303
639-
640 if (pc
pcDescription
TRUEevaluated 71222 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 8095 times by 1 test
Evaluated by:
  • Self test
)
8095-71222
641 {-
642-
643-
644 p++;-
645 goto
executed 71222 times by 1 test: goto matched;
Executed by:
  • Self test
matched;
executed 71222 times by 1 test: goto matched;
Executed by:
  • Self test
71222
646 }-
647 else-
648 {-
649-
650-
651 c = *p++;-
652 if (c == '\0'
c == '\0'Description
TRUEnever evaluated
FALSEevaluated 8095 times by 1 test
Evaluated by:
  • Self test
)
0-8095
653 return
never executed: return ((test == '[') ? savep : (unsigned char *)0);
((test == '[') ? savep : (unsigned char *)0);
never executed: return ((test == '[') ? savep : (unsigned char *)0);
0
654 else if (c == ']'
c == ']'Description
TRUEevaluated 4067 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 4028 times by 1 test
Evaluated by:
  • Self test
)
4028-4067
655 break;
executed 4067 times by 1 test: break;
Executed by:
  • Self test
4067
656 c = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 4028 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 4028 times by 1 test
Evaluated by:
  • Self test
? ((1 &&
0-4028
657 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
658 (unsigned char)(unsigned char)c
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
659 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
660 ) ? -
661 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0
662 (unsigned char)c
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0
663 ) > 1
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
) { if (__builtin_constant_p (
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
0
664 (unsigned char)c
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
0
665 )
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
0
666 (unsigned char)c-
667 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)c );
0
668 (unsigned char)c
never executed: __res = tolower ( (unsigned char)c );
0
669 );
never executed: __res = tolower ( (unsigned char)c );
} else __res = (*__ctype_tolower_loc ())[(int) (
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
0
670 (unsigned char)c
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
0
671 )];
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
__res; }))
0
672 : ((unsigned char)c)) : ((unsigned char)c));-
673 continue;
executed 4028 times by 1 test: continue;
Executed by:
  • Self test
4028
674 }-
675 }-
676-
677-
678-
679-
680-
681 if (c == '['
c == '['Description
TRUEevaluated 17809 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 273825 times by 1 test
Evaluated by:
  • Self test
&& *
*p == '.'Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 17790 times by 1 test
Evaluated by:
  • Self test
p == '.'
*p == '.'Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 17790 times by 1 test
Evaluated by:
  • Self test
)
19-273825
682 {-
683 p = parse_collsym (p, &pc);-
684-
685-
686-
687 cstart = (
(pc == -1)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 13 times by 1 test
Evaluated by:
  • Self test
pc == -1)
(pc == -1)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 13 times by 1 test
Evaluated by:
  • Self test
? test + 1 : pc;
6-13
688 forcecoll = 1;-
689 }
executed 19 times by 1 test: end of block
Executed by:
  • Self test
19
690-
691 if (!(flags & (1 << 1))
!(flags & (1 << 1))Description
TRUEevaluated 291634 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& c == '\\'
c == '\\'Description
TRUEevaluated 343 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 291291 times by 1 test
Evaluated by:
  • Self test
)
0-291634
692 {-
693 if (*
*p == '\0'Description
TRUEnever evaluated
FALSEevaluated 343 times by 1 test
Evaluated by:
  • Self test
p == '\0'
*p == '\0'Description
TRUEnever evaluated
FALSEevaluated 343 times by 1 test
Evaluated by:
  • Self test
)
0-343
694 return
never executed: return (unsigned char *)0;
(unsigned char *)0;
never executed: return (unsigned char *)0;
0
695 cstart = cend = *p++;-
696 }
executed 343 times by 1 test: end of block
Executed by:
  • Self test
343
697-
698 cstart = cend = ((
(flags & (1 << 4))Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 291566 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 291566 times by 1 test
Evaluated by:
  • Self test
? ((1 &&
68-291566
699 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 54 times by 1 test
Evaluated by:
  • Self test
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 54 times by 1 test
Evaluated by:
  • Self test
14-54
700 (unsigned char)(unsigned char)cstart
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 54 times by 1 test
Evaluated by:
  • Self test
14-54
701 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 54 times by 1 test
Evaluated by:
  • Self test
14-54
702 ) ? -
703 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi...r)cstart ) > 1Description
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test
0-14
704 (unsigned char)cstart
sizeof ( (unsi...r)cstart ) > 1Description
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test
0-14
705 ) > 1
sizeof ( (unsi...r)cstart ) > 1Description
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • Self test
) { if (__builtin_constant_p (
__builtin_cons... char)cstart )Description
TRUEnever evaluated
FALSEnever evaluated
0-14
706 (unsigned char)cstart
__builtin_cons... char)cstart )Description
TRUEnever evaluated
FALSEnever evaluated
0
707 )
__builtin_cons... char)cstart )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
0
708 (unsigned char)cstart-
709 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)cstart );
0
710 (unsigned char)cstart
never executed: __res = tolower ( (unsigned char)cstart );
0
711 );
never executed: __res = tolower ( (unsigned char)cstart );
} else __res = (*__ctype_tolower_loc ())[(int) (
executed 14 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)cstart )];
Executed by:
  • Self test
0-14
712 (unsigned char)cstart
executed 14 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)cstart )];
Executed by:
  • Self test
14
713 )];
executed 14 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)cstart )];
Executed by:
  • Self test
__res; }))
14
714 : ((unsigned char)cstart)) : ((unsigned char)cstart));-
715-
716-
717-
718-
719-
720-
721 if (c == '\0'
c == '\0'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 291632 times by 1 test
Evaluated by:
  • Self test
)
2-291632
722 return
executed 2 times by 1 test: return ((test == '[') ? savep : (unsigned char *)0);
Executed by:
  • Self test
((test == '[') ? savep : (unsigned char *)0);
executed 2 times by 1 test: return ((test == '[') ? savep : (unsigned char *)0);
Executed by:
  • Self test
2
723-
724 c = *p++;-
725 c = ((
(flags & (1 << 4))Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 291564 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 291564 times by 1 test
Evaluated by:
  • Self test
? ((1 &&
68-291564
726 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 40 times by 1 test
Evaluated by:
  • Self test
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 40 times by 1 test
Evaluated by:
  • Self test
28-40
727 (unsigned char)(unsigned char)c
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 40 times by 1 test
Evaluated by:
  • Self test
28-40
728 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 40 times by 1 test
Evaluated by:
  • Self test
28-40
729 ) ? -
730 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEevaluated 28 times by 1 test
Evaluated by:
  • Self test
0-28
731 (unsigned char)c
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEevaluated 28 times by 1 test
Evaluated by:
  • Self test
0-28
732 ) > 1
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEevaluated 28 times by 1 test
Evaluated by:
  • Self test
) { if (__builtin_constant_p (
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
0-28
733 (unsigned char)c
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
0
734 )
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
0
735 (unsigned char)c-
736 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)c );
0
737 (unsigned char)c
never executed: __res = tolower ( (unsigned char)c );
0
738 );
never executed: __res = tolower ( (unsigned char)c );
} else __res = (*__ctype_tolower_loc ())[(int) (
executed 28 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
Executed by:
  • Self test
0-28
739 (unsigned char)c
executed 28 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
Executed by:
  • Self test
28
740 )];
executed 28 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
Executed by:
  • Self test
__res; }))
28
741 : ((unsigned char)c)) : ((unsigned char)c));-
742-
743 if (c == '\0'
c == '\0'Description
TRUEevaluated 513 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 291119 times by 1 test
Evaluated by:
  • Self test
)
513-291119
744 return
executed 513 times by 1 test: return ((test == '[') ? savep : (unsigned char *)0);
Executed by:
  • Self test
((test == '[') ? savep : (unsigned char *)0);
executed 513 times by 1 test: return ((test == '[') ? savep : (unsigned char *)0);
Executed by:
  • Self test
513
745-
746 if ((
(flags & (1 << 0))Description
TRUEevaluated 69307 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 221812 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEevaluated 69307 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 221812 times by 1 test
Evaluated by:
  • Self test
&& c == '/'
c == '/'Description
TRUEnever evaluated
FALSEevaluated 69307 times by 1 test
Evaluated by:
  • Self test
)
0-221812
747-
748 return
never executed: return (unsigned char *)0;
(unsigned char *)0;
never executed: return (unsigned char *)0;
0
749-
750-
751-
752-
753 if (c == '-'
c == '-'Description
TRUEevaluated 38281 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 252838 times by 1 test
Evaluated by:
  • Self test
&& *
*p != ']'Description
TRUEevaluated 38274 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test
p != ']'
*p != ']'Description
TRUEevaluated 38274 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test
)
7-252838
754 {-
755 cend = *p++;-
756 if (!(flags & (1 << 1))
!(flags & (1 << 1))Description
TRUEevaluated 38274 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& cend == '\\'
cend == '\\'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 38273 times by 1 test
Evaluated by:
  • Self test
)
0-38274
757 cend = *p++;
executed 1 time by 1 test: cend = *p++;
Executed by:
  • Self test
1
758 if (cend == '\0'
cend == '\0'Description
TRUEnever evaluated
FALSEevaluated 38274 times by 1 test
Evaluated by:
  • Self test
)
0-38274
759 return
never executed: return (unsigned char *)0;
(unsigned char *)0;
never executed: return (unsigned char *)0;
0
760 if (cend == '['
cend == '['Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 38268 times by 1 test
Evaluated by:
  • Self test
&& *
*p == '.'Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
p == '.'
*p == '.'Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-38268
761 {-
762 p = parse_collsym (p, &pc);-
763-
764-
765-
766 cend = (
(pc == -1)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
pc == -1)
(pc == -1)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
? test - 1 : pc;
1-5
767 forcecoll = 1;-
768 }
executed 6 times by 1 test: end of block
Executed by:
  • Self test
6
769 cend = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 38274 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 38274 times by 1 test
Evaluated by:
  • Self test
? ((1 &&
0-38274
770 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
771 (unsigned char)(unsigned char)cend
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
772 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
773 ) ? -
774 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi...har)cend ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0
775 (unsigned char)cend
sizeof ( (unsi...har)cend ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0
776 ) > 1
sizeof ( (unsi...har)cend ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
) { if (__builtin_constant_p (
__builtin_cons...ed char)cend )Description
TRUEnever evaluated
FALSEnever evaluated
0
777 (unsigned char)cend
__builtin_cons...ed char)cend )Description
TRUEnever evaluated
FALSEnever evaluated
0
778 )
__builtin_cons...ed char)cend )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
0
779 (unsigned char)cend-
780 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)cend );
0
781 (unsigned char)cend
never executed: __res = tolower ( (unsigned char)cend );
0
782 );
never executed: __res = tolower ( (unsigned char)cend );
} else __res = (*__ctype_tolower_loc ())[(int) (
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)cend )];
0
783 (unsigned char)cend
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)cend )];
0
784 )];
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)cend )];
__res; }))
0
785 : ((unsigned char)cend)) : ((unsigned char)cend));-
786-
787 c = *p++;-
788-
789-
790-
791-
792-
793-
794 if (rangecmp((cstart), (cend), (forcecoll)) > 0
rangecmp((csta...orcecoll)) > 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 38272 times by 1 test
Evaluated by:
  • Self test
)
2-38272
795 {-
796 if (c == ']'
c == ']'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
)
1
797 break;
executed 1 time by 1 test: break;
Executed by:
  • Self test
1
798 c = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
? ((1 &&
0-1
799 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
800 (unsigned char)(unsigned char)c
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
801 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEnever evaluated
FALSEnever evaluated
0
802 ) ? -
803 (__extension__ ({ int __res; if (sizeof (
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0
804 (unsigned char)c
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
0
805 ) > 1
sizeof ( (unsi...d char)c ) > 1Description
TRUEnever evaluated
FALSEnever evaluated
) { if (__builtin_constant_p (
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
0
806 (unsigned char)c
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
0
807 )
__builtin_cons...igned char)c )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
0
808 (unsigned char)c-
809 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (unsigned char)c );
0
810 (unsigned char)c
never executed: __res = tolower ( (unsigned char)c );
0
811 );
never executed: __res = tolower ( (unsigned char)c );
} else __res = (*__ctype_tolower_loc ())[(int) (
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
0
812 (unsigned char)c
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
0
813 )];
never executed: __res = (*__ctype_tolower_loc ())[(int) ( (unsigned char)c )];
__res; }))
0
814 : ((unsigned char)c)) : ((unsigned char)c));-
815 continue;
executed 1 time by 1 test: continue;
Executed by:
  • Self test
1
816 }-
817 }
executed 38272 times by 1 test: end of block
Executed by:
  • Self test
38272
818-
819 if (rangecmp((test), (cstart), (forcecoll)) >= 0
rangecmp((test...rcecoll)) >= 0Description
TRUEevaluated 225541 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 65576 times by 1 test
Evaluated by:
  • Self test
&& rangecmp((test), (cend), (forcecoll)) <= 0
rangecmp((test...rcecoll)) <= 0Description
TRUEevaluated 41569 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 183972 times by 1 test
Evaluated by:
  • Self test
)
41569-225541
820 goto
executed 41569 times by 1 test: goto matched;
Executed by:
  • Self test
matched;
executed 41569 times by 1 test: goto matched;
Executed by:
  • Self test
41569
821-
822 if (c == ']'
c == ']'Description
TRUEevaluated 162948 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 86600 times by 1 test
Evaluated by:
  • Self test
)
86600-162948
823 break;
executed 162948 times by 1 test: break;
Executed by:
  • Self test
162948
824 }
executed 86600 times by 1 test: end of block
Executed by:
  • Self test
86600
825-
826 return
executed 167016 times by 1 test: return (!not ? (unsigned char *)0 : p);
Executed by:
  • Self test
(!not ? (unsigned char *)0 : p);
executed 167016 times by 1 test: return (!not ? (unsigned char *)0 : p);
Executed by:
  • Self test
167016
827-
828matched:-
829-
830 c = *--p;-
831 brcnt = 1;-
832 brchr = 0;-
833 while (brcnt > 0
brcnt > 0Description
TRUEevaluated 303898 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 112665 times by 1 test
Evaluated by:
  • Self test
)
112665-303898
834 {-
835 int oc;-
836-
837-
838 if (c == '\0'
c == '\0'Description
TRUEevaluated 127 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 303771 times by 1 test
Evaluated by:
  • Self test
)
127-303771
839 return
executed 127 times by 1 test: return ((test == '[') ? savep : (unsigned char *)0);
Executed by:
  • Self test
((test == '[') ? savep : (unsigned char *)0);
executed 127 times by 1 test: return ((test == '[') ? savep : (unsigned char *)0);
Executed by:
  • Self test
127
840-
841 oc = c;-
842 c = *p++;-
843 if (c == '['
c == '['Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 303767 times by 1 test
Evaluated by:
  • Self test
&& (*
*p == '='Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test
p == '='
*p == '='Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • Self test
|| *
*p == ':'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
p == ':'
*p == ':'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3 times by 1 test
Evaluated by:
  • Self test
|| *
*p == '.'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
p == '.'
*p == '.'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
))
0-303767
844 {-
845 brcnt++;-
846 brchr = *p;-
847 }
executed 2 times by 1 test: end of block
Executed by:
  • Self test
2
848-
849 else if (c == ']'
c == ']'Description
TRUEevaluated 112667 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 191102 times by 1 test
Evaluated by:
  • Self test
&& brcnt > 1
brcnt > 1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 112665 times by 1 test
Evaluated by:
  • Self test
&& brchr != 0
brchr != 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& oc == brchr
oc == brchrDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-191102
850 brcnt--;
executed 2 times by 1 test: brcnt--;
Executed by:
  • Self test
2
851 else if (c == ']'
c == ']'Description
TRUEevaluated 112665 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 191102 times by 1 test
Evaluated by:
  • Self test
&& brcnt == 1
brcnt == 1Description
TRUEevaluated 112665 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-191102
852 brcnt--;
executed 112665 times by 1 test: brcnt--;
Executed by:
  • Self test
112665
853 else if (!(flags & (1 << 1))
!(flags & (1 << 1))Description
TRUEevaluated 191102 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& c == '\\'
c == '\\'Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 191091 times by 1 test
Evaluated by:
  • Self test
)
0-191102
854 {-
855 if (*
*p == '\0'Description
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • Self test
p == '\0'
*p == '\0'Description
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • Self test
)
0-11
856 return
never executed: return (unsigned char *)0;
(unsigned char *)0;
never executed: return (unsigned char *)0;
0
857-
858 ++p;-
859 }
executed 11 times by 1 test: end of block
Executed by:
  • Self test
11
860 }
executed 303771 times by 1 test: end of block
Executed by:
  • Self test
303771
861 return
executed 112665 times by 1 test: return (not ? (unsigned char *)0 : p);
Executed by:
  • Self test
(not ? (unsigned char *)0 : p);
executed 112665 times by 1 test: return (not ? (unsigned char *)0 : p);
Executed by:
  • Self test
112665
862}-
863 unsigned char *-
864glob_patscan (string, end, delim)-
865 unsigned char *string, *end;-
866 int delim;-
867{-
868 int pnest, bnest, skip;-
869 int cchar;-
870 unsigned char *s, c, *bfirst;-
871-
872 pnest = bnest = skip = 0;-
873 cchar = 0;-
874 bfirst = -
875 ((void *)0)-
876 ;-
877-
878 if (string == end
string == endDescription
TRUEevaluated 69 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 23102 times by 1 test
Evaluated by:
  • Self test
)
69-23102
879 return
executed 69 times by 1 test: return ( ((void *)0) );
Executed by:
  • Self test
(
executed 69 times by 1 test: return ( ((void *)0) );
Executed by:
  • Self test
69
880 ((void *)0)
executed 69 times by 1 test: return ( ((void *)0) );
Executed by:
  • Self test
69
881 );
executed 69 times by 1 test: return ( ((void *)0) );
Executed by:
  • Self test
69
882-
883 for (s = string; c = *s
c = *sDescription
TRUEevaluated 383270 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 10 times by 1 test
Evaluated by:
  • Self test
; s++)
10-383270
884 {-
885 if (s >= end
s >= endDescription
TRUEevaluated 2291 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 380979 times by 1 test
Evaluated by:
  • Self test
)
2291-380979
886 return
executed 2291 times by 1 test: return (s);
Executed by:
  • Self test
(s);
executed 2291 times by 1 test: return (s);
Executed by:
  • Self test
2291
887 if (skip
skipDescription
TRUEnever evaluated
FALSEevaluated 380979 times by 1 test
Evaluated by:
  • Self test
)
0-380979
888 {-
889 skip = 0;-
890 continue;
never executed: continue;
0
891 }-
892 switch (c)-
893 {-
894 case
never executed: case '\\':
'\\':
never executed: case '\\':
0
895 skip = 1;-
896 break;
never executed: break;
0
897-
898 case
never executed: case '\0':
'\0':
never executed: case '\0':
0
899 return
never executed: return ((unsigned char *) ((void *)0) );
((unsigned char *)
never executed: return ((unsigned char *) ((void *)0) );
0
900 ((void *)0)
never executed: return ((unsigned char *) ((void *)0) );
0
901 );
never executed: return ((unsigned char *) ((void *)0) );
0
902-
903-
904-
905-
906 case
executed 600 times by 1 test: case '[':
Executed by:
  • Self test
'[':
executed 600 times by 1 test: case '[':
Executed by:
  • Self test
600
907 if (bnest == 0
bnest == 0Description
TRUEevaluated 417 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 183 times by 1 test
Evaluated by:
  • Self test
)
183-417
908 {-
909 bfirst = s + 1;-
910 if (*
*bfirst == '!'Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 400 times by 1 test
Evaluated by:
  • Self test
bfirst == '!'
*bfirst == '!'Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 400 times by 1 test
Evaluated by:
  • Self test
|| *
*bfirst == '^'Description
TRUEevaluated 84 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 316 times by 1 test
Evaluated by:
  • Self test
bfirst == '^'
*bfirst == '^'Description
TRUEevaluated 84 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 316 times by 1 test
Evaluated by:
  • Self test
)
17-400
911 bfirst++;
executed 101 times by 1 test: bfirst++;
Executed by:
  • Self test
101
912 bnest++;-
913 }
executed 417 times by 1 test: end of block
Executed by:
  • Self test
417
914 else if (s[1] == ':'
s[1] == ':'Description
TRUEevaluated 183 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
|| s[1] == '.'
s[1] == '.'Description
TRUEnever evaluated
FALSEnever evaluated
|| s[1] == '='
s[1] == '='Description
TRUEnever evaluated
FALSEnever evaluated
)
0-183
915 cchar = s[1];
executed 183 times by 1 test: cchar = s[1];
Executed by:
  • Self test
183
916 break;
executed 600 times by 1 test: break;
Executed by:
  • Self test
600
917-
918-
919-
920-
921 case
executed 565 times by 1 test: case ']':
Executed by:
  • Self test
']':
executed 565 times by 1 test: case ']':
Executed by:
  • Self test
565
922 if (bnest
bnestDescription
TRUEevaluated 565 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-565
923 {-
924 if (cchar
ccharDescription
TRUEevaluated 183 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 382 times by 1 test
Evaluated by:
  • Self test
&& s[-1] == cchar
s[-1] == ccharDescription
TRUEevaluated 183 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-382
925 cchar = 0;
executed 183 times by 1 test: cchar = 0;
Executed by:
  • Self test
183
926 else if (s != bfirst
s != bfirstDescription
TRUEevaluated 382 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-382
927 {-
928 bnest--;-
929 bfirst = 0;-
930 }
executed 382 times by 1 test: end of block
Executed by:
  • Self test
382
931 }
executed 565 times by 1 test: end of block
Executed by:
  • Self test
565
932 break;
executed 565 times by 1 test: break;
Executed by:
  • Self test
565
933-
934 case
executed 16435 times by 1 test: case '(':
Executed by:
  • Self test
'(':
executed 16435 times by 1 test: case '(':
Executed by:
  • Self test
16435
935 if (bnest == 0
bnest == 0Description
TRUEevaluated 16435 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-16435
936 pnest++;
executed 16435 times by 1 test: pnest++;
Executed by:
  • Self test
16435
937 break;
executed 16435 times by 1 test: break;
Executed by:
  • Self test
16435
938-
939 case
executed 33901 times by 1 test: case ')':
Executed by:
  • Self test
')':
executed 33901 times by 1 test: case ')':
Executed by:
  • Self test
33901
940 if (bnest == 0
bnest == 0Description
TRUEevaluated 33866 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 35 times by 1 test
Evaluated by:
  • Self test
&& pnest-- <= 0
pnest-- <= 0Description
TRUEevaluated 17431 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 16435 times by 1 test
Evaluated by:
  • Self test
)
35-33866
941 return
executed 17431 times by 1 test: return ++s;
Executed by:
  • Self test
++s;
executed 17431 times by 1 test: return ++s;
Executed by:
  • Self test
17431
942 break;
executed 16470 times by 1 test: break;
Executed by:
  • Self test
16470
943-
944 case
executed 52602 times by 1 test: case '|':
Executed by:
  • Self test
'|':
executed 52602 times by 1 test: case '|':
Executed by:
  • Self test
52602
945 if (bnest == 0
bnest == 0Description
TRUEevaluated 52602 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& pnest == 0
pnest == 0Description
TRUEevaluated 6673 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 45929 times by 1 test
Evaluated by:
  • Self test
&& delim == '|'
delim == '|'Description
TRUEevaluated 3370 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3303 times by 1 test
Evaluated by:
  • Self test
)
0-52602
946 return
executed 3370 times by 1 test: return ++s;
Executed by:
  • Self test
++s;
executed 3370 times by 1 test: return ++s;
Executed by:
  • Self test
3370
947 break;
executed 49232 times by 1 test: break;
Executed by:
  • Self test
49232
948 }-
949 }
executed 360178 times by 1 test: end of block
Executed by:
  • Self test
360178
950-
951 return
executed 10 times by 1 test: return ( ((void *)0) );
Executed by:
  • Self test
(
executed 10 times by 1 test: return ( ((void *)0) );
Executed by:
  • Self test
10
952 ((void *)0)
executed 10 times by 1 test: return ( ((void *)0) );
Executed by:
  • Self test
10
953 );
executed 10 times by 1 test: return ( ((void *)0) );
Executed by:
  • Self test
10
954}-
955-
956-
957static int-
958strcompare (p, pe, s, se)-
959 unsigned char *p, *pe, *s, *se;-
960{-
961 int ret;-
962 unsigned char c1, c2;-
963 int l1, l2;-
964-
965 l1 = pe - p;-
966 l2 = se - s;-
967-
968 if (l1 != l2
l1 != l2Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
)
1-9
969 return
executed 9 times by 1 test: return (1);
Executed by:
  • Self test
(1);
executed 9 times by 1 test: return (1);
Executed by:
  • Self test
9
970-
971 c1 = *pe;-
972 c2 = *se;-
973-
974 if (c1 != 0
c1 != 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
)
0-1
975 *
never executed: *pe = '\0';
pe = '\0';
never executed: *pe = '\0';
0
976 if (c2 != 0
c2 != 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
)
0-1
977 *
never executed: *se = '\0';
se = '\0';
never executed: *se = '\0';
0
978-
979-
980 ret = strcoll(((char *)p), ((char *)s));-
981-
982-
983-
984-
985 if (c1 != 0
c1 != 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
)
0-1
986 *
never executed: *pe = c1;
pe = c1;
never executed: *pe = c1;
0
987 if (c2 != 0
c2 != 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • Self test
)
0-1
988 *
never executed: *se = c2;
se = c2;
never executed: *se = c2;
0
989-
990 return
executed 1 time by 1 test: return (ret == 0 ? ret : 1);
Executed by:
  • Self test
(ret == 0 ? ret : 1);
executed 1 time by 1 test: return (ret == 0 ? ret : 1);
Executed by:
  • Self test
1
991}-
992-
993-
994-
995-
996-
997static int-
998extmatch (xc, s, se, p, pe, flags)-
999 int xc;-
1000 unsigned char *s, *se;-
1001 unsigned char *p, *pe;-
1002 int flags;-
1003{-
1004 unsigned char *prest;-
1005 unsigned char *psub;-
1006 unsigned char *pnext;-
1007 unsigned char *srest;-
1008 int m1, m2, xflags;-
1009 prest = glob_patscan (p + (*p == '('), pe, 0);-
1010 if (prest == 0
prest == 0Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 8450 times by 1 test
Evaluated by:
  • Self test
)
10-8450
1011-
1012-
1013 return
executed 10 times by 1 test: return (strcompare (p - 1, pe, s, se));
Executed by:
  • Self test
(strcompare (p - 1, pe, s, se));
executed 10 times by 1 test: return (strcompare (p - 1, pe, s, se));
Executed by:
  • Self test
10
1014-
1015 switch (xc)-
1016 {-
1017 case
executed 160 times by 1 test: case '+':
Executed by:
  • Self test
'+':
executed 160 times by 1 test: case '+':
Executed by:
  • Self test
160
1018 case
executed 3034 times by 1 test: case '*':
Executed by:
  • Self test
'*':
executed 3034 times by 1 test: case '*':
Executed by:
  • Self test
3034
1019-
1020-
1021-
1022 if (xc == '*'
xc == '*'Description
TRUEevaluated 3034 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 160 times by 1 test
Evaluated by:
  • Self test
&& (
(gmatch (s, se..., flags) == 0)Description
TRUEevaluated 186 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2848 times by 1 test
Evaluated by:
  • Self test
gmatch (s, se, prest, pe,
(gmatch (s, se..., flags) == 0)Description
TRUEevaluated 186 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2848 times by 1 test
Evaluated by:
  • Self test
160-3034
1023 ((void *)0)
(gmatch (s, se..., flags) == 0)Description
TRUEevaluated 186 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2848 times by 1 test
Evaluated by:
  • Self test
186-2848
1024 , flags) == 0)
(gmatch (s, se..., flags) == 0)Description
TRUEevaluated 186 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2848 times by 1 test
Evaluated by:
  • Self test
)
186-2848
1025 return
executed 186 times by 1 test: return 0;
Executed by:
  • Self test
0;
executed 186 times by 1 test: return 0;
Executed by:
  • Self test
186
1026-
1027-
1028-
1029-
1030 for (psub = p + 1; ; psub = pnext)-
1031 {-
1032 pnext = glob_patscan (psub, pe, '|');-
1033 for (srest = s; srest <= se
srest <= seDescription
TRUEevaluated 17751 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2592 times by 1 test
Evaluated by:
  • Self test
; srest++)
2592-17751
1034 {-
1035-
1036-
1037 m1 = gmatch (s, srest, psub, pnext - 1, -
1038 ((void *)0)-
1039 , flags) == 0;-
1040-
1041-
1042-
1043 if (m1
m1Description
TRUEevaluated 1805 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 15946 times by 1 test
Evaluated by:
  • Self test
)
1805-15946
1044 {-
1045-
1046 xflags = (
(srest > s)Description
TRUEevaluated 1749 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 56 times by 1 test
Evaluated by:
  • Self test
srest > s)
(srest > s)Description
TRUEevaluated 1749 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 56 times by 1 test
Evaluated by:
  • Self test
? (flags & ~(1 << 2)) : flags;
56-1749
1047 m2 = (
(gmatch (srest... xflags) == 0)Description
TRUEevaluated 239 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1566 times by 1 test
Evaluated by:
  • Self test
gmatch (srest, se, prest, pe,
(gmatch (srest... xflags) == 0)Description
TRUEevaluated 239 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1566 times by 1 test
Evaluated by:
  • Self test
239-1566
1048 ((void *)0)
(gmatch (srest... xflags) == 0)Description
TRUEevaluated 239 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1566 times by 1 test
Evaluated by:
  • Self test
239-1566
1049 , xflags) == 0)
(gmatch (srest... xflags) == 0)Description
TRUEevaluated 239 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1566 times by 1 test
Evaluated by:
  • Self test
||
239-1566
1050 (s != srest
s != srestDescription
TRUEevaluated 1510 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 56 times by 1 test
Evaluated by:
  • Self test
&& gmatch (srest, se, p - 1, pe,
gmatch (srest,..., xflags) == 0Description
TRUEevaluated 270 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1240 times by 1 test
Evaluated by:
  • Self test
56-1510
1051 ((void *)0)
gmatch (srest,..., xflags) == 0Description
TRUEevaluated 270 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1240 times by 1 test
Evaluated by:
  • Self test
270-1240
1052 , xflags) == 0
gmatch (srest,..., xflags) == 0Description
TRUEevaluated 270 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1240 times by 1 test
Evaluated by:
  • Self test
);
270-1240
1053 }
executed 1805 times by 1 test: end of block
Executed by:
  • Self test
1805
1054 if (m1
m1Description
TRUEevaluated 1805 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 15946 times by 1 test
Evaluated by:
  • Self test
&& m2
m2Description
TRUEevaluated 509 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1296 times by 1 test
Evaluated by:
  • Self test
)
509-15946
1055 return
executed 509 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 509 times by 1 test: return (0);
Executed by:
  • Self test
509
1056 }
executed 17242 times by 1 test: end of block
Executed by:
  • Self test
17242
1057 if (pnext == prest
pnext == prestDescription
TRUEevaluated 2499 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 93 times by 1 test
Evaluated by:
  • Self test
)
93-2499
1058 break;
executed 2499 times by 1 test: break;
Executed by:
  • Self test
2499
1059 }
executed 93 times by 1 test: end of block
Executed by:
  • Self test
93
1060 return
executed 2499 times by 1 test: return (1);
Executed by:
  • Self test
(1);
executed 2499 times by 1 test: return (1);
Executed by:
  • Self test
2499
1061-
1062 case
executed 50 times by 1 test: case '?':
Executed by:
  • Self test
'?':
executed 50 times by 1 test: case '?':
Executed by:
  • Self test
50
1063 case
executed 5060 times by 1 test: case '@':
Executed by:
  • Self test
'@':
executed 5060 times by 1 test: case '@':
Executed by:
  • Self test
5060
1064-
1065-
1066-
1067 if (xc == '?'
xc == '?'Description
TRUEevaluated 50 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5060 times by 1 test
Evaluated by:
  • Self test
&& (
(gmatch (s, se..., flags) == 0)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 45 times by 1 test
Evaluated by:
  • Self test
gmatch (s, se, prest, pe,
(gmatch (s, se..., flags) == 0)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 45 times by 1 test
Evaluated by:
  • Self test
5-5060
1068 ((void *)0)
(gmatch (s, se..., flags) == 0)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 45 times by 1 test
Evaluated by:
  • Self test
5-45
1069 , flags) == 0)
(gmatch (s, se..., flags) == 0)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 45 times by 1 test
Evaluated by:
  • Self test
)
5-45
1070 return
executed 5 times by 1 test: return 0;
Executed by:
  • Self test
0;
executed 5 times by 1 test: return 0;
Executed by:
  • Self test
5
1071-
1072-
1073-
1074-
1075 for (psub = p + 1; ; psub = pnext)-
1076 {-
1077 pnext = glob_patscan (psub, pe, '|');-
1078 srest = (
(prest == pe)Description
TRUEevaluated 7886 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 197 times by 1 test
Evaluated by:
  • Self test
prest == pe)
(prest == pe)Description
TRUEevaluated 7886 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 197 times by 1 test
Evaluated by:
  • Self test
? se : s;
197-7886
1079 for ( ; srest <= se
srest <= seDescription
TRUEevaluated 8805 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 7955 times by 1 test
Evaluated by:
  • Self test
; srest++)
7955-8805
1080 {-
1081-
1082 xflags = (
(srest > s)Description
TRUEevaluated 8467 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 338 times by 1 test
Evaluated by:
  • Self test
srest > s)
(srest > s)Description
TRUEevaluated 8467 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 338 times by 1 test
Evaluated by:
  • Self test
? (flags & ~(1 << 2)) : flags;
338-8467
1083 if (gmatch (s, srest, psub, pnext - 1,
gmatch (s, sre... , flags) == 0Description
TRUEevaluated 136 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 8669 times by 1 test
Evaluated by:
  • Self test
136-8669
1084 ((void *)0)
gmatch (s, sre... , flags) == 0Description
TRUEevaluated 136 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 8669 times by 1 test
Evaluated by:
  • Self test
136-8669
1085 , flags) == 0
gmatch (s, sre... , flags) == 0Description
TRUEevaluated 136 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 8669 times by 1 test
Evaluated by:
  • Self test
&&
136-8669
1086 gmatch (srest, se, prest, pe,
gmatch (srest,..., xflags) == 0Description
TRUEevaluated 128 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test
8-128
1087 ((void *)0)
gmatch (srest,..., xflags) == 0Description
TRUEevaluated 128 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test
8-128
1088 , xflags) == 0
gmatch (srest,..., xflags) == 0Description
TRUEevaluated 128 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 8 times by 1 test
Evaluated by:
  • Self test
)
8-128
1089 return
executed 128 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 128 times by 1 test: return (0);
Executed by:
  • Self test
128
1090 }
executed 8677 times by 1 test: end of block
Executed by:
  • Self test
8677
1091 if (pnext == prest
pnext == prestDescription
TRUEevaluated 4977 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2978 times by 1 test
Evaluated by:
  • Self test
)
2978-4977
1092 break;
executed 4977 times by 1 test: break;
Executed by:
  • Self test
4977
1093 }
executed 2978 times by 1 test: end of block
Executed by:
  • Self test
2978
1094 return
executed 4977 times by 1 test: return (1);
Executed by:
  • Self test
(1);
executed 4977 times by 1 test: return (1);
Executed by:
  • Self test
4977
1095-
1096 case
executed 146 times by 1 test: case '!':
Executed by:
  • Self test
'!':
executed 146 times by 1 test: case '!':
Executed by:
  • Self test
146
1097 for (srest = s; srest <= se
srest <= seDescription
TRUEevaluated 716 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 24 times by 1 test
Evaluated by:
  • Self test
; srest++)
24-716
1098 {-
1099 m1 = 0;-
1100 for (psub = p + 1; ; psub = pnext)-
1101 {-
1102 pnext = glob_patscan (psub, pe, '|');-
1103-
1104 if (m1 = (gmatch (s, srest, psub, pnext - 1,
m1 = (gmatch (..., flags) == 0)Description
TRUEevaluated 61 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 760 times by 1 test
Evaluated by:
  • Self test
61-760
1105 ((void *)0)
m1 = (gmatch (..., flags) == 0)Description
TRUEevaluated 61 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 760 times by 1 test
Evaluated by:
  • Self test
61-760
1106 , flags) == 0)
m1 = (gmatch (..., flags) == 0)Description
TRUEevaluated 61 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 760 times by 1 test
Evaluated by:
  • Self test
)
61-760
1107 break;
executed 61 times by 1 test: break;
Executed by:
  • Self test
61
1108 if (pnext == prest
pnext == prestDescription
TRUEevaluated 655 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 105 times by 1 test
Evaluated by:
  • Self test
)
105-655
1109 break;
executed 655 times by 1 test: break;
Executed by:
  • Self test
655
1110 }
executed 105 times by 1 test: end of block
Executed by:
  • Self test
105
1111-
1112-
1113-
1114-
1115 if (m1 == 0
m1 == 0Description
TRUEevaluated 655 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 61 times by 1 test
Evaluated by:
  • Self test
&& *
*s == '.'Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 644 times by 1 test
Evaluated by:
  • Self test
s == '.'
*s == '.'Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 644 times by 1 test
Evaluated by:
  • Self test
&& (
(flags & (1 << 2))Description
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 2))
(flags & (1 << 2))Description
TRUEnever evaluated
FALSEevaluated 11 times by 1 test
Evaluated by:
  • Self test
)
0-655
1116 return
never executed: return (1);
(1);
never executed: return (1);
0
1117-
1118-
1119 xflags = (
(srest > s)Description
TRUEevaluated 570 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 146 times by 1 test
Evaluated by:
  • Self test
srest > s)
(srest > s)Description
TRUEevaluated 570 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 146 times by 1 test
Evaluated by:
  • Self test
? (flags & ~(1 << 2)) : flags;
146-570
1120 if (m1 == 0
m1 == 0Description
TRUEevaluated 655 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 61 times by 1 test
Evaluated by:
  • Self test
&& gmatch (srest, se, prest, pe,
gmatch (srest,..., xflags) == 0Description
TRUEevaluated 122 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 533 times by 1 test
Evaluated by:
  • Self test
61-655
1121 ((void *)0)
gmatch (srest,..., xflags) == 0Description
TRUEevaluated 122 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 533 times by 1 test
Evaluated by:
  • Self test
122-533
1122 , xflags) == 0
gmatch (srest,..., xflags) == 0Description
TRUEevaluated 122 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 533 times by 1 test
Evaluated by:
  • Self test
)
122-533
1123 return
executed 122 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 122 times by 1 test: return (0);
Executed by:
  • Self test
122
1124 }
executed 594 times by 1 test: end of block
Executed by:
  • Self test
594
1125 return
executed 24 times by 1 test: return (1);
Executed by:
  • Self test
(1);
executed 24 times by 1 test: return (1);
Executed by:
  • Self test
24
1126 }-
1127-
1128 return
never executed: return (1);
(1);
never executed: return (1);
0
1129}-
1130struct wcsmat_struct-
1131{-
1132 wchar_t *pattern;-
1133 wchar_t *string;-
1134};-
1135-
1136int internal_wstrmatch (wchar_t *, wchar_t *, int);-
1137-
1138static int gmatch_wc (wchar_t *, wchar_t *, wchar_t *, wchar_t *, struct wcsmat_struct *, int);-
1139static wchar_t *parse_collwcsym (wchar_t *, wint_t *);-
1140static wchar_t *brackmatch_wc (wchar_t *, wint_t, int);-
1141static int extmatch_wc (wint_t, wchar_t *, wchar_t *, wchar_t *, wchar_t *, int);-
1142-
1143 wchar_t *glob_patscan_wc (wchar_t *, wchar_t *, wint_t);-
1144-
1145int-
1146internal_wstrmatch (pattern, string, flags)-
1147 wchar_t *pattern;-
1148 wchar_t *string;-
1149 int flags;-
1150{-
1151 wchar_t *se, *pe;-
1152-
1153 if (string == 0
string == 0Description
TRUEnever evaluated
FALSEevaluated 9622995 times by 1 test
Evaluated by:
  • Self test
|| pattern == 0
pattern == 0Description
TRUEnever evaluated
FALSEevaluated 9622995 times by 1 test
Evaluated by:
  • Self test
)
0-9622995
1154 return
never executed: return 1;
1;
never executed: return 1;
0
1155-
1156 se = string + wcslen((wchar_t *)string);-
1157 pe = pattern + wcslen((wchar_t *)pattern);-
1158-
1159 return
executed 9622995 times by 1 test: return (gmatch_wc (string, se, pattern, pe, (struct wcsmat_struct *) ((void *)0) , flags));
Executed by:
  • Self test
(gmatch_wc (string, se, pattern, pe, (struct wcsmat_struct *)
executed 9622995 times by 1 test: return (gmatch_wc (string, se, pattern, pe, (struct wcsmat_struct *) ((void *)0) , flags));
Executed by:
  • Self test
9622995
1160 ((void *)0)
executed 9622995 times by 1 test: return (gmatch_wc (string, se, pattern, pe, (struct wcsmat_struct *) ((void *)0) , flags));
Executed by:
  • Self test
9622995
1161 , flags));
executed 9622995 times by 1 test: return (gmatch_wc (string, se, pattern, pe, (struct wcsmat_struct *) ((void *)0) , flags));
Executed by:
  • Self test
9622995
1162}-
1163-
1164-
1165-
1166static int-
1167gmatch_wc (string, se, pattern, pe, ends, flags)-
1168 wchar_t *string, *se;-
1169 wchar_t *pattern, *pe;-
1170 struct wcsmat_struct *ends;-
1171 int flags;-
1172{-
1173 wchar_t *p, *n;-
1174 wint_t c;-
1175 wint_t sc;-
1176-
1177 p = pattern;-
1178 n = string;-
1179-
1180 if (string == 0
string == 0Description
TRUEnever evaluated
FALSEevaluated 9624442 times by 1 test
Evaluated by:
  • Self test
|| pattern == 0
pattern == 0Description
TRUEnever evaluated
FALSEevaluated 9624442 times by 1 test
Evaluated by:
  • Self test
)
0-9624442
1181 return
never executed: return 1;
1;
never executed: return 1;
0
1182-
1183-
1184-
1185-
1186-
1187-
1188 while (p < pe
p < peDescription
TRUEevaluated 9625687 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1531062 times by 1 test
Evaluated by:
  • Self test
)
1531062-9625687
1189 {-
1190 c = *p++;-
1191 c = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 9625687 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 9625687 times by 1 test
Evaluated by:
  • Self test
&& iswupper (c)
iswupper (c)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (c) : (c));
0-9625687
1192-
1193 sc = n < se
n < seDescription
TRUEevaluated 7309168 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2316519 times by 1 test
Evaluated by:
  • Self test
? *n : '\0';
2316519-7309168
1194-
1195-
1196-
1197-
1198 if ((
(flags & (1 << 5))Description
TRUEevaluated 450 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 9625237 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 5))
(flags & (1 << 5))Description
TRUEevaluated 450 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 9625237 times by 1 test
Evaluated by:
  • Self test
&& *
*p == L'('Description
TRUEevaluated 52 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 398 times by 1 test
Evaluated by:
  • Self test
p == L'('
*p == L'('Description
TRUEevaluated 52 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 398 times by 1 test
Evaluated by:
  • Self test
&&
52-9625237
1199 (c == L'+'
c == L'+'Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 33 times by 1 test
Evaluated by:
  • Self test
|| c == L'*'
c == L'*'Description
TRUEevaluated 33 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
|| c == L'?'
c == L'?'Description
TRUEnever evaluated
FALSEnever evaluated
|| c == L'@'
c == L'@'Description
TRUEnever evaluated
FALSEnever evaluated
|| c == L'!'
c == L'!'Description
TRUEnever evaluated
FALSEnever evaluated
))
0-33
1200 {-
1201 int lflags;-
1202-
1203-
1204 lflags = (
(n == string)Description
TRUEevaluated 52 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
n == string)
(n == string)Description
TRUEevaluated 52 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
? flags : (flags & ~(1 << 2));
0-52
1205 return
executed 52 times by 1 test: return (extmatch_wc (c, n, se, p, pe, lflags));
Executed by:
  • Self test
(extmatch_wc (c, n, se, p, pe, lflags));
executed 52 times by 1 test: return (extmatch_wc (c, n, se, p, pe, lflags));
Executed by:
  • Self test
52
1206 }-
1207-
1208-
1209 switch (c)-
1210 {-
1211 case
executed 1678 times by 1 test: case L'?':
Executed by:
  • Self test
L'?':
executed 1678 times by 1 test: case L'?':
Executed by:
  • Self test
1678
1212 if (sc == '\0'
sc == '\0'Description
TRUEevaluated 676 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1002 times by 1 test
Evaluated by:
  • Self test
)
676-1002
1213 return
executed 676 times by 1 test: return 1;
Executed by:
  • Self test
1;
executed 676 times by 1 test: return 1;
Executed by:
  • Self test
676
1214 else if ((
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEevaluated 1002 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEevaluated 1002 times by 1 test
Evaluated by:
  • Self test
&& sc == L'/'
sc == L'/'Description
TRUEnever evaluated
FALSEnever evaluated
)
0-1002
1215-
1216 return
never executed: return 1;
1;
never executed: return 1;
0
1217 else if ((
(flags & (1 << 2))Description
TRUEnever evaluated
FALSEevaluated 1002 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 2))
(flags & (1 << 2))Description
TRUEnever evaluated
FALSEevaluated 1002 times by 1 test
Evaluated by:
  • Self test
&& sc == L'.'
sc == L'.'Description
TRUEnever evaluated
FALSEnever evaluated
&&
0-1002
1218 (n == string
n == stringDescription
TRUEnever evaluated
FALSEnever evaluated
|| ((
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEnever evaluated
&& n[-1] == L'/'
n[-1] == L'/'Description
TRUEnever evaluated
FALSEnever evaluated
)))
0
1219-
1220-
1221-
1222 return
never executed: return 1;
1;
never executed: return 1;
0
1223 break;
executed 1002 times by 1 test: break;
Executed by:
  • Self test
1002
1224-
1225 case
executed 9619835 times by 1 test: case L'\\':
Executed by:
  • Self test
L'\\':
executed 9619835 times by 1 test: case L'\\':
Executed by:
  • Self test
9619835
1226 if (p == pe
p == peDescription
TRUEnever evaluated
FALSEevaluated 9619835 times by 1 test
Evaluated by:
  • Self test
&& sc == '\\'
sc == '\\'Description
TRUEnever evaluated
FALSEnever evaluated
&& (
(n+1 == se)Description
TRUEnever evaluated
FALSEnever evaluated
n+1 == se)
(n+1 == se)Description
TRUEnever evaluated
FALSEnever evaluated
)
0-9619835
1227 break;
never executed: break;
0
1228-
1229 if (p == pe
p == peDescription
TRUEnever evaluated
FALSEevaluated 9619835 times by 1 test
Evaluated by:
  • Self test
)
0-9619835
1230 return
never executed: return 1;
1;
never executed: return 1;
0
1231-
1232 if ((
(flags & (1 << 1)) == 0Description
TRUEevaluated 9619835 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
flags & (1 << 1)) == 0
(flags & (1 << 1)) == 0Description
TRUEevaluated 9619835 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-9619835
1233 {-
1234 c = *p++;-
1235-
1236 if (p > pe
p > peDescription
TRUEnever evaluated
FALSEevaluated 9619835 times by 1 test
Evaluated by:
  • Self test
)
0-9619835
1237 return
never executed: return 1;
1;
never executed: return 1;
0
1238 c = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 9619835 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 9619835 times by 1 test
Evaluated by:
  • Self test
&& iswupper (c)
iswupper (c)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (c) : (c));
0-9619835
1239 }
executed 9619835 times by 1 test: end of block
Executed by:
  • Self test
9619835
1240 if (((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 9619835 times by 1 test
Evaluated by:
  • Self test
((flags & (1 <...) != (wint_t)cDescription
TRUEevaluated 8090736 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1529099 times by 1 test
Evaluated by:
  • Self test
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 9619835 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
((flags & (1 <...) != (wint_t)cDescription
TRUEevaluated 8090736 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1529099 times by 1 test
Evaluated by:
  • Self test
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 9619835 times by 1 test
Evaluated by:
  • Self test
&& iswupper (sc)
iswupper (sc)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (sc) : (sc)) != (wint_t)c
((flags & (1 <...) != (wint_t)cDescription
TRUEevaluated 8090736 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1529099 times by 1 test
Evaluated by:
  • Self test
)
0-9619835
1241 return
executed 8090736 times by 1 test: return 1;
Executed by:
  • Self test
1;
executed 8090736 times by 1 test: return 1;
Executed by:
  • Self test
8090736
1242 break;
executed 1529099 times by 1 test: break;
Executed by:
  • Self test
1529099
1243-
1244 case
executed 1139 times by 1 test: case L'*':
Executed by:
  • Self test
L'*':
executed 1139 times by 1 test: case L'*':
Executed by:
  • Self test
1139
1245-
1246-
1247 if (ends !=
ends != ((void *)0)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1129 times by 1 test
Evaluated by:
  • Self test
10-1129
1248 ((void *)0)
ends != ((void *)0)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1129 times by 1 test
Evaluated by:
  • Self test
10-1129
1249 )-
1250 {-
1251 ends->pattern = p - 1;-
1252 ends->string = n;-
1253 return
executed 10 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 10 times by 1 test: return (0);
Executed by:
  • Self test
10
1254 }-
1255-
1256 if ((
(flags & (1 << 2))Description
TRUEnever evaluated
FALSEevaluated 1129 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 2))
(flags & (1 << 2))Description
TRUEnever evaluated
FALSEevaluated 1129 times by 1 test
Evaluated by:
  • Self test
&& sc == L'.'
sc == L'.'Description
TRUEnever evaluated
FALSEnever evaluated
&&
0-1129
1257 (n == string
n == stringDescription
TRUEnever evaluated
FALSEnever evaluated
|| ((
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEnever evaluated
&& n[-1] == L'/'
n[-1] == L'/'Description
TRUEnever evaluated
FALSEnever evaluated
)))
0
1258-
1259-
1260-
1261 return
never executed: return 1;
1;
never executed: return 1;
0
1262-
1263 if (p == pe
p == peDescription
TRUEevaluated 149 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 980 times by 1 test
Evaluated by:
  • Self test
)
149-980
1264 return
executed 149 times by 1 test: return 0;
Executed by:
  • Self test
0;
executed 149 times by 1 test: return 0;
Executed by:
  • Self test
149
1265-
1266-
1267-
1268 for (c = *p++; (c == L'?'
c == L'?'Description
TRUEnever evaluated
FALSEevaluated 980 times by 1 test
Evaluated by:
  • Self test
|| c == L'*'
c == L'*'Description
TRUEnever evaluated
FALSEevaluated 980 times by 1 test
Evaluated by:
  • Self test
); c = *p++)
0-980
1269 {-
1270 if ((
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEnever evaluated
&& sc == L'/'
sc == L'/'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1271-
1272 return
never executed: return 1;
1;
never executed: return 1;
0
1273-
1274 else if ((
(flags & (1 << 5))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 5))
(flags & (1 << 5))Description
TRUEnever evaluated
FALSEnever evaluated
&& c == L'?'
c == L'?'Description
TRUEnever evaluated
FALSEnever evaluated
&& *
*p == L'('Description
TRUEnever evaluated
FALSEnever evaluated
p == L'('
*p == L'('Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1275 {-
1276 wchar_t *newn;-
1277-
1278-
1279 if (extmatch_wc (c, n, se, p, pe, flags) == 0
extmatch_wc (c...e, flags) == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1280 return
never executed: return (0);
(0);
never executed: return (0);
0
1281-
1282-
1283-
1284-
1285-
1286 newn = glob_patscan_wc (p + 1, pe, 0);-
1287-
1288 p = newn
newnDescription
TRUEnever evaluated
FALSEnever evaluated
? newn : pe;
0
1289 }
never executed: end of block
0
1290-
1291 else if (c == L'?'
c == L'?'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1292 {-
1293 if (sc == L'\0'
sc == L'\0'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1294 return
never executed: return 1;
1;
never executed: return 1;
0
1295-
1296-
1297-
1298 n++;-
1299 sc = n < se
n < seDescription
TRUEnever evaluated
FALSEnever evaluated
? *n : '\0';
0
1300 }
never executed: end of block
0
1301-
1302-
1303-
1304 if ((
(flags & (1 << 5))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 5))
(flags & (1 << 5))Description
TRUEnever evaluated
FALSEnever evaluated
&& c == L'*'
c == L'*'Description
TRUEnever evaluated
FALSEnever evaluated
&& *
*p == L'('Description
TRUEnever evaluated
FALSEnever evaluated
p == L'('
*p == L'('Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1305 {-
1306 wchar_t *newn;-
1307-
1308-
1309-
1310 for (newn = n; newn < se
newn < seDescription
TRUEnever evaluated
FALSEnever evaluated
; ++newn)
0
1311 {-
1312 if (extmatch_wc (c, newn, se, p, pe, flags) == 0
extmatch_wc (c...e, flags) == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1313 return
never executed: return (0);
(0);
never executed: return (0);
0
1314 }
never executed: end of block
0
1315-
1316-
1317-
1318-
1319 newn = glob_patscan_wc (p + 1, pe, 0);-
1320-
1321 p = newn
newnDescription
TRUEnever evaluated
FALSEnever evaluated
? newn : pe;
0
1322 }
never executed: end of block
0
1323-
1324 if (p == pe
p == peDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1325 break;
never executed: break;
0
1326 }
never executed: end of block
0
1327-
1328-
1329-
1330-
1331 if (c == L'\0'
c == L'\0'Description
TRUEnever evaluated
FALSEevaluated 980 times by 1 test
Evaluated by:
  • Self test
)
0-980
1332 {-
1333 int r = (
(flags & (1 << 0)) == 0Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 0)) == 0
(flags & (1 << 0)) == 0Description
TRUEnever evaluated
FALSEnever evaluated
? 0 : 1;
0
1334 if (flags & (1 << 0)
flags & (1 << 0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1335 {-
1336 if (flags & (1 << 3)
flags & (1 << 3)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1337 r = 0;
never executed: r = 0;
0
1338 else if (wmemchr((n), (L'/'), (se - n)) ==
wmemchr((n), (...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1339 ((void *)0)
wmemchr((n), (...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1340 )-
1341 r = 0;
never executed: r = 0;
0
1342 }
never executed: end of block
0
1343 return
never executed: return r;
r;
never executed: return r;
0
1344 }-
1345-
1346-
1347-
1348-
1349 if (p == pe
p == peDescription
TRUEevaluated 694 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 286 times by 1 test
Evaluated by:
  • Self test
&& (c == L'?'
c == L'?'Description
TRUEnever evaluated
FALSEevaluated 694 times by 1 test
Evaluated by:
  • Self test
|| c == L'*'
c == L'*'Description
TRUEnever evaluated
FALSEevaluated 694 times by 1 test
Evaluated by:
  • Self test
))
0-694
1350 return
never executed: return (0);
(0);
never executed: return (0);
0
1351-
1352-
1353-
1354-
1355 if (n == se
n == seDescription
TRUEevaluated 76 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 904 times by 1 test
Evaluated by:
  • Self test
&& ((
(flags & (1 << 5))Description
TRUEnever evaluated
FALSEevaluated 76 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 5))
(flags & (1 << 5))Description
TRUEnever evaluated
FALSEevaluated 76 times by 1 test
Evaluated by:
  • Self test
&& (c == L'!'
c == L'!'Description
TRUEnever evaluated
FALSEnever evaluated
|| c == L'?'
c == L'?'Description
TRUEnever evaluated
FALSEnever evaluated
) && *
*p == L'('Description
TRUEnever evaluated
FALSEnever evaluated
p == L'('
*p == L'('Description
TRUEnever evaluated
FALSEnever evaluated
))
0-904
1356 {-
1357 --p;-
1358 if (extmatch_wc (c, n, se, p, pe, flags) == 0
extmatch_wc (c...e, flags) == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1359 return
never executed: return (c == L'!' ? 1 : 0);
(c == L'!' ? 1 : 0);
never executed: return (c == L'!' ? 1 : 0);
0
1360 return
never executed: return (c == L'!' ? 0 : 1);
(c == L'!' ? 0 : 1);
never executed: return (c == L'!' ? 0 : 1);
0
1361 }-
1362-
1363-
1364-
1365-
1366-
1367-
1368 if (c == L'/'
c == L'/'Description
TRUEevaluated 685 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 295 times by 1 test
Evaluated by:
  • Self test
&& (
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEevaluated 685 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEevaluated 685 times by 1 test
Evaluated by:
  • Self test
)
0-685
1369 {-
1370 while (n < se
n < seDescription
TRUEnever evaluated
FALSEnever evaluated
&& *
*n != L'/'Description
TRUEnever evaluated
FALSEnever evaluated
n != L'/'
*n != L'/'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1371 ++
never executed: ++n;
n;
never executed: ++n;
0
1372 if (n < se
n < seDescription
TRUEnever evaluated
FALSEnever evaluated
&& *
*n == L'/'Description
TRUEnever evaluated
FALSEnever evaluated
n == L'/'
*n == L'/'Description
TRUEnever evaluated
FALSEnever evaluated
&& (
(gmatch_wc (n+..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
gmatch_wc (n+1, se, p, pe,
(gmatch_wc (n+..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1373 ((void *)0)
(gmatch_wc (n+..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1374 , flags) == 0)
(gmatch_wc (n+..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1375 return
never executed: return 0;
0;
never executed: return 0;
0
1376 return
never executed: return 1;
1;
never executed: return 1;
0
1377 }-
1378-
1379-
1380 {-
1381 wint_t c1;-
1382 const wchar_t *endp;-
1383 struct wcsmat_struct end;-
1384-
1385 end.pattern = -
1386 ((void *)0)-
1387 ;-
1388 endp = wmemchr((n), ((flags & (1 << 0)) ? L'/' : L'\0'), (se - n));-
1389 if (endp == 0
endp == 0Description
TRUEevaluated 980 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-980
1390 endp = se;
executed 980 times by 1 test: endp = se;
Executed by:
  • Self test
980
1391-
1392 c1 = ((
(flags & (1 << 1)) == 0Description
TRUEevaluated 980 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
flags & (1 << 1)) == 0
(flags & (1 << 1)) == 0Description
TRUEevaluated 980 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& c == L'\\'
c == L'\\'Description
TRUEevaluated 180 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 800 times by 1 test
Evaluated by:
  • Self test
) ? *p : c;
0-980
1393 c1 = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 980 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 980 times by 1 test
Evaluated by:
  • Self test
&& iswupper (c1)
iswupper (c1)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (c1) : (c1));
0-980
1394 for (--p; n < endp
n < endpDescription
TRUEevaluated 5704 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 841 times by 1 test
Evaluated by:
  • Self test
; ++n)
841-5704
1395 {-
1396-
1397-
1398-
1399 if ((
(flags & (1 << 5)) == 0Description
TRUEevaluated 5704 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
flags & (1 << 5)) == 0
(flags & (1 << 5)) == 0Description
TRUEevaluated 5704 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& c != L'['
c != L'['Description
TRUEevaluated 5704 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 5704 times by 1 test
Evaluated by:
  • Self test
((flags & (1 <... : (*n)) != c1Description
TRUEevaluated 4637 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1067 times by 1 test
Evaluated by:
  • Self test
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 5704 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
((flags & (1 <... : (*n)) != c1Description
TRUEevaluated 4637 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1067 times by 1 test
Evaluated by:
  • Self test
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 5704 times by 1 test
Evaluated by:
  • Self test
&& iswupper (*n)
iswupper (*n)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (*n) : (*n)) != c1
((flags & (1 <... : (*n)) != c1Description
TRUEevaluated 4637 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1067 times by 1 test
Evaluated by:
  • Self test
)
0-5704
1400 continue;
executed 4637 times by 1 test: continue;
Executed by:
  • Self test
4637
1401-
1402-
1403-
1404-
1405 if ((
(flags & (1 << 5))Description
TRUEnever evaluated
FALSEevaluated 1067 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 5))
(flags & (1 << 5))Description
TRUEnever evaluated
FALSEevaluated 1067 times by 1 test
Evaluated by:
  • Self test
&& p[1] != L'('
p[1] != L'('Description
TRUEnever evaluated
FALSEnever evaluated
&&
0-1067
1406 wcschr((L"?*+@!"), (*p)) == 0
wcschr((L"?*+@!"), (*p)) == 0Description
TRUEnever evaluated
FALSEnever evaluated
&& c != L'['
c != L'['Description
TRUEnever evaluated
FALSEnever evaluated
&& ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEnever evaluated
&& iswupper (*n)
iswupper (*n)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (*n) : (*n)) != c1
((flags & (1 <... : (*n)) != c1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1407 continue;
never executed: continue;
0
1408-
1409-
1410 if (gmatch_wc (n, se, p, pe, &end, flags & ~(1 << 2)) == 0
gmatch_wc (n, ...(1 << 2)) == 0Description
TRUEevaluated 139 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 928 times by 1 test
Evaluated by:
  • Self test
)
139-928
1411 {-
1412 if (end.pattern ==
end.pattern == ((void *)0)Description
TRUEevaluated 129 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 10 times by 1 test
Evaluated by:
  • Self test
10-129
1413 ((void *)0)
end.pattern == ((void *)0)Description
TRUEevaluated 129 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 10 times by 1 test
Evaluated by:
  • Self test
10-129
1414 )-
1415 return
executed 129 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 129 times by 1 test: return (0);
Executed by:
  • Self test
129
1416 break;
executed 10 times by 1 test: break;
Executed by:
  • Self test
10
1417 }-
1418 }
executed 928 times by 1 test: end of block
Executed by:
  • Self test
928
1419-
1420-
1421-
1422-
1423 if (end.pattern !=
end.pattern != ((void *)0)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 841 times by 1 test
Evaluated by:
  • Self test
10-841
1424 ((void *)0)
end.pattern != ((void *)0)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 841 times by 1 test
Evaluated by:
  • Self test
10-841
1425 )-
1426 {-
1427 p = end.pattern;-
1428 n = end.string;-
1429 continue;
executed 10 times by 1 test: continue;
Executed by:
  • Self test
10
1430 }-
1431-
1432 return
executed 841 times by 1 test: return 1;
Executed by:
  • Self test
1;
executed 841 times by 1 test: return 1;
Executed by:
  • Self test
841
1433 }-
1434-
1435 case
executed 144 times by 1 test: case L'[':
Executed by:
  • Self test
L'[':
executed 144 times by 1 test: case L'[':
Executed by:
  • Self test
144
1436 {-
1437 if (sc == L'\0'
sc == L'\0'Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
|| n == se
n == seDescription
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
)
0-144
1438 return
never executed: return 1;
1;
never executed: return 1;
0
1439-
1440-
1441-
1442-
1443 if ((
(flags & (1 << 2))Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 2))
(flags & (1 << 2))Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
&& sc == L'.'
sc == L'.'Description
TRUEnever evaluated
FALSEnever evaluated
&&
0-144
1444 (n == string
n == stringDescription
TRUEnever evaluated
FALSEnever evaluated
|| ((
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEnever evaluated
&& n[-1] == L'/'
n[-1] == L'/'Description
TRUEnever evaluated
FALSEnever evaluated
)))
0
1445 return
never executed: return (1);
(1);
never executed: return (1);
0
1446-
1447 p = brackmatch_wc (p, sc, flags);-
1448 if (p == 0
p == 0Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 76 times by 1 test
Evaluated by:
  • Self test
)
68-76
1449 return
executed 68 times by 1 test: return 1;
Executed by:
  • Self test
1;
executed 68 times by 1 test: return 1;
Executed by:
  • Self test
68
1450 }-
1451 break;
executed 76 times by 1 test: break;
Executed by:
  • Self test
76
1452-
1453 default
executed 2839 times by 1 test: default:
Executed by:
  • Self test
:
executed 2839 times by 1 test: default:
Executed by:
  • Self test
2839
1454 if ((
(wint_t)c != (...r (sc) : (sc))Description
TRUEevaluated 719 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2120 times by 1 test
Evaluated by:
  • Self test
wint_t)c != ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 2839 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 2839 times by 1 test
Evaluated by:
  • Self test
&& iswupper (sc)
iswupper (sc)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (sc) : (sc))
(wint_t)c != (...r (sc) : (sc))Description
TRUEevaluated 719 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 2120 times by 1 test
Evaluated by:
  • Self test
)
0-2839
1455 return
executed 719 times by 1 test: return (1);
Executed by:
  • Self test
(1);
executed 719 times by 1 test: return (1);
Executed by:
  • Self test
719
1456 }
executed 2120 times by 1 test: end of block
Executed by:
  • Self test
2120
1457-
1458 ++n;-
1459 }
executed 1532297 times by 1 test: end of block
Executed by:
  • Self test
1532297
1460-
1461 if (n == se
n == seDescription
TRUEevaluated 863901 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 667161 times by 1 test
Evaluated by:
  • Self test
)
667161-863901
1462 return
executed 863901 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 863901 times by 1 test: return (0);
Executed by:
  • Self test
863901
1463-
1464 if ((
(flags & (1 << 3))Description
TRUEnever evaluated
FALSEevaluated 667161 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 3))
(flags & (1 << 3))Description
TRUEnever evaluated
FALSEevaluated 667161 times by 1 test
Evaluated by:
  • Self test
&& *
*n == L'/'Description
TRUEnever evaluated
FALSEnever evaluated
n == L'/'
*n == L'/'Description
TRUEnever evaluated
FALSEnever evaluated
)
0-667161
1465-
1466 return
never executed: return 0;
0;
never executed: return 0;
0
1467-
1468 return
executed 667161 times by 1 test: return (1);
Executed by:
  • Self test
(1);
executed 667161 times by 1 test: return (1);
Executed by:
  • Self test
667161
1469}-
1470-
1471-
1472-
1473-
1474static wchar_t *-
1475parse_collwcsym (p, vp)-
1476 wchar_t *p;-
1477 wint_t *vp;-
1478{-
1479 register int pc;-
1480 wint_t val;-
1481-
1482 p++;-
1483-
1484 for (pc = 0; p[pc]
p[pc]Description
TRUEnever evaluated
FALSEnever evaluated
; pc++)
0
1485 if (p[pc] == L'.'
p[pc] == L'.'Description
TRUEnever evaluated
FALSEnever evaluated
&& p[pc+1] == L']'
p[pc+1] == L']'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1486 break;
never executed: break;
0
1487 if (p[pc] == 0
p[pc] == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1488 {-
1489 if (vp
vpDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1490 *
never executed: *vp = (0xffffffffu) ;
vp =
never executed: *vp = (0xffffffffu) ;
0
1491 (0xffffffffu)
never executed: *vp = (0xffffffffu) ;
0
1492 ;
never executed: *vp = (0xffffffffu) ;
0
1493 return
never executed: return (p + pc);
(p + pc);
never executed: return (p + pc);
0
1494 }-
1495 val = collwcsym (p, pc);-
1496 if (vp
vpDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1497 *
never executed: *vp = val;
vp = val;
never executed: *vp = val;
0
1498 return
never executed: return (p + pc + 2);
(p + pc + 2);
never executed: return (p + pc + 2);
0
1499}-
1500-
1501-
1502static wchar_t *-
1503-
1504brackmatch_wc (wchar_t *p, wint_t test, int flags)-
1505-
1506-
1507-
1508-
1509-
1510-
1511{-
1512 register wchar_t cstart, cend, c;-
1513 register int not;-
1514 int brcnt, brchr, forcecoll;-
1515 wint_t pc;-
1516 wchar_t *savep;-
1517 wint_t orig_test;-
1518-
1519 orig_test = test;-
1520 test = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
&& iswupper (orig_test)
iswupper (orig_test)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (orig_test) : (orig_test));
0-144
1521-
1522 savep = p;-
1523-
1524-
1525-
1526-
1527-
1528 if (not = (*
*p == L'!'Description
TRUEevaluated 144 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
p == L'!'
*p == L'!'Description
TRUEevaluated 144 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
|| *
*p == L'^'Description
TRUEnever evaluated
FALSEnever evaluated
p == L'^'
*p == L'^'Description
TRUEnever evaluated
FALSEnever evaluated
))
0-144
1529 ++
executed 144 times by 1 test: ++p;
Executed by:
  • Self test
p;
executed 144 times by 1 test: ++p;
Executed by:
  • Self test
144
1530-
1531 c = *p++;-
1532 for (;;)-
1533 {-
1534-
1535-
1536 cstart = cend = c;-
1537 forcecoll = 0;-
1538-
1539-
1540-
1541-
1542-
1543-
1544 if (c == L'['
c == L'['Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
&& *
*p == L'='Description
TRUEnever evaluated
FALSEnever evaluated
p == L'='
*p == L'='Description
TRUEnever evaluated
FALSEnever evaluated
&& p[2] == L'='
p[2] == L'='Description
TRUEnever evaluated
FALSEnever evaluated
&& p[3] == L']'
p[3] == L']'Description
TRUEnever evaluated
FALSEnever evaluated
)
0-144
1545 {-
1546 pc = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEnever evaluated
&& iswupper (p[1])
iswupper (p[1])Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (p[1]) : (p[1]));
0
1547 p += 4;-
1548 if (collequiv_wc((test), (pc))
collequiv_wc((test), (pc))Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1549 {-
1550-
1551-
1552 p++;-
1553 goto
never executed: goto matched;
matched;
never executed: goto matched;
0
1554 }-
1555 else-
1556 {-
1557 c = *p++;-
1558 if (c == L'\0'
c == L'\0'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1559 return
never executed: return ((test == L'[') ? savep : (wchar_t *)0);
((test == L'[') ? savep : (wchar_t *)0);
never executed: return ((test == L'[') ? savep : (wchar_t *)0);
0
1560 c = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEnever evaluated
&& iswupper (c)
iswupper (c)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (c) : (c));
0
1561 continue;
never executed: continue;
0
1562 }-
1563 }-
1564-
1565-
1566 if (c == L'['
c == L'['Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
&& *
*p == L':'Description
TRUEnever evaluated
FALSEnever evaluated
p == L':'
*p == L':'Description
TRUEnever evaluated
FALSEnever evaluated
)
0-144
1567 {-
1568 wchar_t *close, *ccname;-
1569-
1570 pc = 0;-
1571-
1572 for (close = p + 1; *
*close != '\0'Description
TRUEnever evaluated
FALSEnever evaluated
close != '\0'
*close != '\0'Description
TRUEnever evaluated
FALSEnever evaluated
; close++)
0
1573 if (*
*close == L':'Description
TRUEnever evaluated
FALSEnever evaluated
close == L':'
*close == L':'Description
TRUEnever evaluated
FALSEnever evaluated
&& *(
*(close+1) == L']'Description
TRUEnever evaluated
FALSEnever evaluated
close+1) == L']'
*(close+1) == L']'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1574 break;
never executed: break;
0
1575-
1576 if (*
*close != L'\0'Description
TRUEnever evaluated
FALSEnever evaluated
close != L'\0'
*close != L'\0'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1577 {-
1578 ccname = (wchar_t *)malloc ((close - p) * sizeof (wchar_t));-
1579 if (ccname == 0
ccname == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1580 pc = 0;
never executed: pc = 0;
0
1581 else-
1582 {-
1583 bcopy (p + 1, ccname, (close - p - 1) * sizeof (wchar_t));-
1584 *(ccname + (close - p - 1)) = L'\0';-
1585 pc = is_wcclass((orig_test), ((wchar_t *)ccname));-
1586 }
never executed: end of block
0
1587 if (pc == -1
pc == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1588 pc = 0;
never executed: pc = 0;
0
1589 else-
1590 p = close + 2;
never executed: p = close + 2;
0
1591-
1592 sh_xfree((ccname), "sm_loop.c", 465);-
1593 }
never executed: end of block
0
1594-
1595 if (pc
pcDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1596 {-
1597-
1598-
1599 p++;-
1600 goto
never executed: goto matched;
matched;
never executed: goto matched;
0
1601 }-
1602 else-
1603 {-
1604-
1605-
1606 c = *p++;-
1607 if (c == L'\0'
c == L'\0'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1608 return
never executed: return ((test == L'[') ? savep : (wchar_t *)0);
((test == L'[') ? savep : (wchar_t *)0);
never executed: return ((test == L'[') ? savep : (wchar_t *)0);
0
1609 else if (c == L']'
c == L']'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1610 break;
never executed: break;
0
1611 c = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEnever evaluated
&& iswupper (c)
iswupper (c)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (c) : (c));
0
1612 continue;
never executed: continue;
0
1613 }-
1614 }-
1615-
1616-
1617-
1618-
1619-
1620 if (c == L'['
c == L'['Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
&& *
*p == L'.'Description
TRUEnever evaluated
FALSEnever evaluated
p == L'.'
*p == L'.'Description
TRUEnever evaluated
FALSEnever evaluated
)
0-144
1621 {-
1622 p = parse_collwcsym (p, &pc);-
1623-
1624-
1625-
1626 cstart = (
(pc == (0xffffffffu) )Description
TRUEnever evaluated
FALSEnever evaluated
pc ==
(pc == (0xffffffffu) )Description
TRUEnever evaluated
FALSEnever evaluated
0
1627 (0xffffffffu)
(pc == (0xffffffffu) )Description
TRUEnever evaluated
FALSEnever evaluated
0
1628 )
(pc == (0xffffffffu) )Description
TRUEnever evaluated
FALSEnever evaluated
? test + 1 : pc;
0
1629 forcecoll = 1;-
1630 }
never executed: end of block
0
1631-
1632 if (!(flags & (1 << 1))
!(flags & (1 << 1))Description
TRUEevaluated 144 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& c == L'\\'
c == L'\\'Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
)
0-144
1633 {-
1634 if (*
*p == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
p == '\0'
*p == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1635 return
never executed: return (wchar_t *)0;
(wchar_t *)0;
never executed: return (wchar_t *)0;
0
1636 cstart = cend = *p++;-
1637 }
never executed: end of block
0
1638-
1639 cstart = cend = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
&& iswupper (cstart)
iswupper (cstart)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (cstart) : (cstart));
0-144
1640-
1641-
1642-
1643-
1644-
1645-
1646 if (c == L'\0'
c == L'\0'Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
)
0-144
1647 return
never executed: return ((test == L'[') ? savep : (wchar_t *)0);
((test == L'[') ? savep : (wchar_t *)0);
never executed: return ((test == L'[') ? savep : (wchar_t *)0);
0
1648-
1649 c = *p++;-
1650 c = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
&& iswupper (c)
iswupper (c)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (c) : (c));
0-144
1651-
1652 if (c == L'\0'
c == L'\0'Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
)
0-144
1653 return
never executed: return ((test == L'[') ? savep : (wchar_t *)0);
((test == L'[') ? savep : (wchar_t *)0);
never executed: return ((test == L'[') ? savep : (wchar_t *)0);
0
1654-
1655 if ((
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
flags & (1 << 0))
(flags & (1 << 0))Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
&& c == L'/'
c == L'/'Description
TRUEnever evaluated
FALSEnever evaluated
)
0-144
1656-
1657 return
never executed: return (wchar_t *)0;
(wchar_t *)0;
never executed: return (wchar_t *)0;
0
1658-
1659-
1660-
1661-
1662 if (c == L'-'
c == L'-'Description
TRUEnever evaluated
FALSEevaluated 144 times by 1 test
Evaluated by:
  • Self test
&& *
*p != L']'Description
TRUEnever evaluated
FALSEnever evaluated
p != L']'
*p != L']'Description
TRUEnever evaluated
FALSEnever evaluated
)
0-144
1663 {-
1664 cend = *p++;-
1665 if (!(flags & (1 << 1))
!(flags & (1 << 1))Description
TRUEnever evaluated
FALSEnever evaluated
&& cend == L'\\'
cend == L'\\'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1666 cend = *p++;
never executed: cend = *p++;
0
1667 if (cend == L'\0'
cend == L'\0'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1668 return
never executed: return (wchar_t *)0;
(wchar_t *)0;
never executed: return (wchar_t *)0;
0
1669 if (cend == L'['
cend == L'['Description
TRUEnever evaluated
FALSEnever evaluated
&& *
*p == L'.'Description
TRUEnever evaluated
FALSEnever evaluated
p == L'.'
*p == L'.'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1670 {-
1671 p = parse_collwcsym (p, &pc);-
1672-
1673-
1674-
1675 cend = (
(pc == (0xffffffffu) )Description
TRUEnever evaluated
FALSEnever evaluated
pc ==
(pc == (0xffffffffu) )Description
TRUEnever evaluated
FALSEnever evaluated
0
1676 (0xffffffffu)
(pc == (0xffffffffu) )Description
TRUEnever evaluated
FALSEnever evaluated
0
1677 )
(pc == (0xffffffffu) )Description
TRUEnever evaluated
FALSEnever evaluated
? test - 1 : pc;
0
1678 forcecoll = 1;-
1679 }
never executed: end of block
0
1680 cend = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEnever evaluated
&& iswupper (cend)
iswupper (cend)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (cend) : (cend));
0
1681-
1682 c = *p++;-
1683-
1684-
1685-
1686-
1687-
1688-
1689 if (rangecmp_wc((cstart), (cend), (forcecoll)) > 0
rangecmp_wc((c...orcecoll)) > 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1690 {-
1691 if (c == L']'
c == L']'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1692 break;
never executed: break;
0
1693 c = ((
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 4))
(flags & (1 << 4))Description
TRUEnever evaluated
FALSEnever evaluated
&& iswupper (c)
iswupper (c)Description
TRUEnever evaluated
FALSEnever evaluated
? towlower (c) : (c));
0
1694 continue;
never executed: continue;
0
1695 }-
1696 }
never executed: end of block
0
1697-
1698 if (rangecmp_wc((test), (cstart), (forcecoll)) >= 0
rangecmp_wc((t...rcecoll)) >= 0Description
TRUEevaluated 144 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& rangecmp_wc((test), (cend), (forcecoll)) <= 0
rangecmp_wc((t...rcecoll)) <= 0Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 76 times by 1 test
Evaluated by:
  • Self test
)
0-144
1699 goto
executed 68 times by 1 test: goto matched;
Executed by:
  • Self test
matched;
executed 68 times by 1 test: goto matched;
Executed by:
  • Self test
68
1700-
1701 if (c == L']'
c == L']'Description
TRUEevaluated 76 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-76
1702 break;
executed 76 times by 1 test: break;
Executed by:
  • Self test
76
1703 }
never executed: end of block
0
1704-
1705 return
executed 76 times by 1 test: return (!not ? (wchar_t *)0 : p);
Executed by:
  • Self test
(!not ? (wchar_t *)0 : p);
executed 76 times by 1 test: return (!not ? (wchar_t *)0 : p);
Executed by:
  • Self test
76
1706-
1707matched:-
1708-
1709 c = *--p;-
1710 brcnt = 1;-
1711 brchr = 0;-
1712 while (brcnt > 0
brcnt > 0Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 68 times by 1 test
Evaluated by:
  • Self test
)
68
1713 {-
1714 int oc;-
1715-
1716-
1717 if (c == L'\0'
c == L'\0'Description
TRUEnever evaluated
FALSEevaluated 68 times by 1 test
Evaluated by:
  • Self test
)
0-68
1718 return
never executed: return ((test == L'[') ? savep : (wchar_t *)0);
((test == L'[') ? savep : (wchar_t *)0);
never executed: return ((test == L'[') ? savep : (wchar_t *)0);
0
1719-
1720 oc = c;-
1721 c = *p++;-
1722 if (c == L'['
c == L'['Description
TRUEnever evaluated
FALSEevaluated 68 times by 1 test
Evaluated by:
  • Self test
&& (*
*p == L'='Description
TRUEnever evaluated
FALSEnever evaluated
p == L'='
*p == L'='Description
TRUEnever evaluated
FALSEnever evaluated
|| *
*p == L':'Description
TRUEnever evaluated
FALSEnever evaluated
p == L':'
*p == L':'Description
TRUEnever evaluated
FALSEnever evaluated
|| *
*p == L'.'Description
TRUEnever evaluated
FALSEnever evaluated
p == L'.'
*p == L'.'Description
TRUEnever evaluated
FALSEnever evaluated
))
0-68
1723 {-
1724 brcnt++;-
1725 brchr = *p;-
1726 }
never executed: end of block
0
1727-
1728 else if (c == L']'
c == L']'Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& brcnt > 1
brcnt > 1Description
TRUEnever evaluated
FALSEevaluated 68 times by 1 test
Evaluated by:
  • Self test
&& brchr != 0
brchr != 0Description
TRUEnever evaluated
FALSEnever evaluated
&& oc == brchr
oc == brchrDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-68
1729 brcnt--;
never executed: brcnt--;
0
1730 else if (c == L']'
c == L']'Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& brcnt == 1
brcnt == 1Description
TRUEevaluated 68 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-68
1731 brcnt--;
executed 68 times by 1 test: brcnt--;
Executed by:
  • Self test
68
1732 else if (!(flags & (1 << 1))
!(flags & (1 << 1))Description
TRUEnever evaluated
FALSEnever evaluated
&& c == L'\\'
c == L'\\'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1733 {-
1734 if (*
*p == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
p == '\0'
*p == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1735 return
never executed: return (wchar_t *)0;
(wchar_t *)0;
never executed: return (wchar_t *)0;
0
1736-
1737 ++p;-
1738 }
never executed: end of block
0
1739 }
executed 68 times by 1 test: end of block
Executed by:
  • Self test
68
1740 return
executed 68 times by 1 test: return (not ? (wchar_t *)0 : p);
Executed by:
  • Self test
(not ? (wchar_t *)0 : p);
executed 68 times by 1 test: return (not ? (wchar_t *)0 : p);
Executed by:
  • Self test
68
1741}-
1742 wchar_t *-
1743glob_patscan_wc (string, end, delim)-
1744 wchar_t *string, *end;-
1745 wint_t delim;-
1746{-
1747 int pnest, bnest, skip;-
1748 wint_t cchar;-
1749 wchar_t *s, c, *bfirst;-
1750-
1751 pnest = bnest = skip = 0;-
1752 cchar = 0;-
1753 bfirst = -
1754 ((void *)0)-
1755 ;-
1756-
1757 if (string == end
string == endDescription
TRUEnever evaluated
FALSEevaluated 152 times by 1 test
Evaluated by:
  • Self test
)
0-152
1758 return
never executed: return ( ((void *)0) );
(
never executed: return ( ((void *)0) );
0
1759 ((void *)0)
never executed: return ( ((void *)0) );
0
1760 );
never executed: return ( ((void *)0) );
0
1761-
1762 for (s = string; c = *s
c = *sDescription
TRUEevaluated 482 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
; s++)
0-482
1763 {-
1764 if (s >= end
s >= endDescription
TRUEnever evaluated
FALSEevaluated 482 times by 1 test
Evaluated by:
  • Self test
)
0-482
1765 return
never executed: return (s);
(s);
never executed: return (s);
0
1766 if (skip
skipDescription
TRUEnever evaluated
FALSEevaluated 482 times by 1 test
Evaluated by:
  • Self test
)
0-482
1767 {-
1768 skip = 0;-
1769 continue;
never executed: continue;
0
1770 }-
1771 switch (c)-
1772 {-
1773 case
never executed: case L'\\':
L'\\':
never executed: case L'\\':
0
1774 skip = 1;-
1775 break;
never executed: break;
0
1776-
1777 case
never executed: case L'\0':
L'\0':
never executed: case L'\0':
0
1778 return
never executed: return ((wchar_t *) ((void *)0) );
((wchar_t *)
never executed: return ((wchar_t *) ((void *)0) );
0
1779 ((void *)0)
never executed: return ((wchar_t *) ((void *)0) );
0
1780 );
never executed: return ((wchar_t *) ((void *)0) );
0
1781-
1782-
1783-
1784-
1785 case
never executed: case L'[':
L'[':
never executed: case L'[':
0
1786 if (bnest == 0
bnest == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1787 {-
1788 bfirst = s + 1;-
1789 if (*
*bfirst == L'!'Description
TRUEnever evaluated
FALSEnever evaluated
bfirst == L'!'
*bfirst == L'!'Description
TRUEnever evaluated
FALSEnever evaluated
|| *
*bfirst == L'^'Description
TRUEnever evaluated
FALSEnever evaluated
bfirst == L'^'
*bfirst == L'^'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1790 bfirst++;
never executed: bfirst++;
0
1791 bnest++;-
1792 }
never executed: end of block
0
1793 else if (s[1] == L':'
s[1] == L':'Description
TRUEnever evaluated
FALSEnever evaluated
|| s[1] == L'.'
s[1] == L'.'Description
TRUEnever evaluated
FALSEnever evaluated
|| s[1] == L'='
s[1] == L'='Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1794 cchar = s[1];
never executed: cchar = s[1];
0
1795 break;
never executed: break;
0
1796-
1797-
1798-
1799-
1800 case
never executed: case L']':
L']':
never executed: case L']':
0
1801 if (bnest
bnestDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1802 {-
1803 if (cchar
ccharDescription
TRUEnever evaluated
FALSEnever evaluated
&& s[-1] == cchar
s[-1] == ccharDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1804 cchar = 0;
never executed: cchar = 0;
0
1805 else if (s != bfirst
s != bfirstDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1806 {-
1807 bnest--;-
1808 bfirst = 0;-
1809 }
never executed: end of block
0
1810 }
never executed: end of block
0
1811 break;
never executed: break;
0
1812-
1813 case
never executed: case L'(':
L'(':
never executed: case L'(':
0
1814 if (bnest == 0
bnest == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1815 pnest++;
never executed: pnest++;
0
1816 break;
never executed: break;
0
1817-
1818 case
executed 100 times by 1 test: case L')':
Executed by:
  • Self test
L')':
executed 100 times by 1 test: case L')':
Executed by:
  • Self test
100
1819 if (bnest == 0
bnest == 0Description
TRUEevaluated 100 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& pnest-- <= 0
pnest-- <= 0Description
TRUEevaluated 100 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-100
1820 return
executed 100 times by 1 test: return ++s;
Executed by:
  • Self test
++s;
executed 100 times by 1 test: return ++s;
Executed by:
  • Self test
100
1821 break;
never executed: break;
0
1822-
1823 case
executed 104 times by 1 test: case L'|':
Executed by:
  • Self test
L'|':
executed 104 times by 1 test: case L'|':
Executed by:
  • Self test
104
1824 if (bnest == 0
bnest == 0Description
TRUEevaluated 104 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& pnest == 0
pnest == 0Description
TRUEevaluated 104 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& delim == L'|'
delim == L'|'Description
TRUEevaluated 52 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 52 times by 1 test
Evaluated by:
  • Self test
)
0-104
1825 return
executed 52 times by 1 test: return ++s;
Executed by:
  • Self test
++s;
executed 52 times by 1 test: return ++s;
Executed by:
  • Self test
52
1826 break;
executed 52 times by 1 test: break;
Executed by:
  • Self test
52
1827 }-
1828 }
executed 330 times by 1 test: end of block
Executed by:
  • Self test
330
1829-
1830 return
never executed: return ( ((void *)0) );
(
never executed: return ( ((void *)0) );
0
1831 ((void *)0)
never executed: return ( ((void *)0) );
0
1832 );
never executed: return ( ((void *)0) );
0
1833}-
1834-
1835-
1836static int-
1837wscompare (p, pe, s, se)-
1838 wchar_t *p, *pe, *s, *se;-
1839{-
1840 int ret;-
1841 wchar_t c1, c2;-
1842 int l1, l2;-
1843-
1844 l1 = pe - p;-
1845 l2 = se - s;-
1846-
1847 if (l1 != l2
l1 != l2Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1848 return
never executed: return (1);
(1);
never executed: return (1);
0
1849-
1850 c1 = *pe;-
1851 c2 = *se;-
1852-
1853 if (c1 != 0
c1 != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1854 *
never executed: *pe = '\0';
pe = '\0';
never executed: *pe = '\0';
0
1855 if (c2 != 0
c2 != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1856 *
never executed: *se = '\0';
se = '\0';
never executed: *se = '\0';
0
1857-
1858-
1859 ret = wcscoll(((wchar_t *)p), ((wchar_t *)s));-
1860-
1861-
1862-
1863-
1864 if (c1 != 0
c1 != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1865 *
never executed: *pe = c1;
pe = c1;
never executed: *pe = c1;
0
1866 if (c2 != 0
c2 != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1867 *
never executed: *se = c2;
se = c2;
never executed: *se = c2;
0
1868-
1869 return
never executed: return (ret == 0 ? ret : 1);
(ret == 0 ? ret : 1);
never executed: return (ret == 0 ? ret : 1);
0
1870}-
1871-
1872-
1873-
1874-
1875-
1876static int-
1877extmatch_wc (xc, s, se, p, pe, flags)-
1878 wint_t xc;-
1879 wchar_t *s, *se;-
1880 wchar_t *p, *pe;-
1881 int flags;-
1882{-
1883 wchar_t *prest;-
1884 wchar_t *psub;-
1885 wchar_t *pnext;-
1886 wchar_t *srest;-
1887 int m1, m2, xflags;-
1888 prest = glob_patscan_wc (p + (*p == L'('), pe, 0);-
1889 if (prest == 0
prest == 0Description
TRUEnever evaluated
FALSEevaluated 52 times by 1 test
Evaluated by:
  • Self test
)
0-52
1890-
1891-
1892 return
never executed: return (wscompare (p - 1, pe, s, se));
(wscompare (p - 1, pe, s, se));
never executed: return (wscompare (p - 1, pe, s, se));
0
1893-
1894 switch (xc)-
1895 {-
1896 case
executed 19 times by 1 test: case L'+':
Executed by:
  • Self test
L'+':
executed 19 times by 1 test: case L'+':
Executed by:
  • Self test
19
1897 case
executed 33 times by 1 test: case L'*':
Executed by:
  • Self test
L'*':
executed 33 times by 1 test: case L'*':
Executed by:
  • Self test
33
1898-
1899-
1900-
1901 if (xc == L'*'
xc == L'*'Description
TRUEevaluated 33 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 19 times by 1 test
Evaluated by:
  • Self test
&& (
(gmatch_wc (s,..., flags) == 0)Description
TRUEnever evaluated
FALSEevaluated 33 times by 1 test
Evaluated by:
  • Self test
gmatch_wc (s, se, prest, pe,
(gmatch_wc (s,..., flags) == 0)Description
TRUEnever evaluated
FALSEevaluated 33 times by 1 test
Evaluated by:
  • Self test
0-33
1902 ((void *)0)
(gmatch_wc (s,..., flags) == 0)Description
TRUEnever evaluated
FALSEevaluated 33 times by 1 test
Evaluated by:
  • Self test
0-33
1903 , flags) == 0)
(gmatch_wc (s,..., flags) == 0)Description
TRUEnever evaluated
FALSEevaluated 33 times by 1 test
Evaluated by:
  • Self test
)
0-33
1904 return
never executed: return 0;
0;
never executed: return 0;
0
1905-
1906-
1907-
1908-
1909 for (psub = p + 1; ; psub = pnext)-
1910 {-
1911 pnext = glob_patscan_wc (psub, pe, L'|');-
1912 for (srest = s; srest <= se
srest <= seDescription
TRUEevaluated 290 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 90 times by 1 test
Evaluated by:
  • Self test
; srest++)
90-290
1913 {-
1914-
1915-
1916 m1 = gmatch_wc (s, srest, psub, pnext - 1, -
1917 ((void *)0)-
1918 , flags) == 0;-
1919-
1920-
1921-
1922 if (m1
m1Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 258 times by 1 test
Evaluated by:
  • Self test
)
32-258
1923 {-
1924-
1925 xflags = (
(srest > s)Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
srest > s)
(srest > s)Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
? (flags & ~(1 << 2)) : flags;
0-32
1926 m2 = (
(gmatch_wc (sr... xflags) == 0)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 25 times by 1 test
Evaluated by:
  • Self test
gmatch_wc (srest, se, prest, pe,
(gmatch_wc (sr... xflags) == 0)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 25 times by 1 test
Evaluated by:
  • Self test
7-25
1927 ((void *)0)
(gmatch_wc (sr... xflags) == 0)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 25 times by 1 test
Evaluated by:
  • Self test
7-25
1928 , xflags) == 0)
(gmatch_wc (sr... xflags) == 0)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 25 times by 1 test
Evaluated by:
  • Self test
||
7-25
1929 (s != srest
s != srestDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
&& gmatch_wc (srest, se, p - 1, pe,
gmatch_wc (sre..., xflags) == 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22 times by 1 test
Evaluated by:
  • Self test
0-25
1930 ((void *)0)
gmatch_wc (sre..., xflags) == 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22 times by 1 test
Evaluated by:
  • Self test
3-22
1931 , xflags) == 0
gmatch_wc (sre..., xflags) == 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22 times by 1 test
Evaluated by:
  • Self test
);
3-22
1932 }
executed 32 times by 1 test: end of block
Executed by:
  • Self test
32
1933 if (m1
m1Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 258 times by 1 test
Evaluated by:
  • Self test
&& m2
m2Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 22 times by 1 test
Evaluated by:
  • Self test
)
10-258
1934 return
executed 10 times by 1 test: return (0);
Executed by:
  • Self test
(0);
executed 10 times by 1 test: return (0);
Executed by:
  • Self test
10
1935 }
executed 280 times by 1 test: end of block
Executed by:
  • Self test
280
1936 if (pnext == prest
pnext == prestDescription
TRUEevaluated 42 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 48 times by 1 test
Evaluated by:
  • Self test
)
42-48
1937 break;
executed 42 times by 1 test: break;
Executed by:
  • Self test
42
1938 }
executed 48 times by 1 test: end of block
Executed by:
  • Self test
48
1939 return
executed 42 times by 1 test: return (1);
Executed by:
  • Self test
(1);
executed 42 times by 1 test: return (1);
Executed by:
  • Self test
42
1940-
1941 case
never executed: case L'?':
L'?':
never executed: case L'?':
0
1942 case
never executed: case L'@':
L'@':
never executed: case L'@':
0
1943-
1944-
1945-
1946 if (xc == L'?'
xc == L'?'Description
TRUEnever evaluated
FALSEnever evaluated
&& (
(gmatch_wc (s,..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
gmatch_wc (s, se, prest, pe,
(gmatch_wc (s,..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1947 ((void *)0)
(gmatch_wc (s,..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1948 , flags) == 0)
(gmatch_wc (s,..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1949 return
never executed: return 0;
0;
never executed: return 0;
0
1950-
1951-
1952-
1953-
1954 for (psub = p + 1; ; psub = pnext)-
1955 {-
1956 pnext = glob_patscan_wc (psub, pe, L'|');-
1957 srest = (
(prest == pe)Description
TRUEnever evaluated
FALSEnever evaluated
prest == pe)
(prest == pe)Description
TRUEnever evaluated
FALSEnever evaluated
? se : s;
0
1958 for ( ; srest <= se
srest <= seDescription
TRUEnever evaluated
FALSEnever evaluated
; srest++)
0
1959 {-
1960-
1961 xflags = (
(srest > s)Description
TRUEnever evaluated
FALSEnever evaluated
srest > s)
(srest > s)Description
TRUEnever evaluated
FALSEnever evaluated
? (flags & ~(1 << 2)) : flags;
0
1962 if (gmatch_wc (s, srest, psub, pnext - 1,
gmatch_wc (s, ... , flags) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1963 ((void *)0)
gmatch_wc (s, ... , flags) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1964 , flags) == 0
gmatch_wc (s, ... , flags) == 0Description
TRUEnever evaluated
FALSEnever evaluated
&&
0
1965 gmatch_wc (srest, se, prest, pe,
gmatch_wc (sre..., xflags) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1966 ((void *)0)
gmatch_wc (sre..., xflags) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
1967 , xflags) == 0
gmatch_wc (sre..., xflags) == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1968 return
never executed: return (0);
(0);
never executed: return (0);
0
1969 }
never executed: end of block
0
1970 if (pnext == prest
pnext == prestDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1971 break;
never executed: break;
0
1972 }
never executed: end of block
0
1973 return
never executed: return (1);
(1);
never executed: return (1);
0
1974-
1975 case
never executed: case '!':
'!':
never executed: case '!':
0
1976 for (srest = s; srest <= se
srest <= seDescription
TRUEnever evaluated
FALSEnever evaluated
; srest++)
0
1977 {-
1978 m1 = 0;-
1979 for (psub = p + 1; ; psub = pnext)-
1980 {-
1981 pnext = glob_patscan_wc (psub, pe, L'|');-
1982-
1983 if (m1 = (gmatch_wc (s, srest, psub, pnext - 1,
m1 = (gmatch_w..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1984 ((void *)0)
m1 = (gmatch_w..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1985 , flags) == 0)
m1 = (gmatch_w..., flags) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1986 break;
never executed: break;
0
1987 if (pnext == prest
pnext == prestDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1988 break;
never executed: break;
0
1989 }
never executed: end of block
0
1990-
1991-
1992-
1993-
1994 if (m1 == 0
m1 == 0Description
TRUEnever evaluated
FALSEnever evaluated
&& *
*s == '.'Description
TRUEnever evaluated
FALSEnever evaluated
s == '.'
*s == '.'Description
TRUEnever evaluated
FALSEnever evaluated
&& (
(flags & (1 << 2))Description
TRUEnever evaluated
FALSEnever evaluated
flags & (1 << 2))
(flags & (1 << 2))Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1995 return
never executed: return (1);
(1);
never executed: return (1);
0
1996-
1997-
1998 xflags = (
(srest > s)Description
TRUEnever evaluated
FALSEnever evaluated
srest > s)
(srest > s)Description
TRUEnever evaluated
FALSEnever evaluated
? (flags & ~(1 << 2)) : flags;
0
1999 if (m1 == 0
m1 == 0Description
TRUEnever evaluated
FALSEnever evaluated
&& gmatch_wc (srest, se, prest, pe,
gmatch_wc (sre..., xflags) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2000 ((void *)0)
gmatch_wc (sre..., xflags) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2001 , xflags) == 0
gmatch_wc (sre..., xflags) == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2002 return
never executed: return (0);
(0);
never executed: return (0);
0
2003 }
never executed: end of block
0
2004 return
never executed: return (1);
(1);
never executed: return (1);
0
2005 }-
2006-
2007 return
never executed: return (1);
(1);
never executed: return (1);
0
2008}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2