OpenCoverage

realpath.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/realpath.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9enum-
10{-
11 RELATIVE_TO_OPTION = 0x7f + 1,-
12 RELATIVE_BASE_OPTION-
13};-
14-
15static -
16 _Bool -
17 verbose = -
18 1-
19 ;-
20static -
21 _Bool -
22 logical;-
23static -
24 _Bool -
25 use_nuls;-
26static const char *can_relative_to;-
27static const char *can_relative_base;-
28-
29static struct option const longopts[] =-
30{-
31 {"canonicalize-existing", -
32 0-
33 , -
34 ((void *)0)-
35 , 'e'},-
36 {"canonicalize-missing", -
37 0-
38 , -
39 ((void *)0)-
40 , 'm'},-
41 {"relative-to", -
42 1-
43 , -
44 ((void *)0)-
45 , RELATIVE_TO_OPTION},-
46 {"relative-base", -
47 1-
48 , -
49 ((void *)0)-
50 , RELATIVE_BASE_OPTION},-
51 {"quiet", -
52 0-
53 , -
54 ((void *)0)-
55 , 'q'},-
56 {"strip", -
57 0-
58 , -
59 ((void *)0)-
60 , 's'},-
61 {"no-symlinks", -
62 0-
63 , -
64 ((void *)0)-
65 , 's'},-
66 {"zero", -
67 0-
68 , -
69 ((void *)0)-
70 , 'z'},-
71 {"logical", -
72 0-
73 , -
74 ((void *)0)-
75 , 'L'},-
76 {"physical", -
77 0-
78 , -
79 ((void *)0)-
80 , 'P'},-
81 {"help", -
82 0-
83 , -
84 ((void *)0)-
85 , GETOPT_HELP_CHAR},-
86 {"version", -
87 0-
88 , -
89 ((void *)0)-
90 , GETOPT_VERSION_CHAR},-
91 {-
92 ((void *)0)-
93 , 0, -
94 ((void *)0)-
95 , 0}-
96};-
97-
98void-
99usage (int status)-
100{-
101 if (status !=
status != 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 20 times by 1 test
Evaluated by:
  • realpath
6-20
102 0
status != 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 20 times by 1 test
Evaluated by:
  • realpath
6-20
103 )-
104 do { fprintf (-
105 stderr-
106 , -
107 dcgettext (((void *)0), -
108 "Try '%s --help' for more information.\n"-
109 , 5)-
110 , program_name); }
executed 6 times by 1 test: end of block
Executed by:
  • realpath
while (0);
6
111 else-
112 {-
113 printf (-
114 dcgettext (((void *)0), -
115 "Usage: %s [OPTION]... FILE...\n"-
116 , 5)-
117 , program_name);-
118 fputs_unlocked (-
119 dcgettext (((void *)0), -
120 "Print the resolved absolute file name;\nall but the last component must exist\n\n"-
121 , 5)-
122 ,-
123 stdout-
124 )-
125-
126-
127-
128 ;-
129 fputs_unlocked (-
130 dcgettext (((void *)0), -
131 " -e, --canonicalize-existing all components of the path must exist\n -m, --canonicalize-missing no path components need exist or be a directory\n -L, --logical resolve '..' components before symlinks\n -P, --physical resolve symlinks as encountered (default)\n -q, --quiet suppress most error messages\n --relative-to=DIR print the resolved path relative to DIR\n --relative-base=DIR print absolute paths unless paths below DIR\n -s, --strip, --no-symlinks don't expand symlinks\n -z, --zero end each output line with NUL, not newline\n\n"-
132 , 5)-
133 ,-
134 stdout-
135 )-
136 ;-
137 fputs_unlocked (-
138 dcgettext (((void *)0), -
139 " --help display this help and exit\n"-
140 , 5)-
141 ,-
142 stdout-
143 );-
144 fputs_unlocked (-
145 dcgettext (((void *)0), -
146 " --version output version information and exit\n"-
147 , 5)-
148 ,-
149 stdout-
150 );-
151 emit_ancillary_info ("realpath");-
152 }
executed 20 times by 1 test: end of block
Executed by:
  • realpath
20
153 exit (status);
executed 26 times by 1 test: exit (status);
Executed by:
  • realpath
26
154}-
155-
156-
157-
158static char *-
159realpath_canon (const char *fname, int can_mode)-
160{-
161 char *can_fname = canonicalize_filename_mode (fname, can_mode);-
162 if (logical
logicalDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • realpath
FALSEevaluated 60 times by 1 test
Evaluated by:
  • realpath
&& can_fname
can_fnameDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • realpath
FALSEnever evaluated
)
0-60
163 {-
164 can_mode &= ~CAN_NOLINKS;-
165 char *can_fname2 = canonicalize_filename_mode (can_fname, can_mode);-
166 free (can_fname);-
167 return
executed 1 time by 1 test: return can_fname2;
Executed by:
  • realpath
can_fname2;
executed 1 time by 1 test: return can_fname2;
Executed by:
  • realpath
1
168 }-
169 return
executed 60 times by 1 test: return can_fname;
Executed by:
  • realpath
can_fname;
executed 60 times by 1 test: return can_fname;
Executed by:
  • realpath
60
170}-
171-
172-
173static -
174 _Bool __attribute__ ((__pure__))-
175-
176path_prefix (const char *prefix, const char *path)-
177{-
178-
179 prefix++;-
180 path++;-
181-
182-
183-
184 if (!*prefix
!*prefixDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 8 times by 1 test
Evaluated by:
  • realpath
)
8
185 return
executed 8 times by 1 test: return *path != '/';
Executed by:
  • realpath
*path != '/';
executed 8 times by 1 test: return *path != '/';
Executed by:
  • realpath
8
186-
187-
188 if (*
*prefix == '/'Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • realpath
prefix == '/'
*prefix == '/'Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • realpath
&& !prefix[1]
!prefix[1]Description
TRUEnever evaluated
FALSEnever evaluated
)
0-8
189 return
never executed: return *path == '/';
*path == '/';
never executed: return *path == '/';
0
190-
191-
192 while (*
*prefixDescription
TRUEevaluated 171 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 5 times by 1 test
Evaluated by:
  • realpath
prefix
*prefixDescription
TRUEevaluated 171 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 5 times by 1 test
Evaluated by:
  • realpath
&& *
*pathDescription
TRUEevaluated 170 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 1 time by 1 test
Evaluated by:
  • realpath
path
*pathDescription
TRUEevaluated 170 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 1 time by 1 test
Evaluated by:
  • realpath
)
1-171
193 {-
194 if (*
*prefix != *pathDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 168 times by 1 test
Evaluated by:
  • realpath
prefix != *path
*prefix != *pathDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 168 times by 1 test
Evaluated by:
  • realpath
)
2-168
195 break;
executed 2 times by 1 test: break;
Executed by:
  • realpath
2
196 prefix++;-
197 path++;-
198 }
executed 168 times by 1 test: end of block
Executed by:
  • realpath
168
199 return
executed 8 times by 1 test: return (!*prefix && (*path == '/' || !*path));
Executed by:
  • realpath
(!*prefix && (*path == '/' || !*path));
executed 8 times by 1 test: return (!*prefix && (*path == '/' || !*path));
Executed by:
  • realpath
8
200}-
201-
202static -
203 _Bool-
204-
205isdir (const char *path)-
206{-
207 struct stat sb;-
208 if (stat (path, &sb) != 0
stat (path, &sb) != 0Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • realpath
)
0-3
209 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 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), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
210 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
211 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
212 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
213 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
214 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
215 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
216 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
217 "cannot stat %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
218 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
219 , quotearg_style (shell_escape_always_quoting_style, path)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
220 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
221 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
222 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
223 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
224 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
225 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
226 dcgettext (((void *)0),
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
227 "cannot stat %s"
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
228 , 5)
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
229 , quotearg_style (shell_escape_always_quoting_style, path)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
230 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
231 ) ? (void) 0 : __builtin_unreachable ()))));
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot stat %s\", 5), quotearg_style (shell_escape_always_quoting_style, path)), assume (false))" ")"); int _gl_dummy; })) ? (..., path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot stat %s" , 5) , quotearg_style (shell_escape_always_quoting_style, path)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
232 return
executed 3 times by 1 test: return (((( sb.st_mode )) & 0170000) == (0040000)) ;
Executed by:
  • realpath
executed 3 times by 1 test: return (((( sb.st_mode )) & 0170000) == (0040000)) ;
Executed by:
  • realpath
3
233 ((((
executed 3 times by 1 test: return (((( sb.st_mode )) & 0170000) == (0040000)) ;
Executed by:
  • realpath
3
234 sb.st_mode
executed 3 times by 1 test: return (((( sb.st_mode )) & 0170000) == (0040000)) ;
Executed by:
  • realpath
3
235 )) & 0170000) == (0040000))
executed 3 times by 1 test: return (((( sb.st_mode )) & 0170000) == (0040000)) ;
Executed by:
  • realpath
3
236 ;
executed 3 times by 1 test: return (((( sb.st_mode )) & 0170000) == (0040000)) ;
Executed by:
  • realpath
3
237}-
238-
239static -
240 _Bool-
241-
242process_path (const char *fname, int can_mode)-
243{-
244 char *can_fname = realpath_canon (fname, can_mode);-
245 if (!can_fname
!can_fnameDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • realpath
FALSEevaluated 38 times by 1 test
Evaluated by:
  • realpath
)
1-38
246 {-
247 if (verbose
verboseDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • realpath
FALSEnever evaluated
)
0-1
248 error (0,
executed 1 time by 1 test: error (0, (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, fname));
Executed by:
  • realpath
1
249 (*__errno_location ())
executed 1 time by 1 test: error (0, (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, fname));
Executed by:
  • realpath
1
250 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, fname));
executed 1 time by 1 test: error (0, (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, fname));
Executed by:
  • realpath
1
251 return
executed 1 time by 1 test: return 0 ;
Executed by:
  • realpath
executed 1 time by 1 test: return 0 ;
Executed by:
  • realpath
1
252 0
executed 1 time by 1 test: return 0 ;
Executed by:
  • realpath
1
253 ;
executed 1 time by 1 test: return 0 ;
Executed by:
  • realpath
1
254 }-
255-
256 if (!can_relative_to
!can_relative_toDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 24 times by 1 test
Evaluated by:
  • realpath
14-24
257 || (can_relative_base
can_relative_baseDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 13 times by 1 test
Evaluated by:
  • realpath
&& !path_prefix (can_relative_base, can_fname)
!path_prefix (...se, can_fname)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 9 times by 1 test
Evaluated by:
  • realpath
)
2-13
258 || (can_relative_to
can_relative_toDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • realpath
FALSEnever evaluated
&& !relpath (can_fname, can_relative_to,
!relpath (can_...void *)0) , 0)Description
TRUEnever evaluated
FALSEevaluated 22 times by 1 test
Evaluated by:
  • realpath
0-22
259 ((void *)0)
!relpath (can_...void *)0) , 0)Description
TRUEnever evaluated
FALSEevaluated 22 times by 1 test
Evaluated by:
  • realpath
0-22
260 , 0)
!relpath (can_...void *)0) , 0)Description
TRUEnever evaluated
FALSEevaluated 22 times by 1 test
Evaluated by:
  • realpath
))
0-22
261 fputs_unlocked (can_fname,
executed 16 times by 1 test: fputs_unlocked (can_fname, stdout );
Executed by:
  • realpath
16
262 stdout
executed 16 times by 1 test: fputs_unlocked (can_fname, stdout );
Executed by:
  • realpath
16
263 );
executed 16 times by 1 test: fputs_unlocked (can_fname, stdout );
Executed by:
  • realpath
16
264-
265 putchar_unlocked (use_nuls ? '\0' : '\n');-
266-
267 free (can_fname);-
268-
269 return
executed 38 times by 1 test: return 1 ;
Executed by:
  • realpath
executed 38 times by 1 test: return 1 ;
Executed by:
  • realpath
38
270 1
executed 38 times by 1 test: return 1 ;
Executed by:
  • realpath
38
271 ;
executed 38 times by 1 test: return 1 ;
Executed by:
  • realpath
38
272}-
273-
274int-
275main (int argc, char **argv)-
276{-
277 -
278 _Bool -
279 ok = -
280 1-
281 ;-
282 int can_mode = CAN_ALL_BUT_LAST;-
283 const char *relative_to = -
284 ((void *)0)-
285 ;-
286 const char *relative_base = -
287 ((void *)0)-
288 ;-
289-
290 ;-
291 set_program_name (argv[0]);-
292 setlocale (-
293 6-
294 , "");-
295 bindtextdomain ("coreutils", "/usr/local/share/locale");-
296 textdomain ("coreutils");-
297-
298 atexit (close_stdout);-
299-
300 while (1)-
301 {-
302 int c = getopt_long (argc, argv, "eLmPqsz", longopts, -
303 ((void *)0)-
304 );-
305 if (c == -1
c == -1Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 99 times by 1 test
Evaluated by:
  • realpath
)
28-99
306 break;
executed 28 times by 1 test: break;
Executed by:
  • realpath
28
307 switch (c)-
308 {-
309 case
executed 4 times by 1 test: case 'e':
Executed by:
  • realpath
'e':
executed 4 times by 1 test: case 'e':
Executed by:
  • realpath
4
310 can_mode &= ~(CAN_EXISTING | CAN_ALL_BUT_LAST | CAN_MISSING);-
311 can_mode |= CAN_EXISTING;-
312 break;
executed 4 times by 1 test: break;
Executed by:
  • realpath
4
313 case
executed 15 times by 1 test: case 'm':
Executed by:
  • realpath
'm':
executed 15 times by 1 test: case 'm':
Executed by:
  • realpath
15
314 can_mode &= ~(CAN_EXISTING | CAN_ALL_BUT_LAST | CAN_MISSING);-
315 can_mode |= CAN_MISSING;-
316 break;
executed 15 times by 1 test: break;
Executed by:
  • realpath
15
317 case
executed 3 times by 1 test: case 'L':
Executed by:
  • realpath
'L':
executed 3 times by 1 test: case 'L':
Executed by:
  • realpath
3
318 can_mode |= CAN_NOLINKS;-
319 logical = -
320 1-
321 ;-
322 break;
executed 3 times by 1 test: break;
Executed by:
  • realpath
3
323 case
executed 13 times by 1 test: case 's':
Executed by:
  • realpath
's':
executed 13 times by 1 test: case 's':
Executed by:
  • realpath
13
324 can_mode |= CAN_NOLINKS;-
325 logical = -
326 0-
327 ;-
328 break;
executed 13 times by 1 test: break;
Executed by:
  • realpath
13
329 case
executed 3 times by 1 test: case 'P':
Executed by:
  • realpath
'P':
executed 3 times by 1 test: case 'P':
Executed by:
  • realpath
3
330 can_mode &= ~CAN_NOLINKS;-
331 logical = -
332 0-
333 ;-
334 break;
executed 3 times by 1 test: break;
Executed by:
  • realpath
3
335 case
executed 3 times by 1 test: case 'q':
Executed by:
  • realpath
'q':
executed 3 times by 1 test: case 'q':
Executed by:
  • realpath
3
336 verbose = -
337 0-
338 ;-
339 break;
executed 3 times by 1 test: break;
Executed by:
  • realpath
3
340 case
executed 3 times by 1 test: case 'z':
Executed by:
  • realpath
'z':
executed 3 times by 1 test: case 'z':
Executed by:
  • realpath
3
341 use_nuls = -
342 1-
343 ;-
344 break;
executed 3 times by 1 test: break;
Executed by:
  • realpath
3
345 case
executed 16 times by 1 test: case RELATIVE_TO_OPTION:
Executed by:
  • realpath
RELATIVE_TO_OPTION:
executed 16 times by 1 test: case RELATIVE_TO_OPTION:
Executed by:
  • realpath
16
346 relative_to = optarg;-
347 break;
executed 16 times by 1 test: break;
Executed by:
  • realpath
16
348 case
executed 12 times by 1 test: case RELATIVE_BASE_OPTION:
Executed by:
  • realpath
RELATIVE_BASE_OPTION:
executed 12 times by 1 test: case RELATIVE_BASE_OPTION:
Executed by:
  • realpath
12
349 relative_base = optarg;-
350 break;
executed 12 times by 1 test: break;
Executed by:
  • realpath
12
351 case
executed 20 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • realpath
GETOPT_HELP_CHAR:
executed 20 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • realpath
usage (
20
352 0-
353 ); break;
never executed: break;
;
0
354 case
executed 4 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • realpath
GETOPT_VERSION_CHAR:
executed 4 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • realpath
version_etc (
4
355 stdout-
356 , "realpath", "GNU coreutils", Version, ("Padraig Brady"), (char *) -
357 ((void *)0)-
358 ); exit (
executed 4 times by 1 test: exit ( 0 );
Executed by:
  • realpath
4
359 0
executed 4 times by 1 test: exit ( 0 );
Executed by:
  • realpath
4
360 );
executed 4 times by 1 test: exit ( 0 );
Executed by:
  • realpath
break;
never executed: break;
;
0-4
361 default
executed 3 times by 1 test: default:
Executed by:
  • realpath
:
executed 3 times by 1 test: default:
Executed by:
  • realpath
3
362 usage (-
363 1-
364 );-
365 }
never executed: end of block
0
366 }-
367-
368 if (optind >= argc
optind >= argcDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 25 times by 1 test
Evaluated by:
  • realpath
)
3-25
369 {-
370 error (0, 0, -
371 dcgettext (((void *)0), -
372 "missing operand"-
373 , 5)-
374 );-
375 usage (-
376 1-
377 );-
378 }
never executed: end of block
0
379-
380 if (relative_base
relative_baseDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 16 times by 1 test
Evaluated by:
  • realpath
&& !relative_to
!relative_toDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 7 times by 1 test
Evaluated by:
  • realpath
)
2-16
381 relative_to = relative_base;
executed 2 times by 1 test: relative_to = relative_base;
Executed by:
  • realpath
2
382-
383 -
384 _Bool -
385 need_dir = (can_mode & (CAN_EXISTING | CAN_ALL_BUT_LAST | CAN_MISSING)) == CAN_EXISTING;-
386 if (relative_to
relative_toDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 9 times by 1 test
Evaluated by:
  • realpath
)
9-16
387 {-
388 can_relative_to = realpath_canon (relative_to, can_mode);-
389 if (!can_relative_to
!can_relative_toDescription
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • realpath
)
0-16
390 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
391 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
392 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
393 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
394 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
395 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
396 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
397 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
398 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
399 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
400 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
401 (*__errno_location ())
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
402 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
403 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
404 ) ? (void) 0 : __builtin_unreachable ()))));
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_locati...ell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
405 if (need_dir
need_dirDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 14 times by 1 test
Evaluated by:
  • realpath
&& !isdir (can_relative_to)
!isdir (can_relative_to)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • realpath
FALSEevaluated 1 time by 1 test
Evaluated by:
  • realpath
)
1-14
406 ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
!!sizeof (struct { _Static_assert (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
407 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
408 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
409 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
410 ,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
411 20
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
412 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
413 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
414 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
415 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
416 ,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
417 20
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
418 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
419 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
420 ) ? (void) 0 : __builtin_unreachable ()))));
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_to)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
421 }
executed 15 times by 1 test: end of block
Executed by:
  • realpath
15
422 if (relative_base == relative_to
relative_base == relative_toDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 13 times by 1 test
Evaluated by:
  • realpath
)
11-13
423 can_relative_base = can_relative_to;
executed 11 times by 1 test: can_relative_base = can_relative_to;
Executed by:
  • realpath
11
424 else if (relative_base
relative_baseDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 7 times by 1 test
Evaluated by:
  • realpath
)
6-7
425 {-
426 char *base = realpath_canon (relative_base, can_mode);-
427 if (!base
!baseDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • realpath
FALSEevaluated 5 times by 1 test
Evaluated by:
  • realpath
)
1-5
428 ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
!!sizeof (struct { _Static_assert (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
429 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
430 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
431 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
432 ,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
433 (*__errno_location ())
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
434 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
435 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
436 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
437 1
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
438 ,
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
439 (*__errno_location ())
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
440 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
441 0
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
442 ) ? (void) 0 : __builtin_unreachable ()))));
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_loca...escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
Executed by:
  • realpath
1
443 if (need_dir
need_dirDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • realpath
FALSEevaluated 4 times by 1 test
Evaluated by:
  • realpath
&& !isdir (base)
!isdir (base)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • realpath
)
0-4
444 ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
!!sizeof (struct { _Static_assert (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
445 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
446 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
447 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
448 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
449 20
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
450 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
451 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
452 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
453 1
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
454 ,
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
455 20
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
456 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), ((
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
457 0
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
458 ) ? (void) 0 : __builtin_unreachable ()))));
never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 20, \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 20 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, relative_base)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));
0
459-
460-
461 if (path_prefix (base, can_relative_to)
path_prefix (b...n_relative_to)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 1 time by 1 test
Evaluated by:
  • realpath
)
1-4
462 can_relative_base = base;
executed 4 times by 1 test: can_relative_base = base;
Executed by:
  • realpath
4
463 else-
464 {-
465 free (base);-
466 can_relative_base = can_relative_to;-
467 can_relative_to = -
468 ((void *)0)-
469 ;-
470 }
executed 1 time by 1 test: end of block
Executed by:
  • realpath
1
471 }-
472-
473 for (; optind < argc
optind < argcDescription
TRUEevaluated 39 times by 1 test
Evaluated by:
  • realpath
FALSEevaluated 23 times by 1 test
Evaluated by:
  • realpath
; ++optind)
23-39
474 ok &= process_path (argv[optind], can_mode);
executed 39 times by 1 test: ok &= process_path (argv[optind], can_mode);
Executed by:
  • realpath
39
475-
476 return
executed 23 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • realpath
ok ?
executed 23 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • realpath
23
477 0
executed 23 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • realpath
23
478 :
executed 23 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • realpath
23
479 1
executed 23 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • realpath
23
480 ;
executed 23 times by 1 test: return ok ? 0 : 1 ;
Executed by:
  • realpath
23
481}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2