Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/sort.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||||||||||||||||||||||||||
2 | - | |||||||||||||||||||||||||||||||||||||||||||
3 | - | |||||||||||||||||||||||||||||||||||||||||||
4 | enum { SUBTHREAD_LINES_HEURISTIC = 128 * 1024 }; | - | ||||||||||||||||||||||||||||||||||||||||||
5 | _Static_assert (4 <= SUBTHREAD_LINES_HEURISTIC, "verify (" "4 <= SUBTHREAD_LINES_HEURISTIC" ")"); | - | ||||||||||||||||||||||||||||||||||||||||||
6 | - | |||||||||||||||||||||||||||||||||||||||||||
7 | - | |||||||||||||||||||||||||||||||||||||||||||
8 | - | |||||||||||||||||||||||||||||||||||||||||||
9 | enum { DEFAULT_MAX_THREADS = 8 }; | - | ||||||||||||||||||||||||||||||||||||||||||
10 | - | |||||||||||||||||||||||||||||||||||||||||||
11 | - | |||||||||||||||||||||||||||||||||||||||||||
12 | enum | - | ||||||||||||||||||||||||||||||||||||||||||
13 | { | - | ||||||||||||||||||||||||||||||||||||||||||
14 | - | |||||||||||||||||||||||||||||||||||||||||||
15 | - | |||||||||||||||||||||||||||||||||||||||||||
16 | SORT_OUT_OF_ORDER = 1, | - | ||||||||||||||||||||||||||||||||||||||||||
17 | - | |||||||||||||||||||||||||||||||||||||||||||
18 | - | |||||||||||||||||||||||||||||||||||||||||||
19 | - | |||||||||||||||||||||||||||||||||||||||||||
20 | SORT_FAILURE = 2 | - | ||||||||||||||||||||||||||||||||||||||||||
21 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
22 | - | |||||||||||||||||||||||||||||||||||||||||||
23 | enum | - | ||||||||||||||||||||||||||||||||||||||||||
24 | { | - | ||||||||||||||||||||||||||||||||||||||||||
25 | - | |||||||||||||||||||||||||||||||||||||||||||
26 | - | |||||||||||||||||||||||||||||||||||||||||||
27 | - | |||||||||||||||||||||||||||||||||||||||||||
28 | - | |||||||||||||||||||||||||||||||||||||||||||
29 | MAX_FORK_TRIES_COMPRESS = 4, | - | ||||||||||||||||||||||||||||||||||||||||||
30 | - | |||||||||||||||||||||||||||||||||||||||||||
31 | - | |||||||||||||||||||||||||||||||||||||||||||
32 | - | |||||||||||||||||||||||||||||||||||||||||||
33 | - | |||||||||||||||||||||||||||||||||||||||||||
34 | MAX_FORK_TRIES_DECOMPRESS = 9 | - | ||||||||||||||||||||||||||||||||||||||||||
35 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
36 | - | |||||||||||||||||||||||||||||||||||||||||||
37 | enum | - | ||||||||||||||||||||||||||||||||||||||||||
38 | { | - | ||||||||||||||||||||||||||||||||||||||||||
39 | - | |||||||||||||||||||||||||||||||||||||||||||
40 | MERGE_END = 0, | - | ||||||||||||||||||||||||||||||||||||||||||
41 | - | |||||||||||||||||||||||||||||||||||||||||||
42 | - | |||||||||||||||||||||||||||||||||||||||||||
43 | MERGE_ROOT = 1 | - | ||||||||||||||||||||||||||||||||||||||||||
44 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
45 | - | |||||||||||||||||||||||||||||||||||||||||||
46 | - | |||||||||||||||||||||||||||||||||||||||||||
47 | static int decimal_point; | - | ||||||||||||||||||||||||||||||||||||||||||
48 | - | |||||||||||||||||||||||||||||||||||||||||||
49 | - | |||||||||||||||||||||||||||||||||||||||||||
50 | static int thousands_sep; | - | ||||||||||||||||||||||||||||||||||||||||||
51 | - | |||||||||||||||||||||||||||||||||||||||||||
52 | - | |||||||||||||||||||||||||||||||||||||||||||
53 | static | - | ||||||||||||||||||||||||||||||||||||||||||
54 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
55 | hard_LC_COLLATE; | - | ||||||||||||||||||||||||||||||||||||||||||
56 | - | |||||||||||||||||||||||||||||||||||||||||||
57 | static | - | ||||||||||||||||||||||||||||||||||||||||||
58 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
59 | hard_LC_TIME; | - | ||||||||||||||||||||||||||||||||||||||||||
60 | - | |||||||||||||||||||||||||||||||||||||||||||
61 | - | |||||||||||||||||||||||||||||||||||||||||||
62 | - | |||||||||||||||||||||||||||||||||||||||||||
63 | - | |||||||||||||||||||||||||||||||||||||||||||
64 | - | |||||||||||||||||||||||||||||||||||||||||||
65 | enum blanktype { bl_start, bl_end, bl_both }; | - | ||||||||||||||||||||||||||||||||||||||||||
66 | - | |||||||||||||||||||||||||||||||||||||||||||
67 | - | |||||||||||||||||||||||||||||||||||||||||||
68 | static char eolchar = '\n'; | - | ||||||||||||||||||||||||||||||||||||||||||
69 | - | |||||||||||||||||||||||||||||||||||||||||||
70 | - | |||||||||||||||||||||||||||||||||||||||||||
71 | struct line | - | ||||||||||||||||||||||||||||||||||||||||||
72 | { | - | ||||||||||||||||||||||||||||||||||||||||||
73 | char *text; | - | ||||||||||||||||||||||||||||||||||||||||||
74 | size_t length; | - | ||||||||||||||||||||||||||||||||||||||||||
75 | char *keybeg; | - | ||||||||||||||||||||||||||||||||||||||||||
76 | char *keylim; | - | ||||||||||||||||||||||||||||||||||||||||||
77 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
78 | - | |||||||||||||||||||||||||||||||||||||||||||
79 | - | |||||||||||||||||||||||||||||||||||||||||||
80 | struct buffer | - | ||||||||||||||||||||||||||||||||||||||||||
81 | { | - | ||||||||||||||||||||||||||||||||||||||||||
82 | char *buf; | - | ||||||||||||||||||||||||||||||||||||||||||
83 | - | |||||||||||||||||||||||||||||||||||||||||||
84 | - | |||||||||||||||||||||||||||||||||||||||||||
85 | - | |||||||||||||||||||||||||||||||||||||||||||
86 | - | |||||||||||||||||||||||||||||||||||||||||||
87 | size_t used; | - | ||||||||||||||||||||||||||||||||||||||||||
88 | size_t nlines; | - | ||||||||||||||||||||||||||||||||||||||||||
89 | size_t alloc; | - | ||||||||||||||||||||||||||||||||||||||||||
90 | size_t left; | - | ||||||||||||||||||||||||||||||||||||||||||
91 | size_t line_bytes; | - | ||||||||||||||||||||||||||||||||||||||||||
92 | - | |||||||||||||||||||||||||||||||||||||||||||
93 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
94 | eof; | - | ||||||||||||||||||||||||||||||||||||||||||
95 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
96 | - | |||||||||||||||||||||||||||||||||||||||||||
97 | - | |||||||||||||||||||||||||||||||||||||||||||
98 | struct keyfield | - | ||||||||||||||||||||||||||||||||||||||||||
99 | { | - | ||||||||||||||||||||||||||||||||||||||||||
100 | size_t sword; | - | ||||||||||||||||||||||||||||||||||||||||||
101 | size_t schar; | - | ||||||||||||||||||||||||||||||||||||||||||
102 | size_t eword; | - | ||||||||||||||||||||||||||||||||||||||||||
103 | size_t echar; | - | ||||||||||||||||||||||||||||||||||||||||||
104 | - | |||||||||||||||||||||||||||||||||||||||||||
105 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
106 | const *ignore; | - | ||||||||||||||||||||||||||||||||||||||||||
107 | char const *translate; | - | ||||||||||||||||||||||||||||||||||||||||||
108 | - | |||||||||||||||||||||||||||||||||||||||||||
109 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
110 | skipsblanks; | - | ||||||||||||||||||||||||||||||||||||||||||
111 | - | |||||||||||||||||||||||||||||||||||||||||||
112 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
113 | skipeblanks; | - | ||||||||||||||||||||||||||||||||||||||||||
114 | - | |||||||||||||||||||||||||||||||||||||||||||
115 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
116 | numeric; | - | ||||||||||||||||||||||||||||||||||||||||||
117 | - | |||||||||||||||||||||||||||||||||||||||||||
118 | - | |||||||||||||||||||||||||||||||||||||||||||
119 | - | |||||||||||||||||||||||||||||||||||||||||||
120 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
121 | random; | - | ||||||||||||||||||||||||||||||||||||||||||
122 | - | |||||||||||||||||||||||||||||||||||||||||||
123 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
124 | general_numeric; | - | ||||||||||||||||||||||||||||||||||||||||||
125 | - | |||||||||||||||||||||||||||||||||||||||||||
126 | - | |||||||||||||||||||||||||||||||||||||||||||
127 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
128 | human_numeric; | - | ||||||||||||||||||||||||||||||||||||||||||
129 | - | |||||||||||||||||||||||||||||||||||||||||||
130 | - | |||||||||||||||||||||||||||||||||||||||||||
131 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
132 | month; | - | ||||||||||||||||||||||||||||||||||||||||||
133 | - | |||||||||||||||||||||||||||||||||||||||||||
134 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
135 | reverse; | - | ||||||||||||||||||||||||||||||||||||||||||
136 | - | |||||||||||||||||||||||||||||||||||||||||||
137 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
138 | version; | - | ||||||||||||||||||||||||||||||||||||||||||
139 | - | |||||||||||||||||||||||||||||||||||||||||||
140 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
141 | traditional_used; | - | ||||||||||||||||||||||||||||||||||||||||||
142 | struct keyfield *next; | - | ||||||||||||||||||||||||||||||||||||||||||
143 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
144 | - | |||||||||||||||||||||||||||||||||||||||||||
145 | struct month | - | ||||||||||||||||||||||||||||||||||||||||||
146 | { | - | ||||||||||||||||||||||||||||||||||||||||||
147 | char const *name; | - | ||||||||||||||||||||||||||||||||||||||||||
148 | int val; | - | ||||||||||||||||||||||||||||||||||||||||||
149 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
150 | - | |||||||||||||||||||||||||||||||||||||||||||
151 | - | |||||||||||||||||||||||||||||||||||||||||||
152 | struct merge_node | - | ||||||||||||||||||||||||||||||||||||||||||
153 | { | - | ||||||||||||||||||||||||||||||||||||||||||
154 | struct line *lo; | - | ||||||||||||||||||||||||||||||||||||||||||
155 | struct line *hi; | - | ||||||||||||||||||||||||||||||||||||||||||
156 | struct line *end_lo; | - | ||||||||||||||||||||||||||||||||||||||||||
157 | struct line *end_hi; | - | ||||||||||||||||||||||||||||||||||||||||||
158 | struct line **dest; | - | ||||||||||||||||||||||||||||||||||||||||||
159 | size_t nlo; | - | ||||||||||||||||||||||||||||||||||||||||||
160 | size_t nhi; | - | ||||||||||||||||||||||||||||||||||||||||||
161 | struct merge_node *parent; | - | ||||||||||||||||||||||||||||||||||||||||||
162 | struct merge_node *lo_child; | - | ||||||||||||||||||||||||||||||||||||||||||
163 | struct merge_node *hi_child; | - | ||||||||||||||||||||||||||||||||||||||||||
164 | unsigned int level; | - | ||||||||||||||||||||||||||||||||||||||||||
165 | - | |||||||||||||||||||||||||||||||||||||||||||
166 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
167 | queued; | - | ||||||||||||||||||||||||||||||||||||||||||
168 | pthread_mutex_t lock; | - | ||||||||||||||||||||||||||||||||||||||||||
169 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
170 | - | |||||||||||||||||||||||||||||||||||||||||||
171 | - | |||||||||||||||||||||||||||||||||||||||||||
172 | struct merge_node_queue | - | ||||||||||||||||||||||||||||||||||||||||||
173 | { | - | ||||||||||||||||||||||||||||||||||||||||||
174 | struct heap *priority_queue; | - | ||||||||||||||||||||||||||||||||||||||||||
175 | pthread_mutex_t mutex; | - | ||||||||||||||||||||||||||||||||||||||||||
176 | pthread_cond_t cond; | - | ||||||||||||||||||||||||||||||||||||||||||
177 | - | |||||||||||||||||||||||||||||||||||||||||||
178 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
179 | - | |||||||||||||||||||||||||||||||||||||||||||
180 | - | |||||||||||||||||||||||||||||||||||||||||||
181 | static struct line saved_line; | - | ||||||||||||||||||||||||||||||||||||||||||
182 | static | - | ||||||||||||||||||||||||||||||||||||||||||
183 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
184 | blanks[( | - | ||||||||||||||||||||||||||||||||||||||||||
185 | (0x7f * 2 + 1) | - | ||||||||||||||||||||||||||||||||||||||||||
186 | + 1)]; | - | ||||||||||||||||||||||||||||||||||||||||||
187 | - | |||||||||||||||||||||||||||||||||||||||||||
188 | - | |||||||||||||||||||||||||||||||||||||||||||
189 | static | - | ||||||||||||||||||||||||||||||||||||||||||
190 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
191 | nonprinting[( | - | ||||||||||||||||||||||||||||||||||||||||||
192 | (0x7f * 2 + 1) | - | ||||||||||||||||||||||||||||||||||||||||||
193 | + 1)]; | - | ||||||||||||||||||||||||||||||||||||||||||
194 | - | |||||||||||||||||||||||||||||||||||||||||||
195 | - | |||||||||||||||||||||||||||||||||||||||||||
196 | static | - | ||||||||||||||||||||||||||||||||||||||||||
197 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
198 | nondictionary[( | - | ||||||||||||||||||||||||||||||||||||||||||
199 | (0x7f * 2 + 1) | - | ||||||||||||||||||||||||||||||||||||||||||
200 | + 1)]; | - | ||||||||||||||||||||||||||||||||||||||||||
201 | - | |||||||||||||||||||||||||||||||||||||||||||
202 | - | |||||||||||||||||||||||||||||||||||||||||||
203 | static char fold_toupper[( | - | ||||||||||||||||||||||||||||||||||||||||||
204 | (0x7f * 2 + 1) | - | ||||||||||||||||||||||||||||||||||||||||||
205 | + 1)]; | - | ||||||||||||||||||||||||||||||||||||||||||
206 | - | |||||||||||||||||||||||||||||||||||||||||||
207 | - | |||||||||||||||||||||||||||||||||||||||||||
208 | - | |||||||||||||||||||||||||||||||||||||||||||
209 | - | |||||||||||||||||||||||||||||||||||||||||||
210 | - | |||||||||||||||||||||||||||||||||||||||||||
211 | static struct month monthtab[] = | - | ||||||||||||||||||||||||||||||||||||||||||
212 | { | - | ||||||||||||||||||||||||||||||||||||||||||
213 | {"APR", 4}, | - | ||||||||||||||||||||||||||||||||||||||||||
214 | {"AUG", 8}, | - | ||||||||||||||||||||||||||||||||||||||||||
215 | {"DEC", 12}, | - | ||||||||||||||||||||||||||||||||||||||||||
216 | {"FEB", 2}, | - | ||||||||||||||||||||||||||||||||||||||||||
217 | {"JAN", 1}, | - | ||||||||||||||||||||||||||||||||||||||||||
218 | {"JUL", 7}, | - | ||||||||||||||||||||||||||||||||||||||||||
219 | {"JUN", 6}, | - | ||||||||||||||||||||||||||||||||||||||||||
220 | {"MAR", 3}, | - | ||||||||||||||||||||||||||||||||||||||||||
221 | {"MAY", 5}, | - | ||||||||||||||||||||||||||||||||||||||||||
222 | {"NOV", 11}, | - | ||||||||||||||||||||||||||||||||||||||||||
223 | {"OCT", 10}, | - | ||||||||||||||||||||||||||||||||||||||||||
224 | {"SEP", 9} | - | ||||||||||||||||||||||||||||||||||||||||||
225 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
226 | static size_t merge_buffer_size = | - | ||||||||||||||||||||||||||||||||||||||||||
227 | ((( | - | ||||||||||||||||||||||||||||||||||||||||||
228 | (2 + sizeof (struct line)) | - | ||||||||||||||||||||||||||||||||||||||||||
229 | )>( | - | ||||||||||||||||||||||||||||||||||||||||||
230 | 256 * 1024 | - | ||||||||||||||||||||||||||||||||||||||||||
231 | ))?( | - | ||||||||||||||||||||||||||||||||||||||||||
232 | (2 + sizeof (struct line)) | - | ||||||||||||||||||||||||||||||||||||||||||
233 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
234 | 256 * 1024 | - | ||||||||||||||||||||||||||||||||||||||||||
235 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
236 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
237 | - | |||||||||||||||||||||||||||||||||||||||||||
238 | - | |||||||||||||||||||||||||||||||||||||||||||
239 | - | |||||||||||||||||||||||||||||||||||||||||||
240 | static size_t sort_size; | - | ||||||||||||||||||||||||||||||||||||||||||
241 | static char const **temp_dirs; | - | ||||||||||||||||||||||||||||||||||||||||||
242 | - | |||||||||||||||||||||||||||||||||||||||||||
243 | - | |||||||||||||||||||||||||||||||||||||||||||
244 | static size_t temp_dir_count; | - | ||||||||||||||||||||||||||||||||||||||||||
245 | - | |||||||||||||||||||||||||||||||||||||||||||
246 | - | |||||||||||||||||||||||||||||||||||||||||||
247 | static size_t temp_dir_alloc; | - | ||||||||||||||||||||||||||||||||||||||||||
248 | - | |||||||||||||||||||||||||||||||||||||||||||
249 | - | |||||||||||||||||||||||||||||||||||||||||||
250 | static | - | ||||||||||||||||||||||||||||||||||||||||||
251 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
252 | reverse; | - | ||||||||||||||||||||||||||||||||||||||||||
253 | - | |||||||||||||||||||||||||||||||||||||||||||
254 | - | |||||||||||||||||||||||||||||||||||||||||||
255 | - | |||||||||||||||||||||||||||||||||||||||||||
256 | - | |||||||||||||||||||||||||||||||||||||||||||
257 | static | - | ||||||||||||||||||||||||||||||||||||||||||
258 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
259 | stable; | - | ||||||||||||||||||||||||||||||||||||||||||
260 | - | |||||||||||||||||||||||||||||||||||||||||||
261 | - | |||||||||||||||||||||||||||||||||||||||||||
262 | enum { TAB_DEFAULT = 0x7f + 1 }; | - | ||||||||||||||||||||||||||||||||||||||||||
263 | - | |||||||||||||||||||||||||||||||||||||||||||
264 | - | |||||||||||||||||||||||||||||||||||||||||||
265 | - | |||||||||||||||||||||||||||||||||||||||||||
266 | - | |||||||||||||||||||||||||||||||||||||||||||
267 | static int tab = TAB_DEFAULT; | - | ||||||||||||||||||||||||||||||||||||||||||
268 | - | |||||||||||||||||||||||||||||||||||||||||||
269 | - | |||||||||||||||||||||||||||||||||||||||||||
270 | - | |||||||||||||||||||||||||||||||||||||||||||
271 | static | - | ||||||||||||||||||||||||||||||||||||||||||
272 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
273 | unique; | - | ||||||||||||||||||||||||||||||||||||||||||
274 | - | |||||||||||||||||||||||||||||||||||||||||||
275 | - | |||||||||||||||||||||||||||||||||||||||||||
276 | static | - | ||||||||||||||||||||||||||||||||||||||||||
277 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
278 | have_read_stdin; | - | ||||||||||||||||||||||||||||||||||||||||||
279 | - | |||||||||||||||||||||||||||||||||||||||||||
280 | - | |||||||||||||||||||||||||||||||||||||||||||
281 | static struct keyfield *keylist; | - | ||||||||||||||||||||||||||||||||||||||||||
282 | - | |||||||||||||||||||||||||||||||||||||||||||
283 | - | |||||||||||||||||||||||||||||||||||||||||||
284 | static char const *compress_program; | - | ||||||||||||||||||||||||||||||||||||||||||
285 | - | |||||||||||||||||||||||||||||||||||||||||||
286 | - | |||||||||||||||||||||||||||||||||||||||||||
287 | static | - | ||||||||||||||||||||||||||||||||||||||||||
288 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
289 | debug; | - | ||||||||||||||||||||||||||||||||||||||||||
290 | - | |||||||||||||||||||||||||||||||||||||||||||
291 | - | |||||||||||||||||||||||||||||||||||||||||||
292 | - | |||||||||||||||||||||||||||||||||||||||||||
293 | static unsigned int nmerge = 16; | - | ||||||||||||||||||||||||||||||||||||||||||
294 | - | |||||||||||||||||||||||||||||||||||||||||||
295 | - | |||||||||||||||||||||||||||||||||||||||||||
296 | - | |||||||||||||||||||||||||||||||||||||||||||
297 | - | |||||||||||||||||||||||||||||||||||||||||||
298 | - | |||||||||||||||||||||||||||||||||||||||||||
299 | static void async_safe_die (int, const char *) __attribute__ ((__noreturn__)); | - | ||||||||||||||||||||||||||||||||||||||||||
300 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
301 | async_safe_die (int errnum, const char *errstr) | - | ||||||||||||||||||||||||||||||||||||||||||
302 | { | - | ||||||||||||||||||||||||||||||||||||||||||
303 | (__extension__ ({ __typeof__ (write ( | - | ||||||||||||||||||||||||||||||||||||||||||
304 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||
305 | , errstr, strlen (errstr))) __x = (write ( | - | ||||||||||||||||||||||||||||||||||||||||||
306 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||
307 | , errstr, strlen (errstr))); (void) __x; })); | - | ||||||||||||||||||||||||||||||||||||||||||
308 | - | |||||||||||||||||||||||||||||||||||||||||||
309 | - | |||||||||||||||||||||||||||||||||||||||||||
310 | - | |||||||||||||||||||||||||||||||||||||||||||
311 | - | |||||||||||||||||||||||||||||||||||||||||||
312 | - | |||||||||||||||||||||||||||||||||||||||||||
313 | - | |||||||||||||||||||||||||||||||||||||||||||
314 | if (errnum
| 0 | ||||||||||||||||||||||||||||||||||||||||||
315 | { | - | ||||||||||||||||||||||||||||||||||||||||||
316 | char errbuf[((((((sizeof (errnum) * 8) - (! ((__typeof__ (errnum)) 0 < (__typeof__ (errnum)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (errnum)) 0 < (__typeof__ (errnum)) -1))) + 1)]; | - | ||||||||||||||||||||||||||||||||||||||||||
317 | char *p = inttostr (errnum, errbuf); | - | ||||||||||||||||||||||||||||||||||||||||||
318 | (__extension__ ({ __typeof__ (write ( | - | ||||||||||||||||||||||||||||||||||||||||||
319 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||
320 | , ": errno ", 8)) __x = (write ( | - | ||||||||||||||||||||||||||||||||||||||||||
321 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||
322 | , ": errno ", 8)); (void) __x; })); | - | ||||||||||||||||||||||||||||||||||||||||||
323 | (__extension__ ({ __typeof__ (write ( | - | ||||||||||||||||||||||||||||||||||||||||||
324 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||
325 | , p, strlen (p))) __x = (write ( | - | ||||||||||||||||||||||||||||||||||||||||||
326 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||
327 | , p, strlen (p))); (void) __x; })); | - | ||||||||||||||||||||||||||||||||||||||||||
328 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
329 | - | |||||||||||||||||||||||||||||||||||||||||||
330 | (__extension__ ({ __typeof__ (write ( | - | ||||||||||||||||||||||||||||||||||||||||||
331 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||
332 | , "\n", 1)) __x = (write ( | - | ||||||||||||||||||||||||||||||||||||||||||
333 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||
334 | , "\n", 1)); (void) __x; })); | - | ||||||||||||||||||||||||||||||||||||||||||
335 | - | |||||||||||||||||||||||||||||||||||||||||||
336 | _exit (SORT_FAILURE); | - | ||||||||||||||||||||||||||||||||||||||||||
337 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
338 | - | |||||||||||||||||||||||||||||||||||||||||||
339 | - | |||||||||||||||||||||||||||||||||||||||||||
340 | - | |||||||||||||||||||||||||||||||||||||||||||
341 | - | |||||||||||||||||||||||||||||||||||||||||||
342 | static void sort_die (char const *, char const *) __attribute__ ((__noreturn__)); | - | ||||||||||||||||||||||||||||||||||||||||||
343 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
344 | sort_die (char const *message, char const *file) | - | ||||||||||||||||||||||||||||||||||||||||||
345 | { | - | ||||||||||||||||||||||||||||||||||||||||||
346 | ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), \"%s: %s\", message, quotearg_n_style_colon (0, shell_escape_quoting_style, file ? file : dcgettext (((void *)0), \"standard output\", 5))), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, | - | ||||||||||||||||||||||||||||||||||||||||||
347 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
348 | , "%s: %s", message, quotearg_n_style_colon (0, shell_escape_quoting_style, file ? file : | - | ||||||||||||||||||||||||||||||||||||||||||
349 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
350 | "standard output" | - | ||||||||||||||||||||||||||||||||||||||||||
351 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
352 | )), (( | - | ||||||||||||||||||||||||||||||||||||||||||
353 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
354 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, | - | ||||||||||||||||||||||||||||||||||||||||||
355 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
356 | , "%s: %s", message, quotearg_n_style_colon (0, shell_escape_quoting_style, file ? file : | - | ||||||||||||||||||||||||||||||||||||||||||
357 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
358 | "standard output" | - | ||||||||||||||||||||||||||||||||||||||||||
359 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
360 | )), (( | - | ||||||||||||||||||||||||||||||||||||||||||
361 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
362 | ) ? (void) 0 : __builtin_unreachable ())))) | - | ||||||||||||||||||||||||||||||||||||||||||
363 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
364 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
365 | - | |||||||||||||||||||||||||||||||||||||||||||
366 | void | - | ||||||||||||||||||||||||||||||||||||||||||
367 | usage (int status) | - | ||||||||||||||||||||||||||||||||||||||||||
368 | { | - | ||||||||||||||||||||||||||||||||||||||||||
369 | if (status !=
| 5-24 | ||||||||||||||||||||||||||||||||||||||||||
370 | 0
| 5-24 | ||||||||||||||||||||||||||||||||||||||||||
371 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
372 | do { fprintf ( | - | ||||||||||||||||||||||||||||||||||||||||||
373 | stderr | - | ||||||||||||||||||||||||||||||||||||||||||
374 | , | - | ||||||||||||||||||||||||||||||||||||||||||
375 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
376 | "Try '%s --help' for more information.\n" | - | ||||||||||||||||||||||||||||||||||||||||||
377 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
378 | , program_name); } executed 5 times by 1 test: while (0);end of block Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
379 | else | - | ||||||||||||||||||||||||||||||||||||||||||
380 | { | - | ||||||||||||||||||||||||||||||||||||||||||
381 | printf ( | - | ||||||||||||||||||||||||||||||||||||||||||
382 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
383 | "Usage: %s [OPTION]... [FILE]...\n or: %s [OPTION]... --files0-from=F\n" | - | ||||||||||||||||||||||||||||||||||||||||||
384 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
385 | - | |||||||||||||||||||||||||||||||||||||||||||
386 | - | |||||||||||||||||||||||||||||||||||||||||||
387 | - | |||||||||||||||||||||||||||||||||||||||||||
388 | , | - | ||||||||||||||||||||||||||||||||||||||||||
389 | program_name, program_name); | - | ||||||||||||||||||||||||||||||||||||||||||
390 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
391 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
392 | "Write sorted concatenation of all FILE(s) to standard output.\n" | - | ||||||||||||||||||||||||||||||||||||||||||
393 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
394 | , | - | ||||||||||||||||||||||||||||||||||||||||||
395 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
396 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
397 | - | |||||||||||||||||||||||||||||||||||||||||||
398 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
399 | - | |||||||||||||||||||||||||||||||||||||||||||
400 | emit_stdin_note (); | - | ||||||||||||||||||||||||||||||||||||||||||
401 | emit_mandatory_arg_note (); | - | ||||||||||||||||||||||||||||||||||||||||||
402 | - | |||||||||||||||||||||||||||||||||||||||||||
403 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
404 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
405 | "Ordering options:\n\n" | - | ||||||||||||||||||||||||||||||||||||||||||
406 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
407 | , | - | ||||||||||||||||||||||||||||||||||||||||||
408 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
409 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
410 | - | |||||||||||||||||||||||||||||||||||||||||||
411 | - | |||||||||||||||||||||||||||||||||||||||||||
412 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
413 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
414 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
415 | " -b, --ignore-leading-blanks ignore leading blanks\n -d, --dictionary-order consider only blanks and alphanumeric characters\n -f, --ignore-case fold lower case to upper case characters\n" | - | ||||||||||||||||||||||||||||||||||||||||||
416 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
417 | , | - | ||||||||||||||||||||||||||||||||||||||||||
418 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
419 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
420 | - | |||||||||||||||||||||||||||||||||||||||||||
421 | - | |||||||||||||||||||||||||||||||||||||||||||
422 | - | |||||||||||||||||||||||||||||||||||||||||||
423 | - | |||||||||||||||||||||||||||||||||||||||||||
424 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
425 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
426 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
427 | " -g, --general-numeric-sort compare according to general numerical value\n -i, --ignore-nonprinting consider only printable characters\n -M, --month-sort compare (unknown) < 'JAN' < ... < 'DEC'\n" | - | ||||||||||||||||||||||||||||||||||||||||||
428 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
429 | , | - | ||||||||||||||||||||||||||||||||||||||||||
430 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
431 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
432 | - | |||||||||||||||||||||||||||||||||||||||||||
433 | - | |||||||||||||||||||||||||||||||||||||||||||
434 | - | |||||||||||||||||||||||||||||||||||||||||||
435 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
436 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
437 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
438 | " -h, --human-numeric-sort compare human readable numbers (e.g., 2K 1G)\n" | - | ||||||||||||||||||||||||||||||||||||||||||
439 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
440 | , | - | ||||||||||||||||||||||||||||||||||||||||||
441 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
442 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
443 | - | |||||||||||||||||||||||||||||||||||||||||||
444 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
445 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
446 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
447 | " -n, --numeric-sort compare according to string numerical value\n -R, --random-sort shuffle, but group identical keys. See shuf(1)\n --random-source=FILE get random bytes from FILE\n -r, --reverse reverse the result of comparisons\n" | - | ||||||||||||||||||||||||||||||||||||||||||
448 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
449 | , | - | ||||||||||||||||||||||||||||||||||||||||||
450 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
451 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
452 | - | |||||||||||||||||||||||||||||||||||||||||||
453 | - | |||||||||||||||||||||||||||||||||||||||||||
454 | - | |||||||||||||||||||||||||||||||||||||||||||
455 | - | |||||||||||||||||||||||||||||||||||||||||||
456 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
457 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
458 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
459 | " --sort=WORD sort according to WORD:\n general-numeric -g, human-numeric -h, month -M,\n numeric -n, random -R, version -V\n -V, --version-sort natural sort of (version) numbers within text\n\n" | - | ||||||||||||||||||||||||||||||||||||||||||
460 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
461 | , | - | ||||||||||||||||||||||||||||||||||||||||||
462 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
463 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
464 | - | |||||||||||||||||||||||||||||||||||||||||||
465 | - | |||||||||||||||||||||||||||||||||||||||||||
466 | - | |||||||||||||||||||||||||||||||||||||||||||
467 | - | |||||||||||||||||||||||||||||||||||||||||||
468 | - | |||||||||||||||||||||||||||||||||||||||||||
469 | - | |||||||||||||||||||||||||||||||||||||||||||
470 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
471 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
472 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
473 | "Other options:\n\n" | - | ||||||||||||||||||||||||||||||||||||||||||
474 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
475 | , | - | ||||||||||||||||||||||||||||||||||||||||||
476 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
477 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
478 | - | |||||||||||||||||||||||||||||||||||||||||||
479 | - | |||||||||||||||||||||||||||||||||||||||||||
480 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
481 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
482 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
483 | " --batch-size=NMERGE merge at most NMERGE inputs at once;\n for more use temp files\n" | - | ||||||||||||||||||||||||||||||||||||||||||
484 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
485 | , | - | ||||||||||||||||||||||||||||||||||||||||||
486 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
487 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
488 | - | |||||||||||||||||||||||||||||||||||||||||||
489 | - | |||||||||||||||||||||||||||||||||||||||||||
490 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
491 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
492 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
493 | " -c, --check, --check=diagnose-first check for sorted input; do not sort\n -C, --check=quiet, --check=silent like -c, but do not report first bad line\n --compress-program=PROG compress temporaries with PROG;\n decompress them with PROG -d\n" | - | ||||||||||||||||||||||||||||||||||||||||||
494 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
495 | , | - | ||||||||||||||||||||||||||||||||||||||||||
496 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
497 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
498 | - | |||||||||||||||||||||||||||||||||||||||||||
499 | - | |||||||||||||||||||||||||||||||||||||||||||
500 | - | |||||||||||||||||||||||||||||||||||||||||||
501 | - | |||||||||||||||||||||||||||||||||||||||||||
502 | - | |||||||||||||||||||||||||||||||||||||||||||
503 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
504 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
505 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
506 | " --debug annotate the part of the line used to sort,\n and warn about questionable usage to stderr\n --files0-from=F read input from the files specified by\n NUL-terminated names in file F;\n If F is - then read names from standard input\n" | - | ||||||||||||||||||||||||||||||||||||||||||
507 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
508 | , | - | ||||||||||||||||||||||||||||||||||||||||||
509 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
510 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
511 | - | |||||||||||||||||||||||||||||||||||||||||||
512 | - | |||||||||||||||||||||||||||||||||||||||||||
513 | - | |||||||||||||||||||||||||||||||||||||||||||
514 | - | |||||||||||||||||||||||||||||||||||||||||||
515 | - | |||||||||||||||||||||||||||||||||||||||||||
516 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
517 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
518 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
519 | " -k, --key=KEYDEF sort via a key; KEYDEF gives location and type\n -m, --merge merge already sorted files; do not sort\n" | - | ||||||||||||||||||||||||||||||||||||||||||
520 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
521 | , | - | ||||||||||||||||||||||||||||||||||||||||||
522 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
523 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
524 | - | |||||||||||||||||||||||||||||||||||||||||||
525 | - | |||||||||||||||||||||||||||||||||||||||||||
526 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
527 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
528 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
529 | " -o, --output=FILE write result to FILE instead of standard output\n -s, --stable stabilize sort by disabling last-resort comparison\n -S, --buffer-size=SIZE use SIZE for main memory buffer\n" | - | ||||||||||||||||||||||||||||||||||||||||||
530 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
531 | , | - | ||||||||||||||||||||||||||||||||||||||||||
532 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
533 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
534 | - | |||||||||||||||||||||||||||||||||||||||||||
535 | - | |||||||||||||||||||||||||||||||||||||||||||
536 | - | |||||||||||||||||||||||||||||||||||||||||||
537 | - | |||||||||||||||||||||||||||||||||||||||||||
538 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
539 | printf ( | - | ||||||||||||||||||||||||||||||||||||||||||
540 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
541 | " -t, --field-separator=SEP use SEP instead of non-blank to blank transition\n -T, --temporary-directory=DIR use DIR for temporaries, not $TMPDIR or %s;\n multiple options specify multiple directories\n --parallel=N change the number of sorts run concurrently to N\n -u, --unique with -c, check for strict ordering;\n without -c, output only the first of an equal run\n" | - | ||||||||||||||||||||||||||||||||||||||||||
542 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
543 | - | |||||||||||||||||||||||||||||||||||||||||||
544 | - | |||||||||||||||||||||||||||||||||||||||||||
545 | - | |||||||||||||||||||||||||||||||||||||||||||
546 | - | |||||||||||||||||||||||||||||||||||||||||||
547 | - | |||||||||||||||||||||||||||||||||||||||||||
548 | - | |||||||||||||||||||||||||||||||||||||||||||
549 | - | |||||||||||||||||||||||||||||||||||||||||||
550 | - | |||||||||||||||||||||||||||||||||||||||||||
551 | , "/tmp"); | - | ||||||||||||||||||||||||||||||||||||||||||
552 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
553 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
554 | " -z, --zero-terminated line delimiter is NUL, not newline\n" | - | ||||||||||||||||||||||||||||||||||||||||||
555 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
556 | , | - | ||||||||||||||||||||||||||||||||||||||||||
557 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
558 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
559 | - | |||||||||||||||||||||||||||||||||||||||||||
560 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
561 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
562 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
563 | " --help display this help and exit\n" | - | ||||||||||||||||||||||||||||||||||||||||||
564 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
565 | , | - | ||||||||||||||||||||||||||||||||||||||||||
566 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
567 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
568 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
569 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
570 | " --version output version information and exit\n" | - | ||||||||||||||||||||||||||||||||||||||||||
571 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
572 | , | - | ||||||||||||||||||||||||||||||||||||||||||
573 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
574 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
575 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
576 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
577 | "\nKEYDEF is F[.C][OPTS][,F[.C][OPTS]] for start and stop position, where F is a\nfield number and C a character position in the field; both are origin 1, and\nthe stop position defaults to the line's end. If neither -t nor -b is in\neffect, characters in a field are counted from the beginning of the preceding\nwhitespace. OPTS is one or more single-letter ordering options [bdfgiMhnRrV],\nwhich override global ordering options for that key. If no key is given, use\nthe entire line as the key. Use --debug to diagnose incorrect key usage.\n\nSIZE may be followed by the following multiplicative suffixes:\n" | - | ||||||||||||||||||||||||||||||||||||||||||
578 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
579 | , | - | ||||||||||||||||||||||||||||||||||||||||||
580 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
581 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
582 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
583 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||||||||||||||
584 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
585 | "% 1% of memory, b 1, K 1024 (default), and so on for M, G, T, P, E, Z, Y.\n\n*** WARNING ***\nThe locale specified by the environment affects sort order.\nSet LC_ALL=C to get the traditional sort order that uses\nnative byte values.\n" | - | ||||||||||||||||||||||||||||||||||||||||||
586 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
587 | , | - | ||||||||||||||||||||||||||||||||||||||||||
588 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
589 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
590 | - | |||||||||||||||||||||||||||||||||||||||||||
591 | - | |||||||||||||||||||||||||||||||||||||||||||
592 | - | |||||||||||||||||||||||||||||||||||||||||||
593 | - | |||||||||||||||||||||||||||||||||||||||||||
594 | - | |||||||||||||||||||||||||||||||||||||||||||
595 | - | |||||||||||||||||||||||||||||||||||||||||||
596 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
597 | emit_ancillary_info ("sort"); | - | ||||||||||||||||||||||||||||||||||||||||||
598 | } executed 24 times by 1 test: end of block Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||||||||
599 | - | |||||||||||||||||||||||||||||||||||||||||||
600 | exit (status); executed 29 times by 1 test: exit (status); Executed by:
| 29 | ||||||||||||||||||||||||||||||||||||||||||
601 | } | - | ||||||||||||||||||||||||||||||||||||||||||
602 | - | |||||||||||||||||||||||||||||||||||||||||||
603 | - | |||||||||||||||||||||||||||||||||||||||||||
604 | - | |||||||||||||||||||||||||||||||||||||||||||
605 | enum | - | ||||||||||||||||||||||||||||||||||||||||||
606 | { | - | ||||||||||||||||||||||||||||||||||||||||||
607 | CHECK_OPTION = 0x7f + 1, | - | ||||||||||||||||||||||||||||||||||||||||||
608 | COMPRESS_PROGRAM_OPTION, | - | ||||||||||||||||||||||||||||||||||||||||||
609 | DEBUG_PROGRAM_OPTION, | - | ||||||||||||||||||||||||||||||||||||||||||
610 | FILES0_FROM_OPTION, | - | ||||||||||||||||||||||||||||||||||||||||||
611 | NMERGE_OPTION, | - | ||||||||||||||||||||||||||||||||||||||||||
612 | RANDOM_SOURCE_OPTION, | - | ||||||||||||||||||||||||||||||||||||||||||
613 | SORT_OPTION, | - | ||||||||||||||||||||||||||||||||||||||||||
614 | PARALLEL_OPTION | - | ||||||||||||||||||||||||||||||||||||||||||
615 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
616 | - | |||||||||||||||||||||||||||||||||||||||||||
617 | static char const short_options[] = "-bcCdfghik:mMno:rRsS:t:T:uVy:z"; | - | ||||||||||||||||||||||||||||||||||||||||||
618 | - | |||||||||||||||||||||||||||||||||||||||||||
619 | static struct option const long_options[] = | - | ||||||||||||||||||||||||||||||||||||||||||
620 | { | - | ||||||||||||||||||||||||||||||||||||||||||
621 | {"ignore-leading-blanks", | - | ||||||||||||||||||||||||||||||||||||||||||
622 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
623 | , | - | ||||||||||||||||||||||||||||||||||||||||||
624 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
625 | , 'b'}, | - | ||||||||||||||||||||||||||||||||||||||||||
626 | {"check", | - | ||||||||||||||||||||||||||||||||||||||||||
627 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||
628 | , | - | ||||||||||||||||||||||||||||||||||||||||||
629 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
630 | , CHECK_OPTION}, | - | ||||||||||||||||||||||||||||||||||||||||||
631 | {"compress-program", | - | ||||||||||||||||||||||||||||||||||||||||||
632 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
633 | , | - | ||||||||||||||||||||||||||||||||||||||||||
634 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
635 | , COMPRESS_PROGRAM_OPTION}, | - | ||||||||||||||||||||||||||||||||||||||||||
636 | {"debug", | - | ||||||||||||||||||||||||||||||||||||||||||
637 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
638 | , | - | ||||||||||||||||||||||||||||||||||||||||||
639 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
640 | , DEBUG_PROGRAM_OPTION}, | - | ||||||||||||||||||||||||||||||||||||||||||
641 | {"dictionary-order", | - | ||||||||||||||||||||||||||||||||||||||||||
642 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
643 | , | - | ||||||||||||||||||||||||||||||||||||||||||
644 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
645 | , 'd'}, | - | ||||||||||||||||||||||||||||||||||||||||||
646 | {"ignore-case", | - | ||||||||||||||||||||||||||||||||||||||||||
647 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
648 | , | - | ||||||||||||||||||||||||||||||||||||||||||
649 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
650 | , 'f'}, | - | ||||||||||||||||||||||||||||||||||||||||||
651 | {"files0-from", | - | ||||||||||||||||||||||||||||||||||||||||||
652 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
653 | , | - | ||||||||||||||||||||||||||||||||||||||||||
654 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
655 | , FILES0_FROM_OPTION}, | - | ||||||||||||||||||||||||||||||||||||||||||
656 | {"general-numeric-sort", | - | ||||||||||||||||||||||||||||||||||||||||||
657 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
658 | , | - | ||||||||||||||||||||||||||||||||||||||||||
659 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
660 | , 'g'}, | - | ||||||||||||||||||||||||||||||||||||||||||
661 | {"ignore-nonprinting", | - | ||||||||||||||||||||||||||||||||||||||||||
662 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
663 | , | - | ||||||||||||||||||||||||||||||||||||||||||
664 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
665 | , 'i'}, | - | ||||||||||||||||||||||||||||||||||||||||||
666 | {"key", | - | ||||||||||||||||||||||||||||||||||||||||||
667 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
668 | , | - | ||||||||||||||||||||||||||||||||||||||||||
669 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
670 | , 'k'}, | - | ||||||||||||||||||||||||||||||||||||||||||
671 | {"merge", | - | ||||||||||||||||||||||||||||||||||||||||||
672 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
673 | , | - | ||||||||||||||||||||||||||||||||||||||||||
674 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
675 | , 'm'}, | - | ||||||||||||||||||||||||||||||||||||||||||
676 | {"month-sort", | - | ||||||||||||||||||||||||||||||||||||||||||
677 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
678 | , | - | ||||||||||||||||||||||||||||||||||||||||||
679 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
680 | , 'M'}, | - | ||||||||||||||||||||||||||||||||||||||||||
681 | {"numeric-sort", | - | ||||||||||||||||||||||||||||||||||||||||||
682 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
683 | , | - | ||||||||||||||||||||||||||||||||||||||||||
684 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
685 | , 'n'}, | - | ||||||||||||||||||||||||||||||||||||||||||
686 | {"human-numeric-sort", | - | ||||||||||||||||||||||||||||||||||||||||||
687 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
688 | , | - | ||||||||||||||||||||||||||||||||||||||||||
689 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
690 | , 'h'}, | - | ||||||||||||||||||||||||||||||||||||||||||
691 | {"version-sort", | - | ||||||||||||||||||||||||||||||||||||||||||
692 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
693 | , | - | ||||||||||||||||||||||||||||||||||||||||||
694 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
695 | , 'V'}, | - | ||||||||||||||||||||||||||||||||||||||||||
696 | {"random-sort", | - | ||||||||||||||||||||||||||||||||||||||||||
697 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
698 | , | - | ||||||||||||||||||||||||||||||||||||||||||
699 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
700 | , 'R'}, | - | ||||||||||||||||||||||||||||||||||||||||||
701 | {"random-source", | - | ||||||||||||||||||||||||||||||||||||||||||
702 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
703 | , | - | ||||||||||||||||||||||||||||||||||||||||||
704 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
705 | , RANDOM_SOURCE_OPTION}, | - | ||||||||||||||||||||||||||||||||||||||||||
706 | {"sort", | - | ||||||||||||||||||||||||||||||||||||||||||
707 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
708 | , | - | ||||||||||||||||||||||||||||||||||||||||||
709 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
710 | , SORT_OPTION}, | - | ||||||||||||||||||||||||||||||||||||||||||
711 | {"output", | - | ||||||||||||||||||||||||||||||||||||||||||
712 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
713 | , | - | ||||||||||||||||||||||||||||||||||||||||||
714 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
715 | , 'o'}, | - | ||||||||||||||||||||||||||||||||||||||||||
716 | {"reverse", | - | ||||||||||||||||||||||||||||||||||||||||||
717 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
718 | , | - | ||||||||||||||||||||||||||||||||||||||||||
719 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
720 | , 'r'}, | - | ||||||||||||||||||||||||||||||||||||||||||
721 | {"stable", | - | ||||||||||||||||||||||||||||||||||||||||||
722 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
723 | , | - | ||||||||||||||||||||||||||||||||||||||||||
724 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
725 | , 's'}, | - | ||||||||||||||||||||||||||||||||||||||||||
726 | {"batch-size", | - | ||||||||||||||||||||||||||||||||||||||||||
727 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
728 | , | - | ||||||||||||||||||||||||||||||||||||||||||
729 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
730 | , NMERGE_OPTION}, | - | ||||||||||||||||||||||||||||||||||||||||||
731 | {"buffer-size", | - | ||||||||||||||||||||||||||||||||||||||||||
732 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
733 | , | - | ||||||||||||||||||||||||||||||||||||||||||
734 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
735 | , 'S'}, | - | ||||||||||||||||||||||||||||||||||||||||||
736 | {"field-separator", | - | ||||||||||||||||||||||||||||||||||||||||||
737 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
738 | , | - | ||||||||||||||||||||||||||||||||||||||||||
739 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
740 | , 't'}, | - | ||||||||||||||||||||||||||||||||||||||||||
741 | {"temporary-directory", | - | ||||||||||||||||||||||||||||||||||||||||||
742 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
743 | , | - | ||||||||||||||||||||||||||||||||||||||||||
744 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
745 | , 'T'}, | - | ||||||||||||||||||||||||||||||||||||||||||
746 | {"unique", | - | ||||||||||||||||||||||||||||||||||||||||||
747 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
748 | , | - | ||||||||||||||||||||||||||||||||||||||||||
749 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
750 | , 'u'}, | - | ||||||||||||||||||||||||||||||||||||||||||
751 | {"zero-terminated", | - | ||||||||||||||||||||||||||||||||||||||||||
752 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
753 | , | - | ||||||||||||||||||||||||||||||||||||||||||
754 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
755 | , 'z'}, | - | ||||||||||||||||||||||||||||||||||||||||||
756 | {"parallel", | - | ||||||||||||||||||||||||||||||||||||||||||
757 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
758 | , | - | ||||||||||||||||||||||||||||||||||||||||||
759 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
760 | , PARALLEL_OPTION}, | - | ||||||||||||||||||||||||||||||||||||||||||
761 | {"help", | - | ||||||||||||||||||||||||||||||||||||||||||
762 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
763 | , | - | ||||||||||||||||||||||||||||||||||||||||||
764 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
765 | , GETOPT_HELP_CHAR}, | - | ||||||||||||||||||||||||||||||||||||||||||
766 | {"version", | - | ||||||||||||||||||||||||||||||||||||||||||
767 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
768 | , | - | ||||||||||||||||||||||||||||||||||||||||||
769 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
770 | , GETOPT_VERSION_CHAR}, | - | ||||||||||||||||||||||||||||||||||||||||||
771 | { | - | ||||||||||||||||||||||||||||||||||||||||||
772 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
773 | , 0, | - | ||||||||||||||||||||||||||||||||||||||||||
774 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
775 | , 0}, | - | ||||||||||||||||||||||||||||||||||||||||||
776 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
777 | - | |||||||||||||||||||||||||||||||||||||||||||
778 | - | |||||||||||||||||||||||||||||||||||||||||||
779 | - | |||||||||||||||||||||||||||||||||||||||||||
780 | - | |||||||||||||||||||||||||||||||||||||||||||
781 | - | |||||||||||||||||||||||||||||||||||||||||||
782 | - | |||||||||||||||||||||||||||||||||||||||||||
783 | static char const *const check_args[] = | - | ||||||||||||||||||||||||||||||||||||||||||
784 | { | - | ||||||||||||||||||||||||||||||||||||||||||
785 | - | |||||||||||||||||||||||||||||||||||||||||||
786 | "quiet", "silent", "diagnose-first", | - | ||||||||||||||||||||||||||||||||||||||||||
787 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
788 | - | |||||||||||||||||||||||||||||||||||||||||||
789 | - | |||||||||||||||||||||||||||||||||||||||||||
790 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
791 | static char const check_types[] = | - | ||||||||||||||||||||||||||||||||||||||||||
792 | { | - | ||||||||||||||||||||||||||||||||||||||||||
793 | - | |||||||||||||||||||||||||||||||||||||||||||
794 | 'C', 'C', 'c', | - | ||||||||||||||||||||||||||||||||||||||||||
795 | - | |||||||||||||||||||||||||||||||||||||||||||
796 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
797 | static char const *const sort_args[] = | - | ||||||||||||||||||||||||||||||||||||||||||
798 | { | - | ||||||||||||||||||||||||||||||||||||||||||
799 | - | |||||||||||||||||||||||||||||||||||||||||||
800 | "general-numeric", "human-numeric", "month", "numeric", "random", "version", | - | ||||||||||||||||||||||||||||||||||||||||||
801 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
802 | - | |||||||||||||||||||||||||||||||||||||||||||
803 | - | |||||||||||||||||||||||||||||||||||||||||||
804 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
805 | static char const sort_types[] = | - | ||||||||||||||||||||||||||||||||||||||||||
806 | { | - | ||||||||||||||||||||||||||||||||||||||||||
807 | - | |||||||||||||||||||||||||||||||||||||||||||
808 | 'g', 'h', 'M', 'n', 'R', 'V', | - | ||||||||||||||||||||||||||||||||||||||||||
809 | - | |||||||||||||||||||||||||||||||||||||||||||
810 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
811 | - | |||||||||||||||||||||||||||||||||||||||||||
812 | - | |||||||||||||||||||||||||||||||||||||||||||
813 | static sigset_t caught_signals; | - | ||||||||||||||||||||||||||||||||||||||||||
814 | - | |||||||||||||||||||||||||||||||||||||||||||
815 | - | |||||||||||||||||||||||||||||||||||||||||||
816 | struct cs_status | - | ||||||||||||||||||||||||||||||||||||||||||
817 | { | - | ||||||||||||||||||||||||||||||||||||||||||
818 | - | |||||||||||||||||||||||||||||||||||||||||||
819 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
820 | valid; | - | ||||||||||||||||||||||||||||||||||||||||||
821 | sigset_t sigs; | - | ||||||||||||||||||||||||||||||||||||||||||
822 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
823 | - | |||||||||||||||||||||||||||||||||||||||||||
824 | - | |||||||||||||||||||||||||||||||||||||||||||
825 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
826 | cs_enter (struct cs_status *status) | - | ||||||||||||||||||||||||||||||||||||||||||
827 | { | - | ||||||||||||||||||||||||||||||||||||||||||
828 | int ret = pthread_sigmask ( | - | ||||||||||||||||||||||||||||||||||||||||||
829 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
830 | , &caught_signals, &status->sigs); | - | ||||||||||||||||||||||||||||||||||||||||||
831 | status->valid = ret == 0; | - | ||||||||||||||||||||||||||||||||||||||||||
832 | } executed 8476 times by 1 test: end of block Executed by:
| 8476 | ||||||||||||||||||||||||||||||||||||||||||
833 | - | |||||||||||||||||||||||||||||||||||||||||||
834 | - | |||||||||||||||||||||||||||||||||||||||||||
835 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
836 | cs_leave (struct cs_status const *status) | - | ||||||||||||||||||||||||||||||||||||||||||
837 | { | - | ||||||||||||||||||||||||||||||||||||||||||
838 | if (status->valid
| 0-8476 | ||||||||||||||||||||||||||||||||||||||||||
839 | { | - | ||||||||||||||||||||||||||||||||||||||||||
840 | - | |||||||||||||||||||||||||||||||||||||||||||
841 | pthread_sigmask ( | - | ||||||||||||||||||||||||||||||||||||||||||
842 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||
843 | , &status->sigs, | - | ||||||||||||||||||||||||||||||||||||||||||
844 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
845 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
846 | } executed 8476 times by 1 test: end of block Executed by:
| 8476 | ||||||||||||||||||||||||||||||||||||||||||
847 | } executed 8476 times by 1 test: end of block Executed by:
| 8476 | ||||||||||||||||||||||||||||||||||||||||||
848 | - | |||||||||||||||||||||||||||||||||||||||||||
849 | - | |||||||||||||||||||||||||||||||||||||||||||
850 | - | |||||||||||||||||||||||||||||||||||||||||||
851 | - | |||||||||||||||||||||||||||||||||||||||||||
852 | enum { UNCOMPRESSED, UNREAPED, REAPED }; | - | ||||||||||||||||||||||||||||||||||||||||||
853 | - | |||||||||||||||||||||||||||||||||||||||||||
854 | - | |||||||||||||||||||||||||||||||||||||||||||
855 | struct tempnode | - | ||||||||||||||||||||||||||||||||||||||||||
856 | { | - | ||||||||||||||||||||||||||||||||||||||||||
857 | struct tempnode *volatile next; | - | ||||||||||||||||||||||||||||||||||||||||||
858 | pid_t pid; | - | ||||||||||||||||||||||||||||||||||||||||||
859 | char state; | - | ||||||||||||||||||||||||||||||||||||||||||
860 | char name[]; | - | ||||||||||||||||||||||||||||||||||||||||||
861 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
862 | static struct tempnode *volatile temphead; | - | ||||||||||||||||||||||||||||||||||||||||||
863 | static struct tempnode *volatile *temptail = &temphead; | - | ||||||||||||||||||||||||||||||||||||||||||
864 | - | |||||||||||||||||||||||||||||||||||||||||||
865 | - | |||||||||||||||||||||||||||||||||||||||||||
866 | struct sortfile | - | ||||||||||||||||||||||||||||||||||||||||||
867 | { | - | ||||||||||||||||||||||||||||||||||||||||||
868 | - | |||||||||||||||||||||||||||||||||||||||||||
869 | char const *name; | - | ||||||||||||||||||||||||||||||||||||||||||
870 | - | |||||||||||||||||||||||||||||||||||||||||||
871 | - | |||||||||||||||||||||||||||||||||||||||||||
872 | struct tempnode *temp; | - | ||||||||||||||||||||||||||||||||||||||||||
873 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
874 | - | |||||||||||||||||||||||||||||||||||||||||||
875 | - | |||||||||||||||||||||||||||||||||||||||||||
876 | static Hash_table *proctab; | - | ||||||||||||||||||||||||||||||||||||||||||
877 | - | |||||||||||||||||||||||||||||||||||||||||||
878 | enum { INIT_PROCTAB_SIZE = 47 }; | - | ||||||||||||||||||||||||||||||||||||||||||
879 | - | |||||||||||||||||||||||||||||||||||||||||||
880 | static size_t | - | ||||||||||||||||||||||||||||||||||||||||||
881 | proctab_hasher (void const *entry, size_t tabsize) | - | ||||||||||||||||||||||||||||||||||||||||||
882 | { | - | ||||||||||||||||||||||||||||||||||||||||||
883 | struct tempnode const *node = entry; | - | ||||||||||||||||||||||||||||||||||||||||||
884 | return executed 7440 times by 1 test: node->pid % tabsize;return node->pid % tabsize; Executed by:
executed 7440 times by 1 test: return node->pid % tabsize; Executed by:
| 7440 | ||||||||||||||||||||||||||||||||||||||||||
885 | } | - | ||||||||||||||||||||||||||||||||||||||||||
886 | - | |||||||||||||||||||||||||||||||||||||||||||
887 | static | - | ||||||||||||||||||||||||||||||||||||||||||
888 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
889 | - | |||||||||||||||||||||||||||||||||||||||||||
890 | proctab_comparator (void const *e1, void const *e2) | - | ||||||||||||||||||||||||||||||||||||||||||
891 | { | - | ||||||||||||||||||||||||||||||||||||||||||
892 | struct tempnode const *n1 = e1; | - | ||||||||||||||||||||||||||||||||||||||||||
893 | struct tempnode const *n2 = e2; | - | ||||||||||||||||||||||||||||||||||||||||||
894 | return executed 3963 times by 1 test: n1->pid == n2->pid;return n1->pid == n2->pid; Executed by:
executed 3963 times by 1 test: return n1->pid == n2->pid; Executed by:
| 3963 | ||||||||||||||||||||||||||||||||||||||||||
895 | } | - | ||||||||||||||||||||||||||||||||||||||||||
896 | - | |||||||||||||||||||||||||||||||||||||||||||
897 | - | |||||||||||||||||||||||||||||||||||||||||||
898 | static pid_t nprocs; | - | ||||||||||||||||||||||||||||||||||||||||||
899 | - | |||||||||||||||||||||||||||||||||||||||||||
900 | static | - | ||||||||||||||||||||||||||||||||||||||||||
901 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
902 | delete_proc (pid_t); | - | ||||||||||||||||||||||||||||||||||||||||||
903 | static pid_t | - | ||||||||||||||||||||||||||||||||||||||||||
904 | reap (pid_t pid) | - | ||||||||||||||||||||||||||||||||||||||||||
905 | { | - | ||||||||||||||||||||||||||||||||||||||||||
906 | int status; | - | ||||||||||||||||||||||||||||||||||||||||||
907 | pid_t cpid = waitpid ((pid ? pid : -1), &status, (pid ? 0 : | - | ||||||||||||||||||||||||||||||||||||||||||
908 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
909 | )); | - | ||||||||||||||||||||||||||||||||||||||||||
910 | - | |||||||||||||||||||||||||||||||||||||||||||
911 | if (cpid < 0
| 0-5513 | ||||||||||||||||||||||||||||||||||||||||||
912 | (( never executed: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
913 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
914 | , never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
915 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
916 | "waiting for %s [-d]" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
917 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
918 | , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
919 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
920 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
921 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
922 | , never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
923 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
924 | "waiting for %s [-d]" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
925 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
926 | , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
927 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
928 | ) ? (void) 0 : __builtin_unreachable ())))) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
929 | ; never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"waiting for %s [-d]\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)... : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "waiting for %s [-d]" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
930 | else if (0 < cpid
| 1-3720 | ||||||||||||||||||||||||||||||||||||||||||
931 | { | - | ||||||||||||||||||||||||||||||||||||||||||
932 | if (!
| 0-3719 | ||||||||||||||||||||||||||||||||||||||||||
933 | (((
| 0-3719 | ||||||||||||||||||||||||||||||||||||||||||
934 | status
| 0-3719 | ||||||||||||||||||||||||||||||||||||||||||
935 | ) & 0x7f) == 0)
| 0-3719 | ||||||||||||||||||||||||||||||||||||||||||
936 | || | - | ||||||||||||||||||||||||||||||||||||||||||
937 | (((
| 2-3717 | ||||||||||||||||||||||||||||||||||||||||||
938 | status
| 2-3717 | ||||||||||||||||||||||||||||||||||||||||||
939 | ) & 0xff00) >> 8)
| 2-3717 | ||||||||||||||||||||||||||||||||||||||||||
940 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
941 | (( executed 2 times by 1 test: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
942 | dcgettext (((void *)0), executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
943 | "%s [-d] terminated abnormally" executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
944 | , 5) executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
945 | , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
946 | 0 executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
947 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
948 | dcgettext (((void *)0), executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
949 | "%s [-d] terminated abnormally" executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
950 | , 5) executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
951 | , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
952 | 0 executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
953 | ) ? (void) 0 : __builtin_unreachable ())))) executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
954 | ; executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s [-d] terminated abnormally\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (...) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s [-d] terminated abnormally" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
955 | --nprocs; | - | ||||||||||||||||||||||||||||||||||||||||||
956 | } executed 3717 times by 1 test: end of block Executed by:
| 3717 | ||||||||||||||||||||||||||||||||||||||||||
957 | - | |||||||||||||||||||||||||||||||||||||||||||
958 | return executed 5511 times by 1 test: cpid;return cpid; Executed by:
executed 5511 times by 1 test: return cpid; Executed by:
| 5511 | ||||||||||||||||||||||||||||||||||||||||||
959 | } | - | ||||||||||||||||||||||||||||||||||||||||||
960 | - | |||||||||||||||||||||||||||||||||||||||||||
961 | - | |||||||||||||||||||||||||||||||||||||||||||
962 | - | |||||||||||||||||||||||||||||||||||||||||||
963 | - | |||||||||||||||||||||||||||||||||||||||||||
964 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
965 | register_proc (struct tempnode *temp) | - | ||||||||||||||||||||||||||||||||||||||||||
966 | { | - | ||||||||||||||||||||||||||||||||||||||||||
967 | if (! proctab
| 7-3713 | ||||||||||||||||||||||||||||||||||||||||||
968 | { | - | ||||||||||||||||||||||||||||||||||||||||||
969 | proctab = hash_initialize (INIT_PROCTAB_SIZE, | - | ||||||||||||||||||||||||||||||||||||||||||
970 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
971 | , | - | ||||||||||||||||||||||||||||||||||||||||||
972 | proctab_hasher, | - | ||||||||||||||||||||||||||||||||||||||||||
973 | proctab_comparator, | - | ||||||||||||||||||||||||||||||||||||||||||
974 | - | |||||||||||||||||||||||||||||||||||||||||||
975 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
976 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
977 | if (! proctab
| 0-7 | ||||||||||||||||||||||||||||||||||||||||||
978 | xalloc_die (); never executed: xalloc_die (); | 0 | ||||||||||||||||||||||||||||||||||||||||||
979 | } executed 7 times by 1 test: end of block Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||
980 | - | |||||||||||||||||||||||||||||||||||||||||||
981 | temp->state = UNREAPED; | - | ||||||||||||||||||||||||||||||||||||||||||
982 | - | |||||||||||||||||||||||||||||||||||||||||||
983 | if (! hash_insert (proctab, temp)
| 0-3720 | ||||||||||||||||||||||||||||||||||||||||||
984 | xalloc_die (); never executed: xalloc_die (); | 0 | ||||||||||||||||||||||||||||||||||||||||||
985 | } executed 3720 times by 1 test: end of block Executed by:
| 3720 | ||||||||||||||||||||||||||||||||||||||||||
986 | - | |||||||||||||||||||||||||||||||||||||||||||
987 | - | |||||||||||||||||||||||||||||||||||||||||||
988 | - | |||||||||||||||||||||||||||||||||||||||||||
989 | - | |||||||||||||||||||||||||||||||||||||||||||
990 | static | - | ||||||||||||||||||||||||||||||||||||||||||
991 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
992 | - | |||||||||||||||||||||||||||||||||||||||||||
993 | delete_proc (pid_t pid) | - | ||||||||||||||||||||||||||||||||||||||||||
994 | { | - | ||||||||||||||||||||||||||||||||||||||||||
995 | struct tempnode test; | - | ||||||||||||||||||||||||||||||||||||||||||
996 | - | |||||||||||||||||||||||||||||||||||||||||||
997 | test.pid = pid; | - | ||||||||||||||||||||||||||||||||||||||||||
998 | struct tempnode *node = hash_delete (proctab, &test); | - | ||||||||||||||||||||||||||||||||||||||||||
999 | if (! node
| 1-3719 | ||||||||||||||||||||||||||||||||||||||||||
1000 | return executed 1 time by 1 test: return 0 ; Executed by:
executed 1 time by 1 test: return 0 ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1001 | 0 executed 1 time by 1 test: return 0 ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1002 | ; executed 1 time by 1 test: return 0 ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1003 | node->state = REAPED; | - | ||||||||||||||||||||||||||||||||||||||||||
1004 | return executed 3719 times by 1 test: return 1 ; Executed by:
executed 3719 times by 1 test: return 1 ; Executed by:
| 3719 | ||||||||||||||||||||||||||||||||||||||||||
1005 | 1 executed 3719 times by 1 test: return 1 ; Executed by:
| 3719 | ||||||||||||||||||||||||||||||||||||||||||
1006 | ; executed 3719 times by 1 test: return 1 ; Executed by:
| 3719 | ||||||||||||||||||||||||||||||||||||||||||
1007 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1008 | - | |||||||||||||||||||||||||||||||||||||||||||
1009 | - | |||||||||||||||||||||||||||||||||||||||||||
1010 | - | |||||||||||||||||||||||||||||||||||||||||||
1011 | - | |||||||||||||||||||||||||||||||||||||||||||
1012 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
1013 | wait_proc (pid_t pid) | - | ||||||||||||||||||||||||||||||||||||||||||
1014 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1015 | if (delete_proc (pid)
| 0-1867 | ||||||||||||||||||||||||||||||||||||||||||
1016 | reap (pid); executed 1867 times by 1 test: reap (pid); Executed by:
| 1867 | ||||||||||||||||||||||||||||||||||||||||||
1017 | } executed 1865 times by 1 test: end of block Executed by:
| 1865 | ||||||||||||||||||||||||||||||||||||||||||
1018 | - | |||||||||||||||||||||||||||||||||||||||||||
1019 | - | |||||||||||||||||||||||||||||||||||||||||||
1020 | - | |||||||||||||||||||||||||||||||||||||||||||
1021 | - | |||||||||||||||||||||||||||||||||||||||||||
1022 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
1023 | reap_exited (void) | - | ||||||||||||||||||||||||||||||||||||||||||
1024 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1025 | while (0 < nprocs
| 0-1853 | ||||||||||||||||||||||||||||||||||||||||||
1026 | continue; executed 60 times by 1 test: continue; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1027 | } executed 1793 times by 1 test: end of block Executed by:
| 1793 | ||||||||||||||||||||||||||||||||||||||||||
1028 | - | |||||||||||||||||||||||||||||||||||||||||||
1029 | - | |||||||||||||||||||||||||||||||||||||||||||
1030 | - | |||||||||||||||||||||||||||||||||||||||||||
1031 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
1032 | reap_some (void) | - | ||||||||||||||||||||||||||||||||||||||||||
1033 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1034 | reap (-1); | - | ||||||||||||||||||||||||||||||||||||||||||
1035 | reap_exited (); | - | ||||||||||||||||||||||||||||||||||||||||||
1036 | } executed 1793 times by 1 test: end of block Executed by:
| 1793 | ||||||||||||||||||||||||||||||||||||||||||
1037 | - | |||||||||||||||||||||||||||||||||||||||||||
1038 | - | |||||||||||||||||||||||||||||||||||||||||||
1039 | - | |||||||||||||||||||||||||||||||||||||||||||
1040 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
1041 | reap_all (void) | - | ||||||||||||||||||||||||||||||||||||||||||
1042 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1043 | while (0 < nprocs
| 0-711 | ||||||||||||||||||||||||||||||||||||||||||
1044 | reap (-1); never executed: reap (-1); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1045 | } executed 711 times by 1 test: end of block Executed by:
| 711 | ||||||||||||||||||||||||||||||||||||||||||
1046 | - | |||||||||||||||||||||||||||||||||||||||||||
1047 | - | |||||||||||||||||||||||||||||||||||||||||||
1048 | - | |||||||||||||||||||||||||||||||||||||||||||
1049 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
1050 | cleanup (void) | - | ||||||||||||||||||||||||||||||||||||||||||
1051 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1052 | struct tempnode const *node; | - | ||||||||||||||||||||||||||||||||||||||||||
1053 | - | |||||||||||||||||||||||||||||||||||||||||||
1054 | for (node = temphead; node
| 7-8 | ||||||||||||||||||||||||||||||||||||||||||
1055 | unlink (node->name); executed 8 times by 1 test: unlink (node->name); Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||
1056 | temphead = | - | ||||||||||||||||||||||||||||||||||||||||||
1057 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
1058 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1059 | } executed 7 times by 1 test: end of block Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||
1060 | - | |||||||||||||||||||||||||||||||||||||||||||
1061 | - | |||||||||||||||||||||||||||||||||||||||||||
1062 | - | |||||||||||||||||||||||||||||||||||||||||||
1063 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
1064 | exit_cleanup (void) | - | ||||||||||||||||||||||||||||||||||||||||||
1065 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1066 | if (temphead
| 7-852 | ||||||||||||||||||||||||||||||||||||||||||
1067 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1068 | - | |||||||||||||||||||||||||||||||||||||||||||
1069 | - | |||||||||||||||||||||||||||||||||||||||||||
1070 | struct cs_status cs; | - | ||||||||||||||||||||||||||||||||||||||||||
1071 | cs_enter (&cs); | - | ||||||||||||||||||||||||||||||||||||||||||
1072 | cleanup (); | - | ||||||||||||||||||||||||||||||||||||||||||
1073 | cs_leave (&cs); | - | ||||||||||||||||||||||||||||||||||||||||||
1074 | } executed 7 times by 1 test: end of block Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||
1075 | - | |||||||||||||||||||||||||||||||||||||||||||
1076 | close_stdout (); | - | ||||||||||||||||||||||||||||||||||||||||||
1077 | } executed 859 times by 1 test: end of block Executed by:
| 859 | ||||||||||||||||||||||||||||||||||||||||||
1078 | - | |||||||||||||||||||||||||||||||||||||||||||
1079 | - | |||||||||||||||||||||||||||||||||||||||||||
1080 | - | |||||||||||||||||||||||||||||||||||||||||||
1081 | - | |||||||||||||||||||||||||||||||||||||||||||
1082 | - | |||||||||||||||||||||||||||||||||||||||||||
1083 | - | |||||||||||||||||||||||||||||||||||||||||||
1084 | - | |||||||||||||||||||||||||||||||||||||||||||
1085 | static struct tempnode * | - | ||||||||||||||||||||||||||||||||||||||||||
1086 | create_temp_file (int *pfd, | - | ||||||||||||||||||||||||||||||||||||||||||
1087 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
1088 | survive_fd_exhaustion) | - | ||||||||||||||||||||||||||||||||||||||||||
1089 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1090 | static char const slashbase[] = "/sortXXXXXX"; | - | ||||||||||||||||||||||||||||||||||||||||||
1091 | static size_t temp_dir_index; | - | ||||||||||||||||||||||||||||||||||||||||||
1092 | int fd; | - | ||||||||||||||||||||||||||||||||||||||||||
1093 | int saved_errno; | - | ||||||||||||||||||||||||||||||||||||||||||
1094 | char const *temp_dir = temp_dirs[temp_dir_index]; | - | ||||||||||||||||||||||||||||||||||||||||||
1095 | size_t len = strlen (temp_dir); | - | ||||||||||||||||||||||||||||||||||||||||||
1096 | struct tempnode *node = | - | ||||||||||||||||||||||||||||||||||||||||||
1097 | xmalloc ((( | - | ||||||||||||||||||||||||||||||||||||||||||
1098 | __builtin_offsetof ( | - | ||||||||||||||||||||||||||||||||||||||||||
1099 | struct tempnode | - | ||||||||||||||||||||||||||||||||||||||||||
1100 | , | - | ||||||||||||||||||||||||||||||||||||||||||
1101 | name | - | ||||||||||||||||||||||||||||||||||||||||||
1102 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
1103 | + _Alignof (struct tempnode) - 1 + (len + sizeof slashbase)) & ~ (_Alignof (struct tempnode) - 1))); | - | ||||||||||||||||||||||||||||||||||||||||||
1104 | char *file = node->name; | - | ||||||||||||||||||||||||||||||||||||||||||
1105 | struct cs_status cs; | - | ||||||||||||||||||||||||||||||||||||||||||
1106 | - | |||||||||||||||||||||||||||||||||||||||||||
1107 | memcpy (file, temp_dir, len); | - | ||||||||||||||||||||||||||||||||||||||||||
1108 | memcpy (file + len, slashbase, sizeof slashbase); | - | ||||||||||||||||||||||||||||||||||||||||||
1109 | node->next = | - | ||||||||||||||||||||||||||||||||||||||||||
1110 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
1111 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1112 | if (++
| 0-2379 | ||||||||||||||||||||||||||||||||||||||||||
1113 | temp_dir_index = 0; executed 2379 times by 1 test: temp_dir_index = 0; Executed by:
| 2379 | ||||||||||||||||||||||||||||||||||||||||||
1114 | - | |||||||||||||||||||||||||||||||||||||||||||
1115 | - | |||||||||||||||||||||||||||||||||||||||||||
1116 | cs_enter (&cs); | - | ||||||||||||||||||||||||||||||||||||||||||
1117 | fd = mkostemp_safer (file, | - | ||||||||||||||||||||||||||||||||||||||||||
1118 | 02000000 | - | ||||||||||||||||||||||||||||||||||||||||||
1119 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1120 | if (0 <= fd
| 1-2378 | ||||||||||||||||||||||||||||||||||||||||||
1121 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1122 | *temptail = node; | - | ||||||||||||||||||||||||||||||||||||||||||
1123 | temptail = &node->next; | - | ||||||||||||||||||||||||||||||||||||||||||
1124 | } executed 2378 times by 1 test: end of block Executed by:
| 2378 | ||||||||||||||||||||||||||||||||||||||||||
1125 | saved_errno = | - | ||||||||||||||||||||||||||||||||||||||||||
1126 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
1127 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1128 | cs_leave (&cs); | - | ||||||||||||||||||||||||||||||||||||||||||
1129 | - | |||||||||||||||||||||||||||||||||||||||||||
1130 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
1131 | = saved_errno; | - | ||||||||||||||||||||||||||||||||||||||||||
1132 | - | |||||||||||||||||||||||||||||||||||||||||||
1133 | if (fd < 0
| 1-2378 | ||||||||||||||||||||||||||||||||||||||||||
1134 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1135 | if (! (survive_fd_exhaustion
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
1136 | (*
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1137 | ==
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1138 | 24
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1139 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
1140 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, temp_dir)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1141 | (*__errno_location ()) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1142 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1143 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1144 | "cannot create temporary file in %s" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1145 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1146 | , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1147 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1148 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1149 | (*__errno_location ()) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1150 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1151 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1152 | "cannot create temporary file in %s" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1153 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1154 | , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1155 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1156 | ) ? (void) 0 : __builtin_unreachable ())))) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1157 | ; executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"cannot create temporary file in %s\", 5), quotearg_style (shell_escape_always_quoting_style, te...iltin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "cannot create temporary file in %s" , 5) , quotearg_style (shell_escape_always_quoting_style, temp_dir)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1158 | free (node); | - | ||||||||||||||||||||||||||||||||||||||||||
1159 | node = | - | ||||||||||||||||||||||||||||||||||||||||||
1160 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
1161 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1162 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1163 | - | |||||||||||||||||||||||||||||||||||||||||||
1164 | *pfd = fd; | - | ||||||||||||||||||||||||||||||||||||||||||
1165 | return executed 2378 times by 1 test: node;return node; Executed by:
executed 2378 times by 1 test: return node; Executed by:
| 2378 | ||||||||||||||||||||||||||||||||||||||||||
1166 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1167 | static FILE * | - | ||||||||||||||||||||||||||||||||||||||||||
1168 | stream_open (char const *file, char const *how) | - | ||||||||||||||||||||||||||||||||||||||||||
1169 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1170 | FILE *fp; | - | ||||||||||||||||||||||||||||||||||||||||||
1171 | - | |||||||||||||||||||||||||||||||||||||||||||
1172 | if (*
| 725-1516 | ||||||||||||||||||||||||||||||||||||||||||
1173 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1174 | if ((
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1175 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1176 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1177 | ) && __builtin_constant_p (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1178 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1179 | ) && (__s1_len = __builtin_strlen (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1180 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1181 | ), __s2_len = __builtin_strlen (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1182 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1183 | ), (!((size_t)(const void *)((
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1184 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1185 | ) + 1) - (size_t)(const void *)(
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1186 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1187 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1188 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1189 | ) + 1) - (size_t)(const void *)(
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1190 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1191 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1192 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1193 | ,
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1194 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1195 | ) : (__builtin_constant_p (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1196 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1197 | ) && ((size_t)(const void *)((
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1198 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1199 | ) + 1) - (size_t)(const void *)(
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1200 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1201 | ) == 1) && (__s1_len = __builtin_strlen (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1202 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1203 | ), __s1_len < 4) ? (__builtin_constant_p (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1204 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1205 | ) && ((size_t)(const void *)((
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1206 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1207 | ) + 1) - (size_t)(const void *)(
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1208 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1209 | ) == 1) ? __builtin_strcmp (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1210 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1211 | ,
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1212 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1213 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1214 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1215 | ); int __result = (((const unsigned char *) (const char *) (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1216 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1217 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-945 | ||||||||||||||||||||||||||||||||||||||||||
1218 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1219 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-945 | ||||||||||||||||||||||||||||||||||||||||||
1220 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1221 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( file ))[3] - __s2[3]);
| 0-945 | ||||||||||||||||||||||||||||||||||||||||||
1222 | file
never executed: __result = (((const unsigned char *) (const char *) ( file ))[3] - __s2[3]); | 0-945 | ||||||||||||||||||||||||||||||||||||||||||
1223 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( file ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block
| 0-945 | ||||||||||||||||||||||||||||||||||||||||||
1224 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1225 | ) && ((size_t)(const void *)((
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1226 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1227 | ) + 1) - (size_t)(const void *)(
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1228 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1229 | ) == 1) && (__s2_len = __builtin_strlen (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1230 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1231 | ), __s2_len < 4) ? (__builtin_constant_p (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1232 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1233 | ) && ((size_t)(const void *)((
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1234 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1235 | ) + 1) - (size_t)(const void *)(
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1236 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1237 | ) == 1) ? __builtin_strcmp (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1238 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1239 | ,
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1240 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1241 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1242 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1243 | ); int __result = (((const unsigned char *) (const char *) (
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1244 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1245 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-1516 | ||||||||||||||||||||||||||||||||||||||||||
1246 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1247 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-945 | ||||||||||||||||||||||||||||||||||||||||||
1248 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1249 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-945 | ||||||||||||||||||||||||||||||||||||||||||
1250 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-945 | ||||||||||||||||||||||||||||||||||||||||||
1251 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); never executed: } __result; }))) : __builtin_strcmp (end of block
| 0-945 | ||||||||||||||||||||||||||||||||||||||||||
1252 | file
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1253 | ,
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1254 | "-"
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1255 | )))); })
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1256 | == 0)
| 571-945 | ||||||||||||||||||||||||||||||||||||||||||
1257 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1258 | have_read_stdin = | - | ||||||||||||||||||||||||||||||||||||||||||
1259 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1260 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1261 | fp = | - | ||||||||||||||||||||||||||||||||||||||||||
1262 | stdin | - | ||||||||||||||||||||||||||||||||||||||||||
1263 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1264 | } executed 571 times by 1 test: end of block Executed by:
| 571 | ||||||||||||||||||||||||||||||||||||||||||
1265 | else | - | ||||||||||||||||||||||||||||||||||||||||||
1266 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1267 | int fd = open (file, | - | ||||||||||||||||||||||||||||||||||||||||||
1268 | 00 | - | ||||||||||||||||||||||||||||||||||||||||||
1269 | | | - | ||||||||||||||||||||||||||||||||||||||||||
1270 | 02000000 | - | ||||||||||||||||||||||||||||||||||||||||||
1271 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1272 | fp = fd < 0
| 64-881 | ||||||||||||||||||||||||||||||||||||||||||
1273 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
1274 | : fdopen (fd, how); | - | ||||||||||||||||||||||||||||||||||||||||||
1275 | } executed 945 times by 1 test: end of block Executed by:
| 945 | ||||||||||||||||||||||||||||||||||||||||||
1276 | fadvise (fp, FADVISE_SEQUENTIAL); | - | ||||||||||||||||||||||||||||||||||||||||||
1277 | } executed 1516 times by 1 test: end of block Executed by:
| 1516 | ||||||||||||||||||||||||||||||||||||||||||
1278 | else if (*
| 0-725 | ||||||||||||||||||||||||||||||||||||||||||
1279 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1280 | if (file
| 0-719 | ||||||||||||||||||||||||||||||||||||||||||
1281 | 1
| 0-6 | ||||||||||||||||||||||||||||||||||||||||||
1282 | , 0) != 0
| 0-6 | ||||||||||||||||||||||||||||||||||||||||||
1283 | (( never executed: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1284 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1285 | , never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1286 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1287 | "%s: error truncating" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1288 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1289 | , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1290 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1291 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1292 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1293 | , never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1294 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1295 | "%s: error truncating" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1296 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1297 | , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1298 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1299 | ) ? (void) 0 : __builtin_unreachable ())))) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1300 | ; never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"%s: error truncating\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, file)), assu...void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "%s: error truncating" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, file)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1301 | fp = | - | ||||||||||||||||||||||||||||||||||||||||||
1302 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
1303 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1304 | } executed 725 times by 1 test: end of block Executed by:
| 725 | ||||||||||||||||||||||||||||||||||||||||||
1305 | else | - | ||||||||||||||||||||||||||||||||||||||||||
1306 | - | |||||||||||||||||||||||||||||||||||||||||||
1307 | (( never executed: (( !"unexpected mode passed to stream_open" ) ? (void) (0) : __assert_fail ( "!\"unexpected mode passed to stream_open\"" , "src/sort.c", 972, __PRETTY_FUNCTION__)) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1308 | !"unexpected mode passed to stream_open" never executed: (( !"unexpected mode passed to stream_open" ) ? (void) (0) : __assert_fail ( "!\"unexpected mode passed to stream_open\"" , "src/sort.c", 972, __PRETTY_FUNCTION__)) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1309 | ) ? (void) (0) : __assert_fail ( never executed: (( !"unexpected mode passed to stream_open" ) ? (void) (0) : __assert_fail ( "!\"unexpected mode passed to stream_open\"" , "src/sort.c", 972, __PRETTY_FUNCTION__)) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1310 | "!\"unexpected mode passed to stream_open\"" never executed: (( !"unexpected mode passed to stream_open" ) ? (void) (0) : __assert_fail ( "!\"unexpected mode passed to stream_open\"" , "src/sort.c", 972, __PRETTY_FUNCTION__)) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1311 | , "src/sort.c", 972, __PRETTY_FUNCTION__)) never executed: (( !"unexpected mode passed to stream_open" ) ? (void) (0) : __assert_fail ( "!\"unexpected mode passed to stream_open\"" , "src/sort.c", 972, __PRETTY_FUNCTION__)) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1312 | ; never executed: (( !"unexpected mode passed to stream_open" ) ? (void) (0) : __assert_fail ( "!\"unexpected mode passed to stream_open\"" , "src/sort.c", 972, __PRETTY_FUNCTION__)) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1313 | - | |||||||||||||||||||||||||||||||||||||||||||
1314 | return executed 2241 times by 1 test: fp;return fp; Executed by:
executed 2241 times by 1 test: return fp; Executed by:
| 2241 | ||||||||||||||||||||||||||||||||||||||||||
1315 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1316 | - | |||||||||||||||||||||||||||||||||||||||||||
1317 | - | |||||||||||||||||||||||||||||||||||||||||||
1318 | - | |||||||||||||||||||||||||||||||||||||||||||
1319 | - | |||||||||||||||||||||||||||||||||||||||||||
1320 | static FILE * | - | ||||||||||||||||||||||||||||||||||||||||||
1321 | xfopen (char const *file, char const *how) | - | ||||||||||||||||||||||||||||||||||||||||||
1322 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1323 | FILE *fp = stream_open (file, how); | - | ||||||||||||||||||||||||||||||||||||||||||
1324 | if (!fp
| 1-1401 | ||||||||||||||||||||||||||||||||||||||||||
1325 | sort_die ( executed 1 time by 1 test: sort_die ( dcgettext (((void *)0), "open failed" , 5) , file); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1326 | dcgettext (((void *)0), executed 1 time by 1 test: sort_die ( dcgettext (((void *)0), "open failed" , 5) , file); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1327 | "open failed" executed 1 time by 1 test: sort_die ( dcgettext (((void *)0), "open failed" , 5) , file); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1328 | , 5) executed 1 time by 1 test: sort_die ( dcgettext (((void *)0), "open failed" , 5) , file); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1329 | , file); executed 1 time by 1 test: sort_die ( dcgettext (((void *)0), "open failed" , 5) , file); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1330 | return executed 1401 times by 1 test: fp;return fp; Executed by:
executed 1401 times by 1 test: return fp; Executed by:
| 1401 | ||||||||||||||||||||||||||||||||||||||||||
1331 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1332 | - | |||||||||||||||||||||||||||||||||||||||||||
1333 | - | |||||||||||||||||||||||||||||||||||||||||||
1334 | - | |||||||||||||||||||||||||||||||||||||||||||
1335 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
1336 | xfclose (FILE *fp, char const *file) | - | ||||||||||||||||||||||||||||||||||||||||||
1337 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1338 | switch (fileno (fp)) | - | ||||||||||||||||||||||||||||||||||||||||||
1339 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1340 | case executed 571 times by 1 test: case 0 : Executed by:
executed 571 times by 1 test: case 0 : Executed by:
| 571 | ||||||||||||||||||||||||||||||||||||||||||
1341 | 0 executed 571 times by 1 test: case 0 : Executed by:
| 571 | ||||||||||||||||||||||||||||||||||||||||||
1342 | : executed 571 times by 1 test: case 0 : Executed by:
| 571 | ||||||||||||||||||||||||||||||||||||||||||
1343 | - | |||||||||||||||||||||||||||||||||||||||||||
1344 | if (feof_unlocked (fp)
| 0-571 | ||||||||||||||||||||||||||||||||||||||||||
1345 | clearerr_unlocked (fp); executed 571 times by 1 test: clearerr_unlocked (fp); Executed by:
| 571 | ||||||||||||||||||||||||||||||||||||||||||
1346 | break; executed 571 times by 1 test: break; Executed by:
| 571 | ||||||||||||||||||||||||||||||||||||||||||
1347 | - | |||||||||||||||||||||||||||||||||||||||||||
1348 | case executed 724 times by 1 test: case 1 : Executed by:
executed 724 times by 1 test: case 1 : Executed by:
| 724 | ||||||||||||||||||||||||||||||||||||||||||
1349 | 1 executed 724 times by 1 test: case 1 : Executed by:
| 724 | ||||||||||||||||||||||||||||||||||||||||||
1350 | : executed 724 times by 1 test: case 1 : Executed by:
| 724 | ||||||||||||||||||||||||||||||||||||||||||
1351 | - | |||||||||||||||||||||||||||||||||||||||||||
1352 | if (fflush_unlocked (fp) != 0
| 0-724 | ||||||||||||||||||||||||||||||||||||||||||
1353 | sort_die ( never executed: sort_die ( dcgettext (((void *)0), "fflush failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1354 | dcgettext (((void *)0), never executed: sort_die ( dcgettext (((void *)0), "fflush failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1355 | "fflush failed" never executed: sort_die ( dcgettext (((void *)0), "fflush failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1356 | , 5) never executed: sort_die ( dcgettext (((void *)0), "fflush failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1357 | , file); never executed: sort_die ( dcgettext (((void *)0), "fflush failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1358 | break; executed 724 times by 1 test: break; Executed by:
| 724 | ||||||||||||||||||||||||||||||||||||||||||
1359 | - | |||||||||||||||||||||||||||||||||||||||||||
1360 | default executed 5118 times by 1 test: :default: Executed by:
executed 5118 times by 1 test: default: Executed by:
| 5118 | ||||||||||||||||||||||||||||||||||||||||||
1361 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||
1362 | rpl_fclose
| 0-5118 | ||||||||||||||||||||||||||||||||||||||||||
1363 | (fp) != 0
| 0-5118 | ||||||||||||||||||||||||||||||||||||||||||
1364 | sort_die ( never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1365 | dcgettext (((void *)0), never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1366 | "close failed" never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1367 | , 5) never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1368 | , file); never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1369 | break; executed 5118 times by 1 test: break; Executed by:
| 5118 | ||||||||||||||||||||||||||||||||||||||||||
1370 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1371 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1372 | - | |||||||||||||||||||||||||||||||||||||||||||
1373 | - | |||||||||||||||||||||||||||||||||||||||||||
1374 | - | |||||||||||||||||||||||||||||||||||||||||||
1375 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
1376 | move_fd (int oldfd, int newfd) | - | ||||||||||||||||||||||||||||||||||||||||||
1377 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1378 | if (oldfd != newfd
| 0-6 | ||||||||||||||||||||||||||||||||||||||||||
1379 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1380 | - | |||||||||||||||||||||||||||||||||||||||||||
1381 | dup2 (oldfd, newfd); | - | ||||||||||||||||||||||||||||||||||||||||||
1382 | close (oldfd); | - | ||||||||||||||||||||||||||||||||||||||||||
1383 | } executed 6 times by 1 test: end of block Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1384 | } executed 6 times by 1 test: end of block Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1385 | - | |||||||||||||||||||||||||||||||||||||||||||
1386 | - | |||||||||||||||||||||||||||||||||||||||||||
1387 | - | |||||||||||||||||||||||||||||||||||||||||||
1388 | - | |||||||||||||||||||||||||||||||||||||||||||
1389 | - | |||||||||||||||||||||||||||||||||||||||||||
1390 | - | |||||||||||||||||||||||||||||||||||||||||||
1391 | static pid_t | - | ||||||||||||||||||||||||||||||||||||||||||
1392 | pipe_fork (int pipefds[2], size_t tries) | - | ||||||||||||||||||||||||||||||||||||||||||
1393 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1394 | - | |||||||||||||||||||||||||||||||||||||||||||
1395 | struct tempnode *saved_temphead; | - | ||||||||||||||||||||||||||||||||||||||||||
1396 | int saved_errno; | - | ||||||||||||||||||||||||||||||||||||||||||
1397 | double wait_retry = 0.25; | - | ||||||||||||||||||||||||||||||||||||||||||
1398 | pid_t pid ; | - | ||||||||||||||||||||||||||||||||||||||||||
1399 | struct cs_status cs; | - | ||||||||||||||||||||||||||||||||||||||||||
1400 | - | |||||||||||||||||||||||||||||||||||||||||||
1401 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||
1402 | rpl_pipe2
| 0-3720 | ||||||||||||||||||||||||||||||||||||||||||
1403 | (pipefds,
| 0-3720 | ||||||||||||||||||||||||||||||||||||||||||
1404 | 02000000
| 0-3720 | ||||||||||||||||||||||||||||||||||||||||||
1405 | ) < 0
| 0-3720 | ||||||||||||||||||||||||||||||||||||||||||
1406 | return never executed: -1;return -1; never executed: return -1; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1407 | if (nmerge + 1 < nprocs
| 1793-1927 | ||||||||||||||||||||||||||||||||||||||||||
1408 | reap_some (); executed 1793 times by 1 test: reap_some (); Executed by:
| 1793 | ||||||||||||||||||||||||||||||||||||||||||
1409 | - | |||||||||||||||||||||||||||||||||||||||||||
1410 | while (tries--
| 0-3720 | ||||||||||||||||||||||||||||||||||||||||||
1411 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1412 | - | |||||||||||||||||||||||||||||||||||||||||||
1413 | - | |||||||||||||||||||||||||||||||||||||||||||
1414 | cs_enter (&cs); | - | ||||||||||||||||||||||||||||||||||||||||||
1415 | saved_temphead = temphead; | - | ||||||||||||||||||||||||||||||||||||||||||
1416 | temphead = | - | ||||||||||||||||||||||||||||||||||||||||||
1417 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
1418 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1419 | - | |||||||||||||||||||||||||||||||||||||||||||
1420 | pid = fork (); | - | ||||||||||||||||||||||||||||||||||||||||||
1421 | saved_errno = | - | ||||||||||||||||||||||||||||||||||||||||||
1422 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
1423 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1424 | if (pid
| 0-3720 | ||||||||||||||||||||||||||||||||||||||||||
1425 | temphead = saved_temphead; executed 3720 times by 1 test: temphead = saved_temphead; Executed by:
| 3720 | ||||||||||||||||||||||||||||||||||||||||||
1426 | - | |||||||||||||||||||||||||||||||||||||||||||
1427 | cs_leave (&cs); | - | ||||||||||||||||||||||||||||||||||||||||||
1428 | - | |||||||||||||||||||||||||||||||||||||||||||
1429 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
1430 | = saved_errno; | - | ||||||||||||||||||||||||||||||||||||||||||
1431 | - | |||||||||||||||||||||||||||||||||||||||||||
1432 | if (0 <= pid
| 0-3720 | ||||||||||||||||||||||||||||||||||||||||||
1433 | (*
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1434 | !=
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1435 | 11
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1436 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
1437 | break; executed 3720 times by 1 test: break; Executed by:
| 3720 | ||||||||||||||||||||||||||||||||||||||||||
1438 | else | - | ||||||||||||||||||||||||||||||||||||||||||
1439 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1440 | xnanosleep (wait_retry); | - | ||||||||||||||||||||||||||||||||||||||||||
1441 | wait_retry *= 2; | - | ||||||||||||||||||||||||||||||||||||||||||
1442 | reap_exited (); | - | ||||||||||||||||||||||||||||||||||||||||||
1443 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1444 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1445 | - | |||||||||||||||||||||||||||||||||||||||||||
1446 | if (pid < 0
| 0-3720 | ||||||||||||||||||||||||||||||||||||||||||
1447 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1448 | saved_errno = | - | ||||||||||||||||||||||||||||||||||||||||||
1449 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
1450 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1451 | close (pipefds[0]); | - | ||||||||||||||||||||||||||||||||||||||||||
1452 | close (pipefds[1]); | - | ||||||||||||||||||||||||||||||||||||||||||
1453 | - | |||||||||||||||||||||||||||||||||||||||||||
1454 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
1455 | = saved_errno; | - | ||||||||||||||||||||||||||||||||||||||||||
1456 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1457 | else if (pid == 0
| 0-3720 | ||||||||||||||||||||||||||||||||||||||||||
1458 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1459 | close ( | - | ||||||||||||||||||||||||||||||||||||||||||
1460 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1461 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1462 | close ( | - | ||||||||||||||||||||||||||||||||||||||||||
1463 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1464 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1465 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1466 | else | - | ||||||||||||||||||||||||||||||||||||||||||
1467 | ++ executed 3720 times by 1 test: nprocs;++nprocs; Executed by:
executed 3720 times by 1 test: ++nprocs; Executed by:
| 3720 | ||||||||||||||||||||||||||||||||||||||||||
1468 | - | |||||||||||||||||||||||||||||||||||||||||||
1469 | return executed 3720 times by 1 test: pid;return pid; Executed by:
executed 3720 times by 1 test: return pid; Executed by:
| 3720 | ||||||||||||||||||||||||||||||||||||||||||
1470 | - | |||||||||||||||||||||||||||||||||||||||||||
1471 | - | |||||||||||||||||||||||||||||||||||||||||||
1472 | - | |||||||||||||||||||||||||||||||||||||||||||
1473 | - | |||||||||||||||||||||||||||||||||||||||||||
1474 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1475 | - | |||||||||||||||||||||||||||||||||||||||||||
1476 | - | |||||||||||||||||||||||||||||||||||||||||||
1477 | - | |||||||||||||||||||||||||||||||||||||||||||
1478 | - | |||||||||||||||||||||||||||||||||||||||||||
1479 | - | |||||||||||||||||||||||||||||||||||||||||||
1480 | - | |||||||||||||||||||||||||||||||||||||||||||
1481 | - | |||||||||||||||||||||||||||||||||||||||||||
1482 | static struct tempnode * | - | ||||||||||||||||||||||||||||||||||||||||||
1483 | maybe_create_temp (FILE **pfp, | - | ||||||||||||||||||||||||||||||||||||||||||
1484 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
1485 | survive_fd_exhaustion) | - | ||||||||||||||||||||||||||||||||||||||||||
1486 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1487 | int tempfd; | - | ||||||||||||||||||||||||||||||||||||||||||
1488 | struct tempnode *node = create_temp_file (&tempfd, survive_fd_exhaustion); | - | ||||||||||||||||||||||||||||||||||||||||||
1489 | if (! node
| 0-2378 | ||||||||||||||||||||||||||||||||||||||||||
1490 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1491 | ((void *)0) never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1492 | ; never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1493 | - | |||||||||||||||||||||||||||||||||||||||||||
1494 | node->state = UNCOMPRESSED; | - | ||||||||||||||||||||||||||||||||||||||||||
1495 | - | |||||||||||||||||||||||||||||||||||||||||||
1496 | if (compress_program
| 517-1861 | ||||||||||||||||||||||||||||||||||||||||||
1497 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1498 | int pipefds[2]; | - | ||||||||||||||||||||||||||||||||||||||||||
1499 | - | |||||||||||||||||||||||||||||||||||||||||||
1500 | node->pid = pipe_fork (pipefds, MAX_FORK_TRIES_COMPRESS); | - | ||||||||||||||||||||||||||||||||||||||||||
1501 | if (0 < node->pid
| 0-1861 | ||||||||||||||||||||||||||||||||||||||||||
1502 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1503 | close (tempfd); | - | ||||||||||||||||||||||||||||||||||||||||||
1504 | close (pipefds[0]); | - | ||||||||||||||||||||||||||||||||||||||||||
1505 | tempfd = pipefds[1]; | - | ||||||||||||||||||||||||||||||||||||||||||
1506 | - | |||||||||||||||||||||||||||||||||||||||||||
1507 | register_proc (node); | - | ||||||||||||||||||||||||||||||||||||||||||
1508 | } executed 1861 times by 1 test: end of block Executed by:
| 1861 | ||||||||||||||||||||||||||||||||||||||||||
1509 | else if (node->pid == 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1510 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1511 | - | |||||||||||||||||||||||||||||||||||||||||||
1512 | - | |||||||||||||||||||||||||||||||||||||||||||
1513 | close (pipefds[1]); | - | ||||||||||||||||||||||||||||||||||||||||||
1514 | move_fd (tempfd, | - | ||||||||||||||||||||||||||||||||||||||||||
1515 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1516 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1517 | move_fd (pipefds[0], | - | ||||||||||||||||||||||||||||||||||||||||||
1518 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1519 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1520 | - | |||||||||||||||||||||||||||||||||||||||||||
1521 | execlp (compress_program, compress_program, (char *) | - | ||||||||||||||||||||||||||||||||||||||||||
1522 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
1523 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1524 | - | |||||||||||||||||||||||||||||||||||||||||||
1525 | async_safe_die ( | - | ||||||||||||||||||||||||||||||||||||||||||
1526 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
1527 | , "couldn't execute compress program"); | - | ||||||||||||||||||||||||||||||||||||||||||
1528 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1529 | } executed 1861 times by 1 test: end of block Executed by:
| 1861 | ||||||||||||||||||||||||||||||||||||||||||
1530 | - | |||||||||||||||||||||||||||||||||||||||||||
1531 | *pfp = fdopen (tempfd, "w"); | - | ||||||||||||||||||||||||||||||||||||||||||
1532 | if (! *pfp
| 0-2378 | ||||||||||||||||||||||||||||||||||||||||||
1533 | sort_die ( never executed: sort_die ( dcgettext (((void *)0), "couldn't create temporary file" , 5) , node->name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1534 | dcgettext (((void *)0), never executed: sort_die ( dcgettext (((void *)0), "couldn't create temporary file" , 5) , node->name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1535 | "couldn't create temporary file" never executed: sort_die ( dcgettext (((void *)0), "couldn't create temporary file" , 5) , node->name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1536 | , 5) never executed: sort_die ( dcgettext (((void *)0), "couldn't create temporary file" , 5) , node->name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1537 | , node->name); never executed: sort_die ( dcgettext (((void *)0), "couldn't create temporary file" , 5) , node->name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1538 | - | |||||||||||||||||||||||||||||||||||||||||||
1539 | return executed 2378 times by 1 test: node;return node; Executed by:
executed 2378 times by 1 test: return node; Executed by:
| 2378 | ||||||||||||||||||||||||||||||||||||||||||
1540 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1541 | - | |||||||||||||||||||||||||||||||||||||||||||
1542 | - | |||||||||||||||||||||||||||||||||||||||||||
1543 | - | |||||||||||||||||||||||||||||||||||||||||||
1544 | - | |||||||||||||||||||||||||||||||||||||||||||
1545 | - | |||||||||||||||||||||||||||||||||||||||||||
1546 | static struct tempnode * | - | ||||||||||||||||||||||||||||||||||||||||||
1547 | create_temp (FILE **pfp) | - | ||||||||||||||||||||||||||||||||||||||||||
1548 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1549 | return executed 2350 times by 1 test: maybe_create_temp (pfp, return maybe_create_temp (pfp, 0 ); Executed by:
executed 2350 times by 1 test: return maybe_create_temp (pfp, 0 ); Executed by:
| 2350 | ||||||||||||||||||||||||||||||||||||||||||
1550 | 0 executed 2350 times by 1 test: return maybe_create_temp (pfp, 0 ); Executed by:
| 2350 | ||||||||||||||||||||||||||||||||||||||||||
1551 | ); executed 2350 times by 1 test: return maybe_create_temp (pfp, 0 ); Executed by:
| 2350 | ||||||||||||||||||||||||||||||||||||||||||
1552 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1553 | - | |||||||||||||||||||||||||||||||||||||||||||
1554 | - | |||||||||||||||||||||||||||||||||||||||||||
1555 | - | |||||||||||||||||||||||||||||||||||||||||||
1556 | - | |||||||||||||||||||||||||||||||||||||||||||
1557 | - | |||||||||||||||||||||||||||||||||||||||||||
1558 | - | |||||||||||||||||||||||||||||||||||||||||||
1559 | static FILE * | - | ||||||||||||||||||||||||||||||||||||||||||
1560 | open_temp (struct tempnode *temp) | - | ||||||||||||||||||||||||||||||||||||||||||
1561 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1562 | int tempfd, pipefds[2]; | - | ||||||||||||||||||||||||||||||||||||||||||
1563 | FILE *fp = | - | ||||||||||||||||||||||||||||||||||||||||||
1564 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
1565 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1566 | - | |||||||||||||||||||||||||||||||||||||||||||
1567 | if (temp->state == UNREAPED
| 20-1840 | ||||||||||||||||||||||||||||||||||||||||||
1568 | wait_proc (temp->pid); executed 20 times by 1 test: wait_proc (temp->pid); Executed by:
| 20 | ||||||||||||||||||||||||||||||||||||||||||
1569 | - | |||||||||||||||||||||||||||||||||||||||||||
1570 | tempfd = open (temp->name, | - | ||||||||||||||||||||||||||||||||||||||||||
1571 | 00 | - | ||||||||||||||||||||||||||||||||||||||||||
1572 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1573 | if (tempfd < 0
| 0-1859 | ||||||||||||||||||||||||||||||||||||||||||
1574 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1575 | ((void *)0) never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1576 | ; never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1577 | - | |||||||||||||||||||||||||||||||||||||||||||
1578 | pid_t child = pipe_fork (pipefds, MAX_FORK_TRIES_DECOMPRESS); | - | ||||||||||||||||||||||||||||||||||||||||||
1579 | - | |||||||||||||||||||||||||||||||||||||||||||
1580 | switch (child) | - | ||||||||||||||||||||||||||||||||||||||||||
1581 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1582 | case never executed: -1:case -1: never executed: case -1: | 0 | ||||||||||||||||||||||||||||||||||||||||||
1583 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||
1584 | (*
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1585 | !=
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1586 | 24
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1587 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
1588 | (( never executed: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, compress_program)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1589 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1590 | , never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1591 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1592 | "couldn't create process for %s -d" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1593 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1594 | , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1595 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1596 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1597 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1598 | , never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1599 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1600 | "couldn't create process for %s -d" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1601 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1602 | , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1603 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1604 | ) ? (void) 0 : __builtin_unreachable ())))) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1605 | ; never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, (*__errno_location ()), dcgettext (((void *)0), \"couldn't create process for %s -d\", 5), quotearg_style (shell_escape_always_quoting_style, com...nreachable ()))) : ((error (SORT_FAILURE, (*__errno_location ()) , dcgettext (((void *)0), "couldn't create process for %s -d" , 5) , quotearg_style (shell_escape_always_quoting_style, compress_program)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1606 | close (tempfd); | - | ||||||||||||||||||||||||||||||||||||||||||
1607 | - | |||||||||||||||||||||||||||||||||||||||||||
1608 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
1609 | = | - | ||||||||||||||||||||||||||||||||||||||||||
1610 | 24 | - | ||||||||||||||||||||||||||||||||||||||||||
1611 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1612 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1613 | - | |||||||||||||||||||||||||||||||||||||||||||
1614 | case never executed: 0:case 0: never executed: case 0: | 0 | ||||||||||||||||||||||||||||||||||||||||||
1615 | - | |||||||||||||||||||||||||||||||||||||||||||
1616 | - | |||||||||||||||||||||||||||||||||||||||||||
1617 | close (pipefds[0]); | - | ||||||||||||||||||||||||||||||||||||||||||
1618 | move_fd (tempfd, | - | ||||||||||||||||||||||||||||||||||||||||||
1619 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1620 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1621 | move_fd (pipefds[1], | - | ||||||||||||||||||||||||||||||||||||||||||
1622 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1623 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1624 | - | |||||||||||||||||||||||||||||||||||||||||||
1625 | execlp (compress_program, compress_program, "-d", (char *) | - | ||||||||||||||||||||||||||||||||||||||||||
1626 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
1627 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1628 | - | |||||||||||||||||||||||||||||||||||||||||||
1629 | async_safe_die ( | - | ||||||||||||||||||||||||||||||||||||||||||
1630 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
1631 | , "couldn't execute compress program (with -d)"); | - | ||||||||||||||||||||||||||||||||||||||||||
1632 | - | |||||||||||||||||||||||||||||||||||||||||||
1633 | default executed 1859 times by 1 test: default: Executed by:
code before this statement never executed: default: executed 1859 times by 1 test: :default: Executed by:
code before this statement never executed: default: executed 1859 times by 1 test: default: Executed by:
| 0-1859 | ||||||||||||||||||||||||||||||||||||||||||
1634 | temp->pid = child; | - | ||||||||||||||||||||||||||||||||||||||||||
1635 | register_proc (temp); | - | ||||||||||||||||||||||||||||||||||||||||||
1636 | close (tempfd); | - | ||||||||||||||||||||||||||||||||||||||||||
1637 | close (pipefds[1]); | - | ||||||||||||||||||||||||||||||||||||||||||
1638 | - | |||||||||||||||||||||||||||||||||||||||||||
1639 | fp = fdopen (pipefds[0], "r"); | - | ||||||||||||||||||||||||||||||||||||||||||
1640 | if (! fp
| 0-1859 | ||||||||||||||||||||||||||||||||||||||||||
1641 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1642 | int saved_errno = | - | ||||||||||||||||||||||||||||||||||||||||||
1643 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
1644 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1645 | close (pipefds[0]); | - | ||||||||||||||||||||||||||||||||||||||||||
1646 | - | |||||||||||||||||||||||||||||||||||||||||||
1647 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
1648 | = saved_errno; | - | ||||||||||||||||||||||||||||||||||||||||||
1649 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1650 | break; executed 1859 times by 1 test: break; Executed by:
| 1859 | ||||||||||||||||||||||||||||||||||||||||||
1651 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1652 | - | |||||||||||||||||||||||||||||||||||||||||||
1653 | return executed 1859 times by 1 test: fp;return fp; Executed by:
executed 1859 times by 1 test: return fp; Executed by:
| 1859 | ||||||||||||||||||||||||||||||||||||||||||
1654 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1655 | - | |||||||||||||||||||||||||||||||||||||||||||
1656 | - | |||||||||||||||||||||||||||||||||||||||||||
1657 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
1658 | add_temp_dir (char const *dir) | - | ||||||||||||||||||||||||||||||||||||||||||
1659 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1660 | if (temp_dir_count == temp_dir_alloc
| 0-777 | ||||||||||||||||||||||||||||||||||||||||||
1661 | temp_dirs = ((void) (!!sizeof (struct { _Static_assert (sizeof *(temp_dirs) != 1, "verify_true (" "sizeof *(temp_dirs) != 1" ")"); int _gl_dummy; })), x2nrealloc (temp_dirs, &temp_dir_alloc, sizeof *(temp_dirs))); executed 777 times by 1 test: temp_dirs = ((void) (!!sizeof (struct { _Static_assert (sizeof *(temp_dirs) != 1, "verify_true (" "sizeof *(temp_dirs) != 1" ")"); int _gl_dummy; })), x2nrealloc (temp_dirs, &temp_dir_alloc, sizeof *(temp_dirs))); Executed by:
| 777 | ||||||||||||||||||||||||||||||||||||||||||
1662 | - | |||||||||||||||||||||||||||||||||||||||||||
1663 | temp_dirs[temp_dir_count++] = dir; | - | ||||||||||||||||||||||||||||||||||||||||||
1664 | } executed 777 times by 1 test: end of block Executed by:
| 777 | ||||||||||||||||||||||||||||||||||||||||||
1665 | - | |||||||||||||||||||||||||||||||||||||||||||
1666 | - | |||||||||||||||||||||||||||||||||||||||||||
1667 | - | |||||||||||||||||||||||||||||||||||||||||||
1668 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
1669 | zaptemp (char const *name) | - | ||||||||||||||||||||||||||||||||||||||||||
1670 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1671 | struct tempnode *volatile *pnode; | - | ||||||||||||||||||||||||||||||||||||||||||
1672 | struct tempnode *node; | - | ||||||||||||||||||||||||||||||||||||||||||
1673 | struct tempnode *next; | - | ||||||||||||||||||||||||||||||||||||||||||
1674 | int unlink_status; | - | ||||||||||||||||||||||||||||||||||||||||||
1675 | int unlink_errno = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
1676 | struct cs_status cs; | - | ||||||||||||||||||||||||||||||||||||||||||
1677 | - | |||||||||||||||||||||||||||||||||||||||||||
1678 | for (pnode = &temphead; (
| 2371-11174 | ||||||||||||||||||||||||||||||||||||||||||
1679 | continue; executed 11174 times by 1 test: continue; Executed by:
| 11174 | ||||||||||||||||||||||||||||||||||||||||||
1680 | - | |||||||||||||||||||||||||||||||||||||||||||
1681 | if (node->state == UNREAPED
| 524-1847 | ||||||||||||||||||||||||||||||||||||||||||
1682 | wait_proc (node->pid); executed 1847 times by 1 test: wait_proc (node->pid); Executed by:
| 1847 | ||||||||||||||||||||||||||||||||||||||||||
1683 | - | |||||||||||||||||||||||||||||||||||||||||||
1684 | - | |||||||||||||||||||||||||||||||||||||||||||
1685 | next = node->next; | - | ||||||||||||||||||||||||||||||||||||||||||
1686 | cs_enter (&cs); | - | ||||||||||||||||||||||||||||||||||||||||||
1687 | unlink_status = unlink (name); | - | ||||||||||||||||||||||||||||||||||||||||||
1688 | unlink_errno = | - | ||||||||||||||||||||||||||||||||||||||||||
1689 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
1690 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1691 | *pnode = next; | - | ||||||||||||||||||||||||||||||||||||||||||
1692 | cs_leave (&cs); | - | ||||||||||||||||||||||||||||||||||||||||||
1693 | - | |||||||||||||||||||||||||||||||||||||||||||
1694 | if (unlink_status != 0
| 0-2370 | ||||||||||||||||||||||||||||||||||||||||||
1695 | error (0, unlink_errno, never executed: error (0, unlink_errno, dcgettext (((void *)0), "warning: cannot remove: %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, name)); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1696 | dcgettext (((void *)0), never executed: error (0, unlink_errno, dcgettext (((void *)0), "warning: cannot remove: %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, name)); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1697 | "warning: cannot remove: %s" never executed: error (0, unlink_errno, dcgettext (((void *)0), "warning: cannot remove: %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, name)); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1698 | , 5) never executed: error (0, unlink_errno, dcgettext (((void *)0), "warning: cannot remove: %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, name)); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1699 | , quotearg_n_style_colon (0, shell_escape_quoting_style, name)); never executed: error (0, unlink_errno, dcgettext (((void *)0), "warning: cannot remove: %s" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, name)); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1700 | if (! next
| 117-2253 | ||||||||||||||||||||||||||||||||||||||||||
1701 | temptail = pnode; executed 117 times by 1 test: temptail = pnode; Executed by:
| 117 | ||||||||||||||||||||||||||||||||||||||||||
1702 | free (node); | - | ||||||||||||||||||||||||||||||||||||||||||
1703 | } executed 2370 times by 1 test: end of block Executed by:
| 2370 | ||||||||||||||||||||||||||||||||||||||||||
1704 | - | |||||||||||||||||||||||||||||||||||||||||||
1705 | - | |||||||||||||||||||||||||||||||||||||||||||
1706 | - | |||||||||||||||||||||||||||||||||||||||||||
1707 | static int | - | ||||||||||||||||||||||||||||||||||||||||||
1708 | struct_month_cmp (void const *m1, void const *m2) | - | ||||||||||||||||||||||||||||||||||||||||||
1709 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1710 | struct month const *month1 = m1; | - | ||||||||||||||||||||||||||||||||||||||||||
1711 | struct month const *month2 = m2; | - | ||||||||||||||||||||||||||||||||||||||||||
1712 | return executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1713 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1714 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1715 | ) && __builtin_constant_p ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1716 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1717 | ) && (__s1_len = __builtin_strlen ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1718 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1719 | ), __s2_len = __builtin_strlen ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1720 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1721 | ), (!((size_t)(const void *)(( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1722 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1723 | ) + 1) - (size_t)(const void *)( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1724 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1725 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1726 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1727 | ) + 1) - (size_t)(const void *)( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1728 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1729 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1730 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1731 | , executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1732 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1733 | ) : (__builtin_constant_p ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1734 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1735 | ) && ((size_t)(const void *)(( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1736 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1737 | ) + 1) - (size_t)(const void *)( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1738 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1739 | ) == 1) && (__s1_len = __builtin_strlen ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1740 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1741 | ), __s1_len < 4) ? (__builtin_constant_p ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1742 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1743 | ) && ((size_t)(const void *)(( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1744 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1745 | ) + 1) - (size_t)(const void *)( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1746 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1747 | ) == 1) ? __builtin_strcmp ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1748 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1749 | , executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1750 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1751 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1752 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1753 | ); int __result = (((const unsigned char *) (const char *) ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1754 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1755 | ))[0] - __s2[0]); if (__s1_len > 0
executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 0-60 | ||||||||||||||||||||||||||||||||||||||||||
1756 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1757 | ))[1] - __s2[1]); if (__s1_len > 1
executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 0-60 | ||||||||||||||||||||||||||||||||||||||||||
1758 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1759 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( month1->name ))[3] - __s2[3]); executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 0-60 | ||||||||||||||||||||||||||||||||||||||||||
1760 | month1->name never executed: __result = (((const unsigned char *) (const char *) ( month1->name ))[3] - __s2[3]); executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 0-60 | ||||||||||||||||||||||||||||||||||||||||||
1761 | ))[3] - __s2[3]); never executed: }__result = (((const unsigned char *) (const char *) ( month1->name ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 0-60 | ||||||||||||||||||||||||||||||||||||||||||
1762 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1763 | ) && ((size_t)(const void *)(( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1764 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1765 | ) + 1) - (size_t)(const void *)( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1766 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1767 | ) == 1) && (__s2_len = __builtin_strlen ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1768 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1769 | ), __s2_len < 4) ? (__builtin_constant_p ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1770 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1771 | ) && ((size_t)(const void *)(( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1772 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1773 | ) + 1) - (size_t)(const void *)( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1774 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1775 | ) == 1) ? __builtin_strcmp ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1776 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1777 | , executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1778 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1779 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1780 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1781 | ); int __result = (((const unsigned char *) (const char *) ( executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1782 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1783 | ))[0] - __s2[0]); if (__s2_len > 0
executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 0-60 | ||||||||||||||||||||||||||||||||||||||||||
1784 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1785 | ))[1] - __s2[1]); if (__s2_len > 1
executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 0-60 | ||||||||||||||||||||||||||||||||||||||||||
1786 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1787 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 0-60 | ||||||||||||||||||||||||||||||||||||||||||
1788 | month2->name never executed: __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 0-60 | ||||||||||||||||||||||||||||||||||||||||||
1789 | ))[3] - __s2[3]); never executed: }__result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : __builtin_strcmp (end of block executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 0-60 | ||||||||||||||||||||||||||||||||||||||||||
1790 | month1->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1791 | , executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1792 | month2->name executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1793 | )))); }) executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1794 | ; executed 60 times by 1 test: return __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( month1->name ) && __builtin_constant_p ( month2->name ) && (__s1_len = __builtin_strlen ( month1->name ), __s2_len = __builtin_strlen ( month2->name ), (!((size_t)(const void *)(( ... char *) (const char *) ( month2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( month2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( month1->name , month2->name )))); }) ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1795 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1796 | - | |||||||||||||||||||||||||||||||||||||||||||
1797 | - | |||||||||||||||||||||||||||||||||||||||||||
1798 | - | |||||||||||||||||||||||||||||||||||||||||||
1799 | - | |||||||||||||||||||||||||||||||||||||||||||
1800 | - | |||||||||||||||||||||||||||||||||||||||||||
1801 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
1802 | inittables (void) | - | ||||||||||||||||||||||||||||||||||||||||||
1803 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1804 | size_t i; | - | ||||||||||||||||||||||||||||||||||||||||||
1805 | - | |||||||||||||||||||||||||||||||||||||||||||
1806 | for (i = 0; i < (
| 859-219904 | ||||||||||||||||||||||||||||||||||||||||||
1807 | (0x7f * 2 + 1)
| 859-219904 | ||||||||||||||||||||||||||||||||||||||||||
1808 | + 1)
| 859-219904 | ||||||||||||||||||||||||||||||||||||||||||
1809 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1810 | blanks[i] = field_sep (i); | - | ||||||||||||||||||||||||||||||||||||||||||
1811 | nonprinting[i] = ! | - | ||||||||||||||||||||||||||||||||||||||||||
1812 | ((*__ctype_b_loc ())[(int) (( | - | ||||||||||||||||||||||||||||||||||||||||||
1813 | i | - | ||||||||||||||||||||||||||||||||||||||||||
1814 | ))] & (unsigned short int) _ISprint) | - | ||||||||||||||||||||||||||||||||||||||||||
1815 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1816 | nondictionary[i] = !
| 53258-166646 | ||||||||||||||||||||||||||||||||||||||||||
1817 | ((*__ctype_b_loc ())[(int) ((
| 53258-166646 | ||||||||||||||||||||||||||||||||||||||||||
1818 | i
| 53258-166646 | ||||||||||||||||||||||||||||||||||||||||||
1819 | ))] & (unsigned short int) _ISalnum)
| 53258-166646 | ||||||||||||||||||||||||||||||||||||||||||
1820 | && ! field_sep (i)
| 2577-164069 | ||||||||||||||||||||||||||||||||||||||||||
1821 | fold_toupper[i] = | - | ||||||||||||||||||||||||||||||||||||||||||
1822 | (__extension__ ({ int __res; if (sizeof (
| 0-219904 | ||||||||||||||||||||||||||||||||||||||||||
1823 | i
| 0-219904 | ||||||||||||||||||||||||||||||||||||||||||
1824 | ) > 1
| 0-219904 | ||||||||||||||||||||||||||||||||||||||||||
1825 | i
| 0-219904 | ||||||||||||||||||||||||||||||||||||||||||
1826 | )
| 0-219904 | ||||||||||||||||||||||||||||||||||||||||||
1827 | i | - | ||||||||||||||||||||||||||||||||||||||||||
1828 | ); __res = __c < -128
never executed: else __res = toupper (end of block executed 219904 times by 1 test: __res = toupper ( i ); Executed by:
| 0-219904 | ||||||||||||||||||||||||||||||||||||||||||
1829 | i executed 219904 times by 1 test: __res = toupper ( i ); Executed by:
| 219904 | ||||||||||||||||||||||||||||||||||||||||||
1830 | ); executed 219904 times by 1 test: } else __res = (*__ctype_toupper_loc ())[(int) (__res = toupper ( i ); Executed by:
never executed: __res = (*__ctype_toupper_loc ())[(int) ( i )]; | 0-219904 | ||||||||||||||||||||||||||||||||||||||||||
1831 | i never executed: __res = (*__ctype_toupper_loc ())[(int) ( i )]; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1832 | )]; never executed: __res; }))__res = (*__ctype_toupper_loc ())[(int) ( i )]; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1833 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1834 | } executed 219904 times by 1 test: end of block Executed by:
| 219904 | ||||||||||||||||||||||||||||||||||||||||||
1835 | - | |||||||||||||||||||||||||||||||||||||||||||
1836 | - | |||||||||||||||||||||||||||||||||||||||||||
1837 | - | |||||||||||||||||||||||||||||||||||||||||||
1838 | if (hard_LC_TIME
| 2-857 | ||||||||||||||||||||||||||||||||||||||||||
1839 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1840 | for (i = 0; i < 12
| 2-24 | ||||||||||||||||||||||||||||||||||||||||||
1841 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1842 | char const *s; | - | ||||||||||||||||||||||||||||||||||||||||||
1843 | size_t s_len; | - | ||||||||||||||||||||||||||||||||||||||||||
1844 | size_t j, k; | - | ||||||||||||||||||||||||||||||||||||||||||
1845 | char *name; | - | ||||||||||||||||||||||||||||||||||||||||||
1846 | - | |||||||||||||||||||||||||||||||||||||||||||
1847 | s = | - | ||||||||||||||||||||||||||||||||||||||||||
1848 | rpl_nl_langinfo | - | ||||||||||||||||||||||||||||||||||||||||||
1849 | ( | - | ||||||||||||||||||||||||||||||||||||||||||
1850 | ABMON_1 | - | ||||||||||||||||||||||||||||||||||||||||||
1851 | + i); | - | ||||||||||||||||||||||||||||||||||||||||||
1852 | s_len = strlen (s); | - | ||||||||||||||||||||||||||||||||||||||||||
1853 | monthtab[i].name = name = xmalloc (s_len + 1); | - | ||||||||||||||||||||||||||||||||||||||||||
1854 | monthtab[i].val = i + 1; | - | ||||||||||||||||||||||||||||||||||||||||||
1855 | - | |||||||||||||||||||||||||||||||||||||||||||
1856 | for (j = k = 0; j < s_len
| 24-72 | ||||||||||||||||||||||||||||||||||||||||||
1857 | if (!
| 0-72 | ||||||||||||||||||||||||||||||||||||||||||
1858 | ((*__ctype_b_loc ())[(int) ((
| 0-72 | ||||||||||||||||||||||||||||||||||||||||||
1859 | to_uchar (s[j])
| 0-72 | ||||||||||||||||||||||||||||||||||||||||||
1860 | ))] & (unsigned short int) _ISblank)
| 0-72 | ||||||||||||||||||||||||||||||||||||||||||
1861 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
1862 | name[k++] = fold_toupper[to_uchar (s[j])]; executed 72 times by 1 test: name[k++] = fold_toupper[to_uchar (s[j])]; Executed by:
| 72 | ||||||||||||||||||||||||||||||||||||||||||
1863 | name[k] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||
1864 | } executed 24 times by 1 test: end of block Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||||||||
1865 | qsort (monthtab, 12, sizeof *monthtab, struct_month_cmp); | - | ||||||||||||||||||||||||||||||||||||||||||
1866 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
1867 | - | |||||||||||||||||||||||||||||||||||||||||||
1868 | } executed 859 times by 1 test: end of block Executed by:
| 859 | ||||||||||||||||||||||||||||||||||||||||||
1869 | - | |||||||||||||||||||||||||||||||||||||||||||
1870 | - | |||||||||||||||||||||||||||||||||||||||||||
1871 | - | |||||||||||||||||||||||||||||||||||||||||||
1872 | - | |||||||||||||||||||||||||||||||||||||||||||
1873 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
1874 | specify_nmerge (int oi, char c, char const *s) | - | ||||||||||||||||||||||||||||||||||||||||||
1875 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1876 | uintmax_t n; | - | ||||||||||||||||||||||||||||||||||||||||||
1877 | struct rlimit rlimit; | - | ||||||||||||||||||||||||||||||||||||||||||
1878 | enum strtol_error e = xstrtoumax (s, | - | ||||||||||||||||||||||||||||||||||||||||||
1879 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
1880 | , 10, &n, | - | ||||||||||||||||||||||||||||||||||||||||||
1881 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
1882 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1883 | - | |||||||||||||||||||||||||||||||||||||||||||
1884 | - | |||||||||||||||||||||||||||||||||||||||||||
1885 | - | |||||||||||||||||||||||||||||||||||||||||||
1886 | - | |||||||||||||||||||||||||||||||||||||||||||
1887 | unsigned int max_nmerge = ((getrlimit (
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||
1888 | RLIMIT_NOFILE
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||
1889 | , &rlimit) == 0
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||
1890 | ? rlimit.rlim_cur | - | ||||||||||||||||||||||||||||||||||||||||||
1891 | : 20) | - | ||||||||||||||||||||||||||||||||||||||||||
1892 | - 3); | - | ||||||||||||||||||||||||||||||||||||||||||
1893 | - | |||||||||||||||||||||||||||||||||||||||||||
1894 | if (e == LONGINT_OK
| 3-11 | ||||||||||||||||||||||||||||||||||||||||||
1895 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1896 | nmerge = n; | - | ||||||||||||||||||||||||||||||||||||||||||
1897 | if (nmerge != n
| 0-11 | ||||||||||||||||||||||||||||||||||||||||||
1898 | e = LONGINT_OVERFLOW; never executed: e = LONGINT_OVERFLOW; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1899 | else | - | ||||||||||||||||||||||||||||||||||||||||||
1900 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1901 | if (nmerge < 2
| 2-9 | ||||||||||||||||||||||||||||||||||||||||||
1902 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1903 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1904 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1905 | "invalid --%s argument %s" | - | ||||||||||||||||||||||||||||||||||||||||||
1906 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1907 | , | - | ||||||||||||||||||||||||||||||||||||||||||
1908 | long_options[oi].name, quote (s)); | - | ||||||||||||||||||||||||||||||||||||||||||
1909 | ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"minimum --%s argument is %s\", 5), long_options[oi].name, quote (\"2\")), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1910 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1911 | "minimum --%s argument is %s" | - | ||||||||||||||||||||||||||||||||||||||||||
1912 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1913 | , long_options[oi].name, quote ("2")), (( | - | ||||||||||||||||||||||||||||||||||||||||||
1914 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1915 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1916 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1917 | "minimum --%s argument is %s" | - | ||||||||||||||||||||||||||||||||||||||||||
1918 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1919 | , long_options[oi].name, quote ("2")), (( | - | ||||||||||||||||||||||||||||||||||||||||||
1920 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1921 | ) ? (void) 0 : __builtin_unreachable ())))) | - | ||||||||||||||||||||||||||||||||||||||||||
1922 | - | |||||||||||||||||||||||||||||||||||||||||||
1923 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1924 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1925 | else if (max_nmerge < nmerge
| 0-9 | ||||||||||||||||||||||||||||||||||||||||||
1926 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1927 | e = LONGINT_OVERFLOW; | - | ||||||||||||||||||||||||||||||||||||||||||
1928 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1929 | else | - | ||||||||||||||||||||||||||||||||||||||||||
1930 | return; executed 9 times by 1 test: return; Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||||||||
1931 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1932 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1933 | - | |||||||||||||||||||||||||||||||||||||||||||
1934 | if (e == LONGINT_OVERFLOW
| 1-2 | ||||||||||||||||||||||||||||||||||||||||||
1935 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1936 | char max_nmerge_buf[((((((sizeof (max_nmerge) * 8) - (! ((__typeof__ (max_nmerge)) 0 < (__typeof__ (max_nmerge)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (max_nmerge)) 0 < (__typeof__ (max_nmerge)) -1))) + 1)]; | - | ||||||||||||||||||||||||||||||||||||||||||
1937 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1938 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1939 | "--%s argument %s too large" | - | ||||||||||||||||||||||||||||||||||||||||||
1940 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1941 | , | - | ||||||||||||||||||||||||||||||||||||||||||
1942 | long_options[oi].name, quote (s)); | - | ||||||||||||||||||||||||||||||||||||||||||
1943 | ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"maximum --%s argument with current rlimit is %s\", 5), long_options[oi].name, uinttostr (max_nmerge, max_nmerge_buf)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1944 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1945 | "maximum --%s argument with current rlimit is %s" | - | ||||||||||||||||||||||||||||||||||||||||||
1946 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1947 | , long_options[oi].name, uinttostr (max_nmerge, max_nmerge_buf)), (( | - | ||||||||||||||||||||||||||||||||||||||||||
1948 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1949 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1950 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1951 | "maximum --%s argument with current rlimit is %s" | - | ||||||||||||||||||||||||||||||||||||||||||
1952 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1953 | , long_options[oi].name, uinttostr (max_nmerge, max_nmerge_buf)), (( | - | ||||||||||||||||||||||||||||||||||||||||||
1954 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1955 | ) ? (void) 0 : __builtin_unreachable ())))) | - | ||||||||||||||||||||||||||||||||||||||||||
1956 | - | |||||||||||||||||||||||||||||||||||||||||||
1957 | - | |||||||||||||||||||||||||||||||||||||||||||
1958 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1959 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1960 | else | - | ||||||||||||||||||||||||||||||||||||||||||
1961 | xstrtol_fatal (e, oi, c, long_options, s); executed 2 times by 1 test: xstrtol_fatal (e, oi, c, long_options, s); Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
1962 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1963 | - | |||||||||||||||||||||||||||||||||||||||||||
1964 | - | |||||||||||||||||||||||||||||||||||||||||||
1965 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
1966 | specify_sort_size (int oi, char c, char const *s) | - | ||||||||||||||||||||||||||||||||||||||||||
1967 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1968 | uintmax_t n; | - | ||||||||||||||||||||||||||||||||||||||||||
1969 | char *suffix; | - | ||||||||||||||||||||||||||||||||||||||||||
1970 | enum strtol_error e = xstrtoumax (s, &suffix, 10, &n, "EgGkKmMPtTYZ"); | - | ||||||||||||||||||||||||||||||||||||||||||
1971 | - | |||||||||||||||||||||||||||||||||||||||||||
1972 | - | |||||||||||||||||||||||||||||||||||||||||||
1973 | if (e == LONGINT_OK
| 6-15 | ||||||||||||||||||||||||||||||||||||||||||
1974 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1975 | if (n <=
| 0-6 | ||||||||||||||||||||||||||||||||||||||||||
1976 | (18446744073709551615UL)
| 0-6 | ||||||||||||||||||||||||||||||||||||||||||
1977 | / 1024
| 0-6 | ||||||||||||||||||||||||||||||||||||||||||
1978 | n *= 1024; executed 6 times by 1 test: n *= 1024; Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1979 | else | - | ||||||||||||||||||||||||||||||||||||||||||
1980 | e = LONGINT_OVERFLOW; never executed: e = LONGINT_OVERFLOW; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1981 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1982 | - | |||||||||||||||||||||||||||||||||||||||||||
1983 | - | |||||||||||||||||||||||||||||||||||||||||||
1984 | if (e == LONGINT_INVALID_SUFFIX_CHAR
| 0-15 | ||||||||||||||||||||||||||||||||||||||||||
1985 | switch (suffix[0]) | - | ||||||||||||||||||||||||||||||||||||||||||
1986 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1987 | case executed 13 times by 1 test: 'b':case 'b': Executed by:
executed 13 times by 1 test: case 'b': Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
1988 | e = LONGINT_OK; | - | ||||||||||||||||||||||||||||||||||||||||||
1989 | break; executed 13 times by 1 test: break; Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
1990 | - | |||||||||||||||||||||||||||||||||||||||||||
1991 | case never executed: '%':case '%': never executed: case '%': | 0 | ||||||||||||||||||||||||||||||||||||||||||
1992 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1993 | double mem = physmem_total () * n / 100; | - | ||||||||||||||||||||||||||||||||||||||||||
1994 | - | |||||||||||||||||||||||||||||||||||||||||||
1995 | - | |||||||||||||||||||||||||||||||||||||||||||
1996 | if (mem <
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1997 | (18446744073709551615UL)
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1998 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
1999 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2000 | n = mem; | - | ||||||||||||||||||||||||||||||||||||||||||
2001 | e = LONGINT_OK; | - | ||||||||||||||||||||||||||||||||||||||||||
2002 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
2003 | else | - | ||||||||||||||||||||||||||||||||||||||||||
2004 | e = LONGINT_OVERFLOW; never executed: e = LONGINT_OVERFLOW; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2005 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2006 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2007 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
2008 | - | |||||||||||||||||||||||||||||||||||||||||||
2009 | if (e == LONGINT_OK
| 0-28 | ||||||||||||||||||||||||||||||||||||||||||
2010 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2011 | - | |||||||||||||||||||||||||||||||||||||||||||
2012 | - | |||||||||||||||||||||||||||||||||||||||||||
2013 | if (n < sort_size
| 0-28 | ||||||||||||||||||||||||||||||||||||||||||
2014 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2015 | - | |||||||||||||||||||||||||||||||||||||||||||
2016 | sort_size = n; | - | ||||||||||||||||||||||||||||||||||||||||||
2017 | if (sort_size == n
| 0-28 | ||||||||||||||||||||||||||||||||||||||||||
2018 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2019 | sort_size = | - | ||||||||||||||||||||||||||||||||||||||||||
2020 | (((
| 13-15 | ||||||||||||||||||||||||||||||||||||||||||
2021 | sort_size
| 13-15 | ||||||||||||||||||||||||||||||||||||||||||
2022 | )>(
| 13-15 | ||||||||||||||||||||||||||||||||||||||||||
2023 | (nmerge * (2 + sizeof (struct line)))
| 13-15 | ||||||||||||||||||||||||||||||||||||||||||
2024 | ))
| 13-15 | ||||||||||||||||||||||||||||||||||||||||||
2025 | sort_size | - | ||||||||||||||||||||||||||||||||||||||||||
2026 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
2027 | (nmerge * (2 + sizeof (struct line))) | - | ||||||||||||||||||||||||||||||||||||||||||
2028 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
2029 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
2030 | return; executed 28 times by 1 test: return; Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||
2031 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2032 | - | |||||||||||||||||||||||||||||||||||||||||||
2033 | e = LONGINT_OVERFLOW; | - | ||||||||||||||||||||||||||||||||||||||||||
2034 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
2035 | - | |||||||||||||||||||||||||||||||||||||||||||
2036 | xstrtol_fatal (e, oi, c, long_options, s); | - | ||||||||||||||||||||||||||||||||||||||||||
2037 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
2038 | - | |||||||||||||||||||||||||||||||||||||||||||
2039 | - | |||||||||||||||||||||||||||||||||||||||||||
2040 | static size_t | - | ||||||||||||||||||||||||||||||||||||||||||
2041 | specify_nthreads (int oi, char c, char const *s) | - | ||||||||||||||||||||||||||||||||||||||||||
2042 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2043 | unsigned long int nthreads; | - | ||||||||||||||||||||||||||||||||||||||||||
2044 | enum strtol_error e = xstrtoul (s, | - | ||||||||||||||||||||||||||||||||||||||||||
2045 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
2046 | , 10, &nthreads, ""); | - | ||||||||||||||||||||||||||||||||||||||||||
2047 | if (e == LONGINT_OVERFLOW
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||
2048 | return never executed: return (18446744073709551615UL) ; never executed: return (18446744073709551615UL) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2049 | (18446744073709551615UL) never executed: return (18446744073709551615UL) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2050 | ; never executed: return (18446744073709551615UL) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2051 | if (e != LONGINT_OK
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||
2052 | xstrtol_fatal (e, oi, c, long_options, s); never executed: xstrtol_fatal (e, oi, c, long_options, s); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2053 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||
2054 | (
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||
2055 | < nthreads
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||
2056 | nthreads = never executed: nthreads = (18446744073709551615UL) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2057 | (18446744073709551615UL) never executed: nthreads = (18446744073709551615UL) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2058 | ; never executed: nthreads = (18446744073709551615UL) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2059 | if (nthreads == 0
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||
2060 | (( never executed: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2061 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2062 | "number in parallel must be nonzero" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2063 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2064 | ), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2065 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2066 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2067 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2068 | "number in parallel must be nonzero" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2069 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2070 | ), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2071 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2072 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"number in parallel must be nonzero\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcg...t (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "number in parallel must be nonzero" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2073 | return executed 14 times by 1 test: nthreads;return nthreads; Executed by:
executed 14 times by 1 test: return nthreads; Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||
2074 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2075 | - | |||||||||||||||||||||||||||||||||||||||||||
2076 | - | |||||||||||||||||||||||||||||||||||||||||||
2077 | static size_t | - | ||||||||||||||||||||||||||||||||||||||||||
2078 | default_sort_size (void) | - | ||||||||||||||||||||||||||||||||||||||||||
2079 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2080 | - | |||||||||||||||||||||||||||||||||||||||||||
2081 | - | |||||||||||||||||||||||||||||||||||||||||||
2082 | - | |||||||||||||||||||||||||||||||||||||||||||
2083 | - | |||||||||||||||||||||||||||||||||||||||||||
2084 | size_t size = | - | ||||||||||||||||||||||||||||||||||||||||||
2085 | (18446744073709551615UL) | - | ||||||||||||||||||||||||||||||||||||||||||
2086 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
2087 | struct rlimit rlimit; | - | ||||||||||||||||||||||||||||||||||||||||||
2088 | if (getrlimit (
| 0-685 | ||||||||||||||||||||||||||||||||||||||||||
2089 | RLIMIT_DATA
| 0-685 | ||||||||||||||||||||||||||||||||||||||||||
2090 | , &rlimit) == 0
| 0-685 | ||||||||||||||||||||||||||||||||||||||||||
2091 | size = rlimit.rlim_cur; never executed: size = rlimit.rlim_cur; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2092 | - | |||||||||||||||||||||||||||||||||||||||||||
2093 | if (getrlimit (
| 0-685 | ||||||||||||||||||||||||||||||||||||||||||
2094 | RLIMIT_AS
| 0-685 | ||||||||||||||||||||||||||||||||||||||||||
2095 | , &rlimit) == 0
| 0-685 | ||||||||||||||||||||||||||||||||||||||||||
2096 | size = rlimit.rlim_cur; never executed: size = rlimit.rlim_cur; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2097 | - | |||||||||||||||||||||||||||||||||||||||||||
2098 | - | |||||||||||||||||||||||||||||||||||||||||||
2099 | - | |||||||||||||||||||||||||||||||||||||||||||
2100 | - | |||||||||||||||||||||||||||||||||||||||||||
2101 | size /= 2; | - | ||||||||||||||||||||||||||||||||||||||||||
2102 | - | |||||||||||||||||||||||||||||||||||||||||||
2103 | - | |||||||||||||||||||||||||||||||||||||||||||
2104 | - | |||||||||||||||||||||||||||||||||||||||||||
2105 | - | |||||||||||||||||||||||||||||||||||||||||||
2106 | if (getrlimit (
| 0-685 | ||||||||||||||||||||||||||||||||||||||||||
2107 | __RLIMIT_RSS
| 0-685 | ||||||||||||||||||||||||||||||||||||||||||
2108 | , &rlimit) == 0
| 0-685 | ||||||||||||||||||||||||||||||||||||||||||
2109 | size = rlimit.rlim_cur / 16 * 15; never executed: size = rlimit.rlim_cur / 16 * 15; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2110 | - | |||||||||||||||||||||||||||||||||||||||||||
2111 | - | |||||||||||||||||||||||||||||||||||||||||||
2112 | - | |||||||||||||||||||||||||||||||||||||||||||
2113 | - | |||||||||||||||||||||||||||||||||||||||||||
2114 | double avail = physmem_available (); | - | ||||||||||||||||||||||||||||||||||||||||||
2115 | double total = physmem_total (); | - | ||||||||||||||||||||||||||||||||||||||||||
2116 | double mem = | - | ||||||||||||||||||||||||||||||||||||||||||
2117 | (((
| 85-600 | ||||||||||||||||||||||||||||||||||||||||||
2118 | avail
| 85-600 | ||||||||||||||||||||||||||||||||||||||||||
2119 | )>(
| 85-600 | ||||||||||||||||||||||||||||||||||||||||||
2120 | total / 8
| 85-600 | ||||||||||||||||||||||||||||||||||||||||||
2121 | ))
| 85-600 | ||||||||||||||||||||||||||||||||||||||||||
2122 | avail | - | ||||||||||||||||||||||||||||||||||||||||||
2123 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
2124 | total / 8 | - | ||||||||||||||||||||||||||||||||||||||||||
2125 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
2126 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
2127 | - | |||||||||||||||||||||||||||||||||||||||||||
2128 | - | |||||||||||||||||||||||||||||||||||||||||||
2129 | if (total * 0.75 < size
| 0-685 | ||||||||||||||||||||||||||||||||||||||||||
2130 | size = total * 0.75; executed 685 times by 1 test: size = total * 0.75; Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2131 | - | |||||||||||||||||||||||||||||||||||||||||||
2132 | - | |||||||||||||||||||||||||||||||||||||||||||
2133 | - | |||||||||||||||||||||||||||||||||||||||||||
2134 | - | |||||||||||||||||||||||||||||||||||||||||||
2135 | if (mem < size
| 0-685 | ||||||||||||||||||||||||||||||||||||||||||
2136 | size = mem; executed 685 times by 1 test: size = mem; Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2137 | return executed 685 times by 1 test: return ((( size )>( (nmerge * (2 + sizeof (struct line))) ))?( size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
executed 685 times by 1 test: return ((( size )>( (nmerge * (2 + sizeof (struct line))) ))?( size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2138 | ((( executed 685 times by 1 test: return ((( size )>( (nmerge * (2 + sizeof (struct line))) ))?( size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2139 | size executed 685 times by 1 test: return ((( size )>( (nmerge * (2 + sizeof (struct line))) ))?( size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2140 | )>( executed 685 times by 1 test: return ((( size )>( (nmerge * (2 + sizeof (struct line))) ))?( size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2141 | (nmerge * (2 + sizeof (struct line))) executed 685 times by 1 test: return ((( size )>( (nmerge * (2 + sizeof (struct line))) ))?( size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2142 | ))?( executed 685 times by 1 test: return ((( size )>( (nmerge * (2 + sizeof (struct line))) ))?( size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2143 | size executed 685 times by 1 test: return ((( size )>( (nmerge * (2 + sizeof (struct line))) ))?( size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2144 | ):( executed 685 times by 1 test: return ((( size )>( (nmerge * (2 + sizeof (struct line))) ))?( size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2145 | (nmerge * (2 + sizeof (struct line))) executed 685 times by 1 test: return ((( size )>( (nmerge * (2 + sizeof (struct line))) ))?( size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2146 | )) executed 685 times by 1 test: return ((( size )>( (nmerge * (2 + sizeof (struct line))) ))?( size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2147 | ; executed 685 times by 1 test: return ((( size )>( (nmerge * (2 + sizeof (struct line))) ))?( size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2148 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2149 | static size_t | - | ||||||||||||||||||||||||||||||||||||||||||
2150 | sort_buffer_size (FILE *const *fps, size_t nfps, | - | ||||||||||||||||||||||||||||||||||||||||||
2151 | char *const *files, size_t nfiles, | - | ||||||||||||||||||||||||||||||||||||||||||
2152 | size_t line_bytes) | - | ||||||||||||||||||||||||||||||||||||||||||
2153 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2154 | - | |||||||||||||||||||||||||||||||||||||||||||
2155 | - | |||||||||||||||||||||||||||||||||||||||||||
2156 | static size_t size_bound; | - | ||||||||||||||||||||||||||||||||||||||||||
2157 | - | |||||||||||||||||||||||||||||||||||||||||||
2158 | - | |||||||||||||||||||||||||||||||||||||||||||
2159 | size_t worst_case_per_input_byte = line_bytes + 1; | - | ||||||||||||||||||||||||||||||||||||||||||
2160 | - | |||||||||||||||||||||||||||||||||||||||||||
2161 | - | |||||||||||||||||||||||||||||||||||||||||||
2162 | - | |||||||||||||||||||||||||||||||||||||||||||
2163 | size_t size = worst_case_per_input_byte + 1; | - | ||||||||||||||||||||||||||||||||||||||||||
2164 | - | |||||||||||||||||||||||||||||||||||||||||||
2165 | for (size_t i = 0; i < nfiles
| 687-715 | ||||||||||||||||||||||||||||||||||||||||||
2166 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2167 | struct stat st; | - | ||||||||||||||||||||||||||||||||||||||||||
2168 | off_t file_size; | - | ||||||||||||||||||||||||||||||||||||||||||
2169 | size_t worst_case; | - | ||||||||||||||||||||||||||||||||||||||||||
2170 | - | |||||||||||||||||||||||||||||||||||||||||||
2171 | if ((
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2172 | : (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2173 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2174 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2175 | ) && __builtin_constant_p (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2176 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2177 | ) && (__s1_len = __builtin_strlen (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2178 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2179 | ), __s2_len = __builtin_strlen (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2180 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2181 | ), (!((size_t)(const void *)((
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2182 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2183 | ) + 1) - (size_t)(const void *)(
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2184 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2185 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2186 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2187 | ) + 1) - (size_t)(const void *)(
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2188 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2189 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2190 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2191 | ,
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2192 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2193 | ) : (__builtin_constant_p (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2194 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2195 | ) && ((size_t)(const void *)((
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2196 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2197 | ) + 1) - (size_t)(const void *)(
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2198 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2199 | ) == 1) && (__s1_len = __builtin_strlen (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2200 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2201 | ), __s1_len < 4) ? (__builtin_constant_p (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2202 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2203 | ) && ((size_t)(const void *)((
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2204 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2205 | ) + 1) - (size_t)(const void *)(
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2206 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2207 | ) == 1) ? __builtin_strcmp (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2208 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2209 | ,
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2210 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2211 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2212 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2213 | ); int __result = (((const unsigned char *) (const char *) (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2214 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2215 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2216 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2217 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2218 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2219 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( files[i] ))[3] - __s2[3]);
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2220 | files[i]
never executed: __result = (((const unsigned char *) (const char *) ( files[i] ))[3] - __s2[3]); | 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2221 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( files[i] ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2222 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2223 | ) && ((size_t)(const void *)((
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2224 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2225 | ) + 1) - (size_t)(const void *)(
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2226 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2227 | ) == 1) && (__s2_len = __builtin_strlen (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2228 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2229 | ), __s2_len < 4) ? (__builtin_constant_p (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2230 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2231 | ) && ((size_t)(const void *)((
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2232 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2233 | ) + 1) - (size_t)(const void *)(
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2234 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2235 | ) == 1) ? __builtin_strcmp (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2236 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2237 | ,
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2238 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2239 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2240 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2241 | ); int __result = (((const unsigned char *) (const char *) (
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2242 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2243 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2244 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2245 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2246 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2247 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2248 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2249 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : __builtin_strcmp (end of block
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2250 | files[i]
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2251 | ,
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2252 | "-"
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2253 | )))); })
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2254 | == 0)
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2255 | 0
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2256 | , &st)
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2257 | : stat (files[i], &st))
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2258 | != 0
| 0-715 | ||||||||||||||||||||||||||||||||||||||||||
2259 | sort_die ( never executed: sort_die ( dcgettext (((void *)0), "stat failed" , 5) , files[i]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2260 | dcgettext (((void *)0), never executed: sort_die ( dcgettext (((void *)0), "stat failed" , 5) , files[i]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2261 | "stat failed" never executed: sort_die ( dcgettext (((void *)0), "stat failed" , 5) , files[i]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2262 | , 5) never executed: sort_die ( dcgettext (((void *)0), "stat failed" , 5) , files[i]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2263 | , files[i]); never executed: sort_die ( dcgettext (((void *)0), "stat failed" , 5) , files[i]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2264 | - | |||||||||||||||||||||||||||||||||||||||||||
2265 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||
2266 | ((((
| 296-419 | ||||||||||||||||||||||||||||||||||||||||||
2267 | st.st_mode
| 296-419 | ||||||||||||||||||||||||||||||||||||||||||
2268 | )) & 0170000) == (0100000))
| 296-419 | ||||||||||||||||||||||||||||||||||||||||||
2269 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
2270 | file_size = st.st_size; executed 296 times by 1 test: file_size = st.st_size; Executed by:
| 296 | ||||||||||||||||||||||||||||||||||||||||||
2271 | else | - | ||||||||||||||||||||||||||||||||||||||||||
2272 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2273 | - | |||||||||||||||||||||||||||||||||||||||||||
2274 | - | |||||||||||||||||||||||||||||||||||||||||||
2275 | if (sort_size
| 6-413 | ||||||||||||||||||||||||||||||||||||||||||
2276 | return executed 6 times by 1 test: sort_size;return sort_size; Executed by:
executed 6 times by 1 test: return sort_size; Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
2277 | file_size = (128 * 1024); | - | ||||||||||||||||||||||||||||||||||||||||||
2278 | } executed 413 times by 1 test: end of block Executed by:
| 413 | ||||||||||||||||||||||||||||||||||||||||||
2279 | - | |||||||||||||||||||||||||||||||||||||||||||
2280 | if (! size_bound
| 2-707 | ||||||||||||||||||||||||||||||||||||||||||
2281 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2282 | size_bound = sort_size; | - | ||||||||||||||||||||||||||||||||||||||||||
2283 | if (! size_bound
| 22-685 | ||||||||||||||||||||||||||||||||||||||||||
2284 | size_bound = default_sort_size (); executed 685 times by 1 test: size_bound = default_sort_size (); Executed by:
| 685 | ||||||||||||||||||||||||||||||||||||||||||
2285 | } executed 707 times by 1 test: end of block Executed by:
| 707 | ||||||||||||||||||||||||||||||||||||||||||
2286 | - | |||||||||||||||||||||||||||||||||||||||||||
2287 | - | |||||||||||||||||||||||||||||||||||||||||||
2288 | - | |||||||||||||||||||||||||||||||||||||||||||
2289 | - | |||||||||||||||||||||||||||||||||||||||||||
2290 | worst_case = file_size * worst_case_per_input_byte + 1; | - | ||||||||||||||||||||||||||||||||||||||||||
2291 | if (file_size != worst_case / worst_case_per_input_byte
| 0-709 | ||||||||||||||||||||||||||||||||||||||||||
2292 | || size_bound - size <= worst_case
| 20-689 | ||||||||||||||||||||||||||||||||||||||||||
2293 | return executed 20 times by 1 test: size_bound;return size_bound; Executed by:
executed 20 times by 1 test: return size_bound; Executed by:
| 20 | ||||||||||||||||||||||||||||||||||||||||||
2294 | size += worst_case; | - | ||||||||||||||||||||||||||||||||||||||||||
2295 | } executed 689 times by 1 test: end of block Executed by:
| 689 | ||||||||||||||||||||||||||||||||||||||||||
2296 | - | |||||||||||||||||||||||||||||||||||||||||||
2297 | return executed 687 times by 1 test: size;return size; Executed by:
executed 687 times by 1 test: return size; Executed by:
| 687 | ||||||||||||||||||||||||||||||||||||||||||
2298 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2299 | - | |||||||||||||||||||||||||||||||||||||||||||
2300 | - | |||||||||||||||||||||||||||||||||||||||||||
2301 | - | |||||||||||||||||||||||||||||||||||||||||||
2302 | - | |||||||||||||||||||||||||||||||||||||||||||
2303 | - | |||||||||||||||||||||||||||||||||||||||||||
2304 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
2305 | initbuf (struct buffer *buf, size_t line_bytes, size_t alloc) | - | ||||||||||||||||||||||||||||||||||||||||||
2306 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2307 | - | |||||||||||||||||||||||||||||||||||||||||||
2308 | - | |||||||||||||||||||||||||||||||||||||||||||
2309 | - | |||||||||||||||||||||||||||||||||||||||||||
2310 | - | |||||||||||||||||||||||||||||||||||||||||||
2311 | while ( | - | ||||||||||||||||||||||||||||||||||||||||||
2312 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
2313 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
2314 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2315 | alloc += sizeof (struct line) - alloc % sizeof (struct line); | - | ||||||||||||||||||||||||||||||||||||||||||
2316 | buf->buf = malloc (alloc); | - | ||||||||||||||||||||||||||||||||||||||||||
2317 | if (buf->buf
| 0-3270 | ||||||||||||||||||||||||||||||||||||||||||
2318 | break; executed 3270 times by 1 test: break; Executed by:
| 3270 | ||||||||||||||||||||||||||||||||||||||||||
2319 | alloc /= 2; | - | ||||||||||||||||||||||||||||||||||||||||||
2320 | if (alloc <= line_bytes + 1
| 0 | ||||||||||||||||||||||||||||||||||||||||||
2321 | xalloc_die (); never executed: xalloc_die (); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2322 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
2323 | - | |||||||||||||||||||||||||||||||||||||||||||
2324 | buf->line_bytes = line_bytes; | - | ||||||||||||||||||||||||||||||||||||||||||
2325 | buf->alloc = alloc; | - | ||||||||||||||||||||||||||||||||||||||||||
2326 | buf->used = buf->left = buf->nlines = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
2327 | buf->eof = | - | ||||||||||||||||||||||||||||||||||||||||||
2328 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
2329 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
2330 | } executed 3270 times by 1 test: end of block Executed by:
| 3270 | ||||||||||||||||||||||||||||||||||||||||||
2331 | - | |||||||||||||||||||||||||||||||||||||||||||
2332 | - | |||||||||||||||||||||||||||||||||||||||||||
2333 | - | |||||||||||||||||||||||||||||||||||||||||||
2334 | static inline struct line * | - | ||||||||||||||||||||||||||||||||||||||||||
2335 | buffer_linelim (struct buffer const *buf) | - | ||||||||||||||||||||||||||||||||||||||||||
2336 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2337 | void *linelim = buf->buf + buf->alloc; | - | ||||||||||||||||||||||||||||||||||||||||||
2338 | return executed 15152 times by 1 test: linelim;return linelim; Executed by:
executed 15152 times by 1 test: return linelim; Executed by:
| 15152 | ||||||||||||||||||||||||||||||||||||||||||
2339 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2340 | - | |||||||||||||||||||||||||||||||||||||||||||
2341 | - | |||||||||||||||||||||||||||||||||||||||||||
2342 | - | |||||||||||||||||||||||||||||||||||||||||||
2343 | - | |||||||||||||||||||||||||||||||||||||||||||
2344 | static char * | - | ||||||||||||||||||||||||||||||||||||||||||
2345 | begfield (struct line const *line, struct keyfield const *key) | - | ||||||||||||||||||||||||||||||||||||||||||
2346 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2347 | char *ptr = line->text, *lim = ptr + line->length - 1; | - | ||||||||||||||||||||||||||||||||||||||||||
2348 | size_t sword = key->sword; | - | ||||||||||||||||||||||||||||||||||||||||||
2349 | size_t schar = key->schar; | - | ||||||||||||||||||||||||||||||||||||||||||
2350 | - | |||||||||||||||||||||||||||||||||||||||||||
2351 | - | |||||||||||||||||||||||||||||||||||||||||||
2352 | - | |||||||||||||||||||||||||||||||||||||||||||
2353 | - | |||||||||||||||||||||||||||||||||||||||||||
2354 | if (tab != TAB_DEFAULT
| 72-447 | ||||||||||||||||||||||||||||||||||||||||||
2355 | while (ptr < lim
| 0-138 | ||||||||||||||||||||||||||||||||||||||||||
2356 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2357 | while (ptr < lim
| 0-114 | ||||||||||||||||||||||||||||||||||||||||||
2358 | ++ executed 48 times by 1 test: ptr;++ptr; Executed by:
executed 48 times by 1 test: ++ptr; Executed by:
| 48 | ||||||||||||||||||||||||||||||||||||||||||
2359 | if (ptr < lim
| 0-66 | ||||||||||||||||||||||||||||||||||||||||||
2360 | ++ executed 66 times by 1 test: ptr;++ptr; Executed by:
executed 66 times by 1 test: ++ptr; Executed by:
| 66 | ||||||||||||||||||||||||||||||||||||||||||
2361 | } executed 66 times by 1 test: end of block Executed by:
| 66 | ||||||||||||||||||||||||||||||||||||||||||
2362 | else | - | ||||||||||||||||||||||||||||||||||||||||||
2363 | while (ptr < lim
| 58-750 | ||||||||||||||||||||||||||||||||||||||||||
2364 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2365 | while (ptr < lim
| 0-532 | ||||||||||||||||||||||||||||||||||||||||||
2366 | ++ executed 171 times by 1 test: ptr;++ptr; Executed by:
executed 171 times by 1 test: ++ptr; Executed by:
| 171 | ||||||||||||||||||||||||||||||||||||||||||
2367 | while (ptr < lim
| 42-752 | ||||||||||||||||||||||||||||||||||||||||||
2368 | ++ executed 433 times by 1 test: ptr;++ptr; Executed by:
executed 433 times by 1 test: ++ptr; Executed by:
| 433 | ||||||||||||||||||||||||||||||||||||||||||
2369 | } executed 361 times by 1 test: end of block Executed by:
| 361 | ||||||||||||||||||||||||||||||||||||||||||
2370 | - | |||||||||||||||||||||||||||||||||||||||||||
2371 | - | |||||||||||||||||||||||||||||||||||||||||||
2372 | - | |||||||||||||||||||||||||||||||||||||||||||
2373 | if (key->skipsblanks
| 28-491 | ||||||||||||||||||||||||||||||||||||||||||
2374 | while (ptr < lim
| 0-61 | ||||||||||||||||||||||||||||||||||||||||||
2375 | ++ executed 33 times by 1 test: ptr;++ptr; Executed by:
executed 33 times by 1 test: ++ptr; Executed by:
| 33 | ||||||||||||||||||||||||||||||||||||||||||
2376 | - | |||||||||||||||||||||||||||||||||||||||||||
2377 | - | |||||||||||||||||||||||||||||||||||||||||||
2378 | ptr = | - | ||||||||||||||||||||||||||||||||||||||||||
2379 | (((
| 18-501 | ||||||||||||||||||||||||||||||||||||||||||
2380 | lim
| 18-501 | ||||||||||||||||||||||||||||||||||||||||||
2381 | )<(
| 18-501 | ||||||||||||||||||||||||||||||||||||||||||
2382 | ptr + schar
| 18-501 | ||||||||||||||||||||||||||||||||||||||||||
2383 | ))
| 18-501 | ||||||||||||||||||||||||||||||||||||||||||
2384 | lim | - | ||||||||||||||||||||||||||||||||||||||||||
2385 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
2386 | ptr + schar | - | ||||||||||||||||||||||||||||||||||||||||||
2387 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
2388 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
2389 | - | |||||||||||||||||||||||||||||||||||||||||||
2390 | return executed 519 times by 1 test: ptr;return ptr; Executed by:
executed 519 times by 1 test: return ptr; Executed by:
| 519 | ||||||||||||||||||||||||||||||||||||||||||
2391 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2392 | - | |||||||||||||||||||||||||||||||||||||||||||
2393 | - | |||||||||||||||||||||||||||||||||||||||||||
2394 | - | |||||||||||||||||||||||||||||||||||||||||||
2395 | - | |||||||||||||||||||||||||||||||||||||||||||
2396 | static char * | - | ||||||||||||||||||||||||||||||||||||||||||
2397 | limfield (struct line const *line, struct keyfield const *key) | - | ||||||||||||||||||||||||||||||||||||||||||
2398 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2399 | char *ptr = line->text, *lim = ptr + line->length - 1; | - | ||||||||||||||||||||||||||||||||||||||||||
2400 | size_t eword = key->eword, echar = key->echar; | - | ||||||||||||||||||||||||||||||||||||||||||
2401 | - | |||||||||||||||||||||||||||||||||||||||||||
2402 | if (echar == 0
| 160-520 | ||||||||||||||||||||||||||||||||||||||||||
2403 | eword++; executed 520 times by 1 test: eword++; Executed by:
| 520 | ||||||||||||||||||||||||||||||||||||||||||
2404 | if (tab != TAB_DEFAULT
| 66-614 | ||||||||||||||||||||||||||||||||||||||||||
2405 | while (ptr < lim
| 12-132 | ||||||||||||||||||||||||||||||||||||||||||
2406 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2407 | while (ptr < lim
| 12-168 | ||||||||||||||||||||||||||||||||||||||||||
2408 | ++ executed 102 times by 1 test: ptr;++ptr; Executed by:
executed 102 times by 1 test: ++ptr; Executed by:
| 102 | ||||||||||||||||||||||||||||||||||||||||||
2409 | if (ptr < lim
| 12-66 | ||||||||||||||||||||||||||||||||||||||||||
2410 | ++ executed 42 times by 1 test: ptr;++ptr; Executed by:
executed 42 times by 1 test: ++ptr; Executed by:
| 42 | ||||||||||||||||||||||||||||||||||||||||||
2411 | } executed 78 times by 1 test: end of block Executed by:
| 78 | ||||||||||||||||||||||||||||||||||||||||||
2412 | else | - | ||||||||||||||||||||||||||||||||||||||||||
2413 | while (ptr < lim
| 238-1055 | ||||||||||||||||||||||||||||||||||||||||||
2414 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2415 | while (ptr < lim
| 4-1290 | ||||||||||||||||||||||||||||||||||||||||||
2416 | ++ executed 477 times by 1 test: ptr;++ptr; Executed by:
executed 477 times by 1 test: ++ptr; Executed by:
| 477 | ||||||||||||||||||||||||||||||||||||||||||
2417 | while (ptr < lim
| 372-1794 | ||||||||||||||||||||||||||||||||||||||||||
2418 | ++ executed 1349 times by 1 test: ptr;++ptr; Executed by:
executed 1349 times by 1 test: ++ptr; Executed by:
| 1349 | ||||||||||||||||||||||||||||||||||||||||||
2419 | } executed 817 times by 1 test: end of block Executed by:
| 817 | ||||||||||||||||||||||||||||||||||||||||||
2420 | if (echar != 0
| 160-520 | ||||||||||||||||||||||||||||||||||||||||||
2421 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2422 | - | |||||||||||||||||||||||||||||||||||||||||||
2423 | - | |||||||||||||||||||||||||||||||||||||||||||
2424 | if (key->skipeblanks
| 24-136 | ||||||||||||||||||||||||||||||||||||||||||
2425 | while (ptr < lim
| 0-42 | ||||||||||||||||||||||||||||||||||||||||||
2426 | ++ executed 18 times by 1 test: ptr;++ptr; Executed by:
executed 18 times by 1 test: ++ptr; Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||
2427 | - | |||||||||||||||||||||||||||||||||||||||||||
2428 | - | |||||||||||||||||||||||||||||||||||||||||||
2429 | ptr = | - | ||||||||||||||||||||||||||||||||||||||||||
2430 | (((
| 0-160 | ||||||||||||||||||||||||||||||||||||||||||
2431 | lim
| 0-160 | ||||||||||||||||||||||||||||||||||||||||||
2432 | )<(
| 0-160 | ||||||||||||||||||||||||||||||||||||||||||
2433 | ptr + echar
| 0-160 | ||||||||||||||||||||||||||||||||||||||||||
2434 | ))
| 0-160 | ||||||||||||||||||||||||||||||||||||||||||
2435 | lim | - | ||||||||||||||||||||||||||||||||||||||||||
2436 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
2437 | ptr + echar | - | ||||||||||||||||||||||||||||||||||||||||||
2438 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
2439 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
2440 | } executed 160 times by 1 test: end of block Executed by:
| 160 | ||||||||||||||||||||||||||||||||||||||||||
2441 | - | |||||||||||||||||||||||||||||||||||||||||||
2442 | return executed 680 times by 1 test: ptr;return ptr; Executed by:
executed 680 times by 1 test: return ptr; Executed by:
| 680 | ||||||||||||||||||||||||||||||||||||||||||
2443 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2444 | - | |||||||||||||||||||||||||||||||||||||||||||
2445 | - | |||||||||||||||||||||||||||||||||||||||||||
2446 | - | |||||||||||||||||||||||||||||||||||||||||||
2447 | - | |||||||||||||||||||||||||||||||||||||||||||
2448 | - | |||||||||||||||||||||||||||||||||||||||||||
2449 | - | |||||||||||||||||||||||||||||||||||||||||||
2450 | - | |||||||||||||||||||||||||||||||||||||||||||
2451 | static | - | ||||||||||||||||||||||||||||||||||||||||||
2452 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
2453 | - | |||||||||||||||||||||||||||||||||||||||||||
2454 | fillbuf (struct buffer *buf, FILE *fp, char const *file) | - | ||||||||||||||||||||||||||||||||||||||||||
2455 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2456 | struct keyfield const *key = keylist; | - | ||||||||||||||||||||||||||||||||||||||||||
2457 | char eol = eolchar; | - | ||||||||||||||||||||||||||||||||||||||||||
2458 | size_t line_bytes = buf->line_bytes; | - | ||||||||||||||||||||||||||||||||||||||||||
2459 | size_t mergesize = merge_buffer_size - (2 + sizeof (struct line)); | - | ||||||||||||||||||||||||||||||||||||||||||
2460 | - | |||||||||||||||||||||||||||||||||||||||||||
2461 | if (buf->eof
| 2545-5086 | ||||||||||||||||||||||||||||||||||||||||||
2462 | return executed 2545 times by 1 test: return 0 ; Executed by:
executed 2545 times by 1 test: return 0 ; Executed by:
| 2545 | ||||||||||||||||||||||||||||||||||||||||||
2463 | 0 executed 2545 times by 1 test: return 0 ; Executed by:
| 2545 | ||||||||||||||||||||||||||||||||||||||||||
2464 | ; executed 2545 times by 1 test: return 0 ; Executed by:
| 2545 | ||||||||||||||||||||||||||||||||||||||||||
2465 | - | |||||||||||||||||||||||||||||||||||||||||||
2466 | if (buf->used != buf->left
| 1814-3272 | ||||||||||||||||||||||||||||||||||||||||||
2467 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2468 | memmove (buf->buf, buf->buf + buf->used - buf->left, buf->left); | - | ||||||||||||||||||||||||||||||||||||||||||
2469 | buf->used = buf->left; | - | ||||||||||||||||||||||||||||||||||||||||||
2470 | buf->nlines = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
2471 | } executed 1814 times by 1 test: end of block Executed by:
| 1814 | ||||||||||||||||||||||||||||||||||||||||||
2472 | - | |||||||||||||||||||||||||||||||||||||||||||
2473 | while ( | - | ||||||||||||||||||||||||||||||||||||||||||
2474 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
2475 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
2476 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2477 | char *ptr = buf->buf + buf->used; | - | ||||||||||||||||||||||||||||||||||||||||||
2478 | struct line *linelim = buffer_linelim (buf); | - | ||||||||||||||||||||||||||||||||||||||||||
2479 | struct line *line = linelim - buf->nlines; | - | ||||||||||||||||||||||||||||||||||||||||||
2480 | size_t avail = (char *) linelim - buf->nlines * line_bytes - ptr; | - | ||||||||||||||||||||||||||||||||||||||||||
2481 | char *line_start = buf->nlines
| 2-5102 | ||||||||||||||||||||||||||||||||||||||||||
2482 | - | |||||||||||||||||||||||||||||||||||||||||||
2483 | while (line_bytes + 1 < avail
| 1832-32863 | ||||||||||||||||||||||||||||||||||||||||||
2484 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2485 | - | |||||||||||||||||||||||||||||||||||||||||||
2486 | - | |||||||||||||||||||||||||||||||||||||||||||
2487 | - | |||||||||||||||||||||||||||||||||||||||||||
2488 | - | |||||||||||||||||||||||||||||||||||||||||||
2489 | - | |||||||||||||||||||||||||||||||||||||||||||
2490 | size_t readsize = (avail - 1) / (line_bytes + 1); | - | ||||||||||||||||||||||||||||||||||||||||||
2491 | size_t bytes_read = fread_unlocked (ptr,1,readsize,fp); | - | ||||||||||||||||||||||||||||||||||||||||||
2492 | char *ptrlim = ptr + bytes_read; | - | ||||||||||||||||||||||||||||||||||||||||||
2493 | char *p; | - | ||||||||||||||||||||||||||||||||||||||||||
2494 | avail -= bytes_read; | - | ||||||||||||||||||||||||||||||||||||||||||
2495 | - | |||||||||||||||||||||||||||||||||||||||||||
2496 | if (bytes_read != readsize
| 3272-29591 | ||||||||||||||||||||||||||||||||||||||||||
2497 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2498 | if (ferror_unlocked (fp)
| 0-3272 | ||||||||||||||||||||||||||||||||||||||||||
2499 | sort_die ( never executed: sort_die ( dcgettext (((void *)0), "read failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2500 | dcgettext (((void *)0), never executed: sort_die ( dcgettext (((void *)0), "read failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2501 | "read failed" never executed: sort_die ( dcgettext (((void *)0), "read failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2502 | , 5) never executed: sort_die ( dcgettext (((void *)0), "read failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2503 | , file); never executed: sort_die ( dcgettext (((void *)0), "read failed" , 5) , file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2504 | if (feof_unlocked (fp)
| 0-3272 | ||||||||||||||||||||||||||||||||||||||||||
2505 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2506 | buf->eof = | - | ||||||||||||||||||||||||||||||||||||||||||
2507 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
2508 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
2509 | if (buf->buf == ptrlim
| 76-3196 | ||||||||||||||||||||||||||||||||||||||||||
2510 | return executed 76 times by 1 test: return 0 ; Executed by:
executed 76 times by 1 test: return 0 ; Executed by:
| 76 | ||||||||||||||||||||||||||||||||||||||||||
2511 | 0 executed 76 times by 1 test: return 0 ; Executed by:
| 76 | ||||||||||||||||||||||||||||||||||||||||||
2512 | ; executed 76 times by 1 test: return 0 ; Executed by:
| 76 | ||||||||||||||||||||||||||||||||||||||||||
2513 | if (line_start != ptrlim
| 0-3196 | ||||||||||||||||||||||||||||||||||||||||||
2514 | * executed 9 times by 1 test: ptrlim++ = eol;*ptrlim++ = eol; Executed by:
executed 9 times by 1 test: *ptrlim++ = eol; Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||||||||
2515 | } executed 3196 times by 1 test: end of block Executed by:
| 3196 | ||||||||||||||||||||||||||||||||||||||||||
2516 | } executed 3196 times by 1 test: end of block Executed by:
| 3196 | ||||||||||||||||||||||||||||||||||||||||||
2517 | - | |||||||||||||||||||||||||||||||||||||||||||
2518 | - | |||||||||||||||||||||||||||||||||||||||||||
2519 | while ((
| 32787-185424 | ||||||||||||||||||||||||||||||||||||||||||
2520 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2521 | - | |||||||||||||||||||||||||||||||||||||||||||
2522 | - | |||||||||||||||||||||||||||||||||||||||||||
2523 | - | |||||||||||||||||||||||||||||||||||||||||||
2524 | *p = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||
2525 | ptr = p + 1; | - | ||||||||||||||||||||||||||||||||||||||||||
2526 | line--; | - | ||||||||||||||||||||||||||||||||||||||||||
2527 | line->text = line_start; | - | ||||||||||||||||||||||||||||||||||||||||||
2528 | line->length = ptr - line_start; | - | ||||||||||||||||||||||||||||||||||||||||||
2529 | mergesize = | - | ||||||||||||||||||||||||||||||||||||||||||
2530 | (((
| 0-185424 | ||||||||||||||||||||||||||||||||||||||||||
2531 | mergesize
| 0-185424 | ||||||||||||||||||||||||||||||||||||||||||
2532 | )>(
| 0-185424 | ||||||||||||||||||||||||||||||||||||||||||
2533 | line->length
| 0-185424 | ||||||||||||||||||||||||||||||||||||||||||
2534 | ))
| 0-185424 | ||||||||||||||||||||||||||||||||||||||||||
2535 | mergesize | - | ||||||||||||||||||||||||||||||||||||||||||
2536 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
2537 | line->length | - | ||||||||||||||||||||||||||||||||||||||||||
2538 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
2539 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
2540 | avail -= line_bytes; | - | ||||||||||||||||||||||||||||||||||||||||||
2541 | - | |||||||||||||||||||||||||||||||||||||||||||
2542 | if (key
| 89602-95822 | ||||||||||||||||||||||||||||||||||||||||||
2543 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2544 | - | |||||||||||||||||||||||||||||||||||||||||||
2545 | - | |||||||||||||||||||||||||||||||||||||||||||
2546 | line->keylim = (key->eword ==
| 640-95182 | ||||||||||||||||||||||||||||||||||||||||||
2547 | (18446744073709551615UL)
| 640-95182 | ||||||||||||||||||||||||||||||||||||||||||
2548 | - | |||||||||||||||||||||||||||||||||||||||||||
2549 | ? p | - | ||||||||||||||||||||||||||||||||||||||||||
2550 | : limfield (line, key)); | - | ||||||||||||||||||||||||||||||||||||||||||
2551 | - | |||||||||||||||||||||||||||||||||||||||||||
2552 | if (key->sword !=
| 438-95384 | ||||||||||||||||||||||||||||||||||||||||||
2553 | (18446744073709551615UL)
| 438-95384 | ||||||||||||||||||||||||||||||||||||||||||
2554 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
2555 | line->keybeg = begfield (line, key); executed 438 times by 1 test: line->keybeg = begfield (line, key); Executed by:
| 438 | ||||||||||||||||||||||||||||||||||||||||||
2556 | else | - | ||||||||||||||||||||||||||||||||||||||||||
2557 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2558 | if (key->skipsblanks
| 22-95362 | ||||||||||||||||||||||||||||||||||||||||||
2559 | while (blanks[to_uchar (*line_start)]
| 8-22 | ||||||||||||||||||||||||||||||||||||||||||
2560 | line_start++; executed 8 times by 1 test: line_start++; Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||
2561 | line->keybeg = line_start; | - | ||||||||||||||||||||||||||||||||||||||||||
2562 | } executed 95384 times by 1 test: end of block Executed by:
| 95384 | ||||||||||||||||||||||||||||||||||||||||||
2563 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2564 | - | |||||||||||||||||||||||||||||||||||||||||||
2565 | line_start = ptr; | - | ||||||||||||||||||||||||||||||||||||||||||
2566 | } executed 185424 times by 1 test: end of block Executed by:
| 185424 | ||||||||||||||||||||||||||||||||||||||||||
2567 | - | |||||||||||||||||||||||||||||||||||||||||||
2568 | ptr = ptrlim; | - | ||||||||||||||||||||||||||||||||||||||||||
2569 | if (buf->eof
| 3196-29591 | ||||||||||||||||||||||||||||||||||||||||||
2570 | break; executed 3196 times by 1 test: break; Executed by:
| 3196 | ||||||||||||||||||||||||||||||||||||||||||
2571 | } executed 29591 times by 1 test: end of block Executed by:
| 29591 | ||||||||||||||||||||||||||||||||||||||||||
2572 | - | |||||||||||||||||||||||||||||||||||||||||||
2573 | buf->used = ptr - buf->buf; | - | ||||||||||||||||||||||||||||||||||||||||||
2574 | buf->nlines = buffer_linelim (buf) - line; | - | ||||||||||||||||||||||||||||||||||||||||||
2575 | if (buf->nlines != 0
| 18-5010 | ||||||||||||||||||||||||||||||||||||||||||
2576 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2577 | buf->left = ptr - line_start; | - | ||||||||||||||||||||||||||||||||||||||||||
2578 | merge_buffer_size = mergesize + (2 + sizeof (struct line)); | - | ||||||||||||||||||||||||||||||||||||||||||
2579 | return executed 5010 times by 1 test: return 1 ; Executed by:
executed 5010 times by 1 test: return 1 ; Executed by:
| 5010 | ||||||||||||||||||||||||||||||||||||||||||
2580 | 1 executed 5010 times by 1 test: return 1 ; Executed by:
| 5010 | ||||||||||||||||||||||||||||||||||||||||||
2581 | ; executed 5010 times by 1 test: return 1 ; Executed by:
| 5010 | ||||||||||||||||||||||||||||||||||||||||||
2582 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2583 | - | |||||||||||||||||||||||||||||||||||||||||||
2584 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2585 | - | |||||||||||||||||||||||||||||||||||||||||||
2586 | - | |||||||||||||||||||||||||||||||||||||||||||
2587 | - | |||||||||||||||||||||||||||||||||||||||||||
2588 | size_t line_alloc = buf->alloc / sizeof (struct line); | - | ||||||||||||||||||||||||||||||||||||||||||
2589 | buf->buf = x2nrealloc (buf->buf, &line_alloc, sizeof (struct line)); | - | ||||||||||||||||||||||||||||||||||||||||||
2590 | buf->alloc = line_alloc * sizeof (struct line); | - | ||||||||||||||||||||||||||||||||||||||||||
2591 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2592 | } executed 18 times by 1 test: end of block Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||
2593 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
2594 | - | |||||||||||||||||||||||||||||||||||||||||||
2595 | - | |||||||||||||||||||||||||||||||||||||||||||
2596 | static char const unit_order[( | - | ||||||||||||||||||||||||||||||||||||||||||
2597 | (0x7f * 2 + 1) | - | ||||||||||||||||||||||||||||||||||||||||||
2598 | + 1)] = | - | ||||||||||||||||||||||||||||||||||||||||||
2599 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2600 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
2601 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
2602 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 3, | - | ||||||||||||||||||||||||||||||||||||||||||
2603 | 0, 0, 0, 1, 0, 2, 0, 0, 5, 0, 0, 0, 4, 0, 0, 0, 0, 8, 7, 0, 0, 0, 0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
2604 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
2605 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
2606 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
2607 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
2608 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
2609 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
2610 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 | - | ||||||||||||||||||||||||||||||||||||||||||
2611 | - | |||||||||||||||||||||||||||||||||||||||||||
2612 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
2613 | - | |||||||||||||||||||||||||||||||||||||||||||
2614 | - | |||||||||||||||||||||||||||||||||||||||||||
2615 | - | |||||||||||||||||||||||||||||||||||||||||||
2616 | - | |||||||||||||||||||||||||||||||||||||||||||
2617 | - | |||||||||||||||||||||||||||||||||||||||||||
2618 | static unsigned char | - | ||||||||||||||||||||||||||||||||||||||||||
2619 | traverse_raw_number (char const **number) | - | ||||||||||||||||||||||||||||||||||||||||||
2620 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2621 | char const *p = *number; | - | ||||||||||||||||||||||||||||||||||||||||||
2622 | unsigned char ch; | - | ||||||||||||||||||||||||||||||||||||||||||
2623 | unsigned char max_digit = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||
2624 | - | |||||||||||||||||||||||||||||||||||||||||||
2625 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
2626 | ends_with_thousands_sep = | - | ||||||||||||||||||||||||||||||||||||||||||
2627 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
2628 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
2629 | - | |||||||||||||||||||||||||||||||||||||||||||
2630 | - | |||||||||||||||||||||||||||||||||||||||||||
2631 | - | |||||||||||||||||||||||||||||||||||||||||||
2632 | - | |||||||||||||||||||||||||||||||||||||||||||
2633 | - | |||||||||||||||||||||||||||||||||||||||||||
2634 | - | |||||||||||||||||||||||||||||||||||||||||||
2635 | - | |||||||||||||||||||||||||||||||||||||||||||
2636 | while (((
| 523030-530347 | ||||||||||||||||||||||||||||||||||||||||||
2637 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2638 | if (max_digit < ch
| 6839-523508 | ||||||||||||||||||||||||||||||||||||||||||
2639 | max_digit = ch; executed 523508 times by 1 test: max_digit = ch; Executed by:
| 523508 | ||||||||||||||||||||||||||||||||||||||||||
2640 | - | |||||||||||||||||||||||||||||||||||||||||||
2641 | - | |||||||||||||||||||||||||||||||||||||||||||
2642 | - | |||||||||||||||||||||||||||||||||||||||||||
2643 | - | |||||||||||||||||||||||||||||||||||||||||||
2644 | ends_with_thousands_sep = (*p == thousands_sep); | - | ||||||||||||||||||||||||||||||||||||||||||
2645 | if (ends_with_thousands_sep
| 0-530347 | ||||||||||||||||||||||||||||||||||||||||||
2646 | ++ never executed: p;++p; never executed: ++p; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2647 | } executed 530347 times by 1 test: end of block Executed by:
| 530347 | ||||||||||||||||||||||||||||||||||||||||||
2648 | - | |||||||||||||||||||||||||||||||||||||||||||
2649 | if (ends_with_thousands_sep
| 0-523030 | ||||||||||||||||||||||||||||||||||||||||||
2650 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2651 | - | |||||||||||||||||||||||||||||||||||||||||||
2652 | *number = p - 2; | - | ||||||||||||||||||||||||||||||||||||||||||
2653 | return never executed: max_digit;return max_digit; never executed: return max_digit; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2654 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2655 | - | |||||||||||||||||||||||||||||||||||||||||||
2656 | if (ch == decimal_point
| 572-522458 | ||||||||||||||||||||||||||||||||||||||||||
2657 | while (((
| 522458-1566900 | ||||||||||||||||||||||||||||||||||||||||||
2658 | if (max_digit < ch
| 499820-1067080 | ||||||||||||||||||||||||||||||||||||||||||
2659 | max_digit = ch; executed 499820 times by 1 test: max_digit = ch; Executed by:
| 499820 | ||||||||||||||||||||||||||||||||||||||||||
2660 | - | |||||||||||||||||||||||||||||||||||||||||||
2661 | *number = p - 1; | - | ||||||||||||||||||||||||||||||||||||||||||
2662 | return executed 523030 times by 1 test: max_digit;return max_digit; Executed by:
executed 523030 times by 1 test: return max_digit; Executed by:
| 523030 | ||||||||||||||||||||||||||||||||||||||||||
2663 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2664 | - | |||||||||||||||||||||||||||||||||||||||||||
2665 | - | |||||||||||||||||||||||||||||||||||||||||||
2666 | - | |||||||||||||||||||||||||||||||||||||||||||
2667 | - | |||||||||||||||||||||||||||||||||||||||||||
2668 | - | |||||||||||||||||||||||||||||||||||||||||||
2669 | - | |||||||||||||||||||||||||||||||||||||||||||
2670 | static int __attribute__ ((__pure__)) | - | ||||||||||||||||||||||||||||||||||||||||||
2671 | find_unit_order (char const *number) | - | ||||||||||||||||||||||||||||||||||||||||||
2672 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2673 | - | |||||||||||||||||||||||||||||||||||||||||||
2674 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
2675 | minus_sign = (*number == '-'); | - | ||||||||||||||||||||||||||||||||||||||||||
2676 | char const *p = number + minus_sign; | - | ||||||||||||||||||||||||||||||||||||||||||
2677 | unsigned char max_digit = traverse_raw_number (&p); | - | ||||||||||||||||||||||||||||||||||||||||||
2678 | if ('0' < max_digit
| 79-522907 | ||||||||||||||||||||||||||||||||||||||||||
2679 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2680 | unsigned char ch = *p; | - | ||||||||||||||||||||||||||||||||||||||||||
2681 | int order = unit_order[ch]; | - | ||||||||||||||||||||||||||||||||||||||||||
2682 | return executed 522907 times by 1 test: (minus_sign ? -order : order);return (minus_sign ? -order : order); Executed by:
executed 522907 times by 1 test: return (minus_sign ? -order : order); Executed by:
| 522907 | ||||||||||||||||||||||||||||||||||||||||||
2683 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2684 | else | - | ||||||||||||||||||||||||||||||||||||||||||
2685 | return executed 79 times by 1 test: 0;return 0; Executed by:
executed 79 times by 1 test: return 0; Executed by:
| 79 | ||||||||||||||||||||||||||||||||||||||||||
2686 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2687 | - | |||||||||||||||||||||||||||||||||||||||||||
2688 | - | |||||||||||||||||||||||||||||||||||||||||||
2689 | - | |||||||||||||||||||||||||||||||||||||||||||
2690 | - | |||||||||||||||||||||||||||||||||||||||||||
2691 | static int | - | ||||||||||||||||||||||||||||||||||||||||||
2692 | human_numcompare (char const *a, char const *b) | - | ||||||||||||||||||||||||||||||||||||||||||
2693 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2694 | while (blanks[to_uchar (*a)]
| 897-261493 | ||||||||||||||||||||||||||||||||||||||||||
2695 | a++; executed 897 times by 1 test: a++; Executed by:
| 897 | ||||||||||||||||||||||||||||||||||||||||||
2696 | while (blanks[to_uchar (*b)]
| 853-261493 | ||||||||||||||||||||||||||||||||||||||||||
2697 | b++; executed 853 times by 1 test: b++; Executed by:
| 853 | ||||||||||||||||||||||||||||||||||||||||||
2698 | - | |||||||||||||||||||||||||||||||||||||||||||
2699 | int diff = find_unit_order (a) - find_unit_order (b); | - | ||||||||||||||||||||||||||||||||||||||||||
2700 | return executed 261493 times by 1 test: (diff ? diff : strnumcmp (a, b, decimal_point, thousands_sep));return (diff ? diff : strnumcmp (a, b, decimal_point, thousands_sep)); Executed by:
executed 261493 times by 1 test: return (diff ? diff : strnumcmp (a, b, decimal_point, thousands_sep)); Executed by:
| 261493 | ||||||||||||||||||||||||||||||||||||||||||
2701 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2702 | - | |||||||||||||||||||||||||||||||||||||||||||
2703 | - | |||||||||||||||||||||||||||||||||||||||||||
2704 | - | |||||||||||||||||||||||||||||||||||||||||||
2705 | - | |||||||||||||||||||||||||||||||||||||||||||
2706 | - | |||||||||||||||||||||||||||||||||||||||||||
2707 | static int | - | ||||||||||||||||||||||||||||||||||||||||||
2708 | numcompare (char const *a, char const *b) | - | ||||||||||||||||||||||||||||||||||||||||||
2709 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2710 | while (blanks[to_uchar (*a)]
| 922-294549 | ||||||||||||||||||||||||||||||||||||||||||
2711 | a++; executed 922 times by 1 test: a++; Executed by:
| 922 | ||||||||||||||||||||||||||||||||||||||||||
2712 | while (blanks[to_uchar (*b)]
| 933-294549 | ||||||||||||||||||||||||||||||||||||||||||
2713 | b++; executed 933 times by 1 test: b++; Executed by:
| 933 | ||||||||||||||||||||||||||||||||||||||||||
2714 | - | |||||||||||||||||||||||||||||||||||||||||||
2715 | return executed 294549 times by 1 test: strnumcmp (a, b, decimal_point, thousands_sep);return strnumcmp (a, b, decimal_point, thousands_sep); Executed by:
executed 294549 times by 1 test: return strnumcmp (a, b, decimal_point, thousands_sep); Executed by:
| 294549 | ||||||||||||||||||||||||||||||||||||||||||
2716 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2717 | - | |||||||||||||||||||||||||||||||||||||||||||
2718 | - | |||||||||||||||||||||||||||||||||||||||||||
2719 | - | |||||||||||||||||||||||||||||||||||||||||||
2720 | - | |||||||||||||||||||||||||||||||||||||||||||
2721 | - | |||||||||||||||||||||||||||||||||||||||||||
2722 | static int | - | ||||||||||||||||||||||||||||||||||||||||||
2723 | nan_compare (char const *sa, char const *sb) | - | ||||||||||||||||||||||||||||||||||||||||||
2724 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2725 | long double a; | - | ||||||||||||||||||||||||||||||||||||||||||
2726 | memset (&a, 0, sizeof a); | - | ||||||||||||||||||||||||||||||||||||||||||
2727 | a = strtold (sa, | - | ||||||||||||||||||||||||||||||||||||||||||
2728 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
2729 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
2730 | - | |||||||||||||||||||||||||||||||||||||||||||
2731 | long double b; | - | ||||||||||||||||||||||||||||||||||||||||||
2732 | memset (&b, 0, sizeof b); | - | ||||||||||||||||||||||||||||||||||||||||||
2733 | b = strtold (sb, | - | ||||||||||||||||||||||||||||||||||||||||||
2734 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
2735 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
2736 | - | |||||||||||||||||||||||||||||||||||||||||||
2737 | return executed 1 time by 1 test: memcmp (&a, &b, sizeof a);return memcmp (&a, &b, sizeof a); Executed by:
executed 1 time by 1 test: return memcmp (&a, &b, sizeof a); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
2738 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2739 | - | |||||||||||||||||||||||||||||||||||||||||||
2740 | static int | - | ||||||||||||||||||||||||||||||||||||||||||
2741 | general_numcompare (char const *sa, char const *sb) | - | ||||||||||||||||||||||||||||||||||||||||||
2742 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2743 | - | |||||||||||||||||||||||||||||||||||||||||||
2744 | - | |||||||||||||||||||||||||||||||||||||||||||
2745 | - | |||||||||||||||||||||||||||||||||||||||||||
2746 | char *ea; | - | ||||||||||||||||||||||||||||||||||||||||||
2747 | char *eb; | - | ||||||||||||||||||||||||||||||||||||||||||
2748 | long double a = strtold (sa, &ea); | - | ||||||||||||||||||||||||||||||||||||||||||
2749 | long double b = strtold (sb, &eb); | - | ||||||||||||||||||||||||||||||||||||||||||
2750 | - | |||||||||||||||||||||||||||||||||||||||||||
2751 | - | |||||||||||||||||||||||||||||||||||||||||||
2752 | if (sa == ea
| 14-76 | ||||||||||||||||||||||||||||||||||||||||||
2753 | return executed 14 times by 1 test: sb == eb ? 0 : -1;return sb == eb ? 0 : -1; Executed by:
executed 14 times by 1 test: return sb == eb ? 0 : -1; Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||
2754 | if (sb == eb
| 4-72 | ||||||||||||||||||||||||||||||||||||||||||
2755 | return executed 4 times by 1 test: 1;return 1; Executed by:
executed 4 times by 1 test: return 1; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
2756 | - | |||||||||||||||||||||||||||||||||||||||||||
2757 | - | |||||||||||||||||||||||||||||||||||||||||||
2758 | - | |||||||||||||||||||||||||||||||||||||||||||
2759 | - | |||||||||||||||||||||||||||||||||||||||||||
2760 | return executed 72 times by 1 test: (a < b ? -1return (a < b ? -1 : a > b ? 1 : a == b ? 0 : b == b ? -1 : a == a ? 1 : nan_compare (sa, sb)); Executed by:
executed 72 times by 1 test: return (a < b ? -1 : a > b ? 1 : a == b ? 0 : b == b ? -1 : a == a ? 1 : nan_compare (sa, sb)); Executed by:
| 72 | ||||||||||||||||||||||||||||||||||||||||||
2761 | : a > b ? 1 executed 72 times by 1 test: return (a < b ? -1 : a > b ? 1 : a == b ? 0 : b == b ? -1 : a == a ? 1 : nan_compare (sa, sb)); Executed by:
| 72 | ||||||||||||||||||||||||||||||||||||||||||
2762 | : a == b ? 0 executed 72 times by 1 test: return (a < b ? -1 : a > b ? 1 : a == b ? 0 : b == b ? -1 : a == a ? 1 : nan_compare (sa, sb)); Executed by:
| 72 | ||||||||||||||||||||||||||||||||||||||||||
2763 | : b == b ? -1 executed 72 times by 1 test: return (a < b ? -1 : a > b ? 1 : a == b ? 0 : b == b ? -1 : a == a ? 1 : nan_compare (sa, sb)); Executed by:
| 72 | ||||||||||||||||||||||||||||||||||||||||||
2764 | : a == a ? 1 executed 72 times by 1 test: return (a < b ? -1 : a > b ? 1 : a == b ? 0 : b == b ? -1 : a == a ? 1 : nan_compare (sa, sb)); Executed by:
| 72 | ||||||||||||||||||||||||||||||||||||||||||
2765 | : nan_compare (sa, sb)); executed 72 times by 1 test: return (a < b ? -1 : a > b ? 1 : a == b ? 0 : b == b ? -1 : a == a ? 1 : nan_compare (sa, sb)); Executed by:
| 72 | ||||||||||||||||||||||||||||||||||||||||||
2766 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2767 | - | |||||||||||||||||||||||||||||||||||||||||||
2768 | - | |||||||||||||||||||||||||||||||||||||||||||
2769 | - | |||||||||||||||||||||||||||||||||||||||||||
2770 | - | |||||||||||||||||||||||||||||||||||||||||||
2771 | static int | - | ||||||||||||||||||||||||||||||||||||||||||
2772 | getmonth (char const *month, char **ea) | - | ||||||||||||||||||||||||||||||||||||||||||
2773 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2774 | size_t lo = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
2775 | size_t hi = 12; | - | ||||||||||||||||||||||||||||||||||||||||||
2776 | - | |||||||||||||||||||||||||||||||||||||||||||
2777 | while (blanks[to_uchar (*month)]
| 206-258 | ||||||||||||||||||||||||||||||||||||||||||
2778 | month++; executed 206 times by 1 test: month++; Executed by:
| 206 | ||||||||||||||||||||||||||||||||||||||||||
2779 | - | |||||||||||||||||||||||||||||||||||||||||||
2780 | do | - | ||||||||||||||||||||||||||||||||||||||||||
2781 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2782 | size_t ix = (lo + hi) / 2; | - | ||||||||||||||||||||||||||||||||||||||||||
2783 | char const *m = month; | - | ||||||||||||||||||||||||||||||||||||||||||
2784 | char const *n = monthtab[ix].name; | - | ||||||||||||||||||||||||||||||||||||||||||
2785 | - | |||||||||||||||||||||||||||||||||||||||||||
2786 | for (;; m++, n++) | - | ||||||||||||||||||||||||||||||||||||||||||
2787 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2788 | if (!*n
| 228-1454 | ||||||||||||||||||||||||||||||||||||||||||
2789 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2790 | if (ea
| 12-216 | ||||||||||||||||||||||||||||||||||||||||||
2791 | * executed 12 times by 1 test: ea = (char *) m;*ea = (char *) m; Executed by:
executed 12 times by 1 test: *ea = (char *) m; Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||
2792 | return executed 228 times by 1 test: monthtab[ix].val;return monthtab[ix].val; Executed by:
executed 228 times by 1 test: return monthtab[ix].val; Executed by:
| 228 | ||||||||||||||||||||||||||||||||||||||||||
2793 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2794 | if (to_uchar (fold_toupper[to_uchar (*m)]) < to_uchar (*n)
| 408-1046 | ||||||||||||||||||||||||||||||||||||||||||
2795 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2796 | hi = ix; | - | ||||||||||||||||||||||||||||||||||||||||||
2797 | break; executed 408 times by 1 test: break; Executed by:
| 408 | ||||||||||||||||||||||||||||||||||||||||||
2798 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2799 | else if (to_uchar (fold_toupper[to_uchar (*m)]) > to_uchar (*n)
| 186-860 | ||||||||||||||||||||||||||||||||||||||||||
2800 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2801 | lo = ix + 1; | - | ||||||||||||||||||||||||||||||||||||||||||
2802 | break; executed 186 times by 1 test: break; Executed by:
| 186 | ||||||||||||||||||||||||||||||||||||||||||
2803 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2804 | } executed 860 times by 1 test: end of block Executed by:
| 860 | ||||||||||||||||||||||||||||||||||||||||||
2805 | } executed 594 times by 1 test: end of block Executed by:
| 594 | ||||||||||||||||||||||||||||||||||||||||||
2806 | while (lo < hi
| 30-564 | ||||||||||||||||||||||||||||||||||||||||||
2807 | - | |||||||||||||||||||||||||||||||||||||||||||
2808 | return executed 30 times by 1 test: 0;return 0; Executed by:
executed 30 times by 1 test: return 0; Executed by:
| 30 | ||||||||||||||||||||||||||||||||||||||||||
2809 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2810 | - | |||||||||||||||||||||||||||||||||||||||||||
2811 | - | |||||||||||||||||||||||||||||||||||||||||||
2812 | static struct md5_ctx random_md5_state; | - | ||||||||||||||||||||||||||||||||||||||||||
2813 | - | |||||||||||||||||||||||||||||||||||||||||||
2814 | - | |||||||||||||||||||||||||||||||||||||||||||
2815 | - | |||||||||||||||||||||||||||||||||||||||||||
2816 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
2817 | random_md5_state_init (char const *random_source) | - | ||||||||||||||||||||||||||||||||||||||||||
2818 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2819 | unsigned char buf[16]; | - | ||||||||||||||||||||||||||||||||||||||||||
2820 | struct randread_source *r = randread_new (random_source, sizeof buf); | - | ||||||||||||||||||||||||||||||||||||||||||
2821 | if (! r
| 0-15 | ||||||||||||||||||||||||||||||||||||||||||
2822 | sort_die ( never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , random_source); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2823 | dcgettext (((void *)0), never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , random_source); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2824 | "open failed" never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , random_source); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2825 | , 5) never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , random_source); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2826 | , random_source); never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , random_source); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2827 | randread (r, buf, sizeof buf); | - | ||||||||||||||||||||||||||||||||||||||||||
2828 | if (randread_free (r) != 0
| 0-15 | ||||||||||||||||||||||||||||||||||||||||||
2829 | sort_die ( never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , random_source); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2830 | dcgettext (((void *)0), never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , random_source); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2831 | "close failed" never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , random_source); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2832 | , 5) never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , random_source); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2833 | , random_source); never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , random_source); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2834 | md5_init_ctx (&random_md5_state); | - | ||||||||||||||||||||||||||||||||||||||||||
2835 | md5_process_bytes (buf, sizeof buf, &random_md5_state); | - | ||||||||||||||||||||||||||||||||||||||||||
2836 | } executed 15 times by 1 test: end of block Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||
2837 | - | |||||||||||||||||||||||||||||||||||||||||||
2838 | - | |||||||||||||||||||||||||||||||||||||||||||
2839 | - | |||||||||||||||||||||||||||||||||||||||||||
2840 | static size_t | - | ||||||||||||||||||||||||||||||||||||||||||
2841 | xstrxfrm (char *__restrict dest, char const *__restrict src, size_t destsize) | - | ||||||||||||||||||||||||||||||||||||||||||
2842 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2843 | - | |||||||||||||||||||||||||||||||||||||||||||
2844 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
2845 | = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
2846 | size_t translated_size = strxfrm (dest, src, destsize); | - | ||||||||||||||||||||||||||||||||||||||||||
2847 | - | |||||||||||||||||||||||||||||||||||||||||||
2848 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||
2849 | (*
| 0-2172 | ||||||||||||||||||||||||||||||||||||||||||
2850 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
2851 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2852 | error (0, | - | ||||||||||||||||||||||||||||||||||||||||||
2853 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
2854 | , | - | ||||||||||||||||||||||||||||||||||||||||||
2855 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
2856 | "string transformation failed" | - | ||||||||||||||||||||||||||||||||||||||||||
2857 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
2858 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
2859 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
2860 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
2861 | "set LC_ALL='C' to work around the problem" | - | ||||||||||||||||||||||||||||||||||||||||||
2862 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
2863 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
2864 | ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"the untransformed string was %s\", 5), quotearg_n_style (0, locale_quoting_style, src)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
2865 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
2866 | "the untransformed string was %s" | - | ||||||||||||||||||||||||||||||||||||||||||
2867 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
2868 | , quotearg_n_style (0, locale_quoting_style, src)), (( | - | ||||||||||||||||||||||||||||||||||||||||||
2869 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
2870 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
2871 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
2872 | "the untransformed string was %s" | - | ||||||||||||||||||||||||||||||||||||||||||
2873 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
2874 | , quotearg_n_style (0, locale_quoting_style, src)), (( | - | ||||||||||||||||||||||||||||||||||||||||||
2875 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
2876 | ) ? (void) 0 : __builtin_unreachable ())))) | - | ||||||||||||||||||||||||||||||||||||||||||
2877 | - | |||||||||||||||||||||||||||||||||||||||||||
2878 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
2879 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
2880 | - | |||||||||||||||||||||||||||||||||||||||||||
2881 | return executed 2172 times by 1 test: translated_size;return translated_size; Executed by:
executed 2172 times by 1 test: return translated_size; Executed by:
| 2172 | ||||||||||||||||||||||||||||||||||||||||||
2882 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2883 | - | |||||||||||||||||||||||||||||||||||||||||||
2884 | - | |||||||||||||||||||||||||||||||||||||||||||
2885 | - | |||||||||||||||||||||||||||||||||||||||||||
2886 | - | |||||||||||||||||||||||||||||||||||||||||||
2887 | - | |||||||||||||||||||||||||||||||||||||||||||
2888 | static int | - | ||||||||||||||||||||||||||||||||||||||||||
2889 | compare_random (char *__restrict texta, size_t lena, | - | ||||||||||||||||||||||||||||||||||||||||||
2890 | char *__restrict textb, size_t lenb) | - | ||||||||||||||||||||||||||||||||||||||||||
2891 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2892 | - | |||||||||||||||||||||||||||||||||||||||||||
2893 | - | |||||||||||||||||||||||||||||||||||||||||||
2894 | - | |||||||||||||||||||||||||||||||||||||||||||
2895 | - | |||||||||||||||||||||||||||||||||||||||||||
2896 | int xfrm_diff = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
2897 | - | |||||||||||||||||||||||||||||||||||||||||||
2898 | char stackbuf[4000]; | - | ||||||||||||||||||||||||||||||||||||||||||
2899 | char *buf = stackbuf; | - | ||||||||||||||||||||||||||||||||||||||||||
2900 | size_t bufsize = sizeof stackbuf; | - | ||||||||||||||||||||||||||||||||||||||||||
2901 | void *allocated = | - | ||||||||||||||||||||||||||||||||||||||||||
2902 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
2903 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
2904 | uint32_t dig[2][16 / sizeof (uint32_t)]; | - | ||||||||||||||||||||||||||||||||||||||||||
2905 | struct md5_ctx s[2]; | - | ||||||||||||||||||||||||||||||||||||||||||
2906 | s[0] = s[1] = random_md5_state; | - | ||||||||||||||||||||||||||||||||||||||||||
2907 | - | |||||||||||||||||||||||||||||||||||||||||||
2908 | if (hard_LC_COLLATE
| 1086-644249 | ||||||||||||||||||||||||||||||||||||||||||
2909 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2910 | char const *lima = texta + lena; | - | ||||||||||||||||||||||||||||||||||||||||||
2911 | char const *limb = textb + lenb; | - | ||||||||||||||||||||||||||||||||||||||||||
2912 | - | |||||||||||||||||||||||||||||||||||||||||||
2913 | while ( | - | ||||||||||||||||||||||||||||||||||||||||||
2914 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
2915 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
2916 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2917 | size_t guess_bufsize = 3 * (lena + lenb) + 2; | - | ||||||||||||||||||||||||||||||||||||||||||
2918 | if (bufsize < guess_bufsize
| 0-1086 | ||||||||||||||||||||||||||||||||||||||||||
2919 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2920 | bufsize = | - | ||||||||||||||||||||||||||||||||||||||||||
2921 | (((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
2922 | guess_bufsize
| 0 | ||||||||||||||||||||||||||||||||||||||||||
2923 | )>(
| 0 | ||||||||||||||||||||||||||||||||||||||||||
2924 | bufsize * 3 / 2
| 0 | ||||||||||||||||||||||||||||||||||||||||||
2925 | ))
| 0 | ||||||||||||||||||||||||||||||||||||||||||
2926 | guess_bufsize | - | ||||||||||||||||||||||||||||||||||||||||||
2927 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
2928 | bufsize * 3 / 2 | - | ||||||||||||||||||||||||||||||||||||||||||
2929 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
2930 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
2931 | free (allocated); | - | ||||||||||||||||||||||||||||||||||||||||||
2932 | buf = allocated = malloc (bufsize); | - | ||||||||||||||||||||||||||||||||||||||||||
2933 | if (! buf
| 0 | ||||||||||||||||||||||||||||||||||||||||||
2934 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2935 | buf = stackbuf; | - | ||||||||||||||||||||||||||||||||||||||||||
2936 | bufsize = sizeof stackbuf; | - | ||||||||||||||||||||||||||||||||||||||||||
2937 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
2938 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
2939 | - | |||||||||||||||||||||||||||||||||||||||||||
2940 | size_t sizea = | - | ||||||||||||||||||||||||||||||||||||||||||
2941 | (texta < lima
| 0-1086 | ||||||||||||||||||||||||||||||||||||||||||
2942 | - | |||||||||||||||||||||||||||||||||||||||||||
2943 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
2944 | a_fits = sizea <= bufsize; | - | ||||||||||||||||||||||||||||||||||||||||||
2945 | size_t sizeb = | - | ||||||||||||||||||||||||||||||||||||||||||
2946 | (textb < limb
| 0-1086 | ||||||||||||||||||||||||||||||||||||||||||
2947 | ? (xstrxfrm ((a_fits ? buf + sizea : | - | ||||||||||||||||||||||||||||||||||||||||||
2948 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
2949 | ), textb, | - | ||||||||||||||||||||||||||||||||||||||||||
2950 | (a_fits ? bufsize - sizea : 0)) | - | ||||||||||||||||||||||||||||||||||||||||||
2951 | + 1) | - | ||||||||||||||||||||||||||||||||||||||||||
2952 | : 0); | - | ||||||||||||||||||||||||||||||||||||||||||
2953 | - | |||||||||||||||||||||||||||||||||||||||||||
2954 | if (! (a_fits
| 0-1086 | ||||||||||||||||||||||||||||||||||||||||||
2955 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2956 | bufsize = sizea + sizeb; | - | ||||||||||||||||||||||||||||||||||||||||||
2957 | if (bufsize <
| 0 | ||||||||||||||||||||||||||||||||||||||||||
2958 | (18446744073709551615UL)
| 0 | ||||||||||||||||||||||||||||||||||||||||||
2959 | / 3
| 0 | ||||||||||||||||||||||||||||||||||||||||||
2960 | bufsize = bufsize * 3 / 2; never executed: bufsize = bufsize * 3 / 2; | 0 | ||||||||||||||||||||||||||||||||||||||||||
2961 | free (allocated); | - | ||||||||||||||||||||||||||||||||||||||||||
2962 | buf = allocated = xmalloc (bufsize); | - | ||||||||||||||||||||||||||||||||||||||||||
2963 | if (texta < lima
| 0 | ||||||||||||||||||||||||||||||||||||||||||
2964 | strxfrm (buf, texta, sizea); never executed: strxfrm (buf, texta, sizea); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2965 | if (textb < limb
| 0 | ||||||||||||||||||||||||||||||||||||||||||
2966 | strxfrm (buf + sizea, textb, sizeb); never executed: strxfrm (buf + sizea, textb, sizeb); | 0 | ||||||||||||||||||||||||||||||||||||||||||
2967 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
2968 | - | |||||||||||||||||||||||||||||||||||||||||||
2969 | - | |||||||||||||||||||||||||||||||||||||||||||
2970 | - | |||||||||||||||||||||||||||||||||||||||||||
2971 | - | |||||||||||||||||||||||||||||||||||||||||||
2972 | - | |||||||||||||||||||||||||||||||||||||||||||
2973 | if (texta < lima
| 0-1086 | ||||||||||||||||||||||||||||||||||||||||||
2974 | texta += strlen (texta) + 1; executed 1086 times by 1 test: texta += strlen (texta) + 1; Executed by:
| 1086 | ||||||||||||||||||||||||||||||||||||||||||
2975 | if (textb < limb
| 0-1086 | ||||||||||||||||||||||||||||||||||||||||||
2976 | textb += strlen (textb) + 1; executed 1086 times by 1 test: textb += strlen (textb) + 1; Executed by:
| 1086 | ||||||||||||||||||||||||||||||||||||||||||
2977 | if (! (texta < lima
| 0-1086 | ||||||||||||||||||||||||||||||||||||||||||
2978 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2979 | lena = sizea; texta = buf; | - | ||||||||||||||||||||||||||||||||||||||||||
2980 | lenb = sizeb; textb = buf + sizea; | - | ||||||||||||||||||||||||||||||||||||||||||
2981 | break; executed 1086 times by 1 test: break; Executed by:
| 1086 | ||||||||||||||||||||||||||||||||||||||||||
2982 | } | - | ||||||||||||||||||||||||||||||||||||||||||
2983 | - | |||||||||||||||||||||||||||||||||||||||||||
2984 | - | |||||||||||||||||||||||||||||||||||||||||||
2985 | - | |||||||||||||||||||||||||||||||||||||||||||
2986 | md5_process_bytes (buf, sizea, &s[0]); | - | ||||||||||||||||||||||||||||||||||||||||||
2987 | md5_process_bytes (buf + sizea, sizeb, &s[1]); | - | ||||||||||||||||||||||||||||||||||||||||||
2988 | - | |||||||||||||||||||||||||||||||||||||||||||
2989 | - | |||||||||||||||||||||||||||||||||||||||||||
2990 | if (! xfrm_diff
| 0 | ||||||||||||||||||||||||||||||||||||||||||
2991 | { | - | ||||||||||||||||||||||||||||||||||||||||||
2992 | xfrm_diff = memcmp (buf, buf + sizea, | - | ||||||||||||||||||||||||||||||||||||||||||
2993 | ((( | - | ||||||||||||||||||||||||||||||||||||||||||
2994 | sizea | - | ||||||||||||||||||||||||||||||||||||||||||
2995 | )<( | - | ||||||||||||||||||||||||||||||||||||||||||
2996 | sizeb | - | ||||||||||||||||||||||||||||||||||||||||||
2997 | ))?( | - | ||||||||||||||||||||||||||||||||||||||||||
2998 | sizea | - | ||||||||||||||||||||||||||||||||||||||||||
2999 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
3000 | sizeb | - | ||||||||||||||||||||||||||||||||||||||||||
3001 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
3002 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
3003 | if (! xfrm_diff
| 0 | ||||||||||||||||||||||||||||||||||||||||||
3004 | xfrm_diff = (sizea > sizeb) - (sizea < sizeb); never executed: xfrm_diff = (sizea > sizeb) - (sizea < sizeb); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3005 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
3006 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
3007 | } executed 1086 times by 1 test: end of block Executed by:
| 1086 | ||||||||||||||||||||||||||||||||||||||||||
3008 | - | |||||||||||||||||||||||||||||||||||||||||||
3009 | - | |||||||||||||||||||||||||||||||||||||||||||
3010 | md5_process_bytes (texta, lena, &s[0]); md5_finish_ctx (&s[0], dig[0]); | - | ||||||||||||||||||||||||||||||||||||||||||
3011 | md5_process_bytes (textb, lenb, &s[1]); md5_finish_ctx (&s[1], dig[1]); | - | ||||||||||||||||||||||||||||||||||||||||||
3012 | int diff = memcmp (dig[0], dig[1], sizeof dig[0]); | - | ||||||||||||||||||||||||||||||||||||||||||
3013 | - | |||||||||||||||||||||||||||||||||||||||||||
3014 | - | |||||||||||||||||||||||||||||||||||||||||||
3015 | if (! diff
| 42-645293 | ||||||||||||||||||||||||||||||||||||||||||
3016 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3017 | if (! xfrm_diff
| 0-42 | ||||||||||||||||||||||||||||||||||||||||||
3018 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3019 | xfrm_diff = memcmp (texta, textb, | - | ||||||||||||||||||||||||||||||||||||||||||
3020 | ((( | - | ||||||||||||||||||||||||||||||||||||||||||
3021 | lena | - | ||||||||||||||||||||||||||||||||||||||||||
3022 | )<( | - | ||||||||||||||||||||||||||||||||||||||||||
3023 | lenb | - | ||||||||||||||||||||||||||||||||||||||||||
3024 | ))?( | - | ||||||||||||||||||||||||||||||||||||||||||
3025 | lena | - | ||||||||||||||||||||||||||||||||||||||||||
3026 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
3027 | lenb | - | ||||||||||||||||||||||||||||||||||||||||||
3028 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
3029 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
3030 | if (! xfrm_diff
| 0-42 | ||||||||||||||||||||||||||||||||||||||||||
3031 | xfrm_diff = (lena > lenb) - (lena < lenb); executed 42 times by 1 test: xfrm_diff = (lena > lenb) - (lena < lenb); Executed by:
| 42 | ||||||||||||||||||||||||||||||||||||||||||
3032 | } executed 42 times by 1 test: end of block Executed by:
| 42 | ||||||||||||||||||||||||||||||||||||||||||
3033 | - | |||||||||||||||||||||||||||||||||||||||||||
3034 | diff = xfrm_diff; | - | ||||||||||||||||||||||||||||||||||||||||||
3035 | } executed 42 times by 1 test: end of block Executed by:
| 42 | ||||||||||||||||||||||||||||||||||||||||||
3036 | - | |||||||||||||||||||||||||||||||||||||||||||
3037 | free (allocated); | - | ||||||||||||||||||||||||||||||||||||||||||
3038 | - | |||||||||||||||||||||||||||||||||||||||||||
3039 | return executed 645335 times by 1 test: diff;return diff; Executed by:
executed 645335 times by 1 test: return diff; Executed by:
| 645335 | ||||||||||||||||||||||||||||||||||||||||||
3040 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3041 | - | |||||||||||||||||||||||||||||||||||||||||||
3042 | - | |||||||||||||||||||||||||||||||||||||||||||
3043 | - | |||||||||||||||||||||||||||||||||||||||||||
3044 | - | |||||||||||||||||||||||||||||||||||||||||||
3045 | - | |||||||||||||||||||||||||||||||||||||||||||
3046 | static size_t | - | ||||||||||||||||||||||||||||||||||||||||||
3047 | debug_width (char const *text, char const *lim) | - | ||||||||||||||||||||||||||||||||||||||||||
3048 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3049 | size_t width = mbsnwidth (text, lim - text, 0); | - | ||||||||||||||||||||||||||||||||||||||||||
3050 | while (text < lim
| 209-222 | ||||||||||||||||||||||||||||||||||||||||||
3051 | width += (*text++ == '\t'); executed 209 times by 1 test: width += (*text++ == '\t'); Executed by:
| 209 | ||||||||||||||||||||||||||||||||||||||||||
3052 | return executed 222 times by 1 test: width;return width; Executed by:
executed 222 times by 1 test: return width; Executed by:
| 222 | ||||||||||||||||||||||||||||||||||||||||||
3053 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3054 | - | |||||||||||||||||||||||||||||||||||||||||||
3055 | - | |||||||||||||||||||||||||||||||||||||||||||
3056 | - | |||||||||||||||||||||||||||||||||||||||||||
3057 | - | |||||||||||||||||||||||||||||||||||||||||||
3058 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
3059 | mark_key (size_t offset, size_t width) | - | ||||||||||||||||||||||||||||||||||||||||||
3060 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3061 | while (offset--
| 94-111 | ||||||||||||||||||||||||||||||||||||||||||
3062 | putchar_unlocked (' '); executed 94 times by 1 test: putchar_unlocked (' '); Executed by:
| 94 | ||||||||||||||||||||||||||||||||||||||||||
3063 | - | |||||||||||||||||||||||||||||||||||||||||||
3064 | if (!width
| 51-60 | ||||||||||||||||||||||||||||||||||||||||||
3065 | printf ( executed 51 times by 1 test: printf ( dcgettext (((void *)0), "^ no match for key\n" , 5) ); Executed by:
| 51 | ||||||||||||||||||||||||||||||||||||||||||
3066 | dcgettext (((void *)0), executed 51 times by 1 test: printf ( dcgettext (((void *)0), "^ no match for key\n" , 5) ); Executed by:
| 51 | ||||||||||||||||||||||||||||||||||||||||||
3067 | "^ no match for key\n" executed 51 times by 1 test: printf ( dcgettext (((void *)0), "^ no match for key\n" , 5) ); Executed by:
| 51 | ||||||||||||||||||||||||||||||||||||||||||
3068 | , 5) executed 51 times by 1 test: printf ( dcgettext (((void *)0), "^ no match for key\n" , 5) ); Executed by:
| 51 | ||||||||||||||||||||||||||||||||||||||||||
3069 | ); executed 51 times by 1 test: printf ( dcgettext (((void *)0), "^ no match for key\n" , 5) ); Executed by:
| 51 | ||||||||||||||||||||||||||||||||||||||||||
3070 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3071 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3072 | do | - | ||||||||||||||||||||||||||||||||||||||||||
3073 | putchar_unlocked ('_'); executed 114 times by 1 test: putchar_unlocked ('_'); Executed by:
| 114 | ||||||||||||||||||||||||||||||||||||||||||
3074 | while (--
| 54-60 | ||||||||||||||||||||||||||||||||||||||||||
3075 | - | |||||||||||||||||||||||||||||||||||||||||||
3076 | putchar_unlocked ('\n'); | - | ||||||||||||||||||||||||||||||||||||||||||
3077 | } executed 60 times by 1 test: end of block Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
3078 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3079 | - | |||||||||||||||||||||||||||||||||||||||||||
3080 | - | |||||||||||||||||||||||||||||||||||||||||||
3081 | - | |||||||||||||||||||||||||||||||||||||||||||
3082 | static inline | - | ||||||||||||||||||||||||||||||||||||||||||
3083 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
3084 | - | |||||||||||||||||||||||||||||||||||||||||||
3085 | key_numeric (struct keyfield const *key) | - | ||||||||||||||||||||||||||||||||||||||||||
3086 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3087 | return executed 1202130 times by 1 test: key->numeric || key->general_numeric || key->human_numeric;return key->numeric || key->general_numeric || key->human_numeric; Executed by:
executed 1202130 times by 1 test: return key->numeric || key->general_numeric || key->human_numeric; Executed by:
| 1202130 | ||||||||||||||||||||||||||||||||||||||||||
3088 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3089 | - | |||||||||||||||||||||||||||||||||||||||||||
3090 | - | |||||||||||||||||||||||||||||||||||||||||||
3091 | - | |||||||||||||||||||||||||||||||||||||||||||
3092 | - | |||||||||||||||||||||||||||||||||||||||||||
3093 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
3094 | debug_key (struct line const *line, struct keyfield const *key) | - | ||||||||||||||||||||||||||||||||||||||||||
3095 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3096 | char *text = line->text; | - | ||||||||||||||||||||||||||||||||||||||||||
3097 | char *beg = text; | - | ||||||||||||||||||||||||||||||||||||||||||
3098 | char *lim = text + line->length - 1; | - | ||||||||||||||||||||||||||||||||||||||||||
3099 | - | |||||||||||||||||||||||||||||||||||||||||||
3100 | if (key
| 4-107 | ||||||||||||||||||||||||||||||||||||||||||
3101 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3102 | if (key->sword !=
| 50-57 | ||||||||||||||||||||||||||||||||||||||||||
3103 | (18446744073709551615UL)
| 50-57 | ||||||||||||||||||||||||||||||||||||||||||
3104 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
3105 | beg = begfield (line, key); executed 57 times by 1 test: beg = begfield (line, key); Executed by:
| 57 | ||||||||||||||||||||||||||||||||||||||||||
3106 | if (key->eword !=
| 22-85 | ||||||||||||||||||||||||||||||||||||||||||
3107 | (18446744073709551615UL)
| 22-85 | ||||||||||||||||||||||||||||||||||||||||||
3108 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
3109 | lim = limfield (line, key); executed 22 times by 1 test: lim = limfield (line, key); Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||||||||
3110 | - | |||||||||||||||||||||||||||||||||||||||||||
3111 | if ((key->skipsblanks
| 4-98 | ||||||||||||||||||||||||||||||||||||||||||
3112 | (18446744073709551615UL)
| 4-5 | ||||||||||||||||||||||||||||||||||||||||||
3113 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
3114 | || key->month
| 9-81 | ||||||||||||||||||||||||||||||||||||||||||
3115 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3116 | char saved = *lim; | - | ||||||||||||||||||||||||||||||||||||||||||
3117 | *lim = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||
3118 | - | |||||||||||||||||||||||||||||||||||||||||||
3119 | while (blanks[to_uchar (*beg)]
| 21-98 | ||||||||||||||||||||||||||||||||||||||||||
3120 | beg++; executed 21 times by 1 test: beg++; Executed by:
| 21 | ||||||||||||||||||||||||||||||||||||||||||
3121 | - | |||||||||||||||||||||||||||||||||||||||||||
3122 | char *tighter_lim = beg; | - | ||||||||||||||||||||||||||||||||||||||||||
3123 | - | |||||||||||||||||||||||||||||||||||||||||||
3124 | if (lim < beg
| 2-96 | ||||||||||||||||||||||||||||||||||||||||||
3125 | tighter_lim = lim; executed 2 times by 1 test: tighter_lim = lim; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
3126 | else if (key->month
| 22-74 | ||||||||||||||||||||||||||||||||||||||||||
3127 | getmonth (beg, &tighter_lim); executed 22 times by 1 test: getmonth (beg, &tighter_lim); Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||||||||
3128 | else if (key->general_numeric
| 26-48 | ||||||||||||||||||||||||||||||||||||||||||
3129 | ( executed 26 times by 1 test: __extension__ ({ __typeof__ (strtold (beg, &tighter_lim)) __x = (strtold (beg, &tighter_lim)); (void) __x; }));(__extension__ ({ __typeof__ (strtold (beg, &tighter_lim)) __x = (strtold (beg, &tighter_lim)); (void) __x; })); Executed by:
executed 26 times by 1 test: (__extension__ ({ __typeof__ (strtold (beg, &tighter_lim)) __x = (strtold (beg, &tighter_lim)); (void) __x; })); Executed by:
| 26 | ||||||||||||||||||||||||||||||||||||||||||
3130 | else if (key->numeric
| 4-25 | ||||||||||||||||||||||||||||||||||||||||||
3131 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3132 | char const *p = beg + (beg < lim
| 5-22 | ||||||||||||||||||||||||||||||||||||||||||
3133 | unsigned char max_digit = traverse_raw_number (&p); | - | ||||||||||||||||||||||||||||||||||||||||||
3134 | if ('0' <= max_digit
| 21-23 | ||||||||||||||||||||||||||||||||||||||||||
3135 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3136 | unsigned char ch = *p; | - | ||||||||||||||||||||||||||||||||||||||||||
3137 | tighter_lim = (char *) p | - | ||||||||||||||||||||||||||||||||||||||||||
3138 | + (key->human_numeric
| 0-12 | ||||||||||||||||||||||||||||||||||||||||||
3139 | } executed 21 times by 1 test: end of block Executed by:
| 21 | ||||||||||||||||||||||||||||||||||||||||||
3140 | } executed 44 times by 1 test: end of block Executed by:
| 44 | ||||||||||||||||||||||||||||||||||||||||||
3141 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3142 | tighter_lim = lim; executed 4 times by 1 test: tighter_lim = lim; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
3143 | - | |||||||||||||||||||||||||||||||||||||||||||
3144 | *lim = saved; | - | ||||||||||||||||||||||||||||||||||||||||||
3145 | lim = tighter_lim; | - | ||||||||||||||||||||||||||||||||||||||||||
3146 | } executed 98 times by 1 test: end of block Executed by:
| 98 | ||||||||||||||||||||||||||||||||||||||||||
3147 | } executed 107 times by 1 test: end of block Executed by:
| 107 | ||||||||||||||||||||||||||||||||||||||||||
3148 | - | |||||||||||||||||||||||||||||||||||||||||||
3149 | size_t offset = debug_width (text, beg); | - | ||||||||||||||||||||||||||||||||||||||||||
3150 | size_t width = debug_width (beg, lim); | - | ||||||||||||||||||||||||||||||||||||||||||
3151 | mark_key (offset, width); | - | ||||||||||||||||||||||||||||||||||||||||||
3152 | } executed 111 times by 1 test: end of block Executed by:
| 111 | ||||||||||||||||||||||||||||||||||||||||||
3153 | - | |||||||||||||||||||||||||||||||||||||||||||
3154 | - | |||||||||||||||||||||||||||||||||||||||||||
3155 | - | |||||||||||||||||||||||||||||||||||||||||||
3156 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
3157 | debug_line (struct line const *line) | - | ||||||||||||||||||||||||||||||||||||||||||
3158 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3159 | struct keyfield const *key = keylist; | - | ||||||||||||||||||||||||||||||||||||||||||
3160 | - | |||||||||||||||||||||||||||||||||||||||||||
3161 | do | - | ||||||||||||||||||||||||||||||||||||||||||
3162 | debug_key (line, key); executed 111 times by 1 test: debug_key (line, key); Executed by:
| 111 | ||||||||||||||||||||||||||||||||||||||||||
3163 | while (key
| 0-107 | ||||||||||||||||||||||||||||||||||||||||||
3164 | } executed 109 times by 1 test: end of block Executed by:
| 109 | ||||||||||||||||||||||||||||||||||||||||||
3165 | - | |||||||||||||||||||||||||||||||||||||||||||
3166 | - | |||||||||||||||||||||||||||||||||||||||||||
3167 | - | |||||||||||||||||||||||||||||||||||||||||||
3168 | static | - | ||||||||||||||||||||||||||||||||||||||||||
3169 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
3170 | - | |||||||||||||||||||||||||||||||||||||||||||
3171 | default_key_compare (struct keyfield const *key) | - | ||||||||||||||||||||||||||||||||||||||||||
3172 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3173 | return executed 881 times by 1 test: ! (key->ignorereturn ! (key->ignore || key->translate || key->skipsblanks || key->skipeblanks || key_numeric (key) || key->month || key->version || key->random ); Executed by:
executed 881 times by 1 test: return ! (key->ignore || key->translate || key->skipsblanks || key->skipeblanks || key_numeric (key) || key->month || key->version || key->random ); Executed by:
| 881 | ||||||||||||||||||||||||||||||||||||||||||
3174 | || key->translate executed 881 times by 1 test: return ! (key->ignore || key->translate || key->skipsblanks || key->skipeblanks || key_numeric (key) || key->month || key->version || key->random ); Executed by:
| 881 | ||||||||||||||||||||||||||||||||||||||||||
3175 | || key->skipsblanks executed 881 times by 1 test: return ! (key->ignore || key->translate || key->skipsblanks || key->skipeblanks || key_numeric (key) || key->month || key->version || key->random ); Executed by:
| 881 | ||||||||||||||||||||||||||||||||||||||||||
3176 | || key->skipeblanks executed 881 times by 1 test: return ! (key->ignore || key->translate || key->skipsblanks || key->skipeblanks || key_numeric (key) || key->month || key->version || key->random ); Executed by:
| 881 | ||||||||||||||||||||||||||||||||||||||||||
3177 | || key_numeric (key) executed 881 times by 1 test: return ! (key->ignore || key->translate || key->skipsblanks || key->skipeblanks || key_numeric (key) || key->month || key->version || key->random ); Executed by:
| 881 | ||||||||||||||||||||||||||||||||||||||||||
3178 | || key->month executed 881 times by 1 test: return ! (key->ignore || key->translate || key->skipsblanks || key->skipeblanks || key_numeric (key) || key->month || key->version || key->random ); Executed by:
| 881 | ||||||||||||||||||||||||||||||||||||||||||
3179 | || key->version executed 881 times by 1 test: return ! (key->ignore || key->translate || key->skipsblanks || key->skipeblanks || key_numeric (key) || key->month || key->version || key->random ); Executed by:
| 881 | ||||||||||||||||||||||||||||||||||||||||||
3180 | || key->random executed 881 times by 1 test: return ! (key->ignore || key->translate || key->skipsblanks || key->skipeblanks || key_numeric (key) || key->month || key->version || key->random ); Executed by:
| 881 | ||||||||||||||||||||||||||||||||||||||||||
3181 | 881 | |||||||||||||||||||||||||||||||||||||||||||
3182 | ); executed 881 times by 1 test: return ! (key->ignore || key->translate || key->skipsblanks || key->skipeblanks || key_numeric (key) || key->month || key->version || key->random ); Executed by:
| 881 | ||||||||||||||||||||||||||||||||||||||||||
3183 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3184 | - | |||||||||||||||||||||||||||||||||||||||||||
3185 | - | |||||||||||||||||||||||||||||||||||||||||||
3186 | - | |||||||||||||||||||||||||||||||||||||||||||
3187 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
3188 | key_to_opts (struct keyfield const *key, char *opts) | - | ||||||||||||||||||||||||||||||||||||||||||
3189 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3190 | if (key->skipsblanks
| 0-9 | ||||||||||||||||||||||||||||||||||||||||||
3191 | * executed 5 times by 1 test: opts++ = 'b';*opts++ = 'b'; Executed by:
executed 5 times by 1 test: *opts++ = 'b'; Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
3192 | if (key->ignore == nondictionary
| 2-12 | ||||||||||||||||||||||||||||||||||||||||||
3193 | * executed 2 times by 1 test: opts++ = 'd';*opts++ = 'd'; Executed by:
executed 2 times by 1 test: *opts++ = 'd'; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
3194 | if (key->translate
| 1-13 | ||||||||||||||||||||||||||||||||||||||||||
3195 | * executed 1 time by 1 test: opts++ = 'f';*opts++ = 'f'; Executed by:
executed 1 time by 1 test: *opts++ = 'f'; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
3196 | if (key->general_numeric
| 4-10 | ||||||||||||||||||||||||||||||||||||||||||
3197 | * executed 4 times by 1 test: opts++ = 'g';*opts++ = 'g'; Executed by:
executed 4 times by 1 test: *opts++ = 'g'; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
3198 | if (key->human_numeric
| 5-9 | ||||||||||||||||||||||||||||||||||||||||||
3199 | * executed 5 times by 1 test: opts++ = 'h';*opts++ = 'h'; Executed by:
executed 5 times by 1 test: *opts++ = 'h'; Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
3200 | if (key->ignore == nonprinting
| 2-12 | ||||||||||||||||||||||||||||||||||||||||||
3201 | * executed 2 times by 1 test: opts++ = 'i';*opts++ = 'i'; Executed by:
executed 2 times by 1 test: *opts++ = 'i'; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
3202 | if (key->month
| 3-11 | ||||||||||||||||||||||||||||||||||||||||||
3203 | * executed 3 times by 1 test: opts++ = 'M';*opts++ = 'M'; Executed by:
executed 3 times by 1 test: *opts++ = 'M'; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
3204 | if (key->numeric
| 7 | ||||||||||||||||||||||||||||||||||||||||||
3205 | * executed 7 times by 1 test: opts++ = 'n';*opts++ = 'n'; Executed by:
executed 7 times by 1 test: *opts++ = 'n'; Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||
3206 | if (key->random
| 5-9 | ||||||||||||||||||||||||||||||||||||||||||
3207 | * executed 5 times by 1 test: opts++ = 'R';*opts++ = 'R'; Executed by:
executed 5 times by 1 test: *opts++ = 'R'; Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
3208 | if (key->reverse
| 1-13 | ||||||||||||||||||||||||||||||||||||||||||
3209 | * executed 1 time by 1 test: opts++ = 'r';*opts++ = 'r'; Executed by:
executed 1 time by 1 test: *opts++ = 'r'; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
3210 | if (key->version
| 2-12 | ||||||||||||||||||||||||||||||||||||||||||
3211 | * executed 2 times by 1 test: opts++ = 'V';*opts++ = 'V'; Executed by:
executed 2 times by 1 test: *opts++ = 'V'; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
3212 | *opts = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||
3213 | } executed 14 times by 1 test: end of block Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||
3214 | - | |||||||||||||||||||||||||||||||||||||||||||
3215 | - | |||||||||||||||||||||||||||||||||||||||||||
3216 | - | |||||||||||||||||||||||||||||||||||||||||||
3217 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
3218 | key_warnings (struct keyfield const *gkey, | - | ||||||||||||||||||||||||||||||||||||||||||
3219 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
3220 | gkey_only) | - | ||||||||||||||||||||||||||||||||||||||||||
3221 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3222 | struct keyfield const *key; | - | ||||||||||||||||||||||||||||||||||||||||||
3223 | struct keyfield ugkey = *gkey; | - | ||||||||||||||||||||||||||||||||||||||||||
3224 | unsigned long keynum = 1; | - | ||||||||||||||||||||||||||||||||||||||||||
3225 | - | |||||||||||||||||||||||||||||||||||||||||||
3226 | for (key = keylist; key
| 52 | ||||||||||||||||||||||||||||||||||||||||||
3227 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3228 | if (key->traditional_used
| 1-51 | ||||||||||||||||||||||||||||||||||||||||||
3229 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3230 | size_t sword = key->sword; | - | ||||||||||||||||||||||||||||||||||||||||||
3231 | size_t eword = key->eword; | - | ||||||||||||||||||||||||||||||||||||||||||
3232 | char tmp[((((((sizeof (uintmax_t) * 8) - (! ((__typeof__ (uintmax_t)) 0 < (__typeof__ (uintmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (uintmax_t)) 0 < (__typeof__ (uintmax_t)) -1))) + 1)]; | - | ||||||||||||||||||||||||||||||||||||||||||
3233 | - | |||||||||||||||||||||||||||||||||||||||||||
3234 | - | |||||||||||||||||||||||||||||||||||||||||||
3235 | - | |||||||||||||||||||||||||||||||||||||||||||
3236 | char obuf[((((((sizeof (sword) * 8) - (! ((__typeof__ (sword)) 0 < (__typeof__ (sword)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (sword)) 0 < (__typeof__ (sword)) -1))) + 1) * 2 + 4]; | - | ||||||||||||||||||||||||||||||||||||||||||
3237 | char nbuf[((((((sizeof (sword) * 8) - (! ((__typeof__ (sword)) 0 < (__typeof__ (sword)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (sword)) 0 < (__typeof__ (sword)) -1))) + 1) * 2 + 5]; | - | ||||||||||||||||||||||||||||||||||||||||||
3238 | char *po = obuf; | - | ||||||||||||||||||||||||||||||||||||||||||
3239 | char *pn = nbuf; | - | ||||||||||||||||||||||||||||||||||||||||||
3240 | - | |||||||||||||||||||||||||||||||||||||||||||
3241 | if (sword ==
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
3242 | (18446744073709551615UL)
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
3243 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
3244 | sword++; never executed: sword++; | 0 | ||||||||||||||||||||||||||||||||||||||||||
3245 | - | |||||||||||||||||||||||||||||||||||||||||||
3246 | po = stpcpy (stpcpy (po, "+"), umaxtostr (sword, tmp)); | - | ||||||||||||||||||||||||||||||||||||||||||
3247 | pn = stpcpy (stpcpy (pn, "-k "), umaxtostr (sword + 1, tmp)); | - | ||||||||||||||||||||||||||||||||||||||||||
3248 | if (key->eword !=
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
3249 | (18446744073709551615UL)
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
3250 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
3251 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3252 | stpcpy (stpcpy (po, " -"), umaxtostr (eword + 1, tmp)); | - | ||||||||||||||||||||||||||||||||||||||||||
3253 | stpcpy (stpcpy (pn, ","), | - | ||||||||||||||||||||||||||||||||||||||||||
3254 | umaxtostr (eword + 1 | - | ||||||||||||||||||||||||||||||||||||||||||
3255 | + (key->echar == | - | ||||||||||||||||||||||||||||||||||||||||||
3256 | (18446744073709551615UL) | - | ||||||||||||||||||||||||||||||||||||||||||
3257 | ), tmp)); | - | ||||||||||||||||||||||||||||||||||||||||||
3258 | } executed 1 time by 1 test: end of block Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
3259 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
3260 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
3261 | "obsolescent key %s used; consider %s instead" | - | ||||||||||||||||||||||||||||||||||||||||||
3262 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
3263 | , | - | ||||||||||||||||||||||||||||||||||||||||||
3264 | quote_n (0, obuf), quote_n (1, nbuf)); | - | ||||||||||||||||||||||||||||||||||||||||||
3265 | } executed 1 time by 1 test: end of block Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
3266 | - | |||||||||||||||||||||||||||||||||||||||||||
3267 | - | |||||||||||||||||||||||||||||||||||||||||||
3268 | - | |||||||||||||||||||||||||||||||||||||||||||
3269 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
3270 | zero_width = key->sword !=
| 21-31 | ||||||||||||||||||||||||||||||||||||||||||
3271 | (18446744073709551615UL)
| 21-31 | ||||||||||||||||||||||||||||||||||||||||||
3272 | && key->eword < key->sword
| 3-18 | ||||||||||||||||||||||||||||||||||||||||||
3273 | if (zero_width
| 3-49 | ||||||||||||||||||||||||||||||||||||||||||
3274 | error (0, 0, executed 3 times by 1 test: error (0, 0, dcgettext (((void *)0), "key %lu has zero width and will be ignored" , 5) , keynum); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
3275 | dcgettext (((void *)0), executed 3 times by 1 test: error (0, 0, dcgettext (((void *)0), "key %lu has zero width and will be ignored" , 5) , keynum); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
3276 | "key %lu has zero width and will be ignored" executed 3 times by 1 test: error (0, 0, dcgettext (((void *)0), "key %lu has zero width and will be ignored" , 5) , keynum); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
3277 | , 5) executed 3 times by 1 test: error (0, 0, dcgettext (((void *)0), "key %lu has zero width and will be ignored" , 5) , keynum); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
3278 | , keynum); executed 3 times by 1 test: error (0, 0, dcgettext (((void *)0), "key %lu has zero width and will be ignored" , 5) , keynum); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
3279 | - | |||||||||||||||||||||||||||||||||||||||||||
3280 | - | |||||||||||||||||||||||||||||||||||||||||||
3281 | - | |||||||||||||||||||||||||||||||||||||||||||
3282 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
3283 | implicit_skip = key_numeric (key)
| 8-29 | ||||||||||||||||||||||||||||||||||||||||||
3284 | - | |||||||||||||||||||||||||||||||||||||||||||
3285 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
3286 | line_offset = key->eword == 0
| 0-35 | ||||||||||||||||||||||||||||||||||||||||||
3287 | if (!zero_width
| 0-49 | ||||||||||||||||||||||||||||||||||||||||||
3288 | && ((!key->skipsblanks
| 5-38 | ||||||||||||||||||||||||||||||||||||||||||
3289 | || (!key->skipsblanks
| 3-31 | ||||||||||||||||||||||||||||||||||||||||||
3290 | || (!key->skipeblanks
| 1-30 | ||||||||||||||||||||||||||||||||||||||||||
3291 | error (0, 0, executed 11 times by 1 test: error (0, 0, dcgettext (((void *)0), "leading blanks are significant in key %lu; " "consider also specifying 'b'" , 5) , keynum); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||
3292 | dcgettext (((void *)0), executed 11 times by 1 test: error (0, 0, dcgettext (((void *)0), "leading blanks are significant in key %lu; " "consider also specifying 'b'" , 5) , keynum); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||
3293 | "leading blanks are significant in key %lu; " "consider also specifying 'b'" executed 11 times by 1 test: error (0, 0, dcgettext (((void *)0), "leading blanks are significant in key %lu; " "consider also specifying 'b'" , 5) , keynum); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||
3294 | , 5) executed 11 times by 1 test: error (0, 0, dcgettext (((void *)0), "leading blanks are significant in key %lu; " "consider also specifying 'b'" , 5) , keynum); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||
3295 | executed 11 times by 1 test: error (0, 0, dcgettext (((void *)0), "leading blanks are significant in key %lu; " "consider also specifying 'b'" , 5) , keynum); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||
3296 | , keynum); executed 11 times by 1 test: error (0, 0, dcgettext (((void *)0), "leading blanks are significant in key %lu; " "consider also specifying 'b'" , 5) , keynum); Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||
3297 | - | |||||||||||||||||||||||||||||||||||||||||||
3298 | - | |||||||||||||||||||||||||||||||||||||||||||
3299 | - | |||||||||||||||||||||||||||||||||||||||||||
3300 | - | |||||||||||||||||||||||||||||||||||||||||||
3301 | if (!gkey_only
| 6-46 | ||||||||||||||||||||||||||||||||||||||||||
3302 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3303 | size_t sword = key->sword + 1; | - | ||||||||||||||||||||||||||||||||||||||||||
3304 | size_t eword = key->eword + 1; | - | ||||||||||||||||||||||||||||||||||||||||||
3305 | if (!sword
| 12-15 | ||||||||||||||||||||||||||||||||||||||||||
3306 | sword++; executed 15 times by 1 test: sword++; Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||
3307 | if (!eword
| 1-16 | ||||||||||||||||||||||||||||||||||||||||||
3308 | error (0, 0, executed 17 times by 1 test: error (0, 0, dcgettext (((void *)0), "key %lu is numeric and spans multiple fields" , 5) , keynum); Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||||||||
3309 | dcgettext (((void *)0), executed 17 times by 1 test: error (0, 0, dcgettext (((void *)0), "key %lu is numeric and spans multiple fields" , 5) , keynum); Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||||||||
3310 | "key %lu is numeric and spans multiple fields" executed 17 times by 1 test: error (0, 0, dcgettext (((void *)0), "key %lu is numeric and spans multiple fields" , 5) , keynum); Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||||||||
3311 | , 5) executed 17 times by 1 test: error (0, 0, dcgettext (((void *)0), "key %lu is numeric and spans multiple fields" , 5) , keynum); Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||||||||
3312 | , executed 17 times by 1 test: error (0, 0, dcgettext (((void *)0), "key %lu is numeric and spans multiple fields" , 5) , keynum); Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||||||||
3313 | keynum); executed 17 times by 1 test: error (0, 0, dcgettext (((void *)0), "key %lu is numeric and spans multiple fields" , 5) , keynum); Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||||||||
3314 | } executed 27 times by 1 test: end of block Executed by:
| 27 | ||||||||||||||||||||||||||||||||||||||||||
3315 | - | |||||||||||||||||||||||||||||||||||||||||||
3316 | - | |||||||||||||||||||||||||||||||||||||||||||
3317 | if (ugkey.ignore
| 2-48 | ||||||||||||||||||||||||||||||||||||||||||
3318 | ugkey.ignore = executed 2 times by 1 test: ugkey.ignore = ((void *)0) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
3319 | ((void *)0) executed 2 times by 1 test: ugkey.ignore = ((void *)0) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
3320 | ; executed 2 times by 1 test: ugkey.ignore = ((void *)0) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
3321 | if (ugkey.translate
| 0-52 | ||||||||||||||||||||||||||||||||||||||||||
3322 | ugkey.translate = never executed: ugkey.translate = ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
3323 | ((void *)0) never executed: ugkey.translate = ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
3324 | ; never executed: ugkey.translate = ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
3325 | ugkey.skipsblanks &= !key->skipsblanks; | - | ||||||||||||||||||||||||||||||||||||||||||
3326 | ugkey.skipeblanks &= !key->skipeblanks; | - | ||||||||||||||||||||||||||||||||||||||||||
3327 | ugkey.month &= !key->month; | - | ||||||||||||||||||||||||||||||||||||||||||
3328 | ugkey.numeric &= !key->numeric; | - | ||||||||||||||||||||||||||||||||||||||||||
3329 | ugkey.general_numeric &= !key->general_numeric; | - | ||||||||||||||||||||||||||||||||||||||||||
3330 | ugkey.human_numeric &= !key->human_numeric; | - | ||||||||||||||||||||||||||||||||||||||||||
3331 | ugkey.random &= !key->random; | - | ||||||||||||||||||||||||||||||||||||||||||
3332 | ugkey.version &= !key->version; | - | ||||||||||||||||||||||||||||||||||||||||||
3333 | ugkey.reverse &= !key->reverse; | - | ||||||||||||||||||||||||||||||||||||||||||
3334 | } executed 52 times by 1 test: end of block Executed by:
| 52 | ||||||||||||||||||||||||||||||||||||||||||
3335 | - | |||||||||||||||||||||||||||||||||||||||||||
3336 | - | |||||||||||||||||||||||||||||||||||||||||||
3337 | - | |||||||||||||||||||||||||||||||||||||||||||
3338 | if (!default_key_compare (&ugkey)
| 7-45 | ||||||||||||||||||||||||||||||||||||||||||
3339 | || (ugkey.reverse
| 0-43 | ||||||||||||||||||||||||||||||||||||||||||
3340 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3341 | - | |||||||||||||||||||||||||||||||||||||||||||
3342 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
3343 | ugkey_reverse = ugkey.reverse; | - | ||||||||||||||||||||||||||||||||||||||||||
3344 | if (!(stable
| 0-6 | ||||||||||||||||||||||||||||||||||||||||||
3345 | ugkey.reverse = executed 6 times by 1 test: ugkey.reverse = 0 ; Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
3346 | 0 executed 6 times by 1 test: ugkey.reverse = 0 ; Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
3347 | ; executed 6 times by 1 test: ugkey.reverse = 0 ; Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
3348 | - | |||||||||||||||||||||||||||||||||||||||||||
3349 | char opts[sizeof short_options]; | - | ||||||||||||||||||||||||||||||||||||||||||
3350 | key_to_opts (&ugkey, opts); | - | ||||||||||||||||||||||||||||||||||||||||||
3351 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
3352 | - | |||||||||||||||||||||||||||||||||||||||||||
3353 | dcngettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
3354 | "option '-%s' is ignored" | - | ||||||||||||||||||||||||||||||||||||||||||
3355 | , | - | ||||||||||||||||||||||||||||||||||||||||||
3356 | "options '-%s' are ignored" | - | ||||||||||||||||||||||||||||||||||||||||||
3357 | , | - | ||||||||||||||||||||||||||||||||||||||||||
3358 | select_plural (strlen (opts)) | - | ||||||||||||||||||||||||||||||||||||||||||
3359 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
3360 | - | |||||||||||||||||||||||||||||||||||||||||||
3361 | - | |||||||||||||||||||||||||||||||||||||||||||
3362 | , opts); | - | ||||||||||||||||||||||||||||||||||||||||||
3363 | ugkey.reverse = ugkey_reverse; | - | ||||||||||||||||||||||||||||||||||||||||||
3364 | } executed 7 times by 1 test: end of block Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||
3365 | if (ugkey.reverse
| 0-47 | ||||||||||||||||||||||||||||||||||||||||||
3366 | error (0, 0, executed 3 times by 1 test: error (0, 0, dcgettext (((void *)0), "option '-r' only applies to last-resort comparison" , 5) ); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
3367 | dcgettext (((void *)0), executed 3 times by 1 test: error (0, 0, dcgettext (((void *)0), "option '-r' only applies to last-resort comparison" , 5) ); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
3368 | "option '-r' only applies to last-resort comparison" executed 3 times by 1 test: error (0, 0, dcgettext (((void *)0), "option '-r' only applies to last-resort comparison" , 5) ); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
3369 | , 5) executed 3 times by 1 test: error (0, 0, dcgettext (((void *)0), "option '-r' only applies to last-resort comparison" , 5) ); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
3370 | ); executed 3 times by 1 test: error (0, 0, dcgettext (((void *)0), "option '-r' only applies to last-resort comparison" , 5) ); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
3371 | } executed 52 times by 1 test: end of block Executed by:
| 52 | ||||||||||||||||||||||||||||||||||||||||||
3372 | - | |||||||||||||||||||||||||||||||||||||||||||
3373 | - | |||||||||||||||||||||||||||||||||||||||||||
3374 | - | |||||||||||||||||||||||||||||||||||||||||||
3375 | - | |||||||||||||||||||||||||||||||||||||||||||
3376 | static int | - | ||||||||||||||||||||||||||||||||||||||||||
3377 | keycompare (struct line const *a, struct line const *b) | - | ||||||||||||||||||||||||||||||||||||||||||
3378 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3379 | struct keyfield *key = keylist; | - | ||||||||||||||||||||||||||||||||||||||||||
3380 | - | |||||||||||||||||||||||||||||||||||||||||||
3381 | - | |||||||||||||||||||||||||||||||||||||||||||
3382 | - | |||||||||||||||||||||||||||||||||||||||||||
3383 | char *texta = a->keybeg; | - | ||||||||||||||||||||||||||||||||||||||||||
3384 | char *textb = b->keybeg; | - | ||||||||||||||||||||||||||||||||||||||||||
3385 | char *lima = a->keylim; | - | ||||||||||||||||||||||||||||||||||||||||||
3386 | char *limb = b->keylim; | - | ||||||||||||||||||||||||||||||||||||||||||
3387 | - | |||||||||||||||||||||||||||||||||||||||||||
3388 | int diff; | - | ||||||||||||||||||||||||||||||||||||||||||
3389 | - | |||||||||||||||||||||||||||||||||||||||||||
3390 | while ( | - | ||||||||||||||||||||||||||||||||||||||||||
3391 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
3392 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
3393 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3394 | char const *translate = key->translate; | - | ||||||||||||||||||||||||||||||||||||||||||
3395 | - | |||||||||||||||||||||||||||||||||||||||||||
3396 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
3397 | const *ignore = key->ignore; | - | ||||||||||||||||||||||||||||||||||||||||||
3398 | - | |||||||||||||||||||||||||||||||||||||||||||
3399 | - | |||||||||||||||||||||||||||||||||||||||||||
3400 | lima = | - | ||||||||||||||||||||||||||||||||||||||||||
3401 | (((
| 10-1202256 | ||||||||||||||||||||||||||||||||||||||||||
3402 | texta
| 10-1202256 | ||||||||||||||||||||||||||||||||||||||||||
3403 | )>(
| 10-1202256 | ||||||||||||||||||||||||||||||||||||||||||
3404 | lima
| 10-1202256 | ||||||||||||||||||||||||||||||||||||||||||
3405 | ))
| 10-1202256 | ||||||||||||||||||||||||||||||||||||||||||
3406 | texta | - | ||||||||||||||||||||||||||||||||||||||||||
3407 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
3408 | lima | - | ||||||||||||||||||||||||||||||||||||||||||
3409 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
3410 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
3411 | limb = | - | ||||||||||||||||||||||||||||||||||||||||||
3412 | (((
| 10-1202256 | ||||||||||||||||||||||||||||||||||||||||||
3413 | textb
| 10-1202256 | ||||||||||||||||||||||||||||||||||||||||||
3414 | )>(
| 10-1202256 | ||||||||||||||||||||||||||||||||||||||||||
3415 | limb
| 10-1202256 | ||||||||||||||||||||||||||||||||||||||||||
3416 | ))
| 10-1202256 | ||||||||||||||||||||||||||||||||||||||||||
3417 | textb | - | ||||||||||||||||||||||||||||||||||||||||||
3418 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
3419 | limb | - | ||||||||||||||||||||||||||||||||||||||||||
3420 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
3421 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
3422 | - | |||||||||||||||||||||||||||||||||||||||||||
3423 | - | |||||||||||||||||||||||||||||||||||||||||||
3424 | size_t lena = lima - texta; | - | ||||||||||||||||||||||||||||||||||||||||||
3425 | size_t lenb = limb - textb; | - | ||||||||||||||||||||||||||||||||||||||||||
3426 | - | |||||||||||||||||||||||||||||||||||||||||||
3427 | if (hard_LC_COLLATE
| 1086-1201180 | ||||||||||||||||||||||||||||||||||||||||||
3428 | || key->month
| 118-644930 | ||||||||||||||||||||||||||||||||||||||||||
3429 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3430 | char *ta; | - | ||||||||||||||||||||||||||||||||||||||||||
3431 | char *tb; | - | ||||||||||||||||||||||||||||||||||||||||||
3432 | size_t tlena; | - | ||||||||||||||||||||||||||||||||||||||||||
3433 | size_t tlenb; | - | ||||||||||||||||||||||||||||||||||||||||||
3434 | - | |||||||||||||||||||||||||||||||||||||||||||
3435 | char enda ; | - | ||||||||||||||||||||||||||||||||||||||||||
3436 | char endb ; | - | ||||||||||||||||||||||||||||||||||||||||||
3437 | void *allocated ; | - | ||||||||||||||||||||||||||||||||||||||||||
3438 | char stackbuf[4000]; | - | ||||||||||||||||||||||||||||||||||||||||||
3439 | - | |||||||||||||||||||||||||||||||||||||||||||
3440 | if (ignore
| 21-1201693 | ||||||||||||||||||||||||||||||||||||||||||
3441 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3442 | - | |||||||||||||||||||||||||||||||||||||||||||
3443 | - | |||||||||||||||||||||||||||||||||||||||||||
3444 | - | |||||||||||||||||||||||||||||||||||||||||||
3445 | - | |||||||||||||||||||||||||||||||||||||||||||
3446 | size_t i; | - | ||||||||||||||||||||||||||||||||||||||||||
3447 | - | |||||||||||||||||||||||||||||||||||||||||||
3448 | - | |||||||||||||||||||||||||||||||||||||||||||
3449 | size_t size = lena + 1 + lenb + 1; | - | ||||||||||||||||||||||||||||||||||||||||||
3450 | if (size <= sizeof stackbuf
| 0-63 | ||||||||||||||||||||||||||||||||||||||||||
3451 | ta = stackbuf, allocated = executed 63 times by 1 test: ta = stackbuf, allocated = ((void *)0) ; Executed by:
| 63 | ||||||||||||||||||||||||||||||||||||||||||
3452 | ((void *)0) executed 63 times by 1 test: ta = stackbuf, allocated = ((void *)0) ; Executed by:
| 63 | ||||||||||||||||||||||||||||||||||||||||||
3453 | ; executed 63 times by 1 test: ta = stackbuf, allocated = ((void *)0) ; Executed by:
| 63 | ||||||||||||||||||||||||||||||||||||||||||
3454 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3455 | ta = allocated = xmalloc (size); never executed: ta = allocated = xmalloc (size); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3456 | tb = ta + lena + 1; | - | ||||||||||||||||||||||||||||||||||||||||||
3457 | - | |||||||||||||||||||||||||||||||||||||||||||
3458 | - | |||||||||||||||||||||||||||||||||||||||||||
3459 | - | |||||||||||||||||||||||||||||||||||||||||||
3460 | for (tlena = i = 0; i < lena
| 63-219 | ||||||||||||||||||||||||||||||||||||||||||
3461 | if (! (ignore
| 30-126 | ||||||||||||||||||||||||||||||||||||||||||
3462 | ta[tlena++] = (translate
executed 189 times by 1 test: ta[tlena++] = (translate ? translate[to_uchar (texta[i])] : texta[i]); Executed by:
| 0-189 | ||||||||||||||||||||||||||||||||||||||||||
3463 | ? translate[to_uchar (texta[i])] executed 189 times by 1 test: ta[tlena++] = (translate ? translate[to_uchar (texta[i])] : texta[i]); Executed by:
| 189 | ||||||||||||||||||||||||||||||||||||||||||
3464 | : texta[i]); executed 189 times by 1 test: ta[tlena++] = (translate ? translate[to_uchar (texta[i])] : texta[i]); Executed by:
| 189 | ||||||||||||||||||||||||||||||||||||||||||
3465 | ta[tlena] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||
3466 | - | |||||||||||||||||||||||||||||||||||||||||||
3467 | for (tlenb = i = 0; i < lenb
| 63-222 | ||||||||||||||||||||||||||||||||||||||||||
3468 | if (! (ignore
| 33-126 | ||||||||||||||||||||||||||||||||||||||||||
3469 | tb[tlenb++] = (translate
executed 189 times by 1 test: tb[tlenb++] = (translate ? translate[to_uchar (textb[i])] : textb[i]); Executed by:
| 0-189 | ||||||||||||||||||||||||||||||||||||||||||
3470 | ? translate[to_uchar (textb[i])] executed 189 times by 1 test: tb[tlenb++] = (translate ? translate[to_uchar (textb[i])] : textb[i]); Executed by:
| 189 | ||||||||||||||||||||||||||||||||||||||||||
3471 | : textb[i]); executed 189 times by 1 test: tb[tlenb++] = (translate ? translate[to_uchar (textb[i])] : textb[i]); Executed by:
| 189 | ||||||||||||||||||||||||||||||||||||||||||
3472 | tb[tlenb] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||
3473 | } executed 63 times by 1 test: end of block Executed by:
| 63 | ||||||||||||||||||||||||||||||||||||||||||
3474 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3475 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3476 | - | |||||||||||||||||||||||||||||||||||||||||||
3477 | ta = texta; tlena = lena; enda = ta[tlena]; ta[tlena] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||
3478 | tb = textb; tlenb = lenb; endb = tb[tlenb]; tb[tlenb] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||
3479 | } executed 1201651 times by 1 test: end of block Executed by:
| 1201651 | ||||||||||||||||||||||||||||||||||||||||||
3480 | - | |||||||||||||||||||||||||||||||||||||||||||
3481 | if (key->numeric
| 294549-907165 | ||||||||||||||||||||||||||||||||||||||||||
3482 | diff = numcompare (ta, tb); executed 294549 times by 1 test: diff = numcompare (ta, tb); Executed by:
| 294549 | ||||||||||||||||||||||||||||||||||||||||||
3483 | else if (key->general_numeric
| 90-907075 | ||||||||||||||||||||||||||||||||||||||||||
3484 | diff = general_numcompare (ta, tb); executed 90 times by 1 test: diff = general_numcompare (ta, tb); Executed by:
| 90 | ||||||||||||||||||||||||||||||||||||||||||
3485 | else if (key->human_numeric
| 261493-645582 | ||||||||||||||||||||||||||||||||||||||||||
3486 | diff = human_numcompare (ta, tb); executed 261493 times by 1 test: diff = human_numcompare (ta, tb); Executed by:
| 261493 | ||||||||||||||||||||||||||||||||||||||||||
3487 | else if (key->month
| 118-645464 | ||||||||||||||||||||||||||||||||||||||||||
3488 | diff = getmonth (ta, executed 118 times by 1 test: diff = getmonth (ta, ((void *)0) ) - getmonth (tb, ((void *)0) ); Executed by:
| 118 | ||||||||||||||||||||||||||||||||||||||||||
3489 | ((void *)0) executed 118 times by 1 test: diff = getmonth (ta, ((void *)0) ) - getmonth (tb, ((void *)0) ); Executed by:
| 118 | ||||||||||||||||||||||||||||||||||||||||||
3490 | ) - getmonth (tb, executed 118 times by 1 test: diff = getmonth (ta, ((void *)0) ) - getmonth (tb, ((void *)0) ); Executed by:
| 118 | ||||||||||||||||||||||||||||||||||||||||||
3491 | ((void *)0) executed 118 times by 1 test: diff = getmonth (ta, ((void *)0) ) - getmonth (tb, ((void *)0) ); Executed by:
| 118 | ||||||||||||||||||||||||||||||||||||||||||
3492 | ); executed 118 times by 1 test: diff = getmonth (ta, ((void *)0) ) - getmonth (tb, ((void *)0) ); Executed by:
| 118 | ||||||||||||||||||||||||||||||||||||||||||
3493 | else if (key->random
| 129-645335 | ||||||||||||||||||||||||||||||||||||||||||
3494 | diff = compare_random (ta, tlena, tb, tlenb); executed 645335 times by 1 test: diff = compare_random (ta, tlena, tb, tlenb); Executed by:
| 645335 | ||||||||||||||||||||||||||||||||||||||||||
3495 | else if (key->version
| 0-129 | ||||||||||||||||||||||||||||||||||||||||||
3496 | diff = filevercmp (ta, tb); executed 129 times by 1 test: diff = filevercmp (ta, tb); Executed by:
| 129 | ||||||||||||||||||||||||||||||||||||||||||
3497 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3498 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3499 | - | |||||||||||||||||||||||||||||||||||||||||||
3500 | - | |||||||||||||||||||||||||||||||||||||||||||
3501 | if (tlena == 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||
3502 | diff = - ((tlenb) != 0); never executed: diff = - ((tlenb) != 0); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3503 | else if (tlenb == 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||
3504 | diff = 1; never executed: diff = 1; | 0 | ||||||||||||||||||||||||||||||||||||||||||
3505 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3506 | diff = xmemcoll0 (ta, tlena + 1, tb, tlenb + 1); never executed: diff = xmemcoll0 (ta, tlena + 1, tb, tlenb + 1); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3507 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3508 | - | |||||||||||||||||||||||||||||||||||||||||||
3509 | if (ignore
| 21-1201693 | ||||||||||||||||||||||||||||||||||||||||||
3510 | free (allocated); executed 63 times by 1 test: free (allocated); Executed by:
| 63 | ||||||||||||||||||||||||||||||||||||||||||
3511 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3512 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3513 | ta[tlena] = enda; | - | ||||||||||||||||||||||||||||||||||||||||||
3514 | tb[tlenb] = endb; | - | ||||||||||||||||||||||||||||||||||||||||||
3515 | } executed 1201651 times by 1 test: end of block Executed by:
| 1201651 | ||||||||||||||||||||||||||||||||||||||||||
3516 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3517 | else if (ignore
| 61-491 | ||||||||||||||||||||||||||||||||||||||||||
3518 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3519 | if (translate
| 15-46 | ||||||||||||||||||||||||||||||||||||||||||
3520 | do { while ( | - | ||||||||||||||||||||||||||||||||||||||||||
3521 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
3522 | ) { while (texta < lima
executed 6 times by 1 test: texta;++texta; Executed by:
executed 6 times by 1 test: while (textb < limb++texta; Executed by:
executed 3 times by 1 test: textb;++textb; Executed by:
executed 3 times by 1 test: if (! (texta < lima++textb; Executed by:
executed 15 times by 1 test: diff = to_uchar (translate[to_uchar (*texta)]) - to_uchar (translate[to_uchar (*textb)]); if (diffbreak; Executed by:
never executed: not_equal;goto not_equal; never executed: ++texta; ++textb; }goto not_equal; executed 42 times by 1 test: diff = (texta < lima) - (textb < limb); }end of block Executed by:
executed 15 times by 1 test: while (0)end of block Executed by:
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
3523 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
3524 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3525 | do { while ( | - | ||||||||||||||||||||||||||||||||||||||||||
3526 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
3527 | ) { while (texta < lima
executed 45 times by 1 test: texta;++texta; Executed by:
executed 45 times by 1 test: while (textb < limb++texta; Executed by:
executed 42 times by 1 test: textb;++textb; Executed by:
executed 42 times by 1 test: if (! (texta < lima++textb; Executed by:
executed 45 times by 1 test: diff = to_uchar (*texta) - to_uchar (*textb); if (diffbreak; Executed by:
executed 1 time by 1 test: not_equal;goto not_equal; Executed by:
executed 1 time by 1 test: ++texta; ++textb; }goto not_equal; Executed by:
executed 73 times by 1 test: diff = (texta < lima) - (textb < limb); }end of block Executed by:
executed 45 times by 1 test: while (0);end of block Executed by:
| 1-122 | ||||||||||||||||||||||||||||||||||||||||||
3528 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3529 | else if (lena == 0
| 7-484 | ||||||||||||||||||||||||||||||||||||||||||
3530 | diff = - ((lenb) != 0); executed 7 times by 1 test: diff = - ((lenb) != 0); Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||
3531 | else if (lenb == 0
| 0-484 | ||||||||||||||||||||||||||||||||||||||||||
3532 | goto never executed: greater;goto greater; never executed: goto greater; | 0 | ||||||||||||||||||||||||||||||||||||||||||
3533 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3534 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3535 | if (translate
| 75-409 | ||||||||||||||||||||||||||||||||||||||||||
3536 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3537 | while (texta < lima
| 0-90 | ||||||||||||||||||||||||||||||||||||||||||
3538 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3539 | diff = (to_uchar (translate[to_uchar (*texta++)]) | - | ||||||||||||||||||||||||||||||||||||||||||
3540 | - to_uchar (translate[to_uchar (*textb++)])); | - | ||||||||||||||||||||||||||||||||||||||||||
3541 | if (diff
| 33-57 | ||||||||||||||||||||||||||||||||||||||||||
3542 | goto executed 57 times by 1 test: not_equal;goto not_equal; Executed by:
executed 57 times by 1 test: goto not_equal; Executed by:
| 57 | ||||||||||||||||||||||||||||||||||||||||||
3543 | } executed 33 times by 1 test: end of block Executed by:
| 33 | ||||||||||||||||||||||||||||||||||||||||||
3544 | } executed 18 times by 1 test: end of block Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||
3545 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3546 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3547 | diff = memcmp (texta, textb, | - | ||||||||||||||||||||||||||||||||||||||||||
3548 | ((( | - | ||||||||||||||||||||||||||||||||||||||||||
3549 | lena | - | ||||||||||||||||||||||||||||||||||||||||||
3550 | )<( | - | ||||||||||||||||||||||||||||||||||||||||||
3551 | lenb | - | ||||||||||||||||||||||||||||||||||||||||||
3552 | ))?( | - | ||||||||||||||||||||||||||||||||||||||||||
3553 | lena | - | ||||||||||||||||||||||||||||||||||||||||||
3554 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
3555 | lenb | - | ||||||||||||||||||||||||||||||||||||||||||
3556 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
3557 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
3558 | if (diff
| 196-213 | ||||||||||||||||||||||||||||||||||||||||||
3559 | goto executed 213 times by 1 test: not_equal;goto not_equal; Executed by:
executed 213 times by 1 test: goto not_equal; Executed by:
| 213 | ||||||||||||||||||||||||||||||||||||||||||
3560 | } executed 196 times by 1 test: end of block Executed by:
| 196 | ||||||||||||||||||||||||||||||||||||||||||
3561 | diff = lena < lenb
| 3-211 | ||||||||||||||||||||||||||||||||||||||||||
3562 | } executed 214 times by 1 test: end of block Executed by:
| 214 | ||||||||||||||||||||||||||||||||||||||||||
3563 | - | |||||||||||||||||||||||||||||||||||||||||||
3564 | if (diff
| 14512-1187483 | ||||||||||||||||||||||||||||||||||||||||||
3565 | goto executed 1187483 times by 1 test: not_equal;goto not_equal; Executed by:
executed 1187483 times by 1 test: goto not_equal; Executed by:
| 1187483 | ||||||||||||||||||||||||||||||||||||||||||
3566 | - | |||||||||||||||||||||||||||||||||||||||||||
3567 | key = key->next; | - | ||||||||||||||||||||||||||||||||||||||||||
3568 | if (! key
| 18-14494 | ||||||||||||||||||||||||||||||||||||||||||
3569 | break; executed 14494 times by 1 test: break; Executed by:
| 14494 | ||||||||||||||||||||||||||||||||||||||||||
3570 | - | |||||||||||||||||||||||||||||||||||||||||||
3571 | - | |||||||||||||||||||||||||||||||||||||||||||
3572 | if (key->eword !=
| 9 | ||||||||||||||||||||||||||||||||||||||||||
3573 | (18446744073709551615UL)
| 9 | ||||||||||||||||||||||||||||||||||||||||||
3574 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
3575 | lima = limfield (a, key), limb = limfield (b, key); executed 9 times by 1 test: lima = limfield (a, key), limb = limfield (b, key); Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||||||||
3576 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3577 | lima = a->text + a->length - 1, limb = b->text + b->length - 1; executed 9 times by 1 test: lima = a->text + a->length - 1, limb = b->text + b->length - 1; Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||||||||
3578 | - | |||||||||||||||||||||||||||||||||||||||||||
3579 | if (key->sword !=
| 6-12 | ||||||||||||||||||||||||||||||||||||||||||
3580 | (18446744073709551615UL)
| 6-12 | ||||||||||||||||||||||||||||||||||||||||||
3581 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
3582 | texta = begfield (a, key), textb = begfield (b, key); executed 12 times by 1 test: texta = begfield (a, key), textb = begfield (b, key); Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||
3583 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3584 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3585 | texta = a->text, textb = b->text; | - | ||||||||||||||||||||||||||||||||||||||||||
3586 | if (key->skipsblanks
| 0-6 | ||||||||||||||||||||||||||||||||||||||||||
3587 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3588 | while (texta < lima
| 0 | ||||||||||||||||||||||||||||||||||||||||||
3589 | ++ never executed: texta;++texta; never executed: ++texta; | 0 | ||||||||||||||||||||||||||||||||||||||||||
3590 | while (textb < limb
| 0 | ||||||||||||||||||||||||||||||||||||||||||
3591 | ++ never executed: textb;++textb; never executed: ++textb; | 0 | ||||||||||||||||||||||||||||||||||||||||||
3592 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
3593 | } executed 6 times by 1 test: end of block Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
3594 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3595 | - | |||||||||||||||||||||||||||||||||||||||||||
3596 | return executed 14494 times by 1 test: 0;return 0; Executed by:
executed 14494 times by 1 test: return 0; Executed by:
| 14494 | ||||||||||||||||||||||||||||||||||||||||||
3597 | - | |||||||||||||||||||||||||||||||||||||||||||
3598 | greater: | - | ||||||||||||||||||||||||||||||||||||||||||
3599 | diff = 1; | - | ||||||||||||||||||||||||||||||||||||||||||
3600 | not_equal: code before this statement never executed: not_equal: | 0 | ||||||||||||||||||||||||||||||||||||||||||
3601 | return executed 1187754 times by 1 test: key->reverse ? -diff : diff;return key->reverse ? -diff : diff; Executed by:
executed 1187754 times by 1 test: return key->reverse ? -diff : diff; Executed by:
| 1187754 | ||||||||||||||||||||||||||||||||||||||||||
3602 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3603 | - | |||||||||||||||||||||||||||||||||||||||||||
3604 | - | |||||||||||||||||||||||||||||||||||||||||||
3605 | - | |||||||||||||||||||||||||||||||||||||||||||
3606 | - | |||||||||||||||||||||||||||||||||||||||||||
3607 | static int | - | ||||||||||||||||||||||||||||||||||||||||||
3608 | compare (struct line const *a, struct line const *b) | - | ||||||||||||||||||||||||||||||||||||||||||
3609 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3610 | int diff; | - | ||||||||||||||||||||||||||||||||||||||||||
3611 | size_t alen, blen; | - | ||||||||||||||||||||||||||||||||||||||||||
3612 | - | |||||||||||||||||||||||||||||||||||||||||||
3613 | - | |||||||||||||||||||||||||||||||||||||||||||
3614 | - | |||||||||||||||||||||||||||||||||||||||||||
3615 | - | |||||||||||||||||||||||||||||||||||||||||||
3616 | if (keylist
| 284148-1202248 | ||||||||||||||||||||||||||||||||||||||||||
3617 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3618 | diff = keycompare (a, b); | - | ||||||||||||||||||||||||||||||||||||||||||
3619 | if (diff
| 82-1187754 | ||||||||||||||||||||||||||||||||||||||||||
3620 | return executed 1202135 times by 1 test: diff;return diff; Executed by:
executed 1202135 times by 1 test: return diff; Executed by:
| 1202135 | ||||||||||||||||||||||||||||||||||||||||||
3621 | } executed 113 times by 1 test: end of block Executed by:
| 113 | ||||||||||||||||||||||||||||||||||||||||||
3622 | - | |||||||||||||||||||||||||||||||||||||||||||
3623 | - | |||||||||||||||||||||||||||||||||||||||||||
3624 | - | |||||||||||||||||||||||||||||||||||||||||||
3625 | alen = a->length - 1, blen = b->length - 1; | - | ||||||||||||||||||||||||||||||||||||||||||
3626 | - | |||||||||||||||||||||||||||||||||||||||||||
3627 | if (alen == 0
| 88-284173 | ||||||||||||||||||||||||||||||||||||||||||
3628 | diff = - ((blen) != 0); executed 88 times by 1 test: diff = - ((blen) != 0); Executed by:
| 88 | ||||||||||||||||||||||||||||||||||||||||||
3629 | else if (blen == 0
| 30-284143 | ||||||||||||||||||||||||||||||||||||||||||
3630 | diff = 1; executed 30 times by 1 test: diff = 1; Executed by:
| 30 | ||||||||||||||||||||||||||||||||||||||||||
3631 | else if (hard_LC_COLLATE
| 0-284143 | ||||||||||||||||||||||||||||||||||||||||||
3632 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3633 | - | |||||||||||||||||||||||||||||||||||||||||||
3634 | - | |||||||||||||||||||||||||||||||||||||||||||
3635 | - | |||||||||||||||||||||||||||||||||||||||||||
3636 | - | |||||||||||||||||||||||||||||||||||||||||||
3637 | diff = xmemcoll0 (a->text, alen + 1, b->text, blen + 1); | - | ||||||||||||||||||||||||||||||||||||||||||
3638 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
3639 | else if (! (diff = memcmp (a->text, b->text,
| 16454-267689 | ||||||||||||||||||||||||||||||||||||||||||
3640 | (((
| 16454-267689 | ||||||||||||||||||||||||||||||||||||||||||
3641 | alen
| 16454-267689 | ||||||||||||||||||||||||||||||||||||||||||
3642 | )<(
| 16454-267689 | ||||||||||||||||||||||||||||||||||||||||||
3643 | blen
| 16454-267689 | ||||||||||||||||||||||||||||||||||||||||||
3644 | ))?(
| 16454-267689 | ||||||||||||||||||||||||||||||||||||||||||
3645 | alen
| 16454-267689 | ||||||||||||||||||||||||||||||||||||||||||
3646 | ):(
| 16454-267689 | ||||||||||||||||||||||||||||||||||||||||||
3647 | blen
| 16454-267689 | ||||||||||||||||||||||||||||||||||||||||||
3648 | ))
| 16454-267689 | ||||||||||||||||||||||||||||||||||||||||||
3649 | ))
| 16454-267689 | ||||||||||||||||||||||||||||||||||||||||||
3650 | diff = alen < blen
executed 16454 times by 1 test: diff = alen < blen ? -1 : alen != blen; Executed by:
| 30-16454 | ||||||||||||||||||||||||||||||||||||||||||
3651 | - | |||||||||||||||||||||||||||||||||||||||||||
3652 | return executed 284261 times by 1 test: reverse ? -diff : diff;return reverse ? -diff : diff; Executed by:
executed 284261 times by 1 test: return reverse ? -diff : diff; Executed by:
| 284261 | ||||||||||||||||||||||||||||||||||||||||||
3653 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3654 | - | |||||||||||||||||||||||||||||||||||||||||||
3655 | - | |||||||||||||||||||||||||||||||||||||||||||
3656 | - | |||||||||||||||||||||||||||||||||||||||||||
3657 | - | |||||||||||||||||||||||||||||||||||||||||||
3658 | - | |||||||||||||||||||||||||||||||||||||||||||
3659 | - | |||||||||||||||||||||||||||||||||||||||||||
3660 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
3661 | write_line (struct line const *line, FILE *fp, char const *output_file) | - | ||||||||||||||||||||||||||||||||||||||||||
3662 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3663 | char *buf = line->text; | - | ||||||||||||||||||||||||||||||||||||||||||
3664 | size_t n_bytes = line->length; | - | ||||||||||||||||||||||||||||||||||||||||||
3665 | char *ebuf = buf + n_bytes; | - | ||||||||||||||||||||||||||||||||||||||||||
3666 | - | |||||||||||||||||||||||||||||||||||||||||||
3667 | if (!output_file
| 109-120032 | ||||||||||||||||||||||||||||||||||||||||||
3668 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3669 | - | |||||||||||||||||||||||||||||||||||||||||||
3670 | char const *c = buf; | - | ||||||||||||||||||||||||||||||||||||||||||
3671 | - | |||||||||||||||||||||||||||||||||||||||||||
3672 | while (c < ebuf
| 109-356 | ||||||||||||||||||||||||||||||||||||||||||
3673 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3674 | char wc = *c++; | - | ||||||||||||||||||||||||||||||||||||||||||
3675 | if (wc == '\t'
| 23-333 | ||||||||||||||||||||||||||||||||||||||||||
3676 | wc = '>'; executed 23 times by 1 test: wc = '>'; Executed by:
| 23 | ||||||||||||||||||||||||||||||||||||||||||
3677 | else if (c == ebuf
| 109-224 | ||||||||||||||||||||||||||||||||||||||||||
3678 | wc = '\n'; executed 109 times by 1 test: wc = '\n'; Executed by:
| 109 | ||||||||||||||||||||||||||||||||||||||||||
3679 | if (fputc_unlocked (wc,fp) ==
| 0-356 | ||||||||||||||||||||||||||||||||||||||||||
3680 | (-1)
| 0-356 | ||||||||||||||||||||||||||||||||||||||||||
3681 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
3682 | sort_die ( never executed: sort_die ( dcgettext (((void *)0), "write failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3683 | dcgettext (((void *)0), never executed: sort_die ( dcgettext (((void *)0), "write failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3684 | "write failed" never executed: sort_die ( dcgettext (((void *)0), "write failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3685 | , 5) never executed: sort_die ( dcgettext (((void *)0), "write failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3686 | , output_file); never executed: sort_die ( dcgettext (((void *)0), "write failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3687 | } executed 356 times by 1 test: end of block Executed by:
| 356 | ||||||||||||||||||||||||||||||||||||||||||
3688 | - | |||||||||||||||||||||||||||||||||||||||||||
3689 | debug_line (line); | - | ||||||||||||||||||||||||||||||||||||||||||
3690 | } executed 109 times by 1 test: end of block Executed by:
| 109 | ||||||||||||||||||||||||||||||||||||||||||
3691 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3692 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3693 | ebuf[-1] = eolchar; | - | ||||||||||||||||||||||||||||||||||||||||||
3694 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||
3695 | (
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3696 | 1
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3697 | )
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3698 | n_bytes
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3699 | )
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3700 | 1
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3701 | ) * (size_t) (
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3702 | n_bytes
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3703 | ) <= 8
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3704 | 1
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3705 | ) != 0
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3706 | buf
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3707 | ); FILE *__stream = (
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3708 | fp
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3709 | ); size_t __cnt; for (__cnt = (size_t) (
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3710 | 1
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3711 | ) * (size_t) (
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3712 | n_bytes
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3713 | ); __cnt > 0
never executed: ((size_t) (break;
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3714 | 1
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3715 | ) * (size_t) (
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3716 | n_bytes
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3717 | ) - __cnt) / (size_t) (
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3718 | 1
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3719 | ); }) : (((__builtin_constant_p (
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3720 | 1
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3721 | )
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3722 | 1
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3723 | ) == 0
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3724 | n_bytes
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3725 | )
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3726 | n_bytes
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3727 | ) == 0
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3728 | buf
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3729 | ), (void) (
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3730 | fp
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3731 | ), (void) (
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3732 | 1
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3733 | ), (void) (
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3734 | n_bytes
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3735 | ), (size_t) 0) : fwrite_unlocked (
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3736 | buf
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3737 | ,
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3738 | 1
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3739 | ,
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3740 | n_bytes
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3741 | ,
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3742 | fp
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3743 | ))))
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3744 | != n_bytes
| 0-180050 | ||||||||||||||||||||||||||||||||||||||||||
3745 | sort_die ( never executed: sort_die ( dcgettext (((void *)0), "write failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3746 | dcgettext (((void *)0), never executed: sort_die ( dcgettext (((void *)0), "write failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3747 | "write failed" never executed: sort_die ( dcgettext (((void *)0), "write failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3748 | , 5) never executed: sort_die ( dcgettext (((void *)0), "write failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3749 | , output_file); never executed: sort_die ( dcgettext (((void *)0), "write failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
3750 | ebuf[-1] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||
3751 | } executed 180050 times by 1 test: end of block Executed by:
| 180050 | ||||||||||||||||||||||||||||||||||||||||||
3752 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3753 | - | |||||||||||||||||||||||||||||||||||||||||||
3754 | - | |||||||||||||||||||||||||||||||||||||||||||
3755 | - | |||||||||||||||||||||||||||||||||||||||||||
3756 | - | |||||||||||||||||||||||||||||||||||||||||||
3757 | - | |||||||||||||||||||||||||||||||||||||||||||
3758 | - | |||||||||||||||||||||||||||||||||||||||||||
3759 | static | - | ||||||||||||||||||||||||||||||||||||||||||
3760 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
3761 | - | |||||||||||||||||||||||||||||||||||||||||||
3762 | check (char const *file_name, char checkonly) | - | ||||||||||||||||||||||||||||||||||||||||||
3763 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3764 | FILE *fp = xfopen (file_name, "r"); | - | ||||||||||||||||||||||||||||||||||||||||||
3765 | struct buffer buf; | - | ||||||||||||||||||||||||||||||||||||||||||
3766 | struct line temp; | - | ||||||||||||||||||||||||||||||||||||||||||
3767 | size_t alloc = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
3768 | uintmax_t line_number = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
3769 | struct keyfield const *key = keylist; | - | ||||||||||||||||||||||||||||||||||||||||||
3770 | - | |||||||||||||||||||||||||||||||||||||||||||
3771 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
3772 | nonunique = ! unique; | - | ||||||||||||||||||||||||||||||||||||||||||
3773 | - | |||||||||||||||||||||||||||||||||||||||||||
3774 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
3775 | ordered = | - | ||||||||||||||||||||||||||||||||||||||||||
3776 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
3777 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
3778 | - | |||||||||||||||||||||||||||||||||||||||||||
3779 | initbuf (&buf, sizeof (struct line), | - | ||||||||||||||||||||||||||||||||||||||||||
3780 | - | |||||||||||||||||||||||||||||||||||||||||||
3781 | ((( | - | ||||||||||||||||||||||||||||||||||||||||||
3782 | merge_buffer_size | - | ||||||||||||||||||||||||||||||||||||||||||
3783 | )>( | - | ||||||||||||||||||||||||||||||||||||||||||
3784 | sort_size | - | ||||||||||||||||||||||||||||||||||||||||||
3785 | ))?( | - | ||||||||||||||||||||||||||||||||||||||||||
3786 | merge_buffer_size | - | ||||||||||||||||||||||||||||||||||||||||||
3787 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
3788 | sort_size | - | ||||||||||||||||||||||||||||||||||||||||||
3789 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
3790 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
3791 | temp.text = | - | ||||||||||||||||||||||||||||||||||||||||||
3792 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
3793 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
3794 | - | |||||||||||||||||||||||||||||||||||||||||||
3795 | while (fillbuf (&buf, fp, file_name)
| 27-42 | ||||||||||||||||||||||||||||||||||||||||||
3796 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3797 | struct line const *line = buffer_linelim (&buf); | - | ||||||||||||||||||||||||||||||||||||||||||
3798 | struct line const *linebase = line - buf.nlines; | - | ||||||||||||||||||||||||||||||||||||||||||
3799 | - | |||||||||||||||||||||||||||||||||||||||||||
3800 | - | |||||||||||||||||||||||||||||||||||||||||||
3801 | - | |||||||||||||||||||||||||||||||||||||||||||
3802 | if (alloc
| 0-42 | ||||||||||||||||||||||||||||||||||||||||||
3803 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3804 | found_disorder: | - | ||||||||||||||||||||||||||||||||||||||||||
3805 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3806 | if (checkonly == 'c'
| 3-12 | ||||||||||||||||||||||||||||||||||||||||||
3807 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3808 | struct line const *disorder_line = line - 1; | - | ||||||||||||||||||||||||||||||||||||||||||
3809 | uintmax_t disorder_line_number = | - | ||||||||||||||||||||||||||||||||||||||||||
3810 | buffer_linelim (&buf) - disorder_line + line_number; | - | ||||||||||||||||||||||||||||||||||||||||||
3811 | char hr_buf[((((((sizeof (disorder_line_number) * 8) - (! ((__typeof__ (disorder_line_number)) 0 < (__typeof__ (disorder_line_number)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (disorder_line_number)) 0 < (__typeof__ (disorder_line_number)) -1))) + 1)]; | - | ||||||||||||||||||||||||||||||||||||||||||
3812 | fprintf ( | - | ||||||||||||||||||||||||||||||||||||||||||
3813 | stderr | - | ||||||||||||||||||||||||||||||||||||||||||
3814 | , | - | ||||||||||||||||||||||||||||||||||||||||||
3815 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
3816 | "%s: %s:%s: disorder: " | - | ||||||||||||||||||||||||||||||||||||||||||
3817 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
3818 | , | - | ||||||||||||||||||||||||||||||||||||||||||
3819 | program_name, file_name, | - | ||||||||||||||||||||||||||||||||||||||||||
3820 | umaxtostr (disorder_line_number, hr_buf)); | - | ||||||||||||||||||||||||||||||||||||||||||
3821 | write_line (disorder_line, | - | ||||||||||||||||||||||||||||||||||||||||||
3822 | stderr | - | ||||||||||||||||||||||||||||||||||||||||||
3823 | , | - | ||||||||||||||||||||||||||||||||||||||||||
3824 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
3825 | "standard error" | - | ||||||||||||||||||||||||||||||||||||||||||
3826 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
3827 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
3828 | } executed 12 times by 1 test: end of block Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||
3829 | - | |||||||||||||||||||||||||||||||||||||||||||
3830 | ordered = | - | ||||||||||||||||||||||||||||||||||||||||||
3831 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
3832 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
3833 | break; executed 15 times by 1 test: break; Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||
3834 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3835 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3836 | - | |||||||||||||||||||||||||||||||||||||||||||
3837 | - | |||||||||||||||||||||||||||||||||||||||||||
3838 | while (linebase < --line
| 27-108 | ||||||||||||||||||||||||||||||||||||||||||
3839 | if (nonunique <= compare (line, line - 1)
| 15-93 | ||||||||||||||||||||||||||||||||||||||||||
3840 | goto executed 15 times by 1 test: found_disorder;goto found_disorder; Executed by:
executed 15 times by 1 test: goto found_disorder; Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||
3841 | - | |||||||||||||||||||||||||||||||||||||||||||
3842 | line_number += buf.nlines; | - | ||||||||||||||||||||||||||||||||||||||||||
3843 | - | |||||||||||||||||||||||||||||||||||||||||||
3844 | - | |||||||||||||||||||||||||||||||||||||||||||
3845 | if (alloc < line->length
| 0-27 | ||||||||||||||||||||||||||||||||||||||||||
3846 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3847 | do | - | ||||||||||||||||||||||||||||||||||||||||||
3848 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3849 | alloc *= 2; | - | ||||||||||||||||||||||||||||||||||||||||||
3850 | if (! alloc
| 0-27 | ||||||||||||||||||||||||||||||||||||||||||
3851 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3852 | alloc = line->length; | - | ||||||||||||||||||||||||||||||||||||||||||
3853 | break; executed 27 times by 1 test: break; Executed by:
| 27 | ||||||||||||||||||||||||||||||||||||||||||
3854 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3855 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
3856 | while (alloc < line->length
| 0 | ||||||||||||||||||||||||||||||||||||||||||
3857 | - | |||||||||||||||||||||||||||||||||||||||||||
3858 | free (temp.text); | - | ||||||||||||||||||||||||||||||||||||||||||
3859 | temp.text = xmalloc (alloc); | - | ||||||||||||||||||||||||||||||||||||||||||
3860 | } executed 27 times by 1 test: end of block Executed by:
| 27 | ||||||||||||||||||||||||||||||||||||||||||
3861 | memcpy (temp.text, line->text, line->length); | - | ||||||||||||||||||||||||||||||||||||||||||
3862 | temp.length = line->length; | - | ||||||||||||||||||||||||||||||||||||||||||
3863 | if (key
| 12-15 | ||||||||||||||||||||||||||||||||||||||||||
3864 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3865 | temp.keybeg = temp.text + (line->keybeg - line->text); | - | ||||||||||||||||||||||||||||||||||||||||||
3866 | temp.keylim = temp.text + (line->keylim - line->text); | - | ||||||||||||||||||||||||||||||||||||||||||
3867 | } executed 15 times by 1 test: end of block Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||
3868 | } executed 27 times by 1 test: end of block Executed by:
| 27 | ||||||||||||||||||||||||||||||||||||||||||
3869 | - | |||||||||||||||||||||||||||||||||||||||||||
3870 | xfclose (fp, file_name); | - | ||||||||||||||||||||||||||||||||||||||||||
3871 | free (buf.buf); | - | ||||||||||||||||||||||||||||||||||||||||||
3872 | free (temp.text); | - | ||||||||||||||||||||||||||||||||||||||||||
3873 | return executed 42 times by 1 test: ordered;return ordered; Executed by:
executed 42 times by 1 test: return ordered; Executed by:
| 42 | ||||||||||||||||||||||||||||||||||||||||||
3874 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3875 | - | |||||||||||||||||||||||||||||||||||||||||||
3876 | - | |||||||||||||||||||||||||||||||||||||||||||
3877 | - | |||||||||||||||||||||||||||||||||||||||||||
3878 | - | |||||||||||||||||||||||||||||||||||||||||||
3879 | - | |||||||||||||||||||||||||||||||||||||||||||
3880 | - | |||||||||||||||||||||||||||||||||||||||||||
3881 | static size_t | - | ||||||||||||||||||||||||||||||||||||||||||
3882 | open_input_files (struct sortfile *files, size_t nfiles, FILE ***pfps) | - | ||||||||||||||||||||||||||||||||||||||||||
3883 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3884 | FILE **fps = *pfps = xnmalloc (nfiles, sizeof *fps); | - | ||||||||||||||||||||||||||||||||||||||||||
3885 | int i; | - | ||||||||||||||||||||||||||||||||||||||||||
3886 | - | |||||||||||||||||||||||||||||||||||||||||||
3887 | - | |||||||||||||||||||||||||||||||||||||||||||
3888 | for (i = 0; i < nfiles
| 583-2608 | ||||||||||||||||||||||||||||||||||||||||||
3889 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3890 | fps[i] = (files[i].temp
| 213-2395 | ||||||||||||||||||||||||||||||||||||||||||
3891 | ? open_temp (files[i].temp) | - | ||||||||||||||||||||||||||||||||||||||||||
3892 | : stream_open (files[i].name, "r")); | - | ||||||||||||||||||||||||||||||||||||||||||
3893 | if (!fps[i]
| 63-2544 | ||||||||||||||||||||||||||||||||||||||||||
3894 | break; executed 63 times by 1 test: break; Executed by:
| 63 | ||||||||||||||||||||||||||||||||||||||||||
3895 | } executed 2544 times by 1 test: end of block Executed by:
| 2544 | ||||||||||||||||||||||||||||||||||||||||||
3896 | - | |||||||||||||||||||||||||||||||||||||||||||
3897 | return executed 646 times by 1 test: i;return i; Executed by:
executed 646 times by 1 test: return i; Executed by:
| 646 | ||||||||||||||||||||||||||||||||||||||||||
3898 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3899 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
3900 | mergefps (struct sortfile *files, size_t ntemps, size_t nfiles, | - | ||||||||||||||||||||||||||||||||||||||||||
3901 | FILE *ofp, char const *output_file, FILE **fps) | - | ||||||||||||||||||||||||||||||||||||||||||
3902 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3903 | struct buffer *buffer = xnmalloc (nfiles, sizeof *buffer); | - | ||||||||||||||||||||||||||||||||||||||||||
3904 | - | |||||||||||||||||||||||||||||||||||||||||||
3905 | struct line saved; | - | ||||||||||||||||||||||||||||||||||||||||||
3906 | struct line const *savedline = | - | ||||||||||||||||||||||||||||||||||||||||||
3907 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
3908 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
3909 | - | |||||||||||||||||||||||||||||||||||||||||||
3910 | size_t savealloc = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
3911 | struct line const **cur = xnmalloc (nfiles, sizeof *cur); | - | ||||||||||||||||||||||||||||||||||||||||||
3912 | - | |||||||||||||||||||||||||||||||||||||||||||
3913 | struct line const **base = xnmalloc (nfiles, sizeof *base); | - | ||||||||||||||||||||||||||||||||||||||||||
3914 | - | |||||||||||||||||||||||||||||||||||||||||||
3915 | size_t *ord = xnmalloc (nfiles, sizeof *ord); | - | ||||||||||||||||||||||||||||||||||||||||||
3916 | - | |||||||||||||||||||||||||||||||||||||||||||
3917 | - | |||||||||||||||||||||||||||||||||||||||||||
3918 | - | |||||||||||||||||||||||||||||||||||||||||||
3919 | size_t i; | - | ||||||||||||||||||||||||||||||||||||||||||
3920 | size_t j; | - | ||||||||||||||||||||||||||||||||||||||||||
3921 | size_t t; | - | ||||||||||||||||||||||||||||||||||||||||||
3922 | struct keyfield const *key = keylist; | - | ||||||||||||||||||||||||||||||||||||||||||
3923 | saved.text = | - | ||||||||||||||||||||||||||||||||||||||||||
3924 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
3925 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
3926 | - | |||||||||||||||||||||||||||||||||||||||||||
3927 | - | |||||||||||||||||||||||||||||||||||||||||||
3928 | for (i = 0; i < nfiles
| 646-2515 | ||||||||||||||||||||||||||||||||||||||||||
3929 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3930 | initbuf (&buffer[i], sizeof (struct line), | - | ||||||||||||||||||||||||||||||||||||||||||
3931 | - | |||||||||||||||||||||||||||||||||||||||||||
3932 | ((( | - | ||||||||||||||||||||||||||||||||||||||||||
3933 | merge_buffer_size | - | ||||||||||||||||||||||||||||||||||||||||||
3934 | )>( | - | ||||||||||||||||||||||||||||||||||||||||||
3935 | sort_size / nfiles | - | ||||||||||||||||||||||||||||||||||||||||||
3936 | ))?( | - | ||||||||||||||||||||||||||||||||||||||||||
3937 | merge_buffer_size | - | ||||||||||||||||||||||||||||||||||||||||||
3938 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
3939 | sort_size / nfiles | - | ||||||||||||||||||||||||||||||||||||||||||
3940 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
3941 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
3942 | if (fillbuf (&buffer[i], fps[i], files[i].name)
| 6-2509 | ||||||||||||||||||||||||||||||||||||||||||
3943 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3944 | struct line const *linelim = buffer_linelim (&buffer[i]); | - | ||||||||||||||||||||||||||||||||||||||||||
3945 | cur[i] = linelim - 1; | - | ||||||||||||||||||||||||||||||||||||||||||
3946 | base[i] = linelim - buffer[i].nlines; | - | ||||||||||||||||||||||||||||||||||||||||||
3947 | i++; | - | ||||||||||||||||||||||||||||||||||||||||||
3948 | } executed 2509 times by 1 test: end of block Executed by:
| 2509 | ||||||||||||||||||||||||||||||||||||||||||
3949 | else | - | ||||||||||||||||||||||||||||||||||||||||||
3950 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3951 | - | |||||||||||||||||||||||||||||||||||||||||||
3952 | xfclose (fps[i], files[i].name); | - | ||||||||||||||||||||||||||||||||||||||||||
3953 | if (i < ntemps
| 0-6 | ||||||||||||||||||||||||||||||||||||||||||
3954 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3955 | ntemps--; | - | ||||||||||||||||||||||||||||||||||||||||||
3956 | zaptemp (files[i].name); | - | ||||||||||||||||||||||||||||||||||||||||||
3957 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
3958 | free (buffer[i].buf); | - | ||||||||||||||||||||||||||||||||||||||||||
3959 | --nfiles; | - | ||||||||||||||||||||||||||||||||||||||||||
3960 | for (j = i; j < nfiles
| 6-12 | ||||||||||||||||||||||||||||||||||||||||||
3961 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3962 | files[j] = files[j + 1]; | - | ||||||||||||||||||||||||||||||||||||||||||
3963 | fps[j] = fps[j + 1]; | - | ||||||||||||||||||||||||||||||||||||||||||
3964 | } executed 12 times by 1 test: end of block Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||
3965 | } executed 6 times by 1 test: end of block Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
3966 | } | - | ||||||||||||||||||||||||||||||||||||||||||
3967 | - | |||||||||||||||||||||||||||||||||||||||||||
3968 | - | |||||||||||||||||||||||||||||||||||||||||||
3969 | - | |||||||||||||||||||||||||||||||||||||||||||
3970 | - | |||||||||||||||||||||||||||||||||||||||||||
3971 | for (i = 0; i < nfiles
| 646-2509 | ||||||||||||||||||||||||||||||||||||||||||
3972 | ord[i] = i; executed 2509 times by 1 test: ord[i] = i; Executed by:
| 2509 | ||||||||||||||||||||||||||||||||||||||||||
3973 | for (i = 1; i < nfiles
| 646-64952 | ||||||||||||||||||||||||||||||||||||||||||
3974 | if (0 < compare (cur[ord[i - 1]], cur[ord[i]])
| 11482-53470 | ||||||||||||||||||||||||||||||||||||||||||
3975 | t = ord[i - 1], ord[i - 1] = ord[i], ord[i] = t, i = 0; executed 11482 times by 1 test: t = ord[i - 1], ord[i - 1] = ord[i], ord[i] = t, i = 0; Executed by:
| 11482 | ||||||||||||||||||||||||||||||||||||||||||
3976 | - | |||||||||||||||||||||||||||||||||||||||||||
3977 | - | |||||||||||||||||||||||||||||||||||||||||||
3978 | while (nfiles
| 645-58195 | ||||||||||||||||||||||||||||||||||||||||||
3979 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3980 | struct line const *smallest = cur[ord[0]]; | - | ||||||||||||||||||||||||||||||||||||||||||
3981 | - | |||||||||||||||||||||||||||||||||||||||||||
3982 | - | |||||||||||||||||||||||||||||||||||||||||||
3983 | - | |||||||||||||||||||||||||||||||||||||||||||
3984 | if (unique
| 31-58164 | ||||||||||||||||||||||||||||||||||||||||||
3985 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3986 | if (savedline
| 0-18 | ||||||||||||||||||||||||||||||||||||||||||
3987 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3988 | savedline = | - | ||||||||||||||||||||||||||||||||||||||||||
3989 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
3990 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
3991 | write_line (&saved, ofp, output_file); | - | ||||||||||||||||||||||||||||||||||||||||||
3992 | } executed 18 times by 1 test: end of block Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||
3993 | if (!savedline
| 0-31 | ||||||||||||||||||||||||||||||||||||||||||
3994 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3995 | savedline = &saved; | - | ||||||||||||||||||||||||||||||||||||||||||
3996 | if (savealloc < smallest->length
| 12-19 | ||||||||||||||||||||||||||||||||||||||||||
3997 | { | - | ||||||||||||||||||||||||||||||||||||||||||
3998 | do | - | ||||||||||||||||||||||||||||||||||||||||||
3999 | if (! savealloc
| 13-31 | ||||||||||||||||||||||||||||||||||||||||||
4000 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4001 | savealloc = smallest->length; | - | ||||||||||||||||||||||||||||||||||||||||||
4002 | break; executed 13 times by 1 test: break; Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
4003 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4004 | while ((
| 6-25 | ||||||||||||||||||||||||||||||||||||||||||
4005 | - | |||||||||||||||||||||||||||||||||||||||||||
4006 | free (saved.text); | - | ||||||||||||||||||||||||||||||||||||||||||
4007 | saved.text = xmalloc (savealloc); | - | ||||||||||||||||||||||||||||||||||||||||||
4008 | } executed 19 times by 1 test: end of block Executed by:
| 19 | ||||||||||||||||||||||||||||||||||||||||||
4009 | saved.length = smallest->length; | - | ||||||||||||||||||||||||||||||||||||||||||
4010 | memcpy (saved.text, smallest->text, saved.length); | - | ||||||||||||||||||||||||||||||||||||||||||
4011 | if (key
| 12-19 | ||||||||||||||||||||||||||||||||||||||||||
4012 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4013 | saved.keybeg = | - | ||||||||||||||||||||||||||||||||||||||||||
4014 | saved.text + (smallest->keybeg - smallest->text); | - | ||||||||||||||||||||||||||||||||||||||||||
4015 | saved.keylim = | - | ||||||||||||||||||||||||||||||||||||||||||
4016 | saved.text + (smallest->keylim - smallest->text); | - | ||||||||||||||||||||||||||||||||||||||||||
4017 | } executed 12 times by 1 test: end of block Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||
4018 | } executed 31 times by 1 test: end of block Executed by:
| 31 | ||||||||||||||||||||||||||||||||||||||||||
4019 | } executed 31 times by 1 test: end of block Executed by:
| 31 | ||||||||||||||||||||||||||||||||||||||||||
4020 | else | - | ||||||||||||||||||||||||||||||||||||||||||
4021 | write_line (smallest, ofp, output_file); executed 58164 times by 1 test: write_line (smallest, ofp, output_file); Executed by:
| 58164 | ||||||||||||||||||||||||||||||||||||||||||
4022 | - | |||||||||||||||||||||||||||||||||||||||||||
4023 | - | |||||||||||||||||||||||||||||||||||||||||||
4024 | if (base[ord[0]] < smallest
| 2509-55686 | ||||||||||||||||||||||||||||||||||||||||||
4025 | cur[ord[0]] = smallest - 1; executed 55686 times by 1 test: cur[ord[0]] = smallest - 1; Executed by:
| 55686 | ||||||||||||||||||||||||||||||||||||||||||
4026 | else | - | ||||||||||||||||||||||||||||||||||||||||||
4027 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4028 | if (fillbuf (&buffer[ord[0]], fps[ord[0]], files[ord[0]].name)
| 0-2509 | ||||||||||||||||||||||||||||||||||||||||||
4029 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4030 | struct line const *linelim = buffer_linelim (&buffer[ord[0]]); | - | ||||||||||||||||||||||||||||||||||||||||||
4031 | cur[ord[0]] = linelim - 1; | - | ||||||||||||||||||||||||||||||||||||||||||
4032 | base[ord[0]] = linelim - buffer[ord[0]].nlines; | - | ||||||||||||||||||||||||||||||||||||||||||
4033 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
4034 | else | - | ||||||||||||||||||||||||||||||||||||||||||
4035 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4036 | - | |||||||||||||||||||||||||||||||||||||||||||
4037 | for (i = 1; i < nfiles
| 2509-11789 | ||||||||||||||||||||||||||||||||||||||||||
4038 | if (ord[i] > ord[0]
| 288-11501 | ||||||||||||||||||||||||||||||||||||||||||
4039 | -- executed 288 times by 1 test: ord[i];--ord[i]; Executed by:
executed 288 times by 1 test: --ord[i]; Executed by:
| 288 | ||||||||||||||||||||||||||||||||||||||||||
4040 | --nfiles; | - | ||||||||||||||||||||||||||||||||||||||||||
4041 | xfclose (fps[ord[0]], files[ord[0]].name); | - | ||||||||||||||||||||||||||||||||||||||||||
4042 | if (ord[0] < ntemps
| 138-2371 | ||||||||||||||||||||||||||||||||||||||||||
4043 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4044 | ntemps--; | - | ||||||||||||||||||||||||||||||||||||||||||
4045 | zaptemp (files[ord[0]].name); | - | ||||||||||||||||||||||||||||||||||||||||||
4046 | } executed 2370 times by 1 test: end of block Executed by:
| 2370 | ||||||||||||||||||||||||||||||||||||||||||
4047 | free (buffer[ord[0]].buf); | - | ||||||||||||||||||||||||||||||||||||||||||
4048 | for (i = ord[0]; i < nfiles
| 288-2508 | ||||||||||||||||||||||||||||||||||||||||||
4049 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4050 | fps[i] = fps[i + 1]; | - | ||||||||||||||||||||||||||||||||||||||||||
4051 | files[i] = files[i + 1]; | - | ||||||||||||||||||||||||||||||||||||||||||
4052 | buffer[i] = buffer[i + 1]; | - | ||||||||||||||||||||||||||||||||||||||||||
4053 | cur[i] = cur[i + 1]; | - | ||||||||||||||||||||||||||||||||||||||||||
4054 | base[i] = base[i + 1]; | - | ||||||||||||||||||||||||||||||||||||||||||
4055 | } executed 288 times by 1 test: end of block Executed by:
| 288 | ||||||||||||||||||||||||||||||||||||||||||
4056 | for (i = 0; i < nfiles
| 2508-11789 | ||||||||||||||||||||||||||||||||||||||||||
4057 | ord[i] = ord[i + 1]; executed 11789 times by 1 test: ord[i] = ord[i + 1]; Executed by:
| 11789 | ||||||||||||||||||||||||||||||||||||||||||
4058 | continue; executed 2508 times by 1 test: continue; Executed by:
| 2508 | ||||||||||||||||||||||||||||||||||||||||||
4059 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4060 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4061 | - | |||||||||||||||||||||||||||||||||||||||||||
4062 | - | |||||||||||||||||||||||||||||||||||||||||||
4063 | - | |||||||||||||||||||||||||||||||||||||||||||
4064 | - | |||||||||||||||||||||||||||||||||||||||||||
4065 | - | |||||||||||||||||||||||||||||||||||||||||||
4066 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4067 | size_t lo = 1; | - | ||||||||||||||||||||||||||||||||||||||||||
4068 | size_t hi = nfiles; | - | ||||||||||||||||||||||||||||||||||||||||||
4069 | size_t probe = lo; | - | ||||||||||||||||||||||||||||||||||||||||||
4070 | size_t ord0 = ord[0]; | - | ||||||||||||||||||||||||||||||||||||||||||
4071 | size_t count_of_smaller_lines; | - | ||||||||||||||||||||||||||||||||||||||||||
4072 | - | |||||||||||||||||||||||||||||||||||||||||||
4073 | while (lo < hi
| 38293-55686 | ||||||||||||||||||||||||||||||||||||||||||
4074 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4075 | int cmp = compare (cur[ord0], cur[ord[probe]]); | - | ||||||||||||||||||||||||||||||||||||||||||
4076 | if (cmp < 0
| 0-38265 | ||||||||||||||||||||||||||||||||||||||||||
4077 | hi = probe; executed 38266 times by 1 test: hi = probe; Executed by:
| 38266 | ||||||||||||||||||||||||||||||||||||||||||
4078 | else | - | ||||||||||||||||||||||||||||||||||||||||||
4079 | lo = probe + 1; executed 27 times by 1 test: lo = probe + 1; Executed by:
| 27 | ||||||||||||||||||||||||||||||||||||||||||
4080 | probe = (lo + hi) / 2; | - | ||||||||||||||||||||||||||||||||||||||||||
4081 | } executed 38293 times by 1 test: end of block Executed by:
| 38293 | ||||||||||||||||||||||||||||||||||||||||||
4082 | - | |||||||||||||||||||||||||||||||||||||||||||
4083 | count_of_smaller_lines = lo - 1; | - | ||||||||||||||||||||||||||||||||||||||||||
4084 | for (j = 0; j < count_of_smaller_lines
| 27-55686 | ||||||||||||||||||||||||||||||||||||||||||
4085 | ord[j] = ord[j + 1]; executed 27 times by 1 test: ord[j] = ord[j + 1]; Executed by:
| 27 | ||||||||||||||||||||||||||||||||||||||||||
4086 | ord[count_of_smaller_lines] = ord0; | - | ||||||||||||||||||||||||||||||||||||||||||
4087 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4088 | } executed 55686 times by 1 test: end of block Executed by:
| 55686 | ||||||||||||||||||||||||||||||||||||||||||
4089 | - | |||||||||||||||||||||||||||||||||||||||||||
4090 | if (unique
| 0-632 | ||||||||||||||||||||||||||||||||||||||||||
4091 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4092 | write_line (&saved, ofp, output_file); | - | ||||||||||||||||||||||||||||||||||||||||||
4093 | free (saved.text); | - | ||||||||||||||||||||||||||||||||||||||||||
4094 | } executed 13 times by 1 test: end of block Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
4095 | - | |||||||||||||||||||||||||||||||||||||||||||
4096 | xfclose (ofp, output_file); | - | ||||||||||||||||||||||||||||||||||||||||||
4097 | free (fps); | - | ||||||||||||||||||||||||||||||||||||||||||
4098 | free (buffer); | - | ||||||||||||||||||||||||||||||||||||||||||
4099 | free (ord); | - | ||||||||||||||||||||||||||||||||||||||||||
4100 | free (base); | - | ||||||||||||||||||||||||||||||||||||||||||
4101 | free (cur); | - | ||||||||||||||||||||||||||||||||||||||||||
4102 | } executed 645 times by 1 test: end of block Executed by:
| 645 | ||||||||||||||||||||||||||||||||||||||||||
4103 | static size_t | - | ||||||||||||||||||||||||||||||||||||||||||
4104 | mergefiles (struct sortfile *files, size_t ntemps, size_t nfiles, | - | ||||||||||||||||||||||||||||||||||||||||||
4105 | FILE *ofp, char const *output_file) | - | ||||||||||||||||||||||||||||||||||||||||||
4106 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4107 | FILE **fps; | - | ||||||||||||||||||||||||||||||||||||||||||
4108 | size_t nopened = open_input_files (files, nfiles, &fps); | - | ||||||||||||||||||||||||||||||||||||||||||
4109 | if (nopened < nfiles
| 0-492 | ||||||||||||||||||||||||||||||||||||||||||
4110 | sort_die ( never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , files[nopened].name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
4111 | dcgettext (((void *)0), never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , files[nopened].name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
4112 | "open failed" never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , files[nopened].name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
4113 | , 5) never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , files[nopened].name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
4114 | , files[nopened].name); never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , files[nopened].name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
4115 | mergefps (files, ntemps, nopened, ofp, output_file, fps); | - | ||||||||||||||||||||||||||||||||||||||||||
4116 | return executed 526 times by 1 test: nopened;return nopened; Executed by:
executed 526 times by 1 test: return nopened; Executed by:
| 526 | ||||||||||||||||||||||||||||||||||||||||||
4117 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4118 | - | |||||||||||||||||||||||||||||||||||||||||||
4119 | - | |||||||||||||||||||||||||||||||||||||||||||
4120 | - | |||||||||||||||||||||||||||||||||||||||||||
4121 | - | |||||||||||||||||||||||||||||||||||||||||||
4122 | - | |||||||||||||||||||||||||||||||||||||||||||
4123 | - | |||||||||||||||||||||||||||||||||||||||||||
4124 | - | |||||||||||||||||||||||||||||||||||||||||||
4125 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4126 | mergelines (struct line *__restrict t, size_t nlines, | - | ||||||||||||||||||||||||||||||||||||||||||
4127 | struct line const *__restrict lo) | - | ||||||||||||||||||||||||||||||||||||||||||
4128 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4129 | size_t nlo = nlines / 2; | - | ||||||||||||||||||||||||||||||||||||||||||
4130 | size_t nhi = nlines - nlo; | - | ||||||||||||||||||||||||||||||||||||||||||
4131 | struct line *hi = t - nlo; | - | ||||||||||||||||||||||||||||||||||||||||||
4132 | - | |||||||||||||||||||||||||||||||||||||||||||
4133 | while ( | - | ||||||||||||||||||||||||||||||||||||||||||
4134 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
4135 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
4136 | if (compare (lo - 1, hi - 1) <= 0
| 588190-621403 | ||||||||||||||||||||||||||||||||||||||||||
4137 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4138 | *--t = *--lo; | - | ||||||||||||||||||||||||||||||||||||||||||
4139 | if (! --nlo
| 37338-550852 | ||||||||||||||||||||||||||||||||||||||||||
4140 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4141 | - | |||||||||||||||||||||||||||||||||||||||||||
4142 | - | |||||||||||||||||||||||||||||||||||||||||||
4143 | return; executed 37338 times by 1 test: return; Executed by:
| 37338 | ||||||||||||||||||||||||||||||||||||||||||
4144 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4145 | } executed 550852 times by 1 test: end of block Executed by:
| 550852 | ||||||||||||||||||||||||||||||||||||||||||
4146 | else | - | ||||||||||||||||||||||||||||||||||||||||||
4147 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4148 | *--t = *--hi; | - | ||||||||||||||||||||||||||||||||||||||||||
4149 | if (! --nhi
| 32962-588441 | ||||||||||||||||||||||||||||||||||||||||||
4150 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4151 | do | - | ||||||||||||||||||||||||||||||||||||||||||
4152 | *-- executed 46660 times by 1 test: t = *--lo;*--t = *--lo; Executed by:
executed 46660 times by 1 test: *--t = *--lo; Executed by:
| 46660 | ||||||||||||||||||||||||||||||||||||||||||
4153 | while (--
| 13698-32962 | ||||||||||||||||||||||||||||||||||||||||||
4154 | - | |||||||||||||||||||||||||||||||||||||||||||
4155 | return; executed 32962 times by 1 test: return; Executed by:
| 32962 | ||||||||||||||||||||||||||||||||||||||||||
4156 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4157 | } executed 588441 times by 1 test: end of block Executed by:
| 588441 | ||||||||||||||||||||||||||||||||||||||||||
4158 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
4159 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4160 | sequential_sort (struct line *__restrict lines, size_t nlines, | - | ||||||||||||||||||||||||||||||||||||||||||
4161 | struct line *__restrict temp, | - | ||||||||||||||||||||||||||||||||||||||||||
4162 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
4163 | to_temp) | - | ||||||||||||||||||||||||||||||||||||||||||
4164 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4165 | if (nlines == 2
| 51917-70300 | ||||||||||||||||||||||||||||||||||||||||||
4166 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4167 | - | |||||||||||||||||||||||||||||||||||||||||||
4168 | - | |||||||||||||||||||||||||||||||||||||||||||
4169 | - | |||||||||||||||||||||||||||||||||||||||||||
4170 | int swap = (0 < compare (&lines[-1], &lines[-2])); | - | ||||||||||||||||||||||||||||||||||||||||||
4171 | if (to_temp
| 25842-26075 | ||||||||||||||||||||||||||||||||||||||||||
4172 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4173 | temp[-1] = lines[-1 - swap]; | - | ||||||||||||||||||||||||||||||||||||||||||
4174 | temp[-2] = lines[-2 + swap]; | - | ||||||||||||||||||||||||||||||||||||||||||
4175 | } executed 25842 times by 1 test: end of block Executed by:
| 25842 | ||||||||||||||||||||||||||||||||||||||||||
4176 | else if (swap
| 11366-14709 | ||||||||||||||||||||||||||||||||||||||||||
4177 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4178 | temp[-1] = lines[-1]; | - | ||||||||||||||||||||||||||||||||||||||||||
4179 | lines[-1] = lines[-2]; | - | ||||||||||||||||||||||||||||||||||||||||||
4180 | lines[-2] = temp[-1]; | - | ||||||||||||||||||||||||||||||||||||||||||
4181 | } executed 14709 times by 1 test: end of block Executed by:
| 14709 | ||||||||||||||||||||||||||||||||||||||||||
4182 | } executed 51917 times by 1 test: end of block Executed by:
| 51917 | ||||||||||||||||||||||||||||||||||||||||||
4183 | else | - | ||||||||||||||||||||||||||||||||||||||||||
4184 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4185 | size_t nlo = nlines / 2; | - | ||||||||||||||||||||||||||||||||||||||||||
4186 | size_t nhi = nlines - nlo; | - | ||||||||||||||||||||||||||||||||||||||||||
4187 | struct line *lo = lines; | - | ||||||||||||||||||||||||||||||||||||||||||
4188 | struct line *hi = lines - nlo; | - | ||||||||||||||||||||||||||||||||||||||||||
4189 | - | |||||||||||||||||||||||||||||||||||||||||||
4190 | sequential_sort (hi, nhi, temp - (to_temp ? nlo : 0), to_temp); | - | ||||||||||||||||||||||||||||||||||||||||||
4191 | if (1 < nlo
| 22393-47907 | ||||||||||||||||||||||||||||||||||||||||||
4192 | sequential_sort (lo, nlo, temp, !to_temp); executed 47907 times by 1 test: sequential_sort (lo, nlo, temp, !to_temp); Executed by:
| 47907 | ||||||||||||||||||||||||||||||||||||||||||
4193 | else if (!to_temp
| 9337-13056 | ||||||||||||||||||||||||||||||||||||||||||
4194 | temp[-1] = lo[-1]; executed 13056 times by 1 test: temp[-1] = lo[-1]; Executed by:
| 13056 | ||||||||||||||||||||||||||||||||||||||||||
4195 | - | |||||||||||||||||||||||||||||||||||||||||||
4196 | struct line *dest; | - | ||||||||||||||||||||||||||||||||||||||||||
4197 | struct line const *sorted_lo; | - | ||||||||||||||||||||||||||||||||||||||||||
4198 | if (to_temp
| 31402-38898 | ||||||||||||||||||||||||||||||||||||||||||
4199 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4200 | dest = temp; | - | ||||||||||||||||||||||||||||||||||||||||||
4201 | sorted_lo = lines; | - | ||||||||||||||||||||||||||||||||||||||||||
4202 | } executed 31402 times by 1 test: end of block Executed by:
| 31402 | ||||||||||||||||||||||||||||||||||||||||||
4203 | else | - | ||||||||||||||||||||||||||||||||||||||||||
4204 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4205 | dest = lines; | - | ||||||||||||||||||||||||||||||||||||||||||
4206 | sorted_lo = temp; | - | ||||||||||||||||||||||||||||||||||||||||||
4207 | } executed 38898 times by 1 test: end of block Executed by:
| 38898 | ||||||||||||||||||||||||||||||||||||||||||
4208 | mergelines (dest, nlines, sorted_lo); | - | ||||||||||||||||||||||||||||||||||||||||||
4209 | } executed 70300 times by 1 test: end of block Executed by:
| 70300 | ||||||||||||||||||||||||||||||||||||||||||
4210 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4211 | - | |||||||||||||||||||||||||||||||||||||||||||
4212 | static struct merge_node *init_node (struct merge_node *__restrict, | - | ||||||||||||||||||||||||||||||||||||||||||
4213 | struct merge_node *__restrict, | - | ||||||||||||||||||||||||||||||||||||||||||
4214 | struct line *, size_t, size_t, | - | ||||||||||||||||||||||||||||||||||||||||||
4215 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
4216 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
4217 | - | |||||||||||||||||||||||||||||||||||||||||||
4218 | - | |||||||||||||||||||||||||||||||||||||||||||
4219 | - | |||||||||||||||||||||||||||||||||||||||||||
4220 | - | |||||||||||||||||||||||||||||||||||||||||||
4221 | static struct merge_node * | - | ||||||||||||||||||||||||||||||||||||||||||
4222 | merge_tree_init (size_t nthreads, size_t nlines, struct line *dest) | - | ||||||||||||||||||||||||||||||||||||||||||
4223 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4224 | struct merge_node *merge_tree = xmalloc (2 * sizeof *merge_tree * nthreads); | - | ||||||||||||||||||||||||||||||||||||||||||
4225 | - | |||||||||||||||||||||||||||||||||||||||||||
4226 | struct merge_node *root = merge_tree; | - | ||||||||||||||||||||||||||||||||||||||||||
4227 | root->lo = root->hi = root->end_lo = root->end_hi = | - | ||||||||||||||||||||||||||||||||||||||||||
4228 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
4229 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
4230 | root->dest = | - | ||||||||||||||||||||||||||||||||||||||||||
4231 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
4232 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
4233 | root->nlo = root->nhi = nlines; | - | ||||||||||||||||||||||||||||||||||||||||||
4234 | root->parent = | - | ||||||||||||||||||||||||||||||||||||||||||
4235 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
4236 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
4237 | root->level = MERGE_END; | - | ||||||||||||||||||||||||||||||||||||||||||
4238 | root->queued = | - | ||||||||||||||||||||||||||||||||||||||||||
4239 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
4240 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
4241 | pthread_mutex_init (&root->lock, | - | ||||||||||||||||||||||||||||||||||||||||||
4242 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
4243 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
4244 | - | |||||||||||||||||||||||||||||||||||||||||||
4245 | init_node (root, root + 1, dest, nthreads, nlines, | - | ||||||||||||||||||||||||||||||||||||||||||
4246 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
4247 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
4248 | return executed 2402 times by 1 test: merge_tree;return merge_tree; Executed by:
executed 2402 times by 1 test: return merge_tree; Executed by:
| 2402 | ||||||||||||||||||||||||||||||||||||||||||
4249 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4250 | - | |||||||||||||||||||||||||||||||||||||||||||
4251 | - | |||||||||||||||||||||||||||||||||||||||||||
4252 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4253 | merge_tree_destroy (size_t nthreads, struct merge_node *merge_tree) | - | ||||||||||||||||||||||||||||||||||||||||||
4254 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4255 | size_t n_nodes = nthreads * 2; | - | ||||||||||||||||||||||||||||||||||||||||||
4256 | struct merge_node *node = merge_tree; | - | ||||||||||||||||||||||||||||||||||||||||||
4257 | - | |||||||||||||||||||||||||||||||||||||||||||
4258 | while (n_nodes--
| 0 | ||||||||||||||||||||||||||||||||||||||||||
4259 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4260 | pthread_mutex_destroy (&node->lock); | - | ||||||||||||||||||||||||||||||||||||||||||
4261 | node++; | - | ||||||||||||||||||||||||||||||||||||||||||
4262 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
4263 | - | |||||||||||||||||||||||||||||||||||||||||||
4264 | free (merge_tree); | - | ||||||||||||||||||||||||||||||||||||||||||
4265 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
4266 | static struct merge_node * | - | ||||||||||||||||||||||||||||||||||||||||||
4267 | init_node (struct merge_node *__restrict parent, | - | ||||||||||||||||||||||||||||||||||||||||||
4268 | struct merge_node *__restrict node_pool, | - | ||||||||||||||||||||||||||||||||||||||||||
4269 | struct line *dest, size_t nthreads, | - | ||||||||||||||||||||||||||||||||||||||||||
4270 | size_t total_lines, | - | ||||||||||||||||||||||||||||||||||||||||||
4271 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
4272 | is_lo_child) | - | ||||||||||||||||||||||||||||||||||||||||||
4273 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4274 | size_t nlines = (is_lo_child
| 7172-9574 | ||||||||||||||||||||||||||||||||||||||||||
4275 | size_t nlo = nlines / 2; | - | ||||||||||||||||||||||||||||||||||||||||||
4276 | size_t nhi = nlines - nlo; | - | ||||||||||||||||||||||||||||||||||||||||||
4277 | struct line *lo = dest - total_lines; | - | ||||||||||||||||||||||||||||||||||||||||||
4278 | struct line *hi = lo - nlo; | - | ||||||||||||||||||||||||||||||||||||||||||
4279 | struct line **parent_end = (is_lo_child
| 7172-9574 | ||||||||||||||||||||||||||||||||||||||||||
4280 | - | |||||||||||||||||||||||||||||||||||||||||||
4281 | struct merge_node *node = node_pool++; | - | ||||||||||||||||||||||||||||||||||||||||||
4282 | node->lo = node->end_lo = lo; | - | ||||||||||||||||||||||||||||||||||||||||||
4283 | node->hi = node->end_hi = hi; | - | ||||||||||||||||||||||||||||||||||||||||||
4284 | node->dest = parent_end; | - | ||||||||||||||||||||||||||||||||||||||||||
4285 | node->nlo = nlo; | - | ||||||||||||||||||||||||||||||||||||||||||
4286 | node->nhi = nhi; | - | ||||||||||||||||||||||||||||||||||||||||||
4287 | node->parent = parent; | - | ||||||||||||||||||||||||||||||||||||||||||
4288 | node->level = parent->level + 1; | - | ||||||||||||||||||||||||||||||||||||||||||
4289 | node->queued = | - | ||||||||||||||||||||||||||||||||||||||||||
4290 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
4291 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
4292 | pthread_mutex_init (&node->lock, | - | ||||||||||||||||||||||||||||||||||||||||||
4293 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
4294 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
4295 | - | |||||||||||||||||||||||||||||||||||||||||||
4296 | if (nthreads > 1
| 7172-9574 | ||||||||||||||||||||||||||||||||||||||||||
4297 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4298 | size_t lo_threads = nthreads / 2; | - | ||||||||||||||||||||||||||||||||||||||||||
4299 | size_t hi_threads = nthreads - lo_threads; | - | ||||||||||||||||||||||||||||||||||||||||||
4300 | node->lo_child = node_pool; | - | ||||||||||||||||||||||||||||||||||||||||||
4301 | node_pool = init_node (node, node_pool, lo, lo_threads, | - | ||||||||||||||||||||||||||||||||||||||||||
4302 | total_lines, | - | ||||||||||||||||||||||||||||||||||||||||||
4303 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
4304 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
4305 | node->hi_child = node_pool; | - | ||||||||||||||||||||||||||||||||||||||||||
4306 | node_pool = init_node (node, node_pool, hi, hi_threads, | - | ||||||||||||||||||||||||||||||||||||||||||
4307 | total_lines, | - | ||||||||||||||||||||||||||||||||||||||||||
4308 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
4309 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
4310 | } executed 7172 times by 1 test: end of block Executed by:
| 7172 | ||||||||||||||||||||||||||||||||||||||||||
4311 | else | - | ||||||||||||||||||||||||||||||||||||||||||
4312 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4313 | node->lo_child = | - | ||||||||||||||||||||||||||||||||||||||||||
4314 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
4315 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
4316 | node->hi_child = | - | ||||||||||||||||||||||||||||||||||||||||||
4317 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
4318 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
4319 | } executed 9574 times by 1 test: end of block Executed by:
| 9574 | ||||||||||||||||||||||||||||||||||||||||||
4320 | return executed 16746 times by 1 test: node_pool;return node_pool; Executed by:
executed 16746 times by 1 test: return node_pool; Executed by:
| 16746 | ||||||||||||||||||||||||||||||||||||||||||
4321 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4322 | - | |||||||||||||||||||||||||||||||||||||||||||
4323 | - | |||||||||||||||||||||||||||||||||||||||||||
4324 | - | |||||||||||||||||||||||||||||||||||||||||||
4325 | - | |||||||||||||||||||||||||||||||||||||||||||
4326 | static int | - | ||||||||||||||||||||||||||||||||||||||||||
4327 | compare_nodes (void const *a, void const *b) | - | ||||||||||||||||||||||||||||||||||||||||||
4328 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4329 | struct merge_node const *nodea = a; | - | ||||||||||||||||||||||||||||||||||||||||||
4330 | struct merge_node const *nodeb = b; | - | ||||||||||||||||||||||||||||||||||||||||||
4331 | if (nodea->level == nodeb->level
| 0 | ||||||||||||||||||||||||||||||||||||||||||
4332 | return never executed: (nodea->nlo + nodea->nhi) < (nodeb->nlo + nodeb->nhi);return (nodea->nlo + nodea->nhi) < (nodeb->nlo + nodeb->nhi); never executed: return (nodea->nlo + nodea->nhi) < (nodeb->nlo + nodeb->nhi); | 0 | ||||||||||||||||||||||||||||||||||||||||||
4333 | return never executed: nodea->level < nodeb->level;return nodea->level < nodeb->level; never executed: return nodea->level < nodeb->level; | 0 | ||||||||||||||||||||||||||||||||||||||||||
4334 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4335 | - | |||||||||||||||||||||||||||||||||||||||||||
4336 | - | |||||||||||||||||||||||||||||||||||||||||||
4337 | - | |||||||||||||||||||||||||||||||||||||||||||
4338 | static inline void | - | ||||||||||||||||||||||||||||||||||||||||||
4339 | lock_node (struct merge_node *node) | - | ||||||||||||||||||||||||||||||||||||||||||
4340 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4341 | pthread_mutex_lock (&node->lock); | - | ||||||||||||||||||||||||||||||||||||||||||
4342 | } executed 22790 times by 1 test: end of block Executed by:
| 22790 | ||||||||||||||||||||||||||||||||||||||||||
4343 | - | |||||||||||||||||||||||||||||||||||||||||||
4344 | - | |||||||||||||||||||||||||||||||||||||||||||
4345 | - | |||||||||||||||||||||||||||||||||||||||||||
4346 | static inline void | - | ||||||||||||||||||||||||||||||||||||||||||
4347 | unlock_node (struct merge_node *node) | - | ||||||||||||||||||||||||||||||||||||||||||
4348 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4349 | pthread_mutex_unlock (&node->lock); | - | ||||||||||||||||||||||||||||||||||||||||||
4350 | } executed 22790 times by 1 test: end of block Executed by:
| 22790 | ||||||||||||||||||||||||||||||||||||||||||
4351 | - | |||||||||||||||||||||||||||||||||||||||||||
4352 | - | |||||||||||||||||||||||||||||||||||||||||||
4353 | - | |||||||||||||||||||||||||||||||||||||||||||
4354 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4355 | queue_destroy (struct merge_node_queue *queue) | - | ||||||||||||||||||||||||||||||||||||||||||
4356 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4357 | heap_free (queue->priority_queue); | - | ||||||||||||||||||||||||||||||||||||||||||
4358 | pthread_cond_destroy (&queue->cond); | - | ||||||||||||||||||||||||||||||||||||||||||
4359 | pthread_mutex_destroy (&queue->mutex); | - | ||||||||||||||||||||||||||||||||||||||||||
4360 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
4361 | - | |||||||||||||||||||||||||||||||||||||||||||
4362 | - | |||||||||||||||||||||||||||||||||||||||||||
4363 | - | |||||||||||||||||||||||||||||||||||||||||||
4364 | - | |||||||||||||||||||||||||||||||||||||||||||
4365 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4366 | queue_init (struct merge_node_queue *queue, size_t nthreads) | - | ||||||||||||||||||||||||||||||||||||||||||
4367 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4368 | - | |||||||||||||||||||||||||||||||||||||||||||
4369 | - | |||||||||||||||||||||||||||||||||||||||||||
4370 | - | |||||||||||||||||||||||||||||||||||||||||||
4371 | queue->priority_queue = heap_alloc (compare_nodes, 2 * nthreads); | - | ||||||||||||||||||||||||||||||||||||||||||
4372 | pthread_mutex_init (&queue->mutex, | - | ||||||||||||||||||||||||||||||||||||||||||
4373 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
4374 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
4375 | pthread_cond_init (&queue->cond, | - | ||||||||||||||||||||||||||||||||||||||||||
4376 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
4377 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
4378 | } executed 2402 times by 1 test: end of block Executed by:
| 2402 | ||||||||||||||||||||||||||||||||||||||||||
4379 | - | |||||||||||||||||||||||||||||||||||||||||||
4380 | - | |||||||||||||||||||||||||||||||||||||||||||
4381 | - | |||||||||||||||||||||||||||||||||||||||||||
4382 | - | |||||||||||||||||||||||||||||||||||||||||||
4383 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4384 | queue_insert (struct merge_node_queue *queue, struct merge_node *node) | - | ||||||||||||||||||||||||||||||||||||||||||
4385 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4386 | pthread_mutex_lock (&queue->mutex); | - | ||||||||||||||||||||||||||||||||||||||||||
4387 | heap_insert (queue->priority_queue, node); | - | ||||||||||||||||||||||||||||||||||||||||||
4388 | node->queued = | - | ||||||||||||||||||||||||||||||||||||||||||
4389 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
4390 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
4391 | pthread_cond_signal (&queue->cond); | - | ||||||||||||||||||||||||||||||||||||||||||
4392 | pthread_mutex_unlock (&queue->mutex); | - | ||||||||||||||||||||||||||||||||||||||||||
4393 | } executed 25192 times by 1 test: end of block Executed by:
| 25192 | ||||||||||||||||||||||||||||||||||||||||||
4394 | - | |||||||||||||||||||||||||||||||||||||||||||
4395 | - | |||||||||||||||||||||||||||||||||||||||||||
4396 | - | |||||||||||||||||||||||||||||||||||||||||||
4397 | static struct merge_node * | - | ||||||||||||||||||||||||||||||||||||||||||
4398 | queue_pop (struct merge_node_queue *queue) | - | ||||||||||||||||||||||||||||||||||||||||||
4399 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4400 | struct merge_node *node; | - | ||||||||||||||||||||||||||||||||||||||||||
4401 | pthread_mutex_lock (&queue->mutex); | - | ||||||||||||||||||||||||||||||||||||||||||
4402 | while (! (node = heap_remove_top (queue->priority_queue))
| 0-22790 | ||||||||||||||||||||||||||||||||||||||||||
4403 | pthread_cond_wait (&queue->cond, &queue->mutex); never executed: pthread_cond_wait (&queue->cond, &queue->mutex); | 0 | ||||||||||||||||||||||||||||||||||||||||||
4404 | pthread_mutex_unlock (&queue->mutex); | - | ||||||||||||||||||||||||||||||||||||||||||
4405 | lock_node (node); | - | ||||||||||||||||||||||||||||||||||||||||||
4406 | node->queued = | - | ||||||||||||||||||||||||||||||||||||||||||
4407 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
4408 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
4409 | return executed 22790 times by 1 test: node;return node; Executed by:
executed 22790 times by 1 test: return node; Executed by:
| 22790 | ||||||||||||||||||||||||||||||||||||||||||
4410 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4411 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4412 | write_unique (struct line const *line, FILE *tfp, char const *temp_output) | - | ||||||||||||||||||||||||||||||||||||||||||
4413 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4414 | if (unique
| 5242-121834 | ||||||||||||||||||||||||||||||||||||||||||
4415 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4416 | if (saved_line.text
| 56-5186 | ||||||||||||||||||||||||||||||||||||||||||
4417 | return; executed 5124 times by 1 test: return; Executed by:
| 5124 | ||||||||||||||||||||||||||||||||||||||||||
4418 | saved_line = *line; | - | ||||||||||||||||||||||||||||||||||||||||||
4419 | } executed 118 times by 1 test: end of block Executed by:
| 118 | ||||||||||||||||||||||||||||||||||||||||||
4420 | - | |||||||||||||||||||||||||||||||||||||||||||
4421 | write_line (line, tfp, temp_output); | - | ||||||||||||||||||||||||||||||||||||||||||
4422 | } executed 121952 times by 1 test: end of block Executed by:
| 121952 | ||||||||||||||||||||||||||||||||||||||||||
4423 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4424 | mergelines_node (struct merge_node *__restrict node, size_t total_lines, | - | ||||||||||||||||||||||||||||||||||||||||||
4425 | FILE *tfp, char const *temp_output) | - | ||||||||||||||||||||||||||||||||||||||||||
4426 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4427 | struct line *lo_orig = node->lo; | - | ||||||||||||||||||||||||||||||||||||||||||
4428 | struct line *hi_orig = node->hi; | - | ||||||||||||||||||||||||||||||||||||||||||
4429 | size_t to_merge = (((total_lines) >> (2 * ((node->level) + 1))) + 1); | - | ||||||||||||||||||||||||||||||||||||||||||
4430 | size_t merged_lo; | - | ||||||||||||||||||||||||||||||||||||||||||
4431 | size_t merged_hi; | - | ||||||||||||||||||||||||||||||||||||||||||
4432 | - | |||||||||||||||||||||||||||||||||||||||||||
4433 | if (node->level > MERGE_ROOT
| 0-20388 | ||||||||||||||||||||||||||||||||||||||||||
4434 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4435 | - | |||||||||||||||||||||||||||||||||||||||||||
4436 | struct line *dest = *node->dest; | - | ||||||||||||||||||||||||||||||||||||||||||
4437 | while (node->lo != node->end_lo
| 0 | ||||||||||||||||||||||||||||||||||||||||||
4438 | if (compare (node->lo - 1, node->hi - 1) <= 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||
4439 | *-- never executed: dest = *--node->lo;*--dest = *--node->lo; never executed: *--dest = *--node->lo; | 0 | ||||||||||||||||||||||||||||||||||||||||||
4440 | else | - | ||||||||||||||||||||||||||||||||||||||||||
4441 | *-- never executed: dest = *--node->hi;*--dest = *--node->hi; never executed: *--dest = *--node->hi; | 0 | ||||||||||||||||||||||||||||||||||||||||||
4442 | - | |||||||||||||||||||||||||||||||||||||||||||
4443 | merged_lo = lo_orig - node->lo; | - | ||||||||||||||||||||||||||||||||||||||||||
4444 | merged_hi = hi_orig - node->hi; | - | ||||||||||||||||||||||||||||||||||||||||||
4445 | - | |||||||||||||||||||||||||||||||||||||||||||
4446 | if (node->nhi == merged_hi
| 0 | ||||||||||||||||||||||||||||||||||||||||||
4447 | while (node->lo != node->end_lo
| 0 | ||||||||||||||||||||||||||||||||||||||||||
4448 | *-- never executed: dest = *--node->lo;*--dest = *--node->lo; never executed: *--dest = *--node->lo; | 0 | ||||||||||||||||||||||||||||||||||||||||||
4449 | else if (node->nlo == merged_lo
| 0 | ||||||||||||||||||||||||||||||||||||||||||
4450 | while (node->hi != node->end_hi
| 0 | ||||||||||||||||||||||||||||||||||||||||||
4451 | *-- never executed: dest = *--node->hi;*--dest = *--node->hi; never executed: *--dest = *--node->hi; | 0 | ||||||||||||||||||||||||||||||||||||||||||
4452 | *node->dest = dest; | - | ||||||||||||||||||||||||||||||||||||||||||
4453 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
4454 | else | - | ||||||||||||||||||||||||||||||||||||||||||
4455 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4456 | - | |||||||||||||||||||||||||||||||||||||||||||
4457 | while (node->lo != node->end_lo
| 584-136133 | ||||||||||||||||||||||||||||||||||||||||||
4458 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4459 | if (compare (node->lo - 1, node->hi - 1) <= 0
| 53958-62371 | ||||||||||||||||||||||||||||||||||||||||||
4460 | write_unique (--node->lo, tfp, temp_output); executed 53958 times by 1 test: write_unique (--node->lo, tfp, temp_output); Executed by:
| 53958 | ||||||||||||||||||||||||||||||||||||||||||
4461 | else | - | ||||||||||||||||||||||||||||||||||||||||||
4462 | write_unique (--node->hi, tfp, temp_output); executed 62371 times by 1 test: write_unique (--node->hi, tfp, temp_output); Executed by:
| 62371 | ||||||||||||||||||||||||||||||||||||||||||
4463 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4464 | - | |||||||||||||||||||||||||||||||||||||||||||
4465 | merged_lo = lo_orig - node->lo; | - | ||||||||||||||||||||||||||||||||||||||||||
4466 | merged_hi = hi_orig - node->hi; | - | ||||||||||||||||||||||||||||||||||||||||||
4467 | - | |||||||||||||||||||||||||||||||||||||||||||
4468 | if (node->nhi == merged_hi
| 8759-11629 | ||||||||||||||||||||||||||||||||||||||||||
4469 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4470 | while (node->lo != node->end_lo
| 2165-18946 | ||||||||||||||||||||||||||||||||||||||||||
4471 | write_unique (--node->lo, tfp, temp_output); executed 9482 times by 1 test: write_unique (--node->lo, tfp, temp_output); Executed by:
| 9482 | ||||||||||||||||||||||||||||||||||||||||||
4472 | } executed 11629 times by 1 test: end of block Executed by:
| 11629 | ||||||||||||||||||||||||||||||||||||||||||
4473 | else if (node->nlo == merged_lo
| 584-8175 | ||||||||||||||||||||||||||||||||||||||||||
4474 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4475 | while (node->hi != node->end_hi
| 237-1557 | ||||||||||||||||||||||||||||||||||||||||||
4476 | write_unique (--node->hi, tfp, temp_output); executed 1210 times by 1 test: write_unique (--node->hi, tfp, temp_output); Executed by:
| 1210 | ||||||||||||||||||||||||||||||||||||||||||
4477 | } executed 584 times by 1 test: end of block Executed by:
| 584 | ||||||||||||||||||||||||||||||||||||||||||
4478 | } executed 20388 times by 1 test: end of block Executed by:
| 20388 | ||||||||||||||||||||||||||||||||||||||||||
4479 | - | |||||||||||||||||||||||||||||||||||||||||||
4480 | - | |||||||||||||||||||||||||||||||||||||||||||
4481 | merged_lo = lo_orig - node->lo; | - | ||||||||||||||||||||||||||||||||||||||||||
4482 | merged_hi = hi_orig - node->hi; | - | ||||||||||||||||||||||||||||||||||||||||||
4483 | node->nlo -= merged_lo; | - | ||||||||||||||||||||||||||||||||||||||||||
4484 | node->nhi -= merged_hi; | - | ||||||||||||||||||||||||||||||||||||||||||
4485 | } executed 20388 times by 1 test: end of block Executed by:
| 20388 | ||||||||||||||||||||||||||||||||||||||||||
4486 | - | |||||||||||||||||||||||||||||||||||||||||||
4487 | - | |||||||||||||||||||||||||||||||||||||||||||
4488 | - | |||||||||||||||||||||||||||||||||||||||||||
4489 | - | |||||||||||||||||||||||||||||||||||||||||||
4490 | - | |||||||||||||||||||||||||||||||||||||||||||
4491 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4492 | queue_check_insert (struct merge_node_queue *queue, struct merge_node *node) | - | ||||||||||||||||||||||||||||||||||||||||||
4493 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4494 | if (! node->queued
| 0-20388 | ||||||||||||||||||||||||||||||||||||||||||
4495 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4496 | - | |||||||||||||||||||||||||||||||||||||||||||
4497 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
4498 | lo_avail = (node->lo - node->end_lo) != 0; | - | ||||||||||||||||||||||||||||||||||||||||||
4499 | - | |||||||||||||||||||||||||||||||||||||||||||
4500 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
4501 | hi_avail = (node->hi - node->end_hi) != 0; | - | ||||||||||||||||||||||||||||||||||||||||||
4502 | if (lo_avail
| 0-17986 | ||||||||||||||||||||||||||||||||||||||||||
4503 | queue_insert (queue, node); executed 17986 times by 1 test: queue_insert (queue, node); Executed by:
| 17986 | ||||||||||||||||||||||||||||||||||||||||||
4504 | } executed 20388 times by 1 test: end of block Executed by:
| 20388 | ||||||||||||||||||||||||||||||||||||||||||
4505 | } executed 20388 times by 1 test: end of block Executed by:
| 20388 | ||||||||||||||||||||||||||||||||||||||||||
4506 | - | |||||||||||||||||||||||||||||||||||||||||||
4507 | - | |||||||||||||||||||||||||||||||||||||||||||
4508 | - | |||||||||||||||||||||||||||||||||||||||||||
4509 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4510 | queue_check_insert_parent (struct merge_node_queue *queue, | - | ||||||||||||||||||||||||||||||||||||||||||
4511 | struct merge_node *node) | - | ||||||||||||||||||||||||||||||||||||||||||
4512 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4513 | if (node->level > MERGE_ROOT
| 0-20388 | ||||||||||||||||||||||||||||||||||||||||||
4514 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4515 | lock_node (node->parent); | - | ||||||||||||||||||||||||||||||||||||||||||
4516 | queue_check_insert (queue, node->parent); | - | ||||||||||||||||||||||||||||||||||||||||||
4517 | unlock_node (node->parent); | - | ||||||||||||||||||||||||||||||||||||||||||
4518 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
4519 | else if (node->nlo + node->nhi == 0
| 2402-17986 | ||||||||||||||||||||||||||||||||||||||||||
4520 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4521 | - | |||||||||||||||||||||||||||||||||||||||||||
4522 | - | |||||||||||||||||||||||||||||||||||||||||||
4523 | queue_insert (queue, node->parent); | - | ||||||||||||||||||||||||||||||||||||||||||
4524 | } executed 2402 times by 1 test: end of block Executed by:
| 2402 | ||||||||||||||||||||||||||||||||||||||||||
4525 | } executed 20388 times by 1 test: end of block Executed by:
| 20388 | ||||||||||||||||||||||||||||||||||||||||||
4526 | - | |||||||||||||||||||||||||||||||||||||||||||
4527 | - | |||||||||||||||||||||||||||||||||||||||||||
4528 | - | |||||||||||||||||||||||||||||||||||||||||||
4529 | - | |||||||||||||||||||||||||||||||||||||||||||
4530 | - | |||||||||||||||||||||||||||||||||||||||||||
4531 | - | |||||||||||||||||||||||||||||||||||||||||||
4532 | - | |||||||||||||||||||||||||||||||||||||||||||
4533 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4534 | merge_loop (struct merge_node_queue *queue, | - | ||||||||||||||||||||||||||||||||||||||||||
4535 | size_t total_lines, FILE *tfp, char const *temp_output) | - | ||||||||||||||||||||||||||||||||||||||||||
4536 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4537 | while (1) | - | ||||||||||||||||||||||||||||||||||||||||||
4538 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4539 | struct merge_node *node = queue_pop (queue); | - | ||||||||||||||||||||||||||||||||||||||||||
4540 | - | |||||||||||||||||||||||||||||||||||||||||||
4541 | if (node->level == MERGE_END
| 2402-20388 | ||||||||||||||||||||||||||||||||||||||||||
4542 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4543 | unlock_node (node); | - | ||||||||||||||||||||||||||||||||||||||||||
4544 | - | |||||||||||||||||||||||||||||||||||||||||||
4545 | queue_insert (queue, node); | - | ||||||||||||||||||||||||||||||||||||||||||
4546 | break; executed 2402 times by 1 test: break; Executed by:
| 2402 | ||||||||||||||||||||||||||||||||||||||||||
4547 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4548 | mergelines_node (node, total_lines, tfp, temp_output); | - | ||||||||||||||||||||||||||||||||||||||||||
4549 | queue_check_insert (queue, node); | - | ||||||||||||||||||||||||||||||||||||||||||
4550 | queue_check_insert_parent (queue, node); | - | ||||||||||||||||||||||||||||||||||||||||||
4551 | - | |||||||||||||||||||||||||||||||||||||||||||
4552 | unlock_node (node); | - | ||||||||||||||||||||||||||||||||||||||||||
4553 | } executed 20388 times by 1 test: end of block Executed by:
| 20388 | ||||||||||||||||||||||||||||||||||||||||||
4554 | } executed 2402 times by 1 test: end of block Executed by:
| 2402 | ||||||||||||||||||||||||||||||||||||||||||
4555 | - | |||||||||||||||||||||||||||||||||||||||||||
4556 | - | |||||||||||||||||||||||||||||||||||||||||||
4557 | static void sortlines (struct line *__restrict, size_t, size_t, | - | ||||||||||||||||||||||||||||||||||||||||||
4558 | struct merge_node *, struct merge_node_queue *, | - | ||||||||||||||||||||||||||||||||||||||||||
4559 | FILE *, char const *); | - | ||||||||||||||||||||||||||||||||||||||||||
4560 | - | |||||||||||||||||||||||||||||||||||||||||||
4561 | - | |||||||||||||||||||||||||||||||||||||||||||
4562 | - | |||||||||||||||||||||||||||||||||||||||||||
4563 | struct thread_args | - | ||||||||||||||||||||||||||||||||||||||||||
4564 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4565 | - | |||||||||||||||||||||||||||||||||||||||||||
4566 | - | |||||||||||||||||||||||||||||||||||||||||||
4567 | struct line *lines; | - | ||||||||||||||||||||||||||||||||||||||||||
4568 | - | |||||||||||||||||||||||||||||||||||||||||||
4569 | - | |||||||||||||||||||||||||||||||||||||||||||
4570 | size_t nthreads; | - | ||||||||||||||||||||||||||||||||||||||||||
4571 | - | |||||||||||||||||||||||||||||||||||||||||||
4572 | - | |||||||||||||||||||||||||||||||||||||||||||
4573 | size_t const total_lines; | - | ||||||||||||||||||||||||||||||||||||||||||
4574 | - | |||||||||||||||||||||||||||||||||||||||||||
4575 | - | |||||||||||||||||||||||||||||||||||||||||||
4576 | - | |||||||||||||||||||||||||||||||||||||||||||
4577 | struct merge_node *const node; | - | ||||||||||||||||||||||||||||||||||||||||||
4578 | - | |||||||||||||||||||||||||||||||||||||||||||
4579 | - | |||||||||||||||||||||||||||||||||||||||||||
4580 | - | |||||||||||||||||||||||||||||||||||||||||||
4581 | struct merge_node_queue *const queue; | - | ||||||||||||||||||||||||||||||||||||||||||
4582 | - | |||||||||||||||||||||||||||||||||||||||||||
4583 | - | |||||||||||||||||||||||||||||||||||||||||||
4584 | - | |||||||||||||||||||||||||||||||||||||||||||
4585 | FILE *tfp; | - | ||||||||||||||||||||||||||||||||||||||||||
4586 | char const *output_temp; | - | ||||||||||||||||||||||||||||||||||||||||||
4587 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
4588 | - | |||||||||||||||||||||||||||||||||||||||||||
4589 | - | |||||||||||||||||||||||||||||||||||||||||||
4590 | - | |||||||||||||||||||||||||||||||||||||||||||
4591 | static void * | - | ||||||||||||||||||||||||||||||||||||||||||
4592 | sortlines_thread (void *data) | - | ||||||||||||||||||||||||||||||||||||||||||
4593 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4594 | struct thread_args const *args = data; | - | ||||||||||||||||||||||||||||||||||||||||||
4595 | sortlines (args->lines, args->nthreads, args->total_lines, | - | ||||||||||||||||||||||||||||||||||||||||||
4596 | args->node, args->queue, args->tfp, | - | ||||||||||||||||||||||||||||||||||||||||||
4597 | args->output_temp); | - | ||||||||||||||||||||||||||||||||||||||||||
4598 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
4599 | ((void *)0) never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
4600 | ; never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
4601 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4602 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4603 | sortlines (struct line *__restrict lines, size_t nthreads, | - | ||||||||||||||||||||||||||||||||||||||||||
4604 | size_t total_lines, struct merge_node *node, | - | ||||||||||||||||||||||||||||||||||||||||||
4605 | struct merge_node_queue *queue, FILE *tfp, char const *temp_output) | - | ||||||||||||||||||||||||||||||||||||||||||
4606 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4607 | size_t nlines = node->nlo + node->nhi; | - | ||||||||||||||||||||||||||||||||||||||||||
4608 | - | |||||||||||||||||||||||||||||||||||||||||||
4609 | - | |||||||||||||||||||||||||||||||||||||||||||
4610 | size_t lo_threads = nthreads / 2; | - | ||||||||||||||||||||||||||||||||||||||||||
4611 | size_t hi_threads = nthreads - lo_threads; | - | ||||||||||||||||||||||||||||||||||||||||||
4612 | pthread_t thread; | - | ||||||||||||||||||||||||||||||||||||||||||
4613 | struct thread_args args = {lines, lo_threads, total_lines, | - | ||||||||||||||||||||||||||||||||||||||||||
4614 | node->lo_child, queue, tfp, temp_output}; | - | ||||||||||||||||||||||||||||||||||||||||||
4615 | - | |||||||||||||||||||||||||||||||||||||||||||
4616 | if (nthreads > 1
| 0-2392 | ||||||||||||||||||||||||||||||||||||||||||
4617 | && pthread_create (&thread,
| 0 | ||||||||||||||||||||||||||||||||||||||||||
4618 | ((void *)0)
| 0 | ||||||||||||||||||||||||||||||||||||||||||
4619 | , sortlines_thread, &args) == 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||
4620 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4621 | sortlines (lines - node->nlo, hi_threads, total_lines, | - | ||||||||||||||||||||||||||||||||||||||||||
4622 | node->hi_child, queue, tfp, temp_output); | - | ||||||||||||||||||||||||||||||||||||||||||
4623 | pthread_join (thread, | - | ||||||||||||||||||||||||||||||||||||||||||
4624 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
4625 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
4626 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
4627 | else | - | ||||||||||||||||||||||||||||||||||||||||||
4628 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4629 | - | |||||||||||||||||||||||||||||||||||||||||||
4630 | - | |||||||||||||||||||||||||||||||||||||||||||
4631 | size_t nlo = node->nlo; | - | ||||||||||||||||||||||||||||||||||||||||||
4632 | size_t nhi = node->nhi; | - | ||||||||||||||||||||||||||||||||||||||||||
4633 | struct line *temp = lines - total_lines; | - | ||||||||||||||||||||||||||||||||||||||||||
4634 | if (1 < nhi
| 357-2045 | ||||||||||||||||||||||||||||||||||||||||||
4635 | sequential_sort (lines - nlo, nhi, temp - nlo / 2, executed 2045 times by 1 test: sequential_sort (lines - nlo, nhi, temp - nlo / 2, 0 ); Executed by:
| 2045 | ||||||||||||||||||||||||||||||||||||||||||
4636 | 0 executed 2045 times by 1 test: sequential_sort (lines - nlo, nhi, temp - nlo / 2, 0 ); Executed by:
| 2045 | ||||||||||||||||||||||||||||||||||||||||||
4637 | ); executed 2045 times by 1 test: sequential_sort (lines - nlo, nhi, temp - nlo / 2, 0 ); Executed by:
| 2045 | ||||||||||||||||||||||||||||||||||||||||||
4638 | if (1 < nlo
| 437-1965 | ||||||||||||||||||||||||||||||||||||||||||
4639 | sequential_sort (lines, nlo, temp, executed 1965 times by 1 test: sequential_sort (lines, nlo, temp, 0 ); Executed by:
| 1965 | ||||||||||||||||||||||||||||||||||||||||||
4640 | 0 executed 1965 times by 1 test: sequential_sort (lines, nlo, temp, 0 ); Executed by:
| 1965 | ||||||||||||||||||||||||||||||||||||||||||
4641 | ); executed 1965 times by 1 test: sequential_sort (lines, nlo, temp, 0 ); Executed by:
| 1965 | ||||||||||||||||||||||||||||||||||||||||||
4642 | - | |||||||||||||||||||||||||||||||||||||||||||
4643 | - | |||||||||||||||||||||||||||||||||||||||||||
4644 | node->lo = lines; | - | ||||||||||||||||||||||||||||||||||||||||||
4645 | node->hi = lines - nlo; | - | ||||||||||||||||||||||||||||||||||||||||||
4646 | node->end_lo = lines - nlo; | - | ||||||||||||||||||||||||||||||||||||||||||
4647 | node->end_hi = lines - nlo - nhi; | - | ||||||||||||||||||||||||||||||||||||||||||
4648 | - | |||||||||||||||||||||||||||||||||||||||||||
4649 | queue_insert (queue, node); | - | ||||||||||||||||||||||||||||||||||||||||||
4650 | merge_loop (queue, total_lines, tfp, temp_output); | - | ||||||||||||||||||||||||||||||||||||||||||
4651 | } executed 2402 times by 1 test: end of block Executed by:
| 2402 | ||||||||||||||||||||||||||||||||||||||||||
4652 | } | - | ||||||||||||||||||||||||||||||||||||||||||
4653 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4654 | avoid_trashing_input (struct sortfile *files, size_t ntemps, | - | ||||||||||||||||||||||||||||||||||||||||||
4655 | size_t nfiles, char const *outfile) | - | ||||||||||||||||||||||||||||||||||||||||||
4656 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4657 | - | |||||||||||||||||||||||||||||||||||||||||||
4658 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
4659 | got_outstat = | - | ||||||||||||||||||||||||||||||||||||||||||
4660 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
4661 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
4662 | struct stat outstat; | - | ||||||||||||||||||||||||||||||||||||||||||
4663 | struct tempnode *tempcopy = | - | ||||||||||||||||||||||||||||||||||||||||||
4664 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
4665 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
4666 | - | |||||||||||||||||||||||||||||||||||||||||||
4667 | for (size_t i = ntemps; i < nfiles
| 56-92 | ||||||||||||||||||||||||||||||||||||||||||
4668 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4669 | - | |||||||||||||||||||||||||||||||||||||||||||
4670 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
4671 | is_stdin = ( | - | ||||||||||||||||||||||||||||||||||||||||||
4672 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( | - | ||||||||||||||||||||||||||||||||||||||||||
4673 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4674 | ) && __builtin_constant_p ( | - | ||||||||||||||||||||||||||||||||||||||||||
4675 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4676 | ) && (__s1_len = __builtin_strlen ( | - | ||||||||||||||||||||||||||||||||||||||||||
4677 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4678 | ), __s2_len = __builtin_strlen ( | - | ||||||||||||||||||||||||||||||||||||||||||
4679 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4680 | ), (!((size_t)(const void *)(( | - | ||||||||||||||||||||||||||||||||||||||||||
4681 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4682 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||||||||||||||||||||
4683 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4684 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(( | - | ||||||||||||||||||||||||||||||||||||||||||
4685 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4686 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||||||||||||||||||||
4687 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4688 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp ( | - | ||||||||||||||||||||||||||||||||||||||||||
4689 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4690 | , | - | ||||||||||||||||||||||||||||||||||||||||||
4691 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4692 | ) : (__builtin_constant_p ( | - | ||||||||||||||||||||||||||||||||||||||||||
4693 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4694 | ) && ((size_t)(const void *)(( | - | ||||||||||||||||||||||||||||||||||||||||||
4695 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4696 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||||||||||||||||||||
4697 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4698 | ) == 1) && (__s1_len = __builtin_strlen ( | - | ||||||||||||||||||||||||||||||||||||||||||
4699 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4700 | ), __s1_len < 4) ? (__builtin_constant_p ( | - | ||||||||||||||||||||||||||||||||||||||||||
4701 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4702 | ) && ((size_t)(const void *)(( | - | ||||||||||||||||||||||||||||||||||||||||||
4703 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4704 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||||||||||||||||||||
4705 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4706 | ) == 1) ? __builtin_strcmp ( | - | ||||||||||||||||||||||||||||||||||||||||||
4707 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4708 | , | - | ||||||||||||||||||||||||||||||||||||||||||
4709 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4710 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( | - | ||||||||||||||||||||||||||||||||||||||||||
4711 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4712 | ); int __result = (((const unsigned char *) (const char *) ( | - | ||||||||||||||||||||||||||||||||||||||||||
4713 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4714 | ))[0] - __s2[0]); if (__s1_len > 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||
4715 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4716 | ))[1] - __s2[1]); if (__s1_len > 1
| 0 | ||||||||||||||||||||||||||||||||||||||||||
4717 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4718 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( files[i].name ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
4719 | files[i].name never executed: __result = (((const unsigned char *) (const char *) ( files[i].name ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
4720 | ))[3] - __s2[3]); never executed: }__result = (((const unsigned char *) (const char *) ( files[i].name ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
4721 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4722 | ) && ((size_t)(const void *)(( | - | ||||||||||||||||||||||||||||||||||||||||||
4723 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4724 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||||||||||||||||||||
4725 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4726 | ) == 1) && (__s2_len = __builtin_strlen ( | - | ||||||||||||||||||||||||||||||||||||||||||
4727 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4728 | ), __s2_len < 4) ? (__builtin_constant_p ( | - | ||||||||||||||||||||||||||||||||||||||||||
4729 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4730 | ) && ((size_t)(const void *)(( | - | ||||||||||||||||||||||||||||||||||||||||||
4731 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4732 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||||||||||||||||||||
4733 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4734 | ) == 1) ? __builtin_strcmp ( | - | ||||||||||||||||||||||||||||||||||||||||||
4735 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4736 | , | - | ||||||||||||||||||||||||||||||||||||||||||
4737 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4738 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( | - | ||||||||||||||||||||||||||||||||||||||||||
4739 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4740 | ); int __result = (((const unsigned char *) (const char *) ( | - | ||||||||||||||||||||||||||||||||||||||||||
4741 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4742 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-56 | ||||||||||||||||||||||||||||||||||||||||||
4743 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4744 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
4745 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4746 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
4747 | "-" never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
4748 | ))[3] - __s2[3]); never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); never executed: }end of block executed 2 times by 1 test: __result; }))) : __builtin_strcmp (end of block Executed by:
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
4749 | files[i].name | - | ||||||||||||||||||||||||||||||||||||||||||
4750 | , | - | ||||||||||||||||||||||||||||||||||||||||||
4751 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
4752 | )))); }) | - | ||||||||||||||||||||||||||||||||||||||||||
4753 | == 0); | - | ||||||||||||||||||||||||||||||||||||||||||
4754 | - | |||||||||||||||||||||||||||||||||||||||||||
4755 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
4756 | same; | - | ||||||||||||||||||||||||||||||||||||||||||
4757 | struct stat instat; | - | ||||||||||||||||||||||||||||||||||||||||||
4758 | - | |||||||||||||||||||||||||||||||||||||||||||
4759 | if (outfile
| 5-41 | ||||||||||||||||||||||||||||||||||||||||||
4760 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4761 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4762 | ) && __builtin_constant_p (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4763 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4764 | ) && (__s1_len = __builtin_strlen (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4765 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4766 | ), __s2_len = __builtin_strlen (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4767 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4768 | ), (!((size_t)(const void *)((
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4769 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4770 | ) + 1) - (size_t)(const void *)(
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4771 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4772 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4773 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4774 | ) + 1) - (size_t)(const void *)(
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4775 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4776 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4777 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4778 | ,
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4779 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4780 | ) : (__builtin_constant_p (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4781 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4782 | ) && ((size_t)(const void *)((
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4783 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4784 | ) + 1) - (size_t)(const void *)(
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4785 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4786 | ) == 1) && (__s1_len = __builtin_strlen (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4787 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4788 | ), __s1_len < 4) ? (__builtin_constant_p (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4789 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4790 | ) && ((size_t)(const void *)((
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4791 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4792 | ) + 1) - (size_t)(const void *)(
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4793 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4794 | ) == 1) ? __builtin_strcmp (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4795 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4796 | ,
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4797 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4798 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4799 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4800 | ); int __result = (((const unsigned char *) (const char *) (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4801 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4802 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||
4803 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4804 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||
4805 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4806 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( outfile ))[3] - __s2[3]);
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||
4807 | outfile
never executed: __result = (((const unsigned char *) (const char *) ( outfile ))[3] - __s2[3]); | 0-10 | ||||||||||||||||||||||||||||||||||||||||||
4808 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( outfile ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||
4809 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4810 | ) && ((size_t)(const void *)((
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4811 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4812 | ) + 1) - (size_t)(const void *)(
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4813 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4814 | ) == 1) && (__s2_len = __builtin_strlen (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4815 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4816 | ), __s2_len < 4) ? (__builtin_constant_p (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4817 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4818 | ) && ((size_t)(const void *)((
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4819 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4820 | ) + 1) - (size_t)(const void *)(
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4821 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4822 | ) == 1) ? __builtin_strcmp (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4823 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4824 | ,
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4825 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4826 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4827 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4828 | ); int __result = (((const unsigned char *) (const char *) (
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4829 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4830 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||
4831 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4832 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||
4833 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4834 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( files[i].name ))[3] - __s2[3]);
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||
4835 | files[i].name
never executed: __result = (((const unsigned char *) (const char *) ( files[i].name ))[3] - __s2[3]); | 0-10 | ||||||||||||||||||||||||||||||||||||||||||
4836 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( files[i].name ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : __builtin_strcmp (end of block
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||
4837 | outfile
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4838 | ,
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4839 | files[i].name
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4840 | )))); })
| 5-10 | ||||||||||||||||||||||||||||||||||||||||||
4841 | == 0)
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||
4842 | same = executed 5 times by 1 test: same = 1 ; Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
4843 | 1 executed 5 times by 1 test: same = 1 ; Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
4844 | ; executed 5 times by 1 test: same = 1 ; Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
4845 | else | - | ||||||||||||||||||||||||||||||||||||||||||
4846 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4847 | if (! got_outstat
| 12-39 | ||||||||||||||||||||||||||||||||||||||||||
4848 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4849 | if (fstat (
| 0-12 | ||||||||||||||||||||||||||||||||||||||||||
4850 | 1
| 0-12 | ||||||||||||||||||||||||||||||||||||||||||
4851 | , &outstat) != 0
| 0-12 | ||||||||||||||||||||||||||||||||||||||||||
4852 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||
4853 | got_outstat = | - | ||||||||||||||||||||||||||||||||||||||||||
4854 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
4855 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
4856 | } executed 12 times by 1 test: end of block Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||
4857 | - | |||||||||||||||||||||||||||||||||||||||||||
4858 | same = (((
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
4859 | ? fstat (
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
4860 | 0
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
4861 | , &instat)
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
4862 | : stat (files[i].name, &instat))
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
4863 | == 0)
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
4864 | && ((
| 0-50 | ||||||||||||||||||||||||||||||||||||||||||
4865 | } executed 51 times by 1 test: end of block Executed by:
| 51 | ||||||||||||||||||||||||||||||||||||||||||
4866 | - | |||||||||||||||||||||||||||||||||||||||||||
4867 | if (same
| 6-50 | ||||||||||||||||||||||||||||||||||||||||||
4868 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4869 | if (! tempcopy
| 1-5 | ||||||||||||||||||||||||||||||||||||||||||
4870 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4871 | FILE *tftp; | - | ||||||||||||||||||||||||||||||||||||||||||
4872 | tempcopy = create_temp (&tftp); | - | ||||||||||||||||||||||||||||||||||||||||||
4873 | mergefiles (&files[i], 0, 1, tftp, tempcopy->name); | - | ||||||||||||||||||||||||||||||||||||||||||
4874 | } executed 5 times by 1 test: end of block Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
4875 | - | |||||||||||||||||||||||||||||||||||||||||||
4876 | files[i].name = tempcopy->name; | - | ||||||||||||||||||||||||||||||||||||||||||
4877 | files[i].temp = tempcopy; | - | ||||||||||||||||||||||||||||||||||||||||||
4878 | } executed 6 times by 1 test: end of block Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
4879 | } executed 56 times by 1 test: end of block Executed by:
| 56 | ||||||||||||||||||||||||||||||||||||||||||
4880 | } executed 92 times by 1 test: end of block Executed by:
| 92 | ||||||||||||||||||||||||||||||||||||||||||
4881 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4882 | check_inputs (char *const *files, size_t nfiles) | - | ||||||||||||||||||||||||||||||||||||||||||
4883 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4884 | for (size_t i = 0; i < nfiles
| 729-865 | ||||||||||||||||||||||||||||||||||||||||||
4885 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4886 | if ((
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4887 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4888 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4889 | ) && __builtin_constant_p (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4890 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4891 | ) && (__s1_len = __builtin_strlen (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4892 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4893 | ), __s2_len = __builtin_strlen (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4894 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4895 | ), (!((size_t)(const void *)((
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4896 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4897 | ) + 1) - (size_t)(const void *)(
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4898 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4899 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4900 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4901 | ) + 1) - (size_t)(const void *)(
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4902 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4903 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4904 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4905 | ,
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4906 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4907 | ) : (__builtin_constant_p (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4908 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4909 | ) && ((size_t)(const void *)((
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4910 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4911 | ) + 1) - (size_t)(const void *)(
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4912 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4913 | ) == 1) && (__s1_len = __builtin_strlen (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4914 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4915 | ), __s1_len < 4) ? (__builtin_constant_p (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4916 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4917 | ) && ((size_t)(const void *)((
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4918 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4919 | ) + 1) - (size_t)(const void *)(
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4920 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4921 | ) == 1) ? __builtin_strcmp (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4922 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4923 | ,
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4924 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4925 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4926 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4927 | ); int __result = (((const unsigned char *) (const char *) (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4928 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4929 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-537 | ||||||||||||||||||||||||||||||||||||||||||
4930 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4931 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-537 | ||||||||||||||||||||||||||||||||||||||||||
4932 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4933 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( files[i] ))[3] - __s2[3]);
| 0-537 | ||||||||||||||||||||||||||||||||||||||||||
4934 | files[i]
never executed: __result = (((const unsigned char *) (const char *) ( files[i] ))[3] - __s2[3]); | 0-537 | ||||||||||||||||||||||||||||||||||||||||||
4935 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( files[i] ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block
| 0-537 | ||||||||||||||||||||||||||||||||||||||||||
4936 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4937 | ) && ((size_t)(const void *)((
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4938 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4939 | ) + 1) - (size_t)(const void *)(
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4940 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4941 | ) == 1) && (__s2_len = __builtin_strlen (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4942 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4943 | ), __s2_len < 4) ? (__builtin_constant_p (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4944 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4945 | ) && ((size_t)(const void *)((
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4946 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4947 | ) + 1) - (size_t)(const void *)(
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4948 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4949 | ) == 1) ? __builtin_strcmp (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4950 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4951 | ,
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4952 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4953 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4954 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4955 | ); int __result = (((const unsigned char *) (const char *) (
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4956 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4957 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-865 | ||||||||||||||||||||||||||||||||||||||||||
4958 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4959 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-537 | ||||||||||||||||||||||||||||||||||||||||||
4960 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4961 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-537 | ||||||||||||||||||||||||||||||||||||||||||
4962 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-537 | ||||||||||||||||||||||||||||||||||||||||||
4963 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); never executed: } __result; }))) : __builtin_strcmp (end of block
| 0-537 | ||||||||||||||||||||||||||||||||||||||||||
4964 | files[i]
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4965 | ,
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4966 | "-"
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4967 | )))); })
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4968 | == 0)
| 328-537 | ||||||||||||||||||||||||||||||||||||||||||
4969 | continue; executed 537 times by 1 test: continue; Executed by:
| 537 | ||||||||||||||||||||||||||||||||||||||||||
4970 | - | |||||||||||||||||||||||||||||||||||||||||||
4971 | if (euidaccess (files[i],
| 4-324 | ||||||||||||||||||||||||||||||||||||||||||
4972 | 4
| 4-324 | ||||||||||||||||||||||||||||||||||||||||||
4973 | ) != 0
| 4-324 | ||||||||||||||||||||||||||||||||||||||||||
4974 | sort_die ( executed 4 times by 1 test: sort_die ( dcgettext (((void *)0), "cannot read" , 5) , files[i]); Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
4975 | dcgettext (((void *)0), executed 4 times by 1 test: sort_die ( dcgettext (((void *)0), "cannot read" , 5) , files[i]); Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
4976 | "cannot read" executed 4 times by 1 test: sort_die ( dcgettext (((void *)0), "cannot read" , 5) , files[i]); Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
4977 | , 5) executed 4 times by 1 test: sort_die ( dcgettext (((void *)0), "cannot read" , 5) , files[i]); Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
4978 | , files[i]); executed 4 times by 1 test: sort_die ( dcgettext (((void *)0), "cannot read" , 5) , files[i]); Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
4979 | } executed 324 times by 1 test: end of block Executed by:
| 324 | ||||||||||||||||||||||||||||||||||||||||||
4980 | } executed 729 times by 1 test: end of block Executed by:
| 729 | ||||||||||||||||||||||||||||||||||||||||||
4981 | - | |||||||||||||||||||||||||||||||||||||||||||
4982 | - | |||||||||||||||||||||||||||||||||||||||||||
4983 | - | |||||||||||||||||||||||||||||||||||||||||||
4984 | - | |||||||||||||||||||||||||||||||||||||||||||
4985 | - | |||||||||||||||||||||||||||||||||||||||||||
4986 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
4987 | check_output (char const *outfile) | - | ||||||||||||||||||||||||||||||||||||||||||
4988 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4989 | if (outfile
| 8-721 | ||||||||||||||||||||||||||||||||||||||||||
4990 | { | - | ||||||||||||||||||||||||||||||||||||||||||
4991 | int oflags = | - | ||||||||||||||||||||||||||||||||||||||||||
4992 | 01 | - | ||||||||||||||||||||||||||||||||||||||||||
4993 | | | - | ||||||||||||||||||||||||||||||||||||||||||
4994 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
4995 | | | - | ||||||||||||||||||||||||||||||||||||||||||
4996 | 02000000 | - | ||||||||||||||||||||||||||||||||||||||||||
4997 | | | - | ||||||||||||||||||||||||||||||||||||||||||
4998 | 0100 | - | ||||||||||||||||||||||||||||||||||||||||||
4999 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5000 | int outfd = open (outfile, oflags, ( | - | ||||||||||||||||||||||||||||||||||||||||||
5001 | 0400 | - | ||||||||||||||||||||||||||||||||||||||||||
5002 | | | - | ||||||||||||||||||||||||||||||||||||||||||
5003 | 0200 | - | ||||||||||||||||||||||||||||||||||||||||||
5004 | | | - | ||||||||||||||||||||||||||||||||||||||||||
5005 | (0400 >> 3) | - | ||||||||||||||||||||||||||||||||||||||||||
5006 | | | - | ||||||||||||||||||||||||||||||||||||||||||
5007 | (0200 >> 3) | - | ||||||||||||||||||||||||||||||||||||||||||
5008 | | | - | ||||||||||||||||||||||||||||||||||||||||||
5009 | ((0400 >> 3) >> 3) | - | ||||||||||||||||||||||||||||||||||||||||||
5010 | | | - | ||||||||||||||||||||||||||||||||||||||||||
5011 | ((0200 >> 3) >> 3) | - | ||||||||||||||||||||||||||||||||||||||||||
5012 | )); | - | ||||||||||||||||||||||||||||||||||||||||||
5013 | if (outfd < 0
| 2-6 | ||||||||||||||||||||||||||||||||||||||||||
5014 | sort_die ( executed 2 times by 1 test: sort_die ( dcgettext (((void *)0), "open failed" , 5) , outfile); Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
5015 | dcgettext (((void *)0), executed 2 times by 1 test: sort_die ( dcgettext (((void *)0), "open failed" , 5) , outfile); Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
5016 | "open failed" executed 2 times by 1 test: sort_die ( dcgettext (((void *)0), "open failed" , 5) , outfile); Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
5017 | , 5) executed 2 times by 1 test: sort_die ( dcgettext (((void *)0), "open failed" , 5) , outfile); Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
5018 | , outfile); executed 2 times by 1 test: sort_die ( dcgettext (((void *)0), "open failed" , 5) , outfile); Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
5019 | move_fd (outfd, | - | ||||||||||||||||||||||||||||||||||||||||||
5020 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
5021 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
5022 | } executed 6 times by 1 test: end of block Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
5023 | } executed 727 times by 1 test: end of block Executed by:
| 727 | ||||||||||||||||||||||||||||||||||||||||||
5024 | - | |||||||||||||||||||||||||||||||||||||||||||
5025 | - | |||||||||||||||||||||||||||||||||||||||||||
5026 | - | |||||||||||||||||||||||||||||||||||||||||||
5027 | - | |||||||||||||||||||||||||||||||||||||||||||
5028 | - | |||||||||||||||||||||||||||||||||||||||||||
5029 | - | |||||||||||||||||||||||||||||||||||||||||||
5030 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
5031 | merge (struct sortfile *files, size_t ntemps, size_t nfiles, | - | ||||||||||||||||||||||||||||||||||||||||||
5032 | char const *output_file) | - | ||||||||||||||||||||||||||||||||||||||||||
5033 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5034 | while (nmerge < nfiles
| 31-92 | ||||||||||||||||||||||||||||||||||||||||||
5035 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5036 | - | |||||||||||||||||||||||||||||||||||||||||||
5037 | size_t in; | - | ||||||||||||||||||||||||||||||||||||||||||
5038 | - | |||||||||||||||||||||||||||||||||||||||||||
5039 | - | |||||||||||||||||||||||||||||||||||||||||||
5040 | size_t out; | - | ||||||||||||||||||||||||||||||||||||||||||
5041 | - | |||||||||||||||||||||||||||||||||||||||||||
5042 | - | |||||||||||||||||||||||||||||||||||||||||||
5043 | - | |||||||||||||||||||||||||||||||||||||||||||
5044 | size_t remainder; | - | ||||||||||||||||||||||||||||||||||||||||||
5045 | - | |||||||||||||||||||||||||||||||||||||||||||
5046 | - | |||||||||||||||||||||||||||||||||||||||||||
5047 | size_t cheap_slots; | - | ||||||||||||||||||||||||||||||||||||||||||
5048 | - | |||||||||||||||||||||||||||||||||||||||||||
5049 | - | |||||||||||||||||||||||||||||||||||||||||||
5050 | - | |||||||||||||||||||||||||||||||||||||||||||
5051 | - | |||||||||||||||||||||||||||||||||||||||||||
5052 | for (out = in = 0; nmerge <= nfiles - in
| 30-511 | ||||||||||||||||||||||||||||||||||||||||||
5053 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5054 | FILE *tfp; | - | ||||||||||||||||||||||||||||||||||||||||||
5055 | struct tempnode *temp = create_temp (&tfp); | - | ||||||||||||||||||||||||||||||||||||||||||
5056 | size_t num_merged = mergefiles (&files[in], | - | ||||||||||||||||||||||||||||||||||||||||||
5057 | ((( | - | ||||||||||||||||||||||||||||||||||||||||||
5058 | ntemps | - | ||||||||||||||||||||||||||||||||||||||||||
5059 | )<( | - | ||||||||||||||||||||||||||||||||||||||||||
5060 | nmerge | - | ||||||||||||||||||||||||||||||||||||||||||
5061 | ))?( | - | ||||||||||||||||||||||||||||||||||||||||||
5062 | ntemps | - | ||||||||||||||||||||||||||||||||||||||||||
5063 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
5064 | nmerge | - | ||||||||||||||||||||||||||||||||||||||||||
5065 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
5066 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5067 | nmerge, tfp, temp->name); | - | ||||||||||||||||||||||||||||||||||||||||||
5068 | ntemps -= | - | ||||||||||||||||||||||||||||||||||||||||||
5069 | (((
| 20-490 | ||||||||||||||||||||||||||||||||||||||||||
5070 | ntemps
| 20-490 | ||||||||||||||||||||||||||||||||||||||||||
5071 | )<(
| 20-490 | ||||||||||||||||||||||||||||||||||||||||||
5072 | num_merged
| 20-490 | ||||||||||||||||||||||||||||||||||||||||||
5073 | ))
| 20-490 | ||||||||||||||||||||||||||||||||||||||||||
5074 | ntemps | - | ||||||||||||||||||||||||||||||||||||||||||
5075 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
5076 | num_merged | - | ||||||||||||||||||||||||||||||||||||||||||
5077 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
5078 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5079 | files[out].name = temp->name; | - | ||||||||||||||||||||||||||||||||||||||||||
5080 | files[out].temp = temp; | - | ||||||||||||||||||||||||||||||||||||||||||
5081 | in += num_merged; | - | ||||||||||||||||||||||||||||||||||||||||||
5082 | } executed 510 times by 1 test: end of block Executed by:
| 510 | ||||||||||||||||||||||||||||||||||||||||||
5083 | - | |||||||||||||||||||||||||||||||||||||||||||
5084 | remainder = nfiles - in; | - | ||||||||||||||||||||||||||||||||||||||||||
5085 | cheap_slots = nmerge - out % nmerge; | - | ||||||||||||||||||||||||||||||||||||||||||
5086 | - | |||||||||||||||||||||||||||||||||||||||||||
5087 | if (cheap_slots < remainder
| 11-19 | ||||||||||||||||||||||||||||||||||||||||||
5088 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5089 | - | |||||||||||||||||||||||||||||||||||||||||||
5090 | - | |||||||||||||||||||||||||||||||||||||||||||
5091 | - | |||||||||||||||||||||||||||||||||||||||||||
5092 | size_t nshortmerge = remainder - cheap_slots + 1; | - | ||||||||||||||||||||||||||||||||||||||||||
5093 | FILE *tfp; | - | ||||||||||||||||||||||||||||||||||||||||||
5094 | struct tempnode *temp = create_temp (&tfp); | - | ||||||||||||||||||||||||||||||||||||||||||
5095 | size_t num_merged = mergefiles (&files[in], | - | ||||||||||||||||||||||||||||||||||||||||||
5096 | ((( | - | ||||||||||||||||||||||||||||||||||||||||||
5097 | ntemps | - | ||||||||||||||||||||||||||||||||||||||||||
5098 | )<( | - | ||||||||||||||||||||||||||||||||||||||||||
5099 | nshortmerge | - | ||||||||||||||||||||||||||||||||||||||||||
5100 | ))?( | - | ||||||||||||||||||||||||||||||||||||||||||
5101 | ntemps | - | ||||||||||||||||||||||||||||||||||||||||||
5102 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
5103 | nshortmerge | - | ||||||||||||||||||||||||||||||||||||||||||
5104 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
5105 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5106 | nshortmerge, tfp, temp->name); | - | ||||||||||||||||||||||||||||||||||||||||||
5107 | ntemps -= | - | ||||||||||||||||||||||||||||||||||||||||||
5108 | (((
| 3-8 | ||||||||||||||||||||||||||||||||||||||||||
5109 | ntemps
| 3-8 | ||||||||||||||||||||||||||||||||||||||||||
5110 | )<(
| 3-8 | ||||||||||||||||||||||||||||||||||||||||||
5111 | num_merged
| 3-8 | ||||||||||||||||||||||||||||||||||||||||||
5112 | ))
| 3-8 | ||||||||||||||||||||||||||||||||||||||||||
5113 | ntemps | - | ||||||||||||||||||||||||||||||||||||||||||
5114 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
5115 | num_merged | - | ||||||||||||||||||||||||||||||||||||||||||
5116 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
5117 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5118 | files[out].name = temp->name; | - | ||||||||||||||||||||||||||||||||||||||||||
5119 | files[out++].temp = temp; | - | ||||||||||||||||||||||||||||||||||||||||||
5120 | in += num_merged; | - | ||||||||||||||||||||||||||||||||||||||||||
5121 | } executed 11 times by 1 test: end of block Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||
5122 | - | |||||||||||||||||||||||||||||||||||||||||||
5123 | - | |||||||||||||||||||||||||||||||||||||||||||
5124 | - | |||||||||||||||||||||||||||||||||||||||||||
5125 | memmove (&files[out], &files[in], (nfiles - in) * sizeof *files); | - | ||||||||||||||||||||||||||||||||||||||||||
5126 | ntemps += out; | - | ||||||||||||||||||||||||||||||||||||||||||
5127 | nfiles -= in - out; | - | ||||||||||||||||||||||||||||||||||||||||||
5128 | } executed 30 times by 1 test: end of block Executed by:
| 30 | ||||||||||||||||||||||||||||||||||||||||||
5129 | - | |||||||||||||||||||||||||||||||||||||||||||
5130 | avoid_trashing_input (files, ntemps, nfiles, output_file); | - | ||||||||||||||||||||||||||||||||||||||||||
5131 | - | |||||||||||||||||||||||||||||||||||||||||||
5132 | - | |||||||||||||||||||||||||||||||||||||||||||
5133 | - | |||||||||||||||||||||||||||||||||||||||||||
5134 | - | |||||||||||||||||||||||||||||||||||||||||||
5135 | - | |||||||||||||||||||||||||||||||||||||||||||
5136 | while ( | - | ||||||||||||||||||||||||||||||||||||||||||
5137 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
5138 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
5139 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5140 | - | |||||||||||||||||||||||||||||||||||||||||||
5141 | FILE **fps; | - | ||||||||||||||||||||||||||||||||||||||||||
5142 | size_t nopened = open_input_files (files, nfiles, &fps); | - | ||||||||||||||||||||||||||||||||||||||||||
5143 | - | |||||||||||||||||||||||||||||||||||||||||||
5144 | if (nopened == nfiles
| 29-91 | ||||||||||||||||||||||||||||||||||||||||||
5145 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5146 | FILE *ofp = stream_open (output_file, "w"); | - | ||||||||||||||||||||||||||||||||||||||||||
5147 | if (ofp
| 0-91 | ||||||||||||||||||||||||||||||||||||||||||
5148 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5149 | mergefps (files, ntemps, nfiles, ofp, output_file, fps); | - | ||||||||||||||||||||||||||||||||||||||||||
5150 | break; executed 90 times by 1 test: break; Executed by:
| 90 | ||||||||||||||||||||||||||||||||||||||||||
5151 | } | - | ||||||||||||||||||||||||||||||||||||||||||
5152 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||
5153 | (*
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5154 | !=
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5155 | 24
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5156 | || nopened <= 2
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5157 | sort_die ( never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5158 | dcgettext (((void *)0), never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5159 | "open failed" never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5160 | , 5) never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5161 | , output_file); never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , output_file); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5162 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
5163 | else if (nopened <= 2
| 0-29 | ||||||||||||||||||||||||||||||||||||||||||
5164 | sort_die ( never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , files[nopened].name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5165 | dcgettext (((void *)0), never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , files[nopened].name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5166 | "open failed" never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , files[nopened].name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5167 | , 5) never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , files[nopened].name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5168 | , files[nopened].name); never executed: sort_die ( dcgettext (((void *)0), "open failed" , 5) , files[nopened].name); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5169 | - | |||||||||||||||||||||||||||||||||||||||||||
5170 | - | |||||||||||||||||||||||||||||||||||||||||||
5171 | - | |||||||||||||||||||||||||||||||||||||||||||
5172 | - | |||||||||||||||||||||||||||||||||||||||||||
5173 | - | |||||||||||||||||||||||||||||||||||||||||||
5174 | - | |||||||||||||||||||||||||||||||||||||||||||
5175 | FILE *tfp; | - | ||||||||||||||||||||||||||||||||||||||||||
5176 | struct tempnode *temp; | - | ||||||||||||||||||||||||||||||||||||||||||
5177 | do | - | ||||||||||||||||||||||||||||||||||||||||||
5178 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5179 | nopened--; | - | ||||||||||||||||||||||||||||||||||||||||||
5180 | xfclose (fps[nopened], files[nopened].name); | - | ||||||||||||||||||||||||||||||||||||||||||
5181 | temp = maybe_create_temp (&tfp, ! (nopened <= 2)); | - | ||||||||||||||||||||||||||||||||||||||||||
5182 | } executed 29 times by 1 test: end of block Executed by:
| 29 | ||||||||||||||||||||||||||||||||||||||||||
5183 | while (!temp
| 0-29 | ||||||||||||||||||||||||||||||||||||||||||
5184 | - | |||||||||||||||||||||||||||||||||||||||||||
5185 | - | |||||||||||||||||||||||||||||||||||||||||||
5186 | mergefps (&files[0], | - | ||||||||||||||||||||||||||||||||||||||||||
5187 | ((( | - | ||||||||||||||||||||||||||||||||||||||||||
5188 | ntemps | - | ||||||||||||||||||||||||||||||||||||||||||
5189 | )<( | - | ||||||||||||||||||||||||||||||||||||||||||
5190 | nopened | - | ||||||||||||||||||||||||||||||||||||||||||
5191 | ))?( | - | ||||||||||||||||||||||||||||||||||||||||||
5192 | ntemps | - | ||||||||||||||||||||||||||||||||||||||||||
5193 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
5194 | nopened | - | ||||||||||||||||||||||||||||||||||||||||||
5195 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
5196 | , nopened, tfp, temp->name, | - | ||||||||||||||||||||||||||||||||||||||||||
5197 | fps); | - | ||||||||||||||||||||||||||||||||||||||||||
5198 | ntemps -= | - | ||||||||||||||||||||||||||||||||||||||||||
5199 | (((
| 6-23 | ||||||||||||||||||||||||||||||||||||||||||
5200 | ntemps
| 6-23 | ||||||||||||||||||||||||||||||||||||||||||
5201 | )<(
| 6-23 | ||||||||||||||||||||||||||||||||||||||||||
5202 | nopened
| 6-23 | ||||||||||||||||||||||||||||||||||||||||||
5203 | ))
| 6-23 | ||||||||||||||||||||||||||||||||||||||||||
5204 | ntemps | - | ||||||||||||||||||||||||||||||||||||||||||
5205 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
5206 | nopened | - | ||||||||||||||||||||||||||||||||||||||||||
5207 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
5208 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5209 | files[0].name = temp->name; | - | ||||||||||||||||||||||||||||||||||||||||||
5210 | files[0].temp = temp; | - | ||||||||||||||||||||||||||||||||||||||||||
5211 | - | |||||||||||||||||||||||||||||||||||||||||||
5212 | memmove (&files[1], &files[nopened], (nfiles - nopened) * sizeof *files); | - | ||||||||||||||||||||||||||||||||||||||||||
5213 | ntemps++; | - | ||||||||||||||||||||||||||||||||||||||||||
5214 | nfiles -= nopened - 1; | - | ||||||||||||||||||||||||||||||||||||||||||
5215 | } executed 29 times by 1 test: end of block Executed by:
| 29 | ||||||||||||||||||||||||||||||||||||||||||
5216 | } executed 90 times by 1 test: end of block Executed by:
| 90 | ||||||||||||||||||||||||||||||||||||||||||
5217 | - | |||||||||||||||||||||||||||||||||||||||||||
5218 | - | |||||||||||||||||||||||||||||||||||||||||||
5219 | - | |||||||||||||||||||||||||||||||||||||||||||
5220 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
5221 | sort (char *const *files, size_t nfiles, char const *output_file, | - | ||||||||||||||||||||||||||||||||||||||||||
5222 | size_t nthreads) | - | ||||||||||||||||||||||||||||||||||||||||||
5223 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5224 | struct buffer buf; | - | ||||||||||||||||||||||||||||||||||||||||||
5225 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5226 | size_t ntemps = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
5227 | - | |||||||||||||||||||||||||||||||||||||||||||
5228 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
5229 | output_file_created = | - | ||||||||||||||||||||||||||||||||||||||||||
5230 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
5231 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5232 | - | |||||||||||||||||||||||||||||||||||||||||||
5233 | buf.alloc = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
5234 | - | |||||||||||||||||||||||||||||||||||||||||||
5235 | while (nfiles
| 79-715 | ||||||||||||||||||||||||||||||||||||||||||
5236 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5237 | char const *temp_output; | - | ||||||||||||||||||||||||||||||||||||||||||
5238 | char const *file = *files; | - | ||||||||||||||||||||||||||||||||||||||||||
5239 | FILE *fp = xfopen (file, "r"); | - | ||||||||||||||||||||||||||||||||||||||||||
5240 | FILE *tfp; | - | ||||||||||||||||||||||||||||||||||||||||||
5241 | - | |||||||||||||||||||||||||||||||||||||||||||
5242 | size_t bytes_per_line; | - | ||||||||||||||||||||||||||||||||||||||||||
5243 | if (nthreads > 1
| 13-702 | ||||||||||||||||||||||||||||||||||||||||||
5244 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5245 | - | |||||||||||||||||||||||||||||||||||||||||||
5246 | size_t tmp = 1; | - | ||||||||||||||||||||||||||||||||||||||||||
5247 | size_t mult = 1; | - | ||||||||||||||||||||||||||||||||||||||||||
5248 | while (tmp < nthreads
| 702-1403 | ||||||||||||||||||||||||||||||||||||||||||
5249 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5250 | tmp *= 2; | - | ||||||||||||||||||||||||||||||||||||||||||
5251 | mult++; | - | ||||||||||||||||||||||||||||||||||||||||||
5252 | } executed 1403 times by 1 test: end of block Executed by:
| 1403 | ||||||||||||||||||||||||||||||||||||||||||
5253 | bytes_per_line = (mult * sizeof (struct line)); | - | ||||||||||||||||||||||||||||||||||||||||||
5254 | } executed 702 times by 1 test: end of block Executed by:
| 702 | ||||||||||||||||||||||||||||||||||||||||||
5255 | else | - | ||||||||||||||||||||||||||||||||||||||||||
5256 | bytes_per_line = sizeof (struct line) * 3 / 2; executed 13 times by 1 test: bytes_per_line = sizeof (struct line) * 3 / 2; Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
5257 | - | |||||||||||||||||||||||||||||||||||||||||||
5258 | if (! buf.alloc
| 2-713 | ||||||||||||||||||||||||||||||||||||||||||
5259 | initbuf (&buf, bytes_per_line, executed 713 times by 1 test: initbuf (&buf, bytes_per_line, sort_buffer_size (&fp, 1, files, nfiles, bytes_per_line)); Executed by:
| 713 | ||||||||||||||||||||||||||||||||||||||||||
5260 | sort_buffer_size (&fp, 1, files, nfiles, bytes_per_line)); executed 713 times by 1 test: initbuf (&buf, bytes_per_line, sort_buffer_size (&fp, 1, files, nfiles, bytes_per_line)); Executed by:
| 713 | ||||||||||||||||||||||||||||||||||||||||||
5261 | buf.eof = | - | ||||||||||||||||||||||||||||||||||||||||||
5262 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
5263 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5264 | files++; | - | ||||||||||||||||||||||||||||||||||||||||||
5265 | nfiles--; | - | ||||||||||||||||||||||||||||||||||||||||||
5266 | - | |||||||||||||||||||||||||||||||||||||||||||
5267 | while (fillbuf (&buf, fp, file)
| 79-2459 | ||||||||||||||||||||||||||||||||||||||||||
5268 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5269 | struct line *line; | - | ||||||||||||||||||||||||||||||||||||||||||
5270 | - | |||||||||||||||||||||||||||||||||||||||||||
5271 | if (buf.eof
| 2-1814 | ||||||||||||||||||||||||||||||||||||||||||
5272 | && (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
5273 | < (buf.alloc - buf.used - bytes_per_line * buf.nlines))
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
5274 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5275 | - | |||||||||||||||||||||||||||||||||||||||||||
5276 | - | |||||||||||||||||||||||||||||||||||||||||||
5277 | - | |||||||||||||||||||||||||||||||||||||||||||
5278 | buf.left = buf.used; | - | ||||||||||||||||||||||||||||||||||||||||||
5279 | break; executed 2 times by 1 test: break; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
5280 | } | - | ||||||||||||||||||||||||||||||||||||||||||
5281 | - | |||||||||||||||||||||||||||||||||||||||||||
5282 | saved_line.text = | - | ||||||||||||||||||||||||||||||||||||||||||
5283 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
5284 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5285 | line = buffer_linelim (&buf); | - | ||||||||||||||||||||||||||||||||||||||||||
5286 | if (buf.eof
| 0-1814 | ||||||||||||||||||||||||||||||||||||||||||
5287 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5288 | xfclose (fp, file); | - | ||||||||||||||||||||||||||||||||||||||||||
5289 | tfp = xfopen (output_file, "w"); | - | ||||||||||||||||||||||||||||||||||||||||||
5290 | temp_output = output_file; | - | ||||||||||||||||||||||||||||||||||||||||||
5291 | output_file_created = | - | ||||||||||||||||||||||||||||||||||||||||||
5292 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
5293 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5294 | } executed 634 times by 1 test: end of block Executed by:
| 634 | ||||||||||||||||||||||||||||||||||||||||||
5295 | else | - | ||||||||||||||||||||||||||||||||||||||||||
5296 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5297 | ++ntemps; | - | ||||||||||||||||||||||||||||||||||||||||||
5298 | temp_output = create_temp (&tfp)->name; | - | ||||||||||||||||||||||||||||||||||||||||||
5299 | } executed 1823 times by 1 test: end of block Executed by:
| 1823 | ||||||||||||||||||||||||||||||||||||||||||
5300 | if (1 < buf.nlines
| 55-2402 | ||||||||||||||||||||||||||||||||||||||||||
5301 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5302 | struct merge_node_queue queue; | - | ||||||||||||||||||||||||||||||||||||||||||
5303 | queue_init (&queue, nthreads); | - | ||||||||||||||||||||||||||||||||||||||||||
5304 | struct merge_node *merge_tree = | - | ||||||||||||||||||||||||||||||||||||||||||
5305 | merge_tree_init (nthreads, buf.nlines, line); | - | ||||||||||||||||||||||||||||||||||||||||||
5306 | - | |||||||||||||||||||||||||||||||||||||||||||
5307 | sortlines (line, nthreads, buf.nlines, merge_tree + 1, | - | ||||||||||||||||||||||||||||||||||||||||||
5308 | &queue, tfp, temp_output); | - | ||||||||||||||||||||||||||||||||||||||||||
5309 | - | |||||||||||||||||||||||||||||||||||||||||||
5310 | - | |||||||||||||||||||||||||||||||||||||||||||
5311 | - | |||||||||||||||||||||||||||||||||||||||||||
5312 | - | |||||||||||||||||||||||||||||||||||||||||||
5313 | - | |||||||||||||||||||||||||||||||||||||||||||
5314 | } executed 2402 times by 1 test: end of block Executed by:
| 2402 | ||||||||||||||||||||||||||||||||||||||||||
5315 | else | - | ||||||||||||||||||||||||||||||||||||||||||
5316 | write_unique (line - 1, tfp, temp_output); executed 55 times by 1 test: write_unique (line - 1, tfp, temp_output); Executed by:
| 55 | ||||||||||||||||||||||||||||||||||||||||||
5317 | - | |||||||||||||||||||||||||||||||||||||||||||
5318 | xfclose (tfp, temp_output); | - | ||||||||||||||||||||||||||||||||||||||||||
5319 | - | |||||||||||||||||||||||||||||||||||||||||||
5320 | if (output_file_created
| 634-1823 | ||||||||||||||||||||||||||||||||||||||||||
5321 | goto executed 634 times by 1 test: finish;goto finish; Executed by:
executed 634 times by 1 test: goto finish; Executed by:
| 634 | ||||||||||||||||||||||||||||||||||||||||||
5322 | } executed 1823 times by 1 test: end of block Executed by:
| 1823 | ||||||||||||||||||||||||||||||||||||||||||
5323 | xfclose (fp, file); | - | ||||||||||||||||||||||||||||||||||||||||||
5324 | } executed 81 times by 1 test: end of block Executed by:
| 81 | ||||||||||||||||||||||||||||||||||||||||||
5325 | - | |||||||||||||||||||||||||||||||||||||||||||
5326 | finish: code before this statement executed 79 times by 1 test: finish: Executed by:
| 79 | ||||||||||||||||||||||||||||||||||||||||||
5327 | free (buf.buf); | - | ||||||||||||||||||||||||||||||||||||||||||
5328 | - | |||||||||||||||||||||||||||||||||||||||||||
5329 | if (! output_file_created
| 79-634 | ||||||||||||||||||||||||||||||||||||||||||
5330 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5331 | struct tempnode *node = temphead; | - | ||||||||||||||||||||||||||||||||||||||||||
5332 | struct sortfile *tempfiles = xnmalloc (ntemps, sizeof *tempfiles); | - | ||||||||||||||||||||||||||||||||||||||||||
5333 | for (size_t i = 0; node
| 79-1823 | ||||||||||||||||||||||||||||||||||||||||||
5334 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5335 | tempfiles[i].name = node->name; | - | ||||||||||||||||||||||||||||||||||||||||||
5336 | tempfiles[i].temp = node; | - | ||||||||||||||||||||||||||||||||||||||||||
5337 | node = node->next; | - | ||||||||||||||||||||||||||||||||||||||||||
5338 | } executed 1823 times by 1 test: end of block Executed by:
| 1823 | ||||||||||||||||||||||||||||||||||||||||||
5339 | merge (tempfiles, ntemps, ntemps, output_file); | - | ||||||||||||||||||||||||||||||||||||||||||
5340 | free (tempfiles); | - | ||||||||||||||||||||||||||||||||||||||||||
5341 | } executed 77 times by 1 test: end of block Executed by:
| 77 | ||||||||||||||||||||||||||||||||||||||||||
5342 | - | |||||||||||||||||||||||||||||||||||||||||||
5343 | reap_all (); | - | ||||||||||||||||||||||||||||||||||||||||||
5344 | } executed 711 times by 1 test: end of block Executed by:
| 711 | ||||||||||||||||||||||||||||||||||||||||||
5345 | - | |||||||||||||||||||||||||||||||||||||||||||
5346 | - | |||||||||||||||||||||||||||||||||||||||||||
5347 | - | |||||||||||||||||||||||||||||||||||||||||||
5348 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
5349 | insertkey (struct keyfield *key_arg) | - | ||||||||||||||||||||||||||||||||||||||||||
5350 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5351 | struct keyfield **p; | - | ||||||||||||||||||||||||||||||||||||||||||
5352 | struct keyfield *key = xmemdup (key_arg, sizeof *key); | - | ||||||||||||||||||||||||||||||||||||||||||
5353 | - | |||||||||||||||||||||||||||||||||||||||||||
5354 | for (p = &keylist; *
| 45-509 | ||||||||||||||||||||||||||||||||||||||||||
5355 | continue; executed 45 times by 1 test: continue; Executed by:
| 45 | ||||||||||||||||||||||||||||||||||||||||||
5356 | *p = key; | - | ||||||||||||||||||||||||||||||||||||||||||
5357 | key->next = | - | ||||||||||||||||||||||||||||||||||||||||||
5358 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
5359 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5360 | } executed 509 times by 1 test: end of block Executed by:
| 509 | ||||||||||||||||||||||||||||||||||||||||||
5361 | - | |||||||||||||||||||||||||||||||||||||||||||
5362 | - | |||||||||||||||||||||||||||||||||||||||||||
5363 | - | |||||||||||||||||||||||||||||||||||||||||||
5364 | static void badfieldspec (char const *, char const *) | - | ||||||||||||||||||||||||||||||||||||||||||
5365 | __attribute__ ((__noreturn__)); | - | ||||||||||||||||||||||||||||||||||||||||||
5366 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
5367 | badfieldspec (char const *spec, char const *msgid) | - | ||||||||||||||||||||||||||||||||||||||||||
5368 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5369 | ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid field specification %s\", 5), dcgettext (((void *)0), msgid, 5), quote (spec)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
5370 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
5371 | "%s: invalid field specification %s" | - | ||||||||||||||||||||||||||||||||||||||||||
5372 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
5373 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5374 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
5375 | msgid | - | ||||||||||||||||||||||||||||||||||||||||||
5376 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
5377 | , quote (spec)), (( | - | ||||||||||||||||||||||||||||||||||||||||||
5378 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
5379 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
5380 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
5381 | "%s: invalid field specification %s" | - | ||||||||||||||||||||||||||||||||||||||||||
5382 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
5383 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5384 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
5385 | msgid | - | ||||||||||||||||||||||||||||||||||||||||||
5386 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
5387 | , quote (spec)), (( | - | ||||||||||||||||||||||||||||||||||||||||||
5388 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
5389 | ) ? (void) 0 : __builtin_unreachable ())))) | - | ||||||||||||||||||||||||||||||||||||||||||
5390 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5391 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
5392 | - | |||||||||||||||||||||||||||||||||||||||||||
5393 | - | |||||||||||||||||||||||||||||||||||||||||||
5394 | - | |||||||||||||||||||||||||||||||||||||||||||
5395 | static void incompatible_options (char const *) __attribute__ ((__noreturn__)); | - | ||||||||||||||||||||||||||||||||||||||||||
5396 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
5397 | incompatible_options (char const *opts) | - | ||||||||||||||||||||||||||||||||||||||||||
5398 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5399 | ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"options '-%s' are incompatible\", 5), (opts)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
5400 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
5401 | "options '-%s' are incompatible" | - | ||||||||||||||||||||||||||||||||||||||||||
5402 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
5403 | , (opts)), (( | - | ||||||||||||||||||||||||||||||||||||||||||
5404 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
5405 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
5406 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
5407 | "options '-%s' are incompatible" | - | ||||||||||||||||||||||||||||||||||||||||||
5408 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
5409 | , (opts)), (( | - | ||||||||||||||||||||||||||||||||||||||||||
5410 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
5411 | ) ? (void) 0 : __builtin_unreachable ())))); | - | ||||||||||||||||||||||||||||||||||||||||||
5412 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
5413 | - | |||||||||||||||||||||||||||||||||||||||||||
5414 | - | |||||||||||||||||||||||||||||||||||||||||||
5415 | - | |||||||||||||||||||||||||||||||||||||||||||
5416 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
5417 | check_ordering_compatibility (void) | - | ||||||||||||||||||||||||||||||||||||||||||
5418 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5419 | struct keyfield *key; | - | ||||||||||||||||||||||||||||||||||||||||||
5420 | - | |||||||||||||||||||||||||||||||||||||||||||
5421 | for (key = keylist; key
| 509-777 | ||||||||||||||||||||||||||||||||||||||||||
5422 | if (1 < (key->numeric + key->general_numeric + key->human_numeric
| 7-502 | ||||||||||||||||||||||||||||||||||||||||||
5423 | + key->month + (key->version | key->random | !!key->ignore))
| 7-502 | ||||||||||||||||||||||||||||||||||||||||||
5424 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5425 | - | |||||||||||||||||||||||||||||||||||||||||||
5426 | char opts[sizeof short_options]; | - | ||||||||||||||||||||||||||||||||||||||||||
5427 | - | |||||||||||||||||||||||||||||||||||||||||||
5428 | key->skipsblanks = key->skipeblanks = key->reverse = | - | ||||||||||||||||||||||||||||||||||||||||||
5429 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
5430 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5431 | key_to_opts (key, opts); | - | ||||||||||||||||||||||||||||||||||||||||||
5432 | incompatible_options (opts); | - | ||||||||||||||||||||||||||||||||||||||||||
5433 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
5434 | } executed 777 times by 1 test: end of block Executed by:
| 777 | ||||||||||||||||||||||||||||||||||||||||||
5435 | - | |||||||||||||||||||||||||||||||||||||||||||
5436 | - | |||||||||||||||||||||||||||||||||||||||||||
5437 | - | |||||||||||||||||||||||||||||||||||||||||||
5438 | - | |||||||||||||||||||||||||||||||||||||||||||
5439 | - | |||||||||||||||||||||||||||||||||||||||||||
5440 | - | |||||||||||||||||||||||||||||||||||||||||||
5441 | - | |||||||||||||||||||||||||||||||||||||||||||
5442 | static char const * | - | ||||||||||||||||||||||||||||||||||||||||||
5443 | parse_field_count (char const *string, size_t *val, char const *msgid) | - | ||||||||||||||||||||||||||||||||||||||||||
5444 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5445 | char *suffix; | - | ||||||||||||||||||||||||||||||||||||||||||
5446 | uintmax_t n; | - | ||||||||||||||||||||||||||||||||||||||||||
5447 | - | |||||||||||||||||||||||||||||||||||||||||||
5448 | switch (xstrtoumax (string, &suffix, 10, &n, "")) | - | ||||||||||||||||||||||||||||||||||||||||||
5449 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5450 | case executed 271 times by 1 test: LONGINT_OK:case LONGINT_OK: Executed by:
executed 271 times by 1 test: case LONGINT_OK: Executed by:
| 271 | ||||||||||||||||||||||||||||||||||||||||||
5451 | case executed 530 times by 1 test: LONGINT_INVALID_SUFFIX_CHAR:case LONGINT_INVALID_SUFFIX_CHAR: Executed by:
executed 530 times by 1 test: case LONGINT_INVALID_SUFFIX_CHAR: Executed by:
| 530 | ||||||||||||||||||||||||||||||||||||||||||
5452 | *val = n; | - | ||||||||||||||||||||||||||||||||||||||||||
5453 | if (*
| 0-801 | ||||||||||||||||||||||||||||||||||||||||||
5454 | break; executed 801 times by 1 test: break; Executed by:
| 801 | ||||||||||||||||||||||||||||||||||||||||||
5455 | ((void) 0); | - | ||||||||||||||||||||||||||||||||||||||||||
5456 | case executed 6 times by 1 test: case LONGINT_OVERFLOW: Executed by:
code before this statement never executed: case LONGINT_OVERFLOW: executed 6 times by 1 test: LONGINT_OVERFLOW:case LONGINT_OVERFLOW: Executed by:
code before this statement never executed: case LONGINT_OVERFLOW: executed 6 times by 1 test: case LONGINT_OVERFLOW: Executed by:
| 0-6 | ||||||||||||||||||||||||||||||||||||||||||
5457 | case never executed: LONGINT_OVERFLOW | LONGINT_INVALID_SUFFIX_CHAR:case LONGINT_OVERFLOW | LONGINT_INVALID_SUFFIX_CHAR: never executed: case LONGINT_OVERFLOW | LONGINT_INVALID_SUFFIX_CHAR: | 0 | ||||||||||||||||||||||||||||||||||||||||||
5458 | *val = | - | ||||||||||||||||||||||||||||||||||||||||||
5459 | (18446744073709551615UL) | - | ||||||||||||||||||||||||||||||||||||||||||
5460 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5461 | break; executed 6 times by 1 test: break; Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
5462 | - | |||||||||||||||||||||||||||||||||||||||||||
5463 | case executed 3 times by 1 test: LONGINT_INVALID:case LONGINT_INVALID: Executed by:
executed 3 times by 1 test: case LONGINT_INVALID: Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5464 | if (msgid
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
5465 | (( executed 3 times by 1 test: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5466 | dcgettext (((void *)0), executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5467 | "%s: invalid count at start of %s" executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5468 | , 5) executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5469 | , executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5470 | dcgettext (((void *)0), executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5471 | msgid executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5472 | , 5) executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5473 | , quote (string)), (( executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5474 | 0 executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5475 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5476 | dcgettext (((void *)0), executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5477 | "%s: invalid count at start of %s" executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5478 | , 5) executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5479 | , executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5480 | dcgettext (((void *)0), executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5481 | msgid executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5482 | , 5) executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5483 | , quote (string)), (( executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5484 | 0 executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5485 | ) ? (void) 0 : __builtin_unreachable ())))) executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5486 | ; executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s: invalid count at start of %s\", 5), dcgettext (((void *)0), msgid, 5), quote (string)), assume (false))" ")"); i...tring)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "%s: invalid count at start of %s" , 5) , dcgettext (((void *)0), msgid , 5) , quote (string)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
5487 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
5488 | ((void *)0) never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
5489 | ; never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
5490 | } | - | ||||||||||||||||||||||||||||||||||||||||||
5491 | - | |||||||||||||||||||||||||||||||||||||||||||
5492 | return executed 807 times by 1 test: suffix;return suffix; Executed by:
executed 807 times by 1 test: return suffix; Executed by:
| 807 | ||||||||||||||||||||||||||||||||||||||||||
5493 | } | - | ||||||||||||||||||||||||||||||||||||||||||
5494 | - | |||||||||||||||||||||||||||||||||||||||||||
5495 | - | |||||||||||||||||||||||||||||||||||||||||||
5496 | - | |||||||||||||||||||||||||||||||||||||||||||
5497 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
5498 | sighandler (int sig) | - | ||||||||||||||||||||||||||||||||||||||||||
5499 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5500 | if (!
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5501 | 1
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5502 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
5503 | signal (sig, dead code: signal (sig, ((__sighandler_t) 1) ); | - | ||||||||||||||||||||||||||||||||||||||||||
5504 | ((__sighandler_t) 1) dead code: signal (sig, ((__sighandler_t) 1) ); | - | ||||||||||||||||||||||||||||||||||||||||||
5505 | ); dead code: signal (sig, ((__sighandler_t) 1) ); | - | ||||||||||||||||||||||||||||||||||||||||||
5506 | - | |||||||||||||||||||||||||||||||||||||||||||
5507 | cleanup (); | - | ||||||||||||||||||||||||||||||||||||||||||
5508 | - | |||||||||||||||||||||||||||||||||||||||||||
5509 | signal (sig, | - | ||||||||||||||||||||||||||||||||||||||||||
5510 | ((__sighandler_t) 0) | - | ||||||||||||||||||||||||||||||||||||||||||
5511 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
5512 | raise (sig); | - | ||||||||||||||||||||||||||||||||||||||||||
5513 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
5514 | - | |||||||||||||||||||||||||||||||||||||||||||
5515 | - | |||||||||||||||||||||||||||||||||||||||||||
5516 | - | |||||||||||||||||||||||||||||||||||||||||||
5517 | - | |||||||||||||||||||||||||||||||||||||||||||
5518 | - | |||||||||||||||||||||||||||||||||||||||||||
5519 | - | |||||||||||||||||||||||||||||||||||||||||||
5520 | static char * | - | ||||||||||||||||||||||||||||||||||||||||||
5521 | set_ordering (char const *s, struct keyfield *key, enum blanktype blanktype) | - | ||||||||||||||||||||||||||||||||||||||||||
5522 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5523 | while (*
| 669-696 | ||||||||||||||||||||||||||||||||||||||||||
5524 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5525 | switch (*s) | - | ||||||||||||||||||||||||||||||||||||||||||
5526 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5527 | case executed 63 times by 1 test: 'b':case 'b': Executed by:
executed 63 times by 1 test: case 'b': Executed by:
| 63 | ||||||||||||||||||||||||||||||||||||||||||
5528 | if (blanktype == bl_start
| 14-49 | ||||||||||||||||||||||||||||||||||||||||||
5529 | key->skipsblanks = executed 37 times by 1 test: key->skipsblanks = 1 ; Executed by:
| 37 | ||||||||||||||||||||||||||||||||||||||||||
5530 | 1 executed 37 times by 1 test: key->skipsblanks = 1 ; Executed by:
| 37 | ||||||||||||||||||||||||||||||||||||||||||
5531 | ; executed 37 times by 1 test: key->skipsblanks = 1 ; Executed by:
| 37 | ||||||||||||||||||||||||||||||||||||||||||
5532 | if (blanktype == bl_end
| 14-37 | ||||||||||||||||||||||||||||||||||||||||||
5533 | key->skipeblanks = executed 49 times by 1 test: key->skipeblanks = 1 ; Executed by:
| 49 | ||||||||||||||||||||||||||||||||||||||||||
5534 | 1 executed 49 times by 1 test: key->skipeblanks = 1 ; Executed by:
| 49 | ||||||||||||||||||||||||||||||||||||||||||
5535 | ; executed 49 times by 1 test: key->skipeblanks = 1 ; Executed by:
| 49 | ||||||||||||||||||||||||||||||||||||||||||
5536 | break; executed 63 times by 1 test: break; Executed by:
| 63 | ||||||||||||||||||||||||||||||||||||||||||
5537 | case executed 21 times by 1 test: 'd':case 'd': Executed by:
executed 21 times by 1 test: case 'd': Executed by:
| 21 | ||||||||||||||||||||||||||||||||||||||||||
5538 | key->ignore = nondictionary; | - | ||||||||||||||||||||||||||||||||||||||||||
5539 | break; executed 21 times by 1 test: break; Executed by:
| 21 | ||||||||||||||||||||||||||||||||||||||||||
5540 | case executed 39 times by 1 test: 'f':case 'f': Executed by:
executed 39 times by 1 test: case 'f': Executed by:
| 39 | ||||||||||||||||||||||||||||||||||||||||||
5541 | key->translate = fold_toupper; | - | ||||||||||||||||||||||||||||||||||||||||||
5542 | break; executed 39 times by 1 test: break; Executed by:
| 39 | ||||||||||||||||||||||||||||||||||||||||||
5543 | case executed 25 times by 1 test: 'g':case 'g': Executed by:
executed 25 times by 1 test: case 'g': Executed by:
| 25 | ||||||||||||||||||||||||||||||||||||||||||
5544 | key->general_numeric = | - | ||||||||||||||||||||||||||||||||||||||||||
5545 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
5546 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5547 | break; executed 25 times by 1 test: break; Executed by:
| 25 | ||||||||||||||||||||||||||||||||||||||||||
5548 | case executed 39 times by 1 test: 'h':case 'h': Executed by:
executed 39 times by 1 test: case 'h': Executed by:
| 39 | ||||||||||||||||||||||||||||||||||||||||||
5549 | key->human_numeric = | - | ||||||||||||||||||||||||||||||||||||||||||
5550 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
5551 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5552 | break; executed 39 times by 1 test: break; Executed by:
| 39 | ||||||||||||||||||||||||||||||||||||||||||
5553 | case executed 22 times by 1 test: 'i':case 'i': Executed by:
executed 22 times by 1 test: case 'i': Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||||||||
5554 | - | |||||||||||||||||||||||||||||||||||||||||||
5555 | - | |||||||||||||||||||||||||||||||||||||||||||
5556 | if (! key->ignore
| 1-21 | ||||||||||||||||||||||||||||||||||||||||||
5557 | key->ignore = nonprinting; executed 21 times by 1 test: key->ignore = nonprinting; Executed by:
| 21 | ||||||||||||||||||||||||||||||||||||||||||
5558 | break; executed 22 times by 1 test: break; Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||||||||
5559 | case executed 16 times by 1 test: 'M':case 'M': Executed by:
executed 16 times by 1 test: case 'M': Executed by:
| 16 | ||||||||||||||||||||||||||||||||||||||||||
5560 | key->month = | - | ||||||||||||||||||||||||||||||||||||||||||
5561 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
5562 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5563 | break; executed 16 times by 1 test: break; Executed by:
| 16 | ||||||||||||||||||||||||||||||||||||||||||
5564 | case executed 156 times by 1 test: 'n':case 'n': Executed by:
executed 156 times by 1 test: case 'n': Executed by:
| 156 | ||||||||||||||||||||||||||||||||||||||||||
5565 | key->numeric = | - | ||||||||||||||||||||||||||||||||||||||||||
5566 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
5567 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5568 | break; executed 156 times by 1 test: break; Executed by:
| 156 | ||||||||||||||||||||||||||||||||||||||||||
5569 | case executed 22 times by 1 test: 'R':case 'R': Executed by:
executed 22 times by 1 test: case 'R': Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||||||||
5570 | key->random = | - | ||||||||||||||||||||||||||||||||||||||||||
5571 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
5572 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5573 | break; executed 22 times by 1 test: break; Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||||||||
5574 | case executed 28 times by 1 test: 'r':case 'r': Executed by:
executed 28 times by 1 test: case 'r': Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||
5575 | key->reverse = | - | ||||||||||||||||||||||||||||||||||||||||||
5576 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
5577 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5578 | break; executed 28 times by 1 test: break; Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||
5579 | case executed 6 times by 1 test: 'V':case 'V': Executed by:
executed 6 times by 1 test: case 'V': Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
5580 | key->version = | - | ||||||||||||||||||||||||||||||||||||||||||
5581 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
5582 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5583 | break; executed 6 times by 1 test: break; Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
5584 | default executed 259 times by 1 test: :default: Executed by:
executed 259 times by 1 test: default: Executed by:
| 259 | ||||||||||||||||||||||||||||||||||||||||||
5585 | return executed 259 times by 1 test: (char *) s;return (char *) s; Executed by:
executed 259 times by 1 test: return (char *) s; Executed by:
| 259 | ||||||||||||||||||||||||||||||||||||||||||
5586 | } | - | ||||||||||||||||||||||||||||||||||||||||||
5587 | ++s; | - | ||||||||||||||||||||||||||||||||||||||||||
5588 | } executed 437 times by 1 test: end of block Executed by:
| 437 | ||||||||||||||||||||||||||||||||||||||||||
5589 | return executed 669 times by 1 test: (char *) s;return (char *) s; Executed by:
executed 669 times by 1 test: return (char *) s; Executed by:
| 669 | ||||||||||||||||||||||||||||||||||||||||||
5590 | } | - | ||||||||||||||||||||||||||||||||||||||||||
5591 | - | |||||||||||||||||||||||||||||||||||||||||||
5592 | - | |||||||||||||||||||||||||||||||||||||||||||
5593 | - | |||||||||||||||||||||||||||||||||||||||||||
5594 | static struct keyfield * | - | ||||||||||||||||||||||||||||||||||||||||||
5595 | key_init (struct keyfield *key) | - | ||||||||||||||||||||||||||||||||||||||||||
5596 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5597 | memset (key, 0, sizeof *key); | - | ||||||||||||||||||||||||||||||||||||||||||
5598 | key->eword = | - | ||||||||||||||||||||||||||||||||||||||||||
5599 | (18446744073709551615UL) | - | ||||||||||||||||||||||||||||||||||||||||||
5600 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5601 | return executed 1233 times by 1 test: key;return key; Executed by:
executed 1233 times by 1 test: return key; Executed by:
| 1233 | ||||||||||||||||||||||||||||||||||||||||||
5602 | } | - | ||||||||||||||||||||||||||||||||||||||||||
5603 | - | |||||||||||||||||||||||||||||||||||||||||||
5604 | int | - | ||||||||||||||||||||||||||||||||||||||||||
5605 | main (int argc, char **argv) | - | ||||||||||||||||||||||||||||||||||||||||||
5606 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5607 | struct keyfield *key; | - | ||||||||||||||||||||||||||||||||||||||||||
5608 | struct keyfield key_buf; | - | ||||||||||||||||||||||||||||||||||||||||||
5609 | struct keyfield gkey; | - | ||||||||||||||||||||||||||||||||||||||||||
5610 | - | |||||||||||||||||||||||||||||||||||||||||||
5611 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
5612 | gkey_only = | - | ||||||||||||||||||||||||||||||||||||||||||
5613 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
5614 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5615 | char const *s; | - | ||||||||||||||||||||||||||||||||||||||||||
5616 | int c = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
5617 | char checkonly = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
5618 | - | |||||||||||||||||||||||||||||||||||||||||||
5619 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
5620 | mergeonly = | - | ||||||||||||||||||||||||||||||||||||||||||
5621 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
5622 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5623 | char *random_source = | - | ||||||||||||||||||||||||||||||||||||||||||
5624 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
5625 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5626 | - | |||||||||||||||||||||||||||||||||||||||||||
5627 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
5628 | need_random = | - | ||||||||||||||||||||||||||||||||||||||||||
5629 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
5630 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5631 | size_t nthreads = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
5632 | size_t nfiles = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
5633 | - | |||||||||||||||||||||||||||||||||||||||||||
5634 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
5635 | posixly_correct = (getenv ("POSIXLY_CORRECT") != | - | ||||||||||||||||||||||||||||||||||||||||||
5636 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
5637 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
5638 | int posix_ver = posix2_version (); | - | ||||||||||||||||||||||||||||||||||||||||||
5639 | - | |||||||||||||||||||||||||||||||||||||||||||
5640 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
5641 | traditional_usage = ! (200112 <= posix_ver
| 0-813 | ||||||||||||||||||||||||||||||||||||||||||
5642 | char **files; | - | ||||||||||||||||||||||||||||||||||||||||||
5643 | char *files_from = | - | ||||||||||||||||||||||||||||||||||||||||||
5644 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
5645 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5646 | struct Tokens tok; | - | ||||||||||||||||||||||||||||||||||||||||||
5647 | char const *outfile = | - | ||||||||||||||||||||||||||||||||||||||||||
5648 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
5649 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5650 | - | |||||||||||||||||||||||||||||||||||||||||||
5651 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
5652 | locale_ok; | - | ||||||||||||||||||||||||||||||||||||||||||
5653 | - | |||||||||||||||||||||||||||||||||||||||||||
5654 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5655 | set_program_name (argv[0]); | - | ||||||||||||||||||||||||||||||||||||||||||
5656 | locale_ok = !! setlocale ( | - | ||||||||||||||||||||||||||||||||||||||||||
5657 | 6 | - | ||||||||||||||||||||||||||||||||||||||||||
5658 | , ""); | - | ||||||||||||||||||||||||||||||||||||||||||
5659 | bindtextdomain ("coreutils", "/usr/local/share/locale"); | - | ||||||||||||||||||||||||||||||||||||||||||
5660 | textdomain ("coreutils"); | - | ||||||||||||||||||||||||||||||||||||||||||
5661 | - | |||||||||||||||||||||||||||||||||||||||||||
5662 | initialize_exit_failure (SORT_FAILURE); | - | ||||||||||||||||||||||||||||||||||||||||||
5663 | - | |||||||||||||||||||||||||||||||||||||||||||
5664 | hard_LC_COLLATE = hard_locale ( | - | ||||||||||||||||||||||||||||||||||||||||||
5665 | 3 | - | ||||||||||||||||||||||||||||||||||||||||||
5666 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
5667 | - | |||||||||||||||||||||||||||||||||||||||||||
5668 | hard_LC_TIME = hard_locale ( | - | ||||||||||||||||||||||||||||||||||||||||||
5669 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||
5670 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
5671 | - | |||||||||||||||||||||||||||||||||||||||||||
5672 | - | |||||||||||||||||||||||||||||||||||||||||||
5673 | - | |||||||||||||||||||||||||||||||||||||||||||
5674 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5675 | struct lconv const *locale = localeconv (); | - | ||||||||||||||||||||||||||||||||||||||||||
5676 | - | |||||||||||||||||||||||||||||||||||||||||||
5677 | - | |||||||||||||||||||||||||||||||||||||||||||
5678 | - | |||||||||||||||||||||||||||||||||||||||||||
5679 | - | |||||||||||||||||||||||||||||||||||||||||||
5680 | decimal_point = to_uchar (locale->decimal_point[0]); | - | ||||||||||||||||||||||||||||||||||||||||||
5681 | if (! decimal_point
| 0-859 | ||||||||||||||||||||||||||||||||||||||||||
5682 | decimal_point = '.'; never executed: decimal_point = '.'; | 0 | ||||||||||||||||||||||||||||||||||||||||||
5683 | - | |||||||||||||||||||||||||||||||||||||||||||
5684 | - | |||||||||||||||||||||||||||||||||||||||||||
5685 | thousands_sep = to_uchar (*locale->thousands_sep); | - | ||||||||||||||||||||||||||||||||||||||||||
5686 | if (! thousands_sep
| 0-857 | ||||||||||||||||||||||||||||||||||||||||||
5687 | thousands_sep = -1; executed 857 times by 1 test: thousands_sep = -1; Executed by:
| 857 | ||||||||||||||||||||||||||||||||||||||||||
5688 | } | - | ||||||||||||||||||||||||||||||||||||||||||
5689 | - | |||||||||||||||||||||||||||||||||||||||||||
5690 | have_read_stdin = | - | ||||||||||||||||||||||||||||||||||||||||||
5691 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
5692 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5693 | inittables (); | - | ||||||||||||||||||||||||||||||||||||||||||
5694 | - | |||||||||||||||||||||||||||||||||||||||||||
5695 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5696 | size_t i; | - | ||||||||||||||||||||||||||||||||||||||||||
5697 | static int const sig[] = | - | ||||||||||||||||||||||||||||||||||||||||||
5698 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5699 | - | |||||||||||||||||||||||||||||||||||||||||||
5700 | - | |||||||||||||||||||||||||||||||||||||||||||
5701 | 14 | - | ||||||||||||||||||||||||||||||||||||||||||
5702 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5703 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
5704 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5705 | 2 | - | ||||||||||||||||||||||||||||||||||||||||||
5706 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5707 | 13 | - | ||||||||||||||||||||||||||||||||||||||||||
5708 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5709 | 3 | - | ||||||||||||||||||||||||||||||||||||||||||
5710 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5711 | 15 | - | ||||||||||||||||||||||||||||||||||||||||||
5712 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5713 | - | |||||||||||||||||||||||||||||||||||||||||||
5714 | - | |||||||||||||||||||||||||||||||||||||||||||
5715 | 29 | - | ||||||||||||||||||||||||||||||||||||||||||
5716 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5717 | - | |||||||||||||||||||||||||||||||||||||||||||
5718 | - | |||||||||||||||||||||||||||||||||||||||||||
5719 | - | |||||||||||||||||||||||||||||||||||||||||||
5720 | 27 | - | ||||||||||||||||||||||||||||||||||||||||||
5721 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5722 | - | |||||||||||||||||||||||||||||||||||||||||||
5723 | - | |||||||||||||||||||||||||||||||||||||||||||
5724 | - | |||||||||||||||||||||||||||||||||||||||||||
5725 | 26 | - | ||||||||||||||||||||||||||||||||||||||||||
5726 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5727 | - | |||||||||||||||||||||||||||||||||||||||||||
5728 | - | |||||||||||||||||||||||||||||||||||||||||||
5729 | - | |||||||||||||||||||||||||||||||||||||||||||
5730 | 24 | - | ||||||||||||||||||||||||||||||||||||||||||
5731 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5732 | - | |||||||||||||||||||||||||||||||||||||||||||
5733 | - | |||||||||||||||||||||||||||||||||||||||||||
5734 | - | |||||||||||||||||||||||||||||||||||||||||||
5735 | 25 | - | ||||||||||||||||||||||||||||||||||||||||||
5736 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5737 | - | |||||||||||||||||||||||||||||||||||||||||||
5738 | }; | - | ||||||||||||||||||||||||||||||||||||||||||
5739 | enum { nsigs = (sizeof (sig) / sizeof *(sig)) }; | - | ||||||||||||||||||||||||||||||||||||||||||
5740 | - | |||||||||||||||||||||||||||||||||||||||||||
5741 | - | |||||||||||||||||||||||||||||||||||||||||||
5742 | struct sigaction act; | - | ||||||||||||||||||||||||||||||||||||||||||
5743 | - | |||||||||||||||||||||||||||||||||||||||||||
5744 | sigemptyset (&caught_signals); | - | ||||||||||||||||||||||||||||||||||||||||||
5745 | for (i = 0; i < nsigs
| 859-9449 | ||||||||||||||||||||||||||||||||||||||||||
5746 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5747 | sigaction (sig[i], | - | ||||||||||||||||||||||||||||||||||||||||||
5748 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
5749 | , &act); | - | ||||||||||||||||||||||||||||||||||||||||||
5750 | if (act.
| 859-8590 | ||||||||||||||||||||||||||||||||||||||||||
5751 | __sigaction_handler.sa_handler
| 859-8590 | ||||||||||||||||||||||||||||||||||||||||||
5752 | !=
| 859-8590 | ||||||||||||||||||||||||||||||||||||||||||
5753 | ((__sighandler_t) 1)
| 859-8590 | ||||||||||||||||||||||||||||||||||||||||||
5754 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
5755 | sigaddset (&caught_signals, sig[i]); executed 8590 times by 1 test: sigaddset (&caught_signals, sig[i]); Executed by:
| 8590 | ||||||||||||||||||||||||||||||||||||||||||
5756 | } executed 9449 times by 1 test: end of block Executed by:
| 9449 | ||||||||||||||||||||||||||||||||||||||||||
5757 | - | |||||||||||||||||||||||||||||||||||||||||||
5758 | act. | - | ||||||||||||||||||||||||||||||||||||||||||
5759 | __sigaction_handler.sa_handler | - | ||||||||||||||||||||||||||||||||||||||||||
5760 | = sighandler; | - | ||||||||||||||||||||||||||||||||||||||||||
5761 | act.sa_mask = caught_signals; | - | ||||||||||||||||||||||||||||||||||||||||||
5762 | act.sa_flags = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
5763 | - | |||||||||||||||||||||||||||||||||||||||||||
5764 | for (i = 0; i < nsigs
| 859-9449 | ||||||||||||||||||||||||||||||||||||||||||
5765 | if (sigismember (&caught_signals, sig[i])
| 859-8590 | ||||||||||||||||||||||||||||||||||||||||||
5766 | sigaction (sig[i], &act, executed 8590 times by 1 test: sigaction (sig[i], &act, ((void *)0) ); Executed by:
| 8590 | ||||||||||||||||||||||||||||||||||||||||||
5767 | ((void *)0) executed 8590 times by 1 test: sigaction (sig[i], &act, ((void *)0) ); Executed by:
| 8590 | ||||||||||||||||||||||||||||||||||||||||||
5768 | ); executed 8590 times by 1 test: sigaction (sig[i], &act, ((void *)0) ); Executed by:
| 8590 | ||||||||||||||||||||||||||||||||||||||||||
5769 | } | - | ||||||||||||||||||||||||||||||||||||||||||
5770 | signal ( | - | ||||||||||||||||||||||||||||||||||||||||||
5771 | 17 | - | ||||||||||||||||||||||||||||||||||||||||||
5772 | , | - | ||||||||||||||||||||||||||||||||||||||||||
5773 | ((__sighandler_t) 0) | - | ||||||||||||||||||||||||||||||||||||||||||
5774 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
5775 | - | |||||||||||||||||||||||||||||||||||||||||||
5776 | - | |||||||||||||||||||||||||||||||||||||||||||
5777 | atexit (exit_cleanup); | - | ||||||||||||||||||||||||||||||||||||||||||
5778 | - | |||||||||||||||||||||||||||||||||||||||||||
5779 | key_init (&gkey); | - | ||||||||||||||||||||||||||||||||||||||||||
5780 | gkey.sword = | - | ||||||||||||||||||||||||||||||||||||||||||
5781 | (18446744073709551615UL) | - | ||||||||||||||||||||||||||||||||||||||||||
5782 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5783 | - | |||||||||||||||||||||||||||||||||||||||||||
5784 | files = xnmalloc (argc, sizeof *files); | - | ||||||||||||||||||||||||||||||||||||||||||
5785 | - | |||||||||||||||||||||||||||||||||||||||||||
5786 | while ( | - | ||||||||||||||||||||||||||||||||||||||||||
5787 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
5788 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
5789 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5790 | - | |||||||||||||||||||||||||||||||||||||||||||
5791 | - | |||||||||||||||||||||||||||||||||||||||||||
5792 | - | |||||||||||||||||||||||||||||||||||||||||||
5793 | - | |||||||||||||||||||||||||||||||||||||||||||
5794 | int oi = -1; | - | ||||||||||||||||||||||||||||||||||||||||||
5795 | - | |||||||||||||||||||||||||||||||||||||||||||
5796 | if (c == -1
| 0-2248 | ||||||||||||||||||||||||||||||||||||||||||
5797 | || (posixly_correct
| 0-2248 | ||||||||||||||||||||||||||||||||||||||||||
5798 | && ! (traditional_usage
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5799 | && ! checkonly
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5800 | && optind != argc
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5801 | && argv[optind][0] == '-'
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5802 | && (argv[optind][2]
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5803 | || ((
| 792-1456 | ||||||||||||||||||||||||||||||||||||||||||
5804 | long_options, &oi))
| 792-1456 | ||||||||||||||||||||||||||||||||||||||||||
5805 | == -1)
| 792-1456 | ||||||||||||||||||||||||||||||||||||||||||
5806 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5807 | if (argc <= optind
| 0-792 | ||||||||||||||||||||||||||||||||||||||||||
5808 | break; executed 792 times by 1 test: break; Executed by:
| 792 | ||||||||||||||||||||||||||||||||||||||||||
5809 | files[nfiles++] = argv[optind++]; | - | ||||||||||||||||||||||||||||||||||||||||||
5810 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
5811 | else switch (c) | - | ||||||||||||||||||||||||||||||||||||||||||
5812 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5813 | case executed 390 times by 1 test: 1:case 1: Executed by:
executed 390 times by 1 test: case 1: Executed by:
| 390 | ||||||||||||||||||||||||||||||||||||||||||
5814 | key = | - | ||||||||||||||||||||||||||||||||||||||||||
5815 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
5816 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5817 | if (optarg[0] == '+'
| 50-340 | ||||||||||||||||||||||||||||||||||||||||||
5818 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5819 | - | |||||||||||||||||||||||||||||||||||||||||||
5820 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
5821 | minus_pos_usage = (optind != argc
| 10-35 | ||||||||||||||||||||||||||||||||||||||||||
5822 | && ((
| 0-25 | ||||||||||||||||||||||||||||||||||||||||||
5823 | traditional_usage |= minus_pos_usage
| 0-25 | ||||||||||||||||||||||||||||||||||||||||||
5824 | if (traditional_usage
| 0-50 | ||||||||||||||||||||||||||||||||||||||||||
5825 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5826 | - | |||||||||||||||||||||||||||||||||||||||||||
5827 | - | |||||||||||||||||||||||||||||||||||||||||||
5828 | key = key_init (&key_buf); | - | ||||||||||||||||||||||||||||||||||||||||||
5829 | s = parse_field_count (optarg + 1, &key->sword, | - | ||||||||||||||||||||||||||||||||||||||||||
5830 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
5831 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
5832 | if (s
| 0-50 | ||||||||||||||||||||||||||||||||||||||||||
5833 | s = parse_field_count (s + 1, &key->schar, executed 13 times by 1 test: s = parse_field_count (s + 1, &key->schar, ((void *)0) ); Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
5834 | ((void *)0) executed 13 times by 1 test: s = parse_field_count (s + 1, &key->schar, ((void *)0) ); Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
5835 | ); executed 13 times by 1 test: s = parse_field_count (s + 1, &key->schar, ((void *)0) ); Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
5836 | if (! (key->sword
| 6-26 | ||||||||||||||||||||||||||||||||||||||||||
5837 | key->sword = executed 18 times by 1 test: key->sword = (18446744073709551615UL) ; Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||
5838 | (18446744073709551615UL) executed 18 times by 1 test: key->sword = (18446744073709551615UL) ; Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||
5839 | ; executed 18 times by 1 test: key->sword = (18446744073709551615UL) ; Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||
5840 | if (! s
| 0-50 | ||||||||||||||||||||||||||||||||||||||||||
5841 | key = executed 1 time by 1 test: key = ((void *)0) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
5842 | ((void *)0) executed 1 time by 1 test: key = ((void *)0) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
5843 | ; executed 1 time by 1 test: key = ((void *)0) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
5844 | else | - | ||||||||||||||||||||||||||||||||||||||||||
5845 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5846 | if (minus_pos_usage
| 24-25 | ||||||||||||||||||||||||||||||||||||||||||
5847 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5848 | char const *optarg1 = argv[optind++]; | - | ||||||||||||||||||||||||||||||||||||||||||
5849 | s = parse_field_count (optarg1 + 1, &key->eword, | - | ||||||||||||||||||||||||||||||||||||||||||
5850 | "invalid number after '-'"); | - | ||||||||||||||||||||||||||||||||||||||||||
5851 | - | |||||||||||||||||||||||||||||||||||||||||||
5852 | - | |||||||||||||||||||||||||||||||||||||||||||
5853 | - | |||||||||||||||||||||||||||||||||||||||||||
5854 | - | |||||||||||||||||||||||||||||||||||||||||||
5855 | (( | - | ||||||||||||||||||||||||||||||||||||||||||
5856 | s | - | ||||||||||||||||||||||||||||||||||||||||||
5857 | ) ? (void) (0) : __assert_fail ( | - | ||||||||||||||||||||||||||||||||||||||||||
5858 | "s" | - | ||||||||||||||||||||||||||||||||||||||||||
5859 | , "src/sort.c", 4365, __PRETTY_FUNCTION__)) | - | ||||||||||||||||||||||||||||||||||||||||||
5860 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5861 | if (*
| 7-18 | ||||||||||||||||||||||||||||||||||||||||||
5862 | s = parse_field_count (s + 1, &key->echar, executed 18 times by 1 test: s = parse_field_count (s + 1, &key->echar, "invalid number after '.'"); Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||
5863 | "invalid number after '.'"); executed 18 times by 1 test: s = parse_field_count (s + 1, &key->echar, "invalid number after '.'"); Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||||||||
5864 | if (!key->echar
| 0-15 | ||||||||||||||||||||||||||||||||||||||||||
5865 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5866 | - | |||||||||||||||||||||||||||||||||||||||||||
5867 | - | |||||||||||||||||||||||||||||||||||||||||||
5868 | - | |||||||||||||||||||||||||||||||||||||||||||
5869 | - | |||||||||||||||||||||||||||||||||||||||||||
5870 | - | |||||||||||||||||||||||||||||||||||||||||||
5871 | - | |||||||||||||||||||||||||||||||||||||||||||
5872 | key->eword--; | - | ||||||||||||||||||||||||||||||||||||||||||
5873 | } executed 10 times by 1 test: end of block Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||
5874 | if (*
| 0-25 | ||||||||||||||||||||||||||||||||||||||||||
5875 | badfieldspec (optarg1, never executed: badfieldspec (optarg1, "stray character in field spec"); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5876 | "stray character in field spec"); never executed: badfieldspec (optarg1, "stray character in field spec"); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5877 | } executed 25 times by 1 test: end of block Executed by:
| 25 | ||||||||||||||||||||||||||||||||||||||||||
5878 | key->traditional_used = | - | ||||||||||||||||||||||||||||||||||||||||||
5879 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
5880 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
5881 | insertkey (key); | - | ||||||||||||||||||||||||||||||||||||||||||
5882 | } executed 49 times by 1 test: end of block Executed by:
| 49 | ||||||||||||||||||||||||||||||||||||||||||
5883 | } | - | ||||||||||||||||||||||||||||||||||||||||||
5884 | } executed 50 times by 1 test: end of block Executed by:
| 50 | ||||||||||||||||||||||||||||||||||||||||||
5885 | if (! key
| 49-341 | ||||||||||||||||||||||||||||||||||||||||||
5886 | files[nfiles++] = optarg; executed 341 times by 1 test: files[nfiles++] = optarg; Executed by:
| 341 | ||||||||||||||||||||||||||||||||||||||||||
5887 | break; executed 390 times by 1 test: break; Executed by:
| 390 | ||||||||||||||||||||||||||||||||||||||||||
5888 | - | |||||||||||||||||||||||||||||||||||||||||||
5889 | case executed 9 times by 1 test: SORT_OPTION:case SORT_OPTION: Executed by:
executed 9 times by 1 test: case SORT_OPTION: Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||||||||
5890 | c = ((sort_types) [__xargmatch_internal ("--sort", optarg, sort_args, (char const *) (sort_types), sizeof *(sort_types), argmatch_die)]); | - | ||||||||||||||||||||||||||||||||||||||||||
5891 | ((void) 0); | - | ||||||||||||||||||||||||||||||||||||||||||
5892 | case executed 23 times by 1 test: 'b':case 'b': Executed by:
executed 23 times by 1 test: case 'b': Executed by:
code before this statement executed 8 times by 1 test: case 'b': Executed by:
| 8-23 | ||||||||||||||||||||||||||||||||||||||||||
5893 | case executed 11 times by 1 test: 'd':case 'd': Executed by:
executed 11 times by 1 test: case 'd': Executed by:
| 11 | ||||||||||||||||||||||||||||||||||||||||||
5894 | case executed 27 times by 1 test: 'f':case 'f': Executed by:
executed 27 times by 1 test: case 'f': Executed by:
| 27 | ||||||||||||||||||||||||||||||||||||||||||
5895 | case executed 13 times by 1 test: 'g':case 'g': Executed by:
executed 13 times by 1 test: case 'g': Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
5896 | case executed 29 times by 1 test: 'h':case 'h': Executed by:
executed 29 times by 1 test: case 'h': Executed by:
| 29 | ||||||||||||||||||||||||||||||||||||||||||
5897 | case executed 21 times by 1 test: 'i':case 'i': Executed by:
executed 21 times by 1 test: case 'i': Executed by:
| 21 | ||||||||||||||||||||||||||||||||||||||||||
5898 | case executed 7 times by 1 test: 'M':case 'M': Executed by:
executed 7 times by 1 test: case 'M': Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||
5899 | case executed 106 times by 1 test: 'n':case 'n': Executed by:
executed 106 times by 1 test: case 'n': Executed by:
| 106 | ||||||||||||||||||||||||||||||||||||||||||
5900 | case executed 14 times by 1 test: 'r':case 'r': Executed by:
executed 14 times by 1 test: case 'r': Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||
5901 | case executed 15 times by 1 test: 'R':case 'R': Executed by:
executed 15 times by 1 test: case 'R': Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||
5902 | case executed 2 times by 1 test: 'V':case 'V': Executed by:
executed 2 times by 1 test: case 'V': Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
5903 | { | - | ||||||||||||||||||||||||||||||||||||||||||
5904 | char str[2]; | - | ||||||||||||||||||||||||||||||||||||||||||
5905 | str[0] = c; | - | ||||||||||||||||||||||||||||||||||||||||||
5906 | str[1] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||
5907 | set_ordering (str, &gkey, bl_both); | - | ||||||||||||||||||||||||||||||||||||||||||
5908 | } | - | ||||||||||||||||||||||||||||||||||||||||||
5909 | break; executed 276 times by 1 test: break; Executed by:
| 276 | ||||||||||||||||||||||||||||||||||||||||||
5910 | - | |||||||||||||||||||||||||||||||||||||||||||
5911 | case never executed: CHECK_OPTION:case CHECK_OPTION: never executed: case CHECK_OPTION: | 0 | ||||||||||||||||||||||||||||||||||||||||||
5912 | c = (optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5913 | ? ((check_types) [__xargmatch_internal ("--check", optarg, check_args, (char const *) (check_types), sizeof *(check_types), argmatch_die)]) | - | ||||||||||||||||||||||||||||||||||||||||||
5914 | : 'c'); | - | ||||||||||||||||||||||||||||||||||||||||||
5915 | ((void) 0); | - | ||||||||||||||||||||||||||||||||||||||||||
5916 | case executed 38 times by 1 test: case 'c': Executed by:
code before this statement never executed: case 'c': executed 38 times by 1 test: 'c':case 'c': Executed by:
code before this statement never executed: case 'c': executed 38 times by 1 test: case 'c': Executed by:
| 0-38 | ||||||||||||||||||||||||||||||||||||||||||
5917 | case executed 8 times by 1 test: 'C':case 'C': Executed by:
executed 8 times by 1 test: case 'C': Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||
5918 | if (checkonly
| 0-45 | ||||||||||||||||||||||||||||||||||||||||||
5919 | incompatible_options ("cC"); executed 1 time by 1 test: incompatible_options ("cC"); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
5920 | checkonly = c; | - | ||||||||||||||||||||||||||||||||||||||||||
5921 | break; executed 45 times by 1 test: break; Executed by:
| 45 | ||||||||||||||||||||||||||||||||||||||||||
5922 | - | |||||||||||||||||||||||||||||||||||||||||||
5923 | case executed 7 times by 1 test: COMPRESS_PROGRAM_OPTION:case COMPRESS_PROGRAM_OPTION: Executed by:
executed 7 times by 1 test: case COMPRESS_PROGRAM_OPTION: Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||
5924 | if (compress_program
| 0-7 | ||||||||||||||||||||||||||||||||||||||||||
5925 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5926 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5927 | ) && __builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5928 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5929 | ) && (__s1_len = __builtin_strlen (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5930 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5931 | ), __s2_len = __builtin_strlen (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5932 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5933 | ), (!((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5934 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5935 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5936 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5937 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5938 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5939 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5940 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5941 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5942 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5943 | ,
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5944 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5945 | ) : (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5946 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5947 | ) && ((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5948 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5949 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5950 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5951 | ) == 1) && (__s1_len = __builtin_strlen (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5952 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5953 | ), __s1_len < 4) ? (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5954 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5955 | ) && ((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5956 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5957 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5958 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5959 | ) == 1) ? __builtin_strcmp (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5960 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5961 | ,
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5962 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5963 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5964 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5965 | ); int __result = (((const unsigned char *) (const char *) (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5966 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5967 | ))[0] - __s2[0]); if (__s1_len > 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5968 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5969 | ))[1] - __s2[1]); if (__s1_len > 1
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5970 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5971 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( compress_program ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5972 | compress_program
never executed: __result = (((const unsigned char *) (const char *) ( compress_program ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
5973 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5974 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5975 | ) && ((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5976 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5977 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5978 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5979 | ) == 1) && (__s2_len = __builtin_strlen (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5980 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5981 | ), __s2_len < 4) ? (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5982 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5983 | ) && ((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5984 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5985 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5986 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5987 | ) == 1) ? __builtin_strcmp (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5988 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5989 | ,
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5990 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5991 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5992 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5993 | ); int __result = (((const unsigned char *) (const char *) (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5994 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5995 | ))[0] - __s2[0]); if (__s2_len > 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5996 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5997 | ))[1] - __s2[1]); if (__s2_len > 1
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5998 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
5999 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( optarg ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6000 | optarg
never executed: __result = (((const unsigned char *) (const char *) ( optarg ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6001 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6002 | compress_program
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6003 | ,
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6004 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6005 | )))); })
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6006 | == 0)
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6007 | (( never executed: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6008 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6009 | "multiple compress programs specified" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6010 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6011 | ), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6012 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6013 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6014 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6015 | "multiple compress programs specified" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6016 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6017 | ), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6018 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6019 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple compress programs specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, d...(void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple compress programs specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6020 | compress_program = optarg; | - | ||||||||||||||||||||||||||||||||||||||||||
6021 | break; executed 7 times by 1 test: break; Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||
6022 | - | |||||||||||||||||||||||||||||||||||||||||||
6023 | case executed 52 times by 1 test: DEBUG_PROGRAM_OPTION:case DEBUG_PROGRAM_OPTION: Executed by:
executed 52 times by 1 test: case DEBUG_PROGRAM_OPTION: Executed by:
| 52 | ||||||||||||||||||||||||||||||||||||||||||
6024 | debug = | - | ||||||||||||||||||||||||||||||||||||||||||
6025 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
6026 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
6027 | break; executed 52 times by 1 test: break; Executed by:
| 52 | ||||||||||||||||||||||||||||||||||||||||||
6028 | - | |||||||||||||||||||||||||||||||||||||||||||
6029 | case executed 12 times by 1 test: FILES0_FROM_OPTION:case FILES0_FROM_OPTION: Executed by:
executed 12 times by 1 test: case FILES0_FROM_OPTION: Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||
6030 | files_from = optarg; | - | ||||||||||||||||||||||||||||||||||||||||||
6031 | break; executed 12 times by 1 test: break; Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||
6032 | - | |||||||||||||||||||||||||||||||||||||||||||
6033 | case executed 324 times by 1 test: 'k':case 'k': Executed by:
executed 324 times by 1 test: case 'k': Executed by:
| 324 | ||||||||||||||||||||||||||||||||||||||||||
6034 | key = key_init (&key_buf); | - | ||||||||||||||||||||||||||||||||||||||||||
6035 | - | |||||||||||||||||||||||||||||||||||||||||||
6036 | - | |||||||||||||||||||||||||||||||||||||||||||
6037 | s = parse_field_count (optarg, &key->sword, | - | ||||||||||||||||||||||||||||||||||||||||||
6038 | "invalid number at field start"); | - | ||||||||||||||||||||||||||||||||||||||||||
6039 | if (! key->sword--
| 1-323 | ||||||||||||||||||||||||||||||||||||||||||
6040 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6041 | - | |||||||||||||||||||||||||||||||||||||||||||
6042 | badfieldspec (optarg, "field number is zero"); | - | ||||||||||||||||||||||||||||||||||||||||||
6043 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
6044 | if (*
| 62-261 | ||||||||||||||||||||||||||||||||||||||||||
6045 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6046 | s = parse_field_count (s + 1, &key->schar, | - | ||||||||||||||||||||||||||||||||||||||||||
6047 | "invalid number after '.'"); | - | ||||||||||||||||||||||||||||||||||||||||||
6048 | if (! key->schar--
| 1-60 | ||||||||||||||||||||||||||||||||||||||||||
6049 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6050 | - | |||||||||||||||||||||||||||||||||||||||||||
6051 | badfieldspec (optarg, "character offset is zero"); | - | ||||||||||||||||||||||||||||||||||||||||||
6052 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
6053 | } executed 60 times by 1 test: end of block Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
6054 | if (! (key->sword
| 22-179 | ||||||||||||||||||||||||||||||||||||||||||
6055 | key->sword = executed 157 times by 1 test: key->sword = (18446744073709551615UL) ; Executed by:
| 157 | ||||||||||||||||||||||||||||||||||||||||||
6056 | (18446744073709551615UL) executed 157 times by 1 test: key->sword = (18446744073709551615UL) ; Executed by:
| 157 | ||||||||||||||||||||||||||||||||||||||||||
6057 | ; executed 157 times by 1 test: key->sword = (18446744073709551615UL) ; Executed by:
| 157 | ||||||||||||||||||||||||||||||||||||||||||
6058 | s = set_ordering (s, key, bl_start); | - | ||||||||||||||||||||||||||||||||||||||||||
6059 | if (*
| 63-258 | ||||||||||||||||||||||||||||||||||||||||||
6060 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6061 | key->eword = | - | ||||||||||||||||||||||||||||||||||||||||||
6062 | (18446744073709551615UL) | - | ||||||||||||||||||||||||||||||||||||||||||
6063 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
6064 | key->echar = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
6065 | } executed 63 times by 1 test: end of block Executed by:
| 63 | ||||||||||||||||||||||||||||||||||||||||||
6066 | else | - | ||||||||||||||||||||||||||||||||||||||||||
6067 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6068 | - | |||||||||||||||||||||||||||||||||||||||||||
6069 | s = parse_field_count (s + 1, &key->eword, | - | ||||||||||||||||||||||||||||||||||||||||||
6070 | "invalid number after ','"); | - | ||||||||||||||||||||||||||||||||||||||||||
6071 | if (! key->eword--
| 0-256 | ||||||||||||||||||||||||||||||||||||||||||
6072 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6073 | - | |||||||||||||||||||||||||||||||||||||||||||
6074 | badfieldspec (optarg, "field number is zero"); | - | ||||||||||||||||||||||||||||||||||||||||||
6075 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
6076 | if (*
| 60-196 | ||||||||||||||||||||||||||||||||||||||||||
6077 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6078 | s = parse_field_count (s + 1, &key->echar, | - | ||||||||||||||||||||||||||||||||||||||||||
6079 | "invalid number after '.'"); | - | ||||||||||||||||||||||||||||||||||||||||||
6080 | } executed 60 times by 1 test: end of block Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
6081 | s = set_ordering (s, key, bl_end); | - | ||||||||||||||||||||||||||||||||||||||||||
6082 | } executed 256 times by 1 test: end of block Executed by:
| 256 | ||||||||||||||||||||||||||||||||||||||||||
6083 | if (*
| 0-319 | ||||||||||||||||||||||||||||||||||||||||||
6084 | badfieldspec (optarg, "stray character in field spec"); never executed: badfieldspec (optarg, "stray character in field spec"); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6085 | insertkey (key); | - | ||||||||||||||||||||||||||||||||||||||||||
6086 | break; executed 319 times by 1 test: break; Executed by:
| 319 | ||||||||||||||||||||||||||||||||||||||||||
6087 | - | |||||||||||||||||||||||||||||||||||||||||||
6088 | case executed 19 times by 1 test: 'm':case 'm': Executed by:
executed 19 times by 1 test: case 'm': Executed by:
| 19 | ||||||||||||||||||||||||||||||||||||||||||
6089 | mergeonly = | - | ||||||||||||||||||||||||||||||||||||||||||
6090 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
6091 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
6092 | break; executed 19 times by 1 test: break; Executed by:
| 19 | ||||||||||||||||||||||||||||||||||||||||||
6093 | - | |||||||||||||||||||||||||||||||||||||||||||
6094 | case executed 14 times by 1 test: NMERGE_OPTION:case NMERGE_OPTION: Executed by:
executed 14 times by 1 test: case NMERGE_OPTION: Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||
6095 | specify_nmerge (oi, c, optarg); | - | ||||||||||||||||||||||||||||||||||||||||||
6096 | break; executed 9 times by 1 test: break; Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||||||||
6097 | - | |||||||||||||||||||||||||||||||||||||||||||
6098 | case executed 14 times by 1 test: 'o':case 'o': Executed by:
executed 14 times by 1 test: case 'o': Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||
6099 | if (outfile
| 0-13 | ||||||||||||||||||||||||||||||||||||||||||
6100 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6101 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6102 | ) && __builtin_constant_p (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6103 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6104 | ) && (__s1_len = __builtin_strlen (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6105 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6106 | ), __s2_len = __builtin_strlen (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6107 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6108 | ), (!((size_t)(const void *)((
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6109 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6110 | ) + 1) - (size_t)(const void *)(
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6111 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6112 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6113 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6114 | ) + 1) - (size_t)(const void *)(
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6115 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6116 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6117 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6118 | ,
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6119 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6120 | ) : (__builtin_constant_p (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6121 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6122 | ) && ((size_t)(const void *)((
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6123 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6124 | ) + 1) - (size_t)(const void *)(
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6125 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6126 | ) == 1) && (__s1_len = __builtin_strlen (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6127 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6128 | ), __s1_len < 4) ? (__builtin_constant_p (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6129 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6130 | ) && ((size_t)(const void *)((
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6131 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6132 | ) + 1) - (size_t)(const void *)(
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6133 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6134 | ) == 1) ? __builtin_strcmp (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6135 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6136 | ,
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6137 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6138 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6139 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6140 | ); int __result = (((const unsigned char *) (const char *) (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6141 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6142 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6143 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6144 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6145 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6146 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( outfile ))[3] - __s2[3]);
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6147 | outfile
never executed: __result = (((const unsigned char *) (const char *) ( outfile ))[3] - __s2[3]); | 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6148 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( outfile ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6149 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6150 | ) && ((size_t)(const void *)((
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6151 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6152 | ) + 1) - (size_t)(const void *)(
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6153 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6154 | ) == 1) && (__s2_len = __builtin_strlen (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6155 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6156 | ), __s2_len < 4) ? (__builtin_constant_p (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6157 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6158 | ) && ((size_t)(const void *)((
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6159 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6160 | ) + 1) - (size_t)(const void *)(
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6161 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6162 | ) == 1) ? __builtin_strcmp (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6163 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6164 | ,
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6165 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6166 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6167 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6168 | ); int __result = (((const unsigned char *) (const char *) (
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6169 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6170 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6171 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6172 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6173 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6174 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( optarg ))[3] - __s2[3]);
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6175 | optarg
never executed: __result = (((const unsigned char *) (const char *) ( optarg ))[3] - __s2[3]); | 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6176 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( optarg ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : __builtin_strcmp (end of block
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6177 | outfile
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6178 | ,
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6179 | optarg
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6180 | )))); })
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6181 | == 0)
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
6182 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6183 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6184 | "multiple output files specified" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6185 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6186 | ), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6187 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6188 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6189 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6190 | "multiple output files specified" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6191 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6192 | ), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6193 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6194 | ) ? (void) 0 : __builtin_unreachable ())))); executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple output files specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple output files specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6195 | outfile = optarg; | - | ||||||||||||||||||||||||||||||||||||||||||
6196 | break; executed 13 times by 1 test: break; Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
6197 | - | |||||||||||||||||||||||||||||||||||||||||||
6198 | case executed 2 times by 1 test: RANDOM_SOURCE_OPTION:case RANDOM_SOURCE_OPTION: Executed by:
executed 2 times by 1 test: case RANDOM_SOURCE_OPTION: Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6199 | if (random_source
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
6200 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6201 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6202 | ) && __builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6203 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6204 | ) && (__s1_len = __builtin_strlen (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6205 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6206 | ), __s2_len = __builtin_strlen (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6207 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6208 | ), (!((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6209 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6210 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6211 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6212 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6213 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6214 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6215 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6216 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6217 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6218 | ,
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6219 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6220 | ) : (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6221 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6222 | ) && ((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6223 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6224 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6225 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6226 | ) == 1) && (__s1_len = __builtin_strlen (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6227 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6228 | ), __s1_len < 4) ? (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6229 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6230 | ) && ((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6231 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6232 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6233 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6234 | ) == 1) ? __builtin_strcmp (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6235 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6236 | ,
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6237 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6238 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6239 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6240 | ); int __result = (((const unsigned char *) (const char *) (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6241 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6242 | ))[0] - __s2[0]); if (__s1_len > 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6243 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6244 | ))[1] - __s2[1]); if (__s1_len > 1
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6245 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6246 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( random_source ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6247 | random_source
never executed: __result = (((const unsigned char *) (const char *) ( random_source ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6248 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6249 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6250 | ) && ((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6251 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6252 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6253 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6254 | ) == 1) && (__s2_len = __builtin_strlen (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6255 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6256 | ), __s2_len < 4) ? (__builtin_constant_p (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6257 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6258 | ) && ((size_t)(const void *)((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6259 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6260 | ) + 1) - (size_t)(const void *)(
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6261 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6262 | ) == 1) ? __builtin_strcmp (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6263 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6264 | ,
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6265 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6266 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6267 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6268 | ); int __result = (((const unsigned char *) (const char *) (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6269 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6270 | ))[0] - __s2[0]); if (__s2_len > 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6271 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6272 | ))[1] - __s2[1]); if (__s2_len > 1
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6273 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6274 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( optarg ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6275 | optarg
never executed: __result = (((const unsigned char *) (const char *) ( optarg ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6276 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6277 | random_source
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6278 | ,
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6279 | optarg
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6280 | )))); })
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6281 | == 0)
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6282 | (( never executed: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6283 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6284 | "multiple random sources specified" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6285 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6286 | ), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6287 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6288 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6289 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6290 | "multiple random sources specified" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6291 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6292 | ), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6293 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6294 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multiple random sources specified\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "multiple random sources specified" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6295 | random_source = optarg; | - | ||||||||||||||||||||||||||||||||||||||||||
6296 | break; executed 2 times by 1 test: break; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6297 | - | |||||||||||||||||||||||||||||||||||||||||||
6298 | case executed 87 times by 1 test: 's':case 's': Executed by:
executed 87 times by 1 test: case 's': Executed by:
| 87 | ||||||||||||||||||||||||||||||||||||||||||
6299 | stable = | - | ||||||||||||||||||||||||||||||||||||||||||
6300 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
6301 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
6302 | break; executed 87 times by 1 test: break; Executed by:
| 87 | ||||||||||||||||||||||||||||||||||||||||||
6303 | - | |||||||||||||||||||||||||||||||||||||||||||
6304 | case executed 28 times by 1 test: 'S':case 'S': Executed by:
executed 28 times by 1 test: case 'S': Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||
6305 | specify_sort_size (oi, c, optarg); | - | ||||||||||||||||||||||||||||||||||||||||||
6306 | break; executed 28 times by 1 test: break; Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||
6307 | - | |||||||||||||||||||||||||||||||||||||||||||
6308 | case executed 45 times by 1 test: 't':case 't': Executed by:
executed 45 times by 1 test: case 't': Executed by:
| 45 | ||||||||||||||||||||||||||||||||||||||||||
6309 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6310 | char newtab = optarg[0]; | - | ||||||||||||||||||||||||||||||||||||||||||
6311 | if (! newtab
| 0-45 | ||||||||||||||||||||||||||||||||||||||||||
6312 | (( never executed: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6313 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6314 | "empty tab" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6315 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6316 | ), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6317 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6318 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6319 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6320 | "empty tab" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6321 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6322 | ), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6323 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6324 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"empty tab\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "empty tab" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6325 | if (optarg[1]
| 3-42 | ||||||||||||||||||||||||||||||||||||||||||
6326 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6327 | if ((
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6328 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6329 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6330 | ) && __builtin_constant_p (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6331 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6332 | ) && (__s1_len = __builtin_strlen (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6333 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6334 | ), __s2_len = __builtin_strlen (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6335 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6336 | ), (!((size_t)(const void *)((
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6337 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6338 | ) + 1) - (size_t)(const void *)(
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6339 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6340 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6341 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6342 | ) + 1) - (size_t)(const void *)(
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6343 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6344 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6345 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6346 | ,
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6347 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6348 | ) : (__builtin_constant_p (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6349 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6350 | ) && ((size_t)(const void *)((
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6351 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6352 | ) + 1) - (size_t)(const void *)(
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6353 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6354 | ) == 1) && (__s1_len = __builtin_strlen (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6355 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6356 | ), __s1_len < 4) ? (__builtin_constant_p (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6357 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6358 | ) && ((size_t)(const void *)((
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6359 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6360 | ) + 1) - (size_t)(const void *)(
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6361 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6362 | ) == 1) ? __builtin_strcmp (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6363 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6364 | ,
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6365 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6366 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6367 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6368 | ); int __result = (((const unsigned char *) (const char *) (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6369 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6370 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6371 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6372 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6373 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6374 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( optarg ))[3] - __s2[3]);
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6375 | optarg
never executed: __result = (((const unsigned char *) (const char *) ( optarg ))[3] - __s2[3]); | 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6376 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( optarg ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6377 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6378 | ) && ((size_t)(const void *)((
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6379 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6380 | ) + 1) - (size_t)(const void *)(
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6381 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6382 | ) == 1) && (__s2_len = __builtin_strlen (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6383 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6384 | ), __s2_len < 4) ? (__builtin_constant_p (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6385 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6386 | ) && ((size_t)(const void *)((
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6387 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6388 | ) + 1) - (size_t)(const void *)(
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6389 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6390 | ) == 1) ? __builtin_strcmp (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6391 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6392 | ,
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6393 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6394 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6395 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6396 | ); int __result = (((const unsigned char *) (const char *) (
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6397 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6398 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6399 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6400 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6401 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6402 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "\\0" ))[3] - __s2[3]);
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6403 | "\\0"
never executed: __result = (((const unsigned char *) (const char *) ( "\\0" ))[3] - __s2[3]); | 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6404 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "\\0" ))[3] - __s2[3]); executed 3 times by 1 test: }end of block Executed by:
executed 3 times by 1 test: __result; }))) : __builtin_strcmp (end of block Executed by:
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6405 | optarg
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6406 | ,
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6407 | "\\0"
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6408 | )))); })
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6409 | == 0)
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
6410 | newtab = '\0'; executed 3 times by 1 test: newtab = '\0'; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
6411 | else | - | ||||||||||||||||||||||||||||||||||||||||||
6412 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6413 | - | |||||||||||||||||||||||||||||||||||||||||||
6414 | - | |||||||||||||||||||||||||||||||||||||||||||
6415 | - | |||||||||||||||||||||||||||||||||||||||||||
6416 | - | |||||||||||||||||||||||||||||||||||||||||||
6417 | ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"multi-character tab %s\", 5), quote (optarg)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
6418 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
6419 | "multi-character tab %s" | - | ||||||||||||||||||||||||||||||||||||||||||
6420 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
6421 | , quote (optarg)), (( | - | ||||||||||||||||||||||||||||||||||||||||||
6422 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
6423 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
6424 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
6425 | "multi-character tab %s" | - | ||||||||||||||||||||||||||||||||||||||||||
6426 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
6427 | , quote (optarg)), (( | - | ||||||||||||||||||||||||||||||||||||||||||
6428 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
6429 | ) ? (void) 0 : __builtin_unreachable ())))) | - | ||||||||||||||||||||||||||||||||||||||||||
6430 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
6431 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
6432 | } | - | ||||||||||||||||||||||||||||||||||||||||||
6433 | if (tab != TAB_DEFAULT
| 0-45 | ||||||||||||||||||||||||||||||||||||||||||
6434 | (( never executed: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6435 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6436 | "incompatible tabs" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6437 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6438 | ), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6439 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6440 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6441 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6442 | "incompatible tabs" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6443 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6444 | ), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6445 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6446 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"incompatible tabs\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "incompatible tabs" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6447 | tab = newtab; | - | ||||||||||||||||||||||||||||||||||||||||||
6448 | } | - | ||||||||||||||||||||||||||||||||||||||||||
6449 | break; executed 45 times by 1 test: break; Executed by:
| 45 | ||||||||||||||||||||||||||||||||||||||||||
6450 | - | |||||||||||||||||||||||||||||||||||||||||||
6451 | case executed 3 times by 1 test: 'T':case 'T': Executed by:
executed 3 times by 1 test: case 'T': Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
6452 | add_temp_dir (optarg); | - | ||||||||||||||||||||||||||||||||||||||||||
6453 | break; executed 3 times by 1 test: break; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
6454 | - | |||||||||||||||||||||||||||||||||||||||||||
6455 | case executed 14 times by 1 test: PARALLEL_OPTION:case PARALLEL_OPTION: Executed by:
executed 14 times by 1 test: case PARALLEL_OPTION: Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||
6456 | nthreads = specify_nthreads (oi, c, optarg); | - | ||||||||||||||||||||||||||||||||||||||||||
6457 | break; executed 14 times by 1 test: break; Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||
6458 | - | |||||||||||||||||||||||||||||||||||||||||||
6459 | case executed 58 times by 1 test: 'u':case 'u': Executed by:
executed 58 times by 1 test: case 'u': Executed by:
| 58 | ||||||||||||||||||||||||||||||||||||||||||
6460 | unique = | - | ||||||||||||||||||||||||||||||||||||||||||
6461 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
6462 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
6463 | break; executed 58 times by 1 test: break; Executed by:
| 58 | ||||||||||||||||||||||||||||||||||||||||||
6464 | - | |||||||||||||||||||||||||||||||||||||||||||
6465 | case never executed: 'y':case 'y': never executed: case 'y': | 0 | ||||||||||||||||||||||||||||||||||||||||||
6466 | if (optarg == argv[optind - 1]
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6467 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6468 | char const *p; | - | ||||||||||||||||||||||||||||||||||||||||||
6469 | for (p = optarg; ((
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6470 | continue; never executed: continue; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6471 | optind -= (*p != '\0'); | - | ||||||||||||||||||||||||||||||||||||||||||
6472 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
6473 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6474 | - | |||||||||||||||||||||||||||||||||||||||||||
6475 | case executed 10 times by 1 test: 'z':case 'z': Executed by:
executed 10 times by 1 test: case 'z': Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||
6476 | eolchar = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
6477 | break; executed 10 times by 1 test: break; Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||
6478 | - | |||||||||||||||||||||||||||||||||||||||||||
6479 | case executed 24 times by 1 test: GETOPT_HELP_CHAR:case GETOPT_HELP_CHAR: Executed by:
executed 24 times by 1 test: usage (case GETOPT_HELP_CHAR: Executed by:
| 24 | ||||||||||||||||||||||||||||||||||||||||||
6480 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
6481 | ); break; never executed: ;break; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6482 | - | |||||||||||||||||||||||||||||||||||||||||||
6483 | case executed 27 times by 1 test: GETOPT_VERSION_CHAR:case GETOPT_VERSION_CHAR: Executed by:
executed 27 times by 1 test: version_etc (case GETOPT_VERSION_CHAR: Executed by:
| 27 | ||||||||||||||||||||||||||||||||||||||||||
6484 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
6485 | , "sort", "GNU coreutils", Version, ("Mike Haertel"), ("Paul Eggert"), (char *) | - | ||||||||||||||||||||||||||||||||||||||||||
6486 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
6487 | ); exit ( executed 27 times by 1 test: exit ( 0 ); Executed by:
| 27 | ||||||||||||||||||||||||||||||||||||||||||
6488 | 0 executed 27 times by 1 test: exit ( 0 ); Executed by:
| 27 | ||||||||||||||||||||||||||||||||||||||||||
6489 | ); executed 27 times by 1 test: break;exit ( 0 ); Executed by:
never executed: ;break; | 0-27 | ||||||||||||||||||||||||||||||||||||||||||
6490 | - | |||||||||||||||||||||||||||||||||||||||||||
6491 | default executed 3 times by 1 test: :default: Executed by:
executed 3 times by 1 test: default: Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
6492 | usage (SORT_FAILURE); | - | ||||||||||||||||||||||||||||||||||||||||||
6493 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
6494 | } | - | ||||||||||||||||||||||||||||||||||||||||||
6495 | - | |||||||||||||||||||||||||||||||||||||||||||
6496 | if (files_from
| 12-780 | ||||||||||||||||||||||||||||||||||||||||||
6497 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6498 | - | |||||||||||||||||||||||||||||||||||||||||||
6499 | - | |||||||||||||||||||||||||||||||||||||||||||
6500 | if (nfiles
| 1-11 | ||||||||||||||||||||||||||||||||||||||||||
6501 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6502 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
6503 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
6504 | "extra operand %s" | - | ||||||||||||||||||||||||||||||||||||||||||
6505 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
6506 | , quotearg_style (shell_escape_always_quoting_style, files[0])); | - | ||||||||||||||||||||||||||||||||||||||||||
6507 | fprintf ( | - | ||||||||||||||||||||||||||||||||||||||||||
6508 | stderr | - | ||||||||||||||||||||||||||||||||||||||||||
6509 | , "%s\n", | - | ||||||||||||||||||||||||||||||||||||||||||
6510 | - | |||||||||||||||||||||||||||||||||||||||||||
6511 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
6512 | "file operands cannot be combined with --files0-from" | - | ||||||||||||||||||||||||||||||||||||||||||
6513 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
6514 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
6515 | usage (SORT_FAILURE); | - | ||||||||||||||||||||||||||||||||||||||||||
6516 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
6517 | - | |||||||||||||||||||||||||||||||||||||||||||
6518 | FILE *stream = xfopen (files_from, "r"); | - | ||||||||||||||||||||||||||||||||||||||||||
6519 | - | |||||||||||||||||||||||||||||||||||||||||||
6520 | readtokens0_init (&tok); | - | ||||||||||||||||||||||||||||||||||||||||||
6521 | - | |||||||||||||||||||||||||||||||||||||||||||
6522 | if (! readtokens0 (stream, &tok)
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||
6523 | (( never executed: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6524 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6525 | "cannot read file names from %s" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6526 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6527 | , quotearg_style (shell_escape_always_quoting_style, files_from)), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6528 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6529 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6530 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6531 | "cannot read file names from %s" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6532 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6533 | , quotearg_style (shell_escape_always_quoting_style, files_from)), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6534 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6535 | ) ? (void) 0 : __builtin_unreachable ())))) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6536 | ; never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"cannot read file names from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false...(( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "cannot read file names from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6537 | xfclose (stream, files_from); | - | ||||||||||||||||||||||||||||||||||||||||||
6538 | - | |||||||||||||||||||||||||||||||||||||||||||
6539 | if (tok.n_tok
| 2-8 | ||||||||||||||||||||||||||||||||||||||||||
6540 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6541 | free (files); | - | ||||||||||||||||||||||||||||||||||||||||||
6542 | files = tok.tok; | - | ||||||||||||||||||||||||||||||||||||||||||
6543 | nfiles = tok.n_tok; | - | ||||||||||||||||||||||||||||||||||||||||||
6544 | for (size_t i = 0; i < nfiles
| 4-10 | ||||||||||||||||||||||||||||||||||||||||||
6545 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6546 | if ((
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6547 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6548 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6549 | ) && __builtin_constant_p (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6550 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6551 | ) && (__s1_len = __builtin_strlen (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6552 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6553 | ), __s2_len = __builtin_strlen (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6554 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6555 | ), (!((size_t)(const void *)((
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6556 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6557 | ) + 1) - (size_t)(const void *)(
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6558 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6559 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6560 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6561 | ) + 1) - (size_t)(const void *)(
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6562 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6563 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6564 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6565 | ,
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6566 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6567 | ) : (__builtin_constant_p (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6568 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6569 | ) && ((size_t)(const void *)((
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6570 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6571 | ) + 1) - (size_t)(const void *)(
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6572 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6573 | ) == 1) && (__s1_len = __builtin_strlen (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6574 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6575 | ), __s1_len < 4) ? (__builtin_constant_p (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6576 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6577 | ) && ((size_t)(const void *)((
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6578 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6579 | ) + 1) - (size_t)(const void *)(
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6580 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6581 | ) == 1) ? __builtin_strcmp (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6582 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6583 | ,
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6584 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6585 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6586 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6587 | ); int __result = (((const unsigned char *) (const char *) (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6588 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6589 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-9 | ||||||||||||||||||||||||||||||||||||||||||
6590 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6591 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-9 | ||||||||||||||||||||||||||||||||||||||||||
6592 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6593 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( files[i] ))[3] - __s2[3]);
| 0-9 | ||||||||||||||||||||||||||||||||||||||||||
6594 | files[i]
never executed: __result = (((const unsigned char *) (const char *) ( files[i] ))[3] - __s2[3]); | 0-9 | ||||||||||||||||||||||||||||||||||||||||||
6595 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( files[i] ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block
| 0-9 | ||||||||||||||||||||||||||||||||||||||||||
6596 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6597 | ) && ((size_t)(const void *)((
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6598 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6599 | ) + 1) - (size_t)(const void *)(
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6600 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6601 | ) == 1) && (__s2_len = __builtin_strlen (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6602 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6603 | ), __s2_len < 4) ? (__builtin_constant_p (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6604 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6605 | ) && ((size_t)(const void *)((
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6606 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6607 | ) + 1) - (size_t)(const void *)(
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6608 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6609 | ) == 1) ? __builtin_strcmp (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6610 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6611 | ,
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6612 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6613 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6614 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6615 | ); int __result = (((const unsigned char *) (const char *) (
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6616 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6617 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||
6618 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6619 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-9 | ||||||||||||||||||||||||||||||||||||||||||
6620 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6621 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-9 | ||||||||||||||||||||||||||||||||||||||||||
6622 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-9 | ||||||||||||||||||||||||||||||||||||||||||
6623 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); never executed: } __result; }))) : __builtin_strcmp (end of block
| 0-9 | ||||||||||||||||||||||||||||||||||||||||||
6624 | files[i]
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6625 | ,
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6626 | "-"
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6627 | )))); })
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6628 | == 0)
| 1-9 | ||||||||||||||||||||||||||||||||||||||||||
6629 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoting_style, files[i])), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6630 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6631 | "when reading file names from stdin, " "no file name of %s allowed" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6632 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6633 | , quotearg_style (shell_escape_always_quoting_style, files[i])), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6634 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6635 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6636 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6637 | "when reading file names from stdin, " "no file name of %s allowed" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6638 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6639 | , quotearg_style (shell_escape_always_quoting_style, files[i])), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6640 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6641 | ) ? (void) 0 : __builtin_unreachable ())))) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6642 | 1 | |||||||||||||||||||||||||||||||||||||||||||
6643 | ; executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"when reading file names from stdin, \" \"no file name of %s allowed\", 5), quotearg_style (shell_escape_always_quoti...eachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "when reading file names from stdin, " "no file name of %s allowed" , 5) , quotearg_style (shell_escape_always_quoting_style, files[i])), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6644 | else if (files[i][0] == '\0'
| 3-6 | ||||||||||||||||||||||||||||||||||||||||||
6645 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6646 | - | |||||||||||||||||||||||||||||||||||||||||||
6647 | - | |||||||||||||||||||||||||||||||||||||||||||
6648 | - | |||||||||||||||||||||||||||||||||||||||||||
6649 | unsigned long int file_number = i + 1; | - | ||||||||||||||||||||||||||||||||||||||||||
6650 | ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"%s:%lu: invalid zero-length file name\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, files_from), file_number), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
6651 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
6652 | "%s:%lu: invalid zero-length file name" | - | ||||||||||||||||||||||||||||||||||||||||||
6653 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
6654 | , quotearg_n_style_colon (0, shell_escape_quoting_style, files_from), file_number), (( | - | ||||||||||||||||||||||||||||||||||||||||||
6655 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
6656 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
6657 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
6658 | "%s:%lu: invalid zero-length file name" | - | ||||||||||||||||||||||||||||||||||||||||||
6659 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
6660 | , quotearg_n_style_colon (0, shell_escape_quoting_style, files_from), file_number), (( | - | ||||||||||||||||||||||||||||||||||||||||||
6661 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
6662 | ) ? (void) 0 : __builtin_unreachable ())))) | - | ||||||||||||||||||||||||||||||||||||||||||
6663 | - | |||||||||||||||||||||||||||||||||||||||||||
6664 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
6665 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
6666 | } executed 6 times by 1 test: end of block Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
6667 | } executed 4 times by 1 test: end of block Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
6668 | else | - | ||||||||||||||||||||||||||||||||||||||||||
6669 | (( executed 2 times by 1 test: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6670 | dcgettext (((void *)0), executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6671 | "no input from %s" executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6672 | , 5) executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6673 | , quotearg_style (shell_escape_always_quoting_style, files_from)), (( executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6674 | 0 executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6675 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6676 | dcgettext (((void *)0), executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6677 | "no input from %s" executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6678 | , 5) executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6679 | , quotearg_style (shell_escape_always_quoting_style, files_from)), (( executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6680 | 0 executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6681 | ) ? (void) 0 : __builtin_unreachable ())))) executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6682 | ; executed 2 times by 1 test: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"no input from %s\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "no input from %s" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
6683 | } | - | ||||||||||||||||||||||||||||||||||||||||||
6684 | - | |||||||||||||||||||||||||||||||||||||||||||
6685 | - | |||||||||||||||||||||||||||||||||||||||||||
6686 | for (key = keylist; key
| 368-784 | ||||||||||||||||||||||||||||||||||||||||||
6687 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6688 | if (default_key_compare (key)
| 8-250 | ||||||||||||||||||||||||||||||||||||||||||
6689 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6690 | key->ignore = gkey.ignore; | - | ||||||||||||||||||||||||||||||||||||||||||
6691 | key->translate = gkey.translate; | - | ||||||||||||||||||||||||||||||||||||||||||
6692 | key->skipsblanks = gkey.skipsblanks; | - | ||||||||||||||||||||||||||||||||||||||||||
6693 | key->skipeblanks = gkey.skipeblanks; | - | ||||||||||||||||||||||||||||||||||||||||||
6694 | key->month = gkey.month; | - | ||||||||||||||||||||||||||||||||||||||||||
6695 | key->numeric = gkey.numeric; | - | ||||||||||||||||||||||||||||||||||||||||||
6696 | key->general_numeric = gkey.general_numeric; | - | ||||||||||||||||||||||||||||||||||||||||||
6697 | key->human_numeric = gkey.human_numeric; | - | ||||||||||||||||||||||||||||||||||||||||||
6698 | key->version = gkey.version; | - | ||||||||||||||||||||||||||||||||||||||||||
6699 | key->random = gkey.random; | - | ||||||||||||||||||||||||||||||||||||||||||
6700 | key->reverse = gkey.reverse; | - | ||||||||||||||||||||||||||||||||||||||||||
6701 | } executed 242 times by 1 test: end of block Executed by:
| 242 | ||||||||||||||||||||||||||||||||||||||||||
6702 | - | |||||||||||||||||||||||||||||||||||||||||||
6703 | need_random |= key->random; | - | ||||||||||||||||||||||||||||||||||||||||||
6704 | } executed 368 times by 1 test: end of block Executed by:
| 368 | ||||||||||||||||||||||||||||||||||||||||||
6705 | - | |||||||||||||||||||||||||||||||||||||||||||
6706 | if (!keylist
| 141-461 | ||||||||||||||||||||||||||||||||||||||||||
6707 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6708 | gkey_only = | - | ||||||||||||||||||||||||||||||||||||||||||
6709 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
6710 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
6711 | insertkey (&gkey); | - | ||||||||||||||||||||||||||||||||||||||||||
6712 | need_random |= gkey.random; | - | ||||||||||||||||||||||||||||||||||||||||||
6713 | } executed 141 times by 1 test: end of block Executed by:
| 141 | ||||||||||||||||||||||||||||||||||||||||||
6714 | - | |||||||||||||||||||||||||||||||||||||||||||
6715 | check_ordering_compatibility (); | - | ||||||||||||||||||||||||||||||||||||||||||
6716 | - | |||||||||||||||||||||||||||||||||||||||||||
6717 | if (debug
| 52-725 | ||||||||||||||||||||||||||||||||||||||||||
6718 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6719 | if (checkonly
| 0-52 | ||||||||||||||||||||||||||||||||||||||||||
6720 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6721 | static char opts[] = "X --debug"; | - | ||||||||||||||||||||||||||||||||||||||||||
6722 | opts[0] = (checkonly
| 0 | ||||||||||||||||||||||||||||||||||||||||||
6723 | incompatible_options (opts); | - | ||||||||||||||||||||||||||||||||||||||||||
6724 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
6725 | - | |||||||||||||||||||||||||||||||||||||||||||
6726 | - | |||||||||||||||||||||||||||||||||||||||||||
6727 | - | |||||||||||||||||||||||||||||||||||||||||||
6728 | - | |||||||||||||||||||||||||||||||||||||||||||
6729 | - | |||||||||||||||||||||||||||||||||||||||||||
6730 | - | |||||||||||||||||||||||||||||||||||||||||||
6731 | if (locale_ok
| 1-51 | ||||||||||||||||||||||||||||||||||||||||||
6732 | locale_ok = !! setlocale ( executed 51 times by 1 test: locale_ok = !! setlocale ( 3 , ""); Executed by:
| 51 | ||||||||||||||||||||||||||||||||||||||||||
6733 | 3 executed 51 times by 1 test: locale_ok = !! setlocale ( 3 , ""); Executed by:
| 51 | ||||||||||||||||||||||||||||||||||||||||||
6734 | , ""); executed 51 times by 1 test: locale_ok = !! setlocale ( 3 , ""); Executed by:
| 51 | ||||||||||||||||||||||||||||||||||||||||||
6735 | if (! locale_ok
| 1-51 | ||||||||||||||||||||||||||||||||||||||||||
6736 | error (0, 0, "%s", executed 1 time by 1 test: error (0, 0, "%s", dcgettext (((void *)0), "failed to set locale" , 5) ); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6737 | dcgettext (((void *)0), executed 1 time by 1 test: error (0, 0, "%s", dcgettext (((void *)0), "failed to set locale" , 5) ); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6738 | "failed to set locale" executed 1 time by 1 test: error (0, 0, "%s", dcgettext (((void *)0), "failed to set locale" , 5) ); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6739 | , 5) executed 1 time by 1 test: error (0, 0, "%s", dcgettext (((void *)0), "failed to set locale" , 5) ); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6740 | ); executed 1 time by 1 test: error (0, 0, "%s", dcgettext (((void *)0), "failed to set locale" , 5) ); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
6741 | if (hard_LC_COLLATE
| 0-52 | ||||||||||||||||||||||||||||||||||||||||||
6742 | error (0, 0, never executed: error (0, 0, dcgettext (((void *)0), "using %s sorting rules" , 5) , quote (setlocale ( 3 , ((void *)0) ))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6743 | dcgettext (((void *)0), never executed: error (0, 0, dcgettext (((void *)0), "using %s sorting rules" , 5) , quote (setlocale ( 3 , ((void *)0) ))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6744 | "using %s sorting rules" never executed: error (0, 0, dcgettext (((void *)0), "using %s sorting rules" , 5) , quote (setlocale ( 3 , ((void *)0) ))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6745 | , 5) never executed: error (0, 0, dcgettext (((void *)0), "using %s sorting rules" , 5) , quote (setlocale ( 3 , ((void *)0) ))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6746 | , never executed: error (0, 0, dcgettext (((void *)0), "using %s sorting rules" , 5) , quote (setlocale ( 3 , ((void *)0) ))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6747 | quote (setlocale ( never executed: error (0, 0, dcgettext (((void *)0), "using %s sorting rules" , 5) , quote (setlocale ( 3 , ((void *)0) ))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6748 | 3 never executed: error (0, 0, dcgettext (((void *)0), "using %s sorting rules" , 5) , quote (setlocale ( 3 , ((void *)0) ))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6749 | , never executed: error (0, 0, dcgettext (((void *)0), "using %s sorting rules" , 5) , quote (setlocale ( 3 , ((void *)0) ))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6750 | ((void *)0) never executed: error (0, 0, dcgettext (((void *)0), "using %s sorting rules" , 5) , quote (setlocale ( 3 , ((void *)0) ))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6751 | ))); never executed: error (0, 0, dcgettext (((void *)0), "using %s sorting rules" , 5) , quote (setlocale ( 3 , ((void *)0) ))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6752 | else | - | ||||||||||||||||||||||||||||||||||||||||||
6753 | error (0, 0, "%s", executed 52 times by 1 test: error (0, 0, "%s", dcgettext (((void *)0), "using simple byte comparison" , 5) ); Executed by:
| 52 | ||||||||||||||||||||||||||||||||||||||||||
6754 | dcgettext (((void *)0), executed 52 times by 1 test: error (0, 0, "%s", dcgettext (((void *)0), "using simple byte comparison" , 5) ); Executed by:
| 52 | ||||||||||||||||||||||||||||||||||||||||||
6755 | "using simple byte comparison" executed 52 times by 1 test: error (0, 0, "%s", dcgettext (((void *)0), "using simple byte comparison" , 5) ); Executed by:
| 52 | ||||||||||||||||||||||||||||||||||||||||||
6756 | , 5) executed 52 times by 1 test: error (0, 0, "%s", dcgettext (((void *)0), "using simple byte comparison" , 5) ); Executed by:
| 52 | ||||||||||||||||||||||||||||||||||||||||||
6757 | ); executed 52 times by 1 test: error (0, 0, "%s", dcgettext (((void *)0), "using simple byte comparison" , 5) ); Executed by:
| 52 | ||||||||||||||||||||||||||||||||||||||||||
6758 | - | |||||||||||||||||||||||||||||||||||||||||||
6759 | key_warnings (&gkey, gkey_only); | - | ||||||||||||||||||||||||||||||||||||||||||
6760 | } executed 52 times by 1 test: end of block Executed by:
| 52 | ||||||||||||||||||||||||||||||||||||||||||
6761 | - | |||||||||||||||||||||||||||||||||||||||||||
6762 | reverse = gkey.reverse; | - | ||||||||||||||||||||||||||||||||||||||||||
6763 | - | |||||||||||||||||||||||||||||||||||||||||||
6764 | if (need_random
| 15-762 | ||||||||||||||||||||||||||||||||||||||||||
6765 | random_md5_state_init (random_source); executed 15 times by 1 test: random_md5_state_init (random_source); Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||
6766 | - | |||||||||||||||||||||||||||||||||||||||||||
6767 | if (temp_dir_count == 0
| 3-774 | ||||||||||||||||||||||||||||||||||||||||||
6768 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6769 | char const *tmp_dir = getenv ("TMPDIR"); | - | ||||||||||||||||||||||||||||||||||||||||||
6770 | add_temp_dir (tmp_dir ? tmp_dir : "/tmp"); | - | ||||||||||||||||||||||||||||||||||||||||||
6771 | } executed 774 times by 1 test: end of block Executed by:
| 774 | ||||||||||||||||||||||||||||||||||||||||||
6772 | - | |||||||||||||||||||||||||||||||||||||||||||
6773 | if (nfiles == 0
| 212-565 | ||||||||||||||||||||||||||||||||||||||||||
6774 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6775 | nfiles = 1; | - | ||||||||||||||||||||||||||||||||||||||||||
6776 | free (files); | - | ||||||||||||||||||||||||||||||||||||||||||
6777 | files = xmalloc (sizeof *files); | - | ||||||||||||||||||||||||||||||||||||||||||
6778 | *files = (char *) "-"; | - | ||||||||||||||||||||||||||||||||||||||||||
6779 | } executed 565 times by 1 test: end of block Executed by:
| 565 | ||||||||||||||||||||||||||||||||||||||||||
6780 | - | |||||||||||||||||||||||||||||||||||||||||||
6781 | - | |||||||||||||||||||||||||||||||||||||||||||
6782 | - | |||||||||||||||||||||||||||||||||||||||||||
6783 | if (0 < sort_size
| 28-749 | ||||||||||||||||||||||||||||||||||||||||||
6784 | sort_size = executed 28 times by 1 test: sort_size = ((( sort_size )>( (nmerge * (2 + sizeof (struct line))) ))?( sort_size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||
6785 | (((
executed 28 times by 1 test: sort_size = ((( sort_size )>( (nmerge * (2 + sizeof (struct line))) ))?( sort_size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 13-28 | ||||||||||||||||||||||||||||||||||||||||||
6786 | sort_size
executed 28 times by 1 test: sort_size = ((( sort_size )>( (nmerge * (2 + sizeof (struct line))) ))?( sort_size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 13-28 | ||||||||||||||||||||||||||||||||||||||||||
6787 | )>(
executed 28 times by 1 test: sort_size = ((( sort_size )>( (nmerge * (2 + sizeof (struct line))) ))?( sort_size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 13-28 | ||||||||||||||||||||||||||||||||||||||||||
6788 | (nmerge * (2 + sizeof (struct line)))
executed 28 times by 1 test: sort_size = ((( sort_size )>( (nmerge * (2 + sizeof (struct line))) ))?( sort_size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 13-28 | ||||||||||||||||||||||||||||||||||||||||||
6789 | ))
executed 28 times by 1 test: sort_size = ((( sort_size )>( (nmerge * (2 + sizeof (struct line))) ))?( sort_size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 13-28 | ||||||||||||||||||||||||||||||||||||||||||
6790 | sort_size executed 28 times by 1 test: sort_size = ((( sort_size )>( (nmerge * (2 + sizeof (struct line))) ))?( sort_size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||
6791 | ):( executed 28 times by 1 test: sort_size = ((( sort_size )>( (nmerge * (2 + sizeof (struct line))) ))?( sort_size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||
6792 | (nmerge * (2 + sizeof (struct line))) executed 28 times by 1 test: sort_size = ((( sort_size )>( (nmerge * (2 + sizeof (struct line))) ))?( sort_size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||
6793 | )) executed 28 times by 1 test: sort_size = ((( sort_size )>( (nmerge * (2 + sizeof (struct line))) ))?( sort_size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||
6794 | ; executed 28 times by 1 test: sort_size = ((( sort_size )>( (nmerge * (2 + sizeof (struct line))) ))?( sort_size ):( (nmerge * (2 + sizeof (struct line))) )) ; Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||
6795 | - | |||||||||||||||||||||||||||||||||||||||||||
6796 | if (checkonly
| 44-733 | ||||||||||||||||||||||||||||||||||||||||||
6797 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6798 | if (nfiles > 1
| 0-44 | ||||||||||||||||||||||||||||||||||||||||||
6799 | (( never executed: !!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), assume (false))" ")"); int _gl_dummy; })) ? ((error (SORT_FAILURE, 0, ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6800 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6801 | "extra operand %s not allowed with -%c" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6802 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6803 | , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6804 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6805 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6806 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6807 | "extra operand %s not allowed with -%c" never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6808 | , 5) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6809 | , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6810 | 0 never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6811 | ) ? (void) 0 : __builtin_unreachable ())))) never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6812 | ; never executed: ((!!sizeof (struct { _Static_assert (SORT_FAILURE, "verify_expr (" "SORT_FAILURE" ", " "(error (SORT_FAILURE, 0, dcgettext (((void *)0), \"extra operand %s not allowed with -%c\", 5), quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly...0 : __builtin_unreachable ()))) : ((error (SORT_FAILURE, 0, dcgettext (((void *)0), "extra operand %s not allowed with -%c" , 5) , quotearg_style (shell_escape_always_quoting_style, files[1]), checkonly), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
6813 | - | |||||||||||||||||||||||||||||||||||||||||||
6814 | if (outfile
| 2-42 | ||||||||||||||||||||||||||||||||||||||||||
6815 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6816 | static char opts[] = {0, 'o', 0}; | - | ||||||||||||||||||||||||||||||||||||||||||
6817 | opts[0] = checkonly; | - | ||||||||||||||||||||||||||||||||||||||||||
6818 | incompatible_options (opts); | - | ||||||||||||||||||||||||||||||||||||||||||
6819 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
6820 | - | |||||||||||||||||||||||||||||||||||||||||||
6821 | - | |||||||||||||||||||||||||||||||||||||||||||
6822 | - | |||||||||||||||||||||||||||||||||||||||||||
6823 | return executed 42 times by 1 test: check (files[0], checkonly) ? return check (files[0], checkonly) ? 0 : SORT_OUT_OF_ORDER; Executed by:
executed 42 times by 1 test: return check (files[0], checkonly) ? 0 : SORT_OUT_OF_ORDER; Executed by:
| 42 | ||||||||||||||||||||||||||||||||||||||||||
6824 | 0 executed 42 times by 1 test: return check (files[0], checkonly) ? 0 : SORT_OUT_OF_ORDER; Executed by:
| 42 | ||||||||||||||||||||||||||||||||||||||||||
6825 | : SORT_OUT_OF_ORDER; executed 42 times by 1 test: return check (files[0], checkonly) ? 0 : SORT_OUT_OF_ORDER; Executed by:
| 42 | ||||||||||||||||||||||||||||||||||||||||||
6826 | } | - | ||||||||||||||||||||||||||||||||||||||||||
6827 | - | |||||||||||||||||||||||||||||||||||||||||||
6828 | - | |||||||||||||||||||||||||||||||||||||||||||
6829 | check_inputs (files, nfiles); | - | ||||||||||||||||||||||||||||||||||||||||||
6830 | - | |||||||||||||||||||||||||||||||||||||||||||
6831 | - | |||||||||||||||||||||||||||||||||||||||||||
6832 | check_output (outfile); | - | ||||||||||||||||||||||||||||||||||||||||||
6833 | - | |||||||||||||||||||||||||||||||||||||||||||
6834 | if (mergeonly
| 14-713 | ||||||||||||||||||||||||||||||||||||||||||
6835 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6836 | struct sortfile *sortfiles = xcalloc (nfiles, sizeof *sortfiles); | - | ||||||||||||||||||||||||||||||||||||||||||
6837 | - | |||||||||||||||||||||||||||||||||||||||||||
6838 | for (size_t i = 0; i < nfiles
| 14-143 | ||||||||||||||||||||||||||||||||||||||||||
6839 | sortfiles[i].name = files[i]; executed 143 times by 1 test: sortfiles[i].name = files[i]; Executed by:
| 143 | ||||||||||||||||||||||||||||||||||||||||||
6840 | - | |||||||||||||||||||||||||||||||||||||||||||
6841 | merge (sortfiles, 0, nfiles, outfile); | - | ||||||||||||||||||||||||||||||||||||||||||
6842 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
6843 | } executed 13 times by 1 test: end of block Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
6844 | else | - | ||||||||||||||||||||||||||||||||||||||||||
6845 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6846 | if (!nthreads
| 14-699 | ||||||||||||||||||||||||||||||||||||||||||
6847 | { | - | ||||||||||||||||||||||||||||||||||||||||||
6848 | unsigned long int np = num_processors (NPROC_CURRENT_OVERRIDABLE); | - | ||||||||||||||||||||||||||||||||||||||||||
6849 | nthreads = | - | ||||||||||||||||||||||||||||||||||||||||||
6850 | (((
| 0-699 | ||||||||||||||||||||||||||||||||||||||||||
6851 | np
| 0-699 | ||||||||||||||||||||||||||||||||||||||||||
6852 | )<(
| 0-699 | ||||||||||||||||||||||||||||||||||||||||||
6853 | DEFAULT_MAX_THREADS
| 0-699 | ||||||||||||||||||||||||||||||||||||||||||
6854 | ))
| 0-699 | ||||||||||||||||||||||||||||||||||||||||||
6855 | np | - | ||||||||||||||||||||||||||||||||||||||||||
6856 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
6857 | DEFAULT_MAX_THREADS | - | ||||||||||||||||||||||||||||||||||||||||||
6858 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
6859 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
6860 | } executed 699 times by 1 test: end of block Executed by:
| 699 | ||||||||||||||||||||||||||||||||||||||||||
6861 | - | |||||||||||||||||||||||||||||||||||||||||||
6862 | - | |||||||||||||||||||||||||||||||||||||||||||
6863 | size_t nthreads_max = | - | ||||||||||||||||||||||||||||||||||||||||||
6864 | (18446744073709551615UL) | - | ||||||||||||||||||||||||||||||||||||||||||
6865 | / (2 * sizeof (struct merge_node)); | - | ||||||||||||||||||||||||||||||||||||||||||
6866 | nthreads = | - | ||||||||||||||||||||||||||||||||||||||||||
6867 | (((
| 0-713 | ||||||||||||||||||||||||||||||||||||||||||
6868 | nthreads
| 0-713 | ||||||||||||||||||||||||||||||||||||||||||
6869 | )<(
| 0-713 | ||||||||||||||||||||||||||||||||||||||||||
6870 | nthreads_max
| 0-713 | ||||||||||||||||||||||||||||||||||||||||||
6871 | ))
| 0-713 | ||||||||||||||||||||||||||||||||||||||||||
6872 | nthreads | - | ||||||||||||||||||||||||||||||||||||||||||
6873 | ):( | - | ||||||||||||||||||||||||||||||||||||||||||
6874 | nthreads_max | - | ||||||||||||||||||||||||||||||||||||||||||
6875 | )) | - | ||||||||||||||||||||||||||||||||||||||||||
6876 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
6877 | - | |||||||||||||||||||||||||||||||||||||||||||
6878 | sort (files, nfiles, outfile, nthreads); | - | ||||||||||||||||||||||||||||||||||||||||||
6879 | } executed 711 times by 1 test: end of block Executed by:
| 711 | ||||||||||||||||||||||||||||||||||||||||||
6880 | if (have_read_stdin
| 185-539 | ||||||||||||||||||||||||||||||||||||||||||
6881 | rpl_fclose
| 0-539 | ||||||||||||||||||||||||||||||||||||||||||
6882 | (
| 0-539 | ||||||||||||||||||||||||||||||||||||||||||
6883 | stdin
| 0-539 | ||||||||||||||||||||||||||||||||||||||||||
6884 | ) ==
| 0-539 | ||||||||||||||||||||||||||||||||||||||||||
6885 | (-1)
| 0-539 | ||||||||||||||||||||||||||||||||||||||||||
6886 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
6887 | sort_die ( never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , "-"); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6888 | dcgettext (((void *)0), never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , "-"); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6889 | "close failed" never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , "-"); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6890 | , 5) never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , "-"); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6891 | , "-"); never executed: sort_die ( dcgettext (((void *)0), "close failed" , 5) , "-"); | 0 | ||||||||||||||||||||||||||||||||||||||||||
6892 | - | |||||||||||||||||||||||||||||||||||||||||||
6893 | return executed 724 times by 1 test: return 0 ; Executed by:
executed 724 times by 1 test: return 0 ; Executed by:
| 724 | ||||||||||||||||||||||||||||||||||||||||||
6894 | 0 executed 724 times by 1 test: return 0 ; Executed by:
| 724 | ||||||||||||||||||||||||||||||||||||||||||
6895 | ; executed 724 times by 1 test: return 0 ; Executed by:
| 724 | ||||||||||||||||||||||||||||||||||||||||||
6896 | } | - | ||||||||||||||||||||||||||||||||||||||||||
Switch to Source code | Preprocessed file |