Line | Source | Count |
1 | enum { DEFAULT_ECHO_TO_XPG = | - |
2 | 0 | - |
3 | }; | - |
4 | | - |
5 | | - |
6 | void | - |
7 | usage (int status) | - |
8 | { | - |
9 | if (status != TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
10 | 0TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
11 | ) | - |
12 | do { fprintf ( | - |
13 | stderr | - |
14 | , | - |
15 | dcgettext (((void *)0), | - |
16 | "Try '%s --help' for more information.\n" | - |
17 | , 5) | - |
18 | , program_name); } never executed: end of block while (0); | 0 |
19 | else | - |
20 | { | - |
21 | printf ( | - |
22 | dcgettext (((void *)0), | - |
23 | "Usage: %s [SHORT-OPTION]... [STRING]...\n or: %s LONG-OPTION\n" | - |
24 | , 5) | - |
25 | | - |
26 | | - |
27 | | - |
28 | , program_name, program_name); | - |
29 | fputs_unlocked ( | - |
30 | dcgettext (((void *)0), | - |
31 | "Echo the STRING(s) to standard output.\n\n -n do not output the trailing newline\n" | - |
32 | , 5) | - |
33 | , | - |
34 | stdout | - |
35 | ) | - |
36 | | - |
37 | | - |
38 | | - |
39 | ; | - |
40 | fputs_unlocked ( | - |
41 | dcgettext (((void *)0), | - |
42 | DEFAULT_ECHO_TO_XPG ? " -e enable interpretation of backslash escapes (default)\n -E disable interpretation of backslash escapes\n" : " -e enable interpretation of backslash escapes\n -E disable interpretation of backslash escapes (default)\n" | - |
43 | , 5) | - |
44 | , | - |
45 | stdout | - |
46 | ) | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | ; | - |
54 | fputs_unlocked ( | - |
55 | dcgettext (((void *)0), | - |
56 | " --help display this help and exit\n" | - |
57 | , 5) | - |
58 | , | - |
59 | stdout | - |
60 | ); | - |
61 | fputs_unlocked ( | - |
62 | dcgettext (((void *)0), | - |
63 | " --version output version information and exit\n" | - |
64 | , 5) | - |
65 | , | - |
66 | stdout | - |
67 | ); | - |
68 | fputs_unlocked ( | - |
69 | dcgettext (((void *)0), | - |
70 | "\nIf -e is in effect, the following sequences are recognized:\n\n" | - |
71 | , 5) | - |
72 | , | - |
73 | stdout | - |
74 | ) | - |
75 | | - |
76 | | - |
77 | | - |
78 | ; | - |
79 | fputs_unlocked ( | - |
80 | dcgettext (((void *)0), | - |
81 | " \\\\ backslash\n \\a alert (BEL)\n \\b backspace\n \\c produce no further output\n \\e escape\n \\f form feed\n \\n new line\n \\r carriage return\n \\t horizontal tab\n \\v vertical tab\n" | - |
82 | , 5) | - |
83 | , | - |
84 | stdout | - |
85 | ) | - |
86 | ; | - |
87 | fputs_unlocked ( | - |
88 | dcgettext (((void *)0), | - |
89 | " \\0NNN byte with octal value NNN (1 to 3 digits)\n \\xHH byte with hexadecimal value HH (1 to 2 digits)\n" | - |
90 | , 5) | - |
91 | , | - |
92 | stdout | - |
93 | ) | - |
94 | | - |
95 | | - |
96 | ; | - |
97 | printf ( | - |
98 | dcgettext (((void *)0), | - |
99 | "\n" "NOTE: your shell may have its own version of %s, which usually supersedes\n" "the version described here. Please refer to your shell's documentation\n" "for details about the options it supports.\n" | - |
100 | , 5) | - |
101 | , "echo"); | - |
102 | emit_ancillary_info ("echo"); | - |
103 | }executed 2 times by 1 test: end of block | 2 |
104 | exit (status);executed 2 times by 1 test: exit (status); | 2 |
105 | } | - |
106 | | - |
107 | | - |
108 | static int | - |
109 | hextobin (unsigned char c) | - |
110 | { | - |
111 | switch (c) | - |
112 | { | - |
113 | default never executed: default: :never executed: default: returnnever executed: return c - '0'; c - '0';never executed: return c - '0'; | 0 |
114 | case never executed: case 'a': 'a':never executed: case 'a': casenever executed: case 'A': 'A':never executed: case 'A': returnnever executed: return 10; 10;never executed: return 10; | 0 |
115 | case never executed: case 'b': 'b':never executed: case 'b': casenever executed: case 'B': 'B':never executed: case 'B': returnnever executed: return 11; 11;never executed: return 11; | 0 |
116 | case never executed: case 'c': 'c':never executed: case 'c': casenever executed: case 'C': 'C':never executed: case 'C': returnnever executed: return 12; 12;never executed: return 12; | 0 |
117 | case never executed: case 'd': 'd':never executed: case 'd': casenever executed: case 'D': 'D':never executed: case 'D': returnnever executed: return 13; 13;never executed: return 13; | 0 |
118 | case never executed: case 'e': 'e':never executed: case 'e': casenever executed: case 'E': 'E':never executed: case 'E': returnnever executed: return 14; 14;never executed: return 14; | 0 |
119 | case never executed: case 'f': 'f':never executed: case 'f': casenever executed: case 'F': 'F':never executed: case 'F': returnnever executed: return 15; 15;never executed: return 15; | 0 |
120 | } | - |
121 | } | - |
122 | | - |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
127 | int | - |
128 | main (int argc, char **argv) | - |
129 | { | - |
130 | | - |
131 | _Bool | - |
132 | display_return = | - |
133 | 1 | - |
134 | ; | - |
135 | | - |
136 | _Bool | - |
137 | allow_options = | - |
138 | (! getenv ("POSIXLY_CORRECT")TRUE | evaluated 25 times by 1 test | FALSE | never evaluated |
| 0-25 |
139 | || (! DEFAULT_ECHO_TO_XPGTRUE | never evaluated | FALSE | never evaluated |
&& 1 < argcTRUE | never evaluated | FALSE | never evaluated |
&& (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
140 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
141 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
142 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
143 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
144 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
145 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
146 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
147 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
148 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
149 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
150 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
151 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
152 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
153 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
154 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
155 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
156 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
157 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
158 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
159 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
160 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
161 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
162 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
163 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
164 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
165 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
166 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
167 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
168 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
169 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
170 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
171 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
172 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
173 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
174 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
175 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
176 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
177 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
178 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
179 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
180 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
181 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
182 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
183 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
184 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
185 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
186 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( argv[1] ))[3] - __s2[3]); | 0 |
187 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( argv[1] ))[3] - __s2[3]); | 0 |
188 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
189 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
190 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
191 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
192 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
193 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
194 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
195 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
196 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
197 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
198 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
199 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
200 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
201 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
202 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
203 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
204 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
205 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
206 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
207 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
208 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
209 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
210 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
211 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
212 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
213 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
214 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "-n" ))[3] - __s2[3]); | 0 |
215 | "-n"TRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "-n" ))[3] - __s2[3]); | 0 |
216 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
217 | argv[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
218 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
219 | "-n"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
220 | )))); }) TRUE | never evaluated | FALSE | never evaluated |
| 0 |
221 | == 0)TRUE | never evaluated | FALSE | never evaluated |
)); | 0 |
222 | | - |
223 | | - |
224 | | - |
225 | | - |
226 | | - |
227 | _Bool | - |
228 | do_v9 = DEFAULT_ECHO_TO_XPG; | - |
229 | | - |
230 | ; | - |
231 | set_program_name (argv[0]); | - |
232 | setlocale ( | - |
233 | 6 | - |
234 | , ""); | - |
235 | bindtextdomain ("coreutils", "/usr/local/share/locale"); | - |
236 | textdomain ("coreutils"); | - |
237 | | - |
238 | atexit (close_stdout); | - |
239 | | - |
240 | | - |
241 | | - |
242 | if (allow_optionsTRUE | evaluated 25 times by 1 test | FALSE | never evaluated |
&& argc == 2TRUE | evaluated 11 times by 1 test | FALSE | evaluated 14 times by 1 test |
) | 0-25 |
243 | { | - |
244 | if ((TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
245 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
246 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
247 | ) && __builtin_constant_p (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
248 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
249 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
250 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
251 | ), __s2_len = __builtin_strlen (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
252 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
253 | ), (!((size_t)(const void *)((TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
254 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
255 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
256 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
257 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
258 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
259 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
260 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
261 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
262 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
263 | , TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
264 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
265 | ) : (__builtin_constant_p (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
266 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
267 | ) && ((size_t)(const void *)((TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
268 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
269 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
270 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
271 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
272 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
273 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
274 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
275 | ) && ((size_t)(const void *)((TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
276 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
277 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
278 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
279 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
280 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
281 | , TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
282 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
283 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
284 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
285 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
286 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
287 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 0-9 |
288 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
289 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 0-9 |
290 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
291 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( argv[1] ))[3] - __s2[3]); TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 0-9 |
292 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( argv[1] ))[3] - __s2[3]); | 0-9 |
293 | ))[3] - __s2[3]);TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( argv[1] ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 0-9 |
294 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
295 | ) && ((size_t)(const void *)((TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
296 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
297 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
298 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
299 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
300 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
301 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
302 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
303 | ) && ((size_t)(const void *)((TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
304 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
305 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
306 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
307 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
308 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
309 | , TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
310 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
311 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
312 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
313 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
314 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
315 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 0-9 |
316 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
317 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 0-9 |
318 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
319 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "--help" ))[3] - __s2[3]); TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 0-9 |
320 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "--help" ))[3] - __s2[3]); | 0-9 |
321 | ))[3] - __s2[3]);TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "--help" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 0-9 |
322 | argv[1]TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
323 | , TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
324 | "--help"TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
325 | )))); }) TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
| 2-9 |
326 | == 0)TRUE | evaluated 2 times by 1 test | FALSE | evaluated 9 times by 1 test |
) | 2-9 |
327 | usage (executed 2 times by 1 test: usage ( 0 ); | 2 |
328 | 0executed 2 times by 1 test: usage ( 0 ); | 2 |
329 | );executed 2 times by 1 test: usage ( 0 ); | 2 |
330 | | - |
331 | if ((TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
332 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
333 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
334 | ) && __builtin_constant_p (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
335 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
336 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
337 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
338 | ), __s2_len = __builtin_strlen (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
339 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
340 | ), (!((size_t)(const void *)((TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
341 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
342 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
343 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
344 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
345 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
346 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
347 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
348 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
349 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
350 | , TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
351 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
352 | ) : (__builtin_constant_p (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
353 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
354 | ) && ((size_t)(const void *)((TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
355 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
356 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
357 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
358 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
359 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
360 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
361 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
362 | ) && ((size_t)(const void *)((TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
363 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
364 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
365 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
366 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
367 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
368 | , TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
369 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
370 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
371 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
372 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
373 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
374 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 0-6 |
375 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
376 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 0-6 |
377 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
378 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( argv[1] ))[3] - __s2[3]); TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 0-6 |
379 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( argv[1] ))[3] - __s2[3]); | 0-6 |
380 | ))[3] - __s2[3]);TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( argv[1] ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 0-6 |
381 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
382 | ) && ((size_t)(const void *)((TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
383 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
384 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
385 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
386 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
387 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
388 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
389 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
390 | ) && ((size_t)(const void *)((TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
391 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
392 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
393 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
394 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
395 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
396 | , TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
397 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
398 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
399 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
400 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
401 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
402 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 0-6 |
403 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
404 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 0-6 |
405 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
406 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "--version" ))[3] - __s2[3]); TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 0-6 |
407 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "--version" ))[3] - __s2[3]); | 0-6 |
408 | ))[3] - __s2[3]);TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "--version" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 0-6 |
409 | argv[1]TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
410 | , TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
411 | "--version"TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
412 | )))); }) TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 3-6 |
413 | == 0)TRUE | evaluated 3 times by 1 test | FALSE | evaluated 6 times by 1 test |
) | 3-6 |
414 | { | - |
415 | version_etc ( | - |
416 | stdout | - |
417 | , "echo", "GNU coreutils", Version, ("Brian Fox"), ("Chet Ramey"), | - |
418 | (char *) | - |
419 | ((void *)0) | - |
420 | ); | - |
421 | returnexecuted 3 times by 1 test: return 0 ; executed 3 times by 1 test: return 0 ; | 3 |
422 | 0executed 3 times by 1 test: return 0 ; | 3 |
423 | ;executed 3 times by 1 test: return 0 ; | 3 |
424 | } | - |
425 | }executed 6 times by 1 test: end of block | 6 |
426 | | - |
427 | --argc; | - |
428 | ++argv; | - |
429 | | - |
430 | if (allow_optionsTRUE | evaluated 20 times by 1 test | FALSE | never evaluated |
) | 0-20 |
431 | while (argc > 0TRUE | evaluated 9 times by 1 test | FALSE | evaluated 11 times by 1 test |
&& *TRUE | evaluated 1 time by 1 test | FALSE | evaluated 8 times by 1 test |
argv[0] == '-'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 8 times by 1 test |
) | 1-11 |
432 | { | - |
433 | char const *temp = argv[0] + 1; | - |
434 | size_t i; | - |
435 | | - |
436 | | - |
437 | | - |
438 | | - |
439 | | - |
440 | for (i = 0; temp[i]TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
; i++) | 0-1 |
441 | switch (temp[i]) | - |
442 | { | - |
443 | case never executed: case 'e': 'e':never executed: case 'e': casenever executed: case 'E': 'E':never executed: case 'E': casenever executed: case 'n': 'n':never executed: case 'n': | 0 |
444 | break; never executed: break; | 0 |
445 | defaultexecuted 1 time by 1 test: default: :executed 1 time by 1 test: default: | 1 |
446 | gotoexecuted 1 time by 1 test: goto just_echo; just_echo;executed 1 time by 1 test: goto just_echo; | 1 |
447 | } | - |
448 | | - |
449 | if (i == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
450 | goto never executed: goto just_echo; just_echo;never executed: goto just_echo; | 0 |
451 | | - |
452 | | - |
453 | | - |
454 | while (*TRUE | never evaluated | FALSE | never evaluated |
tempTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
455 | switch (*temp++) | - |
456 | { | - |
457 | case never executed: case 'e': 'e':never executed: case 'e': | 0 |
458 | do_v9 = | - |
459 | 1 | - |
460 | ; | - |
461 | break; never executed: break; | 0 |
462 | | - |
463 | case never executed: case 'E': 'E':never executed: case 'E': | 0 |
464 | do_v9 = | - |
465 | 0 | - |
466 | ; | - |
467 | break; never executed: break; | 0 |
468 | | - |
469 | case never executed: case 'n': 'n':never executed: case 'n': | 0 |
470 | display_return = | - |
471 | 0 | - |
472 | ; | - |
473 | break; never executed: break; | 0 |
474 | } never executed: end of block | 0 |
475 | | - |
476 | argc--; | - |
477 | argv++; | - |
478 | } never executed: end of block | 0 |
479 | | - |
480 | just_echo:code before this statement executed 19 times by 1 test: just_echo: | 19 |
481 | | - |
482 | if (do_v9TRUE | never evaluated | FALSE | evaluated 20 times by 1 test |
) | 0-20 |
483 | { | - |
484 | while (argc > 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
485 | { | - |
486 | char const *s = argv[0]; | - |
487 | unsigned char c; | - |
488 | | - |
489 | while ((TRUE | never evaluated | FALSE | never evaluated |
c = *s++)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
490 | { | - |
491 | if (c == '\\'TRUE | never evaluated | FALSE | never evaluated |
&& *TRUE | never evaluated | FALSE | never evaluated |
sTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
492 | { | - |
493 | switch (c = *s++) | - |
494 | { | - |
495 | case never executed: case 'a': 'a':never executed: case 'a': c = '\a'; break;never executed: break; | 0 |
496 | case never executed: case 'b': 'b':never executed: case 'b': c = '\b'; break;never executed: break; | 0 |
497 | case never executed: case 'c': 'c':never executed: case 'c': returnnever executed: return 0 ; never executed: return 0 ; | 0 |
498 | 0 never executed: return 0 ; | 0 |
499 | ; never executed: return 0 ; | 0 |
500 | case never executed: case 'e': 'e':never executed: case 'e': c = '\x1B'; break;never executed: break; | 0 |
501 | case never executed: case 'f': 'f':never executed: case 'f': c = '\f'; break;never executed: break; | 0 |
502 | case never executed: case 'n': 'n':never executed: case 'n': c = '\n'; break;never executed: break; | 0 |
503 | case never executed: case 'r': 'r':never executed: case 'r': c = '\r'; break;never executed: break; | 0 |
504 | case never executed: case 't': 't':never executed: case 't': c = '\t'; break;never executed: break; | 0 |
505 | case never executed: case 'v': 'v':never executed: case 'v': c = '\v'; break;never executed: break; | 0 |
506 | case never executed: case 'x': 'x':never executed: case 'x': | 0 |
507 | { | - |
508 | unsigned char ch = *s; | - |
509 | if (! TRUE | never evaluated | FALSE | never evaluated |
| 0 |
510 | ((*__ctype_b_loc ())[(int) ((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
511 | chTRUE | never evaluated | FALSE | never evaluated |
| 0 |
512 | ))] & (unsigned short int) _ISxdigit)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
513 | ) | - |
514 | goto never executed: goto not_an_escape; not_an_escape;never executed: goto not_an_escape; | 0 |
515 | s++; | - |
516 | c = hextobin (ch); | - |
517 | ch = *s; | - |
518 | if ( | - |
519 | ((*TRUE | never evaluated | FALSE | never evaluated |
__ctype_b_loc ())[(int) ((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
520 | chTRUE | never evaluated | FALSE | never evaluated |
| 0 |
521 | ))] & (unsigned short int) _ISxdigit)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
522 | ) | - |
523 | { | - |
524 | s++; | - |
525 | c = c * 16 + hextobin (ch); | - |
526 | } never executed: end of block | 0 |
527 | } | - |
528 | break; never executed: break; | 0 |
529 | case never executed: case '0': '0':never executed: case '0': | 0 |
530 | c = 0; | - |
531 | if (! ('0' <= *sTRUE | never evaluated | FALSE | never evaluated |
&& *TRUE | never evaluated | FALSE | never evaluated |
s <= '7'TRUE | never evaluated | FALSE | never evaluated |
)) | 0 |
532 | break; never executed: break; | 0 |
533 | c = *s++; | - |
534 | ((void) 0); | - |
535 | case never executed: case '1': '1':never executed: case '1': code before this statement never executed: case '1': casenever executed: case '2': '2':never executed: case '2': casenever executed: case '3': '3':never executed: case '3': | 0 |
536 | case never executed: case '4': '4':never executed: case '4': casenever executed: case '5': '5':never executed: case '5': casenever executed: case '6': '6':never executed: case '6': casenever executed: case '7': '7':never executed: case '7': | 0 |
537 | c -= '0'; | - |
538 | if ('0' <= *sTRUE | never evaluated | FALSE | never evaluated |
&& *TRUE | never evaluated | FALSE | never evaluated |
s <= '7'TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
539 | c = c * 8 + (*s++ - '0'); never executed: c = c * 8 + (*s++ - '0'); | 0 |
540 | if ('0' <= *sTRUE | never evaluated | FALSE | never evaluated |
&& *TRUE | never evaluated | FALSE | never evaluated |
s <= '7'TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
541 | c = c * 8 + (*s++ - '0'); never executed: c = c * 8 + (*s++ - '0'); | 0 |
542 | break; never executed: break; | 0 |
543 | case never executed: case '\\': '\\':never executed: case '\\': break;never executed: break; | 0 |
544 | | - |
545 | not_an_escape: | - |
546 | default never executed: default: :never executed: default: putchar_unlocked ('\\'); break;never executed: break; | 0 |
547 | } | - |
548 | } | - |
549 | putchar_unlocked (c); | - |
550 | } never executed: end of block | 0 |
551 | argc--; | - |
552 | argv++; | - |
553 | if (argc > 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
554 | putchar_unlocked (' '); never executed: putchar_unlocked (' '); | 0 |
555 | } never executed: end of block | 0 |
556 | } never executed: end of block | 0 |
557 | else | - |
558 | { | - |
559 | while (argc > 0TRUE | evaluated 14 times by 1 test | FALSE | evaluated 20 times by 1 test |
) | 14-20 |
560 | { | - |
561 | fputs_unlocked (argv[0], | - |
562 | stdout | - |
563 | ); | - |
564 | argc--; | - |
565 | argv++; | - |
566 | if (argc > 0TRUE | evaluated 5 times by 1 test | FALSE | evaluated 9 times by 1 test |
) | 5-9 |
567 | putchar_unlocked (' ');executed 5 times by 1 test: putchar_unlocked (' '); | 5 |
568 | }executed 14 times by 1 test: end of block | 14 |
569 | }executed 20 times by 1 test: end of block | 20 |
570 | | - |
571 | if (display_returnTRUE | evaluated 20 times by 1 test | FALSE | never evaluated |
) | 0-20 |
572 | putchar_unlocked ('\n');executed 20 times by 1 test: putchar_unlocked ('\n'); | 20 |
573 | returnexecuted 20 times by 1 test: return 0 ; executed 20 times by 1 test: return 0 ; | 20 |
574 | 0executed 20 times by 1 test: return 0 ; | 20 |
575 | ;executed 20 times by 1 test: return 0 ; | 20 |
576 | } | - |
| | |