| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | extern int asprintf (char **, const char *, ...) __attribute__((__format__ (printf, 2, 3))); | - |
| 15 | static const int brace_arg_separator = ','; | - |
| 16 | | - |
| 17 | | - |
| 18 | static int brace_gobbler (char *, size_t, int *, int); | - |
| 19 | static char **expand_amble (char *, size_t, int); | - |
| 20 | static char **expand_seqterm (char *, size_t); | - |
| 21 | static char **mkseq (intmax_t, intmax_t, intmax_t, int, int); | - |
| 22 | static char **array_concat (char **, char **); | - |
| 23 | char ** | - |
| 24 | brace_expand (text) | - |
| 25 | char *text; | - |
| 26 | { | - |
| 27 | register int start; | - |
| 28 | size_t tlen; | - |
| 29 | char *preamble, *postamble, *amble; | - |
| 30 | size_t alen; | - |
| 31 | char **tack, **result; | - |
| 32 | int i, j, c, c1; | - |
| 33 | | - |
| 34 | mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); | - |
| 35 | | - |
| 36 | | - |
| 37 | tlen = strlen (text); | - |
| 38 | i = 0; | - |
| 39 | | - |
| 40 | | - |
| 41 | | - |
| 42 | | - |
| 43 | | - |
| 44 | do | - |
| 45 | { | - |
| 46 | c = brace_gobbler (text, tlen, &i, '{'); | - |
| 47 | c1 = c; | - |
| 48 | | - |
| 49 | | - |
| 50 | if (c| TRUE | evaluated 151 times by 1 test | | FALSE | evaluated 39197 times by 1 test |
) | 151-39197 |
| 51 | { | - |
| 52 | start = j = i + 1; | - |
| 53 | c = brace_gobbler (text, tlen, &j, '}'); | - |
| 54 | if (c == 0| TRUE | evaluated 33 times by 1 test | | FALSE | evaluated 118 times by 1 test |
) | 33-118 |
| 55 | { | - |
| 56 | i++; | - |
| 57 | c = c1; | - |
| 58 | continue;executed 33 times by 1 test: continue; | 33 |
| 59 | } | - |
| 60 | else | - |
| 61 | { | - |
| 62 | c = c1; | - |
| 63 | break;executed 118 times by 1 test: break; | 118 |
| 64 | } | - |
| 65 | } | - |
| 66 | else | - |
| 67 | break;executed 39197 times by 1 test: break; | 39197 |
| 68 | } | - |
| 69 | while (c| TRUE | evaluated 33 times by 1 test | | FALSE | never evaluated |
); | 0-33 |
| 70 | | - |
| 71 | | - |
| 72 | preamble = (char *)sh_xmalloc((i + 1), "braces.c", 156); | - |
| 73 | if (i > 0| TRUE | evaluated 39244 times by 1 test | | FALSE | evaluated 71 times by 1 test |
) | 71-39244 |
| 74 | | - |
| 75 | __builtin_strncpy (executed 39244 times by 1 test: __builtin_strncpy ( preamble , text , i ) ; | 39244 |
| 76 | preambleexecuted 39244 times by 1 test: __builtin_strncpy ( preamble , text , i ) ; | 39244 |
| 77 | , executed 39244 times by 1 test: __builtin_strncpy ( preamble , text , i ) ; | 39244 |
| 78 | textexecuted 39244 times by 1 test: __builtin_strncpy ( preamble , text , i ) ; | 39244 |
| 79 | , executed 39244 times by 1 test: __builtin_strncpy ( preamble , text , i ) ; | 39244 |
| 80 | iexecuted 39244 times by 1 test: __builtin_strncpy ( preamble , text , i ) ; | 39244 |
| 81 | )executed 39244 times by 1 test: __builtin_strncpy ( preamble , text , i ) ; | 39244 |
| 82 | ;executed 39244 times by 1 test: __builtin_strncpy ( preamble , text , i ) ; | 39244 |
| 83 | preamble[i] = '\0'; | - |
| 84 | | - |
| 85 | result = (char **)sh_xmalloc((2 * sizeof (char *)), "braces.c", 161); | - |
| 86 | result[0] = preamble; | - |
| 87 | result[1] = (char *) | - |
| 88 | ((void *)0) | - |
| 89 | ; | - |
| 90 | | - |
| 91 | | - |
| 92 | | - |
| 93 | if (c != '{'| TRUE | evaluated 39197 times by 1 test | | FALSE | evaluated 118 times by 1 test |
) | 118-39197 |
| 94 | returnexecuted 39197 times by 1 test: return (result); (result);executed 39197 times by 1 test: return (result); | 39197 |
| 95 | | - |
| 96 | | - |
| 97 | start = ++i; | - |
| 98 | c = brace_gobbler (text, tlen, &i, '}'); | - |
| 99 | | - |
| 100 | | - |
| 101 | if (c == 0| TRUE | never evaluated | | FALSE | evaluated 118 times by 1 test |
) | 0-118 |
| 102 | { | - |
| 103 | sh_xfree((preamble), "braces.c", 200); | - |
| 104 | result[0] = (char *)strcpy (sh_xmalloc((1 + strlen (text)), "braces.c", 201), (text)); | - |
| 105 | return never executed: return (result); (result);never executed: return (result); | 0 |
| 106 | } | - |
| 107 | | - |
| 108 | | - |
| 109 | amble = substring (text, start, i); | - |
| 110 | alen = i - start; | - |
| 111 | memset (&state, '\0', sizeof (mbstate_t)); | - |
| 112 | | - |
| 113 | | - |
| 114 | | - |
| 115 | j = 0; | - |
| 116 | while (amble[j]| TRUE | evaluated 594 times by 1 test | | FALSE | evaluated 53 times by 1 test |
) | 53-594 |
| 117 | { | - |
| 118 | if (amble[j] == '\\'| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 589 times by 1 test |
) | 5-589 |
| 119 | { | - |
| 120 | j++; | - |
| 121 | do { if (locale_mb_cur_max > 1| TRUE | evaluated 5 times by 1 test | | FALSE | never evaluated |
) { mbstate_t state_bak; size_t mblength; int _f; _f = is_basic ((amble)[j]); if (_f| TRUE | evaluated 5 times by 1 test | | FALSE | never evaluated |
) mblength = 1;executed 5 times by 1 test: mblength = 1; else if (locale_utf8locale| TRUE | never evaluated | | FALSE | never evaluated |
&& (((| TRUE | never evaluated | | FALSE | never evaluated |
amble)[j] & 0x80) == 0)| TRUE | never evaluated | | FALSE | never evaluated |
) mblength = 1;never executed: mblength = 1; else { state_bak = state; mblength = mbrlen ((amble) + (j), (alen) - (j), &state); }never executed: end of block if (mblength == (size_t)-2| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
|| mblength == (size_t)-1| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
) { state = state_bak; (j)++; }never executed: end of block else if (mblength == 0| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
) (never executed: (j)++; j)++;never executed: (j)++; else (executed 5 times by 1 test: (j) += mblength; j) += mblength;executed 5 times by 1 test: (j) += mblength; } else (never executed: (j)++; j)++;never executed: (j)++; } while (0); | 0-5 |
| 122 | continue;executed 5 times by 1 test: continue; | 5 |
| 123 | } | - |
| 124 | | - |
| 125 | if (amble[j] == brace_arg_separator| TRUE | evaluated 65 times by 1 test | | FALSE | evaluated 524 times by 1 test |
) | 65-524 |
| 126 | break;executed 65 times by 1 test: break; | 65 |
| 127 | | - |
| 128 | do { if (locale_mb_cur_max > 1| TRUE | evaluated 516 times by 1 test | | FALSE | evaluated 8 times by 1 test |
) { mbstate_t state_bak; size_t mblength; int _f; _f = is_basic ((amble)[j]); if (_f| TRUE | evaluated 516 times by 1 test | | FALSE | never evaluated |
) mblength = 1;executed 516 times by 1 test: mblength = 1; else if (locale_utf8locale| TRUE | never evaluated | | FALSE | never evaluated |
&& (((| TRUE | never evaluated | | FALSE | never evaluated |
amble)[j] & 0x80) == 0)| TRUE | never evaluated | | FALSE | never evaluated |
) mblength = 1;never executed: mblength = 1; else { state_bak = state; mblength = mbrlen ((amble) + (j), (alen) - (j), &state); }never executed: end of block if (mblength == (size_t)-2| TRUE | never evaluated | | FALSE | evaluated 516 times by 1 test |
|| mblength == (size_t)-1| TRUE | never evaluated | | FALSE | evaluated 516 times by 1 test |
) { state = state_bak; (j)++; }never executed: end of block else if (mblength == 0| TRUE | never evaluated | | FALSE | evaluated 516 times by 1 test |
) (never executed: (j)++; j)++;never executed: (j)++; else (executed 516 times by 1 test: (j) += mblength; j) += mblength;executed 516 times by 1 test: (j) += mblength; } else (executed 8 times by 1 test: (j)++; j)++;executed 8 times by 1 test: (j)++; } while (0); | 0-516 |
| 129 | }executed 524 times by 1 test: end of block | 524 |
| 130 | | - |
| 131 | if (amble[j] == 0| TRUE | evaluated 53 times by 1 test | | FALSE | evaluated 65 times by 1 test |
) | 53-65 |
| 132 | { | - |
| 133 | tack = expand_seqterm (amble, alen); | - |
| 134 | if (tack| TRUE | evaluated 37 times by 1 test | | FALSE | evaluated 16 times by 1 test |
) | 16-37 |
| 135 | gotoexecuted 37 times by 1 test: goto add_tack; add_tack;executed 37 times by 1 test: goto add_tack; | 37 |
| 136 | else if (text[i + 1]| TRUE | never evaluated | | FALSE | evaluated 16 times by 1 test |
) | 0-16 |
| 137 | { | - |
| 138 | | - |
| 139 | | - |
| 140 | | - |
| 141 | | - |
| 142 | | - |
| 143 | tack = strvec_create (2); | - |
| 144 | tack[0] = (char *)strcpy (sh_xmalloc((1 + strlen (text+start-1)), "braces.c", 249), (text+start-1)); | - |
| 145 | tack[0][i-start+2] = '\0'; | - |
| 146 | tack[1] = (char *)0; | - |
| 147 | goto never executed: goto add_tack; add_tack;never executed: goto add_tack; | 0 |
| 148 | } | - |
| 149 | else | - |
| 150 | { | - |
| 151 | sh_xfree((amble), "braces.c", 256); | - |
| 152 | sh_xfree((preamble), "braces.c", 257); | - |
| 153 | result[0] = (char *)strcpy (sh_xmalloc((1 + strlen (text)), "braces.c", 258), (text)); | - |
| 154 | returnexecuted 16 times by 1 test: return (result); (result);executed 16 times by 1 test: return (result); | 16 |
| 155 | } | - |
| 156 | } | - |
| 157 | | - |
| 158 | | - |
| 159 | tack = expand_amble (amble, alen, 0); | - |
| 160 | add_tack:code before this statement executed 65 times by 1 test: add_tack: | 65 |
| 161 | result = array_concat (result, tack); | - |
| 162 | sh_xfree((amble), "braces.c", 267); | - |
| 163 | if (tack != result| TRUE | evaluated 49 times by 1 test | | FALSE | evaluated 53 times by 1 test |
) | 49-53 |
| 164 | strvec_dispose (tack);executed 49 times by 1 test: strvec_dispose (tack); | 49 |
| 165 | | - |
| 166 | postamble = text + i + 1; | - |
| 167 | | - |
| 168 | if (postamble| TRUE | evaluated 102 times by 1 test | | FALSE | never evaluated |
&& *| TRUE | evaluated 27 times by 1 test | | FALSE | evaluated 75 times by 1 test |
postamble| TRUE | evaluated 27 times by 1 test | | FALSE | evaluated 75 times by 1 test |
) | 0-102 |
| 169 | { | - |
| 170 | tack = brace_expand (postamble); | - |
| 171 | result = array_concat (result, tack); | - |
| 172 | if (tack != result| TRUE | evaluated 27 times by 1 test | | FALSE | never evaluated |
) | 0-27 |
| 173 | strvec_dispose (tack);executed 27 times by 1 test: strvec_dispose (tack); | 27 |
| 174 | }executed 27 times by 1 test: end of block | 27 |
| 175 | | - |
| 176 | returnexecuted 102 times by 1 test: return (result); (result);executed 102 times by 1 test: return (result); | 102 |
| 177 | } | - |
| 178 | | - |
| 179 | | - |
| 180 | | - |
| 181 | | - |
| 182 | | - |
| 183 | static char ** | - |
| 184 | expand_amble (text, tlen, flags) | - |
| 185 | char *text; | - |
| 186 | size_t tlen; | - |
| 187 | int flags; | - |
| 188 | { | - |
| 189 | char **result, **partial, **tresult; | - |
| 190 | char *tem; | - |
| 191 | int start, i, c; | - |
| 192 | | - |
| 193 | | - |
| 194 | mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); | - |
| 195 | | - |
| 196 | | - |
| 197 | result = (char **) | - |
| 198 | ((void *)0) | - |
| 199 | ; | - |
| 200 | | - |
| 201 | start = i = 0; | - |
| 202 | c = 1; | - |
| 203 | while (c| TRUE | evaluated 181 times by 1 test | | FALSE | evaluated 65 times by 1 test |
) | 65-181 |
| 204 | { | - |
| 205 | c = brace_gobbler (text, tlen, &i, brace_arg_separator); | - |
| 206 | | - |
| 207 | tem = substring (text, start, i); | - |
| 208 | | - |
| 209 | | - |
| 210 | | - |
| 211 | | - |
| 212 | | - |
| 213 | | - |
| 214 | partial = brace_expand (tem); | - |
| 215 | | - |
| 216 | if (!result| TRUE | evaluated 65 times by 1 test | | FALSE | evaluated 116 times by 1 test |
) | 65-116 |
| 217 | result = partial;executed 65 times by 1 test: result = partial; | 65 |
| 218 | else | - |
| 219 | { | - |
| 220 | register int lr, lp, j; | - |
| 221 | | - |
| 222 | lr = strvec_len (result); | - |
| 223 | lp = strvec_len (partial); | - |
| 224 | | - |
| 225 | tresult = strvec_mresize (result, lp + lr + 1); | - |
| 226 | if (tresult == 0| TRUE | never evaluated | | FALSE | evaluated 116 times by 1 test |
) | 0-116 |
| 227 | { | - |
| 228 | internal_error ( | - |
| 229 | dcgettext (((void *)0), | - |
| 230 | "brace expansion: cannot allocate memory for %s" | - |
| 231 | , 5) | - |
| 232 | , tem); | - |
| 233 | sh_xfree((tem), "braces.c", 332); | - |
| 234 | strvec_dispose (partial); | - |
| 235 | strvec_dispose (result); | - |
| 236 | result = (char **) | - |
| 237 | ((void *)0) | - |
| 238 | ; | - |
| 239 | return never executed: return result; result;never executed: return result; | 0 |
| 240 | } | - |
| 241 | else | - |
| 242 | result = tresult;executed 116 times by 1 test: result = tresult; | 116 |
| 243 | | - |
| 244 | for (j = 0; j < lp| TRUE | evaluated 122 times by 1 test | | FALSE | evaluated 116 times by 1 test |
; j++) | 116-122 |
| 245 | result[lr + j] = partial[j];executed 122 times by 1 test: result[lr + j] = partial[j]; | 122 |
| 246 | | - |
| 247 | result[lr + j] = (char *) | - |
| 248 | ((void *)0) | - |
| 249 | ; | - |
| 250 | sh_xfree((partial), "braces.c", 345); | - |
| 251 | }executed 116 times by 1 test: end of block | 116 |
| 252 | sh_xfree((tem), "braces.c", 347); | - |
| 253 | | - |
| 254 | do { if (locale_mb_cur_max > 1| TRUE | evaluated 152 times by 1 test | | FALSE | evaluated 29 times by 1 test |
) { mbstate_t state_bak; size_t mblength; int _f; _f = is_basic ((text)[i]); if (_f| TRUE | evaluated 97 times by 1 test | | FALSE | evaluated 55 times by 1 test |
) mblength = 1;executed 97 times by 1 test: mblength = 1; else if (locale_utf8locale| TRUE | evaluated 55 times by 1 test | | FALSE | never evaluated |
&& (((| TRUE | evaluated 55 times by 1 test | | FALSE | never evaluated |
text)[i] & 0x80) == 0)| TRUE | evaluated 55 times by 1 test | | FALSE | never evaluated |
) mblength = 1;executed 55 times by 1 test: mblength = 1; else { state_bak = state; mblength = mbrlen ((text) + (i), (tlen) - (i), &state); }never executed: end of block if (mblength == (size_t)-2| TRUE | never evaluated | | FALSE | evaluated 152 times by 1 test |
|| mblength == (size_t)-1| TRUE | never evaluated | | FALSE | evaluated 152 times by 1 test |
) { state = state_bak; (i)++; }never executed: end of block else if (mblength == 0| TRUE | never evaluated | | FALSE | evaluated 152 times by 1 test |
) (never executed: (i)++; i)++;never executed: (i)++; else (executed 152 times by 1 test: (i) += mblength; i) += mblength;executed 152 times by 1 test: (i) += mblength; } else (executed 29 times by 1 test: (i)++; i)++;executed 29 times by 1 test: (i)++; } while (0); | 0-152 |
| 255 | | - |
| 256 | | - |
| 257 | | - |
| 258 | start = i; | - |
| 259 | }executed 181 times by 1 test: end of block | 181 |
| 260 | returnexecuted 65 times by 1 test: return (result); (result);executed 65 times by 1 test: return (result); | 65 |
| 261 | } | - |
| 262 | static char ** | - |
| 263 | mkseq (start, end, incr, type, width) | - |
| 264 | intmax_t start, end, incr; | - |
| 265 | int type, width; | - |
| 266 | { | - |
| 267 | intmax_t n, prevn; | - |
| 268 | int i, nelem; | - |
| 269 | char **result, *t; | - |
| 270 | | - |
| 271 | if (incr == 0| TRUE | never evaluated | | FALSE | evaluated 37 times by 1 test |
) | 0-37 |
| 272 | incr = 1; never executed: incr = 1; | 0 |
| 273 | | - |
| 274 | if (start > end| TRUE | evaluated 15 times by 1 test | | FALSE | evaluated 22 times by 1 test |
&& incr > 0| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 5 times by 1 test |
) | 5-22 |
| 275 | incr = -incr;executed 10 times by 1 test: incr = -incr; | 10 |
| 276 | else if (start < end| TRUE | evaluated 19 times by 1 test | | FALSE | evaluated 8 times by 1 test |
&& incr < 0| TRUE | never evaluated | | FALSE | evaluated 19 times by 1 test |
) | 0-19 |
| 277 | { | - |
| 278 | if (incr == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 279 | (-9223372036854775807L -1)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 280 | ) | - |
| 281 | return never executed: return ((char **) ((void *)0) ); ((char **)never executed: return ((char **) ((void *)0) ); | 0 |
| 282 | ((void *)0) never executed: return ((char **) ((void *)0) ); | 0 |
| 283 | ); never executed: return ((char **) ((void *)0) ); | 0 |
| 284 | incr = -incr; | - |
| 285 | } never executed: end of block | 0 |
| 286 | | - |
| 287 | | - |
| 288 | | - |
| 289 | | - |
| 290 | if (((((| TRUE | evaluated 30 times by 1 test | | FALSE | evaluated 7 times by 1 test |
start) > 0)| TRUE | evaluated 30 times by 1 test | | FALSE | evaluated 7 times by 1 test |
&& ((| TRUE | never evaluated | | FALSE | evaluated 30 times by 1 test |
end) < ((| TRUE | never evaluated | | FALSE | evaluated 30 times by 1 test |
| 0-30 |
| 291 | (-9223372036854775807L -1)| TRUE | never evaluated | | FALSE | evaluated 30 times by 1 test |
| 0-30 |
| 292 | +3) + (start)))| TRUE | never evaluated | | FALSE | evaluated 30 times by 1 test |
) || (((| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 32 times by 1 test |
start) < 0)| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 32 times by 1 test |
&& ((| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
end) > ((| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
| 0-32 |
| 293 | (9223372036854775807L)| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
| 0-5 |
| 294 | -2) + (start)))| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
))) | 0-5 |
| 295 | return never executed: return ((char **) ((void *)0) ); ((char **)never executed: return ((char **) ((void *)0) ); | 0 |
| 296 | ((void *)0) never executed: return ((char **) ((void *)0) ); | 0 |
| 297 | ); never executed: return ((char **) ((void *)0) ); | 0 |
| 298 | | - |
| 299 | prevn = (((| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 15 times by 1 test |
end - start) >= 0)| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 15 times by 1 test |
? (end - start) : -(end - start)); | 15-22 |
| 300 | | - |
| 301 | if (0x7fffffff == | TRUE | never evaluated | | FALSE | evaluated 37 times by 1 test |
| 0-37 |
| 302 | (9223372036854775807L)| TRUE | never evaluated | | FALSE | evaluated 37 times by 1 test |
| 0-37 |
| 303 | && (((((| TRUE | never evaluated | | FALSE | never evaluated |
prevn) > 0)| TRUE | never evaluated | | FALSE | never evaluated |
&& ((| TRUE | never evaluated | | FALSE | never evaluated |
2) > ((0x7fffffff) - (prevn)))| TRUE | never evaluated | | FALSE | never evaluated |
) || (((| TRUE | never evaluated | | FALSE | never evaluated |
prevn) < 0)| TRUE | never evaluated | | FALSE | never evaluated |
&& ((| TRUE | never evaluated | | FALSE | never evaluated |
2) < ((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 304 | (-0x7fffffff - 1)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 305 | ) - (prevn)))| TRUE | never evaluated | | FALSE | never evaluated |
)))) | 0 |
| 306 | return never executed: return ((char **) ((void *)0) ); ((char **)never executed: return ((char **) ((void *)0) ); | 0 |
| 307 | ((void *)0) never executed: return ((char **) ((void *)0) ); | 0 |
| 308 | ); never executed: return ((char **) ((void *)0) ); | 0 |
| 309 | | - |
| 310 | | - |
| 311 | else if ((((((| TRUE | evaluated 33 times by 1 test | | FALSE | evaluated 4 times by 1 test |
prevn/(((incr) >= 0) ? (incr) : -(incr)))) > 0)| TRUE | evaluated 33 times by 1 test | | FALSE | evaluated 4 times by 1 test |
&& ((| TRUE | never evaluated | | FALSE | evaluated 33 times by 1 test |
1) > ((| TRUE | never evaluated | | FALSE | evaluated 33 times by 1 test |
| 0-33 |
| 312 | (9223372036854775807L)| TRUE | never evaluated | | FALSE | evaluated 33 times by 1 test |
| 0-33 |
| 313 | ) - ((prevn/(((incr) >= 0) ? (incr) : -(incr))))))| TRUE | never evaluated | | FALSE | evaluated 33 times by 1 test |
) || ((((| TRUE | never evaluated | | FALSE | evaluated 37 times by 1 test |
prevn/(((| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 15 times by 1 test |
incr) >= 0)| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 15 times by 1 test |
? (incr) : -(incr)))) < 0)| TRUE | never evaluated | | FALSE | evaluated 37 times by 1 test |
&& ((| TRUE | never evaluated | | FALSE | never evaluated |
1) < ((| TRUE | never evaluated | | FALSE | never evaluated |
| 0-37 |
| 314 | (-9223372036854775807L -1)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 315 | ) - ((prevn/(((incr) >= 0) ? (incr) : -(incr))))))| TRUE | never evaluated | | FALSE | never evaluated |
))) | 0 |
| 316 | return never executed: return ((char **) ((void *)0) ); ((char **)never executed: return ((char **) ((void *)0) ); | 0 |
| 317 | ((void *)0) never executed: return ((char **) ((void *)0) ); | 0 |
| 318 | ); never executed: return ((char **) ((void *)0) ); | 0 |
| 319 | | - |
| 320 | | - |
| 321 | | - |
| 322 | | - |
| 323 | | - |
| 324 | | - |
| 325 | nelem = (prevn / (((| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 15 times by 1 test |
incr) >= 0)| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 15 times by 1 test |
? (incr) : -(incr))) + 1; | 15-22 |
| 326 | if (nelem > 0x7fffffff - 2| TRUE | never evaluated | | FALSE | evaluated 37 times by 1 test |
) | 0-37 |
| 327 | return never executed: return ((char **) ((void *)0) ); ((char **)never executed: return ((char **) ((void *)0) ); | 0 |
| 328 | ((void *)0) never executed: return ((char **) ((void *)0) ); | 0 |
| 329 | ); never executed: return ((char **) ((void *)0) ); | 0 |
| 330 | result = strvec_mcreate (nelem + 1); | - |
| 331 | if (result == 0| TRUE | never evaluated | | FALSE | evaluated 37 times by 1 test |
) | 0-37 |
| 332 | { | - |
| 333 | internal_error ( | - |
| 334 | dcgettext (((void *)0), | - |
| 335 | "brace expansion: failed to allocate memory for %u elements" | - |
| 336 | , 5) | - |
| 337 | , (unsigned int)nelem); | - |
| 338 | return never executed: return ((char **) ((void *)0) ); ((char **)never executed: return ((char **) ((void *)0) ); | 0 |
| 339 | ((void *)0) never executed: return ((char **) ((void *)0) ); | 0 |
| 340 | ); never executed: return ((char **) ((void *)0) ); | 0 |
| 341 | } | - |
| 342 | | - |
| 343 | | - |
| 344 | i = 0; | - |
| 345 | n = start; | - |
| 346 | do | - |
| 347 | { | - |
| 348 | | - |
| 349 | if (interrupt_state != 0| TRUE | never evaluated | | FALSE | evaluated 10375 times by 1 test |
) | 0-10375 |
| 350 | { | - |
| 351 | strvec_dispose (result); | - |
| 352 | result = (char **) | - |
| 353 | ((void *)0) | - |
| 354 | ; | - |
| 355 | } never executed: end of block | 0 |
| 356 | do { if (terminating_signal| TRUE | never evaluated | | FALSE | evaluated 10375 times by 1 test |
) termsig_handler (terminating_signal);never executed: termsig_handler (terminating_signal); if (interrupt_state| TRUE | never evaluated | | FALSE | evaluated 10375 times by 1 test |
) throw_to_top_level ();never executed: throw_to_top_level (); } while (0); | 0-10375 |
| 357 | | - |
| 358 | if (type == 1| TRUE | evaluated 10244 times by 1 test | | FALSE | evaluated 131 times by 1 test |
) | 131-10244 |
| 359 | result[i++] = t = itos (n);executed 10244 times by 1 test: result[i++] = t = itos (n); | 10244 |
| 360 | else if (type == 3| TRUE | never evaluated | | FALSE | evaluated 131 times by 1 test |
) | 0-131 |
| 361 | { | - |
| 362 | int len, arg; | - |
| 363 | arg = n; | - |
| 364 | len = asprintf (&t, "%0*d", width, arg); | - |
| 365 | result[i++] = t; | - |
| 366 | } never executed: end of block | 0 |
| 367 | else | - |
| 368 | { | - |
| 369 | if (t = (char *)malloc (2)| TRUE | evaluated 131 times by 1 test | | FALSE | never evaluated |
) | 0-131 |
| 370 | { | - |
| 371 | t[0] = n; | - |
| 372 | t[1] = '\0'; | - |
| 373 | }executed 131 times by 1 test: end of block | 131 |
| 374 | result[i++] = t; | - |
| 375 | }executed 131 times by 1 test: end of block | 131 |
| 376 | | - |
| 377 | | - |
| 378 | if (t == 0| TRUE | never evaluated | | FALSE | evaluated 10375 times by 1 test |
) | 0-10375 |
| 379 | { | - |
| 380 | char *p, lbuf[((sizeof (intmax_t) * 8 - (! ((intmax_t) 0 < (intmax_t) -1))) * 302 / 1000 + 1 + (! ((intmax_t) 0 < (intmax_t) -1))) + 1]; | - |
| 381 | | - |
| 382 | | - |
| 383 | | - |
| 384 | p = inttostr (n, lbuf, sizeof (lbuf)); | - |
| 385 | internal_error ( | - |
| 386 | dcgettext (((void *)0), | - |
| 387 | "brace expansion: failed to allocate memory for `%s'" | - |
| 388 | , 5) | - |
| 389 | , p); | - |
| 390 | strvec_dispose (result); | - |
| 391 | return never executed: return ((char **) ((void *)0) ); ((char **)never executed: return ((char **) ((void *)0) ); | 0 |
| 392 | ((void *)0) never executed: return ((char **) ((void *)0) ); | 0 |
| 393 | ); never executed: return ((char **) ((void *)0) ); | 0 |
| 394 | } | - |
| 395 | | - |
| 396 | | - |
| 397 | if (((((| TRUE | evaluated 10317 times by 1 test | | FALSE | evaluated 58 times by 1 test |
n) > 0)| TRUE | evaluated 10317 times by 1 test | | FALSE | evaluated 58 times by 1 test |
&& ((| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 10316 times by 1 test |
incr) > ((| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 10316 times by 1 test |
| 1-10317 |
| 398 | (9223372036854775807L)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 10316 times by 1 test |
| 1-10316 |
| 399 | ) - (n)))| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 10316 times by 1 test |
) || (((| TRUE | evaluated 50 times by 1 test | | FALSE | evaluated 10324 times by 1 test |
n) < 0)| TRUE | evaluated 50 times by 1 test | | FALSE | evaluated 10324 times by 1 test |
&& ((| TRUE | never evaluated | | FALSE | evaluated 50 times by 1 test |
incr) < ((| TRUE | never evaluated | | FALSE | evaluated 50 times by 1 test |
| 0-10324 |
| 400 | (-9223372036854775807L -1)| TRUE | never evaluated | | FALSE | evaluated 50 times by 1 test |
| 0-50 |
| 401 | ) - (n)))| TRUE | never evaluated | | FALSE | evaluated 50 times by 1 test |
))) | 0-50 |
| 402 | break;executed 1 time by 1 test: break; | 1 |
| 403 | | - |
| 404 | n += incr; | - |
| 405 | | - |
| 406 | if ((incr < 0| TRUE | evaluated 166 times by 1 test | | FALSE | evaluated 10208 times by 1 test |
&& n < end| TRUE | evaluated 15 times by 1 test | | FALSE | evaluated 151 times by 1 test |
) || (incr > 0| TRUE | evaluated 10208 times by 1 test | | FALSE | evaluated 151 times by 1 test |
&& n > end| TRUE | evaluated 21 times by 1 test | | FALSE | evaluated 10187 times by 1 test |
)) | 15-10208 |
| 407 | break;executed 36 times by 1 test: break; | 36 |
| 408 | }executed 10338 times by 1 test: end of block | 10338 |
| 409 | while (1); | - |
| 410 | | - |
| 411 | result[i] = (char *)0; | - |
| 412 | returnexecuted 37 times by 1 test: return (result); (result);executed 37 times by 1 test: return (result); | 37 |
| 413 | } | - |
| 414 | | - |
| 415 | static char ** | - |
| 416 | expand_seqterm (text, tlen) | - |
| 417 | char *text; | - |
| 418 | size_t tlen; | - |
| 419 | { | - |
| 420 | char *t, *lhs, *rhs; | - |
| 421 | int lhs_t, rhs_t, lhs_l, rhs_l, width; | - |
| 422 | intmax_t lhs_v, rhs_v, incr; | - |
| 423 | intmax_t tl, tr; | - |
| 424 | char **result, *ep, *oep; | - |
| 425 | | - |
| 426 | t = strstr (text, ".."); | - |
| 427 | if (t == 0| TRUE | never evaluated | | FALSE | evaluated 53 times by 1 test |
) | 0-53 |
| 428 | return never executed: return ((char **) ((void *)0) ); ((char **)never executed: return ((char **) ((void *)0) ); | 0 |
| 429 | ((void *)0) never executed: return ((char **) ((void *)0) ); | 0 |
| 430 | ); never executed: return ((char **) ((void *)0) ); | 0 |
| 431 | | - |
| 432 | lhs_l = t - text; | - |
| 433 | lhs = substring (text, 0, lhs_l); | - |
| 434 | rhs = substring (text, lhs_l + sizeof("..") - 1, tlen); | - |
| 435 | | - |
| 436 | if (lhs[0] == 0| TRUE | never evaluated | | FALSE | evaluated 53 times by 1 test |
|| rhs[0] == 0| TRUE | never evaluated | | FALSE | evaluated 53 times by 1 test |
) | 0-53 |
| 437 | { | - |
| 438 | sh_xfree((lhs), "braces.c", 514); | - |
| 439 | sh_xfree((rhs), "braces.c", 515); | - |
| 440 | return never executed: return ((char **) ((void *)0) ); ((char **)never executed: return ((char **) ((void *)0) ); | 0 |
| 441 | ((void *)0) never executed: return ((char **) ((void *)0) ); | 0 |
| 442 | ); never executed: return ((char **) ((void *)0) ); | 0 |
| 443 | } | - |
| 444 | | - |
| 445 | | - |
| 446 | | - |
| 447 | lhs_t = (| TRUE | evaluated 43 times by 1 test | | FALSE | evaluated 10 times by 1 test |
legal_number (lhs, &tl))| TRUE | evaluated 43 times by 1 test | | FALSE | evaluated 10 times by 1 test |
? 1 : | 10-43 |
| 448 | (((1 && | - |
| 449 | ((*| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 1 time by 1 test |
__ctype_b_loc ())[(int) ((| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| 1-9 |
| 450 | (unsigned char)lhs[0]| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| 1-9 |
| 451 | ))] & (unsigned short int) _ISalpha)| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| 1-9 |
| 452 | ) && lhs[1] == 0| TRUE | evaluated 9 times by 1 test | | FALSE | never evaluated |
) ? 2 : 0); | 0-9 |
| 453 | | - |
| 454 | | - |
| 455 | | - |
| 456 | ep = 0; | - |
| 457 | if ((1 && | - |
| 458 | ((*| TRUE | evaluated 36 times by 1 test | | FALSE | evaluated 17 times by 1 test |
__ctype_b_loc ())[(int) ((| TRUE | evaluated 36 times by 1 test | | FALSE | evaluated 17 times by 1 test |
| 17-36 |
| 459 | (unsigned char)rhs[0]| TRUE | evaluated 36 times by 1 test | | FALSE | evaluated 17 times by 1 test |
| 17-36 |
| 460 | ))] & (unsigned short int) _ISdigit)| TRUE | evaluated 36 times by 1 test | | FALSE | evaluated 17 times by 1 test |
| 17-36 |
| 461 | ) || ((rhs[0] == '+'| TRUE | never evaluated | | FALSE | evaluated 17 times by 1 test |
|| rhs[0] == '-'| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 13 times by 1 test |
) && (1 && | 0-17 |
| 462 | ((*| TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
__ctype_b_loc ())[(int) ((| TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
| 0-4 |
| 463 | (unsigned char)rhs[1]| TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
| 0-4 |
| 464 | ))] & (unsigned short int) _ISdigit)| TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
| 0-4 |
| 465 | ))) | - |
| 466 | { | - |
| 467 | rhs_t = 1; | - |
| 468 | | - |
| 469 | (*__errno_location ()) | - |
| 470 | = 0; | - |
| 471 | tr = strtoimax (rhs, &ep, 10); | - |
| 472 | if ( | - |
| 473 | (*| TRUE | never evaluated | | FALSE | evaluated 40 times by 1 test |
__errno_location ()) | TRUE | never evaluated | | FALSE | evaluated 40 times by 1 test |
| 0-40 |
| 474 | == | TRUE | never evaluated | | FALSE | evaluated 40 times by 1 test |
| 0-40 |
| 475 | 34| TRUE | never evaluated | | FALSE | evaluated 40 times by 1 test |
| 0-40 |
| 476 | || (ep| TRUE | evaluated 40 times by 1 test | | FALSE | never evaluated |
&& *| TRUE | evaluated 21 times by 1 test | | FALSE | evaluated 19 times by 1 test |
ep != 0| TRUE | evaluated 21 times by 1 test | | FALSE | evaluated 19 times by 1 test |
&& *| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 18 times by 1 test |
ep != '.'| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 18 times by 1 test |
)) | 0-40 |
| 477 | rhs_t = 0;executed 3 times by 1 test: rhs_t = 0; | 3 |
| 478 | }executed 40 times by 1 test: end of block | 40 |
| 479 | else if ((1 && | - |
| 480 | ((*| TRUE | evaluated 13 times by 1 test | | FALSE | never evaluated |
__ctype_b_loc ())[(int) ((| TRUE | evaluated 13 times by 1 test | | FALSE | never evaluated |
| 0-13 |
| 481 | (unsigned char)rhs[0]| TRUE | evaluated 13 times by 1 test | | FALSE | never evaluated |
| 0-13 |
| 482 | ))] & (unsigned short int) _ISalpha)| TRUE | evaluated 13 times by 1 test | | FALSE | never evaluated |
| 0-13 |
| 483 | ) && (rhs[1] == 0| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 5 times by 1 test |
|| rhs[1] == '.'| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 3 times by 1 test |
)) | 2-8 |
| 484 | { | - |
| 485 | rhs_t = 2; | - |
| 486 | ep = rhs + 1; | - |
| 487 | }executed 10 times by 1 test: end of block | 10 |
| 488 | else | - |
| 489 | { | - |
| 490 | rhs_t = 0; | - |
| 491 | ep = 0; | - |
| 492 | }executed 3 times by 1 test: end of block | 3 |
| 493 | | - |
| 494 | incr = 1; | - |
| 495 | if (rhs_t != 0| TRUE | evaluated 47 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) | 6-47 |
| 496 | { | - |
| 497 | oep = ep; | - |
| 498 | | - |
| 499 | (*__errno_location ()) | - |
| 500 | = 0; | - |
| 501 | if (ep| TRUE | evaluated 47 times by 1 test | | FALSE | never evaluated |
&& *| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 27 times by 1 test |
ep == '.'| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 27 times by 1 test |
&& ep[1] == '.'| TRUE | evaluated 17 times by 1 test | | FALSE | evaluated 3 times by 1 test |
&& ep[2]| TRUE | evaluated 17 times by 1 test | | FALSE | never evaluated |
) | 0-47 |
| 502 | incr = strtoimax (ep + 2, &ep, 10);executed 17 times by 1 test: incr = strtoimax (ep + 2, &ep, 10); | 17 |
| 503 | if (*| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 41 times by 1 test |
ep != 0| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 41 times by 1 test |
|| | 6-41 |
| 504 | (*| TRUE | never evaluated | | FALSE | evaluated 41 times by 1 test |
__errno_location ()) | TRUE | never evaluated | | FALSE | evaluated 41 times by 1 test |
| 0-41 |
| 505 | == | TRUE | never evaluated | | FALSE | evaluated 41 times by 1 test |
| 0-41 |
| 506 | 34| TRUE | never evaluated | | FALSE | evaluated 41 times by 1 test |
| 0-41 |
| 507 | ) | - |
| 508 | rhs_t = 0;executed 6 times by 1 test: rhs_t = 0; | 6 |
| 509 | tlen -= ep - oep; | - |
| 510 | }executed 47 times by 1 test: end of block | 47 |
| 511 | | - |
| 512 | if (lhs_t != rhs_t| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 37 times by 1 test |
|| lhs_t == 0| TRUE | never evaluated | | FALSE | evaluated 37 times by 1 test |
|| rhs_t == 0| TRUE | never evaluated | | FALSE | evaluated 37 times by 1 test |
) | 0-37 |
| 513 | { | - |
| 514 | sh_xfree((lhs), "braces.c", 560); | - |
| 515 | sh_xfree((rhs), "braces.c", 561); | - |
| 516 | returnexecuted 16 times by 1 test: return ((char **) ((void *)0) ); ((char **)executed 16 times by 1 test: return ((char **) ((void *)0) ); | 16 |
| 517 | ((void *)0)executed 16 times by 1 test: return ((char **) ((void *)0) ); | 16 |
| 518 | );executed 16 times by 1 test: return ((char **) ((void *)0) ); | 16 |
| 519 | } | - |
| 520 | | - |
| 521 | | - |
| 522 | | - |
| 523 | | - |
| 524 | | - |
| 525 | if (lhs_t == 2| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 29 times by 1 test |
) | 8-29 |
| 526 | { | - |
| 527 | lhs_v = (unsigned char)lhs[0]; | - |
| 528 | rhs_v = (unsigned char)rhs[0]; | - |
| 529 | width = 1; | - |
| 530 | }executed 8 times by 1 test: end of block | 8 |
| 531 | else | - |
| 532 | { | - |
| 533 | lhs_v = tl; | - |
| 534 | rhs_v = tr; | - |
| 535 | | - |
| 536 | | - |
| 537 | rhs_l = tlen - lhs_l - sizeof ("..") + 1; | - |
| 538 | width = 0; | - |
| 539 | if (lhs_l > 1| TRUE | evaluated 17 times by 1 test | | FALSE | evaluated 12 times by 1 test |
&& lhs[0] == '0'| TRUE | never evaluated | | FALSE | evaluated 17 times by 1 test |
) | 0-17 |
| 540 | width = lhs_l, lhs_t = 3; never executed: width = lhs_l, lhs_t = 3; | 0 |
| 541 | if (lhs_l > 2| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 23 times by 1 test |
&& lhs[0] == '-'| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 4 times by 1 test |
&& lhs[1] == '0'| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) | 0-23 |
| 542 | width = lhs_l, lhs_t = 3; never executed: width = lhs_l, lhs_t = 3; | 0 |
| 543 | if (rhs_l > 1| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 13 times by 1 test |
&& rhs[0] == '0'| TRUE | never evaluated | | FALSE | evaluated 16 times by 1 test |
&& width < rhs_l| TRUE | never evaluated | | FALSE | never evaluated |
) | 0-16 |
| 544 | width = rhs_l, lhs_t = 3; never executed: width = rhs_l, lhs_t = 3; | 0 |
| 545 | if (rhs_l > 2| TRUE | evaluated 7 times by 1 test | | FALSE | evaluated 22 times by 1 test |
&& rhs[0] == '-'| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 4 times by 1 test |
&& rhs[1] == '0'| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
&& width < rhs_l| TRUE | never evaluated | | FALSE | never evaluated |
) | 0-22 |
| 546 | width = rhs_l, lhs_t = 3; never executed: width = rhs_l, lhs_t = 3; | 0 |
| 547 | | - |
| 548 | if (width < lhs_l| TRUE | evaluated 29 times by 1 test | | FALSE | never evaluated |
&& lhs_t == 3| TRUE | never evaluated | | FALSE | evaluated 29 times by 1 test |
) | 0-29 |
| 549 | width = lhs_l; never executed: width = lhs_l; | 0 |
| 550 | if (width < rhs_l| TRUE | evaluated 29 times by 1 test | | FALSE | never evaluated |
&& lhs_t == 3| TRUE | never evaluated | | FALSE | evaluated 29 times by 1 test |
) | 0-29 |
| 551 | width = rhs_l; never executed: width = rhs_l; | 0 |
| 552 | }executed 29 times by 1 test: end of block | 29 |
| 553 | | - |
| 554 | result = mkseq (lhs_v, rhs_v, incr, lhs_t, width); | - |
| 555 | | - |
| 556 | sh_xfree((lhs), "braces.c", 600); | - |
| 557 | sh_xfree((rhs), "braces.c", 601); | - |
| 558 | | - |
| 559 | returnexecuted 37 times by 1 test: return (result); (result);executed 37 times by 1 test: return (result); | 37 |
| 560 | } | - |
| 561 | static int | - |
| 562 | brace_gobbler (text, tlen, indx, satisfy) | - |
| 563 | char *text; | - |
| 564 | size_t tlen; | - |
| 565 | int *indx; | - |
| 566 | int satisfy; | - |
| 567 | { | - |
| 568 | register int i, c, quoted, level, commas, pass_next; | - |
| 569 | | - |
| 570 | int si; | - |
| 571 | char *t; | - |
| 572 | | - |
| 573 | mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); | - |
| 574 | | - |
| 575 | level = quoted = pass_next = 0; | - |
| 576 | | - |
| 577 | | - |
| 578 | | - |
| 579 | commas = (| TRUE | evaluated 269 times by 1 test | | FALSE | evaluated 39529 times by 1 test |
satisfy == '}')| TRUE | evaluated 269 times by 1 test | | FALSE | evaluated 39529 times by 1 test |
? 0 : 1; | 269-39529 |
| 580 | | - |
| 581 | | - |
| 582 | i = *indx; | - |
| 583 | while (c = text[i]| TRUE | evaluated 708171 times by 1 test | | FALSE | evaluated 39295 times by 1 test |
) | 39295-708171 |
| 584 | { | - |
| 585 | if (pass_next| TRUE | evaluated 36454 times by 1 test | | FALSE | evaluated 671717 times by 1 test |
) | 36454-671717 |
| 586 | { | - |
| 587 | pass_next = 0; | - |
| 588 | | - |
| 589 | do { if (locale_mb_cur_max > 1| TRUE | evaluated 36111 times by 1 test | | FALSE | evaluated 343 times by 1 test |
) { mbstate_t state_bak; size_t mblength; int _f; _f = is_basic ((text)[i]); if (_f| TRUE | evaluated 36036 times by 1 test | | FALSE | evaluated 75 times by 1 test |
) mblength = 1;executed 36036 times by 1 test: mblength = 1; else if (locale_utf8locale| TRUE | evaluated 75 times by 1 test | | FALSE | never evaluated |
&& (((| TRUE | evaluated 75 times by 1 test | | FALSE | never evaluated |
text)[i] & 0x80) == 0)| TRUE | evaluated 75 times by 1 test | | FALSE | never evaluated |
) mblength = 1;executed 75 times by 1 test: mblength = 1; else { state_bak = state; mblength = mbrlen ((text) + (i), (tlen) - (i), &state); }never executed: end of block if (mblength == (size_t)-2| TRUE | never evaluated | | FALSE | evaluated 36111 times by 1 test |
|| mblength == (size_t)-1| TRUE | never evaluated | | FALSE | evaluated 36111 times by 1 test |
) { state = state_bak; (i)++; }never executed: end of block else if (mblength == 0| TRUE | never evaluated | | FALSE | evaluated 36111 times by 1 test |
) (never executed: (i)++; i)++;never executed: (i)++; else (executed 36111 times by 1 test: (i) += mblength; i) += mblength;executed 36111 times by 1 test: (i) += mblength; } else (executed 343 times by 1 test: (i)++; i)++;executed 343 times by 1 test: (i)++; } while (0); | 0-36111 |
| 590 | | - |
| 591 | | - |
| 592 | | - |
| 593 | continue;executed 36454 times by 1 test: continue; | 36454 |
| 594 | } | - |
| 595 | | - |
| 596 | | - |
| 597 | | - |
| 598 | if (c == '\\'| TRUE | evaluated 1337 times by 1 test | | FALSE | evaluated 670380 times by 1 test |
&& (quoted == 0| TRUE | evaluated 396 times by 1 test | | FALSE | evaluated 941 times by 1 test |
|| quoted == '"'| TRUE | evaluated 867 times by 1 test | | FALSE | evaluated 74 times by 1 test |
|| quoted == '`'| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 66 times by 1 test |
)) | 8-670380 |
| 599 | { | - |
| 600 | pass_next = 1; | - |
| 601 | i++; | - |
| 602 | continue;executed 1271 times by 1 test: continue; | 1271 |
| 603 | } | - |
| 604 | | - |
| 605 | | - |
| 606 | | - |
| 607 | if (c == '$'| TRUE | evaluated 59700 times by 1 test | | FALSE | evaluated 610746 times by 1 test |
&& text[i+1] == '{'| TRUE | evaluated 44796 times by 1 test | | FALSE | evaluated 14904 times by 1 test |
&& quoted != '\''| TRUE | evaluated 35183 times by 1 test | | FALSE | evaluated 9613 times by 1 test |
) | 9613-610746 |
| 608 | { | - |
| 609 | pass_next = 1; | - |
| 610 | i++; | - |
| 611 | if (quoted == 0| TRUE | evaluated 12140 times by 1 test | | FALSE | evaluated 23043 times by 1 test |
) | 12140-23043 |
| 612 | level++;executed 12140 times by 1 test: level++; | 12140 |
| 613 | continue;executed 35183 times by 1 test: continue; | 35183 |
| 614 | } | - |
| 615 | | - |
| 616 | | - |
| 617 | if (quoted| TRUE | evaluated 513331 times by 1 test | | FALSE | evaluated 121932 times by 1 test |
) | 121932-513331 |
| 618 | { | - |
| 619 | if (c == quoted| TRUE | evaluated 34749 times by 1 test | | FALSE | evaluated 478582 times by 1 test |
) | 34749-478582 |
| 620 | quoted = 0;executed 34749 times by 1 test: quoted = 0; | 34749 |
| 621 | | - |
| 622 | | - |
| 623 | if (quoted == '"'| TRUE | evaluated 243185 times by 1 test | | FALSE | evaluated 270146 times by 1 test |
&& c == '$'| TRUE | evaluated 6553 times by 1 test | | FALSE | evaluated 236632 times by 1 test |
&& text[i+1] == '('| TRUE | evaluated 95 times by 1 test | | FALSE | evaluated 6458 times by 1 test |
) | 95-270146 |
| 624 | gotoexecuted 95 times by 1 test: goto comsub; comsub;executed 95 times by 1 test: goto comsub; | 95 |
| 625 | | - |
| 626 | | - |
| 627 | do { if (locale_mb_cur_max > 1| TRUE | evaluated 511679 times by 1 test | | FALSE | evaluated 1557 times by 1 test |
) { mbstate_t state_bak; size_t mblength; int _f; _f = is_basic ((text)[i]); if (_f| TRUE | evaluated 483994 times by 1 test | | FALSE | evaluated 27685 times by 1 test |
) mblength = 1;executed 483994 times by 1 test: mblength = 1; else if (locale_utf8locale| TRUE | evaluated 27685 times by 1 test | | FALSE | never evaluated |
&& (((| TRUE | evaluated 27685 times by 1 test | | FALSE | never evaluated |
text)[i] & 0x80) == 0)| TRUE | evaluated 27685 times by 1 test | | FALSE | never evaluated |
) mblength = 1;executed 27685 times by 1 test: mblength = 1; else { state_bak = state; mblength = mbrlen ((text) + (i), (tlen) - (i), &state); }never executed: end of block if (mblength == (size_t)-2| TRUE | never evaluated | | FALSE | evaluated 511679 times by 1 test |
|| mblength == (size_t)-1| TRUE | never evaluated | | FALSE | evaluated 511679 times by 1 test |
) { state = state_bak; (i)++; }never executed: end of block else if (mblength == 0| TRUE | never evaluated | | FALSE | evaluated 511679 times by 1 test |
) (never executed: (i)++; i)++;never executed: (i)++; else (executed 511679 times by 1 test: (i) += mblength; i) += mblength;executed 511679 times by 1 test: (i) += mblength; } else (executed 1557 times by 1 test: (i)++; i)++;executed 1557 times by 1 test: (i)++; } while (0); | 0-511679 |
| 628 | | - |
| 629 | | - |
| 630 | | - |
| 631 | continue;executed 513236 times by 1 test: continue; | 513236 |
| 632 | } | - |
| 633 | | - |
| 634 | if (c == '"'| TRUE | evaluated 24854 times by 1 test | | FALSE | evaluated 97078 times by 1 test |
|| c == '\''| TRUE | evaluated 9849 times by 1 test | | FALSE | evaluated 87229 times by 1 test |
|| c == '`'| TRUE | evaluated 78 times by 1 test | | FALSE | evaluated 87151 times by 1 test |
) | 78-97078 |
| 635 | { | - |
| 636 | quoted = c; | - |
| 637 | i++; | - |
| 638 | continue;executed 34781 times by 1 test: continue; | 34781 |
| 639 | } | - |
| 640 | | - |
| 641 | | - |
| 642 | | - |
| 643 | if ((c == '$'| TRUE | evaluated 2244 times by 1 test | | FALSE | evaluated 84907 times by 1 test |
|| c == '<'| TRUE | evaluated 1890 times by 1 test | | FALSE | evaluated 83017 times by 1 test |
|| c == '>'| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 83016 times by 1 test |
) && text[i+1] == '('| TRUE | evaluated 64 times by 1 test | | FALSE | evaluated 4071 times by 1 test |
) | 1-84907 |
| 644 | { | - |
| 645 | comsub: | - |
| 646 | si = i + 2; | - |
| 647 | t = extract_command_subst (text, &si, 0); | - |
| 648 | i = si; | - |
| 649 | sh_xfree((t), "braces.c", 703); | - |
| 650 | i++; | - |
| 651 | continue;executed 159 times by 1 test: continue; | 159 |
| 652 | } | - |
| 653 | | - |
| 654 | | - |
| 655 | if (c == satisfy| TRUE | evaluated 592 times by 1 test | | FALSE | evaluated 86495 times by 1 test |
&& level == 0| TRUE | evaluated 535 times by 1 test | | FALSE | evaluated 57 times by 1 test |
&& quoted == 0| TRUE | evaluated 535 times by 1 test | | FALSE | never evaluated |
&& commas > 0| TRUE | evaluated 506 times by 1 test | | FALSE | evaluated 29 times by 1 test |
) | 0-86495 |
| 656 | { | - |
| 657 | | - |
| 658 | | - |
| 659 | | - |
| 660 | if (c == '{'| TRUE | evaluated 154 times by 1 test | | FALSE | evaluated 352 times by 1 test |
&& | 154-352 |
| 661 | ((!i| TRUE | evaluated 84 times by 1 test | | FALSE | evaluated 70 times by 1 test |
|| (!(text[i - 1])| TRUE | never evaluated | | FALSE | evaluated 70 times by 1 test |
|| (| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 69 times by 1 test |
text[i - 1]) == ' '| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 69 times by 1 test |
|| (| TRUE | never evaluated | | FALSE | evaluated 69 times by 1 test |
text[i - 1]) == '\t'| TRUE | never evaluated | | FALSE | evaluated 69 times by 1 test |
|| (| TRUE | never evaluated | | FALSE | evaluated 69 times by 1 test |
text[i - 1]) == '\n'| TRUE | never evaluated | | FALSE | evaluated 69 times by 1 test |
)) && | 0-84 |
| 662 | ((!(text[i + 1])| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 83 times by 1 test |
|| (| TRUE | never evaluated | | FALSE | evaluated 83 times by 1 test |
text[i + 1]) == ' '| TRUE | never evaluated | | FALSE | evaluated 83 times by 1 test |
|| (| TRUE | never evaluated | | FALSE | evaluated 83 times by 1 test |
text[i + 1]) == '\t'| TRUE | never evaluated | | FALSE | evaluated 83 times by 1 test |
|| (| TRUE | never evaluated | | FALSE | evaluated 83 times by 1 test |
text[i + 1]) == '\n'| TRUE | never evaluated | | FALSE | evaluated 83 times by 1 test |
) || text[i + 1] == '}'| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 82 times by 1 test |
))) | 0-83 |
| 663 | { | - |
| 664 | i++; | - |
| 665 | continue;executed 3 times by 1 test: continue; | 3 |
| 666 | } | - |
| 667 | | - |
| 668 | break;executed 503 times by 1 test: break; | 503 |
| 669 | } | - |
| 670 | | - |
| 671 | if (c == '{'| TRUE | evaluated 53 times by 1 test | | FALSE | evaluated 86528 times by 1 test |
) | 53-86528 |
| 672 | level++;executed 53 times by 1 test: level++; | 53 |
| 673 | else if (c == '}'| TRUE | evaluated 12296 times by 1 test | | FALSE | evaluated 74232 times by 1 test |
&& level| TRUE | evaluated 12186 times by 1 test | | FALSE | evaluated 110 times by 1 test |
) | 110-74232 |
| 674 | level--;executed 12186 times by 1 test: level--; | 12186 |
| 675 | | - |
| 676 | else if (satisfy == '}'| TRUE | evaluated 2132 times by 1 test | | FALSE | evaluated 72210 times by 1 test |
&& c == brace_arg_separator| TRUE | evaluated 258 times by 1 test | | FALSE | evaluated 1874 times by 1 test |
&& level == 0| TRUE | evaluated 232 times by 1 test | | FALSE | evaluated 26 times by 1 test |
) | 26-72210 |
| 677 | commas++;executed 232 times by 1 test: commas++; | 232 |
| 678 | else if (satisfy == '}'| TRUE | evaluated 1900 times by 1 test | | FALSE | evaluated 72210 times by 1 test |
&& ((| TRUE | never evaluated | | FALSE | evaluated 1900 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
2 == 0)| TRUE | never evaluated | | FALSE | evaluated 1900 times by 1 test |
? (1) : ((| TRUE | evaluated 310 times by 1 test | | FALSE | evaluated 1590 times by 1 test |
text+i)[0] == ("..")[0]| TRUE | evaluated 310 times by 1 test | | FALSE | evaluated 1590 times by 1 test |
&& | TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-72210 |
| 679 | (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
__extension__ (__builtin_constant_p (| TRUE | evaluated 310 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 680 | 2| TRUE | evaluated 310 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 681 | )| TRUE | evaluated 310 times by 1 test | | FALSE | never evaluated |
&& ((__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 310 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 682 | text+i| TRUE | never evaluated | | FALSE | evaluated 310 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 683 | )| TRUE | never evaluated | | FALSE | evaluated 310 times by 1 test |
&& strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 684 | text+i| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 685 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 686 | 2| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 687 | ))| TRUE | never evaluated | | FALSE | never evaluated |
) || (__builtin_constant_p (| TRUE | evaluated 310 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 688 | ".."| TRUE | evaluated 310 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 689 | )| TRUE | evaluated 310 times by 1 test | | FALSE | never evaluated |
&& strlen (| TRUE | never evaluated | | FALSE | evaluated 310 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 690 | ".."| TRUE | never evaluated | | FALSE | evaluated 310 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 691 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | evaluated 310 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 692 | 2| TRUE | never evaluated | | FALSE | evaluated 310 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 693 | ))| TRUE | never evaluated | | FALSE | evaluated 310 times by 1 test |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 694 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 695 | ) && __builtin_constant_p (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 696 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 697 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 698 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 699 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 700 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 701 | ), (!((size_t)(const void *)((| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 702 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 703 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 704 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 705 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 706 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 707 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 708 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 709 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 710 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 711 | , | TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 712 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 713 | ) : (__builtin_constant_p (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 714 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 715 | ) && ((size_t)(const void *)((| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 716 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 717 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 718 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 719 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 720 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 721 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 722 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 723 | ) && ((size_t)(const void *)((| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 724 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 725 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 726 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 727 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 728 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 729 | , | TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 730 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 731 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 732 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 733 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 734 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 735 | ))[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 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 736 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 737 | ))[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 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 738 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 739 | ))[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 *) ( text+i ))[3] - __s2[3]); | TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 740 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( text+i ))[3] - __s2[3]); | 0-1750 |
| 741 | ))[3] - __s2[3]);| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( text+i ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 742 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 743 | ) && ((size_t)(const void *)((| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 744 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 745 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 746 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 747 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 748 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 749 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 750 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 751 | ) && ((size_t)(const void *)((| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 752 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 753 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 754 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 755 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 756 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 757 | , | TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 758 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 759 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 760 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 761 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 762 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 763 | ))[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 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 764 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 765 | ))[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 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 766 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 767 | ))[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 *) ( ".." ))[3] - __s2[3]); | TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 768 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( ".." ))[3] - __s2[3]); | 0-1750 |
| 769 | ))[3] - __s2[3]);| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( ".." ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 0-1750 |
| 770 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 771 | , | TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 772 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 773 | )))); }) : strncmp (| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 774 | text+i| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 775 | , | TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 776 | ".."| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 777 | , | TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 778 | 2| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 779 | ))) | TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
| 150-1750 |
| 780 | == 0| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 160 times by 1 test |
))| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 1750 times by 1 test |
&& | 150-1750 |
| 781 | text[i+2] != satisfy| TRUE | evaluated 150 times by 1 test | | FALSE | never evaluated |
&& level == 0| TRUE | evaluated 146 times by 1 test | | FALSE | evaluated 4 times by 1 test |
) | 0-150 |
| 782 | commas++;executed 146 times by 1 test: commas++; | 146 |
| 783 | | - |
| 784 | | - |
| 785 | | - |
| 786 | do { if (locale_mb_cur_max > 1| TRUE | evaluated 82500 times by 1 test | | FALSE | evaluated 4081 times by 1 test |
) { mbstate_t state_bak; size_t mblength; int _f; _f = is_basic ((text)[i]); if (_f| TRUE | evaluated 78687 times by 1 test | | FALSE | evaluated 3813 times by 1 test |
) mblength = 1;executed 78687 times by 1 test: mblength = 1; else if (locale_utf8locale| TRUE | evaluated 3813 times by 1 test | | FALSE | never evaluated |
&& (((| TRUE | evaluated 3813 times by 1 test | | FALSE | never evaluated |
text)[i] & 0x80) == 0)| TRUE | evaluated 3813 times by 1 test | | FALSE | never evaluated |
) mblength = 1;executed 3813 times by 1 test: mblength = 1; else { state_bak = state; mblength = mbrlen ((text) + (i), (tlen) - (i), &state); }never executed: end of block if (mblength == (size_t)-2| TRUE | never evaluated | | FALSE | evaluated 82500 times by 1 test |
|| mblength == (size_t)-1| TRUE | never evaluated | | FALSE | evaluated 82500 times by 1 test |
) { state = state_bak; (i)++; }never executed: end of block else if (mblength == 0| TRUE | never evaluated | | FALSE | evaluated 82500 times by 1 test |
) (never executed: (i)++; i)++;never executed: (i)++; else (executed 82500 times by 1 test: (i) += mblength; i) += mblength;executed 82500 times by 1 test: (i) += mblength; } else (executed 4081 times by 1 test: (i)++; i)++;executed 4081 times by 1 test: (i)++; } while (0); | 0-82500 |
| 787 | | - |
| 788 | | - |
| 789 | | - |
| 790 | }executed 86581 times by 1 test: end of block | 86581 |
| 791 | | - |
| 792 | *indx = i; | - |
| 793 | returnexecuted 39798 times by 1 test: return (c); (c);executed 39798 times by 1 test: return (c); | 39798 |
| 794 | } | - |
| 795 | | - |
| 796 | | - |
| 797 | | - |
| 798 | | - |
| 799 | | - |
| 800 | | - |
| 801 | static char ** | - |
| 802 | array_concat (arr1, arr2) | - |
| 803 | char **arr1, **arr2; | - |
| 804 | { | - |
| 805 | register int i, j, len, len1, len2; | - |
| 806 | register char **result; | - |
| 807 | | - |
| 808 | if (arr1 == 0| TRUE | never evaluated | | FALSE | evaluated 129 times by 1 test |
) | 0-129 |
| 809 | return never executed: return (arr2); (arr2);never executed: return (arr2); | 0 |
| 810 | | - |
| 811 | if (arr2 == 0| TRUE | never evaluated | | FALSE | evaluated 129 times by 1 test |
) | 0-129 |
| 812 | return never executed: return (arr1); (arr1);never executed: return (arr1); | 0 |
| 813 | | - |
| 814 | | - |
| 815 | | - |
| 816 | | - |
| 817 | if (arr1[0]| TRUE | evaluated 129 times by 1 test | | FALSE | never evaluated |
&& arr1[0][0] == 0| TRUE | evaluated 53 times by 1 test | | FALSE | evaluated 76 times by 1 test |
&& arr1[1] == 0| TRUE | evaluated 53 times by 1 test | | FALSE | never evaluated |
) | 0-129 |
| 818 | { | - |
| 819 | strvec_dispose (arr1); | - |
| 820 | returnexecuted 53 times by 1 test: return (arr2); (arr2);executed 53 times by 1 test: return (arr2); | 53 |
| 821 | } | - |
| 822 | | - |
| 823 | if (arr2[0]| TRUE | evaluated 76 times by 1 test | | FALSE | never evaluated |
&& arr2[0][0] == 0| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 74 times by 1 test |
&& arr2[1] == 0| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) | 0-76 |
| 824 | return never executed: return (arr1); (arr1);never executed: return (arr1); | 0 |
| 825 | | - |
| 826 | len1 = strvec_len (arr1); | - |
| 827 | len2 = strvec_len (arr2); | - |
| 828 | | - |
| 829 | result = (char **)sh_xmalloc(((1 + (len1 * len2)) * sizeof (char *)), "braces.c", 781); | - |
| 830 | | - |
| 831 | len = 0; | - |
| 832 | for (i = 0; i < len1| TRUE | evaluated 166 times by 1 test | | FALSE | evaluated 76 times by 1 test |
; i++) | 76-166 |
| 833 | { | - |
| 834 | int strlen_1 = strlen (arr1[i]); | - |
| 835 | | - |
| 836 | for (j = 0; j < len2| TRUE | evaluated 293 times by 1 test | | FALSE | evaluated 166 times by 1 test |
; j++) | 166-293 |
| 837 | { | - |
| 838 | result[len] = (char *)sh_xmalloc((1 + strlen_1 + strlen (arr2[j])), "braces.c", 790); | - |
| 839 | strcpy (result[len], arr1[i]); | - |
| 840 | strcpy (result[len] + strlen_1, arr2[j]); | - |
| 841 | len++; | - |
| 842 | }executed 293 times by 1 test: end of block | 293 |
| 843 | sh_xfree((arr1[i]), "braces.c", 795); | - |
| 844 | }executed 166 times by 1 test: end of block | 166 |
| 845 | sh_xfree((arr1), "braces.c", 797); | - |
| 846 | | - |
| 847 | result[len] = (char *) | - |
| 848 | ((void *)0) | - |
| 849 | ; | - |
| 850 | returnexecuted 76 times by 1 test: return (result); (result);executed 76 times by 1 test: return (result); | 76 |
| 851 | } | - |
| | |