| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/uniq.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||||||||||||||
| 2 | - | |||||||||||||||||||||||||||||||
| 3 | - | |||||||||||||||||||||||||||||||
| 4 | static | - | ||||||||||||||||||||||||||||||
| 5 | _Bool | - | ||||||||||||||||||||||||||||||
| 6 | hard_LC_COLLATE; | - | ||||||||||||||||||||||||||||||
| 7 | - | |||||||||||||||||||||||||||||||
| 8 | - | |||||||||||||||||||||||||||||||
| 9 | static size_t skip_fields; | - | ||||||||||||||||||||||||||||||
| 10 | - | |||||||||||||||||||||||||||||||
| 11 | - | |||||||||||||||||||||||||||||||
| 12 | static size_t skip_chars; | - | ||||||||||||||||||||||||||||||
| 13 | - | |||||||||||||||||||||||||||||||
| 14 | - | |||||||||||||||||||||||||||||||
| 15 | static size_t check_chars; | - | ||||||||||||||||||||||||||||||
| 16 | - | |||||||||||||||||||||||||||||||
| 17 | enum countmode | - | ||||||||||||||||||||||||||||||
| 18 | { | - | ||||||||||||||||||||||||||||||
| 19 | count_occurrences, | - | ||||||||||||||||||||||||||||||
| 20 | count_none | - | ||||||||||||||||||||||||||||||
| 21 | }; | - | ||||||||||||||||||||||||||||||
| 22 | - | |||||||||||||||||||||||||||||||
| 23 | - | |||||||||||||||||||||||||||||||
| 24 | - | |||||||||||||||||||||||||||||||
| 25 | static enum countmode countmode; | - | ||||||||||||||||||||||||||||||
| 26 | - | |||||||||||||||||||||||||||||||
| 27 | - | |||||||||||||||||||||||||||||||
| 28 | - | |||||||||||||||||||||||||||||||
| 29 | - | |||||||||||||||||||||||||||||||
| 30 | static | - | ||||||||||||||||||||||||||||||
| 31 | _Bool | - | ||||||||||||||||||||||||||||||
| 32 | output_unique; | - | ||||||||||||||||||||||||||||||
| 33 | static | - | ||||||||||||||||||||||||||||||
| 34 | _Bool | - | ||||||||||||||||||||||||||||||
| 35 | output_first_repeated; | - | ||||||||||||||||||||||||||||||
| 36 | static | - | ||||||||||||||||||||||||||||||
| 37 | _Bool | - | ||||||||||||||||||||||||||||||
| 38 | output_later_repeated; | - | ||||||||||||||||||||||||||||||
| 39 | - | |||||||||||||||||||||||||||||||
| 40 | - | |||||||||||||||||||||||||||||||
| 41 | static | - | ||||||||||||||||||||||||||||||
| 42 | _Bool | - | ||||||||||||||||||||||||||||||
| 43 | ignore_case; | - | ||||||||||||||||||||||||||||||
| 44 | - | |||||||||||||||||||||||||||||||
| 45 | enum delimit_method | - | ||||||||||||||||||||||||||||||
| 46 | { | - | ||||||||||||||||||||||||||||||
| 47 | - | |||||||||||||||||||||||||||||||
| 48 | DM_NONE, | - | ||||||||||||||||||||||||||||||
| 49 | - | |||||||||||||||||||||||||||||||
| 50 | - | |||||||||||||||||||||||||||||||
| 51 | DM_PREPEND, | - | ||||||||||||||||||||||||||||||
| 52 | - | |||||||||||||||||||||||||||||||
| 53 | - | |||||||||||||||||||||||||||||||
| 54 | DM_SEPARATE | - | ||||||||||||||||||||||||||||||
| 55 | }; | - | ||||||||||||||||||||||||||||||
| 56 | - | |||||||||||||||||||||||||||||||
| 57 | static char const *const delimit_method_string[] = | - | ||||||||||||||||||||||||||||||
| 58 | { | - | ||||||||||||||||||||||||||||||
| 59 | "none", "prepend", "separate", | - | ||||||||||||||||||||||||||||||
| 60 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 61 | - | |||||||||||||||||||||||||||||||
| 62 | }; | - | ||||||||||||||||||||||||||||||
| 63 | - | |||||||||||||||||||||||||||||||
| 64 | static enum delimit_method const delimit_method_map[] = | - | ||||||||||||||||||||||||||||||
| 65 | { | - | ||||||||||||||||||||||||||||||
| 66 | DM_NONE, DM_PREPEND, DM_SEPARATE | - | ||||||||||||||||||||||||||||||
| 67 | }; | - | ||||||||||||||||||||||||||||||
| 68 | - | |||||||||||||||||||||||||||||||
| 69 | - | |||||||||||||||||||||||||||||||
| 70 | static enum delimit_method delimit_groups; | - | ||||||||||||||||||||||||||||||
| 71 | - | |||||||||||||||||||||||||||||||
| 72 | enum grouping_method | - | ||||||||||||||||||||||||||||||
| 73 | { | - | ||||||||||||||||||||||||||||||
| 74 | - | |||||||||||||||||||||||||||||||
| 75 | GM_NONE, | - | ||||||||||||||||||||||||||||||
| 76 | - | |||||||||||||||||||||||||||||||
| 77 | - | |||||||||||||||||||||||||||||||
| 78 | GM_PREPEND, | - | ||||||||||||||||||||||||||||||
| 79 | - | |||||||||||||||||||||||||||||||
| 80 | - | |||||||||||||||||||||||||||||||
| 81 | GM_APPEND, | - | ||||||||||||||||||||||||||||||
| 82 | - | |||||||||||||||||||||||||||||||
| 83 | - | |||||||||||||||||||||||||||||||
| 84 | GM_SEPARATE, | - | ||||||||||||||||||||||||||||||
| 85 | - | |||||||||||||||||||||||||||||||
| 86 | - | |||||||||||||||||||||||||||||||
| 87 | GM_BOTH | - | ||||||||||||||||||||||||||||||
| 88 | }; | - | ||||||||||||||||||||||||||||||
| 89 | - | |||||||||||||||||||||||||||||||
| 90 | static char const *const grouping_method_string[] = | - | ||||||||||||||||||||||||||||||
| 91 | { | - | ||||||||||||||||||||||||||||||
| 92 | "prepend", "append", "separate", "both", | - | ||||||||||||||||||||||||||||||
| 93 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 94 | - | |||||||||||||||||||||||||||||||
| 95 | }; | - | ||||||||||||||||||||||||||||||
| 96 | - | |||||||||||||||||||||||||||||||
| 97 | static enum grouping_method const grouping_method_map[] = | - | ||||||||||||||||||||||||||||||
| 98 | { | - | ||||||||||||||||||||||||||||||
| 99 | GM_PREPEND, GM_APPEND, GM_SEPARATE, GM_BOTH | - | ||||||||||||||||||||||||||||||
| 100 | }; | - | ||||||||||||||||||||||||||||||
| 101 | - | |||||||||||||||||||||||||||||||
| 102 | static enum grouping_method grouping = GM_NONE; | - | ||||||||||||||||||||||||||||||
| 103 | - | |||||||||||||||||||||||||||||||
| 104 | enum | - | ||||||||||||||||||||||||||||||
| 105 | { | - | ||||||||||||||||||||||||||||||
| 106 | GROUP_OPTION = 0x7f + 1 | - | ||||||||||||||||||||||||||||||
| 107 | }; | - | ||||||||||||||||||||||||||||||
| 108 | - | |||||||||||||||||||||||||||||||
| 109 | static struct option const longopts[] = | - | ||||||||||||||||||||||||||||||
| 110 | { | - | ||||||||||||||||||||||||||||||
| 111 | {"count", | - | ||||||||||||||||||||||||||||||
| 112 | 0 | - | ||||||||||||||||||||||||||||||
| 113 | , | - | ||||||||||||||||||||||||||||||
| 114 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 115 | , 'c'}, | - | ||||||||||||||||||||||||||||||
| 116 | {"repeated", | - | ||||||||||||||||||||||||||||||
| 117 | 0 | - | ||||||||||||||||||||||||||||||
| 118 | , | - | ||||||||||||||||||||||||||||||
| 119 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 120 | , 'd'}, | - | ||||||||||||||||||||||||||||||
| 121 | {"all-repeated", | - | ||||||||||||||||||||||||||||||
| 122 | 2 | - | ||||||||||||||||||||||||||||||
| 123 | , | - | ||||||||||||||||||||||||||||||
| 124 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 125 | , 'D'}, | - | ||||||||||||||||||||||||||||||
| 126 | {"group", | - | ||||||||||||||||||||||||||||||
| 127 | 2 | - | ||||||||||||||||||||||||||||||
| 128 | , | - | ||||||||||||||||||||||||||||||
| 129 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 130 | , GROUP_OPTION}, | - | ||||||||||||||||||||||||||||||
| 131 | {"ignore-case", | - | ||||||||||||||||||||||||||||||
| 132 | 0 | - | ||||||||||||||||||||||||||||||
| 133 | , | - | ||||||||||||||||||||||||||||||
| 134 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 135 | , 'i'}, | - | ||||||||||||||||||||||||||||||
| 136 | {"unique", | - | ||||||||||||||||||||||||||||||
| 137 | 0 | - | ||||||||||||||||||||||||||||||
| 138 | , | - | ||||||||||||||||||||||||||||||
| 139 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 140 | , 'u'}, | - | ||||||||||||||||||||||||||||||
| 141 | {"skip-fields", | - | ||||||||||||||||||||||||||||||
| 142 | 1 | - | ||||||||||||||||||||||||||||||
| 143 | , | - | ||||||||||||||||||||||||||||||
| 144 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 145 | , 'f'}, | - | ||||||||||||||||||||||||||||||
| 146 | {"skip-chars", | - | ||||||||||||||||||||||||||||||
| 147 | 1 | - | ||||||||||||||||||||||||||||||
| 148 | , | - | ||||||||||||||||||||||||||||||
| 149 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 150 | , 's'}, | - | ||||||||||||||||||||||||||||||
| 151 | {"check-chars", | - | ||||||||||||||||||||||||||||||
| 152 | 1 | - | ||||||||||||||||||||||||||||||
| 153 | , | - | ||||||||||||||||||||||||||||||
| 154 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 155 | , 'w'}, | - | ||||||||||||||||||||||||||||||
| 156 | {"zero-terminated", | - | ||||||||||||||||||||||||||||||
| 157 | 0 | - | ||||||||||||||||||||||||||||||
| 158 | , | - | ||||||||||||||||||||||||||||||
| 159 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 160 | , 'z'}, | - | ||||||||||||||||||||||||||||||
| 161 | {"help", | - | ||||||||||||||||||||||||||||||
| 162 | 0 | - | ||||||||||||||||||||||||||||||
| 163 | , | - | ||||||||||||||||||||||||||||||
| 164 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 165 | , GETOPT_HELP_CHAR}, | - | ||||||||||||||||||||||||||||||
| 166 | {"version", | - | ||||||||||||||||||||||||||||||
| 167 | 0 | - | ||||||||||||||||||||||||||||||
| 168 | , | - | ||||||||||||||||||||||||||||||
| 169 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 170 | , GETOPT_VERSION_CHAR}, | - | ||||||||||||||||||||||||||||||
| 171 | { | - | ||||||||||||||||||||||||||||||
| 172 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 173 | , 0, | - | ||||||||||||||||||||||||||||||
| 174 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 175 | , 0} | - | ||||||||||||||||||||||||||||||
| 176 | }; | - | ||||||||||||||||||||||||||||||
| 177 | - | |||||||||||||||||||||||||||||||
| 178 | void | - | ||||||||||||||||||||||||||||||
| 179 | usage (int status) | - | ||||||||||||||||||||||||||||||
| 180 | { | - | ||||||||||||||||||||||||||||||
| 181 | if (status !=
| 16-45 | ||||||||||||||||||||||||||||||
| 182 | 0
| 16-45 | ||||||||||||||||||||||||||||||
| 183 | ) | - | ||||||||||||||||||||||||||||||
| 184 | do { fprintf ( | - | ||||||||||||||||||||||||||||||
| 185 | stderr | - | ||||||||||||||||||||||||||||||
| 186 | , | - | ||||||||||||||||||||||||||||||
| 187 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 188 | "Try '%s --help' for more information.\n" | - | ||||||||||||||||||||||||||||||
| 189 | , 5) | - | ||||||||||||||||||||||||||||||
| 190 | , program_name); } executed 45 times by 1 test: while (0);end of blockExecuted by:
| 45 | ||||||||||||||||||||||||||||||
| 191 | else | - | ||||||||||||||||||||||||||||||
| 192 | { | - | ||||||||||||||||||||||||||||||
| 193 | printf ( | - | ||||||||||||||||||||||||||||||
| 194 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 195 | "Usage: %s [OPTION]... [INPUT [OUTPUT]]\n" | - | ||||||||||||||||||||||||||||||
| 196 | , 5) | - | ||||||||||||||||||||||||||||||
| 197 | - | |||||||||||||||||||||||||||||||
| 198 | - | |||||||||||||||||||||||||||||||
| 199 | , | - | ||||||||||||||||||||||||||||||
| 200 | program_name); | - | ||||||||||||||||||||||||||||||
| 201 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||
| 202 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 203 | "Filter adjacent matching lines from INPUT (or standard input),\nwriting to OUTPUT (or standard output).\n\nWith no options, matching lines are merged to the first occurrence.\n" | - | ||||||||||||||||||||||||||||||
| 204 | , 5) | - | ||||||||||||||||||||||||||||||
| 205 | , | - | ||||||||||||||||||||||||||||||
| 206 | stdout | - | ||||||||||||||||||||||||||||||
| 207 | ) | - | ||||||||||||||||||||||||||||||
| 208 | - | |||||||||||||||||||||||||||||||
| 209 | - | |||||||||||||||||||||||||||||||
| 210 | - | |||||||||||||||||||||||||||||||
| 211 | - | |||||||||||||||||||||||||||||||
| 212 | ; | - | ||||||||||||||||||||||||||||||
| 213 | - | |||||||||||||||||||||||||||||||
| 214 | emit_mandatory_arg_note (); | - | ||||||||||||||||||||||||||||||
| 215 | - | |||||||||||||||||||||||||||||||
| 216 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||
| 217 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 218 | " -c, --count prefix lines by the number of occurrences\n -d, --repeated only print duplicate lines, one for each group\n" | - | ||||||||||||||||||||||||||||||
| 219 | , 5) | - | ||||||||||||||||||||||||||||||
| 220 | , | - | ||||||||||||||||||||||||||||||
| 221 | stdout | - | ||||||||||||||||||||||||||||||
| 222 | ) | - | ||||||||||||||||||||||||||||||
| 223 | - | |||||||||||||||||||||||||||||||
| 224 | - | |||||||||||||||||||||||||||||||
| 225 | ; | - | ||||||||||||||||||||||||||||||
| 226 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||
| 227 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 228 | " -D print all duplicate lines\n --all-repeated[=METHOD] like -D, but allow separating groups\n with an empty line;\n METHOD={none(default),prepend,separate}\n" | - | ||||||||||||||||||||||||||||||
| 229 | , 5) | - | ||||||||||||||||||||||||||||||
| 230 | , | - | ||||||||||||||||||||||||||||||
| 231 | stdout | - | ||||||||||||||||||||||||||||||
| 232 | ) | - | ||||||||||||||||||||||||||||||
| 233 | - | |||||||||||||||||||||||||||||||
| 234 | - | |||||||||||||||||||||||||||||||
| 235 | - | |||||||||||||||||||||||||||||||
| 236 | - | |||||||||||||||||||||||||||||||
| 237 | ; | - | ||||||||||||||||||||||||||||||
| 238 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||
| 239 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 240 | " -f, --skip-fields=N avoid comparing the first N fields\n" | - | ||||||||||||||||||||||||||||||
| 241 | , 5) | - | ||||||||||||||||||||||||||||||
| 242 | , | - | ||||||||||||||||||||||||||||||
| 243 | stdout | - | ||||||||||||||||||||||||||||||
| 244 | ) | - | ||||||||||||||||||||||||||||||
| 245 | - | |||||||||||||||||||||||||||||||
| 246 | ; | - | ||||||||||||||||||||||||||||||
| 247 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||
| 248 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 249 | " --group[=METHOD] show all items, separating groups with an empty line;\n METHOD={separate(default),prepend,append,both}\n" | - | ||||||||||||||||||||||||||||||
| 250 | , 5) | - | ||||||||||||||||||||||||||||||
| 251 | , | - | ||||||||||||||||||||||||||||||
| 252 | stdout | - | ||||||||||||||||||||||||||||||
| 253 | ) | - | ||||||||||||||||||||||||||||||
| 254 | - | |||||||||||||||||||||||||||||||
| 255 | - | |||||||||||||||||||||||||||||||
| 256 | ; | - | ||||||||||||||||||||||||||||||
| 257 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||
| 258 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 259 | " -i, --ignore-case ignore differences in case when comparing\n -s, --skip-chars=N avoid comparing the first N characters\n -u, --unique only print unique lines\n" | - | ||||||||||||||||||||||||||||||
| 260 | , 5) | - | ||||||||||||||||||||||||||||||
| 261 | , | - | ||||||||||||||||||||||||||||||
| 262 | stdout | - | ||||||||||||||||||||||||||||||
| 263 | ) | - | ||||||||||||||||||||||||||||||
| 264 | - | |||||||||||||||||||||||||||||||
| 265 | - | |||||||||||||||||||||||||||||||
| 266 | - | |||||||||||||||||||||||||||||||
| 267 | ; | - | ||||||||||||||||||||||||||||||
| 268 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||
| 269 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 270 | " -z, --zero-terminated line delimiter is NUL, not newline\n" | - | ||||||||||||||||||||||||||||||
| 271 | , 5) | - | ||||||||||||||||||||||||||||||
| 272 | , | - | ||||||||||||||||||||||||||||||
| 273 | stdout | - | ||||||||||||||||||||||||||||||
| 274 | ) | - | ||||||||||||||||||||||||||||||
| 275 | - | |||||||||||||||||||||||||||||||
| 276 | ; | - | ||||||||||||||||||||||||||||||
| 277 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||
| 278 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 279 | " -w, --check-chars=N compare no more than N characters in lines\n" | - | ||||||||||||||||||||||||||||||
| 280 | , 5) | - | ||||||||||||||||||||||||||||||
| 281 | , | - | ||||||||||||||||||||||||||||||
| 282 | stdout | - | ||||||||||||||||||||||||||||||
| 283 | ) | - | ||||||||||||||||||||||||||||||
| 284 | - | |||||||||||||||||||||||||||||||
| 285 | ; | - | ||||||||||||||||||||||||||||||
| 286 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||
| 287 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 288 | " --help display this help and exit\n" | - | ||||||||||||||||||||||||||||||
| 289 | , 5) | - | ||||||||||||||||||||||||||||||
| 290 | , | - | ||||||||||||||||||||||||||||||
| 291 | stdout | - | ||||||||||||||||||||||||||||||
| 292 | ); | - | ||||||||||||||||||||||||||||||
| 293 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||
| 294 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 295 | " --version output version information and exit\n" | - | ||||||||||||||||||||||||||||||
| 296 | , 5) | - | ||||||||||||||||||||||||||||||
| 297 | , | - | ||||||||||||||||||||||||||||||
| 298 | stdout | - | ||||||||||||||||||||||||||||||
| 299 | ); | - | ||||||||||||||||||||||||||||||
| 300 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||
| 301 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 302 | "\nA field is a run of blanks (usually spaces and/or TABs), then non-blank\ncharacters. Fields are skipped before chars.\n" | - | ||||||||||||||||||||||||||||||
| 303 | , 5) | - | ||||||||||||||||||||||||||||||
| 304 | , | - | ||||||||||||||||||||||||||||||
| 305 | stdout | - | ||||||||||||||||||||||||||||||
| 306 | ) | - | ||||||||||||||||||||||||||||||
| 307 | - | |||||||||||||||||||||||||||||||
| 308 | - | |||||||||||||||||||||||||||||||
| 309 | - | |||||||||||||||||||||||||||||||
| 310 | ; | - | ||||||||||||||||||||||||||||||
| 311 | fputs_unlocked ( | - | ||||||||||||||||||||||||||||||
| 312 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 313 | "\nNote: 'uniq' does not detect repeated lines unless they are adjacent.\nYou may want to sort the input first, or use 'sort -u' without 'uniq'.\nAlso, comparisons honor the rules specified by 'LC_COLLATE'.\n" | - | ||||||||||||||||||||||||||||||
| 314 | , 5) | - | ||||||||||||||||||||||||||||||
| 315 | , | - | ||||||||||||||||||||||||||||||
| 316 | stdout | - | ||||||||||||||||||||||||||||||
| 317 | ) | - | ||||||||||||||||||||||||||||||
| 318 | - | |||||||||||||||||||||||||||||||
| 319 | - | |||||||||||||||||||||||||||||||
| 320 | - | |||||||||||||||||||||||||||||||
| 321 | - | |||||||||||||||||||||||||||||||
| 322 | ; | - | ||||||||||||||||||||||||||||||
| 323 | emit_ancillary_info ("uniq"); | - | ||||||||||||||||||||||||||||||
| 324 | } executed 16 times by 1 test: end of blockExecuted by:
| 16 | ||||||||||||||||||||||||||||||
| 325 | exit (status); executed 61 times by 1 test: exit (status);Executed by:
| 61 | ||||||||||||||||||||||||||||||
| 326 | } | - | ||||||||||||||||||||||||||||||
| 327 | - | |||||||||||||||||||||||||||||||
| 328 | static | - | ||||||||||||||||||||||||||||||
| 329 | _Bool | - | ||||||||||||||||||||||||||||||
| 330 | - | |||||||||||||||||||||||||||||||
| 331 | strict_posix2 (void) | - | ||||||||||||||||||||||||||||||
| 332 | { | - | ||||||||||||||||||||||||||||||
| 333 | int posix_ver = posix2_version (); | - | ||||||||||||||||||||||||||||||
| 334 | return executed 12 times by 1 test: 200112 <= posix_ver && posix_ver < 200809;return 200112 <= posix_ver && posix_ver < 200809;Executed by:
executed 12 times by 1 test: return 200112 <= posix_ver && posix_ver < 200809;Executed by:
| 12 | ||||||||||||||||||||||||||||||
| 335 | } | - | ||||||||||||||||||||||||||||||
| 336 | - | |||||||||||||||||||||||||||||||
| 337 | - | |||||||||||||||||||||||||||||||
| 338 | - | |||||||||||||||||||||||||||||||
| 339 | - | |||||||||||||||||||||||||||||||
| 340 | static size_t | - | ||||||||||||||||||||||||||||||
| 341 | size_opt (char const *opt, char const *msgid) | - | ||||||||||||||||||||||||||||||
| 342 | { | - | ||||||||||||||||||||||||||||||
| 343 | unsigned long int size; | - | ||||||||||||||||||||||||||||||
| 344 | _Static_assert ( | - | ||||||||||||||||||||||||||||||
| 345 | (18446744073709551615UL) | - | ||||||||||||||||||||||||||||||
| 346 | <= | - | ||||||||||||||||||||||||||||||
| 347 | (0x7fffffffffffffffL * 2UL + 1UL) | - | ||||||||||||||||||||||||||||||
| 348 | , "verify (" "SIZE_MAX <= ULONG_MAX" ")"); | - | ||||||||||||||||||||||||||||||
| 349 | - | |||||||||||||||||||||||||||||||
| 350 | switch (xstrtoul (opt, | - | ||||||||||||||||||||||||||||||
| 351 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 352 | , 10, &size, "")) | - | ||||||||||||||||||||||||||||||
| 353 | { | - | ||||||||||||||||||||||||||||||
| 354 | case executed 207 times by 1 test: LONGINT_OK:case LONGINT_OK:Executed by:
executed 207 times by 1 test: case LONGINT_OK:Executed by:
| 207 | ||||||||||||||||||||||||||||||
| 355 | case executed 12 times by 1 test: LONGINT_OVERFLOW:case LONGINT_OVERFLOW:Executed by:
executed 12 times by 1 test: case LONGINT_OVERFLOW:Executed by:
| 12 | ||||||||||||||||||||||||||||||
| 356 | break; executed 219 times by 1 test: break;Executed by:
| 219 | ||||||||||||||||||||||||||||||
| 357 | - | |||||||||||||||||||||||||||||||
| 358 | default executed 6 times by 1 test: :default:Executed by:
executed 6 times by 1 test: default:Executed by:
| 6 | ||||||||||||||||||||||||||||||
| 359 | ((!!sizeof (struct { _Static_assert ( | - | ||||||||||||||||||||||||||||||
| 360 | 1 | - | ||||||||||||||||||||||||||||||
| 361 | , "verify_expr (" "1" ", " "(error (1, 0, \"%s: %s\", opt, dcgettext (((void *)0), msgid, 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( | - | ||||||||||||||||||||||||||||||
| 362 | 1 | - | ||||||||||||||||||||||||||||||
| 363 | , 0, "%s: %s", opt, | - | ||||||||||||||||||||||||||||||
| 364 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 365 | msgid | - | ||||||||||||||||||||||||||||||
| 366 | , 5) | - | ||||||||||||||||||||||||||||||
| 367 | ), (( | - | ||||||||||||||||||||||||||||||
| 368 | 0 | - | ||||||||||||||||||||||||||||||
| 369 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( | - | ||||||||||||||||||||||||||||||
| 370 | 1 | - | ||||||||||||||||||||||||||||||
| 371 | , 0, "%s: %s", opt, | - | ||||||||||||||||||||||||||||||
| 372 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 373 | msgid | - | ||||||||||||||||||||||||||||||
| 374 | , 5) | - | ||||||||||||||||||||||||||||||
| 375 | ), (( | - | ||||||||||||||||||||||||||||||
| 376 | 0 | - | ||||||||||||||||||||||||||||||
| 377 | ) ? (void) 0 : __builtin_unreachable ())))); | - | ||||||||||||||||||||||||||||||
| 378 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||
| 379 | - | |||||||||||||||||||||||||||||||
| 380 | return executed 219 times by 1 test: return ((( size )<((18446744073709551615UL)))?( size ):((18446744073709551615UL))) ;Executed by:
executed 219 times by 1 test: return ((( size )<((18446744073709551615UL)))?( size ):((18446744073709551615UL))) ;Executed by:
| 219 | ||||||||||||||||||||||||||||||
| 381 | ((( executed 219 times by 1 test: return ((( size )<((18446744073709551615UL)))?( size ):((18446744073709551615UL))) ;Executed by:
| 219 | ||||||||||||||||||||||||||||||
| 382 | size executed 219 times by 1 test: return ((( size )<((18446744073709551615UL)))?( size ):((18446744073709551615UL))) ;Executed by:
| 219 | ||||||||||||||||||||||||||||||
| 383 | )<((18446744073709551615UL)))?( executed 219 times by 1 test: return ((( size )<((18446744073709551615UL)))?( size ):((18446744073709551615UL))) ;Executed by:
| 219 | ||||||||||||||||||||||||||||||
| 384 | size executed 219 times by 1 test: return ((( size )<((18446744073709551615UL)))?( size ):((18446744073709551615UL))) ;Executed by:
| 219 | ||||||||||||||||||||||||||||||
| 385 | ):((18446744073709551615UL))) executed 219 times by 1 test: return ((( size )<((18446744073709551615UL)))?( size ):((18446744073709551615UL))) ;Executed by:
| 219 | ||||||||||||||||||||||||||||||
| 386 | ; executed 219 times by 1 test: return ((( size )<((18446744073709551615UL)))?( size ):((18446744073709551615UL))) ;Executed by:
| 219 | ||||||||||||||||||||||||||||||
| 387 | } | - | ||||||||||||||||||||||||||||||
| 388 | - | |||||||||||||||||||||||||||||||
| 389 | - | |||||||||||||||||||||||||||||||
| 390 | - | |||||||||||||||||||||||||||||||
| 391 | - | |||||||||||||||||||||||||||||||
| 392 | static char * __attribute__ ((__pure__)) | - | ||||||||||||||||||||||||||||||
| 393 | find_field (struct linebuffer const *line) | - | ||||||||||||||||||||||||||||||
| 394 | { | - | ||||||||||||||||||||||||||||||
| 395 | size_t count; | - | ||||||||||||||||||||||||||||||
| 396 | char const *lp = line->buffer; | - | ||||||||||||||||||||||||||||||
| 397 | size_t size = line->length - 1; | - | ||||||||||||||||||||||||||||||
| 398 | size_t i = 0; | - | ||||||||||||||||||||||||||||||
| 399 | - | |||||||||||||||||||||||||||||||
| 400 | for (count = 0; count < skip_fields
| 100-1807 | ||||||||||||||||||||||||||||||
| 401 | { | - | ||||||||||||||||||||||||||||||
| 402 | while (i < size
| 0-358 | ||||||||||||||||||||||||||||||
| 403 | i++; executed 24 times by 1 test: i++;Executed by:
| 24 | ||||||||||||||||||||||||||||||
| 404 | while (i < size
| 100-660 | ||||||||||||||||||||||||||||||
| 405 | i++; executed 426 times by 1 test: i++;Executed by:
| 426 | ||||||||||||||||||||||||||||||
| 406 | } executed 334 times by 1 test: end of blockExecuted by:
| 334 | ||||||||||||||||||||||||||||||
| 407 | - | |||||||||||||||||||||||||||||||
| 408 | i += | - | ||||||||||||||||||||||||||||||
| 409 | (((
| 112-1795 | ||||||||||||||||||||||||||||||
| 410 | skip_chars
| 112-1795 | ||||||||||||||||||||||||||||||
| 411 | )<(
| 112-1795 | ||||||||||||||||||||||||||||||
| 412 | size - i
| 112-1795 | ||||||||||||||||||||||||||||||
| 413 | ))
| 112-1795 | ||||||||||||||||||||||||||||||
| 414 | skip_chars | - | ||||||||||||||||||||||||||||||
| 415 | ):( | - | ||||||||||||||||||||||||||||||
| 416 | size - i | - | ||||||||||||||||||||||||||||||
| 417 | )) | - | ||||||||||||||||||||||||||||||
| 418 | ; | - | ||||||||||||||||||||||||||||||
| 419 | - | |||||||||||||||||||||||||||||||
| 420 | return executed 1907 times by 1 test: line->buffer + i;return line->buffer + i;Executed by:
executed 1907 times by 1 test: return line->buffer + i;Executed by:
| 1907 | ||||||||||||||||||||||||||||||
| 421 | } | - | ||||||||||||||||||||||||||||||
| 422 | - | |||||||||||||||||||||||||||||||
| 423 | - | |||||||||||||||||||||||||||||||
| 424 | - | |||||||||||||||||||||||||||||||
| 425 | - | |||||||||||||||||||||||||||||||
| 426 | - | |||||||||||||||||||||||||||||||
| 427 | - | |||||||||||||||||||||||||||||||
| 428 | static | - | ||||||||||||||||||||||||||||||
| 429 | _Bool | - | ||||||||||||||||||||||||||||||
| 430 | - | |||||||||||||||||||||||||||||||
| 431 | different (char *old, char *new, size_t oldlen, size_t newlen) | - | ||||||||||||||||||||||||||||||
| 432 | { | - | ||||||||||||||||||||||||||||||
| 433 | if (check_chars < oldlen
| 61-1321 | ||||||||||||||||||||||||||||||
| 434 | oldlen = check_chars; executed 61 times by 1 test: oldlen = check_chars;Executed by:
| 61 | ||||||||||||||||||||||||||||||
| 435 | if (check_chars < newlen
| 61-1321 | ||||||||||||||||||||||||||||||
| 436 | newlen = check_chars; executed 61 times by 1 test: newlen = check_chars;Executed by:
| 61 | ||||||||||||||||||||||||||||||
| 437 | - | |||||||||||||||||||||||||||||||
| 438 | if (ignore_case
| 12-1370 | ||||||||||||||||||||||||||||||
| 439 | { | - | ||||||||||||||||||||||||||||||
| 440 | - | |||||||||||||||||||||||||||||||
| 441 | return executed 12 times by 1 test: oldlen != newlen || memcasecmp (old, new, oldlen);return oldlen != newlen || memcasecmp (old, new, oldlen);Executed by:
executed 12 times by 1 test: return oldlen != newlen || memcasecmp (old, new, oldlen);Executed by:
| 12 | ||||||||||||||||||||||||||||||
| 442 | } | - | ||||||||||||||||||||||||||||||
| 443 | else if (hard_LC_COLLATE
| 0-1370 | ||||||||||||||||||||||||||||||
| 444 | return never executed: xmemcoll (old, oldlen, new, newlen) != 0;return xmemcoll (old, oldlen, new, newlen) != 0;never executed: return xmemcoll (old, oldlen, new, newlen) != 0; | 0 | ||||||||||||||||||||||||||||||
| 445 | else | - | ||||||||||||||||||||||||||||||
| 446 | return executed 1370 times by 1 test: oldlen != newlen || memcmp (old, new, oldlen);return oldlen != newlen || memcmp (old, new, oldlen);Executed by:
executed 1370 times by 1 test: return oldlen != newlen || memcmp (old, new, oldlen);Executed by:
| 1370 | ||||||||||||||||||||||||||||||
| 447 | } | - | ||||||||||||||||||||||||||||||
| 448 | - | |||||||||||||||||||||||||||||||
| 449 | - | |||||||||||||||||||||||||||||||
| 450 | - | |||||||||||||||||||||||||||||||
| 451 | - | |||||||||||||||||||||||||||||||
| 452 | - | |||||||||||||||||||||||||||||||
| 453 | - | |||||||||||||||||||||||||||||||
| 454 | - | |||||||||||||||||||||||||||||||
| 455 | static void | - | ||||||||||||||||||||||||||||||
| 456 | writeline (struct linebuffer const *line, | - | ||||||||||||||||||||||||||||||
| 457 | - | |||||||||||||||||||||||||||||||
| 458 | _Bool | - | ||||||||||||||||||||||||||||||
| 459 | match, uintmax_t linecount) | - | ||||||||||||||||||||||||||||||
| 460 | { | - | ||||||||||||||||||||||||||||||
| 461 | if (! (linecount == 0
| 189-486 | ||||||||||||||||||||||||||||||
| 462 | : !match
| 60-486 | ||||||||||||||||||||||||||||||
| 463 | : output_later_repeated)
| 189-486 | ||||||||||||||||||||||||||||||
| 464 | return; executed 486 times by 1 test: return;Executed by:
| 486 | ||||||||||||||||||||||||||||||
| 465 | - | |||||||||||||||||||||||||||||||
| 466 | if (countmode == count_occurrences
| 22-167 | ||||||||||||||||||||||||||||||
| 467 | printf ("%7" executed 22 times by 1 test: printf ("%7" "l" "u" " ", linecount + 1);Executed by:
| 22 | ||||||||||||||||||||||||||||||
| 468 | "l" "u" executed 22 times by 1 test: printf ("%7" "l" "u" " ", linecount + 1);Executed by:
| 22 | ||||||||||||||||||||||||||||||
| 469 | " ", linecount + 1); executed 22 times by 1 test: printf ("%7" "l" "u" " ", linecount + 1);Executed by:
| 22 | ||||||||||||||||||||||||||||||
| 470 | - | |||||||||||||||||||||||||||||||
| 471 | - | |||||||||||||||||||||||||||||||
| 472 | (__extension__ ((__builtin_constant_p ( | - | ||||||||||||||||||||||||||||||
| 473 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 474 | ) && __builtin_constant_p ( | - | ||||||||||||||||||||||||||||||
| 475 | line->length | - | ||||||||||||||||||||||||||||||
| 476 | ) && (size_t) ( | - | ||||||||||||||||||||||||||||||
| 477 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 478 | ) * (size_t) ( | - | ||||||||||||||||||||||||||||||
| 479 | line->length | - | ||||||||||||||||||||||||||||||
| 480 | ) <= 8 && (size_t) ( | - | ||||||||||||||||||||||||||||||
| 481 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 482 | ) != 0) ? ({ const char *__ptr = (const char *) ( | - | ||||||||||||||||||||||||||||||
| 483 | line->buffer | - | ||||||||||||||||||||||||||||||
| 484 | ); FILE *__stream = (stdout); size_t __cnt; for (__cnt = (size_t) ( | - | ||||||||||||||||||||||||||||||
| 485 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 486 | ) * (size_t) ( | - | ||||||||||||||||||||||||||||||
| 487 | line->length | - | ||||||||||||||||||||||||||||||
| 488 | ); __cnt > 0
never executed: ((size_t) (break; | 0 | ||||||||||||||||||||||||||||||
| 489 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 490 | ) * (size_t) ( | - | ||||||||||||||||||||||||||||||
| 491 | line->length | - | ||||||||||||||||||||||||||||||
| 492 | ) - __cnt) / (size_t) ( | - | ||||||||||||||||||||||||||||||
| 493 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 494 | ); }) : (((__builtin_constant_p ( | - | ||||||||||||||||||||||||||||||
| 495 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 496 | ) && (size_t) ( | - | ||||||||||||||||||||||||||||||
| 497 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 498 | ) == 0) || (__builtin_constant_p ( | - | ||||||||||||||||||||||||||||||
| 499 | line->length | - | ||||||||||||||||||||||||||||||
| 500 | ) && (size_t) ( | - | ||||||||||||||||||||||||||||||
| 501 | line->length | - | ||||||||||||||||||||||||||||||
| 502 | ) == 0)) ? ((void) ( | - | ||||||||||||||||||||||||||||||
| 503 | line->buffer | - | ||||||||||||||||||||||||||||||
| 504 | ), (void) (stdout), (void) ( | - | ||||||||||||||||||||||||||||||
| 505 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 506 | ), (void) ( | - | ||||||||||||||||||||||||||||||
| 507 | line->length | - | ||||||||||||||||||||||||||||||
| 508 | ), (size_t) 0) : fwrite_unlocked ( | - | ||||||||||||||||||||||||||||||
| 509 | line->buffer | - | ||||||||||||||||||||||||||||||
| 510 | , | - | ||||||||||||||||||||||||||||||
| 511 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 512 | , | - | ||||||||||||||||||||||||||||||
| 513 | line->length | - | ||||||||||||||||||||||||||||||
| 514 | , stdout)))) | - | ||||||||||||||||||||||||||||||
| 515 | ; | - | ||||||||||||||||||||||||||||||
| 516 | } executed 189 times by 1 test: end of blockExecuted by:
| 189 | ||||||||||||||||||||||||||||||
| 517 | - | |||||||||||||||||||||||||||||||
| 518 | - | |||||||||||||||||||||||||||||||
| 519 | - | |||||||||||||||||||||||||||||||
| 520 | - | |||||||||||||||||||||||||||||||
| 521 | static void | - | ||||||||||||||||||||||||||||||
| 522 | check_file (const char *infile, const char *outfile, char delimiter) | - | ||||||||||||||||||||||||||||||
| 523 | { | - | ||||||||||||||||||||||||||||||
| 524 | struct linebuffer lb1, lb2; | - | ||||||||||||||||||||||||||||||
| 525 | struct linebuffer *thisline, *prevline; | - | ||||||||||||||||||||||||||||||
| 526 | - | |||||||||||||||||||||||||||||||
| 527 | if (! ((
| 158-397 | ||||||||||||||||||||||||||||||
| 528 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 158-397 | ||||||||||||||||||||||||||||||
| 529 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 530 | ) && __builtin_constant_p (
| 158-397 | ||||||||||||||||||||||||||||||
| 531 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 532 | ) && (__s1_len = __builtin_strlen (
| 158-397 | ||||||||||||||||||||||||||||||
| 533 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 534 | ), __s2_len = __builtin_strlen (
| 158-397 | ||||||||||||||||||||||||||||||
| 535 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 536 | ), (!((size_t)(const void *)((
| 158-397 | ||||||||||||||||||||||||||||||
| 537 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 538 | ) + 1) - (size_t)(const void *)(
| 158-397 | ||||||||||||||||||||||||||||||
| 539 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 540 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 158-397 | ||||||||||||||||||||||||||||||
| 541 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 542 | ) + 1) - (size_t)(const void *)(
| 158-397 | ||||||||||||||||||||||||||||||
| 543 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 544 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 158-397 | ||||||||||||||||||||||||||||||
| 545 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 546 | ,
| 158-397 | ||||||||||||||||||||||||||||||
| 547 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 548 | ) : (__builtin_constant_p (
| 158-397 | ||||||||||||||||||||||||||||||
| 549 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 550 | ) && ((size_t)(const void *)((
| 158-397 | ||||||||||||||||||||||||||||||
| 551 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 552 | ) + 1) - (size_t)(const void *)(
| 158-397 | ||||||||||||||||||||||||||||||
| 553 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 554 | ) == 1) && (__s1_len = __builtin_strlen (
| 158-397 | ||||||||||||||||||||||||||||||
| 555 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 556 | ), __s1_len < 4) ? (__builtin_constant_p (
| 158-397 | ||||||||||||||||||||||||||||||
| 557 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 558 | ) && ((size_t)(const void *)((
| 158-397 | ||||||||||||||||||||||||||||||
| 559 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 560 | ) + 1) - (size_t)(const void *)(
| 158-397 | ||||||||||||||||||||||||||||||
| 561 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 562 | ) == 1) ? __builtin_strcmp (
| 158-397 | ||||||||||||||||||||||||||||||
| 563 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 564 | ,
| 158-397 | ||||||||||||||||||||||||||||||
| 565 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 566 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 158-397 | ||||||||||||||||||||||||||||||
| 567 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 568 | ); int __result = (((const unsigned char *) (const char *) (
| 158-397 | ||||||||||||||||||||||||||||||
| 569 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 570 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-397 | ||||||||||||||||||||||||||||||
| 571 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 572 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-397 | ||||||||||||||||||||||||||||||
| 573 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 574 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( infile ))[3] - __s2[3]);
| 0-397 | ||||||||||||||||||||||||||||||
| 575 | infile
never executed: __result = (((const unsigned char *) (const char *) ( infile ))[3] - __s2[3]); | 0-397 | ||||||||||||||||||||||||||||||
| 576 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( infile ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : (__builtin_constant_p (end of block
| 0-397 | ||||||||||||||||||||||||||||||
| 577 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 578 | ) && ((size_t)(const void *)((
| 158-397 | ||||||||||||||||||||||||||||||
| 579 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 580 | ) + 1) - (size_t)(const void *)(
| 158-397 | ||||||||||||||||||||||||||||||
| 581 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 582 | ) == 1) && (__s2_len = __builtin_strlen (
| 158-397 | ||||||||||||||||||||||||||||||
| 583 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 584 | ), __s2_len < 4) ? (__builtin_constant_p (
| 158-397 | ||||||||||||||||||||||||||||||
| 585 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 586 | ) && ((size_t)(const void *)((
| 158-397 | ||||||||||||||||||||||||||||||
| 587 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 588 | ) + 1) - (size_t)(const void *)(
| 158-397 | ||||||||||||||||||||||||||||||
| 589 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 590 | ) == 1) ? __builtin_strcmp (
| 158-397 | ||||||||||||||||||||||||||||||
| 591 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 592 | ,
| 158-397 | ||||||||||||||||||||||||||||||
| 593 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 594 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 158-397 | ||||||||||||||||||||||||||||||
| 595 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 596 | ); int __result = (((const unsigned char *) (const char *) (
| 158-397 | ||||||||||||||||||||||||||||||
| 597 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 598 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-555 | ||||||||||||||||||||||||||||||
| 599 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 600 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-397 | ||||||||||||||||||||||||||||||
| 601 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 602 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-397 | ||||||||||||||||||||||||||||||
| 603 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-397 | ||||||||||||||||||||||||||||||
| 604 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);never executed: } __result; }))) : __builtin_strcmp (end of block
| 0-397 | ||||||||||||||||||||||||||||||
| 605 | infile
| 158-397 | ||||||||||||||||||||||||||||||
| 606 | ,
| 158-397 | ||||||||||||||||||||||||||||||
| 607 | "-"
| 158-397 | ||||||||||||||||||||||||||||||
| 608 | )))); })
| 158-397 | ||||||||||||||||||||||||||||||
| 609 | == 0)
| 0-397 | ||||||||||||||||||||||||||||||
| 610 | stdin
| 0-158 | ||||||||||||||||||||||||||||||
| 611 | )
| 0-158 | ||||||||||||||||||||||||||||||
| 612 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 613 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 614 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 615 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 616 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 617 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 618 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 619 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 620 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 621 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 622 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 623 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 624 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 625 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 626 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()...lon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 627 | if (! ((
| 0-555 | ||||||||||||||||||||||||||||||
| 628 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 0-555 | ||||||||||||||||||||||||||||||
| 629 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 630 | ) && __builtin_constant_p (
| 0-555 | ||||||||||||||||||||||||||||||
| 631 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 632 | ) && (__s1_len = __builtin_strlen (
| 0-555 | ||||||||||||||||||||||||||||||
| 633 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 634 | ), __s2_len = __builtin_strlen (
| 0-555 | ||||||||||||||||||||||||||||||
| 635 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 636 | ), (!((size_t)(const void *)((
| 0-555 | ||||||||||||||||||||||||||||||
| 637 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 638 | ) + 1) - (size_t)(const void *)(
| 0-555 | ||||||||||||||||||||||||||||||
| 639 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 640 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 0-555 | ||||||||||||||||||||||||||||||
| 641 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 642 | ) + 1) - (size_t)(const void *)(
| 0-555 | ||||||||||||||||||||||||||||||
| 643 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 644 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 0-555 | ||||||||||||||||||||||||||||||
| 645 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 646 | ,
| 0-555 | ||||||||||||||||||||||||||||||
| 647 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 648 | ) : (__builtin_constant_p (
| 0-555 | ||||||||||||||||||||||||||||||
| 649 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 650 | ) && ((size_t)(const void *)((
| 0-555 | ||||||||||||||||||||||||||||||
| 651 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 652 | ) + 1) - (size_t)(const void *)(
| 0-555 | ||||||||||||||||||||||||||||||
| 653 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 654 | ) == 1) && (__s1_len = __builtin_strlen (
| 0-555 | ||||||||||||||||||||||||||||||
| 655 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 656 | ), __s1_len < 4) ? (__builtin_constant_p (
| 0-555 | ||||||||||||||||||||||||||||||
| 657 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 658 | ) && ((size_t)(const void *)((
| 0-555 | ||||||||||||||||||||||||||||||
| 659 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 660 | ) + 1) - (size_t)(const void *)(
| 0-555 | ||||||||||||||||||||||||||||||
| 661 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 662 | ) == 1) ? __builtin_strcmp (
| 0-555 | ||||||||||||||||||||||||||||||
| 663 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 664 | ,
| 0-555 | ||||||||||||||||||||||||||||||
| 665 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 666 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-555 | ||||||||||||||||||||||||||||||
| 667 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 668 | ); int __result = (((const unsigned char *) (const char *) (
| 0-555 | ||||||||||||||||||||||||||||||
| 669 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 670 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-555 | ||||||||||||||||||||||||||||||
| 671 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 672 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-555 | ||||||||||||||||||||||||||||||
| 673 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 674 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( outfile ))[3] - __s2[3]);
| 0-555 | ||||||||||||||||||||||||||||||
| 675 | outfile
never executed: __result = (((const unsigned char *) (const char *) ( outfile ))[3] - __s2[3]); | 0-555 | ||||||||||||||||||||||||||||||
| 676 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( outfile ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : (__builtin_constant_p (end of block
| 0-555 | ||||||||||||||||||||||||||||||
| 677 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 678 | ) && ((size_t)(const void *)((
| 0-555 | ||||||||||||||||||||||||||||||
| 679 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 680 | ) + 1) - (size_t)(const void *)(
| 0-555 | ||||||||||||||||||||||||||||||
| 681 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 682 | ) == 1) && (__s2_len = __builtin_strlen (
| 0-555 | ||||||||||||||||||||||||||||||
| 683 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 684 | ), __s2_len < 4) ? (__builtin_constant_p (
| 0-555 | ||||||||||||||||||||||||||||||
| 685 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 686 | ) && ((size_t)(const void *)((
| 0-555 | ||||||||||||||||||||||||||||||
| 687 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 688 | ) + 1) - (size_t)(const void *)(
| 0-555 | ||||||||||||||||||||||||||||||
| 689 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 690 | ) == 1) ? __builtin_strcmp (
| 0-555 | ||||||||||||||||||||||||||||||
| 691 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 692 | ,
| 0-555 | ||||||||||||||||||||||||||||||
| 693 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 694 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-555 | ||||||||||||||||||||||||||||||
| 695 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 696 | ); int __result = (((const unsigned char *) (const char *) (
| 0-555 | ||||||||||||||||||||||||||||||
| 697 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 698 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-555 | ||||||||||||||||||||||||||||||
| 699 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 700 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-555 | ||||||||||||||||||||||||||||||
| 701 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 702 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-555 | ||||||||||||||||||||||||||||||
| 703 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-555 | ||||||||||||||||||||||||||||||
| 704 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);never executed: }end of blockexecuted 555 times by 1 test: __result; }))) : __builtin_strcmp (end of blockExecuted by:
| 0-555 | ||||||||||||||||||||||||||||||
| 705 | outfile
| 0-555 | ||||||||||||||||||||||||||||||
| 706 | ,
| 0-555 | ||||||||||||||||||||||||||||||
| 707 | "-"
| 0-555 | ||||||||||||||||||||||||||||||
| 708 | )))); })
| 0-555 | ||||||||||||||||||||||||||||||
| 709 | == 0)
| 0-555 | ||||||||||||||||||||||||||||||
| 710 | stdout
| 0 | ||||||||||||||||||||||||||||||
| 711 | )
| 0 | ||||||||||||||||||||||||||||||
| 712 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 713 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 714 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 715 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 716 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 717 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 718 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 719 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 720 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 721 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 722 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 723 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 724 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 725 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 726 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), \"%s\", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location (...n (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, outfile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 727 | - | |||||||||||||||||||||||||||||||
| 728 | fadvise ( | - | ||||||||||||||||||||||||||||||
| 729 | stdin | - | ||||||||||||||||||||||||||||||
| 730 | , FADVISE_SEQUENTIAL); | - | ||||||||||||||||||||||||||||||
| 731 | - | |||||||||||||||||||||||||||||||
| 732 | thisline = &lb1; | - | ||||||||||||||||||||||||||||||
| 733 | prevline = &lb2; | - | ||||||||||||||||||||||||||||||
| 734 | - | |||||||||||||||||||||||||||||||
| 735 | initbuffer (thisline); | - | ||||||||||||||||||||||||||||||
| 736 | initbuffer (prevline); | - | ||||||||||||||||||||||||||||||
| 737 | if (output_unique
| 16-429 | ||||||||||||||||||||||||||||||
| 738 | { | - | ||||||||||||||||||||||||||||||
| 739 | char *prevfield ; | - | ||||||||||||||||||||||||||||||
| 740 | size_t prevlen ; | - | ||||||||||||||||||||||||||||||
| 741 | - | |||||||||||||||||||||||||||||||
| 742 | _Bool | - | ||||||||||||||||||||||||||||||
| 743 | first_group_printed = | - | ||||||||||||||||||||||||||||||
| 744 | 0 | - | ||||||||||||||||||||||||||||||
| 745 | ; | - | ||||||||||||||||||||||||||||||
| 746 | - | |||||||||||||||||||||||||||||||
| 747 | while (!feof_unlocked (
| 36-1456 | ||||||||||||||||||||||||||||||
| 748 | stdin
| 36-1456 | ||||||||||||||||||||||||||||||
| 749 | )
| 36-1456 | ||||||||||||||||||||||||||||||
| 750 | { | - | ||||||||||||||||||||||||||||||
| 751 | char *thisfield; | - | ||||||||||||||||||||||||||||||
| 752 | size_t thislen; | - | ||||||||||||||||||||||||||||||
| 753 | - | |||||||||||||||||||||||||||||||
| 754 | _Bool | - | ||||||||||||||||||||||||||||||
| 755 | new_group; | - | ||||||||||||||||||||||||||||||
| 756 | - | |||||||||||||||||||||||||||||||
| 757 | if (readlinebuffer_delim (thisline,
| 346-1110 | ||||||||||||||||||||||||||||||
| 758 | stdin
| 346-1110 | ||||||||||||||||||||||||||||||
| 759 | , delimiter) == 0
| 346-1110 | ||||||||||||||||||||||||||||||
| 760 | break; executed 346 times by 1 test: break;Executed by:
| 346 | ||||||||||||||||||||||||||||||
| 761 | - | |||||||||||||||||||||||||||||||
| 762 | thisfield = find_field (thisline); | - | ||||||||||||||||||||||||||||||
| 763 | thislen = thisline->length - 1 - (thisfield - thisline->buffer); | - | ||||||||||||||||||||||||||||||
| 764 | - | |||||||||||||||||||||||||||||||
| 765 | new_group = (prevline->length == 0
| 352-758 | ||||||||||||||||||||||||||||||
| 766 | || different (thisfield, prevfield, thislen, prevlen)
| 138-620 | ||||||||||||||||||||||||||||||
| 767 | - | |||||||||||||||||||||||||||||||
| 768 | if (new_group
| 84-620 | ||||||||||||||||||||||||||||||
| 769 | && (grouping == GM_PREPEND
| 12-66 | ||||||||||||||||||||||||||||||
| 770 | || (first_group_printed
| 6-36 | ||||||||||||||||||||||||||||||
| 771 | || grouping == GM_SEPARATE
| 0-12 | ||||||||||||||||||||||||||||||
| 772 | putchar_unlocked (delimiter); executed 48 times by 1 test: putchar_unlocked (delimiter);Executed by:
| 48 | ||||||||||||||||||||||||||||||
| 773 | - | |||||||||||||||||||||||||||||||
| 774 | if (new_group
| 54-620 | ||||||||||||||||||||||||||||||
| 775 | { | - | ||||||||||||||||||||||||||||||
| 776 | - | |||||||||||||||||||||||||||||||
| 777 | (__extension__ ((__builtin_constant_p ( | - | ||||||||||||||||||||||||||||||
| 778 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 779 | ) && __builtin_constant_p ( | - | ||||||||||||||||||||||||||||||
| 780 | thisline->length | - | ||||||||||||||||||||||||||||||
| 781 | ) && (size_t) ( | - | ||||||||||||||||||||||||||||||
| 782 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 783 | ) * (size_t) ( | - | ||||||||||||||||||||||||||||||
| 784 | thisline->length | - | ||||||||||||||||||||||||||||||
| 785 | ) <= 8 && (size_t) ( | - | ||||||||||||||||||||||||||||||
| 786 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 787 | ) != 0) ? ({ const char *__ptr = (const char *) ( | - | ||||||||||||||||||||||||||||||
| 788 | thisline->buffer | - | ||||||||||||||||||||||||||||||
| 789 | ); FILE *__stream = (stdout); size_t __cnt; for (__cnt = (size_t) ( | - | ||||||||||||||||||||||||||||||
| 790 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 791 | ) * (size_t) ( | - | ||||||||||||||||||||||||||||||
| 792 | thisline->length | - | ||||||||||||||||||||||||||||||
| 793 | ); __cnt > 0
never executed: ((size_t) (break; | 0 | ||||||||||||||||||||||||||||||
| 794 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 795 | ) * (size_t) ( | - | ||||||||||||||||||||||||||||||
| 796 | thisline->length | - | ||||||||||||||||||||||||||||||
| 797 | ) - __cnt) / (size_t) ( | - | ||||||||||||||||||||||||||||||
| 798 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 799 | ); }) : (((__builtin_constant_p ( | - | ||||||||||||||||||||||||||||||
| 800 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 801 | ) && (size_t) ( | - | ||||||||||||||||||||||||||||||
| 802 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 803 | ) == 0) || (__builtin_constant_p ( | - | ||||||||||||||||||||||||||||||
| 804 | thisline->length | - | ||||||||||||||||||||||||||||||
| 805 | ) && (size_t) ( | - | ||||||||||||||||||||||||||||||
| 806 | thisline->length | - | ||||||||||||||||||||||||||||||
| 807 | ) == 0)) ? ((void) ( | - | ||||||||||||||||||||||||||||||
| 808 | thisline->buffer | - | ||||||||||||||||||||||||||||||
| 809 | ), (void) (stdout), (void) ( | - | ||||||||||||||||||||||||||||||
| 810 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 811 | ), (void) ( | - | ||||||||||||||||||||||||||||||
| 812 | thisline->length | - | ||||||||||||||||||||||||||||||
| 813 | ), (size_t) 0) : fwrite_unlocked ( | - | ||||||||||||||||||||||||||||||
| 814 | thisline->buffer | - | ||||||||||||||||||||||||||||||
| 815 | , | - | ||||||||||||||||||||||||||||||
| 816 | sizeof (char) | - | ||||||||||||||||||||||||||||||
| 817 | , | - | ||||||||||||||||||||||||||||||
| 818 | thisline->length | - | ||||||||||||||||||||||||||||||
| 819 | , stdout)))) | - | ||||||||||||||||||||||||||||||
| 820 | - | |||||||||||||||||||||||||||||||
| 821 | ; | - | ||||||||||||||||||||||||||||||
| 822 | - | |||||||||||||||||||||||||||||||
| 823 | do { struct linebuffer *_tmp; _tmp = (prevline); (prevline) = (thisline); (thisline) = _tmp; } while (0); | - | ||||||||||||||||||||||||||||||
| 824 | prevfield = thisfield; | - | ||||||||||||||||||||||||||||||
| 825 | prevlen = thislen; | - | ||||||||||||||||||||||||||||||
| 826 | first_group_printed = | - | ||||||||||||||||||||||||||||||
| 827 | 1 | - | ||||||||||||||||||||||||||||||
| 828 | ; | - | ||||||||||||||||||||||||||||||
| 829 | } executed 544 times by 1 test: end of blockExecuted by:
| 544 | ||||||||||||||||||||||||||||||
| 830 | } executed 1110 times by 1 test: end of blockExecuted by:
| 1110 | ||||||||||||||||||||||||||||||
| 831 | if ((grouping == GM_BOTH
| 12-370 | ||||||||||||||||||||||||||||||
| 832 | putchar_unlocked (delimiter); executed 18 times by 1 test: putchar_unlocked (delimiter);Executed by:
| 18 | ||||||||||||||||||||||||||||||
| 833 | } executed 382 times by 1 test: end of blockExecuted by:
| 382 | ||||||||||||||||||||||||||||||
| 834 | else | - | ||||||||||||||||||||||||||||||
| 835 | { | - | ||||||||||||||||||||||||||||||
| 836 | char *prevfield; | - | ||||||||||||||||||||||||||||||
| 837 | size_t prevlen; | - | ||||||||||||||||||||||||||||||
| 838 | uintmax_t match_count = 0; | - | ||||||||||||||||||||||||||||||
| 839 | - | |||||||||||||||||||||||||||||||
| 840 | _Bool | - | ||||||||||||||||||||||||||||||
| 841 | first_delimiter = | - | ||||||||||||||||||||||||||||||
| 842 | 1 | - | ||||||||||||||||||||||||||||||
| 843 | ; | - | ||||||||||||||||||||||||||||||
| 844 | - | |||||||||||||||||||||||||||||||
| 845 | if (readlinebuffer_delim (prevline,
| 0-173 | ||||||||||||||||||||||||||||||
| 846 | stdin
| 0-173 | ||||||||||||||||||||||||||||||
| 847 | , delimiter) == 0
| 0-173 | ||||||||||||||||||||||||||||||
| 848 | goto never executed: closefiles;goto closefiles;never executed: goto closefiles; | 0 | ||||||||||||||||||||||||||||||
| 849 | prevfield = find_field (prevline); | - | ||||||||||||||||||||||||||||||
| 850 | prevlen = prevline->length - 1 - (prevfield - prevline->buffer); | - | ||||||||||||||||||||||||||||||
| 851 | - | |||||||||||||||||||||||||||||||
| 852 | while (!feof_unlocked (
| 21-776 | ||||||||||||||||||||||||||||||
| 853 | stdin
| 21-776 | ||||||||||||||||||||||||||||||
| 854 | )
| 21-776 | ||||||||||||||||||||||||||||||
| 855 | { | - | ||||||||||||||||||||||||||||||
| 856 | - | |||||||||||||||||||||||||||||||
| 857 | _Bool | - | ||||||||||||||||||||||||||||||
| 858 | match; | - | ||||||||||||||||||||||||||||||
| 859 | char *thisfield; | - | ||||||||||||||||||||||||||||||
| 860 | size_t thislen; | - | ||||||||||||||||||||||||||||||
| 861 | if (readlinebuffer_delim (thisline,
| 152-624 | ||||||||||||||||||||||||||||||
| 862 | stdin
| 152-624 | ||||||||||||||||||||||||||||||
| 863 | , delimiter) == 0
| 152-624 | ||||||||||||||||||||||||||||||
| 864 | { | - | ||||||||||||||||||||||||||||||
| 865 | if (ferror_unlocked (
| 0-152 | ||||||||||||||||||||||||||||||
| 866 | stdin
| 0-152 | ||||||||||||||||||||||||||||||
| 867 | )
| 0-152 | ||||||||||||||||||||||||||||||
| 868 | goto never executed: closefiles;goto closefiles;never executed: goto closefiles; | 0 | ||||||||||||||||||||||||||||||
| 869 | break; executed 152 times by 1 test: break;Executed by:
| 152 | ||||||||||||||||||||||||||||||
| 870 | } | - | ||||||||||||||||||||||||||||||
| 871 | thisfield = find_field (thisline); | - | ||||||||||||||||||||||||||||||
| 872 | thislen = thisline->length - 1 - (thisfield - thisline->buffer); | - | ||||||||||||||||||||||||||||||
| 873 | match = !different (thisfield, prevfield, thislen, prevlen); | - | ||||||||||||||||||||||||||||||
| 874 | match_count += match; | - | ||||||||||||||||||||||||||||||
| 875 | - | |||||||||||||||||||||||||||||||
| 876 | if (match_count ==
| 0-624 | ||||||||||||||||||||||||||||||
| 877 | (18446744073709551615UL)
| 0-624 | ||||||||||||||||||||||||||||||
| 878 | ) | - | ||||||||||||||||||||||||||||||
| 879 | { | - | ||||||||||||||||||||||||||||||
| 880 | if (count_occurrences
| 0 | ||||||||||||||||||||||||||||||
| 881 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 882 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 883 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 884 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 885 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 886 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 887 | "too many repeated lines" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 888 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 889 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 890 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 891 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 892 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 893 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 894 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 895 | "too many repeated lines" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 896 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 897 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 898 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 899 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"too many repeated lines\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "too many repeated lines" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 900 | match_count--; | - | ||||||||||||||||||||||||||||||
| 901 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||
| 902 | - | |||||||||||||||||||||||||||||||
| 903 | if (delimit_groups != DM_NONE
| 90-534 | ||||||||||||||||||||||||||||||
| 904 | { | - | ||||||||||||||||||||||||||||||
| 905 | if (!match
| 42-48 | ||||||||||||||||||||||||||||||
| 906 | { | - | ||||||||||||||||||||||||||||||
| 907 | if (match_count
| 18-24 | ||||||||||||||||||||||||||||||
| 908 | first_delimiter = executed 24 times by 1 test: first_delimiter = 0 ;Executed by:
| 24 | ||||||||||||||||||||||||||||||
| 909 | 0 executed 24 times by 1 test: first_delimiter = 0 ;Executed by:
| 24 | ||||||||||||||||||||||||||||||
| 910 | ; executed 24 times by 1 test: first_delimiter = 0 ;Executed by:
| 24 | ||||||||||||||||||||||||||||||
| 911 | } executed 42 times by 1 test: end of blockExecuted by:
| 42 | ||||||||||||||||||||||||||||||
| 912 | else if (match_count == 1
| 0-48 | ||||||||||||||||||||||||||||||
| 913 | { | - | ||||||||||||||||||||||||||||||
| 914 | if ((
| 18-30 | ||||||||||||||||||||||||||||||
| 915 | || (delimit_groups == DM_SEPARATE
| 0-30 | ||||||||||||||||||||||||||||||
| 916 | && !first_delimiter
| 12-18 | ||||||||||||||||||||||||||||||
| 917 | putchar_unlocked (delimiter); executed 30 times by 1 test: putchar_unlocked (delimiter);Executed by:
| 30 | ||||||||||||||||||||||||||||||
| 918 | } executed 48 times by 1 test: end of blockExecuted by:
| 48 | ||||||||||||||||||||||||||||||
| 919 | } executed 90 times by 1 test: end of blockExecuted by:
| 90 | ||||||||||||||||||||||||||||||
| 920 | - | |||||||||||||||||||||||||||||||
| 921 | if (!match
| 60-442 | ||||||||||||||||||||||||||||||
| 922 | { | - | ||||||||||||||||||||||||||||||
| 923 | writeline (prevline, match, match_count); | - | ||||||||||||||||||||||||||||||
| 924 | do { struct linebuffer *_tmp; _tmp = (prevline); (prevline) = (thisline); (thisline) = _tmp; } while (0); | - | ||||||||||||||||||||||||||||||
| 925 | prevfield = thisfield; | - | ||||||||||||||||||||||||||||||
| 926 | prevlen = thislen; | - | ||||||||||||||||||||||||||||||
| 927 | if (!match
| 60-442 | ||||||||||||||||||||||||||||||
| 928 | match_count = 0; executed 442 times by 1 test: match_count = 0;Executed by:
| 442 | ||||||||||||||||||||||||||||||
| 929 | } executed 502 times by 1 test: end of blockExecuted by:
| 502 | ||||||||||||||||||||||||||||||
| 930 | } executed 624 times by 1 test: end of blockExecuted by:
| 624 | ||||||||||||||||||||||||||||||
| 931 | - | |||||||||||||||||||||||||||||||
| 932 | writeline (prevline, | - | ||||||||||||||||||||||||||||||
| 933 | 0 | - | ||||||||||||||||||||||||||||||
| 934 | , match_count); | - | ||||||||||||||||||||||||||||||
| 935 | } executed 173 times by 1 test: end of blockExecuted by:
| 173 | ||||||||||||||||||||||||||||||
| 936 | - | |||||||||||||||||||||||||||||||
| 937 | closefiles: code before this statement executed 555 times by 1 test: closefiles:Executed by:
| 555 | ||||||||||||||||||||||||||||||
| 938 | if (ferror_unlocked (
| 0-555 | ||||||||||||||||||||||||||||||
| 939 | stdin
| 0-555 | ||||||||||||||||||||||||||||||
| 940 | )
| 0-555 | ||||||||||||||||||||||||||||||
| 941 | rpl_fclose
| 0-555 | ||||||||||||||||||||||||||||||
| 942 | (
| 0-555 | ||||||||||||||||||||||||||||||
| 943 | stdin
| 0-555 | ||||||||||||||||||||||||||||||
| 944 | ) != 0
| 0-555 | ||||||||||||||||||||||||||||||
| 945 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 946 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 947 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 948 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 949 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 950 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 951 | "error reading %s" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 952 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 953 | , quotearg_style (shell_escape_always_quoting_style, infile)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 954 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 955 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 956 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 957 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 958 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 959 | "error reading %s" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 960 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 961 | , quotearg_style (shell_escape_always_quoting_style, infile)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 962 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 963 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"error reading %s\", 5), quotearg_style (shell_escape_always_quoting_style, infile)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, d...ys_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "error reading %s" , 5) , quotearg_style (shell_escape_always_quoting_style, infile)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||
| 964 | - | |||||||||||||||||||||||||||||||
| 965 | - | |||||||||||||||||||||||||||||||
| 966 | - | |||||||||||||||||||||||||||||||
| 967 | free (lb1.buffer); | - | ||||||||||||||||||||||||||||||
| 968 | free (lb2.buffer); | - | ||||||||||||||||||||||||||||||
| 969 | } executed 555 times by 1 test: end of blockExecuted by:
| 555 | ||||||||||||||||||||||||||||||
| 970 | - | |||||||||||||||||||||||||||||||
| 971 | enum Skip_field_option_type | - | ||||||||||||||||||||||||||||||
| 972 | { | - | ||||||||||||||||||||||||||||||
| 973 | SFO_NONE, | - | ||||||||||||||||||||||||||||||
| 974 | SFO_OBSOLETE, | - | ||||||||||||||||||||||||||||||
| 975 | SFO_NEW | - | ||||||||||||||||||||||||||||||
| 976 | }; | - | ||||||||||||||||||||||||||||||
| 977 | - | |||||||||||||||||||||||||||||||
| 978 | int | - | ||||||||||||||||||||||||||||||
| 979 | main (int argc, char **argv) | - | ||||||||||||||||||||||||||||||
| 980 | { | - | ||||||||||||||||||||||||||||||
| 981 | int optc = 0; | - | ||||||||||||||||||||||||||||||
| 982 | - | |||||||||||||||||||||||||||||||
| 983 | _Bool | - | ||||||||||||||||||||||||||||||
| 984 | posixly_correct = (getenv ("POSIXLY_CORRECT") != | - | ||||||||||||||||||||||||||||||
| 985 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 986 | ); | - | ||||||||||||||||||||||||||||||
| 987 | enum Skip_field_option_type skip_field_option_type = SFO_NONE; | - | ||||||||||||||||||||||||||||||
| 988 | unsigned int nfiles = 0; | - | ||||||||||||||||||||||||||||||
| 989 | char const *file[2]; | - | ||||||||||||||||||||||||||||||
| 990 | char delimiter = '\n'; | - | ||||||||||||||||||||||||||||||
| 991 | - | |||||||||||||||||||||||||||||||
| 992 | _Bool | - | ||||||||||||||||||||||||||||||
| 993 | output_option_used = | - | ||||||||||||||||||||||||||||||
| 994 | 0 | - | ||||||||||||||||||||||||||||||
| 995 | ; | - | ||||||||||||||||||||||||||||||
| 996 | - | |||||||||||||||||||||||||||||||
| 997 | file[0] = file[1] = "-"; | - | ||||||||||||||||||||||||||||||
| 998 | ; | - | ||||||||||||||||||||||||||||||
| 999 | set_program_name (argv[0]); | - | ||||||||||||||||||||||||||||||
| 1000 | setlocale ( | - | ||||||||||||||||||||||||||||||
| 1001 | 6 | - | ||||||||||||||||||||||||||||||
| 1002 | , ""); | - | ||||||||||||||||||||||||||||||
| 1003 | bindtextdomain ("coreutils", "/usr/local/share/locale"); | - | ||||||||||||||||||||||||||||||
| 1004 | textdomain ("coreutils"); | - | ||||||||||||||||||||||||||||||
| 1005 | hard_LC_COLLATE = hard_locale ( | - | ||||||||||||||||||||||||||||||
| 1006 | 3 | - | ||||||||||||||||||||||||||||||
| 1007 | ); | - | ||||||||||||||||||||||||||||||
| 1008 | - | |||||||||||||||||||||||||||||||
| 1009 | atexit (close_stdout); | - | ||||||||||||||||||||||||||||||
| 1010 | - | |||||||||||||||||||||||||||||||
| 1011 | skip_chars = 0; | - | ||||||||||||||||||||||||||||||
| 1012 | skip_fields = 0; | - | ||||||||||||||||||||||||||||||
| 1013 | check_chars = | - | ||||||||||||||||||||||||||||||
| 1014 | (18446744073709551615UL) | - | ||||||||||||||||||||||||||||||
| 1015 | ; | - | ||||||||||||||||||||||||||||||
| 1016 | output_unique = output_first_repeated = | - | ||||||||||||||||||||||||||||||
| 1017 | 1 | - | ||||||||||||||||||||||||||||||
| 1018 | ; | - | ||||||||||||||||||||||||||||||
| 1019 | output_later_repeated = | - | ||||||||||||||||||||||||||||||
| 1020 | 0 | - | ||||||||||||||||||||||||||||||
| 1021 | ; | - | ||||||||||||||||||||||||||||||
| 1022 | countmode = count_none; | - | ||||||||||||||||||||||||||||||
| 1023 | delimit_groups = DM_NONE; | - | ||||||||||||||||||||||||||||||
| 1024 | - | |||||||||||||||||||||||||||||||
| 1025 | while ( | - | ||||||||||||||||||||||||||||||
| 1026 | 1 | - | ||||||||||||||||||||||||||||||
| 1027 | ) | - | ||||||||||||||||||||||||||||||
| 1028 | { | - | ||||||||||||||||||||||||||||||
| 1029 | - | |||||||||||||||||||||||||||||||
| 1030 | - | |||||||||||||||||||||||||||||||
| 1031 | - | |||||||||||||||||||||||||||||||
| 1032 | - | |||||||||||||||||||||||||||||||
| 1033 | if (optc == -1
| 2-1645 | ||||||||||||||||||||||||||||||
| 1034 | || (posixly_correct
| 0-1645 | ||||||||||||||||||||||||||||||
| 1035 | || ((
| 585-1060 | ||||||||||||||||||||||||||||||
| 1036 | "-0123456789Dcdf:is:uw:z", longopts,
| 585-1060 | ||||||||||||||||||||||||||||||
| 1037 | ((void *)0)
| 585-1060 | ||||||||||||||||||||||||||||||
| 1038 | ))
| 585-1060 | ||||||||||||||||||||||||||||||
| 1039 | == -1)
| 585-1060 | ||||||||||||||||||||||||||||||
| 1040 | { | - | ||||||||||||||||||||||||||||||
| 1041 | if (argc <= optind
| 2-585 | ||||||||||||||||||||||||||||||
| 1042 | break; executed 585 times by 1 test: break;Executed by:
| 585 | ||||||||||||||||||||||||||||||
| 1043 | if (nfiles == 2
| 0-2 | ||||||||||||||||||||||||||||||
| 1044 | { | - | ||||||||||||||||||||||||||||||
| 1045 | error (0, 0, | - | ||||||||||||||||||||||||||||||
| 1046 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 1047 | "extra operand %s" | - | ||||||||||||||||||||||||||||||
| 1048 | , 5) | - | ||||||||||||||||||||||||||||||
| 1049 | , quote (argv[optind])); | - | ||||||||||||||||||||||||||||||
| 1050 | usage ( | - | ||||||||||||||||||||||||||||||
| 1051 | 1 | - | ||||||||||||||||||||||||||||||
| 1052 | ); | - | ||||||||||||||||||||||||||||||
| 1053 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||
| 1054 | file[nfiles++] = argv[optind++]; | - | ||||||||||||||||||||||||||||||
| 1055 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||
| 1056 | else switch (optc) | - | ||||||||||||||||||||||||||||||
| 1057 | { | - | ||||||||||||||||||||||||||||||
| 1058 | case executed 178 times by 1 test: 1:case 1:Executed by:
executed 178 times by 1 test: case 1:Executed by:
| 178 | ||||||||||||||||||||||||||||||
| 1059 | { | - | ||||||||||||||||||||||||||||||
| 1060 | unsigned long int size; | - | ||||||||||||||||||||||||||||||
| 1061 | if (optarg[0] == '+'
| 12-166 | ||||||||||||||||||||||||||||||
| 1062 | && ! strict_posix2 ()
| 0-12 | ||||||||||||||||||||||||||||||
| 1063 | && xstrtoul (optarg,
| 0-12 | ||||||||||||||||||||||||||||||
| 1064 | ((void *)0)
| 0-12 | ||||||||||||||||||||||||||||||
| 1065 | , 10, &size, "") == LONGINT_OK
| 0-12 | ||||||||||||||||||||||||||||||
| 1066 | && size <=
| 0-12 | ||||||||||||||||||||||||||||||
| 1067 | (18446744073709551615UL)
| 0-12 | ||||||||||||||||||||||||||||||
| 1068 | ) | - | ||||||||||||||||||||||||||||||
| 1069 | skip_chars = size; executed 12 times by 1 test: skip_chars = size;Executed by:
| 12 | ||||||||||||||||||||||||||||||
| 1070 | else if (nfiles == 2
| 0-166 | ||||||||||||||||||||||||||||||
| 1071 | { | - | ||||||||||||||||||||||||||||||
| 1072 | error (0, 0, | - | ||||||||||||||||||||||||||||||
| 1073 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 1074 | "extra operand %s" | - | ||||||||||||||||||||||||||||||
| 1075 | , 5) | - | ||||||||||||||||||||||||||||||
| 1076 | , quote (optarg)); | - | ||||||||||||||||||||||||||||||
| 1077 | usage ( | - | ||||||||||||||||||||||||||||||
| 1078 | 1 | - | ||||||||||||||||||||||||||||||
| 1079 | ); | - | ||||||||||||||||||||||||||||||
| 1080 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||
| 1081 | else | - | ||||||||||||||||||||||||||||||
| 1082 | file[nfiles++] = optarg; executed 166 times by 1 test: file[nfiles++] = optarg;Executed by:
| 166 | ||||||||||||||||||||||||||||||
| 1083 | } | - | ||||||||||||||||||||||||||||||
| 1084 | break; executed 178 times by 1 test: break;Executed by:
| 178 | ||||||||||||||||||||||||||||||
| 1085 | - | |||||||||||||||||||||||||||||||
| 1086 | case never executed: '0':case '0':never executed: case '0': | 0 | ||||||||||||||||||||||||||||||
| 1087 | case executed 6 times by 1 test: '1':case '1':Executed by:
executed 6 times by 1 test: case '1':Executed by:
| 6 | ||||||||||||||||||||||||||||||
| 1088 | case never executed: '2':case '2':never executed: case '2': | 0 | ||||||||||||||||||||||||||||||
| 1089 | case never executed: '3':case '3':never executed: case '3': | 0 | ||||||||||||||||||||||||||||||
| 1090 | case never executed: '4':case '4':never executed: case '4': | 0 | ||||||||||||||||||||||||||||||
| 1091 | case never executed: '5':case '5':never executed: case '5': | 0 | ||||||||||||||||||||||||||||||
| 1092 | case never executed: '6':case '6':never executed: case '6': | 0 | ||||||||||||||||||||||||||||||
| 1093 | case never executed: '7':case '7':never executed: case '7': | 0 | ||||||||||||||||||||||||||||||
| 1094 | case never executed: '8':case '8':never executed: case '8': | 0 | ||||||||||||||||||||||||||||||
| 1095 | case never executed: '9':case '9':never executed: case '9': | 0 | ||||||||||||||||||||||||||||||
| 1096 | { | - | ||||||||||||||||||||||||||||||
| 1097 | if (skip_field_option_type == SFO_NEW
| 0-6 | ||||||||||||||||||||||||||||||
| 1098 | skip_fields = 0; never executed: skip_fields = 0; | 0 | ||||||||||||||||||||||||||||||
| 1099 | - | |||||||||||||||||||||||||||||||
| 1100 | if (!( (void) (&(skip_fields) == (size_t *)
| 0-6 | ||||||||||||||||||||||||||||||
| 1101 | ((void *)0)
| 0-6 | ||||||||||||||||||||||||||||||
| 1102 | ), (void) (!!sizeof (struct { _Static_assert (! (! ((size_t) 0 < (size_t) -1)), "verify_true (" "! TYPE_SIGNED (size_t)" ")"); int _gl_dummy; })), (void) (!!sizeof (struct { _Static_assert (sizeof (skip_fields) == sizeof (size_t), "verify_true (" "sizeof (skip_fields) == sizeof (size_t)" ")"); int _gl_dummy; })), (((
| 0-6 | ||||||||||||||||||||||||||||||
| 1103 | 0
| 0-6 | ||||||||||||||||||||||||||||||
| 1104 | : (((skip_fields) = (skip_fields) * 10 + (optc - '0')),
| 0-6 | ||||||||||||||||||||||||||||||
| 1105 | 1
| 0-6 | ||||||||||||||||||||||||||||||
| 1106 | )) )
| 0-6 | ||||||||||||||||||||||||||||||
| 1107 | skip_fields = never executed: skip_fields = (18446744073709551615UL) ; | 0 | ||||||||||||||||||||||||||||||
| 1108 | (18446744073709551615UL) never executed: skip_fields = (18446744073709551615UL) ; | 0 | ||||||||||||||||||||||||||||||
| 1109 | ; never executed: skip_fields = (18446744073709551615UL) ; | 0 | ||||||||||||||||||||||||||||||
| 1110 | - | |||||||||||||||||||||||||||||||
| 1111 | skip_field_option_type = SFO_OBSOLETE; | - | ||||||||||||||||||||||||||||||
| 1112 | } | - | ||||||||||||||||||||||||||||||
| 1113 | break; executed 6 times by 1 test: break;Executed by:
| 6 | ||||||||||||||||||||||||||||||
| 1114 | - | |||||||||||||||||||||||||||||||
| 1115 | case executed 30 times by 1 test: 'c':case 'c':Executed by:
executed 30 times by 1 test: case 'c':Executed by:
| 30 | ||||||||||||||||||||||||||||||
| 1116 | countmode = count_occurrences; | - | ||||||||||||||||||||||||||||||
| 1117 | output_option_used = | - | ||||||||||||||||||||||||||||||
| 1118 | 1 | - | ||||||||||||||||||||||||||||||
| 1119 | ; | - | ||||||||||||||||||||||||||||||
| 1120 | break; executed 30 times by 1 test: break;Executed by:
| 30 | ||||||||||||||||||||||||||||||
| 1121 | - | |||||||||||||||||||||||||||||||
| 1122 | case executed 86 times by 1 test: 'd':case 'd':Executed by:
executed 86 times by 1 test: case 'd':Executed by:
| 86 | ||||||||||||||||||||||||||||||
| 1123 | output_unique = | - | ||||||||||||||||||||||||||||||
| 1124 | 0 | - | ||||||||||||||||||||||||||||||
| 1125 | ; | - | ||||||||||||||||||||||||||||||
| 1126 | output_option_used = | - | ||||||||||||||||||||||||||||||
| 1127 | 1 | - | ||||||||||||||||||||||||||||||
| 1128 | ; | - | ||||||||||||||||||||||||||||||
| 1129 | break; executed 86 times by 1 test: break;Executed by:
| 86 | ||||||||||||||||||||||||||||||
| 1130 | - | |||||||||||||||||||||||||||||||
| 1131 | case executed 68 times by 1 test: 'D':case 'D':Executed by:
executed 68 times by 1 test: case 'D':Executed by:
| 68 | ||||||||||||||||||||||||||||||
| 1132 | output_unique = | - | ||||||||||||||||||||||||||||||
| 1133 | 0 | - | ||||||||||||||||||||||||||||||
| 1134 | ; | - | ||||||||||||||||||||||||||||||
| 1135 | output_later_repeated = | - | ||||||||||||||||||||||||||||||
| 1136 | 1 | - | ||||||||||||||||||||||||||||||
| 1137 | ; | - | ||||||||||||||||||||||||||||||
| 1138 | if (optarg ==
| 26-42 | ||||||||||||||||||||||||||||||
| 1139 | ((void *)0)
| 26-42 | ||||||||||||||||||||||||||||||
| 1140 | ) | - | ||||||||||||||||||||||||||||||
| 1141 | delimit_groups = DM_NONE; executed 26 times by 1 test: delimit_groups = DM_NONE;Executed by:
| 26 | ||||||||||||||||||||||||||||||
| 1142 | else | - | ||||||||||||||||||||||||||||||
| 1143 | delimit_groups = ((delimit_method_map) [__xargmatch_internal ("--all-repeated", optarg, delimit_method_string, (char const *) (delimit_method_map), sizeof *(delimit_method_map), argmatch_die)]) executed 42 times by 1 test: delimit_groups = ((delimit_method_map) [__xargmatch_internal ("--all-repeated", optarg, delimit_method_string, (char const *) (delimit_method_map), sizeof *(delimit_method_map), argmatch_die)]) ;Executed by:
| 42 | ||||||||||||||||||||||||||||||
| 1144 | 42 | |||||||||||||||||||||||||||||||
| 1145 | ; executed 42 times by 1 test: delimit_groups = ((delimit_method_map) [__xargmatch_internal ("--all-repeated", optarg, delimit_method_string, (char const *) (delimit_method_map), sizeof *(delimit_method_map), argmatch_die)]) ;Executed by:
| 42 | ||||||||||||||||||||||||||||||
| 1146 | output_option_used = | - | ||||||||||||||||||||||||||||||
| 1147 | 1 | - | ||||||||||||||||||||||||||||||
| 1148 | ; | - | ||||||||||||||||||||||||||||||
| 1149 | break; executed 62 times by 1 test: break;Executed by:
| 62 | ||||||||||||||||||||||||||||||
| 1150 | - | |||||||||||||||||||||||||||||||
| 1151 | case executed 109 times by 1 test: GROUP_OPTION:case GROUP_OPTION:Executed by:
executed 109 times by 1 test: case GROUP_OPTION:Executed by:
| 109 | ||||||||||||||||||||||||||||||
| 1152 | if (optarg ==
| 37-72 | ||||||||||||||||||||||||||||||
| 1153 | ((void *)0)
| 37-72 | ||||||||||||||||||||||||||||||
| 1154 | ) | - | ||||||||||||||||||||||||||||||
| 1155 | grouping = GM_SEPARATE; executed 37 times by 1 test: grouping = GM_SEPARATE;Executed by:
| 37 | ||||||||||||||||||||||||||||||
| 1156 | else | - | ||||||||||||||||||||||||||||||
| 1157 | grouping = ((grouping_method_map) [__xargmatch_internal ("--group", optarg, grouping_method_string, (char const *) (grouping_method_map), sizeof *(grouping_method_map), argmatch_die)]) executed 72 times by 1 test: grouping = ((grouping_method_map) [__xargmatch_internal ("--group", optarg, grouping_method_string, (char const *) (grouping_method_map), sizeof *(grouping_method_map), argmatch_die)]) ;Executed by:
| 72 | ||||||||||||||||||||||||||||||
| 1158 | 72 | |||||||||||||||||||||||||||||||
| 1159 | ; executed 72 times by 1 test: grouping = ((grouping_method_map) [__xargmatch_internal ("--group", optarg, grouping_method_string, (char const *) (grouping_method_map), sizeof *(grouping_method_map), argmatch_die)]) ;Executed by:
| 72 | ||||||||||||||||||||||||||||||
| 1160 | break; executed 103 times by 1 test: break;Executed by:
| 103 | ||||||||||||||||||||||||||||||
| 1161 | - | |||||||||||||||||||||||||||||||
| 1162 | case executed 102 times by 1 test: 'f':case 'f':Executed by:
executed 102 times by 1 test: case 'f':Executed by:
| 102 | ||||||||||||||||||||||||||||||
| 1163 | skip_field_option_type = SFO_NEW; | - | ||||||||||||||||||||||||||||||
| 1164 | skip_fields = size_opt (optarg, | - | ||||||||||||||||||||||||||||||
| 1165 | "invalid number of fields to skip"); | - | ||||||||||||||||||||||||||||||
| 1166 | break; executed 100 times by 1 test: break;Executed by:
| 100 | ||||||||||||||||||||||||||||||
| 1167 | - | |||||||||||||||||||||||||||||||
| 1168 | case executed 14 times by 1 test: 'i':case 'i':Executed by:
executed 14 times by 1 test: case 'i':Executed by:
| 14 | ||||||||||||||||||||||||||||||
| 1169 | ignore_case = | - | ||||||||||||||||||||||||||||||
| 1170 | 1 | - | ||||||||||||||||||||||||||||||
| 1171 | ; | - | ||||||||||||||||||||||||||||||
| 1172 | break; executed 14 times by 1 test: break;Executed by:
| 14 | ||||||||||||||||||||||||||||||
| 1173 | - | |||||||||||||||||||||||||||||||
| 1174 | case executed 56 times by 1 test: 's':case 's':Executed by:
executed 56 times by 1 test: case 's':Executed by:
| 56 | ||||||||||||||||||||||||||||||
| 1175 | skip_chars = size_opt (optarg, | - | ||||||||||||||||||||||||||||||
| 1176 | "invalid number of bytes to skip"); | - | ||||||||||||||||||||||||||||||
| 1177 | break; executed 54 times by 1 test: break;Executed by:
| 54 | ||||||||||||||||||||||||||||||
| 1178 | - | |||||||||||||||||||||||||||||||
| 1179 | case executed 57 times by 1 test: 'u':case 'u':Executed by:
executed 57 times by 1 test: case 'u':Executed by:
| 57 | ||||||||||||||||||||||||||||||
| 1180 | output_first_repeated = | - | ||||||||||||||||||||||||||||||
| 1181 | 0 | - | ||||||||||||||||||||||||||||||
| 1182 | ; | - | ||||||||||||||||||||||||||||||
| 1183 | output_option_used = | - | ||||||||||||||||||||||||||||||
| 1184 | 1 | - | ||||||||||||||||||||||||||||||
| 1185 | ; | - | ||||||||||||||||||||||||||||||
| 1186 | break; executed 57 times by 1 test: break;Executed by:
| 57 | ||||||||||||||||||||||||||||||
| 1187 | - | |||||||||||||||||||||||||||||||
| 1188 | case executed 67 times by 1 test: 'w':case 'w':Executed by:
executed 67 times by 1 test: case 'w':Executed by:
| 67 | ||||||||||||||||||||||||||||||
| 1189 | check_chars = size_opt (optarg, | - | ||||||||||||||||||||||||||||||
| 1190 | "invalid number of bytes to compare"); | - | ||||||||||||||||||||||||||||||
| 1191 | break; executed 65 times by 1 test: break;Executed by:
| 65 | ||||||||||||||||||||||||||||||
| 1192 | - | |||||||||||||||||||||||||||||||
| 1193 | case executed 263 times by 1 test: 'z':case 'z':Executed by:
executed 263 times by 1 test: case 'z':Executed by:
| 263 | ||||||||||||||||||||||||||||||
| 1194 | delimiter = '\0'; | - | ||||||||||||||||||||||||||||||
| 1195 | break; executed 263 times by 1 test: break;Executed by:
| 263 | ||||||||||||||||||||||||||||||
| 1196 | - | |||||||||||||||||||||||||||||||
| 1197 | case executed 16 times by 1 test: GETOPT_HELP_CHAR:case GETOPT_HELP_CHAR:Executed by:
executed 16 times by 1 test: usage (case GETOPT_HELP_CHAR:Executed by:
| 16 | ||||||||||||||||||||||||||||||
| 1198 | 0 | - | ||||||||||||||||||||||||||||||
| 1199 | ); break; never executed: ;break; | 0 | ||||||||||||||||||||||||||||||
| 1200 | - | |||||||||||||||||||||||||||||||
| 1201 | case executed 5 times by 1 test: GETOPT_VERSION_CHAR:case GETOPT_VERSION_CHAR:Executed by:
executed 5 times by 1 test: version_etc (case GETOPT_VERSION_CHAR:Executed by:
| 5 | ||||||||||||||||||||||||||||||
| 1202 | stdout | - | ||||||||||||||||||||||||||||||
| 1203 | , "uniq", "GNU coreutils", Version, ("Richard M. Stallman"), ("David MacKenzie"), (char *) | - | ||||||||||||||||||||||||||||||
| 1204 | ((void *)0) | - | ||||||||||||||||||||||||||||||
| 1205 | ); exit ( executed 5 times by 1 test: exit ( 0 );Executed by:
| 5 | ||||||||||||||||||||||||||||||
| 1206 | 0 executed 5 times by 1 test: exit ( 0 );Executed by:
| 5 | ||||||||||||||||||||||||||||||
| 1207 | ); executed 5 times by 1 test: break;exit ( 0 );Executed by:
never executed: ;break; | 0-5 | ||||||||||||||||||||||||||||||
| 1208 | - | |||||||||||||||||||||||||||||||
| 1209 | default executed 3 times by 1 test: :default:Executed by:
executed 3 times by 1 test: default:Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 1210 | usage ( | - | ||||||||||||||||||||||||||||||
| 1211 | 1 | - | ||||||||||||||||||||||||||||||
| 1212 | ); | - | ||||||||||||||||||||||||||||||
| 1213 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||
| 1214 | } | - | ||||||||||||||||||||||||||||||
| 1215 | - | |||||||||||||||||||||||||||||||
| 1216 | - | |||||||||||||||||||||||||||||||
| 1217 | - | |||||||||||||||||||||||||||||||
| 1218 | - | |||||||||||||||||||||||||||||||
| 1219 | - | |||||||||||||||||||||||||||||||
| 1220 | if (grouping != GM_NONE
| 24-483 | ||||||||||||||||||||||||||||||
| 1221 | { | - | ||||||||||||||||||||||||||||||
| 1222 | error (0, 0, | - | ||||||||||||||||||||||||||||||
| 1223 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 1224 | "--group is mutually exclusive with -c/-d/-D/-u" | - | ||||||||||||||||||||||||||||||
| 1225 | , 5) | - | ||||||||||||||||||||||||||||||
| 1226 | ); | - | ||||||||||||||||||||||||||||||
| 1227 | usage ( | - | ||||||||||||||||||||||||||||||
| 1228 | 1 | - | ||||||||||||||||||||||||||||||
| 1229 | ); | - | ||||||||||||||||||||||||||||||
| 1230 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||
| 1231 | - | |||||||||||||||||||||||||||||||
| 1232 | if (grouping != GM_NONE
| 0-483 | ||||||||||||||||||||||||||||||
| 1233 | { | - | ||||||||||||||||||||||||||||||
| 1234 | error (0, 0, | - | ||||||||||||||||||||||||||||||
| 1235 | - | |||||||||||||||||||||||||||||||
| 1236 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 1237 | "grouping and printing repeat counts is meaningless" | - | ||||||||||||||||||||||||||||||
| 1238 | , 5) | - | ||||||||||||||||||||||||||||||
| 1239 | ); | - | ||||||||||||||||||||||||||||||
| 1240 | usage ( | - | ||||||||||||||||||||||||||||||
| 1241 | 1 | - | ||||||||||||||||||||||||||||||
| 1242 | ); | - | ||||||||||||||||||||||||||||||
| 1243 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||
| 1244 | - | |||||||||||||||||||||||||||||||
| 1245 | if (countmode == count_occurrences
| 6-539 | ||||||||||||||||||||||||||||||
| 1246 | { | - | ||||||||||||||||||||||||||||||
| 1247 | error (0, 0, | - | ||||||||||||||||||||||||||||||
| 1248 | - | |||||||||||||||||||||||||||||||
| 1249 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||
| 1250 | "printing all duplicated lines and repeat counts is meaningless" | - | ||||||||||||||||||||||||||||||
| 1251 | , 5) | - | ||||||||||||||||||||||||||||||
| 1252 | ); | - | ||||||||||||||||||||||||||||||
| 1253 | usage ( | - | ||||||||||||||||||||||||||||||
| 1254 | 1 | - | ||||||||||||||||||||||||||||||
| 1255 | ); | - | ||||||||||||||||||||||||||||||
| 1256 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||
| 1257 | - | |||||||||||||||||||||||||||||||
| 1258 | check_file (file[0], file[1], delimiter); | - | ||||||||||||||||||||||||||||||
| 1259 | - | |||||||||||||||||||||||||||||||
| 1260 | return executed 555 times by 1 test: return 0 ;Executed by:
executed 555 times by 1 test: return 0 ;Executed by:
| 555 | ||||||||||||||||||||||||||||||
| 1261 | 0 executed 555 times by 1 test: return 0 ;Executed by:
| 555 | ||||||||||||||||||||||||||||||
| 1262 | ; executed 555 times by 1 test: return 0 ;Executed by:
| 555 | ||||||||||||||||||||||||||||||
| 1263 | } | - | ||||||||||||||||||||||||||||||
| Switch to Source code | Preprocessed file |