| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | int BSDopterr = 1; | - |
| 5 | int BSDoptind = 1; | - |
| 6 | int BSDoptopt = '?'; | - |
| 7 | int BSDoptreset; | - |
| 8 | char *BSDoptarg; | - |
| 9 | static int getopt_internal(int, char * const *, const char *, | - |
| 10 | const struct option *, int *, int); | - |
| 11 | static int parse_long_options(char * const *, const char *, | - |
| 12 | const struct option *, int *, int); | - |
| 13 | static int gcd(int, int); | - |
| 14 | static void permute_args(int, int, int, char * const *); | - |
| 15 | | - |
| 16 | static char *place = ""; | - |
| 17 | | - |
| 18 | | - |
| 19 | static int nonopt_start = -1; | - |
| 20 | static int nonopt_end = -1; | - |
| 21 | | - |
| 22 | | - |
| 23 | static const char recargchar[] = "option requires an argument -- %c"; | - |
| 24 | static const char recargstring[] = "option requires an argument -- %s"; | - |
| 25 | static const char ambig[] = "ambiguous option -- %.*s"; | - |
| 26 | static const char noarg[] = "option doesn't take an argument -- %.*s"; | - |
| 27 | static const char illoptchar[] = "unknown option -- %c"; | - |
| 28 | static const char illoptstring[] = "unknown option -- %s"; | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | static int | - |
| 34 | gcd(int a, int b) | - |
| 35 | { | - |
| 36 | int c; | - |
| 37 | | - |
| 38 | c = a % b; | - |
| 39 | while (c != 0| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 40 | a = b; | - |
| 41 | b = c; | - |
| 42 | c = a % b; | - |
| 43 | } never executed: end of block | 0 |
| 44 | | - |
| 45 | return never executed: return (b); (b);never executed: return (b); | 0 |
| 46 | } | - |
| 47 | | - |
| 48 | | - |
| 49 | | - |
| 50 | | - |
| 51 | | - |
| 52 | | - |
| 53 | static void | - |
| 54 | permute_args(int panonopt_start, int panonopt_end, int opt_end, | - |
| 55 | char * const *nargv) | - |
| 56 | { | - |
| 57 | int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos; | - |
| 58 | char *swap; | - |
| 59 | | - |
| 60 | | - |
| 61 | | - |
| 62 | | - |
| 63 | nnonopts = panonopt_end - panonopt_start; | - |
| 64 | nopts = opt_end - panonopt_end; | - |
| 65 | ncycle = gcd(nnonopts, nopts); | - |
| 66 | cyclelen = (opt_end - panonopt_start) / ncycle; | - |
| 67 | | - |
| 68 | for (i = 0; i < ncycle| TRUE | never evaluated | | FALSE | never evaluated |
; i++) { | 0 |
| 69 | cstart = panonopt_end+i; | - |
| 70 | pos = cstart; | - |
| 71 | for (j = 0; j < cyclelen| TRUE | never evaluated | | FALSE | never evaluated |
; j++) { | 0 |
| 72 | if (pos >= panonopt_end| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 73 | pos -= nnonopts; never executed: pos -= nnonopts; | 0 |
| 74 | else | - |
| 75 | pos += nopts; never executed: pos += nopts; | 0 |
| 76 | swap = nargv[pos]; | - |
| 77 | | - |
| 78 | ((char **) nargv)[pos] = nargv[cstart]; | - |
| 79 | | - |
| 80 | ((char **)nargv)[cstart] = swap; | - |
| 81 | } never executed: end of block | 0 |
| 82 | } never executed: end of block | 0 |
| 83 | } never executed: end of block | 0 |
| 84 | | - |
| 85 | | - |
| 86 | | - |
| 87 | | - |
| 88 | | - |
| 89 | | - |
| 90 | static int | - |
| 91 | parse_long_options(char * const *nargv, const char *options, | - |
| 92 | const struct option *long_options, int *idx, int short_too) | - |
| 93 | { | - |
| 94 | char *current_argv, *has_equal; | - |
| 95 | size_t current_argv_len; | - |
| 96 | int i, match; | - |
| 97 | | - |
| 98 | current_argv = place; | - |
| 99 | match = -1; | - |
| 100 | | - |
| 101 | BSDoptind++; | - |
| 102 | | - |
| 103 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
has_equal = | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 104 | (__extension__ (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 105 | '='| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 106 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& !__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 107 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 108 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 109 | '='| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 110 | ) == '\0'| TRUE | never evaluated | | FALSE | never evaluated |
? (char *) __rawmemchr (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 111 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 112 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 113 | '='| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 114 | ) : __builtin_strchr (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 115 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 116 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 117 | '='| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 118 | )))| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 119 | ) != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 120 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 121 | ) { | - |
| 122 | | - |
| 123 | current_argv_len = has_equal - current_argv; | - |
| 124 | has_equal++; | - |
| 125 | } never executed: end of block else | 0 |
| 126 | current_argv_len = strlen(current_argv); never executed: current_argv_len = strlen(current_argv); | 0 |
| 127 | | - |
| 128 | for (i = 0; long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
; i++) { | 0 |
| 129 | | - |
| 130 | if ( | - |
| 131 | (| TRUE | never evaluated | | FALSE | never evaluated |
__extension__ (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 132 | current_argv_len| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 133 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& ((__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 134 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 135 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 136 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 137 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 138 | current_argv_len| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 139 | ))| TRUE | never evaluated | | FALSE | never evaluated |
) || (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 140 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 141 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 142 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 143 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 144 | current_argv_len| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 145 | ))| TRUE | never evaluated | | FALSE | never evaluated |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 146 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 147 | ) && __builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 148 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 149 | ) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 150 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 151 | ), __s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 152 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 153 | ), (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 154 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 155 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 156 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 157 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 158 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 159 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 160 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 161 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 162 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 163 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 164 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 165 | ) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 166 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 167 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 168 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 169 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 170 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 171 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 172 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 173 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 174 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 175 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 176 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 177 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 178 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 179 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 180 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 181 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 182 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 183 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 184 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 185 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 186 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 187 | ))[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 | never evaluated | | FALSE | never evaluated |
| 0 |
| 188 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 189 | ))[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 | never evaluated | | FALSE | never evaluated |
| 0 |
| 190 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 191 | ))[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 *) ( current_argv ))[3] - __s2[3]); | 0 |
| 192 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( current_argv ))[3] - __s2[3]); | 0 |
| 193 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 194 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 195 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 196 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 197 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 198 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 199 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 200 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 201 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 202 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 203 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 204 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 205 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 206 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 207 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 208 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 209 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 210 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 211 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 212 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 213 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 214 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 215 | ))[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 | never evaluated | | FALSE | never evaluated |
| 0 |
| 216 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 217 | ))[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 | never evaluated | | FALSE | never evaluated |
| 0 |
| 218 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 219 | ))[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 *) ( long_options[i].name ))[3] - __s2[3]); | 0 |
| 220 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( long_options[i].name ))[3] - __s2[3]); | 0 |
| 221 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 222 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 223 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 224 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 225 | )))); }) : strncmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 226 | current_argv| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 227 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 228 | long_options[i].name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 229 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 230 | current_argv_len| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 231 | )))| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 232 | | - |
| 233 | ) | - |
| 234 | continue; never executed: continue; | 0 |
| 235 | | - |
| 236 | if (strlen(long_options[i].name) == current_argv_len| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 237 | | - |
| 238 | match = i; | - |
| 239 | break; never executed: break; | 0 |
| 240 | } | - |
| 241 | | - |
| 242 | | - |
| 243 | | - |
| 244 | | - |
| 245 | if (short_too| TRUE | never evaluated | | FALSE | never evaluated |
&& current_argv_len == 1| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 246 | continue; never executed: continue; | 0 |
| 247 | | - |
| 248 | if (match == -1| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 249 | match = i; never executed: match = i; | 0 |
| 250 | else { | - |
| 251 | | - |
| 252 | if (((| TRUE | never evaluated | | FALSE | never evaluated |
BSDopterr)| TRUE | never evaluated | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
options != ':')| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0 |
| 253 | logit(ambig, (int)current_argv_len, never executed: logit(ambig, (int)current_argv_len, current_argv); | 0 |
| 254 | current_argv); never executed: logit(ambig, (int)current_argv_len, current_argv); | 0 |
| 255 | BSDoptopt = 0; | - |
| 256 | return never executed: return ((int)'?'); ((int)'?');never executed: return ((int)'?'); | 0 |
| 257 | } | - |
| 258 | } | - |
| 259 | if (match != -1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 260 | if (long_options[match].has_arg == 0| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 261 | && has_equal| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 262 | if (((| TRUE | never evaluated | | FALSE | never evaluated |
BSDopterr)| TRUE | never evaluated | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
options != ':')| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0 |
| 263 | logit(noarg, (int)current_argv_len, never executed: logit(noarg, (int)current_argv_len, current_argv); | 0 |
| 264 | current_argv); never executed: logit(noarg, (int)current_argv_len, current_argv); | 0 |
| 265 | | - |
| 266 | | - |
| 267 | | - |
| 268 | if (long_options[match].flag == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 269 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 270 | ) | - |
| 271 | BSDoptopt = long_options[match].val; never executed: BSDoptopt = long_options[match].val; | 0 |
| 272 | else | - |
| 273 | BSDoptopt = 0; never executed: BSDoptopt = 0; | 0 |
| 274 | return never executed: return (((*options == ':') ? (int)':' : (int)'?')); (((*| TRUE | never evaluated | | FALSE | never evaluated |
options == ':')| TRUE | never evaluated | | FALSE | never evaluated |
? (int)':' : (int)'?'));never executed: return (((*options == ':') ? (int)':' : (int)'?')); | 0 |
| 275 | } | - |
| 276 | if (long_options[match].has_arg == 1| TRUE | never evaluated | | FALSE | never evaluated |
|| | 0 |
| 277 | long_options[match].has_arg == 2| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 278 | if (has_equal| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 279 | BSDoptarg = has_equal; never executed: BSDoptarg = has_equal; | 0 |
| 280 | else if (long_options[match].has_arg ==| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 281 | 1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 282 | | - |
| 283 | | - |
| 284 | | - |
| 285 | BSDoptarg = nargv[BSDoptind++]; | - |
| 286 | } never executed: end of block | 0 |
| 287 | } never executed: end of block | 0 |
| 288 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
long_options[match].has_arg == 1)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 289 | && (| TRUE | never evaluated | | FALSE | never evaluated |
BSDoptarg == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 290 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 291 | )| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 292 | | - |
| 293 | | - |
| 294 | | - |
| 295 | | - |
| 296 | if (((| TRUE | never evaluated | | FALSE | never evaluated |
BSDopterr)| TRUE | never evaluated | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
options != ':')| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0 |
| 297 | logit(recargstring, never executed: logit(recargstring, current_argv); | 0 |
| 298 | current_argv); never executed: logit(recargstring, current_argv); | 0 |
| 299 | | - |
| 300 | | - |
| 301 | | - |
| 302 | if (long_options[match].flag == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 303 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 304 | ) | - |
| 305 | BSDoptopt = long_options[match].val; never executed: BSDoptopt = long_options[match].val; | 0 |
| 306 | else | - |
| 307 | BSDoptopt = 0; never executed: BSDoptopt = 0; | 0 |
| 308 | --BSDoptind; | - |
| 309 | return never executed: return (((*options == ':') ? (int)':' : (int)'?')); (((*| TRUE | never evaluated | | FALSE | never evaluated |
options == ':')| TRUE | never evaluated | | FALSE | never evaluated |
? (int)':' : (int)'?'));never executed: return (((*options == ':') ? (int)':' : (int)'?')); | 0 |
| 310 | } | - |
| 311 | } never executed: end of block else { | 0 |
| 312 | if (short_too| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 313 | --BSDoptind; | - |
| 314 | return never executed: return (-1); (-1);never executed: return (-1); | 0 |
| 315 | } | - |
| 316 | if (((| TRUE | never evaluated | | FALSE | never evaluated |
BSDopterr)| TRUE | never evaluated | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
options != ':')| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0 |
| 317 | logit(illoptstring, current_argv); never executed: logit(illoptstring, current_argv); | 0 |
| 318 | BSDoptopt = 0; | - |
| 319 | return never executed: return ((int)'?'); ((int)'?');never executed: return ((int)'?'); | 0 |
| 320 | } | - |
| 321 | if (idx| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 322 | * never executed: *idx = match; idx = match;never executed: *idx = match; | 0 |
| 323 | if (long_options[match].flag| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 324 | *long_options[match].flag = long_options[match].val; | - |
| 325 | return never executed: return (0); (0);never executed: return (0); | 0 |
| 326 | } else | - |
| 327 | return never executed: return (long_options[match].val); (long_options[match].val);never executed: return (long_options[match].val); | 0 |
| 328 | } | - |
| 329 | | - |
| 330 | | - |
| 331 | | - |
| 332 | | - |
| 333 | | - |
| 334 | static int | - |
| 335 | getopt_internal(int nargc, char * const *nargv, const char *options, | - |
| 336 | const struct option *long_options, int *idx, int flags) | - |
| 337 | { | - |
| 338 | char *oli; | - |
| 339 | int optchar, short_too; | - |
| 340 | static int posixly_correct = -1; | - |
| 341 | | - |
| 342 | if (options == | TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
| 0-117 |
| 343 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
| 0-117 |
| 344 | ) | - |
| 345 | return never executed: return (-1); (-1);never executed: return (-1); | 0 |
| 346 | | - |
| 347 | | - |
| 348 | | - |
| 349 | | - |
| 350 | | - |
| 351 | if (BSDoptind == 0| TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
) | 0-117 |
| 352 | BSDoptind = BSDoptreset = 1; never executed: BSDoptind = BSDoptreset = 1; | 0 |
| 353 | | - |
| 354 | | - |
| 355 | | - |
| 356 | | - |
| 357 | | - |
| 358 | if (posixly_correct == -1| TRUE | evaluated 38 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
| | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
|| BSDoptreset| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
) | 0-79 |
| 359 | posixly_correct = (getenv("POSIXLY_CORRECT") != executed 38 times by 10 tests: posixly_correct = (getenv("POSIXLY_CORRECT") != ((void *)0) );Executed by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
| 38 |
| 360 | ((void *)0)executed 38 times by 10 tests: posixly_correct = (getenv("POSIXLY_CORRECT") != ((void *)0) );Executed by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
| 38 |
| 361 | );executed 38 times by 10 tests: posixly_correct = (getenv("POSIXLY_CORRECT") != ((void *)0) );Executed by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
| 38 |
| 362 | if (*| TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
options == '-'| TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
) | 0-117 |
| 363 | flags |= 0x02; never executed: flags |= 0x02; | 0 |
| 364 | else if (posixly_correct| TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
|| *| TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
options == '+'| TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
) | 0-117 |
| 365 | flags &= ~0x01; never executed: flags &= ~0x01; | 0 |
| 366 | if (*| TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
options == '+'| TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
|| *| TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
options == '-'| TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
) | 0-117 |
| 367 | options++; never executed: options++; | 0 |
| 368 | | - |
| 369 | BSDoptarg = | - |
| 370 | ((void *)0) | - |
| 371 | ; | - |
| 372 | if (BSDoptreset| TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
) | 0-117 |
| 373 | nonopt_start = nonopt_end = -1; never executed: nonopt_start = nonopt_end = -1; | 0 |
| 374 | start:code before this statement executed 117 times by 10 tests: start:Executed by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
| 117 |
| 375 | if (BSDoptreset| TRUE | never evaluated | | FALSE | evaluated 117 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
|| !*place| TRUE | evaluated 96 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
| | FALSE | evaluated 21 times by 1 test |
) { | 0-117 |
| 376 | BSDoptreset = 0; | - |
| 377 | if (BSDoptind >= nargc| TRUE | evaluated 38 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
| | FALSE | evaluated 58 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
) { | 38-58 |
| 378 | place = ""; | - |
| 379 | if (nonopt_end != -1| TRUE | never evaluated | | FALSE | evaluated 38 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
) { | 0-38 |
| 380 | | - |
| 381 | permute_args(nonopt_start, nonopt_end, | - |
| 382 | BSDoptind, nargv); | - |
| 383 | BSDoptind -= nonopt_end - nonopt_start; | - |
| 384 | } never executed: end of block | 0 |
| 385 | else if (nonopt_start != -1| TRUE | never evaluated | | FALSE | evaluated 38 times by 10 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
|
) { | 0-38 |
| 386 | | - |
| 387 | | - |
| 388 | | - |
| 389 | | - |
| 390 | BSDoptind = nonopt_start; | - |
| 391 | } never executed: end of block | 0 |
| 392 | nonopt_start = nonopt_end = -1; | - |
| 393 | returnexecuted 38 times by 10 tests: return (-1);Executed by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
(-1);executed 38 times by 10 tests: return (-1);Executed by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
| 38 |
| 394 | } | - |
| 395 | if (*(| TRUE | never evaluated | | FALSE | evaluated 58 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
place = nargv[BSDoptind]) != '-'| TRUE | never evaluated | | FALSE | evaluated 58 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
|| | 0-58 |
| 396 | (place[1] == '\0'| TRUE | never evaluated | | FALSE | evaluated 58 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
&& | 0-58 |
| 397 | (| TRUE | never evaluated | | FALSE | never evaluated |
__extension__ (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 398 | '-'| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 399 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& !__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 400 | options| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 401 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 402 | '-'| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 403 | ) == '\0'| TRUE | never evaluated | | FALSE | never evaluated |
? (char *) __rawmemchr (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 404 | options| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 405 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 406 | '-'| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 407 | ) : __builtin_strchr (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 408 | options| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 409 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 410 | '-'| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 411 | ))) | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 412 | == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 413 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 414 | )) { | - |
| 415 | place = ""; | - |
| 416 | if (flags & 0x02| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 417 | | - |
| 418 | | - |
| 419 | | - |
| 420 | | - |
| 421 | BSDoptarg = nargv[BSDoptind++]; | - |
| 422 | return never executed: return ((int)1); ((int)1);never executed: return ((int)1); | 0 |
| 423 | } | - |
| 424 | if (!(flags & 0x01)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 425 | | - |
| 426 | | - |
| 427 | | - |
| 428 | | - |
| 429 | return never executed: return (-1); (-1);never executed: return (-1); | 0 |
| 430 | } | - |
| 431 | | - |
| 432 | if (nonopt_start == -1| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 433 | nonopt_start = BSDoptind; never executed: nonopt_start = BSDoptind; | 0 |
| 434 | else if (nonopt_end != -1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 435 | permute_args(nonopt_start, nonopt_end, | - |
| 436 | BSDoptind, nargv); | - |
| 437 | nonopt_start = BSDoptind - | - |
| 438 | (nonopt_end - nonopt_start); | - |
| 439 | nonopt_end = -1; | - |
| 440 | } never executed: end of block | 0 |
| 441 | BSDoptind++; | - |
| 442 | | - |
| 443 | goto never executed: goto start; start;never executed: goto start; | 0 |
| 444 | } | - |
| 445 | if (nonopt_start != -1| TRUE | never evaluated | | FALSE | evaluated 58 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
&& nonopt_end == -1| TRUE | never evaluated | | FALSE | never evaluated |
) | 0-58 |
| 446 | nonopt_end = BSDoptind; never executed: nonopt_end = BSDoptind; | 0 |
| 447 | | - |
| 448 | | - |
| 449 | | - |
| 450 | | - |
| 451 | if (place[1] != '\0'| TRUE | evaluated 58 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
&& *++| TRUE | never evaluated | | FALSE | evaluated 58 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
place == '-'| TRUE | never evaluated | | FALSE | evaluated 58 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
&& place[1] == '\0'| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-58 |
| 452 | BSDoptind++; | - |
| 453 | place = ""; | - |
| 454 | | - |
| 455 | | - |
| 456 | | - |
| 457 | | - |
| 458 | if (nonopt_end != -1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 459 | permute_args(nonopt_start, nonopt_end, | - |
| 460 | BSDoptind, nargv); | - |
| 461 | BSDoptind -= nonopt_end - nonopt_start; | - |
| 462 | } never executed: end of block | 0 |
| 463 | nonopt_start = nonopt_end = -1; | - |
| 464 | return never executed: return (-1); (-1);never executed: return (-1); | 0 |
| 465 | } | - |
| 466 | }executed 58 times by 4 tests: end of blockExecuted by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| 58 |
| 467 | | - |
| 468 | | - |
| 469 | | - |
| 470 | | - |
| 471 | | - |
| 472 | | - |
| 473 | | - |
| 474 | if (long_options != | TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 475 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 476 | && place != nargv[BSDoptind]| TRUE | never evaluated | | FALSE | never evaluated |
&& | 0 |
| 477 | (*| TRUE | never evaluated | | FALSE | never evaluated |
place == '-'| TRUE | never evaluated | | FALSE | never evaluated |
|| (| TRUE | never evaluated | | FALSE | never evaluated |
flags & 0x04)| TRUE | never evaluated | | FALSE | never evaluated |
)) { | 0 |
| 478 | short_too = 0; | - |
| 479 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
place == '-'| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 480 | place++; never executed: place++; | 0 |
| 481 | else if (*| TRUE | never evaluated | | FALSE | never evaluated |
place != ':'| TRUE | never evaluated | | FALSE | never evaluated |
&& | 0 |
| 482 | (| TRUE | never evaluated | | FALSE | never evaluated |
__extension__ (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 483 | *place| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 484 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& !__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 485 | options| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 486 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 487 | *place| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 488 | ) == '\0'| TRUE | never evaluated | | FALSE | never evaluated |
? (char *) __rawmemchr (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 489 | options| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 490 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 491 | *place| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 492 | ) : __builtin_strchr (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 493 | options| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 494 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 495 | *place| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 496 | ))) | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 497 | != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 498 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 499 | ) | - |
| 500 | short_too = 1; never executed: short_too = 1; | 0 |
| 501 | | - |
| 502 | optchar = parse_long_options(nargv, options, long_options, | - |
| 503 | idx, short_too); | - |
| 504 | if (optchar != -1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 505 | place = ""; | - |
| 506 | return never executed: return (optchar); (optchar);never executed: return (optchar); | 0 |
| 507 | } | - |
| 508 | } never executed: end of block | 0 |
| 509 | | - |
| 510 | if ((| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
optchar = (int)*place++) == (int)':'| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
|| | 0-79 |
| 511 | (optchar == (int)'-'| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
&& *| TRUE | never evaluated | | FALSE | never evaluated |
place != '\0'| TRUE | never evaluated | | FALSE | never evaluated |
) || | 0-79 |
| 512 | (| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
oli = | TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 513 | (__extension__ (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 514 | optchar| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 515 | )| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
&& !__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 516 | options| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 517 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 518 | optchar| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 519 | ) == '\0'| TRUE | never evaluated | | FALSE | never evaluated |
? (char *) __rawmemchr (| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 520 | options| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 521 | , | TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 522 | optchar| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 523 | ) : __builtin_strchr (| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 524 | options| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 525 | , | TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 526 | optchar| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 527 | )))| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 528 | ) == | TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 529 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 530 | ) { | - |
| 531 | | - |
| 532 | | - |
| 533 | | - |
| 534 | | - |
| 535 | | - |
| 536 | if (optchar == (int)'-'| TRUE | never evaluated | | FALSE | never evaluated |
&& *| TRUE | never evaluated | | FALSE | never evaluated |
place == '\0'| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 537 | return never executed: return (-1); (-1);never executed: return (-1); | 0 |
| 538 | if (!*place| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 539 | ++ never executed: ++BSDoptind; BSDoptind;never executed: ++BSDoptind; | 0 |
| 540 | if (((| TRUE | never evaluated | | FALSE | never evaluated |
BSDopterr)| TRUE | never evaluated | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
options != ':')| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0 |
| 541 | logit(illoptchar, optchar); never executed: logit(illoptchar, optchar); | 0 |
| 542 | BSDoptopt = optchar; | - |
| 543 | return never executed: return ((int)'?'); ((int)'?');never executed: return ((int)'?'); | 0 |
| 544 | } | - |
| 545 | if (long_options != | TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 546 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 79 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
| 0-79 |
| 547 | && optchar == 'W'| TRUE | never evaluated | | FALSE | never evaluated |
&& oli[1] == ';'| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 548 | | - |
| 549 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
place| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 550 | ; never executed: ; | 0 |
| 551 | else if (++| TRUE | never evaluated | | FALSE | never evaluated |
BSDoptind >= nargc| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 552 | place = ""; | - |
| 553 | if (((| TRUE | never evaluated | | FALSE | never evaluated |
BSDopterr)| TRUE | never evaluated | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
options != ':')| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0 |
| 554 | logit(recargchar, optchar); never executed: logit(recargchar, optchar); | 0 |
| 555 | BSDoptopt = optchar; | - |
| 556 | return never executed: return (((*options == ':') ? (int)':' : (int)'?')); (((*| TRUE | never evaluated | | FALSE | never evaluated |
options == ':')| TRUE | never evaluated | | FALSE | never evaluated |
? (int)':' : (int)'?'));never executed: return (((*options == ':') ? (int)':' : (int)'?')); | 0 |
| 557 | } else | - |
| 558 | place = nargv[BSDoptind]; never executed: place = nargv[BSDoptind]; | 0 |
| 559 | optchar = parse_long_options(nargv, options, long_options, | - |
| 560 | idx, 0); | - |
| 561 | place = ""; | - |
| 562 | return never executed: return (optchar); (optchar);never executed: return (optchar); | 0 |
| 563 | } | - |
| 564 | if (*++| TRUE | evaluated 30 times by 2 tests | | FALSE | evaluated 49 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
oli != ':'| TRUE | evaluated 30 times by 2 tests | | FALSE | evaluated 49 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
) { | 30-49 |
| 565 | if (!*place| TRUE | evaluated 9 times by 2 tests | | FALSE | evaluated 21 times by 1 test |
) | 9-21 |
| 566 | ++executed 9 times by 2 tests: ++BSDoptind; BSDoptind;executed 9 times by 2 tests: ++BSDoptind; | 9 |
| 567 | }executed 30 times by 2 tests: end of block else { | 30 |
| 568 | BSDoptarg = | - |
| 569 | ((void *)0) | - |
| 570 | ; | - |
| 571 | if (*| TRUE | never evaluated | | FALSE | evaluated 49 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
place| TRUE | never evaluated | | FALSE | evaluated 49 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
) | 0-49 |
| 572 | BSDoptarg = place; never executed: BSDoptarg = place; | 0 |
| 573 | else if (oli[1] != ':'| TRUE | evaluated 49 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| | FALSE | never evaluated |
) { | 0-49 |
| 574 | if (++| TRUE | never evaluated | | FALSE | evaluated 49 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
BSDoptind >= nargc| TRUE | never evaluated | | FALSE | evaluated 49 times by 4 testsEvaluated by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
|
) { | 0-49 |
| 575 | place = ""; | - |
| 576 | if (((| TRUE | never evaluated | | FALSE | never evaluated |
BSDopterr)| TRUE | never evaluated | | FALSE | never evaluated |
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
options != ':')| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0 |
| 577 | logit(recargchar, optchar); never executed: logit(recargchar, optchar); | 0 |
| 578 | BSDoptopt = optchar; | - |
| 579 | return never executed: return (((*options == ':') ? (int)':' : (int)'?')); (((*| TRUE | never evaluated | | FALSE | never evaluated |
options == ':')| TRUE | never evaluated | | FALSE | never evaluated |
? (int)':' : (int)'?'));never executed: return (((*options == ':') ? (int)':' : (int)'?')); | 0 |
| 580 | } else | - |
| 581 | BSDoptarg = nargv[BSDoptind];executed 49 times by 4 tests: BSDoptarg = nargv[BSDoptind];Executed by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| 49 |
| 582 | } | - |
| 583 | place = ""; | - |
| 584 | ++BSDoptind; | - |
| 585 | }executed 49 times by 4 tests: end of blockExecuted by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| 49 |
| 586 | | - |
| 587 | returnexecuted 79 times by 4 tests: return (optchar);Executed by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
(optchar);executed 79 times by 4 tests: return (optchar);Executed by:- ssh-keygen
- sshd
- test_hostkeys
- test_sshkey
| 79 |
| 588 | } | - |
| 589 | | - |
| 590 | | - |
| 591 | | - |
| 592 | | - |
| 593 | | - |
| 594 | | - |
| 595 | | - |
| 596 | int | - |
| 597 | BSDgetopt(int nargc, char * const *nargv, const char *options) | - |
| 598 | { | - |
| 599 | returnexecuted 117 times by 10 tests: return (getopt_internal(nargc, nargv, options, ((void *)0) , ((void *)0) , 0));Executed by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
(getopt_internal(nargc, nargv, options, executed 117 times by 10 tests: return (getopt_internal(nargc, nargv, options, ((void *)0) , ((void *)0) , 0));Executed by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
| 117 |
| 600 | ((void *)0)executed 117 times by 10 tests: return (getopt_internal(nargc, nargv, options, ((void *)0) , ((void *)0) , 0));Executed by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
| 117 |
| 601 | , executed 117 times by 10 tests: return (getopt_internal(nargc, nargv, options, ((void *)0) , ((void *)0) , 0));Executed by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
| 117 |
| 602 | ((void *)0)executed 117 times by 10 tests: return (getopt_internal(nargc, nargv, options, ((void *)0) , ((void *)0) , 0));Executed by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
| 117 |
| 603 | , 0));executed 117 times by 10 tests: return (getopt_internal(nargc, nargv, options, ((void *)0) , ((void *)0) , 0));Executed by:- ssh-keygen
- sshd
- test_bitmap
- test_conversion
- test_hostkeys
- test_kex
- test_match
- test_sshbuf
- test_sshkey
- test_utf8
| 117 |
| 604 | } | - |
| | |