| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | int here_doc_first_line = 0; | - |
| 15 | | - |
| 16 | | - |
| 17 | sh_obj_cache_t wdcache = {0, 0, 0}; | - |
| 18 | sh_obj_cache_t wlcache = {0, 0, 0}; | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | static COMMAND *make_for_or_select (enum command_type, WORD_DESC *, WORD_LIST *, COMMAND *, int); | - |
| 24 | | - |
| 25 | static WORD_LIST *make_arith_for_expr (char *); | - |
| 26 | | - |
| 27 | static COMMAND *make_until_or_while (enum command_type, COMMAND *, COMMAND *); | - |
| 28 | | - |
| 29 | void | - |
| 30 | cmd_init () | - |
| 31 | { | - |
| 32 | do { (wdcache).data = sh_xmalloc(((128) * sizeof (WORD_DESC *)), "make_cmd.c", 67); (wdcache).cs = (128); (wdcache).nc = 0; } while (0); | - |
| 33 | do { (wlcache).data = sh_xmalloc(((128) * sizeof (WORD_LIST *)), "make_cmd.c", 68); (wlcache).cs = (128); (wlcache).nc = 0; } while (0); | - |
| 34 | }executed 5446 times by 1 test: end of block | 5446 |
| 35 | | - |
| 36 | WORD_DESC * | - |
| 37 | alloc_word_desc () | - |
| 38 | { | - |
| 39 | WORD_DESC *temp; | - |
| 40 | | - |
| 41 | do { if ((| TRUE | evaluated 637154073 times by 1 test | | FALSE | evaluated 38743462 times by 1 test |
wdcache).nc > 0| TRUE | evaluated 637154073 times by 1 test | | FALSE | evaluated 38743462 times by 1 test |
) { (temp) = (WORD_DESC *)((WORD_DESC **)((wdcache).data))[--(wdcache).nc]; }executed 637154073 times by 1 test: end of block else (executed 38743462 times by 1 test: (temp) = (WORD_DESC *)sh_xmalloc((sizeof (WORD_DESC)), "make_cmd.c", 76); temp) = (WORD_DESC *)sh_xmalloc((sizeof (WORD_DESC)), "make_cmd.c", 76);executed 38743462 times by 1 test: (temp) = (WORD_DESC *)sh_xmalloc((sizeof (WORD_DESC)), "make_cmd.c", 76); } while (0); | 38743462-637154073 |
| 42 | temp->flags = 0; | - |
| 43 | temp->word = 0; | - |
| 44 | returnexecuted 675897535 times by 1 test: return temp; temp;executed 675897535 times by 1 test: return temp; | 675897535 |
| 45 | } | - |
| 46 | | - |
| 47 | WORD_DESC * | - |
| 48 | make_bare_word (string) | - |
| 49 | const char *string; | - |
| 50 | { | - |
| 51 | WORD_DESC *temp; | - |
| 52 | | - |
| 53 | temp = alloc_word_desc (); | - |
| 54 | | - |
| 55 | if (*| TRUE | evaluated 324499458 times by 1 test | | FALSE | evaluated 799 times by 1 test |
string| TRUE | evaluated 324499458 times by 1 test | | FALSE | evaluated 799 times by 1 test |
) | 799-324499458 |
| 56 | temp->word = (char *)strcpy (sh_xmalloc((1 + strlen (string)), "make_cmd.c", 91), (string));executed 324499458 times by 1 test: temp->word = (char *)strcpy (sh_xmalloc((1 + strlen (string)), "make_cmd.c", 91), (string)); | 324499458 |
| 57 | else | - |
| 58 | { | - |
| 59 | temp->word = (char *)sh_xmalloc((1), "make_cmd.c", 94); | - |
| 60 | temp->word[0] = '\0'; | - |
| 61 | }executed 799 times by 1 test: end of block | 799 |
| 62 | | - |
| 63 | returnexecuted 324500257 times by 1 test: return (temp); (temp);executed 324500257 times by 1 test: return (temp); | 324500257 |
| 64 | } | - |
| 65 | | - |
| 66 | WORD_DESC * | - |
| 67 | make_word_flags (w, string) | - |
| 68 | WORD_DESC *w; | - |
| 69 | const char *string; | - |
| 70 | { | - |
| 71 | register int i; | - |
| 72 | size_t slen; | - |
| 73 | mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); | - |
| 74 | | - |
| 75 | i = 0; | - |
| 76 | slen = strlen (string); | - |
| 77 | while (i < slen| TRUE | evaluated 5505273 times by 1 test | | FALSE | evaluated 4640662 times by 1 test |
) | 4640662-5505273 |
| 78 | { | - |
| 79 | switch (string[i]) | - |
| 80 | { | - |
| 81 | caseexecuted 1032 times by 1 test: case '$': '$':executed 1032 times by 1 test: case '$': | 1032 |
| 82 | w->flags |= 0x000001; | - |
| 83 | break;executed 1032 times by 1 test: break; | 1032 |
| 84 | caseexecuted 800 times by 1 test: case '\\': '\\':executed 800 times by 1 test: case '\\': | 800 |
| 85 | break;executed 800 times by 1 test: break; | 800 |
| 86 | caseexecuted 804 times by 1 test: case '\'': '\'':executed 804 times by 1 test: case '\'': | 804 |
| 87 | caseexecuted 43 times by 1 test: case '`': '`':executed 43 times by 1 test: case '`': | 43 |
| 88 | caseexecuted 1817 times by 1 test: case '"': '"':executed 1817 times by 1 test: case '"': | 1817 |
| 89 | w->flags |= 0x000002; | - |
| 90 | break;executed 2664 times by 1 test: break; | 2664 |
| 91 | } | - |
| 92 | | - |
| 93 | do { if (locale_mb_cur_max > 1| TRUE | evaluated 5100062 times by 1 test | | FALSE | evaluated 405211 times by 1 test |
) { mbstate_t state_bak; size_t mblength; int _f; _f = is_basic ((string)[i]); if (_f| TRUE | evaluated 4957037 times by 1 test | | FALSE | evaluated 143025 times by 1 test |
) mblength = 1;executed 4957037 times by 1 test: mblength = 1; else if (locale_utf8locale| TRUE | evaluated 143025 times by 1 test | | FALSE | never evaluated |
&& (((| TRUE | evaluated 142935 times by 1 test | | FALSE | evaluated 90 times by 1 test |
string)[i] & 0x80) == 0)| TRUE | evaluated 142935 times by 1 test | | FALSE | evaluated 90 times by 1 test |
) mblength = 1;executed 142935 times by 1 test: mblength = 1; else { state_bak = state; mblength = mbrlen ((string) + (i), (slen) - (i), &state); }executed 90 times by 1 test: end of block if (mblength == (size_t)-2| TRUE | never evaluated | | FALSE | evaluated 5100062 times by 1 test |
|| mblength == (size_t)-1| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 5100053 times by 1 test |
) { state = state_bak; (i)++; }executed 9 times by 1 test: end of block else if (mblength == 0| TRUE | never evaluated | | FALSE | evaluated 5100053 times by 1 test |
) (never executed: (i)++; i)++;never executed: (i)++; else (executed 5100053 times by 1 test: (i) += mblength; i) += mblength;executed 5100053 times by 1 test: (i) += mblength; } else (executed 405211 times by 1 test: (i)++; i)++;executed 405211 times by 1 test: (i)++; } while (0); | 0-5100062 |
| 94 | }executed 5505273 times by 1 test: end of block | 5505273 |
| 95 | | - |
| 96 | returnexecuted 4640662 times by 1 test: return (w); (w);executed 4640662 times by 1 test: return (w); | 4640662 |
| 97 | } | - |
| 98 | | - |
| 99 | WORD_DESC * | - |
| 100 | make_word (string) | - |
| 101 | const char *string; | - |
| 102 | { | - |
| 103 | WORD_DESC *temp; | - |
| 104 | | - |
| 105 | temp = make_bare_word (string); | - |
| 106 | returnexecuted 4630111 times by 1 test: return (make_word_flags (temp, string)); (make_word_flags (temp, string));executed 4630111 times by 1 test: return (make_word_flags (temp, string)); | 4630111 |
| 107 | } | - |
| 108 | | - |
| 109 | WORD_DESC * | - |
| 110 | make_word_from_token (token) | - |
| 111 | int token; | - |
| 112 | { | - |
| 113 | char tokenizer[2]; | - |
| 114 | | - |
| 115 | tokenizer[0] = token; | - |
| 116 | tokenizer[1] = '\0'; | - |
| 117 | | - |
| 118 | returnexecuted 2 times by 1 test: return (make_word (tokenizer)); (make_word (tokenizer));executed 2 times by 1 test: return (make_word (tokenizer)); | 2 |
| 119 | } | - |
| 120 | | - |
| 121 | WORD_LIST * | - |
| 122 | make_word_list (word, wlink) | - |
| 123 | WORD_DESC *word; | - |
| 124 | WORD_LIST *wlink; | - |
| 125 | { | - |
| 126 | WORD_LIST *temp; | - |
| 127 | | - |
| 128 | do { if ((| TRUE | evaluated 494987269 times by 1 test | | FALSE | evaluated 4702745 times by 1 test |
wlcache).nc > 0| TRUE | evaluated 494987269 times by 1 test | | FALSE | evaluated 4702745 times by 1 test |
) { (temp) = (WORD_LIST *)((WORD_LIST **)((wlcache).data))[--(wlcache).nc]; }executed 494987269 times by 1 test: end of block else (executed 4702745 times by 1 test: (temp) = (WORD_LIST *)sh_xmalloc((sizeof (WORD_LIST)), "make_cmd.c", 163); temp) = (WORD_LIST *)sh_xmalloc((sizeof (WORD_LIST)), "make_cmd.c", 163);executed 4702745 times by 1 test: (temp) = (WORD_LIST *)sh_xmalloc((sizeof (WORD_LIST)), "make_cmd.c", 163); } while (0); | 4702745-494987269 |
| 129 | | - |
| 130 | temp->word = word; | - |
| 131 | temp->next = wlink; | - |
| 132 | returnexecuted 499690014 times by 1 test: return (temp); (temp);executed 499690014 times by 1 test: return (temp); | 499690014 |
| 133 | } | - |
| 134 | | - |
| 135 | COMMAND * | - |
| 136 | make_command (type, pointer) | - |
| 137 | enum command_type type; | - |
| 138 | SIMPLE_COM *pointer; | - |
| 139 | { | - |
| 140 | COMMAND *temp; | - |
| 141 | | - |
| 142 | temp = (COMMAND *)sh_xmalloc((sizeof (COMMAND)), "make_cmd.c", 177); | - |
| 143 | temp->type = type; | - |
| 144 | temp->value.Simple = pointer; | - |
| 145 | temp->value.Simple->flags = temp->flags = 0; | - |
| 146 | temp->redirects = (REDIRECT *) | - |
| 147 | ((void *)0) | - |
| 148 | ; | - |
| 149 | returnexecuted 337203 times by 1 test: return (temp); (temp);executed 337203 times by 1 test: return (temp); | 337203 |
| 150 | } | - |
| 151 | | - |
| 152 | COMMAND * | - |
| 153 | command_connect (com1, com2, connector) | - |
| 154 | COMMAND *com1, *com2; | - |
| 155 | int connector; | - |
| 156 | { | - |
| 157 | CONNECTION *temp; | - |
| 158 | | - |
| 159 | temp = (CONNECTION *)sh_xmalloc((sizeof (CONNECTION)), "make_cmd.c", 192); | - |
| 160 | temp->connector = connector; | - |
| 161 | temp->first = com1; | - |
| 162 | temp->second = com2; | - |
| 163 | returnexecuted 194753 times by 1 test: return (make_command (cm_connection, (SIMPLE_COM *)temp)); (make_command (cm_connection, (SIMPLE_COM *)temp));executed 194753 times by 1 test: return (make_command (cm_connection, (SIMPLE_COM *)temp)); | 194753 |
| 164 | } | - |
| 165 | | - |
| 166 | static COMMAND * | - |
| 167 | make_for_or_select (type, name, map_list, action, lineno) | - |
| 168 | enum command_type type; | - |
| 169 | WORD_DESC *name; | - |
| 170 | WORD_LIST *map_list; | - |
| 171 | COMMAND *action; | - |
| 172 | int lineno; | - |
| 173 | { | - |
| 174 | FOR_COM *temp; | - |
| 175 | | - |
| 176 | temp = (FOR_COM *)sh_xmalloc((sizeof (FOR_COM)), "make_cmd.c", 209); | - |
| 177 | temp->flags = 0; | - |
| 178 | temp->name = name; | - |
| 179 | temp->line = lineno; | - |
| 180 | temp->map_list = map_list; | - |
| 181 | temp->action = action; | - |
| 182 | returnexecuted 25661 times by 1 test: return (make_command (type, (SIMPLE_COM *)temp)); (make_command (type, (SIMPLE_COM *)temp));executed 25661 times by 1 test: return (make_command (type, (SIMPLE_COM *)temp)); | 25661 |
| 183 | } | - |
| 184 | | - |
| 185 | COMMAND * | - |
| 186 | make_for_command (name, map_list, action, lineno) | - |
| 187 | WORD_DESC *name; | - |
| 188 | WORD_LIST *map_list; | - |
| 189 | COMMAND *action; | - |
| 190 | int lineno; | - |
| 191 | { | - |
| 192 | returnexecuted 25652 times by 1 test: return (make_for_or_select (cm_for, name, map_list, action, lineno)); (make_for_or_select (cm_for, name, map_list, action, lineno));executed 25652 times by 1 test: return (make_for_or_select (cm_for, name, map_list, action, lineno)); | 25652 |
| 193 | } | - |
| 194 | | - |
| 195 | COMMAND * | - |
| 196 | make_select_command (name, map_list, action, lineno) | - |
| 197 | WORD_DESC *name; | - |
| 198 | WORD_LIST *map_list; | - |
| 199 | COMMAND *action; | - |
| 200 | int lineno; | - |
| 201 | { | - |
| 202 | | - |
| 203 | returnexecuted 9 times by 1 test: return (make_for_or_select (cm_select, name, map_list, action, lineno)); (make_for_or_select (cm_select, name, map_list, action, lineno));executed 9 times by 1 test: return (make_for_or_select (cm_select, name, map_list, action, lineno)); | 9 |
| 204 | | - |
| 205 | | - |
| 206 | | - |
| 207 | | - |
| 208 | } | - |
| 209 | | - |
| 210 | | - |
| 211 | static WORD_LIST * | - |
| 212 | make_arith_for_expr (s) | - |
| 213 | char *s; | - |
| 214 | { | - |
| 215 | WORD_LIST *result; | - |
| 216 | WORD_DESC *wd; | - |
| 217 | | - |
| 218 | if (s == 0| TRUE | evaluated 2428 times by 1 test | | FALSE | evaluated 7922 times by 1 test |
|| *| TRUE | never evaluated | | FALSE | evaluated 7922 times by 1 test |
s == '\0'| TRUE | never evaluated | | FALSE | evaluated 7922 times by 1 test |
) | 0-7922 |
| 219 | returnexecuted 2428 times by 1 test: return ((WORD_LIST *) ((void *)0) ); ((WORD_LIST *)executed 2428 times by 1 test: return ((WORD_LIST *) ((void *)0) ); | 2428 |
| 220 | ((void *)0)executed 2428 times by 1 test: return ((WORD_LIST *) ((void *)0) ); | 2428 |
| 221 | );executed 2428 times by 1 test: return ((WORD_LIST *) ((void *)0) ); | 2428 |
| 222 | wd = make_word (s); | - |
| 223 | wd->flags |= 0x000020|0x000010|0x000002|0x080000; | - |
| 224 | | - |
| 225 | wd->flags |= 0x100000; | - |
| 226 | | - |
| 227 | result = make_word_list (wd, (WORD_LIST *) | - |
| 228 | ((void *)0) | - |
| 229 | ); | - |
| 230 | returnexecuted 7922 times by 1 test: return result; result;executed 7922 times by 1 test: return result; | 7922 |
| 231 | } | - |
| 232 | | - |
| 233 | | - |
| 234 | | - |
| 235 | | - |
| 236 | | - |
| 237 | | - |
| 238 | COMMAND * | - |
| 239 | make_arith_for_command (exprs, action, lineno) | - |
| 240 | WORD_LIST *exprs; | - |
| 241 | COMMAND *action; | - |
| 242 | int lineno; | - |
| 243 | { | - |
| 244 | | - |
| 245 | ARITH_FOR_COM *temp; | - |
| 246 | WORD_LIST *init, *test, *step; | - |
| 247 | char *s, *t, *start; | - |
| 248 | int nsemi, i; | - |
| 249 | | - |
| 250 | init = test = step = (WORD_LIST *) | - |
| 251 | ((void *)0) | - |
| 252 | ; | - |
| 253 | | - |
| 254 | start = t = s = exprs->word->word; | - |
| 255 | for (nsemi = 0; ;) | - |
| 256 | { | - |
| 257 | | - |
| 258 | while ((((*| TRUE | evaluated 6506 times by 1 test | | FALSE | evaluated 7923 times by 1 test |
s) == ' ')| TRUE | evaluated 6506 times by 1 test | | FALSE | evaluated 7923 times by 1 test |
|| ((*| TRUE | never evaluated | | FALSE | evaluated 7923 times by 1 test |
s) == '\t')| TRUE | never evaluated | | FALSE | evaluated 7923 times by 1 test |
)) | 0-7923 |
| 259 | s++;executed 6506 times by 1 test: s++; | 6506 |
| 260 | start = s; | - |
| 261 | | - |
| 262 | i = skip_to_delim (start, 0, ";", 0x001|0x080); | - |
| 263 | s = start + i; | - |
| 264 | | - |
| 265 | t = (| TRUE | evaluated 5495 times by 1 test | | FALSE | evaluated 2428 times by 1 test |
i > 0)| TRUE | evaluated 5495 times by 1 test | | FALSE | evaluated 2428 times by 1 test |
? substring (start, 0, i) : (char *) | 2428-5495 |
| 266 | ((void *)0) | - |
| 267 | ; | - |
| 268 | | - |
| 269 | nsemi++; | - |
| 270 | switch (nsemi) | - |
| 271 | { | - |
| 272 | caseexecuted 2641 times by 1 test: case 1: 1:executed 2641 times by 1 test: case 1: | 2641 |
| 273 | init = make_arith_for_expr (t); | - |
| 274 | break;executed 2641 times by 1 test: break; | 2641 |
| 275 | caseexecuted 2641 times by 1 test: case 2: 2:executed 2641 times by 1 test: case 2: | 2641 |
| 276 | test = make_arith_for_expr (t); | - |
| 277 | break;executed 2641 times by 1 test: break; | 2641 |
| 278 | caseexecuted 2640 times by 1 test: case 3: 3:executed 2640 times by 1 test: case 3: | 2640 |
| 279 | step = make_arith_for_expr (t); | - |
| 280 | break;executed 2640 times by 1 test: break; | 2640 |
| 281 | } | - |
| 282 | | - |
| 283 | do { if (t| TRUE | evaluated 5495 times by 1 test | | FALSE | evaluated 2428 times by 1 test |
) sh_xfree((t), "make_cmd.c", 308);executed 5495 times by 1 test: sh_xfree((t), "make_cmd.c", 308); } while (0); | 2428-5495 |
| 284 | if (*| TRUE | evaluated 2641 times by 1 test | | FALSE | evaluated 5282 times by 1 test |
s == '\0'| TRUE | evaluated 2641 times by 1 test | | FALSE | evaluated 5282 times by 1 test |
) | 2641-5282 |
| 285 | break;executed 2641 times by 1 test: break; | 2641 |
| 286 | s++; | - |
| 287 | }executed 5282 times by 1 test: end of block | 5282 |
| 288 | | - |
| 289 | if (nsemi != 3| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2639 times by 1 test |
) | 2-2639 |
| 290 | { | - |
| 291 | if (nsemi < 3| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1 time by 1 test |
) | 1 |
| 292 | parser_error (lineno, executed 1 time by 1 test: parser_error (lineno, dcgettext (((void *)0), "syntax error: arithmetic expression required" , 5) ); | 1 |
| 293 | dcgettext (((void *)0), executed 1 time by 1 test: parser_error (lineno, dcgettext (((void *)0), "syntax error: arithmetic expression required" , 5) ); | 1 |
| 294 | "syntax error: arithmetic expression required"executed 1 time by 1 test: parser_error (lineno, dcgettext (((void *)0), "syntax error: arithmetic expression required" , 5) ); | 1 |
| 295 | , 5)executed 1 time by 1 test: parser_error (lineno, dcgettext (((void *)0), "syntax error: arithmetic expression required" , 5) ); | 1 |
| 296 | );executed 1 time by 1 test: parser_error (lineno, dcgettext (((void *)0), "syntax error: arithmetic expression required" , 5) ); | 1 |
| 297 | else | - |
| 298 | parser_error (lineno, executed 1 time by 1 test: parser_error (lineno, dcgettext (((void *)0), "syntax error: `;' unexpected" , 5) ); | 1 |
| 299 | dcgettext (((void *)0), executed 1 time by 1 test: parser_error (lineno, dcgettext (((void *)0), "syntax error: `;' unexpected" , 5) ); | 1 |
| 300 | "syntax error: `;' unexpected"executed 1 time by 1 test: parser_error (lineno, dcgettext (((void *)0), "syntax error: `;' unexpected" , 5) ); | 1 |
| 301 | , 5)executed 1 time by 1 test: parser_error (lineno, dcgettext (((void *)0), "syntax error: `;' unexpected" , 5) ); | 1 |
| 302 | );executed 1 time by 1 test: parser_error (lineno, dcgettext (((void *)0), "syntax error: `;' unexpected" , 5) ); | 1 |
| 303 | parser_error (lineno, | - |
| 304 | dcgettext (((void *)0), | - |
| 305 | "syntax error: `((%s))'" | - |
| 306 | , 5) | - |
| 307 | , exprs->word->word); | - |
| 308 | sh_xfree((init), "make_cmd.c", 321); | - |
| 309 | sh_xfree((test), "make_cmd.c", 322); | - |
| 310 | sh_xfree((step), "make_cmd.c", 323); | - |
| 311 | last_command_exit_value = 2; | - |
| 312 | returnexecuted 2 times by 1 test: return ((COMMAND *) ((void *)0) ); ((COMMAND *)executed 2 times by 1 test: return ((COMMAND *) ((void *)0) ); | 2 |
| 313 | ((void *)0)executed 2 times by 1 test: return ((COMMAND *) ((void *)0) ); | 2 |
| 314 | );executed 2 times by 1 test: return ((COMMAND *) ((void *)0) ); | 2 |
| 315 | } | - |
| 316 | | - |
| 317 | temp = (ARITH_FOR_COM *)sh_xmalloc((sizeof (ARITH_FOR_COM)), "make_cmd.c", 328); | - |
| 318 | temp->flags = 0; | - |
| 319 | temp->line = lineno; | - |
| 320 | temp->init = init| TRUE | evaluated 1831 times by 1 test | | FALSE | evaluated 808 times by 1 test |
? init : make_arith_for_expr ("1"); | 808-1831 |
| 321 | temp->test = test| TRUE | evaluated 1627 times by 1 test | | FALSE | evaluated 1012 times by 1 test |
? test : make_arith_for_expr ("1"); | 1012-1627 |
| 322 | temp->step = step| TRUE | evaluated 2031 times by 1 test | | FALSE | evaluated 608 times by 1 test |
? step : make_arith_for_expr ("1"); | 608-2031 |
| 323 | temp->action = action; | - |
| 324 | | - |
| 325 | dispose_words (exprs); | - |
| 326 | returnexecuted 2639 times by 1 test: return (make_command (cm_arith_for, (SIMPLE_COM *)temp)); (make_command (cm_arith_for, (SIMPLE_COM *)temp));executed 2639 times by 1 test: return (make_command (cm_arith_for, (SIMPLE_COM *)temp)); | 2639 |
| 327 | | - |
| 328 | | - |
| 329 | | - |
| 330 | | - |
| 331 | | - |
| 332 | } | - |
| 333 | | - |
| 334 | COMMAND * | - |
| 335 | make_group_command (command) | - |
| 336 | COMMAND *command; | - |
| 337 | { | - |
| 338 | GROUP_COM *temp; | - |
| 339 | | - |
| 340 | temp = (GROUP_COM *)sh_xmalloc((sizeof (GROUP_COM)), "make_cmd.c", 351); | - |
| 341 | temp->command = command; | - |
| 342 | returnexecuted 12022 times by 1 test: return (make_command (cm_group, (SIMPLE_COM *)temp)); (make_command (cm_group, (SIMPLE_COM *)temp));executed 12022 times by 1 test: return (make_command (cm_group, (SIMPLE_COM *)temp)); | 12022 |
| 343 | } | - |
| 344 | | - |
| 345 | COMMAND * | - |
| 346 | make_case_command (word, clauses, lineno) | - |
| 347 | WORD_DESC *word; | - |
| 348 | PATTERN_LIST *clauses; | - |
| 349 | int lineno; | - |
| 350 | { | - |
| 351 | CASE_COM *temp; | - |
| 352 | | - |
| 353 | temp = (CASE_COM *)sh_xmalloc((sizeof (CASE_COM)), "make_cmd.c", 364); | - |
| 354 | temp->flags = 0; | - |
| 355 | temp->line = lineno; | - |
| 356 | temp->word = word; | - |
| 357 | temp->clauses = ((clauses| TRUE | evaluated 78108 times by 1 test | | FALSE | evaluated 2 times by 1 test |
&& clauses->next| TRUE | evaluated 50301 times by 1 test | | FALSE | evaluated 27807 times by 1 test |
) ? (PATTERN_LIST *)list_reverse ((GENERIC_LIST *)clauses) : (PATTERN_LIST *)(clauses)); | 2-78108 |
| 358 | returnexecuted 78110 times by 1 test: return (make_command (cm_case, (SIMPLE_COM *)temp)); (make_command (cm_case, (SIMPLE_COM *)temp));executed 78110 times by 1 test: return (make_command (cm_case, (SIMPLE_COM *)temp)); | 78110 |
| 359 | } | - |
| 360 | | - |
| 361 | PATTERN_LIST * | - |
| 362 | make_pattern_list (patterns, action) | - |
| 363 | WORD_LIST *patterns; | - |
| 364 | COMMAND *action; | - |
| 365 | { | - |
| 366 | PATTERN_LIST *temp; | - |
| 367 | | - |
| 368 | temp = (PATTERN_LIST *)sh_xmalloc((sizeof (PATTERN_LIST)), "make_cmd.c", 379); | - |
| 369 | temp->patterns = ((patterns| TRUE | evaluated 158270 times by 1 test | | FALSE | never evaluated |
&& patterns->next| TRUE | evaluated 6820 times by 1 test | | FALSE | evaluated 151450 times by 1 test |
) ? (WORD_LIST *)list_reverse ((GENERIC_LIST *)patterns) : (WORD_LIST *)(patterns)); | 0-158270 |
| 370 | temp->action = action; | - |
| 371 | temp->next = | - |
| 372 | ((void *)0) | - |
| 373 | ; | - |
| 374 | temp->flags = 0; | - |
| 375 | returnexecuted 158270 times by 1 test: return (temp); (temp);executed 158270 times by 1 test: return (temp); | 158270 |
| 376 | } | - |
| 377 | | - |
| 378 | COMMAND * | - |
| 379 | make_if_command (test, true_case, false_case) | - |
| 380 | COMMAND *test, *true_case, *false_case; | - |
| 381 | { | - |
| 382 | IF_COM *temp; | - |
| 383 | | - |
| 384 | temp = (IF_COM *)sh_xmalloc((sizeof (IF_COM)), "make_cmd.c", 393); | - |
| 385 | temp->flags = 0; | - |
| 386 | temp->test = test; | - |
| 387 | temp->true_case = true_case; | - |
| 388 | temp->false_case = false_case; | - |
| 389 | returnexecuted 1621 times by 1 test: return (make_command (cm_if, (SIMPLE_COM *)temp)); (make_command (cm_if, (SIMPLE_COM *)temp));executed 1621 times by 1 test: return (make_command (cm_if, (SIMPLE_COM *)temp)); | 1621 |
| 390 | } | - |
| 391 | | - |
| 392 | static COMMAND * | - |
| 393 | make_until_or_while (which, test, action) | - |
| 394 | enum command_type which; | - |
| 395 | COMMAND *test, *action; | - |
| 396 | { | - |
| 397 | WHILE_COM *temp; | - |
| 398 | | - |
| 399 | temp = (WHILE_COM *)sh_xmalloc((sizeof (WHILE_COM)), "make_cmd.c", 408); | - |
| 400 | temp->flags = 0; | - |
| 401 | temp->test = test; | - |
| 402 | temp->action = action; | - |
| 403 | returnexecuted 5172 times by 1 test: return (make_command (which, (SIMPLE_COM *)temp)); (make_command (which, (SIMPLE_COM *)temp));executed 5172 times by 1 test: return (make_command (which, (SIMPLE_COM *)temp)); | 5172 |
| 404 | } | - |
| 405 | | - |
| 406 | COMMAND * | - |
| 407 | make_while_command (test, action) | - |
| 408 | COMMAND *test, *action; | - |
| 409 | { | - |
| 410 | returnexecuted 5156 times by 1 test: return (make_until_or_while (cm_while, test, action)); (make_until_or_while (cm_while, test, action));executed 5156 times by 1 test: return (make_until_or_while (cm_while, test, action)); | 5156 |
| 411 | } | - |
| 412 | | - |
| 413 | COMMAND * | - |
| 414 | make_until_command (test, action) | - |
| 415 | COMMAND *test, *action; | - |
| 416 | { | - |
| 417 | returnexecuted 16 times by 1 test: return (make_until_or_while (cm_until, test, action)); (make_until_or_while (cm_until, test, action));executed 16 times by 1 test: return (make_until_or_while (cm_until, test, action)); | 16 |
| 418 | } | - |
| 419 | | - |
| 420 | COMMAND * | - |
| 421 | make_arith_command (exp) | - |
| 422 | WORD_LIST *exp; | - |
| 423 | { | - |
| 424 | | - |
| 425 | COMMAND *command; | - |
| 426 | ARITH_COM *temp; | - |
| 427 | | - |
| 428 | command = (COMMAND *)sh_xmalloc((sizeof (COMMAND)), "make_cmd.c", 437); | - |
| 429 | command->value.Arith = temp = (ARITH_COM *)sh_xmalloc((sizeof (ARITH_COM)), "make_cmd.c", 438); | - |
| 430 | | - |
| 431 | temp->flags = 0; | - |
| 432 | temp->line = line_number; | - |
| 433 | temp->exp = exp; | - |
| 434 | | - |
| 435 | command->type = cm_arith; | - |
| 436 | command->redirects = (REDIRECT *) | - |
| 437 | ((void *)0) | - |
| 438 | ; | - |
| 439 | command->flags = 0; | - |
| 440 | | - |
| 441 | returnexecuted 47077 times by 1 test: return (command); (command);executed 47077 times by 1 test: return (command); | 47077 |
| 442 | | - |
| 443 | | - |
| 444 | | - |
| 445 | | - |
| 446 | } | - |
| 447 | | - |
| 448 | | - |
| 449 | struct cond_com * | - |
| 450 | make_cond_node (type, op, left, right) | - |
| 451 | int type; | - |
| 452 | WORD_DESC *op; | - |
| 453 | struct cond_com *left, *right; | - |
| 454 | { | - |
| 455 | COND_COM *temp; | - |
| 456 | | - |
| 457 | temp = (COND_COM *)sh_xmalloc((sizeof (COND_COM)), "make_cmd.c", 464); | - |
| 458 | temp->flags = 0; | - |
| 459 | temp->line = line_number; | - |
| 460 | temp->type = type; | - |
| 461 | temp->op = op; | - |
| 462 | temp->left = left; | - |
| 463 | temp->right = right; | - |
| 464 | | - |
| 465 | returnexecuted 1926 times by 1 test: return (temp); (temp);executed 1926 times by 1 test: return (temp); | 1926 |
| 466 | } | - |
| 467 | | - |
| 468 | | - |
| 469 | COMMAND * | - |
| 470 | make_cond_command (cond_node) | - |
| 471 | COND_COM *cond_node; | - |
| 472 | { | - |
| 473 | | - |
| 474 | COMMAND *command; | - |
| 475 | | - |
| 476 | command = (COMMAND *)sh_xmalloc((sizeof (COMMAND)), "make_cmd.c", 483); | - |
| 477 | command->value.Cond = cond_node; | - |
| 478 | | - |
| 479 | command->type = cm_cond; | - |
| 480 | command->redirects = (REDIRECT *) | - |
| 481 | ((void *)0) | - |
| 482 | ; | - |
| 483 | command->flags = 0; | - |
| 484 | command->line = cond_node| TRUE | evaluated 574 times by 1 test | | FALSE | never evaluated |
? cond_node->line : 0; | 0-574 |
| 485 | | - |
| 486 | returnexecuted 574 times by 1 test: return (command); (command);executed 574 times by 1 test: return (command); | 574 |
| 487 | | - |
| 488 | | - |
| 489 | | - |
| 490 | | - |
| 491 | } | - |
| 492 | | - |
| 493 | COMMAND * | - |
| 494 | make_bare_simple_command () | - |
| 495 | { | - |
| 496 | COMMAND *command; | - |
| 497 | SIMPLE_COM *temp; | - |
| 498 | | - |
| 499 | command = (COMMAND *)sh_xmalloc((sizeof (COMMAND)), "make_cmd.c", 504); | - |
| 500 | command->value.Simple = temp = (SIMPLE_COM *)sh_xmalloc((sizeof (SIMPLE_COM)), "make_cmd.c", 505); | - |
| 501 | | - |
| 502 | temp->flags = 0; | - |
| 503 | temp->line = line_number; | - |
| 504 | temp->words = (WORD_LIST *) | - |
| 505 | ((void *)0) | - |
| 506 | ; | - |
| 507 | temp->redirects = (REDIRECT *) | - |
| 508 | ((void *)0) | - |
| 509 | ; | - |
| 510 | | - |
| 511 | command->type = cm_simple; | - |
| 512 | command->redirects = (REDIRECT *) | - |
| 513 | ((void *)0) | - |
| 514 | ; | - |
| 515 | command->flags = 0; | - |
| 516 | | - |
| 517 | returnexecuted 1038411 times by 1 test: return (command); (command);executed 1038411 times by 1 test: return (command); | 1038411 |
| 518 | } | - |
| 519 | | - |
| 520 | | - |
| 521 | | - |
| 522 | COMMAND * | - |
| 523 | make_simple_command (element, command) | - |
| 524 | ELEMENT element; | - |
| 525 | COMMAND *command; | - |
| 526 | { | - |
| 527 | | - |
| 528 | | - |
| 529 | | - |
| 530 | if (command == 0| TRUE | evaluated 1038344 times by 1 test | | FALSE | evaluated 1023618 times by 1 test |
) | 1023618-1038344 |
| 531 | { | - |
| 532 | command = make_bare_simple_command (); | - |
| 533 | parser_state |= 0x080000; | - |
| 534 | }executed 1038344 times by 1 test: end of block | 1038344 |
| 535 | | - |
| 536 | if (element.word| TRUE | evaluated 2026542 times by 1 test | | FALSE | evaluated 35420 times by 1 test |
) | 35420-2026542 |
| 537 | { | - |
| 538 | command->value.Simple->words = make_word_list (element.word, command->value.Simple->words); | - |
| 539 | parser_state &= ~0x080000; | - |
| 540 | }executed 2026542 times by 1 test: end of block | 2026542 |
| 541 | else if (element.redirect| TRUE | evaluated 35415 times by 1 test | | FALSE | evaluated 5 times by 1 test |
) | 5-35415 |
| 542 | { | - |
| 543 | REDIRECT *r = element.redirect; | - |
| 544 | | - |
| 545 | | - |
| 546 | | - |
| 547 | while (r->next| TRUE | never evaluated | | FALSE | evaluated 35415 times by 1 test |
) | 0-35415 |
| 548 | r = r->next; never executed: r = r->next; | 0 |
| 549 | r->next = command->value.Simple->redirects; | - |
| 550 | command->value.Simple->redirects = element.redirect; | - |
| 551 | }executed 35415 times by 1 test: end of block | 35415 |
| 552 | | - |
| 553 | returnexecuted 2061962 times by 1 test: return (command); (command);executed 2061962 times by 1 test: return (command); | 2061962 |
| 554 | } | - |
| 555 | | - |
| 556 | | - |
| 557 | | - |
| 558 | | - |
| 559 | | - |
| 560 | | - |
| 561 | void | - |
| 562 | make_here_document (temp, lineno) | - |
| 563 | REDIRECT *temp; | - |
| 564 | int lineno; | - |
| 565 | { | - |
| 566 | int kill_leading, redir_len; | - |
| 567 | char *redir_word, *document, *full_line; | - |
| 568 | int document_index, document_size, delim_unquoted; | - |
| 569 | | - |
| 570 | if (temp->instruction != r_deblank_reading_until| TRUE | evaluated 1696 times by 1 test | | FALSE | evaluated 38 times by 1 test |
&& | 38-1696 |
| 571 | temp->instruction != r_reading_until| TRUE | never evaluated | | FALSE | evaluated 1696 times by 1 test |
) | 0-1696 |
| 572 | { | - |
| 573 | internal_error ( | - |
| 574 | dcgettext (((void *)0), | - |
| 575 | "make_here_document: bad instruction type %d" | - |
| 576 | , 5) | - |
| 577 | , temp->instruction); | - |
| 578 | return; never executed: return; | 0 |
| 579 | } | - |
| 580 | | - |
| 581 | kill_leading = temp->instruction == r_deblank_reading_until; | - |
| 582 | | - |
| 583 | document = (char *) | - |
| 584 | ((void *)0) | - |
| 585 | ; | - |
| 586 | document_index = document_size = 0; | - |
| 587 | | - |
| 588 | | - |
| 589 | | - |
| 590 | redir_word = string_quote_removal (temp->redirectee.filename->word, 0); | - |
| 591 | | - |
| 592 | | - |
| 593 | | - |
| 594 | | - |
| 595 | if (redir_word| TRUE | evaluated 1734 times by 1 test | | FALSE | never evaluated |
) | 0-1734 |
| 596 | redir_len = strlen (redir_word);executed 1734 times by 1 test: redir_len = strlen (redir_word); | 1734 |
| 597 | else | - |
| 598 | { | - |
| 599 | temp->here_doc_eof = (char *)sh_xmalloc((1), "make_cmd.c", 592); | - |
| 600 | temp->here_doc_eof[0] = '\0'; | - |
| 601 | goto never executed: goto document_done; document_done;never executed: goto document_done; | 0 |
| 602 | } | - |
| 603 | | - |
| 604 | sh_xfree((temp->redirectee.filename->word), "make_cmd.c", 597); | - |
| 605 | temp->here_doc_eof = redir_word; | - |
| 606 | delim_unquoted = (temp->redirectee.filename->flags & 0x000002) == 0; | - |
| 607 | while (full_line = read_secondary_line (delim_unquoted)| TRUE | evaluated 5241 times by 1 test | | FALSE | evaluated 17 times by 1 test |
) | 17-5241 |
| 608 | { | - |
| 609 | register char *line; | - |
| 610 | int len; | - |
| 611 | | - |
| 612 | here_doc_first_line = 0; | - |
| 613 | line = full_line; | - |
| 614 | line_number++; | - |
| 615 | | - |
| 616 | | - |
| 617 | | - |
| 618 | if (echo_input_at_read| TRUE | never evaluated | | FALSE | evaluated 5241 times by 1 test |
) | 0-5241 |
| 619 | fprintf ( never executed: fprintf ( stderr , "%s", line); | 0 |
| 620 | stderr never executed: fprintf ( stderr , "%s", line); | 0 |
| 621 | , "%s", line); never executed: fprintf ( stderr , "%s", line); | 0 |
| 622 | | - |
| 623 | if (kill_leading| TRUE | evaluated 80 times by 1 test | | FALSE | evaluated 5161 times by 1 test |
&& *| TRUE | evaluated 80 times by 1 test | | FALSE | never evaluated |
line| TRUE | evaluated 80 times by 1 test | | FALSE | never evaluated |
) | 0-5161 |
| 624 | { | - |
| 625 | | - |
| 626 | | - |
| 627 | | - |
| 628 | if (((| TRUE | never evaluated | | FALSE | evaluated 80 times by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
redir_len == 0)| TRUE | never evaluated | | FALSE | evaluated 80 times by 1 test |
? (1) : ((| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 77 times by 1 test |
line)[0] == (redir_word)[0]| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 77 times by 1 test |
&& | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-80 |
| 629 | (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
__extension__ (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 630 | redir_len| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 631 | )| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
&& ((__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 632 | line| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 633 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 634 | line| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 635 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 636 | redir_len| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 637 | ))| TRUE | never evaluated | | FALSE | never evaluated |
) || (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 638 | redir_word| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 639 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 640 | redir_word| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 641 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 642 | redir_len| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 643 | ))| TRUE | never evaluated | | FALSE | never evaluated |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 644 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 645 | ) && __builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 646 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 647 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 648 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 649 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 650 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 651 | ), (!((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 652 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 653 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 654 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 655 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 656 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 657 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 658 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 659 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 660 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 661 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 662 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 663 | ) : (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 664 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 665 | ) && ((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 666 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 667 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 668 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 669 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 670 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 671 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 672 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 673 | ) && ((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 674 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 675 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 676 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 677 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 678 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 679 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 680 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 681 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 682 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 683 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 684 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 685 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 686 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 687 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 688 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 689 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( line ))[3] - __s2[3]); | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 690 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( line ))[3] - __s2[3]); | 0-78 |
| 691 | ))[3] - __s2[3]);| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( line ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 692 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 693 | ) && ((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 694 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 695 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 696 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 697 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 698 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 699 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 700 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 701 | ) && ((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 702 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 703 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 704 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 705 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 706 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 707 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 708 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 709 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 710 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 711 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 712 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 713 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 714 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 715 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 716 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 717 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( redir_word ))[3] - __s2[3]); | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 718 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( redir_word ))[3] - __s2[3]); | 0-78 |
| 719 | ))[3] - __s2[3]);| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( redir_word ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 0-78 |
| 720 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 721 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 722 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 723 | )))); }) : strncmp (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 724 | line| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 725 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 726 | redir_word| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 727 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 728 | redir_len| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 729 | ))) | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
| 1-78 |
| 730 | == 0| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
))| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 78 times by 1 test |
&& line[redir_len] == '\n'| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-78 |
| 731 | gotoexecuted 2 times by 1 test: goto document_done; document_done;executed 2 times by 1 test: goto document_done; | 2 |
| 732 | | - |
| 733 | while (*| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 78 times by 1 test |
line == '\t'| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 78 times by 1 test |
) | 46-78 |
| 734 | line++;executed 46 times by 1 test: line++; | 46 |
| 735 | }executed 78 times by 1 test: end of block | 78 |
| 736 | | - |
| 737 | if (*| TRUE | never evaluated | | FALSE | evaluated 5239 times by 1 test |
line == 0| TRUE | never evaluated | | FALSE | evaluated 5239 times by 1 test |
) | 0-5239 |
| 738 | continue; never executed: continue; | 0 |
| 739 | | - |
| 740 | if (((| TRUE | never evaluated | | FALSE | evaluated 5239 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
redir_len == 0)| TRUE | never evaluated | | FALSE | evaluated 5239 times by 1 test |
? (1) : ((| TRUE | evaluated 1731 times by 1 test | | FALSE | evaluated 3508 times by 1 test |
line)[0] == (redir_word)[0]| TRUE | evaluated 1731 times by 1 test | | FALSE | evaluated 3508 times by 1 test |
&& | TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-5239 |
| 741 | (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
__extension__ (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 1731 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 742 | redir_len| TRUE | never evaluated | | FALSE | evaluated 1731 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 743 | )| TRUE | never evaluated | | FALSE | evaluated 1731 times by 1 test |
&& ((__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 744 | line| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 745 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 746 | line| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 747 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 748 | redir_len| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 749 | ))| TRUE | never evaluated | | FALSE | never evaluated |
) || (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 750 | redir_word| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 751 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 752 | redir_word| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 753 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 754 | redir_len| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 755 | ))| TRUE | never evaluated | | FALSE | never evaluated |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 756 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 757 | ) && __builtin_constant_p (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 758 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 759 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 760 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 761 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 762 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 763 | ), (!((size_t)(const void *)((| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 764 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 765 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 766 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 767 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 768 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 769 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 770 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 771 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 772 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 773 | , | TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 774 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 775 | ) : (__builtin_constant_p (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 776 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 777 | ) && ((size_t)(const void *)((| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 778 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 779 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 780 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 781 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 782 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 783 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 784 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 785 | ) && ((size_t)(const void *)((| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 786 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 787 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 788 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 789 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 790 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 791 | , | TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 792 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 793 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 794 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 795 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 796 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 797 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 798 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 799 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 800 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 801 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( line ))[3] - __s2[3]); | TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 802 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( line ))[3] - __s2[3]); | 0-3511 |
| 803 | ))[3] - __s2[3]);| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( line ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 804 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 805 | ) && ((size_t)(const void *)((| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 806 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 807 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 808 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 809 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 810 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 811 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 812 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 813 | ) && ((size_t)(const void *)((| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 814 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 815 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 816 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 817 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 818 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 819 | , | TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 820 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 821 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 822 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 823 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 824 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 825 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 826 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 827 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 828 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 829 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( redir_word ))[3] - __s2[3]); | TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 830 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( redir_word ))[3] - __s2[3]); | 0-3511 |
| 831 | ))[3] - __s2[3]);| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( redir_word ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 0-3511 |
| 832 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 833 | , | TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 834 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 835 | )))); }) : strncmp (| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 836 | line| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 837 | , | TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 838 | redir_word| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 839 | , | TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 840 | redir_len| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 841 | ))) | TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
| 3-3511 |
| 842 | == 0| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3 times by 1 test |
))| TRUE | evaluated 1728 times by 1 test | | FALSE | evaluated 3511 times by 1 test |
&& line[redir_len] == '\n'| TRUE | evaluated 1715 times by 1 test | | FALSE | evaluated 13 times by 1 test |
) | 3-3511 |
| 843 | gotoexecuted 1715 times by 1 test: goto document_done; document_done;executed 1715 times by 1 test: goto document_done; | 1715 |
| 844 | | - |
| 845 | len = strlen (line); | - |
| 846 | if (len + document_index >= document_size| TRUE | evaluated 3088 times by 1 test | | FALSE | evaluated 436 times by 1 test |
) | 436-3088 |
| 847 | { | - |
| 848 | document_size = document_size| TRUE | evaluated 1357 times by 1 test | | FALSE | evaluated 1731 times by 1 test |
? 2 * (document_size + len) : len + 2; | 1357-1731 |
| 849 | document = (char *)sh_xrealloc((document), (document_size), "make_cmd.c", 647); | - |
| 850 | }executed 3088 times by 1 test: end of block | 3088 |
| 851 | | - |
| 852 | | - |
| 853 | | - |
| 854 | __builtin_memcpy ((document + document_index), (line), (len)); | - |
| 855 | document_index += len; | - |
| 856 | }executed 3524 times by 1 test: end of block | 3524 |
| 857 | | - |
| 858 | if (full_line == 0| TRUE | evaluated 17 times by 1 test | | FALSE | never evaluated |
) | 0-17 |
| 859 | internal_warning (executed 17 times by 1 test: internal_warning ( dcgettext (((void *)0), "here-document at line %d delimited by end-of-file (wanted `%s')" , 5) , lineno, redir_word); | 17 |
| 860 | dcgettext (((void *)0), executed 17 times by 1 test: internal_warning ( dcgettext (((void *)0), "here-document at line %d delimited by end-of-file (wanted `%s')" , 5) , lineno, redir_word); | 17 |
| 861 | "here-document at line %d delimited by end-of-file (wanted `%s')"executed 17 times by 1 test: internal_warning ( dcgettext (((void *)0), "here-document at line %d delimited by end-of-file (wanted `%s')" , 5) , lineno, redir_word); | 17 |
| 862 | , 5)executed 17 times by 1 test: internal_warning ( dcgettext (((void *)0), "here-document at line %d delimited by end-of-file (wanted `%s')" , 5) , lineno, redir_word); | 17 |
| 863 | , lineno, redir_word);executed 17 times by 1 test: internal_warning ( dcgettext (((void *)0), "here-document at line %d delimited by end-of-file (wanted `%s')" , 5) , lineno, redir_word); | 17 |
| 864 | | - |
| 865 | document_done:code before this statement executed 17 times by 1 test: document_done: | 17 |
| 866 | if (document| TRUE | evaluated 1731 times by 1 test | | FALSE | evaluated 3 times by 1 test |
) | 3-1731 |
| 867 | document[document_index] = '\0';executed 1731 times by 1 test: document[document_index] = '\0'; | 1731 |
| 868 | else | - |
| 869 | { | - |
| 870 | document = (char *)sh_xmalloc((1), "make_cmd.c", 664); | - |
| 871 | document[0] = '\0'; | - |
| 872 | }executed 3 times by 1 test: end of block | 3 |
| 873 | temp->redirectee.filename->word = document; | - |
| 874 | here_doc_first_line = 0; | - |
| 875 | }executed 1734 times by 1 test: end of block | 1734 |
| 876 | | - |
| 877 | | - |
| 878 | | - |
| 879 | | - |
| 880 | REDIRECT * | - |
| 881 | make_redirection (source, instruction, dest_and_filename, flags) | - |
| 882 | REDIRECTEE source; | - |
| 883 | enum r_instruction instruction; | - |
| 884 | REDIRECTEE dest_and_filename; | - |
| 885 | int flags; | - |
| 886 | { | - |
| 887 | REDIRECT *temp; | - |
| 888 | WORD_DESC *w; | - |
| 889 | int wlen; | - |
| 890 | intmax_t lfd; | - |
| 891 | | - |
| 892 | temp = (REDIRECT *)sh_xmalloc((sizeof (REDIRECT)), "make_cmd.c", 686); | - |
| 893 | | - |
| 894 | | - |
| 895 | temp->redirector = source; | - |
| 896 | temp->redirectee = dest_and_filename; | - |
| 897 | temp->here_doc_eof = 0; | - |
| 898 | temp->instruction = instruction; | - |
| 899 | temp->flags = 0; | - |
| 900 | temp->rflags = flags; | - |
| 901 | temp->next = (REDIRECT *) | - |
| 902 | ((void *)0) | - |
| 903 | ; | - |
| 904 | | - |
| 905 | switch (instruction) | - |
| 906 | { | - |
| 907 | | - |
| 908 | caseexecuted 11271 times by 1 test: case r_output_direction: r_output_direction:executed 11271 times by 1 test: case r_output_direction: | 11271 |
| 909 | caseexecuted 19 times by 1 test: case r_output_force: r_output_force:executed 19 times by 1 test: case r_output_force: | 19 |
| 910 | caseexecuted 20 times by 1 test: case r_err_and_out: r_err_and_out:executed 20 times by 1 test: case r_err_and_out: | 20 |
| 911 | temp->flags = | - |
| 912 | 01000 | - |
| 913 | | | - |
| 914 | 01 | - |
| 915 | | | - |
| 916 | 0100 | - |
| 917 | ; | - |
| 918 | break;executed 11310 times by 1 test: break; | 11310 |
| 919 | | - |
| 920 | caseexecuted 33 times by 1 test: case r_appending_to: r_appending_to:executed 33 times by 1 test: case r_appending_to: | 33 |
| 921 | caseexecuted 4 times by 1 test: case r_append_err_and_out: r_append_err_and_out:executed 4 times by 1 test: case r_append_err_and_out: | 4 |
| 922 | temp->flags = | - |
| 923 | 02000 | - |
| 924 | | | - |
| 925 | 01 | - |
| 926 | | | - |
| 927 | 0100 | - |
| 928 | ; | - |
| 929 | break;executed 37 times by 1 test: break; | 37 |
| 930 | | - |
| 931 | caseexecuted 2893 times by 1 test: case r_input_direction: r_input_direction:executed 2893 times by 1 test: case r_input_direction: | 2893 |
| 932 | case never executed: case r_inputa_direction: r_inputa_direction:never executed: case r_inputa_direction: | 0 |
| 933 | temp->flags = | - |
| 934 | 00 | - |
| 935 | ; | - |
| 936 | break;executed 2893 times by 1 test: break; | 2893 |
| 937 | | - |
| 938 | caseexecuted 18 times by 1 test: case r_input_output: r_input_output:executed 18 times by 1 test: case r_input_output: | 18 |
| 939 | temp->flags = | - |
| 940 | 02 | - |
| 941 | | | - |
| 942 | 0100 | - |
| 943 | ; | - |
| 944 | break;executed 18 times by 1 test: break; | 18 |
| 945 | | - |
| 946 | caseexecuted 38 times by 1 test: case r_deblank_reading_until: r_deblank_reading_until:executed 38 times by 1 test: case r_deblank_reading_until: | 38 |
| 947 | caseexecuted 1713 times by 1 test: case r_reading_until: r_reading_until:executed 1713 times by 1 test: case r_reading_until: | 1713 |
| 948 | caseexecuted 65 times by 1 test: case r_reading_string: r_reading_string:executed 65 times by 1 test: case r_reading_string: | 65 |
| 949 | caseexecuted 667544 times by 1 test: case r_close_this: r_close_this:executed 667544 times by 1 test: case r_close_this: | 667544 |
| 950 | caseexecuted 1439 times by 1 test: case r_duplicating_input: r_duplicating_input:executed 1439 times by 1 test: case r_duplicating_input: | 1439 |
| 951 | caseexecuted 51836 times by 1 test: case r_duplicating_output: r_duplicating_output:executed 51836 times by 1 test: case r_duplicating_output: | 51836 |
| 952 | break;executed 722635 times by 1 test: break; | 722635 |
| 953 | | - |
| 954 | | - |
| 955 | caseexecuted 3 times by 1 test: case r_move_input: r_move_input:executed 3 times by 1 test: case r_move_input: | 3 |
| 956 | caseexecuted 3 times by 1 test: case r_move_output: r_move_output:executed 3 times by 1 test: case r_move_output: | 3 |
| 957 | case never executed: case r_move_input_word: r_move_input_word:never executed: case r_move_input_word: | 0 |
| 958 | case never executed: case r_move_output_word: r_move_output_word:never executed: case r_move_output_word: | 0 |
| 959 | break;executed 6 times by 1 test: break; | 6 |
| 960 | | - |
| 961 | | - |
| 962 | caseexecuted 20 times by 1 test: case r_duplicating_input_word: r_duplicating_input_word:executed 20 times by 1 test: case r_duplicating_input_word: | 20 |
| 963 | caseexecuted 117 times by 1 test: case r_duplicating_output_word: r_duplicating_output_word:executed 117 times by 1 test: case r_duplicating_output_word: | 117 |
| 964 | w = dest_and_filename.filename; | - |
| 965 | wlen = strlen (w->word) - 1; | - |
| 966 | if (w->word[wlen] == '-'| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 129 times by 1 test |
) | 8-129 |
| 967 | { | - |
| 968 | w->word[wlen] = '\0'; | - |
| 969 | if (all_digits (w->word)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 6 times by 1 test |
&& legal_number (w->word, &lfd)| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
&& lfd == (int)lfd| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-6 |
| 970 | { | - |
| 971 | dispose_word (w); | - |
| 972 | temp->instruction = (| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
instruction == r_duplicating_input_word)| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
? r_move_input : r_move_output; | 0-2 |
| 973 | temp->redirectee.dest = lfd; | - |
| 974 | }executed 2 times by 1 test: end of block | 2 |
| 975 | else | - |
| 976 | temp->instruction = (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 3 times by 1 test |
instruction == r_duplicating_input_word)| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 3 times by 1 test |
? r_move_input_word : r_move_output_word;executed 6 times by 1 test: temp->instruction = (instruction == r_duplicating_input_word) ? r_move_input_word : r_move_output_word; | 3-6 |
| 977 | } | - |
| 978 | | - |
| 979 | break;executed 137 times by 1 test: break; | 137 |
| 980 | | - |
| 981 | default never executed: default: :never executed: default: | 0 |
| 982 | programming_error ( | - |
| 983 | dcgettext (((void *)0), | - |
| 984 | "make_redirection: redirection instruction `%d' out of range" | - |
| 985 | , 5) | - |
| 986 | , instruction); | - |
| 987 | abort (); never executed: abort (); | 0 |
| 988 | break; never executed: break; | 0 |
| 989 | } | - |
| 990 | returnexecuted 737036 times by 1 test: return (temp); (temp);executed 737036 times by 1 test: return (temp); | 737036 |
| 991 | } | - |
| 992 | | - |
| 993 | COMMAND * | - |
| 994 | make_function_def (name, command, lineno, lstart) | - |
| 995 | WORD_DESC *name; | - |
| 996 | COMMAND *command; | - |
| 997 | int lineno, lstart; | - |
| 998 | { | - |
| 999 | FUNCTION_DEF *temp; | - |
| 1000 | | - |
| 1001 | SHELL_VAR *bash_source_v; | - |
| 1002 | ARRAY *bash_source_a; | - |
| 1003 | | - |
| 1004 | | - |
| 1005 | temp = (FUNCTION_DEF *)sh_xmalloc((sizeof (FUNCTION_DEF)), "make_cmd.c", 775); | - |
| 1006 | temp->command = command; | - |
| 1007 | temp->name = name; | - |
| 1008 | temp->line = lineno; | - |
| 1009 | temp->flags = 0; | - |
| 1010 | command->line = lstart; | - |
| 1011 | | - |
| 1012 | | - |
| 1013 | temp->source_file = 0; | - |
| 1014 | | - |
| 1015 | do { (bash_source_v) = find_variable ("BASH_SOURCE"); (bash_source_a) = ((bash_source_v) && (((((bash_source_v))->attributes) & (0x0000004)))) ? (ARRAY *)((bash_source_v)->value) : (ARRAY *)0; } while (0); | - |
| 1016 | if (bash_source_a| TRUE | evaluated 11147 times by 1 test | | FALSE | evaluated 64 times by 1 test |
&& ((| TRUE | evaluated 11140 times by 1 test | | FALSE | evaluated 7 times by 1 test |
bash_source_a)->num_elements) > 0| TRUE | evaluated 11140 times by 1 test | | FALSE | evaluated 7 times by 1 test |
) | 7-11147 |
| 1017 | temp->source_file = array_reference (bash_source_a, 0);executed 11140 times by 1 test: temp->source_file = array_reference (bash_source_a, 0); | 11140 |
| 1018 | | - |
| 1019 | | - |
| 1020 | | - |
| 1021 | | - |
| 1022 | if (temp->source_file == 0| TRUE | evaluated 71 times by 1 test | | FALSE | evaluated 11140 times by 1 test |
) | 71-11140 |
| 1023 | temp->source_file = shell_initialized| TRUE | never evaluated | | FALSE | evaluated 71 times by 1 test |
? "main" : "environment";executed 71 times by 1 test: temp->source_file = shell_initialized ? "main" : "environment"; | 0-71 |
| 1024 | | - |
| 1025 | | - |
| 1026 | bind_function_def (name->word, temp, 0); | - |
| 1027 | | - |
| 1028 | | - |
| 1029 | temp->source_file = temp->source_file| TRUE | evaluated 11211 times by 1 test | | FALSE | never evaluated |
? (char *)strcpy (sh_xmalloc((1 + strlen (temp->source_file)), "make_cmd.c", 799), (temp->source_file)) : 0; | 0-11211 |
| 1030 | | - |
| 1031 | returnexecuted 11211 times by 1 test: return (make_command (cm_function_def, (SIMPLE_COM *)temp)); (make_command (cm_function_def, (SIMPLE_COM *)temp));executed 11211 times by 1 test: return (make_command (cm_function_def, (SIMPLE_COM *)temp)); | 11211 |
| 1032 | } | - |
| 1033 | | - |
| 1034 | COMMAND * | - |
| 1035 | make_subshell_command (command) | - |
| 1036 | COMMAND *command; | - |
| 1037 | { | - |
| 1038 | SUBSHELL_COM *temp; | - |
| 1039 | | - |
| 1040 | temp = (SUBSHELL_COM *)sh_xmalloc((sizeof (SUBSHELL_COM)), "make_cmd.c", 810); | - |
| 1041 | temp->command = command; | - |
| 1042 | temp->flags = 0x01; | - |
| 1043 | temp->line = line_number; | - |
| 1044 | returnexecuted 5977 times by 1 test: return (make_command (cm_subshell, (SIMPLE_COM *)temp)); (make_command (cm_subshell, (SIMPLE_COM *)temp));executed 5977 times by 1 test: return (make_command (cm_subshell, (SIMPLE_COM *)temp)); | 5977 |
| 1045 | } | - |
| 1046 | | - |
| 1047 | COMMAND * | - |
| 1048 | make_coproc_command (name, command) | - |
| 1049 | char *name; | - |
| 1050 | COMMAND *command; | - |
| 1051 | { | - |
| 1052 | COPROC_COM *temp; | - |
| 1053 | | - |
| 1054 | temp = (COPROC_COM *)sh_xmalloc((sizeof (COPROC_COM)), "make_cmd.c", 824); | - |
| 1055 | temp->name = (char *)strcpy (sh_xmalloc((1 + strlen (name)), "make_cmd.c", 825), (name)); | - |
| 1056 | temp->command = command; | - |
| 1057 | temp->flags = 0x01|0x1000; | - |
| 1058 | returnexecuted 37 times by 1 test: return (make_command (cm_coproc, (SIMPLE_COM *)temp)); (make_command (cm_coproc, (SIMPLE_COM *)temp));executed 37 times by 1 test: return (make_command (cm_coproc, (SIMPLE_COM *)temp)); | 37 |
| 1059 | } | - |
| 1060 | | - |
| 1061 | | - |
| 1062 | | - |
| 1063 | | - |
| 1064 | COMMAND * | - |
| 1065 | clean_simple_command (command) | - |
| 1066 | COMMAND *command; | - |
| 1067 | { | - |
| 1068 | if (command->type != cm_simple| TRUE | never evaluated | | FALSE | evaluated 1038338 times by 1 test |
) | 0-1038338 |
| 1069 | command_error ("clean_simple_command", 1, command->type, 0); never executed: command_error ("clean_simple_command", 1, command->type, 0); | 0 |
| 1070 | else | - |
| 1071 | { | - |
| 1072 | command->value.Simple->words = | - |
| 1073 | ((command->value.Simple->words| TRUE | evaluated 1038219 times by 1 test | | FALSE | evaluated 119 times by 1 test |
&& command->value.Simple->words->next| TRUE | evaluated 880682 times by 1 test | | FALSE | evaluated 157537 times by 1 test |
) ? (WORD_LIST *)list_reverse ((GENERIC_LIST *)command->value.Simple->words) : (WORD_LIST *)(command->value.Simple->words)); | 119-1038219 |
| 1074 | command->value.Simple->redirects = | - |
| 1075 | ((command->value.Simple->redirects| TRUE | evaluated 34031 times by 1 test | | FALSE | evaluated 1004307 times by 1 test |
&& command->value.Simple->redirects->next| TRUE | evaluated 1337 times by 1 test | | FALSE | evaluated 32694 times by 1 test |
) ? (REDIRECT *)list_reverse ((GENERIC_LIST *)command->value.Simple->redirects) : (REDIRECT *)(command->value.Simple->redirects)); | 1337-1004307 |
| 1076 | }executed 1038338 times by 1 test: end of block | 1038338 |
| 1077 | | - |
| 1078 | parser_state &= ~0x080000; | - |
| 1079 | returnexecuted 1038338 times by 1 test: return (command); (command);executed 1038338 times by 1 test: return (command); | 1038338 |
| 1080 | } | - |
| 1081 | COMMAND * | - |
| 1082 | connect_async_list (command, command2, connector) | - |
| 1083 | COMMAND *command, *command2; | - |
| 1084 | int connector; | - |
| 1085 | { | - |
| 1086 | COMMAND *t, *t1, *t2; | - |
| 1087 | | - |
| 1088 | t1 = command; | - |
| 1089 | t = command->value.Connection->second; | - |
| 1090 | | - |
| 1091 | if (!t| TRUE | never evaluated | | FALSE | evaluated 63 times by 1 test |
|| (| TRUE | never evaluated | | FALSE | evaluated 63 times by 1 test |
command->flags & 0x01)| TRUE | never evaluated | | FALSE | evaluated 63 times by 1 test |
|| | 0-63 |
| 1092 | command->value.Connection->connector != ';'| TRUE | evaluated 26 times by 1 test | | FALSE | evaluated 37 times by 1 test |
) | 26-37 |
| 1093 | { | - |
| 1094 | t = command_connect (command, command2, connector); | - |
| 1095 | returnexecuted 26 times by 1 test: return t; t;executed 26 times by 1 test: return t; | 26 |
| 1096 | } | - |
| 1097 | while (((| TRUE | evaluated 28 times by 1 test | | FALSE | evaluated 9 times by 1 test |
t->flags & 0x01) == 0)| TRUE | evaluated 28 times by 1 test | | FALSE | evaluated 9 times by 1 test |
&& t->type == cm_connection| TRUE | never evaluated | | FALSE | evaluated 28 times by 1 test |
&& | 0-28 |
| 1098 | t->value.Connection->connector == ';'| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1099 | { | - |
| 1100 | t1 = t; | - |
| 1101 | t = t->value.Connection->second; | - |
| 1102 | } never executed: end of block | 0 |
| 1103 | | - |
| 1104 | | - |
| 1105 | t2 = command_connect (t, command2, connector); | - |
| 1106 | t1->value.Connection->second = t2; | - |
| 1107 | returnexecuted 37 times by 1 test: return command; command;executed 37 times by 1 test: return command; | 37 |
| 1108 | } | - |
| | |