| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/cat.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||
| 2 | - | |||||||||||||||||||
| 3 | - | |||||||||||||||||||
| 4 | - | |||||||||||||||||||
| 5 | - | |||||||||||||||||||
| 6 | - | |||||||||||||||||||
| 7 | static char const *infile; | - | ||||||||||||||||||
| 8 | - | |||||||||||||||||||
| 9 | - | |||||||||||||||||||
| 10 | static int input_desc; | - | ||||||||||||||||||
| 11 | - | |||||||||||||||||||
| 12 | - | |||||||||||||||||||
| 13 | - | |||||||||||||||||||
| 14 | - | |||||||||||||||||||
| 15 | - | |||||||||||||||||||
| 16 | static char line_buf[20] = | - | ||||||||||||||||||
| 17 | { | - | ||||||||||||||||||
| 18 | ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', | - | ||||||||||||||||||
| 19 | ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '0', | - | ||||||||||||||||||
| 20 | '\t', '\0' | - | ||||||||||||||||||
| 21 | }; | - | ||||||||||||||||||
| 22 | - | |||||||||||||||||||
| 23 | - | |||||||||||||||||||
| 24 | - | |||||||||||||||||||
| 25 | static char *line_num_print = line_buf + 20 - 8; | - | ||||||||||||||||||
| 26 | - | |||||||||||||||||||
| 27 | - | |||||||||||||||||||
| 28 | static char *line_num_start = line_buf + 20 - 3; | - | ||||||||||||||||||
| 29 | - | |||||||||||||||||||
| 30 | - | |||||||||||||||||||
| 31 | static char *line_num_end = line_buf + 20 - 3; | - | ||||||||||||||||||
| 32 | - | |||||||||||||||||||
| 33 | - | |||||||||||||||||||
| 34 | static int newlines2 = 0; | - | ||||||||||||||||||
| 35 | - | |||||||||||||||||||
| 36 | void | - | ||||||||||||||||||
| 37 | usage (int status) | - | ||||||||||||||||||
| 38 | { | - | ||||||||||||||||||
| 39 | if (status !=
| 3-20 | ||||||||||||||||||
| 40 | 0
| 3-20 | ||||||||||||||||||
| 41 | ) | - | ||||||||||||||||||
| 42 | do { fprintf ( | - | ||||||||||||||||||
| 43 | stderr | - | ||||||||||||||||||
| 44 | , | - | ||||||||||||||||||
| 45 | dcgettext (((void *)0), | - | ||||||||||||||||||
| 46 | "Try '%s --help' for more information.\n" | - | ||||||||||||||||||
| 47 | , 5) | - | ||||||||||||||||||
| 48 | , program_name); } executed 3 times by 1 test: while (0);end of blockExecuted by:
| 3 | ||||||||||||||||||
| 49 | else | - | ||||||||||||||||||
| 50 | { | - | ||||||||||||||||||
| 51 | printf ( | - | ||||||||||||||||||
| 52 | dcgettext (((void *)0), | - | ||||||||||||||||||
| 53 | "Usage: %s [OPTION]... [FILE]...\n" | - | ||||||||||||||||||
| 54 | , 5) | - | ||||||||||||||||||
| 55 | - | |||||||||||||||||||
| 56 | - | |||||||||||||||||||
| 57 | , | - | ||||||||||||||||||
| 58 | program_name); | - | ||||||||||||||||||
| 59 | fputs_unlocked ( | - | ||||||||||||||||||
| 60 | dcgettext (((void *)0), | - | ||||||||||||||||||
| 61 | "Concatenate FILE(s) to standard output.\n" | - | ||||||||||||||||||
| 62 | , 5) | - | ||||||||||||||||||
| 63 | , | - | ||||||||||||||||||
| 64 | stdout | - | ||||||||||||||||||
| 65 | ) | - | ||||||||||||||||||
| 66 | - | |||||||||||||||||||
| 67 | ; | - | ||||||||||||||||||
| 68 | - | |||||||||||||||||||
| 69 | emit_stdin_note (); | - | ||||||||||||||||||
| 70 | - | |||||||||||||||||||
| 71 | fputs_unlocked ( | - | ||||||||||||||||||
| 72 | dcgettext (((void *)0), | - | ||||||||||||||||||
| 73 | "\n -A, --show-all equivalent to -vET\n -b, --number-nonblank number nonempty output lines, overrides -n\n -e equivalent to -vE\n -E, --show-ends display $ at end of each line\n -n, --number number all output lines\n -s, --squeeze-blank suppress repeated empty output lines\n" | - | ||||||||||||||||||
| 74 | , 5) | - | ||||||||||||||||||
| 75 | , | - | ||||||||||||||||||
| 76 | stdout | - | ||||||||||||||||||
| 77 | ) | - | ||||||||||||||||||
| 78 | - | |||||||||||||||||||
| 79 | - | |||||||||||||||||||
| 80 | - | |||||||||||||||||||
| 81 | - | |||||||||||||||||||
| 82 | - | |||||||||||||||||||
| 83 | - | |||||||||||||||||||
| 84 | - | |||||||||||||||||||
| 85 | ; | - | ||||||||||||||||||
| 86 | fputs_unlocked ( | - | ||||||||||||||||||
| 87 | dcgettext (((void *)0), | - | ||||||||||||||||||
| 88 | " -t equivalent to -vT\n -T, --show-tabs display TAB characters as ^I\n -u (ignored)\n -v, --show-nonprinting use ^ and M- notation, except for LFD and TAB\n" | - | ||||||||||||||||||
| 89 | , 5) | - | ||||||||||||||||||
| 90 | , | - | ||||||||||||||||||
| 91 | stdout | - | ||||||||||||||||||
| 92 | ) | - | ||||||||||||||||||
| 93 | - | |||||||||||||||||||
| 94 | - | |||||||||||||||||||
| 95 | - | |||||||||||||||||||
| 96 | - | |||||||||||||||||||
| 97 | ; | - | ||||||||||||||||||
| 98 | fputs_unlocked ( | - | ||||||||||||||||||
| 99 | dcgettext (((void *)0), | - | ||||||||||||||||||
| 100 | " --help display this help and exit\n" | - | ||||||||||||||||||
| 101 | , 5) | - | ||||||||||||||||||
| 102 | , | - | ||||||||||||||||||
| 103 | stdout | - | ||||||||||||||||||
| 104 | ); | - | ||||||||||||||||||
| 105 | fputs_unlocked ( | - | ||||||||||||||||||
| 106 | dcgettext (((void *)0), | - | ||||||||||||||||||
| 107 | " --version output version information and exit\n" | - | ||||||||||||||||||
| 108 | , 5) | - | ||||||||||||||||||
| 109 | , | - | ||||||||||||||||||
| 110 | stdout | - | ||||||||||||||||||
| 111 | ); | - | ||||||||||||||||||
| 112 | printf ( | - | ||||||||||||||||||
| 113 | dcgettext (((void *)0), | - | ||||||||||||||||||
| 114 | "\nExamples:\n %s f - g Output f's contents, then standard input, then g's contents.\n %s Copy standard input to standard output.\n" | - | ||||||||||||||||||
| 115 | , 5) | - | ||||||||||||||||||
| 116 | - | |||||||||||||||||||
| 117 | - | |||||||||||||||||||
| 118 | - | |||||||||||||||||||
| 119 | - | |||||||||||||||||||
| 120 | - | |||||||||||||||||||
| 121 | , | - | ||||||||||||||||||
| 122 | program_name, program_name); | - | ||||||||||||||||||
| 123 | emit_ancillary_info ("cat"); | - | ||||||||||||||||||
| 124 | } executed 20 times by 1 test: end of blockExecuted by:
| 20 | ||||||||||||||||||
| 125 | exit (status); executed 23 times by 1 test: exit (status);Executed by:
| 23 | ||||||||||||||||||
| 126 | } | - | ||||||||||||||||||
| 127 | - | |||||||||||||||||||
| 128 | - | |||||||||||||||||||
| 129 | - | |||||||||||||||||||
| 130 | static void | - | ||||||||||||||||||
| 131 | next_line_num (void) | - | ||||||||||||||||||
| 132 | { | - | ||||||||||||||||||
| 133 | char *endp = line_num_end; | - | ||||||||||||||||||
| 134 | do | - | ||||||||||||||||||
| 135 | { | - | ||||||||||||||||||
| 136 | if ((*
| 0-17 | ||||||||||||||||||
| 137 | return; executed 17 times by 1 test: return;Executed by:
| 17 | ||||||||||||||||||
| 138 | *endp-- = '0'; | - | ||||||||||||||||||
| 139 | } never executed: end of block | 0 | ||||||||||||||||||
| 140 | while (endp >= line_num_start
| 0 | ||||||||||||||||||
| 141 | if (line_num_start > line_buf
| 0 | ||||||||||||||||||
| 142 | *-- never executed: line_num_start = '1';*--line_num_start = '1';never executed: *--line_num_start = '1'; | 0 | ||||||||||||||||||
| 143 | else | - | ||||||||||||||||||
| 144 | * never executed: line_buf = '>';*line_buf = '>';never executed: *line_buf = '>'; | 0 | ||||||||||||||||||
| 145 | if (line_num_start < line_num_print
| 0 | ||||||||||||||||||
| 146 | line_num_print--; never executed: line_num_print--; | 0 | ||||||||||||||||||
| 147 | } never executed: end of block | 0 | ||||||||||||||||||
| 148 | - | |||||||||||||||||||
| 149 | - | |||||||||||||||||||
| 150 | - | |||||||||||||||||||
| 151 | - | |||||||||||||||||||
| 152 | static | - | ||||||||||||||||||
| 153 | _Bool | - | ||||||||||||||||||
| 154 | - | |||||||||||||||||||
| 155 | simple_cat ( | - | ||||||||||||||||||
| 156 | - | |||||||||||||||||||
| 157 | char *buf, | - | ||||||||||||||||||
| 158 | - | |||||||||||||||||||
| 159 | - | |||||||||||||||||||
| 160 | - | |||||||||||||||||||
| 161 | size_t bufsize) | - | ||||||||||||||||||
| 162 | { | - | ||||||||||||||||||
| 163 | - | |||||||||||||||||||
| 164 | size_t n_read; | - | ||||||||||||||||||
| 165 | - | |||||||||||||||||||
| 166 | - | |||||||||||||||||||
| 167 | - | |||||||||||||||||||
| 168 | while ( | - | ||||||||||||||||||
| 169 | 1 | - | ||||||||||||||||||
| 170 | ) | - | ||||||||||||||||||
| 171 | { | - | ||||||||||||||||||
| 172 | - | |||||||||||||||||||
| 173 | - | |||||||||||||||||||
| 174 | n_read = safe_read (input_desc, buf, bufsize); | - | ||||||||||||||||||
| 175 | if (n_read == ((size_t) -1)
| 4-5767 | ||||||||||||||||||
| 176 | { | - | ||||||||||||||||||
| 177 | error (0, | - | ||||||||||||||||||
| 178 | (*__errno_location ()) | - | ||||||||||||||||||
| 179 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)); | - | ||||||||||||||||||
| 180 | return executed 4 times by 1 test: return 0 ;Executed by:
executed 4 times by 1 test: return 0 ;Executed by:
| 4 | ||||||||||||||||||
| 181 | 0 executed 4 times by 1 test: return 0 ;Executed by:
| 4 | ||||||||||||||||||
| 182 | ; executed 4 times by 1 test: return 0 ;Executed by:
| 4 | ||||||||||||||||||
| 183 | } | - | ||||||||||||||||||
| 184 | - | |||||||||||||||||||
| 185 | - | |||||||||||||||||||
| 186 | - | |||||||||||||||||||
| 187 | if (n_read == 0
| 2421-3346 | ||||||||||||||||||
| 188 | return executed 2421 times by 1 test: return 1 ;Executed by:
executed 2421 times by 1 test: return 1 ;Executed by:
| 2421 | ||||||||||||||||||
| 189 | 1 executed 2421 times by 1 test: return 1 ;Executed by:
| 2421 | ||||||||||||||||||
| 190 | ; executed 2421 times by 1 test: return 1 ;Executed by:
| 2421 | ||||||||||||||||||
| 191 | - | |||||||||||||||||||
| 192 | - | |||||||||||||||||||
| 193 | - | |||||||||||||||||||
| 194 | { | - | ||||||||||||||||||
| 195 | - | |||||||||||||||||||
| 196 | size_t n = n_read; | - | ||||||||||||||||||
| 197 | if (full_write (
| 1-3345 | ||||||||||||||||||
| 198 | 1
| 1-3345 | ||||||||||||||||||
| 199 | , buf, n) != n
| 1-3345 | ||||||||||||||||||
| 200 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 201 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 202 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 203 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 204 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 205 | (*__errno_location ()) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 206 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 207 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 208 | "write error" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 209 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 210 | ), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 211 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 212 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 213 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 214 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 215 | (*__errno_location ()) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 216 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 217 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 218 | "write error" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 219 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 220 | ), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 221 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 222 | ) ? (void) 0 : __builtin_unreachable ())))); executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 223 | } | - | ||||||||||||||||||
| 224 | } executed 3345 times by 1 test: end of blockExecuted by:
| 3345 | ||||||||||||||||||
| 225 | } never executed: end of block | 0 | ||||||||||||||||||
| 226 | - | |||||||||||||||||||
| 227 | - | |||||||||||||||||||
| 228 | - | |||||||||||||||||||
| 229 | - | |||||||||||||||||||
| 230 | - | |||||||||||||||||||
| 231 | static inline void | - | ||||||||||||||||||
| 232 | write_pending (char *outbuf, char **bpout) | - | ||||||||||||||||||
| 233 | { | - | ||||||||||||||||||
| 234 | size_t n_write = *bpout - outbuf; | - | ||||||||||||||||||
| 235 | if (0 < n_write
| 11-13 | ||||||||||||||||||
| 236 | { | - | ||||||||||||||||||
| 237 | if (full_write (
| 1-12 | ||||||||||||||||||
| 238 | 1
| 1-12 | ||||||||||||||||||
| 239 | , outbuf, n_write) != n_write
| 1-12 | ||||||||||||||||||
| 240 | (( executed 1 time by 1 test: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 241 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 242 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 243 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 244 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 245 | (*__errno_location ()) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 246 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 247 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 248 | "write error" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 249 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 250 | ), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 251 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 252 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 253 | 1 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 254 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 255 | (*__errno_location ()) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 256 | , executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 257 | dcgettext (((void *)0), executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 258 | "write error" executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 259 | , 5) executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 260 | ), (( executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 261 | 0 executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 262 | ) ? (void) 0 : __builtin_unreachable ())))); executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));Executed by:
| 1 | ||||||||||||||||||
| 263 | *bpout = outbuf; | - | ||||||||||||||||||
| 264 | } executed 12 times by 1 test: end of blockExecuted by:
| 12 | ||||||||||||||||||
| 265 | } executed 23 times by 1 test: end of blockExecuted by:
| 23 | ||||||||||||||||||
| 266 | static | - | ||||||||||||||||||
| 267 | _Bool | - | ||||||||||||||||||
| 268 | - | |||||||||||||||||||
| 269 | cat ( | - | ||||||||||||||||||
| 270 | - | |||||||||||||||||||
| 271 | char *inbuf, | - | ||||||||||||||||||
| 272 | - | |||||||||||||||||||
| 273 | - | |||||||||||||||||||
| 274 | size_t insize, | - | ||||||||||||||||||
| 275 | - | |||||||||||||||||||
| 276 | - | |||||||||||||||||||
| 277 | char *outbuf, | - | ||||||||||||||||||
| 278 | - | |||||||||||||||||||
| 279 | - | |||||||||||||||||||
| 280 | size_t outsize, | - | ||||||||||||||||||
| 281 | - | |||||||||||||||||||
| 282 | - | |||||||||||||||||||
| 283 | - | |||||||||||||||||||
| 284 | _Bool | - | ||||||||||||||||||
| 285 | show_nonprinting, | - | ||||||||||||||||||
| 286 | - | |||||||||||||||||||
| 287 | _Bool | - | ||||||||||||||||||
| 288 | show_tabs, | - | ||||||||||||||||||
| 289 | - | |||||||||||||||||||
| 290 | _Bool | - | ||||||||||||||||||
| 291 | number, | - | ||||||||||||||||||
| 292 | - | |||||||||||||||||||
| 293 | _Bool | - | ||||||||||||||||||
| 294 | number_nonblank, | - | ||||||||||||||||||
| 295 | - | |||||||||||||||||||
| 296 | _Bool | - | ||||||||||||||||||
| 297 | show_ends, | - | ||||||||||||||||||
| 298 | - | |||||||||||||||||||
| 299 | _Bool | - | ||||||||||||||||||
| 300 | squeeze_blank) | - | ||||||||||||||||||
| 301 | { | - | ||||||||||||||||||
| 302 | - | |||||||||||||||||||
| 303 | unsigned char ch; | - | ||||||||||||||||||
| 304 | - | |||||||||||||||||||
| 305 | - | |||||||||||||||||||
| 306 | char *bpin; | - | ||||||||||||||||||
| 307 | - | |||||||||||||||||||
| 308 | - | |||||||||||||||||||
| 309 | - | |||||||||||||||||||
| 310 | char *eob; | - | ||||||||||||||||||
| 311 | - | |||||||||||||||||||
| 312 | - | |||||||||||||||||||
| 313 | char *bpout; | - | ||||||||||||||||||
| 314 | - | |||||||||||||||||||
| 315 | - | |||||||||||||||||||
| 316 | size_t n_read; | - | ||||||||||||||||||
| 317 | - | |||||||||||||||||||
| 318 | - | |||||||||||||||||||
| 319 | - | |||||||||||||||||||
| 320 | - | |||||||||||||||||||
| 321 | - | |||||||||||||||||||
| 322 | - | |||||||||||||||||||
| 323 | int newlines = newlines2; | - | ||||||||||||||||||
| 324 | - | |||||||||||||||||||
| 325 | - | |||||||||||||||||||
| 326 | - | |||||||||||||||||||
| 327 | - | |||||||||||||||||||
| 328 | - | |||||||||||||||||||
| 329 | _Bool | - | ||||||||||||||||||
| 330 | use_fionread = | - | ||||||||||||||||||
| 331 | 1 | - | ||||||||||||||||||
| 332 | ; | - | ||||||||||||||||||
| 333 | - | |||||||||||||||||||
| 334 | - | |||||||||||||||||||
| 335 | - | |||||||||||||||||||
| 336 | - | |||||||||||||||||||
| 337 | - | |||||||||||||||||||
| 338 | eob = inbuf; | - | ||||||||||||||||||
| 339 | bpin = eob + 1; | - | ||||||||||||||||||
| 340 | - | |||||||||||||||||||
| 341 | bpout = outbuf; | - | ||||||||||||||||||
| 342 | - | |||||||||||||||||||
| 343 | while ( | - | ||||||||||||||||||
| 344 | 1 | - | ||||||||||||||||||
| 345 | ) | - | ||||||||||||||||||
| 346 | { | - | ||||||||||||||||||
| 347 | do | - | ||||||||||||||||||
| 348 | { | - | ||||||||||||||||||
| 349 | - | |||||||||||||||||||
| 350 | - | |||||||||||||||||||
| 351 | if (outbuf + outsize <= bpout
| 0-181 | ||||||||||||||||||
| 352 | { | - | ||||||||||||||||||
| 353 | char *wp = outbuf; | - | ||||||||||||||||||
| 354 | size_t remaining_bytes; | - | ||||||||||||||||||
| 355 | do | - | ||||||||||||||||||
| 356 | { | - | ||||||||||||||||||
| 357 | if (full_write (
| 0 | ||||||||||||||||||
| 358 | 1
| 0 | ||||||||||||||||||
| 359 | , wp, outsize) != outsize
| 0 | ||||||||||||||||||
| 360 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 361 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 362 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 363 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 364 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 365 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 366 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 367 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 368 | "write error" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 369 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 370 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 371 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 372 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 373 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 374 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 375 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 376 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 377 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 378 | "write error" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 379 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 380 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 381 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 382 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"write error\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "write error" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 383 | wp += outsize; | - | ||||||||||||||||||
| 384 | remaining_bytes = bpout - wp; | - | ||||||||||||||||||
| 385 | } never executed: end of block | 0 | ||||||||||||||||||
| 386 | while (outsize <= remaining_bytes
| 0 | ||||||||||||||||||
| 387 | - | |||||||||||||||||||
| 388 | - | |||||||||||||||||||
| 389 | - | |||||||||||||||||||
| 390 | - | |||||||||||||||||||
| 391 | memmove (outbuf, wp, remaining_bytes); | - | ||||||||||||||||||
| 392 | bpout = outbuf + remaining_bytes; | - | ||||||||||||||||||
| 393 | } never executed: end of block | 0 | ||||||||||||||||||
| 394 | - | |||||||||||||||||||
| 395 | - | |||||||||||||||||||
| 396 | - | |||||||||||||||||||
| 397 | if (bpin > eob
| 25-156 | ||||||||||||||||||
| 398 | { | - | ||||||||||||||||||
| 399 | - | |||||||||||||||||||
| 400 | _Bool | - | ||||||||||||||||||
| 401 | input_pending = | - | ||||||||||||||||||
| 402 | 0 | - | ||||||||||||||||||
| 403 | ; | - | ||||||||||||||||||
| 404 | - | |||||||||||||||||||
| 405 | int n_to_read = 0; | - | ||||||||||||||||||
| 406 | - | |||||||||||||||||||
| 407 | - | |||||||||||||||||||
| 408 | - | |||||||||||||||||||
| 409 | - | |||||||||||||||||||
| 410 | - | |||||||||||||||||||
| 411 | if (use_fionread
| 0-25 | ||||||||||||||||||
| 412 | && ioctl (input_desc,
| 0-25 | ||||||||||||||||||
| 413 | 0x541B
| 0-25 | ||||||||||||||||||
| 414 | , &n_to_read) < 0
| 0-25 | ||||||||||||||||||
| 415 | { | - | ||||||||||||||||||
| 416 | - | |||||||||||||||||||
| 417 | - | |||||||||||||||||||
| 418 | - | |||||||||||||||||||
| 419 | - | |||||||||||||||||||
| 420 | - | |||||||||||||||||||
| 421 | - | |||||||||||||||||||
| 422 | if ( | - | ||||||||||||||||||
| 423 | (*
| 0 | ||||||||||||||||||
| 424 | ==
| 0 | ||||||||||||||||||
| 425 | 95
| 0 | ||||||||||||||||||
| 426 | || | - | ||||||||||||||||||
| 427 | (*
| 0 | ||||||||||||||||||
| 428 | ==
| 0 | ||||||||||||||||||
| 429 | 25
| 0 | ||||||||||||||||||
| 430 | - | |||||||||||||||||||
| 431 | || | - | ||||||||||||||||||
| 432 | (*
| 0 | ||||||||||||||||||
| 433 | ==
| 0 | ||||||||||||||||||
| 434 | 22
| 0 | ||||||||||||||||||
| 435 | || | - | ||||||||||||||||||
| 436 | (*
| 0 | ||||||||||||||||||
| 437 | ==
| 0 | ||||||||||||||||||
| 438 | 19
| 0 | ||||||||||||||||||
| 439 | - | |||||||||||||||||||
| 440 | || | - | ||||||||||||||||||
| 441 | (*
| 0 | ||||||||||||||||||
| 442 | ==
| 0 | ||||||||||||||||||
| 443 | 38
| 0 | ||||||||||||||||||
| 444 | ) | - | ||||||||||||||||||
| 445 | use_fionread = never executed: use_fionread = 0 ; | 0 | ||||||||||||||||||
| 446 | 0 never executed: use_fionread = 0 ; | 0 | ||||||||||||||||||
| 447 | ; never executed: use_fionread = 0 ; | 0 | ||||||||||||||||||
| 448 | else | - | ||||||||||||||||||
| 449 | { | - | ||||||||||||||||||
| 450 | error (0, | - | ||||||||||||||||||
| 451 | (*__errno_location ()) | - | ||||||||||||||||||
| 452 | , | - | ||||||||||||||||||
| 453 | dcgettext (((void *)0), | - | ||||||||||||||||||
| 454 | "cannot do ioctl on %s" | - | ||||||||||||||||||
| 455 | , 5) | - | ||||||||||||||||||
| 456 | , | - | ||||||||||||||||||
| 457 | quotearg_style (shell_escape_always_quoting_style, infile)); | - | ||||||||||||||||||
| 458 | newlines2 = newlines; | - | ||||||||||||||||||
| 459 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||
| 460 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||
| 461 | ; never executed: return 0 ; | 0 | ||||||||||||||||||
| 462 | } | - | ||||||||||||||||||
| 463 | } | - | ||||||||||||||||||
| 464 | if (n_to_read != 0
| 12-13 | ||||||||||||||||||
| 465 | input_pending = executed 12 times by 1 test: input_pending = 1 ;Executed by:
| 12 | ||||||||||||||||||
| 466 | 1 executed 12 times by 1 test: input_pending = 1 ;Executed by:
| 12 | ||||||||||||||||||
| 467 | ; executed 12 times by 1 test: input_pending = 1 ;Executed by:
| 12 | ||||||||||||||||||
| 468 | - | |||||||||||||||||||
| 469 | - | |||||||||||||||||||
| 470 | if (!input_pending
| 12-13 | ||||||||||||||||||
| 471 | write_pending (outbuf, &bpout); executed 13 times by 1 test: write_pending (outbuf, &bpout);Executed by:
| 13 | ||||||||||||||||||
| 472 | - | |||||||||||||||||||
| 473 | - | |||||||||||||||||||
| 474 | - | |||||||||||||||||||
| 475 | n_read = safe_read (input_desc, inbuf, insize); | - | ||||||||||||||||||
| 476 | if (n_read == ((size_t) -1)
| 0-24 | ||||||||||||||||||
| 477 | { | - | ||||||||||||||||||
| 478 | error (0, | - | ||||||||||||||||||
| 479 | (*__errno_location ()) | - | ||||||||||||||||||
| 480 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)); | - | ||||||||||||||||||
| 481 | write_pending (outbuf, &bpout); | - | ||||||||||||||||||
| 482 | newlines2 = newlines; | - | ||||||||||||||||||
| 483 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||
| 484 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||
| 485 | ; never executed: return 0 ; | 0 | ||||||||||||||||||
| 486 | } | - | ||||||||||||||||||
| 487 | if (n_read == 0
| 11-13 | ||||||||||||||||||
| 488 | { | - | ||||||||||||||||||
| 489 | write_pending (outbuf, &bpout); | - | ||||||||||||||||||
| 490 | newlines2 = newlines; | - | ||||||||||||||||||
| 491 | return executed 11 times by 1 test: return 1 ;Executed by:
executed 11 times by 1 test: return 1 ;Executed by:
| 11 | ||||||||||||||||||
| 492 | 1 executed 11 times by 1 test: return 1 ;Executed by:
| 11 | ||||||||||||||||||
| 493 | ; executed 11 times by 1 test: return 1 ;Executed by:
| 11 | ||||||||||||||||||
| 494 | } | - | ||||||||||||||||||
| 495 | - | |||||||||||||||||||
| 496 | - | |||||||||||||||||||
| 497 | - | |||||||||||||||||||
| 498 | - | |||||||||||||||||||
| 499 | bpin = inbuf; | - | ||||||||||||||||||
| 500 | eob = bpin + n_read; | - | ||||||||||||||||||
| 501 | *eob = '\n'; | - | ||||||||||||||||||
| 502 | } executed 13 times by 1 test: end of blockExecuted by:
| 13 | ||||||||||||||||||
| 503 | else | - | ||||||||||||||||||
| 504 | { | - | ||||||||||||||||||
| 505 | - | |||||||||||||||||||
| 506 | - | |||||||||||||||||||
| 507 | - | |||||||||||||||||||
| 508 | - | |||||||||||||||||||
| 509 | - | |||||||||||||||||||
| 510 | if (++
| 9-147 | ||||||||||||||||||
| 511 | { | - | ||||||||||||||||||
| 512 | if (newlines >= 2
| 0-9 | ||||||||||||||||||
| 513 | { | - | ||||||||||||||||||
| 514 | - | |||||||||||||||||||
| 515 | - | |||||||||||||||||||
| 516 | - | |||||||||||||||||||
| 517 | newlines = 2; | - | ||||||||||||||||||
| 518 | - | |||||||||||||||||||
| 519 | - | |||||||||||||||||||
| 520 | - | |||||||||||||||||||
| 521 | - | |||||||||||||||||||
| 522 | if (squeeze_blank
| 0 | ||||||||||||||||||
| 523 | { | - | ||||||||||||||||||
| 524 | ch = *bpin++; | - | ||||||||||||||||||
| 525 | continue; never executed: continue; | 0 | ||||||||||||||||||
| 526 | } | - | ||||||||||||||||||
| 527 | } never executed: end of block | 0 | ||||||||||||||||||
| 528 | - | |||||||||||||||||||
| 529 | - | |||||||||||||||||||
| 530 | - | |||||||||||||||||||
| 531 | if (number
| 0-5 | ||||||||||||||||||
| 532 | { | - | ||||||||||||||||||
| 533 | next_line_num (); | - | ||||||||||||||||||
| 534 | bpout = stpcpy (bpout, line_num_print); | - | ||||||||||||||||||
| 535 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||
| 536 | } executed 9 times by 1 test: end of blockExecuted by:
| 9 | ||||||||||||||||||
| 537 | - | |||||||||||||||||||
| 538 | - | |||||||||||||||||||
| 539 | - | |||||||||||||||||||
| 540 | if (show_ends
| 19-137 | ||||||||||||||||||
| 541 | * executed 137 times by 1 test: bpout++ = '$';*bpout++ = '$';Executed by:
executed 137 times by 1 test: *bpout++ = '$';Executed by:
| 137 | ||||||||||||||||||
| 542 | - | |||||||||||||||||||
| 543 | - | |||||||||||||||||||
| 544 | - | |||||||||||||||||||
| 545 | *bpout++ = '\n'; | - | ||||||||||||||||||
| 546 | } executed 156 times by 1 test: end of blockExecuted by:
| 156 | ||||||||||||||||||
| 547 | ch = *bpin++; | - | ||||||||||||||||||
| 548 | } executed 169 times by 1 test: end of blockExecuted by:
| 169 | ||||||||||||||||||
| 549 | while (ch == '\n'
| 22-147 | ||||||||||||||||||
| 550 | - | |||||||||||||||||||
| 551 | - | |||||||||||||||||||
| 552 | - | |||||||||||||||||||
| 553 | if (newlines >= 0
| 0-147 | ||||||||||||||||||
| 554 | { | - | ||||||||||||||||||
| 555 | next_line_num (); | - | ||||||||||||||||||
| 556 | bpout = stpcpy (bpout, line_num_print); | - | ||||||||||||||||||
| 557 | } executed 12 times by 1 test: end of blockExecuted by:
| 12 | ||||||||||||||||||
| 558 | if (show_nonprinting
| 31-116 | ||||||||||||||||||
| 559 | { | - | ||||||||||||||||||
| 560 | while ( | - | ||||||||||||||||||
| 561 | 1 | - | ||||||||||||||||||
| 562 | ) | - | ||||||||||||||||||
| 563 | { | - | ||||||||||||||||||
| 564 | if (ch >= 32
| 114-531 | ||||||||||||||||||
| 565 | { | - | ||||||||||||||||||
| 566 | if (ch < 127
| 0-531 | ||||||||||||||||||
| 567 | * executed 531 times by 1 test: bpout++ = ch;*bpout++ = ch;Executed by:
executed 531 times by 1 test: *bpout++ = ch;Executed by:
| 531 | ||||||||||||||||||
| 568 | else if (ch == 127
| 0 | ||||||||||||||||||
| 569 | { | - | ||||||||||||||||||
| 570 | *bpout++ = '^'; | - | ||||||||||||||||||
| 571 | *bpout++ = '?'; | - | ||||||||||||||||||
| 572 | } never executed: end of block | 0 | ||||||||||||||||||
| 573 | else | - | ||||||||||||||||||
| 574 | { | - | ||||||||||||||||||
| 575 | *bpout++ = 'M'; | - | ||||||||||||||||||
| 576 | *bpout++ = '-'; | - | ||||||||||||||||||
| 577 | if (ch >= 128 + 32
| 0 | ||||||||||||||||||
| 578 | { | - | ||||||||||||||||||
| 579 | if (ch < 128 + 127
| 0 | ||||||||||||||||||
| 580 | * never executed: bpout++ = ch - 128;*bpout++ = ch - 128;never executed: *bpout++ = ch - 128; | 0 | ||||||||||||||||||
| 581 | else | - | ||||||||||||||||||
| 582 | { | - | ||||||||||||||||||
| 583 | *bpout++ = '^'; | - | ||||||||||||||||||
| 584 | *bpout++ = '?'; | - | ||||||||||||||||||
| 585 | } never executed: end of block | 0 | ||||||||||||||||||
| 586 | } | - | ||||||||||||||||||
| 587 | else | - | ||||||||||||||||||
| 588 | { | - | ||||||||||||||||||
| 589 | *bpout++ = '^'; | - | ||||||||||||||||||
| 590 | *bpout++ = ch - 128 + 64; | - | ||||||||||||||||||
| 591 | } never executed: end of block | 0 | ||||||||||||||||||
| 592 | } | - | ||||||||||||||||||
| 593 | } | - | ||||||||||||||||||
| 594 | else if (ch == '\t'
| 0-113 | ||||||||||||||||||
| 595 | * never executed: bpout++ = '\t';*bpout++ = '\t';never executed: *bpout++ = '\t'; | 0 | ||||||||||||||||||
| 596 | else if (ch == '\n'
| 31-83 | ||||||||||||||||||
| 597 | { | - | ||||||||||||||||||
| 598 | newlines = -1; | - | ||||||||||||||||||
| 599 | break; executed 31 times by 1 test: break;Executed by:
| 31 | ||||||||||||||||||
| 600 | } | - | ||||||||||||||||||
| 601 | else | - | ||||||||||||||||||
| 602 | { | - | ||||||||||||||||||
| 603 | *bpout++ = '^'; | - | ||||||||||||||||||
| 604 | *bpout++ = ch + 64; | - | ||||||||||||||||||
| 605 | } executed 83 times by 1 test: end of blockExecuted by:
| 83 | ||||||||||||||||||
| 606 | - | |||||||||||||||||||
| 607 | ch = *bpin++; | - | ||||||||||||||||||
| 608 | } executed 614 times by 1 test: end of blockExecuted by:
| 614 | ||||||||||||||||||
| 609 | } executed 31 times by 1 test: end of blockExecuted by:
| 31 | ||||||||||||||||||
| 610 | else | - | ||||||||||||||||||
| 611 | { | - | ||||||||||||||||||
| 612 | - | |||||||||||||||||||
| 613 | while ( | - | ||||||||||||||||||
| 614 | 1 | - | ||||||||||||||||||
| 615 | ) | - | ||||||||||||||||||
| 616 | { | - | ||||||||||||||||||
| 617 | if (ch == '\t'
| 0-2962 | ||||||||||||||||||
| 618 | { | - | ||||||||||||||||||
| 619 | *bpout++ = '^'; | - | ||||||||||||||||||
| 620 | *bpout++ = ch + 64; | - | ||||||||||||||||||
| 621 | } never executed: end of block | 0 | ||||||||||||||||||
| 622 | else if (ch != '\n'
| 116-2978 | ||||||||||||||||||
| 623 | * executed 2978 times by 1 test: bpout++ = ch;*bpout++ = ch;Executed by:
executed 2978 times by 1 test: *bpout++ = ch;Executed by:
| 2978 | ||||||||||||||||||
| 624 | else | - | ||||||||||||||||||
| 625 | { | - | ||||||||||||||||||
| 626 | newlines = -1; | - | ||||||||||||||||||
| 627 | break; executed 116 times by 1 test: break;Executed by:
| 116 | ||||||||||||||||||
| 628 | } | - | ||||||||||||||||||
| 629 | - | |||||||||||||||||||
| 630 | ch = *bpin++; | - | ||||||||||||||||||
| 631 | } executed 2978 times by 1 test: end of blockExecuted by:
| 2978 | ||||||||||||||||||
| 632 | } executed 116 times by 1 test: end of blockExecuted by:
| 116 | ||||||||||||||||||
| 633 | } | - | ||||||||||||||||||
| 634 | } never executed: end of block | 0 | ||||||||||||||||||
| 635 | - | |||||||||||||||||||
| 636 | int | - | ||||||||||||||||||
| 637 | main (int argc, char **argv) | - | ||||||||||||||||||
| 638 | { | - | ||||||||||||||||||
| 639 | - | |||||||||||||||||||
| 640 | size_t outsize; | - | ||||||||||||||||||
| 641 | - | |||||||||||||||||||
| 642 | - | |||||||||||||||||||
| 643 | size_t insize; | - | ||||||||||||||||||
| 644 | - | |||||||||||||||||||
| 645 | size_t page_size = getpagesize (); | - | ||||||||||||||||||
| 646 | - | |||||||||||||||||||
| 647 | - | |||||||||||||||||||
| 648 | char *inbuf; | - | ||||||||||||||||||
| 649 | - | |||||||||||||||||||
| 650 | - | |||||||||||||||||||
| 651 | char *outbuf; | - | ||||||||||||||||||
| 652 | - | |||||||||||||||||||
| 653 | - | |||||||||||||||||||
| 654 | _Bool | - | ||||||||||||||||||
| 655 | ok = | - | ||||||||||||||||||
| 656 | 1 | - | ||||||||||||||||||
| 657 | ; | - | ||||||||||||||||||
| 658 | int c; | - | ||||||||||||||||||
| 659 | - | |||||||||||||||||||
| 660 | - | |||||||||||||||||||
| 661 | int argind; | - | ||||||||||||||||||
| 662 | - | |||||||||||||||||||
| 663 | - | |||||||||||||||||||
| 664 | dev_t out_dev; | - | ||||||||||||||||||
| 665 | - | |||||||||||||||||||
| 666 | - | |||||||||||||||||||
| 667 | ino_t out_ino; | - | ||||||||||||||||||
| 668 | - | |||||||||||||||||||
| 669 | - | |||||||||||||||||||
| 670 | - | |||||||||||||||||||
| 671 | _Bool | - | ||||||||||||||||||
| 672 | out_isreg; | - | ||||||||||||||||||
| 673 | - | |||||||||||||||||||
| 674 | - | |||||||||||||||||||
| 675 | - | |||||||||||||||||||
| 676 | _Bool | - | ||||||||||||||||||
| 677 | have_read_stdin = | - | ||||||||||||||||||
| 678 | 0 | - | ||||||||||||||||||
| 679 | ; | - | ||||||||||||||||||
| 680 | - | |||||||||||||||||||
| 681 | struct stat stat_buf; | - | ||||||||||||||||||
| 682 | - | |||||||||||||||||||
| 683 | - | |||||||||||||||||||
| 684 | - | |||||||||||||||||||
| 685 | _Bool | - | ||||||||||||||||||
| 686 | number = | - | ||||||||||||||||||
| 687 | 0 | - | ||||||||||||||||||
| 688 | ; | - | ||||||||||||||||||
| 689 | - | |||||||||||||||||||
| 690 | _Bool | - | ||||||||||||||||||
| 691 | number_nonblank = | - | ||||||||||||||||||
| 692 | 0 | - | ||||||||||||||||||
| 693 | ; | - | ||||||||||||||||||
| 694 | - | |||||||||||||||||||
| 695 | _Bool | - | ||||||||||||||||||
| 696 | squeeze_blank = | - | ||||||||||||||||||
| 697 | 0 | - | ||||||||||||||||||
| 698 | ; | - | ||||||||||||||||||
| 699 | - | |||||||||||||||||||
| 700 | _Bool | - | ||||||||||||||||||
| 701 | show_ends = | - | ||||||||||||||||||
| 702 | 0 | - | ||||||||||||||||||
| 703 | ; | - | ||||||||||||||||||
| 704 | - | |||||||||||||||||||
| 705 | _Bool | - | ||||||||||||||||||
| 706 | show_nonprinting = | - | ||||||||||||||||||
| 707 | 0 | - | ||||||||||||||||||
| 708 | ; | - | ||||||||||||||||||
| 709 | - | |||||||||||||||||||
| 710 | _Bool | - | ||||||||||||||||||
| 711 | show_tabs = | - | ||||||||||||||||||
| 712 | 0 | - | ||||||||||||||||||
| 713 | ; | - | ||||||||||||||||||
| 714 | int file_open_mode = | - | ||||||||||||||||||
| 715 | 00 | - | ||||||||||||||||||
| 716 | ; | - | ||||||||||||||||||
| 717 | - | |||||||||||||||||||
| 718 | static struct option const long_options[] = | - | ||||||||||||||||||
| 719 | { | - | ||||||||||||||||||
| 720 | {"number-nonblank", | - | ||||||||||||||||||
| 721 | 0 | - | ||||||||||||||||||
| 722 | , | - | ||||||||||||||||||
| 723 | ((void *)0) | - | ||||||||||||||||||
| 724 | , 'b'}, | - | ||||||||||||||||||
| 725 | {"number", | - | ||||||||||||||||||
| 726 | 0 | - | ||||||||||||||||||
| 727 | , | - | ||||||||||||||||||
| 728 | ((void *)0) | - | ||||||||||||||||||
| 729 | , 'n'}, | - | ||||||||||||||||||
| 730 | {"squeeze-blank", | - | ||||||||||||||||||
| 731 | 0 | - | ||||||||||||||||||
| 732 | , | - | ||||||||||||||||||
| 733 | ((void *)0) | - | ||||||||||||||||||
| 734 | , 's'}, | - | ||||||||||||||||||
| 735 | {"show-nonprinting", | - | ||||||||||||||||||
| 736 | 0 | - | ||||||||||||||||||
| 737 | , | - | ||||||||||||||||||
| 738 | ((void *)0) | - | ||||||||||||||||||
| 739 | , 'v'}, | - | ||||||||||||||||||
| 740 | {"show-ends", | - | ||||||||||||||||||
| 741 | 0 | - | ||||||||||||||||||
| 742 | , | - | ||||||||||||||||||
| 743 | ((void *)0) | - | ||||||||||||||||||
| 744 | , 'E'}, | - | ||||||||||||||||||
| 745 | {"show-tabs", | - | ||||||||||||||||||
| 746 | 0 | - | ||||||||||||||||||
| 747 | , | - | ||||||||||||||||||
| 748 | ((void *)0) | - | ||||||||||||||||||
| 749 | , 'T'}, | - | ||||||||||||||||||
| 750 | {"show-all", | - | ||||||||||||||||||
| 751 | 0 | - | ||||||||||||||||||
| 752 | , | - | ||||||||||||||||||
| 753 | ((void *)0) | - | ||||||||||||||||||
| 754 | , 'A'}, | - | ||||||||||||||||||
| 755 | {"help", | - | ||||||||||||||||||
| 756 | 0 | - | ||||||||||||||||||
| 757 | , | - | ||||||||||||||||||
| 758 | ((void *)0) | - | ||||||||||||||||||
| 759 | , GETOPT_HELP_CHAR}, | - | ||||||||||||||||||
| 760 | {"version", | - | ||||||||||||||||||
| 761 | 0 | - | ||||||||||||||||||
| 762 | , | - | ||||||||||||||||||
| 763 | ((void *)0) | - | ||||||||||||||||||
| 764 | , GETOPT_VERSION_CHAR}, | - | ||||||||||||||||||
| 765 | { | - | ||||||||||||||||||
| 766 | ((void *)0) | - | ||||||||||||||||||
| 767 | , 0, | - | ||||||||||||||||||
| 768 | ((void *)0) | - | ||||||||||||||||||
| 769 | , 0} | - | ||||||||||||||||||
| 770 | }; | - | ||||||||||||||||||
| 771 | - | |||||||||||||||||||
| 772 | ; | - | ||||||||||||||||||
| 773 | set_program_name (argv[0]); | - | ||||||||||||||||||
| 774 | setlocale ( | - | ||||||||||||||||||
| 775 | 6 | - | ||||||||||||||||||
| 776 | , ""); | - | ||||||||||||||||||
| 777 | bindtextdomain ("coreutils", "/usr/local/share/locale"); | - | ||||||||||||||||||
| 778 | textdomain ("coreutils"); | - | ||||||||||||||||||
| 779 | - | |||||||||||||||||||
| 780 | - | |||||||||||||||||||
| 781 | - | |||||||||||||||||||
| 782 | - | |||||||||||||||||||
| 783 | - | |||||||||||||||||||
| 784 | atexit (close_stdout); | - | ||||||||||||||||||
| 785 | - | |||||||||||||||||||
| 786 | - | |||||||||||||||||||
| 787 | - | |||||||||||||||||||
| 788 | while ((
| 58-1908 | ||||||||||||||||||
| 789 | ((void *)0)
| 58-1908 | ||||||||||||||||||
| 790 | ))
| 58-1908 | ||||||||||||||||||
| 791 | != -1
| 58-1908 | ||||||||||||||||||
| 792 | { | - | ||||||||||||||||||
| 793 | switch (c) | - | ||||||||||||||||||
| 794 | { | - | ||||||||||||||||||
| 795 | case executed 2 times by 1 test: 'b':case 'b':Executed by:
executed 2 times by 1 test: case 'b':Executed by:
| 2 | ||||||||||||||||||
| 796 | number = | - | ||||||||||||||||||
| 797 | 1 | - | ||||||||||||||||||
| 798 | ; | - | ||||||||||||||||||
| 799 | number_nonblank = | - | ||||||||||||||||||
| 800 | 1 | - | ||||||||||||||||||
| 801 | ; | - | ||||||||||||||||||
| 802 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||
| 803 | - | |||||||||||||||||||
| 804 | case executed 1 time by 1 test: 'e':case 'e':Executed by:
executed 1 time by 1 test: case 'e':Executed by:
| 1 | ||||||||||||||||||
| 805 | show_ends = | - | ||||||||||||||||||
| 806 | 1 | - | ||||||||||||||||||
| 807 | ; | - | ||||||||||||||||||
| 808 | show_nonprinting = | - | ||||||||||||||||||
| 809 | 1 | - | ||||||||||||||||||
| 810 | ; | - | ||||||||||||||||||
| 811 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||
| 812 | - | |||||||||||||||||||
| 813 | case executed 7 times by 1 test: 'n':case 'n':Executed by:
executed 7 times by 1 test: case 'n':Executed by:
| 7 | ||||||||||||||||||
| 814 | number = | - | ||||||||||||||||||
| 815 | 1 | - | ||||||||||||||||||
| 816 | ; | - | ||||||||||||||||||
| 817 | break; executed 7 times by 1 test: break;Executed by:
| 7 | ||||||||||||||||||
| 818 | - | |||||||||||||||||||
| 819 | case executed 2 times by 1 test: 's':case 's':Executed by:
executed 2 times by 1 test: case 's':Executed by:
| 2 | ||||||||||||||||||
| 820 | squeeze_blank = | - | ||||||||||||||||||
| 821 | 1 | - | ||||||||||||||||||
| 822 | ; | - | ||||||||||||||||||
| 823 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||
| 824 | - | |||||||||||||||||||
| 825 | case executed 1 time by 1 test: 't':case 't':Executed by:
executed 1 time by 1 test: case 't':Executed by:
| 1 | ||||||||||||||||||
| 826 | show_tabs = | - | ||||||||||||||||||
| 827 | 1 | - | ||||||||||||||||||
| 828 | ; | - | ||||||||||||||||||
| 829 | show_nonprinting = | - | ||||||||||||||||||
| 830 | 1 | - | ||||||||||||||||||
| 831 | ; | - | ||||||||||||||||||
| 832 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||
| 833 | - | |||||||||||||||||||
| 834 | case executed 1 time by 1 test: 'u':case 'u':Executed by:
executed 1 time by 1 test: case 'u':Executed by:
| 1 | ||||||||||||||||||
| 835 | - | |||||||||||||||||||
| 836 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||
| 837 | - | |||||||||||||||||||
| 838 | case executed 3 times by 1 test: 'v':case 'v':Executed by:
executed 3 times by 1 test: case 'v':Executed by:
| 3 | ||||||||||||||||||
| 839 | show_nonprinting = | - | ||||||||||||||||||
| 840 | 1 | - | ||||||||||||||||||
| 841 | ; | - | ||||||||||||||||||
| 842 | break; executed 3 times by 1 test: break;Executed by:
| 3 | ||||||||||||||||||
| 843 | - | |||||||||||||||||||
| 844 | case executed 7 times by 1 test: 'A':case 'A':Executed by:
executed 7 times by 1 test: case 'A':Executed by:
| 7 | ||||||||||||||||||
| 845 | show_nonprinting = | - | ||||||||||||||||||
| 846 | 1 | - | ||||||||||||||||||
| 847 | ; | - | ||||||||||||||||||
| 848 | show_ends = | - | ||||||||||||||||||
| 849 | 1 | - | ||||||||||||||||||
| 850 | ; | - | ||||||||||||||||||
| 851 | show_tabs = | - | ||||||||||||||||||
| 852 | 1 | - | ||||||||||||||||||
| 853 | ; | - | ||||||||||||||||||
| 854 | break; executed 7 times by 1 test: break;Executed by:
| 7 | ||||||||||||||||||
| 855 | - | |||||||||||||||||||
| 856 | case executed 3 times by 1 test: 'E':case 'E':Executed by:
executed 3 times by 1 test: case 'E':Executed by:
| 3 | ||||||||||||||||||
| 857 | show_ends = | - | ||||||||||||||||||
| 858 | 1 | - | ||||||||||||||||||
| 859 | ; | - | ||||||||||||||||||
| 860 | break; executed 3 times by 1 test: break;Executed by:
| 3 | ||||||||||||||||||
| 861 | - | |||||||||||||||||||
| 862 | case executed 2 times by 1 test: 'T':case 'T':Executed by:
executed 2 times by 1 test: case 'T':Executed by:
| 2 | ||||||||||||||||||
| 863 | show_tabs = | - | ||||||||||||||||||
| 864 | 1 | - | ||||||||||||||||||
| 865 | ; | - | ||||||||||||||||||
| 866 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||
| 867 | - | |||||||||||||||||||
| 868 | case executed 20 times by 1 test: GETOPT_HELP_CHAR:case GETOPT_HELP_CHAR:Executed by:
executed 20 times by 1 test: usage (case GETOPT_HELP_CHAR:Executed by:
| 20 | ||||||||||||||||||
| 869 | 0 | - | ||||||||||||||||||
| 870 | ); break; never executed: ;break; | 0 | ||||||||||||||||||
| 871 | - | |||||||||||||||||||
| 872 | case executed 6 times by 1 test: GETOPT_VERSION_CHAR:case GETOPT_VERSION_CHAR:Executed by:
executed 6 times by 1 test: version_etc (case GETOPT_VERSION_CHAR:Executed by:
| 6 | ||||||||||||||||||
| 873 | stdout | - | ||||||||||||||||||
| 874 | , "cat", "GNU coreutils", Version, ("Torbjorn Granlund"), ("Richard M. Stallman"), (char *) | - | ||||||||||||||||||
| 875 | ((void *)0) | - | ||||||||||||||||||
| 876 | ); exit ( executed 6 times by 1 test: exit ( 0 );Executed by:
| 6 | ||||||||||||||||||
| 877 | 0 executed 6 times by 1 test: exit ( 0 );Executed by:
| 6 | ||||||||||||||||||
| 878 | ); executed 6 times by 1 test: break;exit ( 0 );Executed by:
never executed: ;break; | 0-6 | ||||||||||||||||||
| 879 | - | |||||||||||||||||||
| 880 | default executed 3 times by 1 test: :default:Executed by:
executed 3 times by 1 test: default:Executed by:
| 3 | ||||||||||||||||||
| 881 | usage ( | - | ||||||||||||||||||
| 882 | 1 | - | ||||||||||||||||||
| 883 | ); | - | ||||||||||||||||||
| 884 | } never executed: end of block | 0 | ||||||||||||||||||
| 885 | } | - | ||||||||||||||||||
| 886 | - | |||||||||||||||||||
| 887 | - | |||||||||||||||||||
| 888 | - | |||||||||||||||||||
| 889 | if (fstat (
| 0-1908 | ||||||||||||||||||
| 890 | 1
| 0-1908 | ||||||||||||||||||
| 891 | , &stat_buf) < 0
| 0-1908 | ||||||||||||||||||
| 892 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 893 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 894 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 895 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 896 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 897 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 898 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 899 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 900 | "standard output" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 901 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 902 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 903 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 904 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 905 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 906 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 907 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 908 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 909 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 910 | "standard output" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 911 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 912 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 913 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 914 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard output\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard output" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 915 | - | |||||||||||||||||||
| 916 | outsize = io_blksize (stat_buf); | - | ||||||||||||||||||
| 917 | out_dev = stat_buf.st_dev; | - | ||||||||||||||||||
| 918 | out_ino = stat_buf.st_ino; | - | ||||||||||||||||||
| 919 | out_isreg = | - | ||||||||||||||||||
| 920 | (((( | - | ||||||||||||||||||
| 921 | stat_buf.st_mode | - | ||||||||||||||||||
| 922 | )) & 0170000) == (0100000)) | - | ||||||||||||||||||
| 923 | != 0; | - | ||||||||||||||||||
| 924 | - | |||||||||||||||||||
| 925 | if (! (number
| 0-1903 | ||||||||||||||||||
| 926 | { | - | ||||||||||||||||||
| 927 | file_open_mode |= | - | ||||||||||||||||||
| 928 | 0 | - | ||||||||||||||||||
| 929 | ; | - | ||||||||||||||||||
| 930 | xset_binary_mode ( | - | ||||||||||||||||||
| 931 | 1 | - | ||||||||||||||||||
| 932 | , | - | ||||||||||||||||||
| 933 | 0 | - | ||||||||||||||||||
| 934 | ); | - | ||||||||||||||||||
| 935 | } executed 1897 times by 1 test: end of blockExecuted by:
| 1897 | ||||||||||||||||||
| 936 | - | |||||||||||||||||||
| 937 | - | |||||||||||||||||||
| 938 | - | |||||||||||||||||||
| 939 | - | |||||||||||||||||||
| 940 | - | |||||||||||||||||||
| 941 | infile = "-"; | - | ||||||||||||||||||
| 942 | argind = optind; | - | ||||||||||||||||||
| 943 | - | |||||||||||||||||||
| 944 | do | - | ||||||||||||||||||
| 945 | { | - | ||||||||||||||||||
| 946 | if (argind < argc
| 210-2231 | ||||||||||||||||||
| 947 | infile = argv[argind]; executed 2231 times by 1 test: infile = argv[argind];Executed by:
| 2231 | ||||||||||||||||||
| 948 | - | |||||||||||||||||||
| 949 | if ((
| 211-2230 | ||||||||||||||||||
| 950 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 211-2230 | ||||||||||||||||||
| 951 | infile
| 211-2230 | ||||||||||||||||||
| 952 | ) && __builtin_constant_p (
| 211-2230 | ||||||||||||||||||
| 953 | "-"
| 211-2230 | ||||||||||||||||||
| 954 | ) && (__s1_len = __builtin_strlen (
| 211-2230 | ||||||||||||||||||
| 955 | infile
| 211-2230 | ||||||||||||||||||
| 956 | ), __s2_len = __builtin_strlen (
| 211-2230 | ||||||||||||||||||
| 957 | "-"
| 211-2230 | ||||||||||||||||||
| 958 | ), (!((size_t)(const void *)((
| 211-2230 | ||||||||||||||||||
| 959 | infile
| 211-2230 | ||||||||||||||||||
| 960 | ) + 1) - (size_t)(const void *)(
| 211-2230 | ||||||||||||||||||
| 961 | infile
| 211-2230 | ||||||||||||||||||
| 962 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 211-2230 | ||||||||||||||||||
| 963 | "-"
| 211-2230 | ||||||||||||||||||
| 964 | ) + 1) - (size_t)(const void *)(
| 211-2230 | ||||||||||||||||||
| 965 | "-"
| 211-2230 | ||||||||||||||||||
| 966 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 211-2230 | ||||||||||||||||||
| 967 | infile
| 211-2230 | ||||||||||||||||||
| 968 | ,
| 211-2230 | ||||||||||||||||||
| 969 | "-"
| 211-2230 | ||||||||||||||||||
| 970 | ) : (__builtin_constant_p (
| 211-2230 | ||||||||||||||||||
| 971 | infile
| 211-2230 | ||||||||||||||||||
| 972 | ) && ((size_t)(const void *)((
| 211-2230 | ||||||||||||||||||
| 973 | infile
| 211-2230 | ||||||||||||||||||
| 974 | ) + 1) - (size_t)(const void *)(
| 211-2230 | ||||||||||||||||||
| 975 | infile
| 211-2230 | ||||||||||||||||||
| 976 | ) == 1) && (__s1_len = __builtin_strlen (
| 211-2230 | ||||||||||||||||||
| 977 | infile
| 211-2230 | ||||||||||||||||||
| 978 | ), __s1_len < 4) ? (__builtin_constant_p (
| 211-2230 | ||||||||||||||||||
| 979 | "-"
| 211-2230 | ||||||||||||||||||
| 980 | ) && ((size_t)(const void *)((
| 211-2230 | ||||||||||||||||||
| 981 | "-"
| 211-2230 | ||||||||||||||||||
| 982 | ) + 1) - (size_t)(const void *)(
| 211-2230 | ||||||||||||||||||
| 983 | "-"
| 211-2230 | ||||||||||||||||||
| 984 | ) == 1) ? __builtin_strcmp (
| 211-2230 | ||||||||||||||||||
| 985 | infile
| 211-2230 | ||||||||||||||||||
| 986 | ,
| 211-2230 | ||||||||||||||||||
| 987 | "-"
| 211-2230 | ||||||||||||||||||
| 988 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 211-2230 | ||||||||||||||||||
| 989 | "-"
| 211-2230 | ||||||||||||||||||
| 990 | ); int __result = (((const unsigned char *) (const char *) (
| 211-2230 | ||||||||||||||||||
| 991 | infile
| 211-2230 | ||||||||||||||||||
| 992 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-2230 | ||||||||||||||||||
| 993 | infile
| 211-2230 | ||||||||||||||||||
| 994 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-2230 | ||||||||||||||||||
| 995 | infile
| 211-2230 | ||||||||||||||||||
| 996 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( infile ))[3] - __s2[3]);
| 0-2230 | ||||||||||||||||||
| 997 | infile
never executed: __result = (((const unsigned char *) (const char *) ( infile ))[3] - __s2[3]); | 0-2230 | ||||||||||||||||||
| 998 | ))[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-2230 | ||||||||||||||||||
| 999 | "-"
| 211-2230 | ||||||||||||||||||
| 1000 | ) && ((size_t)(const void *)((
| 211-2230 | ||||||||||||||||||
| 1001 | "-"
| 211-2230 | ||||||||||||||||||
| 1002 | ) + 1) - (size_t)(const void *)(
| 211-2230 | ||||||||||||||||||
| 1003 | "-"
| 211-2230 | ||||||||||||||||||
| 1004 | ) == 1) && (__s2_len = __builtin_strlen (
| 211-2230 | ||||||||||||||||||
| 1005 | "-"
| 211-2230 | ||||||||||||||||||
| 1006 | ), __s2_len < 4) ? (__builtin_constant_p (
| 211-2230 | ||||||||||||||||||
| 1007 | infile
| 211-2230 | ||||||||||||||||||
| 1008 | ) && ((size_t)(const void *)((
| 211-2230 | ||||||||||||||||||
| 1009 | infile
| 211-2230 | ||||||||||||||||||
| 1010 | ) + 1) - (size_t)(const void *)(
| 211-2230 | ||||||||||||||||||
| 1011 | infile
| 211-2230 | ||||||||||||||||||
| 1012 | ) == 1) ? __builtin_strcmp (
| 211-2230 | ||||||||||||||||||
| 1013 | infile
| 211-2230 | ||||||||||||||||||
| 1014 | ,
| 211-2230 | ||||||||||||||||||
| 1015 | "-"
| 211-2230 | ||||||||||||||||||
| 1016 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 211-2230 | ||||||||||||||||||
| 1017 | infile
| 211-2230 | ||||||||||||||||||
| 1018 | ); int __result = (((const unsigned char *) (const char *) (
| 211-2230 | ||||||||||||||||||
| 1019 | "-"
| 211-2230 | ||||||||||||||||||
| 1020 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-2441 | ||||||||||||||||||
| 1021 | "-"
| 211-2230 | ||||||||||||||||||
| 1022 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-2230 | ||||||||||||||||||
| 1023 | "-"
| 211-2230 | ||||||||||||||||||
| 1024 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-2230 | ||||||||||||||||||
| 1025 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-2230 | ||||||||||||||||||
| 1026 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);never executed: } __result; }))) : __builtin_strcmp (end of block
| 0-2230 | ||||||||||||||||||
| 1027 | infile
| 211-2230 | ||||||||||||||||||
| 1028 | ,
| 211-2230 | ||||||||||||||||||
| 1029 | "-"
| 211-2230 | ||||||||||||||||||
| 1030 | )))); })
| 211-2230 | ||||||||||||||||||
| 1031 | == 0)
| 211-2230 | ||||||||||||||||||
| 1032 | { | - | ||||||||||||||||||
| 1033 | have_read_stdin = | - | ||||||||||||||||||
| 1034 | 1 | - | ||||||||||||||||||
| 1035 | ; | - | ||||||||||||||||||
| 1036 | input_desc = | - | ||||||||||||||||||
| 1037 | 0 | - | ||||||||||||||||||
| 1038 | ; | - | ||||||||||||||||||
| 1039 | if (file_open_mode &
| 0-211 | ||||||||||||||||||
| 1040 | 0
| 0-211 | ||||||||||||||||||
| 1041 | ) | - | ||||||||||||||||||
| 1042 | xset_binary_mode ( never executed: xset_binary_mode ( 0 , 0 ); | 0 | ||||||||||||||||||
| 1043 | 0 never executed: xset_binary_mode ( 0 , 0 ); | 0 | ||||||||||||||||||
| 1044 | , never executed: xset_binary_mode ( 0 , 0 ); | 0 | ||||||||||||||||||
| 1045 | 0 never executed: xset_binary_mode ( 0 , 0 ); | 0 | ||||||||||||||||||
| 1046 | ); never executed: xset_binary_mode ( 0 , 0 ); | 0 | ||||||||||||||||||
| 1047 | } executed 211 times by 1 test: end of blockExecuted by:
| 211 | ||||||||||||||||||
| 1048 | else | - | ||||||||||||||||||
| 1049 | { | - | ||||||||||||||||||
| 1050 | input_desc = open (infile, file_open_mode); | - | ||||||||||||||||||
| 1051 | if (input_desc < 0
| 2-2228 | ||||||||||||||||||
| 1052 | { | - | ||||||||||||||||||
| 1053 | error (0, | - | ||||||||||||||||||
| 1054 | (*__errno_location ()) | - | ||||||||||||||||||
| 1055 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)); | - | ||||||||||||||||||
| 1056 | ok = | - | ||||||||||||||||||
| 1057 | 0 | - | ||||||||||||||||||
| 1058 | ; | - | ||||||||||||||||||
| 1059 | continue; executed 2 times by 1 test: continue;Executed by:
| 2 | ||||||||||||||||||
| 1060 | } | - | ||||||||||||||||||
| 1061 | } executed 2228 times by 1 test: end of blockExecuted by:
| 2228 | ||||||||||||||||||
| 1062 | - | |||||||||||||||||||
| 1063 | if (fstat (input_desc, &stat_buf) < 0
| 0-2439 | ||||||||||||||||||
| 1064 | { | - | ||||||||||||||||||
| 1065 | error (0, | - | ||||||||||||||||||
| 1066 | (*__errno_location ()) | - | ||||||||||||||||||
| 1067 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)); | - | ||||||||||||||||||
| 1068 | ok = | - | ||||||||||||||||||
| 1069 | 0 | - | ||||||||||||||||||
| 1070 | ; | - | ||||||||||||||||||
| 1071 | goto never executed: contin;goto contin;never executed: goto contin; | 0 | ||||||||||||||||||
| 1072 | } | - | ||||||||||||||||||
| 1073 | insize = io_blksize (stat_buf); | - | ||||||||||||||||||
| 1074 | - | |||||||||||||||||||
| 1075 | fdadvise (input_desc, 0, 0, FADVISE_SEQUENTIAL); | - | ||||||||||||||||||
| 1076 | - | |||||||||||||||||||
| 1077 | - | |||||||||||||||||||
| 1078 | - | |||||||||||||||||||
| 1079 | - | |||||||||||||||||||
| 1080 | - | |||||||||||||||||||
| 1081 | if (out_isreg
| 1171-1268 | ||||||||||||||||||
| 1082 | && stat_buf.st_dev == out_dev
| 2-1167 | ||||||||||||||||||
| 1083 | && lseek (input_desc, 0,
| 1 | ||||||||||||||||||
| 1084 | 1
| 1 | ||||||||||||||||||
| 1085 | ) < stat_buf.st_size
| 1 | ||||||||||||||||||
| 1086 | { | - | ||||||||||||||||||
| 1087 | error (0, 0, | - | ||||||||||||||||||
| 1088 | dcgettext (((void *)0), | - | ||||||||||||||||||
| 1089 | "%s: input file is output file" | - | ||||||||||||||||||
| 1090 | , 5) | - | ||||||||||||||||||
| 1091 | , quotearg_n_style_colon (0, shell_escape_quoting_style, infile)); | - | ||||||||||||||||||
| 1092 | ok = | - | ||||||||||||||||||
| 1093 | 0 | - | ||||||||||||||||||
| 1094 | ; | - | ||||||||||||||||||
| 1095 | goto executed 1 time by 1 test: contin;goto contin;Executed by:
executed 1 time by 1 test: goto contin;Executed by:
| 1 | ||||||||||||||||||
| 1096 | } | - | ||||||||||||||||||
| 1097 | - | |||||||||||||||||||
| 1098 | - | |||||||||||||||||||
| 1099 | - | |||||||||||||||||||
| 1100 | - | |||||||||||||||||||
| 1101 | if (! (number
| 1-2433 | ||||||||||||||||||
| 1102 | || show_tabs
| 0-2426 | ||||||||||||||||||
| 1103 | { | - | ||||||||||||||||||
| 1104 | insize = | - | ||||||||||||||||||
| 1105 | (((
| 0-2426 | ||||||||||||||||||
| 1106 | insize
| 0-2426 | ||||||||||||||||||
| 1107 | )>(
| 0-2426 | ||||||||||||||||||
| 1108 | outsize
| 0-2426 | ||||||||||||||||||
| 1109 | ))
| 0-2426 | ||||||||||||||||||
| 1110 | insize | - | ||||||||||||||||||
| 1111 | ):( | - | ||||||||||||||||||
| 1112 | outsize | - | ||||||||||||||||||
| 1113 | )) | - | ||||||||||||||||||
| 1114 | ; | - | ||||||||||||||||||
| 1115 | inbuf = xmalloc (insize + page_size - 1); | - | ||||||||||||||||||
| 1116 | - | |||||||||||||||||||
| 1117 | ok &= simple_cat (ptr_align (inbuf, page_size), insize); | - | ||||||||||||||||||
| 1118 | } executed 2425 times by 1 test: end of blockExecuted by:
| 2425 | ||||||||||||||||||
| 1119 | else | - | ||||||||||||||||||
| 1120 | { | - | ||||||||||||||||||
| 1121 | inbuf = xmalloc (insize + 1 + page_size - 1); | - | ||||||||||||||||||
| 1122 | outbuf = xmalloc (outsize - 1 + insize * 4 + 20 | - | ||||||||||||||||||
| 1123 | + page_size - 1); | - | ||||||||||||||||||
| 1124 | - | |||||||||||||||||||
| 1125 | ok &= cat (ptr_align (inbuf, page_size), insize, | - | ||||||||||||||||||
| 1126 | ptr_align (outbuf, page_size), outsize, show_nonprinting, | - | ||||||||||||||||||
| 1127 | show_tabs, number, number_nonblank, show_ends, | - | ||||||||||||||||||
| 1128 | squeeze_blank); | - | ||||||||||||||||||
| 1129 | - | |||||||||||||||||||
| 1130 | free (outbuf); | - | ||||||||||||||||||
| 1131 | } executed 11 times by 1 test: end of blockExecuted by:
| 11 | ||||||||||||||||||
| 1132 | - | |||||||||||||||||||
| 1133 | free (inbuf); | - | ||||||||||||||||||
| 1134 | - | |||||||||||||||||||
| 1135 | contin: code before this statement executed 2436 times by 1 test: contin:Executed by:
| 2436 | ||||||||||||||||||
| 1136 | if (!(
| 210-2227 | ||||||||||||||||||
| 1137 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 210-2227 | ||||||||||||||||||
| 1138 | infile
| 210-2227 | ||||||||||||||||||
| 1139 | ) && __builtin_constant_p (
| 210-2227 | ||||||||||||||||||
| 1140 | "-"
| 210-2227 | ||||||||||||||||||
| 1141 | ) && (__s1_len = __builtin_strlen (
| 210-2227 | ||||||||||||||||||
| 1142 | infile
| 210-2227 | ||||||||||||||||||
| 1143 | ), __s2_len = __builtin_strlen (
| 210-2227 | ||||||||||||||||||
| 1144 | "-"
| 210-2227 | ||||||||||||||||||
| 1145 | ), (!((size_t)(const void *)((
| 210-2227 | ||||||||||||||||||
| 1146 | infile
| 210-2227 | ||||||||||||||||||
| 1147 | ) + 1) - (size_t)(const void *)(
| 210-2227 | ||||||||||||||||||
| 1148 | infile
| 210-2227 | ||||||||||||||||||
| 1149 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 210-2227 | ||||||||||||||||||
| 1150 | "-"
| 210-2227 | ||||||||||||||||||
| 1151 | ) + 1) - (size_t)(const void *)(
| 210-2227 | ||||||||||||||||||
| 1152 | "-"
| 210-2227 | ||||||||||||||||||
| 1153 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 210-2227 | ||||||||||||||||||
| 1154 | infile
| 210-2227 | ||||||||||||||||||
| 1155 | ,
| 210-2227 | ||||||||||||||||||
| 1156 | "-"
| 210-2227 | ||||||||||||||||||
| 1157 | ) : (__builtin_constant_p (
| 210-2227 | ||||||||||||||||||
| 1158 | infile
| 210-2227 | ||||||||||||||||||
| 1159 | ) && ((size_t)(const void *)((
| 210-2227 | ||||||||||||||||||
| 1160 | infile
| 210-2227 | ||||||||||||||||||
| 1161 | ) + 1) - (size_t)(const void *)(
| 210-2227 | ||||||||||||||||||
| 1162 | infile
| 210-2227 | ||||||||||||||||||
| 1163 | ) == 1) && (__s1_len = __builtin_strlen (
| 210-2227 | ||||||||||||||||||
| 1164 | infile
| 210-2227 | ||||||||||||||||||
| 1165 | ), __s1_len < 4) ? (__builtin_constant_p (
| 210-2227 | ||||||||||||||||||
| 1166 | "-"
| 210-2227 | ||||||||||||||||||
| 1167 | ) && ((size_t)(const void *)((
| 210-2227 | ||||||||||||||||||
| 1168 | "-"
| 210-2227 | ||||||||||||||||||
| 1169 | ) + 1) - (size_t)(const void *)(
| 210-2227 | ||||||||||||||||||
| 1170 | "-"
| 210-2227 | ||||||||||||||||||
| 1171 | ) == 1) ? __builtin_strcmp (
| 210-2227 | ||||||||||||||||||
| 1172 | infile
| 210-2227 | ||||||||||||||||||
| 1173 | ,
| 210-2227 | ||||||||||||||||||
| 1174 | "-"
| 210-2227 | ||||||||||||||||||
| 1175 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 210-2227 | ||||||||||||||||||
| 1176 | "-"
| 210-2227 | ||||||||||||||||||
| 1177 | ); int __result = (((const unsigned char *) (const char *) (
| 210-2227 | ||||||||||||||||||
| 1178 | infile
| 210-2227 | ||||||||||||||||||
| 1179 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-2227 | ||||||||||||||||||
| 1180 | infile
| 210-2227 | ||||||||||||||||||
| 1181 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-2227 | ||||||||||||||||||
| 1182 | infile
| 210-2227 | ||||||||||||||||||
| 1183 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( infile ))[3] - __s2[3]);
| 0-2227 | ||||||||||||||||||
| 1184 | infile
never executed: __result = (((const unsigned char *) (const char *) ( infile ))[3] - __s2[3]); | 0-2227 | ||||||||||||||||||
| 1185 | ))[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-2227 | ||||||||||||||||||
| 1186 | "-"
| 210-2227 | ||||||||||||||||||
| 1187 | ) && ((size_t)(const void *)((
| 210-2227 | ||||||||||||||||||
| 1188 | "-"
| 210-2227 | ||||||||||||||||||
| 1189 | ) + 1) - (size_t)(const void *)(
| 210-2227 | ||||||||||||||||||
| 1190 | "-"
| 210-2227 | ||||||||||||||||||
| 1191 | ) == 1) && (__s2_len = __builtin_strlen (
| 210-2227 | ||||||||||||||||||
| 1192 | "-"
| 210-2227 | ||||||||||||||||||
| 1193 | ), __s2_len < 4) ? (__builtin_constant_p (
| 210-2227 | ||||||||||||||||||
| 1194 | infile
| 210-2227 | ||||||||||||||||||
| 1195 | ) && ((size_t)(const void *)((
| 210-2227 | ||||||||||||||||||
| 1196 | infile
| 210-2227 | ||||||||||||||||||
| 1197 | ) + 1) - (size_t)(const void *)(
| 210-2227 | ||||||||||||||||||
| 1198 | infile
| 210-2227 | ||||||||||||||||||
| 1199 | ) == 1) ? __builtin_strcmp (
| 210-2227 | ||||||||||||||||||
| 1200 | infile
| 210-2227 | ||||||||||||||||||
| 1201 | ,
| 210-2227 | ||||||||||||||||||
| 1202 | "-"
| 210-2227 | ||||||||||||||||||
| 1203 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 210-2227 | ||||||||||||||||||
| 1204 | infile
| 210-2227 | ||||||||||||||||||
| 1205 | ); int __result = (((const unsigned char *) (const char *) (
| 210-2227 | ||||||||||||||||||
| 1206 | "-"
| 210-2227 | ||||||||||||||||||
| 1207 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-2437 | ||||||||||||||||||
| 1208 | "-"
| 210-2227 | ||||||||||||||||||
| 1209 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-2227 | ||||||||||||||||||
| 1210 | "-"
| 210-2227 | ||||||||||||||||||
| 1211 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-2227 | ||||||||||||||||||
| 1212 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-2227 | ||||||||||||||||||
| 1213 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);never executed: } __result; }))) : __builtin_strcmp (end of block
| 0-2227 | ||||||||||||||||||
| 1214 | infile
| 210-2227 | ||||||||||||||||||
| 1215 | ,
| 210-2227 | ||||||||||||||||||
| 1216 | "-"
| 210-2227 | ||||||||||||||||||
| 1217 | )))); })
| 210-2227 | ||||||||||||||||||
| 1218 | == 0)
| 0-2227 | ||||||||||||||||||
| 1219 | { | - | ||||||||||||||||||
| 1220 | error (0, | - | ||||||||||||||||||
| 1221 | (*__errno_location ()) | - | ||||||||||||||||||
| 1222 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, infile)); | - | ||||||||||||||||||
| 1223 | ok = | - | ||||||||||||||||||
| 1224 | 0 | - | ||||||||||||||||||
| 1225 | ; | - | ||||||||||||||||||
| 1226 | } never executed: end of block | 0 | ||||||||||||||||||
| 1227 | } executed 2437 times by 1 test: end of blockExecuted by:
| 2437 | ||||||||||||||||||
| 1228 | while (++
| 533-1906 | ||||||||||||||||||
| 1229 | - | |||||||||||||||||||
| 1230 | if (have_read_stdin
| 0-1696 | ||||||||||||||||||
| 1231 | 0
| 0-210 | ||||||||||||||||||
| 1232 | ) < 0
| 0-210 | ||||||||||||||||||
| 1233 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))));never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1234 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1235 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1236 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1237 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1238 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1239 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1240 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1241 | "closing standard input" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1242 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1243 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1244 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1245 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1246 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1247 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1248 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1249 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1250 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1251 | "closing standard input" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1252 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1253 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1254 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1255 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"closing standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "closing standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||
| 1256 | - | |||||||||||||||||||
| 1257 | return executed 1906 times by 1 test: ok ? return ok ? 0 : 1 ;Executed by:
executed 1906 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 1906 | ||||||||||||||||||
| 1258 | 0 executed 1906 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 1906 | ||||||||||||||||||
| 1259 | : executed 1906 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 1906 | ||||||||||||||||||
| 1260 | 1 executed 1906 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 1906 | ||||||||||||||||||
| 1261 | ; executed 1906 times by 1 test: return ok ? 0 : 1 ;Executed by:
| 1906 | ||||||||||||||||||
| 1262 | } | - | ||||||||||||||||||
| Switch to Source code | Preprocessed file |