OpenCoverage

rm.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/rm.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3enum-
4{-
5 INTERACTIVE_OPTION = 0x7f + 1,-
6 ONE_FILE_SYSTEM,-
7 NO_PRESERVE_ROOT,-
8 PRESERVE_ROOT,-
9 PRESUME_INPUT_TTY_OPTION-
10};-
11-
12enum interactive_type-
13 {-
14 interactive_never,-
15 interactive_once,-
16 interactive_always-
17 };-
18-
19static struct option const long_opts[] =-
20{-
21 {"force", -
22 0-
23 , -
24 ((void *)0)-
25 , 'f'},-
26 {"interactive", -
27 2-
28 , -
29 ((void *)0)-
30 , INTERACTIVE_OPTION},-
31-
32 {"one-file-system", -
33 0-
34 , -
35 ((void *)0)-
36 , ONE_FILE_SYSTEM},-
37 {"no-preserve-root", -
38 0-
39 , -
40 ((void *)0)-
41 , NO_PRESERVE_ROOT},-
42 {"preserve-root", -
43 0-
44 , -
45 ((void *)0)-
46 , PRESERVE_ROOT},-
47-
48-
49-
50-
51-
52 {"-presume-input-tty", -
53 0-
54 , -
55 ((void *)0)-
56 , PRESUME_INPUT_TTY_OPTION},-
57-
58 {"recursive", -
59 0-
60 , -
61 ((void *)0)-
62 , 'r'},-
63 {"dir", -
64 0-
65 , -
66 ((void *)0)-
67 , 'd'},-
68 {"verbose", -
69 0-
70 , -
71 ((void *)0)-
72 , 'v'},-
73 {"help", -
74 0-
75 , -
76 ((void *)0)-
77 , GETOPT_HELP_CHAR},-
78 {"version", -
79 0-
80 , -
81 ((void *)0)-
82 , GETOPT_VERSION_CHAR},-
83 {-
84 ((void *)0)-
85 , 0, -
86 ((void *)0)-
87 , 0}-
88};-
89-
90static char const *const interactive_args[] =-
91{-
92 "never", "no", "none",-
93 "once",-
94 "always", "yes", -
95 ((void *)0)-
96-
97};-
98static enum interactive_type const interactive_types[] =-
99{-
100 interactive_never, interactive_never, interactive_never,-
101 interactive_once,-
102 interactive_always, interactive_always-
103};-
104_Static_assert ((sizeof (interactive_args) / sizeof *(interactive_args)) == (sizeof (interactive_types) / sizeof *(interactive_types)) + 1, "verify (" "ARRAY_CARDINALITY (interactive_args) == ARRAY_CARDINALITY (interactive_types) + 1" ")");-
105-
106-
107-
108-
109static void-
110diagnose_leading_hyphen (int argc, char **argv)-
111{-
112-
113-
114-
115 for (int i = 1; i < argc
i < argcDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • rm
FALSEevaluated 1 time by 1 test
Evaluated by:
  • rm
; i++)
1
116 {-
117 char const *arg = argv[i];-
118 struct stat st;-
119-
120 if (arg[0] == '-'
arg[0] == '-'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • rm
FALSEnever evaluated
&& arg[1]
arg[1]Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • rm
FALSEnever evaluated
&& lstat (arg, &st) == 0
lstat (arg, &st) == 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • rm
)
0-1
121 {-
122 fprintf (-
123 stderr-
124 ,-
125 -
126 dcgettext (((void *)0), -
127 "Try '%s ./%s' to remove the file %s.\n"-
128 , 5)-
129 ,-
130 argv[0],-
131 quotearg_n_style (1, shell_escape_quoting_style, arg),-
132 quotearg_style (shell_escape_always_quoting_style, arg));-
133 break;
never executed: break;
0
134 }-
135 }
executed 1 time by 1 test: end of block
Executed by:
  • rm
1
136}
executed 1 time by 1 test: end of block
Executed by:
  • rm
1
137-
138void-
139usage (int status)-
140{-
141 if (status !=
status != 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • rm
FALSEevaluated 2 times by 1 test
Evaluated by:
  • rm
1-2
142 0
status != 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • rm
FALSEevaluated 2 times by 1 test
Evaluated by:
  • rm
1-2
143 )-
144 do { fprintf (-
145 stderr-
146 , -
147 dcgettext (((void *)0), -
148 "Try '%s --help' for more information.\n"-
149 , 5)-
150 , program_name); }
executed 1 time by 1 test: end of block
Executed by:
  • rm
while (0);
1
151 else-
152 {-
153 printf (-
154 dcgettext (((void *)0), -
155 "Usage: %s [OPTION]... [FILE]...\n"-
156 , 5)-
157 , program_name);-
158 fputs_unlocked (-
159 dcgettext (((void *)0), -
160 "Remove (unlink) the FILE(s).\n\n -f, --force ignore nonexistent files and arguments, never prompt\n -i prompt before every removal\n"-
161 , 5)-
162 ,-
163 stdout-
164 )-
165-
166-
167-
168-
169 ;-
170 fputs_unlocked (-
171 dcgettext (((void *)0), -
172 " -I prompt once before removing more than three files, or\n when removing recursively; less intrusive than -i,\n while still giving protection against most mistakes\n --interactive[=WHEN] prompt according to WHEN: never, once (-I), or\n always (-i); without WHEN, prompt always\n"-
173 , 5)-
174 ,-
175 stdout-
176 )-
177-
178-
179-
180-
181-
182 ;-
183 fputs_unlocked (-
184 dcgettext (((void *)0), -
185 " --one-file-system when removing a hierarchy recursively, skip any\n directory that is on a file system different from\n that of the corresponding command line argument\n"-
186 , 5)-
187 ,-
188 stdout-
189 )-
190-
191-
192-
193 ;-
194 fputs_unlocked (-
195 dcgettext (((void *)0), -
196 " --no-preserve-root do not treat '/' specially\n --preserve-root do not remove '/' (default)\n -r, -R, --recursive remove directories and their contents recursively\n -d, --dir remove empty directories\n -v, --verbose explain what is being done\n"-
197 , 5)-
198 ,-
199 stdout-
200 )-
201-
202-
203-
204-
205-
206 ;-
207 fputs_unlocked (-
208 dcgettext (((void *)0), -
209 " --help display this help and exit\n"-
210 , 5)-
211 ,-
212 stdout-
213 );-
214 fputs_unlocked (-
215 dcgettext (((void *)0), -
216 " --version output version information and exit\n"-
217 , 5)-
218 ,-
219 stdout-
220 );-
221 fputs_unlocked (-
222 dcgettext (((void *)0), -
223 "\nBy default, rm does not remove directories. Use the --recursive (-r or -R)\noption to remove each listed directory, too, along with all of its contents.\n"-
224 , 5)-
225 ,-
226 stdout-
227 )-
228-
229-
230-
231 ;-
232 printf (-
233 dcgettext (((void *)0), -
234 "\nTo remove a file whose name starts with a '-', for example '-foo',\nuse one of these commands:\n %s -- -foo\n\n %s ./-foo\n"-
235 , 5)-
236-
237-
238-
239-
240-
241-
242 -
243 ,-
244 program_name, program_name);-
245 fputs_unlocked (-
246 dcgettext (((void *)0), -
247 "\nNote that if you use rm to remove a file, it might be possible to recover\nsome of its contents, given sufficient expertise and/or time. For greater\nassurance that the contents are truly unrecoverable, consider using shred.\n"-
248 , 5)-
249 ,-
250 stdout-
251 )-
252-
253-
254-
255-
256 ;-
257 emit_ancillary_info ("rm");-
258 }
executed 2 times by 1 test: end of block
Executed by:
  • rm
2
259 exit (status);
executed 3 times by 1 test: exit (status);
Executed by:
  • rm
3
260}-
261-
262static void-
263rm_option_init (struct rm_options *x)-
264{-
265 x->ignore_missing_files = -
266 0-
267 ;-
268 x->interactive = RMI_SOMETIMES;-
269 x->one_file_system = -
270 0-
271 ;-
272 x->remove_empty_directories = -
273 0-
274 ;-
275 x->recursive = -
276 0-
277 ;-
278 x->root_dev_ino = -
279 ((void *)0)-
280 ;-
281 x->stdin_tty = isatty (-
282 0-
283 );-
284 x->verbose = -
285 0-
286 ;-
287-
288-
289-
290 x->require_restore_cwd = -
291 0-
292 ;-
293}
executed 533 times by 1 test: end of block
Executed by:
  • rm
533
294-
295int-
296main (int argc, char **argv)-
297{-
298 -
299 _Bool -
300 preserve_root = -
301 1-
302 ;-
303 struct rm_options x;-
304 -
305 _Bool -
306 prompt_once = -
307 0-
308 ;-
309 int c;-
310-
311 ;-
312 set_program_name (argv[0]);-
313 setlocale (-
314 6-
315 , "");-
316 bindtextdomain ("coreutils", "/usr/local/share/locale");-
317 textdomain ("coreutils");-
318-
319 atexit (close_stdin);-
320-
321 rm_option_init (&x);-
322-
323-
324 priv_set_remove_linkdir ();-
325-
326 while ((
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 889 times by 1 test
Evaluated by:
  • rm
FALSEevaluated 482 times by 1 test
Evaluated by:
  • rm
c = getopt_long (argc, argv, "dfirvIR", long_opts,
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 889 times by 1 test
Evaluated by:
  • rm
FALSEevaluated 482 times by 1 test
Evaluated by:
  • rm
482-889
327 ((void *)0)
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 889 times by 1 test
Evaluated by:
  • rm
FALSEevaluated 482 times by 1 test
Evaluated by:
  • rm
482-889
328 )) != -1
(c = getopt_lo... *)0) )) != -1Description
TRUEevaluated 889 times by 1 test
Evaluated by:
  • rm
FALSEevaluated 482 times by 1 test
Evaluated by:
  • rm
)
482-889
329 {-
330 switch (c)-
331 {-
332 case
executed 3 times by 1 test: case 'd':
Executed by:
  • rm
'd':
executed 3 times by 1 test: case 'd':
Executed by:
  • rm
3
333 x.remove_empty_directories = -
334 1-
335 ;-
336 break;
executed 3 times by 1 test: break;
Executed by:
  • rm
3
337-
338 case
executed 429 times by 1 test: case 'f':
Executed by:
  • rm
'f':
executed 429 times by 1 test: case 'f':
Executed by:
  • rm
429
339 x.interactive = RMI_NEVER;-
340 x.ignore_missing_files = -
341 1-
342 ;-
343 prompt_once = -
344 0-
345 ;-
346 break;
executed 429 times by 1 test: break;
Executed by:
  • rm
429
347-
348 case
executed 7 times by 1 test: case 'i':
Executed by:
  • rm
'i':
executed 7 times by 1 test: case 'i':
Executed by:
  • rm
7
349 x.interactive = RMI_ALWAYS;-
350 x.ignore_missing_files = -
351 0-
352 ;-
353 prompt_once = -
354 0-
355 ;-
356 break;
executed 7 times by 1 test: break;
Executed by:
  • rm
7
357-
358 case
executed 10 times by 1 test: case 'I':
Executed by:
  • rm
'I':
executed 10 times by 1 test: case 'I':
Executed by:
  • rm
10
359 x.interactive = RMI_SOMETIMES;-
360 x.ignore_missing_files = -
361 0-
362 ;-
363 prompt_once = -
364 1-
365 ;-
366 break;
executed 10 times by 1 test: break;
Executed by:
  • rm
10
367-
368 case
executed 355 times by 1 test: case 'r':
Executed by:
  • rm
'r':
executed 355 times by 1 test: case 'r':
Executed by:
  • rm
355
369 case
executed 14 times by 1 test: case 'R':
Executed by:
  • rm
'R':
executed 14 times by 1 test: case 'R':
Executed by:
  • rm
14
370 x.recursive = -
371 1-
372 ;-
373 break;
executed 369 times by 1 test: break;
Executed by:
  • rm
369
374-
375 case
executed 7 times by 1 test: case INTERACTIVE_OPTION:
Executed by:
  • rm
INTERACTIVE_OPTION:
executed 7 times by 1 test: case INTERACTIVE_OPTION:
Executed by:
  • rm
7
376 {-
377 int i;-
378 if (optarg
optargDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • rm
FALSEevaluated 1 time by 1 test
Evaluated by:
  • rm
)
1-6
379 i = ((interactive_types) [__xargmatch_internal ("--interactive", optarg, interactive_args, (char const *) (interactive_types), sizeof *(interactive_types), argmatch_die)])
executed 6 times by 1 test: i = ((interactive_types) [__xargmatch_internal ("--interactive", optarg, interactive_args, (char const *) (interactive_types), sizeof *(interactive_types), argmatch_die)]) ;
Executed by:
  • rm
6
380 ;
executed 6 times by 1 test: i = ((interactive_types) [__xargmatch_internal ("--interactive", optarg, interactive_args, (char const *) (interactive_types), sizeof *(interactive_types), argmatch_die)]) ;
Executed by:
  • rm
6
381 else-
382 i = interactive_always;
executed 1 time by 1 test: i = interactive_always;
Executed by:
  • rm
1
383 switch (i)-
384 {-
385 case
executed 2 times by 1 test: case interactive_never:
Executed by:
  • rm
interactive_never:
executed 2 times by 1 test: case interactive_never:
Executed by:
  • rm
2
386 x.interactive = RMI_NEVER;-
387 prompt_once = -
388 0-
389 ;-
390 break;
executed 2 times by 1 test: break;
Executed by:
  • rm
2
391-
392 case
executed 3 times by 1 test: case interactive_once:
Executed by:
  • rm
interactive_once:
executed 3 times by 1 test: case interactive_once:
Executed by:
  • rm
3
393 x.interactive = RMI_SOMETIMES;-
394 x.ignore_missing_files = -
395 0-
396 ;-
397 prompt_once = -
398 1-
399 ;-
400 break;
executed 3 times by 1 test: break;
Executed by:
  • rm
3
401-
402 case
executed 2 times by 1 test: case interactive_always:
Executed by:
  • rm
interactive_always:
executed 2 times by 1 test: case interactive_always:
Executed by:
  • rm
2
403 x.interactive = RMI_ALWAYS;-
404 x.ignore_missing_files = -
405 0-
406 ;-
407 prompt_once = -
408 0-
409 ;-
410 break;
executed 2 times by 1 test: break;
Executed by:
  • rm
2
411 }-
412 break;
executed 7 times by 1 test: break;
Executed by:
  • rm
7
413 }-
414-
415 case
executed 1 time by 1 test: case ONE_FILE_SYSTEM:
Executed by:
  • rm
ONE_FILE_SYSTEM:
executed 1 time by 1 test: case ONE_FILE_SYSTEM:
Executed by:
  • rm
1
416 x.one_file_system = -
417 1-
418 ;-
419 break;
executed 1 time by 1 test: break;
Executed by:
  • rm
1
420-
421 case
never executed: case NO_PRESERVE_ROOT:
NO_PRESERVE_ROOT:
never executed: case NO_PRESERVE_ROOT:
0
422 if (! (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
423 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
424 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
425 ) && __builtin_constant_p (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
426 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
427 ) && (__s1_len = __builtin_strlen (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
428 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
429 ), __s2_len = __builtin_strlen (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
430 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
431 ), (!((size_t)(const void *)((
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
432 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
433 ) + 1) - (size_t)(const void *)(
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
434 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
435 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
436 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
437 ) + 1) - (size_t)(const void *)(
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
438 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
439 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
440 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
441 ,
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
442 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
443 ) : (__builtin_constant_p (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
444 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
445 ) && ((size_t)(const void *)((
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
446 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
447 ) + 1) - (size_t)(const void *)(
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
448 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
449 ) == 1) && (__s1_len = __builtin_strlen (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
450 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
451 ), __s1_len < 4) ? (__builtin_constant_p (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
452 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
453 ) && ((size_t)(const void *)((
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
454 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
455 ) + 1) - (size_t)(const void *)(
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
456 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
457 ) == 1) ? __builtin_strcmp (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
458 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
459 ,
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
460 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
461 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
462 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
463 ); int __result = (((const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
464 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
465 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
466 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
467 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
468 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
469 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( argv[optind - 1] ))[3] - __s2[3]);
0
470 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( argv[optind - 1] ))[3] - __s2[3]);
0
471 ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
472 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
473 ) && ((size_t)(const void *)((
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
474 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
475 ) + 1) - (size_t)(const void *)(
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
476 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
477 ) == 1) && (__s2_len = __builtin_strlen (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
478 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
479 ), __s2_len < 4) ? (__builtin_constant_p (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
480 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
481 ) && ((size_t)(const void *)((
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
482 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
483 ) + 1) - (size_t)(const void *)(
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
484 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
485 ) == 1) ? __builtin_strcmp (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
486 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
487 ,
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
488 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
489 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
490 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
491 ); int __result = (((const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
492 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
493 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
494 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
495 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
496 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
497 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( "--no-preserve-root" ))[3] - __s2[3]);
0
498 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( "--no-preserve-root" ))[3] - __s2[3]);
0
499 ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
500 argv[optind - 1]
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
501 ,
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
502 "--no-preserve-root"
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
503 )))); })
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
504 == 0)
! ( __extensio...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
505 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
506 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
507 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
508 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
509 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
510 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
511 "you may not abbreviate the --no-preserve-root option"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
512 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
513 ), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
514 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
515 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
516 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
517 , 0,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
518 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
519 "you may not abbreviate the --no-preserve-root option"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
520 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
521 ), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
522 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
523 ) ? (void) 0 : __builtin_unreachable ()))))
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
524 ;
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"you may not abbreviate the --no-preserve-root option\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "... abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "you may not abbreviate the --no-preserve-root option" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
525 preserve_root = -
526 0-
527 ;-
528 break;
never executed: break;
0
529-
530 case
never executed: case PRESERVE_ROOT:
PRESERVE_ROOT:
never executed: case PRESERVE_ROOT:
0
531 preserve_root = -
532 1-
533 ;-
534 break;
never executed: break;
0
535-
536 case
executed 6 times by 1 test: case PRESUME_INPUT_TTY_OPTION:
Executed by:
  • rm
PRESUME_INPUT_TTY_OPTION:
executed 6 times by 1 test: case PRESUME_INPUT_TTY_OPTION:
Executed by:
  • rm
6
537 x.stdin_tty = -
538 1-
539 ;-
540 break;
executed 6 times by 1 test: break;
Executed by:
  • rm
6
541-
542 case
executed 6 times by 1 test: case 'v':
Executed by:
  • rm
'v':
executed 6 times by 1 test: case 'v':
Executed by:
  • rm
6
543 x.verbose = -
544 1-
545 ;-
546 break;
executed 6 times by 1 test: break;
Executed by:
  • rm
6
547-
548 case
executed 2 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • rm
GETOPT_HELP_CHAR:
executed 2 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • rm
usage (
2
549 0-
550 ); break;
never executed: break;
;
0
551 case
executed 48 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • rm
GETOPT_VERSION_CHAR:
executed 48 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • rm
version_etc (
48
552 stdout-
553 , "rm", "GNU coreutils", Version, ("Paul Rubin"), ("David MacKenzie"), ("Richard M. Stallman"), ("Jim Meyering"), (char *) -
554 ((void *)0)-
555 ); exit (
executed 48 times by 1 test: exit ( 0 );
Executed by:
  • rm
48
556 0
executed 48 times by 1 test: exit ( 0 );
Executed by:
  • rm
48
557 );
executed 48 times by 1 test: exit ( 0 );
Executed by:
  • rm
break;
never executed: break;
;
0-48
558 default
executed 1 time by 1 test: default:
Executed by:
  • rm
:
executed 1 time by 1 test: default:
Executed by:
  • rm
1
559 diagnose_leading_hyphen (argc, argv);-
560 usage (-
561 1-
562 );-
563 }
never executed: end of block
0
564 }-
565-
566 if (argc <= optind
argc <= optindDescription
TRUEnever evaluated
FALSEevaluated 482 times by 1 test
Evaluated by:
  • rm
)
0-482
567 {-
568 if (x.ignore_missing_files
x.ignore_missing_filesDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
569 return
never executed: return 0 ;
never executed: return 0 ;
0
570 0
never executed: return 0 ;
0
571 ;
never executed: return 0 ;
0
572 else-
573 {-
574 error (0, 0, -
575 dcgettext (((void *)0), -
576 "missing operand"-
577 , 5)-
578 );-
579 usage (-
580 1-
581 );-
582 }
never executed: end of block
0
583 }-
584-
585 if (x.recursive
x.recursiveDescription
TRUEevaluated 369 times by 1 test
Evaluated by:
  • rm
FALSEevaluated 113 times by 1 test
Evaluated by:
  • rm
&& preserve_root
preserve_rootDescription
TRUEevaluated 369 times by 1 test
Evaluated by:
  • rm
FALSEnever evaluated
)
0-369
586 {-
587 static struct dev_ino dev_ino_buf;-
588 x.root_dev_ino = get_root_dev_ino (&dev_ino_buf);-
589 if (x.root_dev_ino ==
x.root_dev_ino == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 369 times by 1 test
Evaluated by:
  • rm
0-369
590 ((void *)0)
x.root_dev_ino == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 369 times by 1 test
Evaluated by:
  • rm
0-369
591 )-
592 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
593 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
594 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
595 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
596 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
597 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
598 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
599 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
600 "failed to get attributes of %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
601 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
602 , quotearg_style (shell_escape_always_quoting_style, "/")), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
603 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
604 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
605 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
606 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
607 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
608 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
609 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
610 "failed to get attributes of %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
611 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
612 , quotearg_style (shell_escape_always_quoting_style, "/")), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
613 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
614 ) ? (void) 0 : __builtin_unreachable ()))))
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
615 ;
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"failed to get attributes of %s\", 5), quotearg_style (shell_escape_always_quoting_style, \"/\")), assume (false))" ")"); int _... ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "failed to get attributes of %s" , 5) , quotearg_style (shell_escape_always_quoting_style, "/")), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
0
616 }
executed 369 times by 1 test: end of block
Executed by:
  • rm
369
617-
618 uintmax_t n_files = argc - optind;-
619 char **file = argv + optind;-
620-
621 if (prompt_once
prompt_onceDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • rm
FALSEevaluated 470 times by 1 test
Evaluated by:
  • rm
&& (x.recursive
x.recursiveDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • rm
FALSEevaluated 6 times by 1 test
Evaluated by:
  • rm
|| 3 < n_files
3 < n_filesDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • rm
FALSEevaluated 3 times by 1 test
Evaluated by:
  • rm
))
3-470
622 {-
623 fprintf (-
624 stderr-
625 ,-
626 (x.recursive-
627 ? -
628 dcngettext (((void *)0), -
629 "%s: remove %"-
630 "l" "u"-
631 " argument recursively? "-
632 , -
633 "%s: remove %"-
634 "l" "u"-
635 " arguments recursively? "-
636 , -
637 select_plural (n_files)-
638 , 5)-
639-
640-
641 -
642 : -
643 dcngettext (((void *)0), -
644 "%s: remove %"-
645 "l" "u"-
646 " argument? "-
647 , -
648 "%s: remove %"-
649 "l" "u"-
650 " arguments? "-
651 , -
652 select_plural (n_files)-
653 , 5)-
654-
655 -
656 ),-
657 program_name, n_files);-
658 if (!yesno ()
!yesno ()Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • rm
FALSEevaluated 4 times by 1 test
Evaluated by:
  • rm
)
4-5
659 return
executed 5 times by 1 test: return 0 ;
Executed by:
  • rm
executed 5 times by 1 test: return 0 ;
Executed by:
  • rm
5
660 0
executed 5 times by 1 test: return 0 ;
Executed by:
  • rm
5
661 ;
executed 5 times by 1 test: return 0 ;
Executed by:
  • rm
5
662 }
executed 4 times by 1 test: end of block
Executed by:
  • rm
4
663-
664 enum RM_status status = rm (file, &x);-
665 -
666 ((-
667 ((status) == RM_OK || (status) == RM_USER_DECLINED || (status) == RM_ERROR)-
668 ) ? (void) (0) : __assert_fail (-
669 "VALID_STATUS (status)"-
670 , "src/rm.c", 355, __PRETTY_FUNCTION__))-
671 ;-
672 return
executed 477 times by 1 test: return status == RM_ERROR ? 1 : 0 ;
Executed by:
  • rm
status == RM_ERROR ?
executed 477 times by 1 test: return status == RM_ERROR ? 1 : 0 ;
Executed by:
  • rm
477
673 1
executed 477 times by 1 test: return status == RM_ERROR ? 1 : 0 ;
Executed by:
  • rm
477
674 :
executed 477 times by 1 test: return status == RM_ERROR ? 1 : 0 ;
Executed by:
  • rm
477
675 0
executed 477 times by 1 test: return status == RM_ERROR ? 1 : 0 ;
Executed by:
  • rm
477
676 ;
executed 477 times by 1 test: return status == RM_ERROR ? 1 : 0 ;
Executed by:
  • rm
477
677}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2