Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | extern char **environ; | - |
23 | | - |
24 | | - |
25 | extern time_t shell_start_time; | - |
26 | | - |
27 | | - |
28 | | - |
29 | VAR_CONTEXT *global_variables = (VAR_CONTEXT *) | - |
30 | ((void *)0) | - |
31 | ; | - |
32 | | - |
33 | | - |
34 | VAR_CONTEXT *shell_variables = (VAR_CONTEXT *) | - |
35 | ((void *)0) | - |
36 | ; | - |
37 | | - |
38 | | - |
39 | | - |
40 | HASH_TABLE *shell_functions = (HASH_TABLE *) | - |
41 | ((void *)0) | - |
42 | ; | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | HASH_TABLE *shell_function_defs = (HASH_TABLE *) | - |
48 | ((void *)0) | - |
49 | ; | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | int variable_context = 0; | - |
55 | | - |
56 | | - |
57 | | - |
58 | int localvar_inherit = 0; | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | int localvar_unset = 0; | - |
64 | | - |
65 | | - |
66 | | - |
67 | HASH_TABLE *temporary_env = (HASH_TABLE *) | - |
68 | ((void *)0) | - |
69 | ; | - |
70 | | - |
71 | | - |
72 | | - |
73 | int tempenv_assign_error; | - |
74 | | - |
75 | | - |
76 | | - |
77 | char *dollar_vars[10]; | - |
78 | WORD_LIST *rest_of_args = (WORD_LIST *) | - |
79 | ((void *)0) | - |
80 | ; | - |
81 | | - |
82 | | - |
83 | pid_t dollar_dollar_pid; | - |
84 | | - |
85 | | - |
86 | int array_needs_making = 1; | - |
87 | | - |
88 | | - |
89 | | - |
90 | int shell_level = 0; | - |
91 | | - |
92 | | - |
93 | | - |
94 | | - |
95 | char **export_env = (char **) | - |
96 | ((void *)0) | - |
97 | ; | - |
98 | static int export_env_index; | - |
99 | static int export_env_size; | - |
100 | | - |
101 | | - |
102 | static int winsize_assignment; | - |
103 | | - |
104 | | - |
105 | SHELL_VAR nameref_invalid_value; | - |
106 | static SHELL_VAR nameref_maxloop_value; | - |
107 | | - |
108 | static HASH_TABLE *last_table_searched; | - |
109 | | - |
110 | | - |
111 | static void create_variable_tables (void); | - |
112 | | - |
113 | static void set_machine_vars (void); | - |
114 | static void set_home_var (void); | - |
115 | static void set_shell_var (void); | - |
116 | static char *get_bash_name (void); | - |
117 | static void initialize_shell_level (void); | - |
118 | static void uidset (void); | - |
119 | | - |
120 | static void make_vers_array (void); | - |
121 | | - |
122 | | - |
123 | static SHELL_VAR *null_assign (SHELL_VAR *, char *, arrayind_t, char *); | - |
124 | | - |
125 | static SHELL_VAR *null_array_assign (SHELL_VAR *, char *, arrayind_t, char *); | - |
126 | | - |
127 | static SHELL_VAR *get_self (SHELL_VAR *); | - |
128 | | - |
129 | | - |
130 | static SHELL_VAR *init_dynamic_array_var (char *, sh_var_value_func_t *, sh_var_assign_func_t *, int); | - |
131 | static SHELL_VAR *init_dynamic_assoc_var (char *, sh_var_value_func_t *, sh_var_assign_func_t *, int); | - |
132 | | - |
133 | | - |
134 | static SHELL_VAR *assign_seconds (SHELL_VAR *, char *, arrayind_t, char *); | - |
135 | static SHELL_VAR *get_seconds (SHELL_VAR *); | - |
136 | static SHELL_VAR *init_seconds_var (void); | - |
137 | | - |
138 | static int brand (void); | - |
139 | static void sbrand (unsigned long); | - |
140 | static void seedrand (void); | - |
141 | static SHELL_VAR *assign_random (SHELL_VAR *, char *, arrayind_t, char *); | - |
142 | static SHELL_VAR *get_random (SHELL_VAR *); | - |
143 | | - |
144 | static SHELL_VAR *assign_lineno (SHELL_VAR *, char *, arrayind_t, char *); | - |
145 | static SHELL_VAR *get_lineno (SHELL_VAR *); | - |
146 | | - |
147 | static SHELL_VAR *assign_subshell (SHELL_VAR *, char *, arrayind_t, char *); | - |
148 | static SHELL_VAR *get_subshell (SHELL_VAR *); | - |
149 | | - |
150 | static SHELL_VAR *get_epochseconds (SHELL_VAR *); | - |
151 | static SHELL_VAR *get_epochrealtime (SHELL_VAR *); | - |
152 | | - |
153 | static SHELL_VAR *get_bashpid (SHELL_VAR *); | - |
154 | | - |
155 | | - |
156 | static SHELL_VAR *get_histcmd (SHELL_VAR *); | - |
157 | | - |
158 | | - |
159 | | - |
160 | static SHELL_VAR *get_comp_wordbreaks (SHELL_VAR *); | - |
161 | static SHELL_VAR *assign_comp_wordbreaks (SHELL_VAR *, char *, arrayind_t, char *); | - |
162 | | - |
163 | | - |
164 | | - |
165 | static SHELL_VAR *assign_dirstack (SHELL_VAR *, char *, arrayind_t, char *); | - |
166 | static SHELL_VAR *get_dirstack (SHELL_VAR *); | - |
167 | | - |
168 | | - |
169 | | - |
170 | static SHELL_VAR *get_groupset (SHELL_VAR *); | - |
171 | | - |
172 | static SHELL_VAR *build_hashcmd (SHELL_VAR *); | - |
173 | static SHELL_VAR *get_hashcmd (SHELL_VAR *); | - |
174 | static SHELL_VAR *assign_hashcmd (SHELL_VAR *, char *, arrayind_t, char *); | - |
175 | | - |
176 | static SHELL_VAR *build_aliasvar (SHELL_VAR *); | - |
177 | static SHELL_VAR *get_aliasvar (SHELL_VAR *); | - |
178 | static SHELL_VAR *assign_aliasvar (SHELL_VAR *, char *, arrayind_t, char *); | - |
179 | | - |
180 | | - |
181 | | - |
182 | static SHELL_VAR *get_funcname (SHELL_VAR *); | - |
183 | static SHELL_VAR *init_funcname_var (void); | - |
184 | | - |
185 | static void initialize_dynamic_variables (void); | - |
186 | | - |
187 | static SHELL_VAR *hash_lookup (const char *, HASH_TABLE *); | - |
188 | static SHELL_VAR *new_shell_variable (const char *); | - |
189 | static SHELL_VAR *make_new_variable (const char *, HASH_TABLE *); | - |
190 | static SHELL_VAR *bind_variable_internal (const char *, char *, HASH_TABLE *, int, int); | - |
191 | | - |
192 | static void dispose_variable_value (SHELL_VAR *); | - |
193 | static void free_variable_hash_data (void *); | - |
194 | | - |
195 | static VARLIST *vlist_alloc (int); | - |
196 | static VARLIST *vlist_realloc (VARLIST *, int); | - |
197 | static void vlist_add (VARLIST *, SHELL_VAR *, int); | - |
198 | | - |
199 | static void flatten (HASH_TABLE *, sh_var_map_func_t *, VARLIST *, int); | - |
200 | | - |
201 | static int qsort_var_comp (SHELL_VAR **, SHELL_VAR **); | - |
202 | | - |
203 | static SHELL_VAR **vapply (sh_var_map_func_t *); | - |
204 | static SHELL_VAR **fapply (sh_var_map_func_t *); | - |
205 | | - |
206 | static int visible_var (SHELL_VAR *); | - |
207 | static int visible_and_exported (SHELL_VAR *); | - |
208 | static int export_environment_candidate (SHELL_VAR *); | - |
209 | static int local_and_exported (SHELL_VAR *); | - |
210 | static int variable_in_context (SHELL_VAR *); | - |
211 | | - |
212 | static int visible_array_vars (SHELL_VAR *); | - |
213 | | - |
214 | | - |
215 | static SHELL_VAR *find_variable_internal (const char *, int); | - |
216 | | - |
217 | static SHELL_VAR *find_nameref_at_context (SHELL_VAR *, VAR_CONTEXT *); | - |
218 | static SHELL_VAR *find_variable_nameref_context (SHELL_VAR *, VAR_CONTEXT *, VAR_CONTEXT **); | - |
219 | static SHELL_VAR *find_variable_last_nameref_context (SHELL_VAR *, VAR_CONTEXT *, VAR_CONTEXT **); | - |
220 | | - |
221 | static SHELL_VAR *bind_tempenv_variable (const char *, char *); | - |
222 | static void push_temp_var (void *); | - |
223 | static void propagate_temp_var (void *); | - |
224 | static void dispose_temporary_env (sh_free_func_t *); | - |
225 | | - |
226 | static inline char *mk_env_string (const char *, const char *, int); | - |
227 | static char **make_env_array_from_var_list (SHELL_VAR **); | - |
228 | static char **make_var_export_array (VAR_CONTEXT *); | - |
229 | static char **make_func_export_array (void); | - |
230 | static void add_temp_array_to_env (char **, int, int); | - |
231 | | - |
232 | static int n_shell_variables (void); | - |
233 | static int set_context (SHELL_VAR *); | - |
234 | | - |
235 | static void push_func_var (void *); | - |
236 | static void push_exported_var (void *); | - |
237 | | - |
238 | static inline int find_special_var (const char *); | - |
239 | | - |
240 | static void | - |
241 | create_variable_tables () | - |
242 | { | - |
243 | if (shell_variables == 0TRUE | evaluated 5432 times by 1 test | FALSE | evaluated 32 times by 1 test |
) | 32-5432 |
244 | { | - |
245 | shell_variables = global_variables = new_var_context ((char *) | - |
246 | ((void *)0) | - |
247 | , 0); | - |
248 | shell_variables->scope = 0; | - |
249 | shell_variables->table = hash_create (1024); | - |
250 | }executed 5432 times by 1 test: end of block | 5432 |
251 | | - |
252 | if (shell_functions == 0TRUE | evaluated 5432 times by 1 test | FALSE | evaluated 32 times by 1 test |
) | 32-5432 |
253 | shell_functions = hash_create (512);executed 5432 times by 1 test: shell_functions = hash_create (512); | 5432 |
254 | | - |
255 | | - |
256 | if (shell_function_defs == 0TRUE | evaluated 5432 times by 1 test | FALSE | evaluated 32 times by 1 test |
) | 32-5432 |
257 | shell_function_defs = hash_create (512);executed 5432 times by 1 test: shell_function_defs = hash_create (512); | 5432 |
258 | | - |
259 | }executed 5464 times by 1 test: end of block | 5464 |
260 | | - |
261 | | - |
262 | | - |
263 | | - |
264 | void | - |
265 | initialize_shell_variables (env, privmode) | - |
266 | char **env; | - |
267 | int privmode; | - |
268 | { | - |
269 | char *name, *string, *temp_string; | - |
270 | int c, char_index, string_index, string_length, ro; | - |
271 | SHELL_VAR *temp_var; | - |
272 | | - |
273 | create_variable_tables (); | - |
274 | | - |
275 | for (string_index = 0; envTRUE | evaluated 131099 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 125652 times by 1 test | FALSE | evaluated 5447 times by 1 test |
string = env[string_index++])TRUE | evaluated 125652 times by 1 test | FALSE | evaluated 5447 times by 1 test |
; ) | 0-131099 |
276 | { | - |
277 | char_index = 0; | - |
278 | name = string; | - |
279 | while ((TRUE | evaluated 1108719 times by 1 test | FALSE | never evaluated |
c = *string++)TRUE | evaluated 1108719 times by 1 test | FALSE | never evaluated |
&& c != '='TRUE | evaluated 983067 times by 1 test | FALSE | evaluated 125652 times by 1 test |
) | 0-1108719 |
280 | ;executed 983067 times by 1 test: ; | 983067 |
281 | if (string[-1] == '='TRUE | evaluated 125652 times by 1 test | FALSE | never evaluated |
) | 0-125652 |
282 | char_index = string - name - 1;executed 125652 times by 1 test: char_index = string - name - 1; | 125652 |
283 | | - |
284 | | - |
285 | | - |
286 | if (char_index == 0TRUE | never evaluated | FALSE | evaluated 125652 times by 1 test |
) | 0-125652 |
287 | continue; never executed: continue; | 0 |
288 | | - |
289 | | - |
290 | name[char_index] = '\0'; | - |
291 | | - |
292 | | - |
293 | | - |
294 | temp_var = (SHELL_VAR *) | - |
295 | ((void *)0) | - |
296 | ; | - |
297 | | - |
298 | | - |
299 | | - |
300 | | - |
301 | if (privmode == 0TRUE | evaluated 125652 times by 1 test | FALSE | never evaluated |
&& read_but_dont_execute == 0TRUE | evaluated 125652 times by 1 test | FALSE | never evaluated |
&& | 0-125652 |
302 | ((TRUE | never evaluated | FALSE | evaluated 125652 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
10 == 0)TRUE | never evaluated | FALSE | evaluated 125652 times by 1 test |
? (1) : ((TRUE | evaluated 5505 times by 1 test | FALSE | evaluated 120147 times by 1 test |
"BASH_FUNC_")[0] == (name)[0]TRUE | evaluated 5505 times by 1 test | FALSE | evaluated 120147 times by 1 test |
&& TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125652 |
303 | (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
__extension__ (__builtin_constant_p (TRUE | evaluated 5505 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
304 | 10TRUE | evaluated 5505 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
305 | )TRUE | evaluated 5505 times by 1 test | FALSE | never evaluated |
&& ((__builtin_constant_p (TRUE | evaluated 5505 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
306 | "BASH_FUNC_"TRUE | evaluated 5505 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
307 | )TRUE | evaluated 5505 times by 1 test | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | evaluated 5505 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
308 | "BASH_FUNC_"TRUE | never evaluated | FALSE | evaluated 5505 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
309 | ) < ((size_t) (TRUE | never evaluated | FALSE | evaluated 5505 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
310 | 10TRUE | never evaluated | FALSE | evaluated 5505 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
311 | ))TRUE | never evaluated | FALSE | evaluated 5505 times by 1 test |
) || (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 5505 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
312 | nameTRUE | never evaluated | FALSE | evaluated 5505 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
313 | )TRUE | never evaluated | FALSE | evaluated 5505 times by 1 test |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
314 | nameTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
315 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
316 | 10TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
317 | ))TRUE | never evaluated | FALSE | never evaluated |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
318 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
319 | ) && __builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
320 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
321 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
322 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
323 | ), __s2_len = __builtin_strlen (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
324 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
325 | ), (!((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
326 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
327 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
328 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
329 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
330 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
331 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
332 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
333 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
334 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
335 | , TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
336 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
337 | ) : (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
338 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
339 | ) && ((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
340 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
341 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
342 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
343 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
344 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
345 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
346 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
347 | ) && ((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
348 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
349 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
350 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
351 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
352 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
353 | , TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
354 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
355 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
356 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
357 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
358 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
359 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
360 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
361 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
362 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
363 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "BASH_FUNC_" ))[3] - __s2[3]); TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
364 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "BASH_FUNC_" ))[3] - __s2[3]); | 0-125591 |
365 | ))[3] - __s2[3]);TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "BASH_FUNC_" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
366 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
367 | ) && ((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
368 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
369 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
370 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
371 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
372 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
373 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
374 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
375 | ) && ((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
376 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
377 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
378 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
379 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
380 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
381 | , TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
382 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
383 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
384 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
385 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
386 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
387 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
388 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
389 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
390 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
391 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
392 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); | 0-125591 |
393 | ))[3] - __s2[3]);TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 0-125591 |
394 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
395 | , TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
396 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
397 | )))); }) : strncmp (TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
398 | "BASH_FUNC_"TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
399 | , TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
400 | nameTRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
401 | , TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
402 | 10TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
403 | ))) TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
| 61-125591 |
404 | == 0TRUE | evaluated 61 times by 1 test | FALSE | evaluated 5444 times by 1 test |
))TRUE | evaluated 61 times by 1 test | FALSE | evaluated 125591 times by 1 test |
&& | 61-125591 |
405 | ((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
"%%")[0] == (name + char_index - 2)[0]TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
&& | 0-61 |
406 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
407 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
408 | ) && __builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
409 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
410 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
411 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
412 | ), __s2_len = __builtin_strlen (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
413 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
414 | ), (!((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
415 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
416 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
417 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
418 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
419 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
420 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
421 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
422 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
423 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
424 | , TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
425 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
426 | ) : (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
427 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
428 | ) && ((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
429 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
430 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
431 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
432 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
433 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
434 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
435 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
436 | ) && ((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
437 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
438 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
439 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
440 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
441 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
442 | , TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
443 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
444 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
445 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
446 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
447 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
448 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
&& __result == 0TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
449 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
450 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
&& __result == 0TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
451 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
452 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | evaluated 61 times by 1 test |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "%%" ))[3] - __s2[3]); TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
453 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "%%" ))[3] - __s2[3]); | 0-61 |
454 | ))[3] - __s2[3]);TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "%%" ))[3] - __s2[3]); }executed 61 times by 1 test: end of block }executed 61 times by 1 test: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
455 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
456 | ) && ((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
457 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
458 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
459 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
460 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
461 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
462 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
463 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
464 | ) && ((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
465 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
466 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
467 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
468 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
469 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
470 | , TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
471 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
472 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
473 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
474 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
475 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
476 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
477 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
478 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
479 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
480 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( name + char_index - 2 ))[3] - __s2[3]); TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
481 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( name + char_index - 2 ))[3] - __s2[3]); | 0-61 |
482 | ))[3] - __s2[3]);TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( name + char_index - 2 ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
483 | "%%"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
484 | , TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
485 | name + char_index - 2TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
486 | )))); }) TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
487 | == 0TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
) && | 0-61 |
488 | ((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
4 == 0) ? (1) : ((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
"() {")[0] == (string)[0]TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
&& TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
489 | (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
__extension__ (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
490 | 4TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
491 | )TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
&& ((__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
492 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
493 | )TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | evaluated 61 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
494 | "() {"TRUE | never evaluated | FALSE | evaluated 61 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
495 | ) < ((size_t) (TRUE | never evaluated | FALSE | evaluated 61 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
496 | 4TRUE | never evaluated | FALSE | evaluated 61 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
497 | ))TRUE | never evaluated | FALSE | evaluated 61 times by 1 test |
) || (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 61 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
498 | stringTRUE | never evaluated | FALSE | evaluated 61 times by 1 test |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
499 | )TRUE | never evaluated | FALSE | evaluated 61 times by 1 test |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
500 | stringTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
501 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
502 | 4TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
503 | ))TRUE | never evaluated | FALSE | never evaluated |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
504 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
505 | ) && __builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
506 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
507 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
508 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
509 | ), __s2_len = __builtin_strlen (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
510 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
511 | ), (!((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
512 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
513 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
514 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
515 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
516 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
517 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
518 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
519 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
520 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
521 | , TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
522 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
523 | ) : (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
524 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
525 | ) && ((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
526 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
527 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
528 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
529 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
530 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
531 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
532 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
533 | ) && ((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
534 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
535 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
536 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
537 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
538 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
539 | , TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
540 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
541 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
542 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
543 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
544 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
545 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
546 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
547 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
548 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
549 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "() {" ))[3] - __s2[3]); TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
550 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "() {" ))[3] - __s2[3]); | 0-61 |
551 | ))[3] - __s2[3]);TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "() {" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
552 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
553 | ) && ((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
554 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
555 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
556 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
557 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
558 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
559 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
560 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
561 | ) && ((size_t)(const void *)((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
562 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
563 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
564 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
565 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
566 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
567 | , TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
568 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
569 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
570 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
571 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
572 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
573 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
574 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
575 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
576 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
577 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( string ))[3] - __s2[3]); TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
578 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( string ))[3] - __s2[3]); | 0-61 |
579 | ))[3] - __s2[3]);TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( string ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
580 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
581 | , TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
582 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
583 | )))); }) : strncmp (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
584 | "() {"TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
585 | , TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
586 | stringTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
587 | , TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
588 | 4TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
589 | ))) TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
| 0-61 |
590 | == 0TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
))TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
) | 0-61 |
591 | { | - |
592 | size_t namelen; | - |
593 | char *tname; | - |
594 | | - |
595 | namelen = char_index - 10 - 2; | - |
596 | | - |
597 | tname = name + 10; | - |
598 | tname[namelen] = '\0'; | - |
599 | | - |
600 | string_length = strlen (string); | - |
601 | temp_string = (char *)sh_xmalloc((namelen + string_length + 2), "variables.c", 372); | - |
602 | | - |
603 | memcpy (temp_string, tname, namelen); | - |
604 | temp_string[namelen] = ' '; | - |
605 | memcpy (temp_string + namelen + 1, string, string_length + 1); | - |
606 | | - |
607 | | - |
608 | | - |
609 | | - |
610 | if (absolute_program (tname) == 0TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
&& (posixly_correct == 0TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
|| legal_identifier (tname)TRUE | never evaluated | FALSE | never evaluated |
)) | 0-61 |
611 | parse_and_execute (temp_string, tname, 0x001|0x004|0x080|0x100);executed 61 times by 1 test: parse_and_execute (temp_string, tname, 0x001|0x004|0x080|0x100); | 61 |
612 | else | - |
613 | sh_xfree((temp_string), "variables.c", 384); never executed: sh_xfree((temp_string), "variables.c", 384); | 0 |
614 | | - |
615 | if (temp_var = find_function (tname)TRUE | evaluated 49 times by 1 test | FALSE | evaluated 12 times by 1 test |
) | 12-49 |
616 | { | - |
617 | ((temp_var)->attributes |= ((0x0000001|0x0008000))); | - |
618 | array_needs_making = 1; | - |
619 | }executed 49 times by 1 test: end of block | 49 |
620 | else | - |
621 | { | - |
622 | if (temp_var = bind_variable (name, string, 0)TRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
) | 0-12 |
623 | { | - |
624 | ((temp_var)->attributes |= ((0x0000001 | 0x0008000 | 0x0001000))); | - |
625 | array_needs_making = 1; | - |
626 | }executed 12 times by 1 test: end of block | 12 |
627 | last_command_exit_value = 1; | - |
628 | report_error ( | - |
629 | dcgettext (((void *)0), | - |
630 | "error importing function definition for `%s'" | - |
631 | , 5) | - |
632 | , tname); | - |
633 | }executed 12 times by 1 test: end of block | 12 |
634 | | - |
635 | | - |
636 | tname[namelen] = "%%"[0]; | - |
637 | }executed 61 times by 1 test: end of block | 61 |
638 | else | - |
639 | { | - |
640 | ro = 0; | - |
641 | | - |
642 | | - |
643 | | - |
644 | if ( ((TRUE | evaluated 10888 times by 1 test | FALSE | evaluated 114703 times by 1 test |
name)[0] == ("SHELLOPTS")[0]TRUE | evaluated 10888 times by 1 test | FALSE | evaluated 114703 times by 1 test |
&& | 10888-114703 |
645 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
646 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
647 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
648 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
649 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
650 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
651 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
652 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
653 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
654 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
655 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
656 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
657 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
658 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
659 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
660 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
661 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
662 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
663 | , TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
664 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
665 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
666 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
667 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
668 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
669 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
670 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
671 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
672 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
673 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
674 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
675 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
676 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
677 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
678 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
679 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
680 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
681 | , TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
682 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
683 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
684 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
685 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
686 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
687 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
688 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
689 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
690 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
691 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
692 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); | 0-10888 |
693 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
694 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
695 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
696 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
697 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
698 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
699 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
700 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
701 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
702 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
703 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
704 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
705 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
706 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
707 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
708 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
709 | , TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
710 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
711 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
712 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
713 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
714 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
715 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
716 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
717 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
718 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
719 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "SHELLOPTS" ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
720 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "SHELLOPTS" ))[3] - __s2[3]); | 0-10888 |
721 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "SHELLOPTS" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
722 | nameTRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
723 | , TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
724 | "SHELLOPTS"TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
725 | )))); }) TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
| 0-10888 |
726 | == 0TRUE | never evaluated | FALSE | evaluated 10888 times by 1 test |
)) | 0-10888 |
727 | { | - |
728 | temp_var = find_variable ("SHELLOPTS"); | - |
729 | ro = temp_varTRUE | never evaluated | FALSE | never evaluated |
&& ((((TRUE | never evaluated | FALSE | never evaluated |
temp_var)->attributes) & (0x0000002)))TRUE | never evaluated | FALSE | never evaluated |
; | 0 |
730 | if (temp_varTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
731 | (( never executed: ((temp_var)->attributes &= ~(0x0000002)); temp_var)->attributes &= ~(0x0000002));never executed: ((temp_var)->attributes &= ~(0x0000002)); | 0 |
732 | } never executed: end of block | 0 |
733 | temp_var = bind_variable (name, string, 0); | - |
734 | if (temp_varTRUE | evaluated 125591 times by 1 test | FALSE | never evaluated |
) | 0-125591 |
735 | { | - |
736 | if (legal_identifier (name)TRUE | evaluated 125591 times by 1 test | FALSE | never evaluated |
) | 0-125591 |
737 | ((executed 125591 times by 1 test: ((temp_var)->attributes |= ((0x0000001 | 0x0008000))); temp_var)->attributes |= ((0x0000001 | 0x0008000)));executed 125591 times by 1 test: ((temp_var)->attributes |= ((0x0000001 | 0x0008000))); | 125591 |
738 | else | - |
739 | (( never executed: ((temp_var)->attributes |= ((0x0000001 | 0x0008000 | 0x0001000))); temp_var)->attributes |= ((0x0000001 | 0x0008000 | 0x0001000)));never executed: ((temp_var)->attributes |= ((0x0000001 | 0x0008000 | 0x0001000))); | 0 |
740 | if (roTRUE | never evaluated | FALSE | evaluated 125591 times by 1 test |
) | 0-125591 |
741 | (( never executed: ((temp_var)->attributes |= (0x0000002)); temp_var)->attributes |= (0x0000002));never executed: ((temp_var)->attributes |= (0x0000002)); | 0 |
742 | array_needs_making = 1; | - |
743 | }executed 125591 times by 1 test: end of block | 125591 |
744 | }executed 125591 times by 1 test: end of block | 125591 |
745 | | - |
746 | name[char_index] = '='; | - |
747 | | - |
748 | | - |
749 | if (temp_varTRUE | evaluated 125652 times by 1 test | FALSE | never evaluated |
&& ((((TRUE | evaluated 125603 times by 1 test | FALSE | evaluated 49 times by 1 test |
temp_var)->attributes) & (0x0000008))) == 0TRUE | evaluated 125603 times by 1 test | FALSE | evaluated 49 times by 1 test |
) | 0-125652 |
750 | { | - |
751 | (temp_var)->exportstr = (char *)strcpy (sh_xmalloc((1 + strlen (name)), "variables.c", 452), (name)); | - |
752 | }executed 125603 times by 1 test: end of block | 125603 |
753 | }executed 125652 times by 1 test: end of block | 125652 |
754 | | - |
755 | set_pwd (); | - |
756 | | - |
757 | | - |
758 | temp_var = set_if_not ("_", dollar_vars[0]); | - |
759 | | - |
760 | | - |
761 | dollar_dollar_pid = getpid (); | - |
762 | | - |
763 | | - |
764 | | - |
765 | temp_var = set_if_not ("PATH", "/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:."); | - |
766 | temp_var = set_if_not ("TERM", "dumb"); | - |
767 | if (interactive_shellTRUE | evaluated 2 times by 1 test | FALSE | evaluated 5445 times by 1 test |
) | 2-5445 |
768 | { | - |
769 | | - |
770 | set_if_not ("PS1", primary_prompt); | - |
771 | | - |
772 | | - |
773 | | - |
774 | | - |
775 | | - |
776 | set_if_not ("PS2", secondary_prompt); | - |
777 | }executed 2 times by 1 test: end of block | 2 |
778 | | - |
779 | if (current_user.euid == 0TRUE | never evaluated | FALSE | evaluated 5447 times by 1 test |
) | 0-5447 |
780 | bind_variable ("PS4", "+ ", 0); never executed: bind_variable ("PS4", "+ ", 0); | 0 |
781 | else | - |
782 | set_if_not ("PS4", "+ ");executed 5447 times by 1 test: set_if_not ("PS4", "+ "); | 5447 |
783 | | - |
784 | | - |
785 | temp_var = bind_variable ("IFS", " \t\n", 0); | - |
786 | setifs (temp_var); | - |
787 | | - |
788 | | - |
789 | set_machine_vars (); | - |
790 | | - |
791 | | - |
792 | | - |
793 | | - |
794 | | - |
795 | if (interactive_shellTRUE | evaluated 2 times by 1 test | FALSE | evaluated 5445 times by 1 test |
) | 2-5445 |
796 | { | - |
797 | temp_var = set_if_not ("MAILCHECK", posixly_correct ? "600" : "60"); | - |
798 | ((temp_var)->attributes |= (0x0000010)); | - |
799 | }executed 2 times by 1 test: end of block | 2 |
800 | | - |
801 | | - |
802 | initialize_shell_level (); | - |
803 | | - |
804 | set_ppid (); | - |
805 | | - |
806 | | - |
807 | temp_var = bind_variable ("OPTIND", "1", 0); | - |
808 | ((temp_var)->attributes |= (0x0000010)); | - |
809 | getopts_reset (0); | - |
810 | bind_variable ("OPTERR", "1", 0); | - |
811 | sh_opterr = 1; | - |
812 | | - |
813 | if (login_shell == 1TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5446 times by 1 test |
&& posixly_correct == 0TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) | 0-5446 |
814 | set_home_var ();executed 1 time by 1 test: set_home_var (); | 1 |
815 | | - |
816 | | - |
817 | | - |
818 | name = get_bash_name (); | - |
819 | temp_var = bind_variable ("BASH", name, 0); | - |
820 | sh_xfree((name), "variables.c", 538); | - |
821 | | - |
822 | | - |
823 | | - |
824 | | - |
825 | | - |
826 | set_shell_var (); | - |
827 | | - |
828 | | - |
829 | bind_variable ("BASH_VERSION", shell_version_string (), 0); | - |
830 | | - |
831 | make_vers_array (); | - |
832 | | - |
833 | | - |
834 | if (command_execution_stringTRUE | evaluated 177 times by 1 test | FALSE | evaluated 5270 times by 1 test |
) | 177-5270 |
835 | bind_variable ("BASH_EXECUTION_STRING", command_execution_string, 0);executed 177 times by 1 test: bind_variable ("BASH_EXECUTION_STRING", command_execution_string, 0); | 177 |
836 | | - |
837 | | - |
838 | | - |
839 | temp_var = find_variable ("POSIXLY_CORRECT"); | - |
840 | if (!temp_varTRUE | evaluated 5430 times by 1 test | FALSE | evaluated 17 times by 1 test |
) | 17-5430 |
841 | temp_var = find_variable ("POSIX_PEDANTIC");executed 5430 times by 1 test: temp_var = find_variable ("POSIX_PEDANTIC"); | 5430 |
842 | if (temp_varTRUE | evaluated 17 times by 1 test | FALSE | evaluated 5430 times by 1 test |
&& ((((TRUE | never evaluated | FALSE | evaluated 17 times by 1 test |
temp_var)->attributes) & (0x0008000)))TRUE | never evaluated | FALSE | evaluated 17 times by 1 test |
) | 0-5430 |
843 | sv_strict_posix (temp_var->name); never executed: sv_strict_posix (temp_var->name); | 0 |
844 | | - |
845 | | - |
846 | | - |
847 | | - |
848 | | - |
849 | if (remember_on_historyTRUE | evaluated 2 times by 1 test | FALSE | evaluated 5445 times by 1 test |
) | 2-5445 |
850 | { | - |
851 | name = bash_tilde_expand (posixly_correct ? "~/.sh_history" : "~/.bash_history", 0); | - |
852 | | - |
853 | set_if_not ("HISTFILE", name); | - |
854 | sh_xfree((name), "variables.c", 572); | - |
855 | }executed 2 times by 1 test: end of block | 2 |
856 | | - |
857 | | - |
858 | | - |
859 | seedrand (); | - |
860 | | - |
861 | | - |
862 | | - |
863 | if (interactive_shellTRUE | evaluated 2 times by 1 test | FALSE | evaluated 5445 times by 1 test |
) | 2-5445 |
864 | { | - |
865 | temp_var = find_variable ("IGNOREEOF"); | - |
866 | if (!temp_varTRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-2 |
867 | temp_var = find_variable ("ignoreeof");executed 2 times by 1 test: temp_var = find_variable ("ignoreeof"); | 2 |
868 | if (temp_varTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
&& ((((TRUE | never evaluated | FALSE | never evaluated |
temp_var)->attributes) & (0x0008000)))TRUE | never evaluated | FALSE | never evaluated |
) | 0-2 |
869 | sv_ignoreeof (temp_var->name); never executed: sv_ignoreeof (temp_var->name); | 0 |
870 | }executed 2 times by 1 test: end of block | 2 |
871 | | - |
872 | | - |
873 | if (interactive_shellTRUE | evaluated 2 times by 1 test | FALSE | evaluated 5445 times by 1 test |
&& remember_on_historyTRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-5445 |
874 | { | - |
875 | sv_history_control ("HISTCONTROL"); | - |
876 | sv_histignore ("HISTIGNORE"); | - |
877 | sv_histtimefmt ("HISTTIMEFORMAT"); | - |
878 | }executed 2 times by 1 test: end of block | 2 |
879 | uidset (); | - |
880 | | - |
881 | temp_var = find_variable ("BASH_XTRACEFD"); | - |
882 | if (temp_varTRUE | never evaluated | FALSE | evaluated 5447 times by 1 test |
&& ((((TRUE | never evaluated | FALSE | never evaluated |
temp_var)->attributes) & (0x0008000)))TRUE | never evaluated | FALSE | never evaluated |
) | 0-5447 |
883 | sv_xtracefd (temp_var->name); never executed: sv_xtracefd (temp_var->name); | 0 |
884 | | - |
885 | sv_shcompat ("BASH_COMPAT"); | - |
886 | | - |
887 | | - |
888 | sv_funcnest ("FUNCNEST"); | - |
889 | | - |
890 | | - |
891 | initialize_dynamic_variables (); | - |
892 | }executed 5447 times by 1 test: end of block | 5447 |
893 | | - |
894 | | - |
895 | | - |
896 | | - |
897 | | - |
898 | | - |
899 | | - |
900 | static void | - |
901 | set_machine_vars () | - |
902 | { | - |
903 | SHELL_VAR *temp_var; | - |
904 | | - |
905 | temp_var = set_if_not ("HOSTTYPE", "x86_64"); | - |
906 | temp_var = set_if_not ("OSTYPE", "linux-gnu"); | - |
907 | temp_var = set_if_not ("MACHTYPE", "x86_64-pc-linux-gnu"); | - |
908 | | - |
909 | temp_var = set_if_not ("HOSTNAME", current_host_name); | - |
910 | }executed 5447 times by 1 test: end of block | 5447 |
911 | | - |
912 | | - |
913 | | - |
914 | | - |
915 | | - |
916 | | - |
917 | char * | - |
918 | sh_get_home_dir () | - |
919 | { | - |
920 | if (current_user.home_dir == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
921 | get_current_user_info (); never executed: get_current_user_info (); | 0 |
922 | return never executed: return current_user.home_dir; current_user.home_dir;never executed: return current_user.home_dir; | 0 |
923 | } | - |
924 | | - |
925 | static void | - |
926 | set_home_var () | - |
927 | { | - |
928 | SHELL_VAR *temp_var; | - |
929 | | - |
930 | temp_var = find_variable ("HOME"); | - |
931 | if (temp_var == 0TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
) | 0-1 |
932 | temp_var = bind_variable ("HOME", sh_get_home_dir (), 0); never executed: temp_var = bind_variable ("HOME", sh_get_home_dir (), 0); | 0 |
933 | | - |
934 | | - |
935 | | - |
936 | }executed 1 time by 1 test: end of block | 1 |
937 | | - |
938 | | - |
939 | | - |
940 | static void | - |
941 | set_shell_var () | - |
942 | { | - |
943 | SHELL_VAR *temp_var; | - |
944 | | - |
945 | temp_var = find_variable ("SHELL"); | - |
946 | if (temp_var == 0TRUE | evaluated 3 times by 1 test | FALSE | evaluated 5444 times by 1 test |
) | 3-5444 |
947 | { | - |
948 | if (current_user.shell == 0TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
) | 0-3 |
949 | get_current_user_info ();executed 3 times by 1 test: get_current_user_info (); | 3 |
950 | temp_var = bind_variable ("SHELL", current_user.shell, 0); | - |
951 | }executed 3 times by 1 test: end of block | 3 |
952 | | - |
953 | | - |
954 | | - |
955 | }executed 5447 times by 1 test: end of block | 5447 |
956 | | - |
957 | static char * | - |
958 | get_bash_name () | - |
959 | { | - |
960 | char *name; | - |
961 | | - |
962 | if ((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5446 times by 1 test |
login_shell == 1)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5446 times by 1 test |
&& ((TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
shell_name)[0] != '/')TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) | 0-5446 |
963 | { | - |
964 | if (current_user.shell == 0TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) | 0-1 |
965 | get_current_user_info ();executed 1 time by 1 test: get_current_user_info (); | 1 |
966 | name = (char *)strcpy (sh_xmalloc((1 + strlen (current_user.shell)), "variables.c", 720), (current_user.shell)); | - |
967 | }executed 1 time by 1 test: end of block | 1 |
968 | else if (((TRUE | evaluated 5444 times by 1 test | FALSE | evaluated 2 times by 1 test |
shell_name)[0] == '/')TRUE | evaluated 5444 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-5444 |
969 | name = (char *)strcpy (sh_xmalloc((1 + strlen (shell_name)), "variables.c", 723), (shell_name));executed 5444 times by 1 test: name = (char *)strcpy (sh_xmalloc((1 + strlen (shell_name)), "variables.c", 723), (shell_name)); | 5444 |
970 | else if (shell_name[0] == '.'TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
&& shell_name[1] == '/'TRUE | never evaluated | FALSE | never evaluated |
) | 0-2 |
971 | { | - |
972 | | - |
973 | char *cdir; | - |
974 | int len; | - |
975 | | - |
976 | cdir = get_string_value ("PWD"); | - |
977 | if (cdirTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
978 | { | - |
979 | len = strlen (cdir); | - |
980 | name = (char *)sh_xmalloc((len + strlen (shell_name) + 1), "variables.c", 734); | - |
981 | strcpy (name, cdir); | - |
982 | strcpy (name + len, shell_name + 1); | - |
983 | } never executed: end of block | 0 |
984 | else | - |
985 | name = (char *)strcpy (sh_xmalloc((1 + strlen (shell_name)), "variables.c", 739), (shell_name)); never executed: name = (char *)strcpy (sh_xmalloc((1 + strlen (shell_name)), "variables.c", 739), (shell_name)); | 0 |
986 | } | - |
987 | else | - |
988 | { | - |
989 | char *tname; | - |
990 | int s; | - |
991 | | - |
992 | tname = find_user_command (shell_name); | - |
993 | | - |
994 | if (tname == 0TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-2 |
995 | { | - |
996 | | - |
997 | | - |
998 | s = file_status (shell_name); | - |
999 | if (s & 0x2TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
1000 | { | - |
1001 | tname = make_absolute (shell_name, get_string_value ("PWD")); | - |
1002 | if (*TRUE | never evaluated | FALSE | never evaluated |
shell_name == '.'TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1003 | { | - |
1004 | name = sh_canonpath (tname, 0x0001|0x0002); | - |
1005 | if (name == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1006 | name = tname; never executed: name = tname; | 0 |
1007 | else | - |
1008 | sh_xfree((tname), "variables.c", 762); never executed: sh_xfree((tname), "variables.c", 762); | 0 |
1009 | } | - |
1010 | else | - |
1011 | name = tname; never executed: name = tname; | 0 |
1012 | } | - |
1013 | else | - |
1014 | { | - |
1015 | if (current_user.shell == 0TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-2 |
1016 | get_current_user_info ();executed 2 times by 1 test: get_current_user_info (); | 2 |
1017 | name = (char *)strcpy (sh_xmalloc((1 + strlen (current_user.shell)), "variables.c", 771), (current_user.shell)); | - |
1018 | }executed 2 times by 1 test: end of block | 2 |
1019 | } | - |
1020 | else | - |
1021 | { | - |
1022 | name = full_pathname (tname); | - |
1023 | sh_xfree((tname), "variables.c", 777); | - |
1024 | } never executed: end of block | 0 |
1025 | } | - |
1026 | | - |
1027 | returnexecuted 5447 times by 1 test: return (name); (name);executed 5447 times by 1 test: return (name); | 5447 |
1028 | } | - |
1029 | | - |
1030 | void | - |
1031 | adjust_shell_level (change) | - |
1032 | int change; | - |
1033 | { | - |
1034 | char new_level[5], *old_SHLVL; | - |
1035 | intmax_t old_level; | - |
1036 | SHELL_VAR *temp_var; | - |
1037 | | - |
1038 | old_SHLVL = get_string_value ("SHLVL"); | - |
1039 | if (old_SHLVL == 0TRUE | evaluated 3 times by 1 test | FALSE | evaluated 5448 times by 1 test |
|| *TRUE | never evaluated | FALSE | evaluated 5448 times by 1 test |
old_SHLVL == '\0'TRUE | never evaluated | FALSE | evaluated 5448 times by 1 test |
|| legal_number (old_SHLVL, &old_level) == 0TRUE | never evaluated | FALSE | evaluated 5448 times by 1 test |
) | 0-5448 |
1040 | old_level = 0;executed 3 times by 1 test: old_level = 0; | 3 |
1041 | | - |
1042 | shell_level = old_level + change; | - |
1043 | if (shell_level < 0TRUE | never evaluated | FALSE | evaluated 5451 times by 1 test |
) | 0-5451 |
1044 | shell_level = 0; never executed: shell_level = 0; | 0 |
1045 | else if (shell_level >= 1000TRUE | never evaluated | FALSE | evaluated 5451 times by 1 test |
) | 0-5451 |
1046 | { | - |
1047 | internal_warning ( | - |
1048 | dcgettext (((void *)0), | - |
1049 | "shell level (%d) too high, resetting to 1" | - |
1050 | , 5) | - |
1051 | , shell_level); | - |
1052 | shell_level = 1; | - |
1053 | } never executed: end of block | 0 |
1054 | | - |
1055 | | - |
1056 | if (shell_level < 10TRUE | evaluated 5451 times by 1 test | FALSE | never evaluated |
) | 0-5451 |
1057 | { | - |
1058 | new_level[0] = shell_level + '0'; | - |
1059 | new_level[1] = '\0'; | - |
1060 | }executed 5451 times by 1 test: end of block | 5451 |
1061 | else if (shell_level < 100TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1062 | { | - |
1063 | new_level[0] = (shell_level / 10) + '0'; | - |
1064 | new_level[1] = (shell_level % 10) + '0'; | - |
1065 | new_level[2] = '\0'; | - |
1066 | } never executed: end of block | 0 |
1067 | else if (shell_level < 1000TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1068 | { | - |
1069 | new_level[0] = (shell_level / 100) + '0'; | - |
1070 | old_level = shell_level % 100; | - |
1071 | new_level[1] = (old_level / 10) + '0'; | - |
1072 | new_level[2] = (old_level % 10) + '0'; | - |
1073 | new_level[3] = '\0'; | - |
1074 | } never executed: end of block | 0 |
1075 | | - |
1076 | temp_var = bind_variable ("SHLVL", new_level, 0); | - |
1077 | do { (temp_var)->attributes |= 0x0000001; array_needs_making = 1; } while (0); | - |
1078 | }executed 5451 times by 1 test: end of block | 5451 |
1079 | | - |
1080 | static void | - |
1081 | initialize_shell_level () | - |
1082 | { | - |
1083 | adjust_shell_level (1); | - |
1084 | }executed 5447 times by 1 test: end of block | 5447 |
1085 | void | - |
1086 | set_pwd () | - |
1087 | { | - |
1088 | SHELL_VAR *temp_var, *home_var; | - |
1089 | char *temp_string, *home_string, *current_dir; | - |
1090 | | - |
1091 | home_var = find_variable ("HOME"); | - |
1092 | home_string = home_varTRUE | evaluated 5444 times by 1 test | FALSE | evaluated 3 times by 1 test |
? ((home_var)->value) : (char *) | 3-5444 |
1093 | ((void *)0) | - |
1094 | ; | - |
1095 | | - |
1096 | temp_var = find_variable ("PWD"); | - |
1097 | | - |
1098 | if (temp_varTRUE | evaluated 5444 times by 1 test | FALSE | evaluated 3 times by 1 test |
&& ((((TRUE | evaluated 5444 times by 1 test | FALSE | never evaluated |
temp_var)->attributes) & (0x0008000)))TRUE | evaluated 5444 times by 1 test | FALSE | never evaluated |
&& | 0-5444 |
1099 | (TRUE | evaluated 5444 times by 1 test | FALSE | never evaluated |
temp_string = ((temp_var)->value))TRUE | evaluated 5444 times by 1 test | FALSE | never evaluated |
&& | 0-5444 |
1100 | temp_string[0] == '/'TRUE | evaluated 5444 times by 1 test | FALSE | never evaluated |
&& | 0-5444 |
1101 | same_file (temp_string, ".", (struct stat *)TRUE | evaluated 5444 times by 1 test | FALSE | never evaluated |
| 0-5444 |
1102 | ((void *)0)TRUE | evaluated 5444 times by 1 test | FALSE | never evaluated |
| 0-5444 |
1103 | , (struct stat *)TRUE | evaluated 5444 times by 1 test | FALSE | never evaluated |
| 0-5444 |
1104 | ((void *)0)TRUE | evaluated 5444 times by 1 test | FALSE | never evaluated |
| 0-5444 |
1105 | )TRUE | evaluated 5444 times by 1 test | FALSE | never evaluated |
) | 0-5444 |
1106 | { | - |
1107 | current_dir = sh_canonpath (temp_string, 0x0001|0x0002); | - |
1108 | if (current_dir == 0TRUE | never evaluated | FALSE | evaluated 5444 times by 1 test |
) | 0-5444 |
1109 | current_dir = get_working_directory ("shell_init"); never executed: current_dir = get_working_directory ("shell_init"); | 0 |
1110 | else | - |
1111 | set_working_directory (current_dir);executed 5444 times by 1 test: set_working_directory (current_dir); | 5444 |
1112 | if (posixly_correctTRUE | evaluated 17 times by 1 test | FALSE | evaluated 5427 times by 1 test |
&& current_dirTRUE | evaluated 17 times by 1 test | FALSE | never evaluated |
) | 0-5427 |
1113 | { | - |
1114 | temp_var = bind_variable ("PWD", current_dir, 0); | - |
1115 | do { (temp_var)->attributes |= 0x0000001; array_needs_making = 1; } while (0); | - |
1116 | }executed 17 times by 1 test: end of block | 17 |
1117 | sh_xfree((current_dir), "variables.c", 869); | - |
1118 | }executed 5444 times by 1 test: end of block | 5444 |
1119 | else if (home_stringTRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
&& interactive_shellTRUE | never evaluated | FALSE | never evaluated |
&& login_shellTRUE | never evaluated | FALSE | never evaluated |
&& | 0-3 |
1120 | same_file (home_string, ".", (struct stat *)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1121 | ((void *)0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1122 | , (struct stat *)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1123 | ((void *)0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1124 | )TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1125 | { | - |
1126 | set_working_directory (home_string); | - |
1127 | temp_var = bind_variable ("PWD", home_string, 0); | - |
1128 | do { (temp_var)->attributes |= 0x0000001; array_needs_making = 1; } while (0); | - |
1129 | } never executed: end of block | 0 |
1130 | else | - |
1131 | { | - |
1132 | temp_string = get_working_directory ("shell-init"); | - |
1133 | if (temp_stringTRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
) | 0-3 |
1134 | { | - |
1135 | temp_var = bind_variable ("PWD", temp_string, 0); | - |
1136 | do { (temp_var)->attributes |= 0x0000001; array_needs_making = 1; } while (0); | - |
1137 | sh_xfree((temp_string), "variables.c", 885); | - |
1138 | }executed 3 times by 1 test: end of block | 3 |
1139 | }executed 3 times by 1 test: end of block | 3 |
1140 | | - |
1141 | | - |
1142 | | - |
1143 | | - |
1144 | | - |
1145 | temp_var = find_variable ("OLDPWD"); | - |
1146 | | - |
1147 | if (temp_var == 0TRUE | evaluated 26 times by 1 test | FALSE | evaluated 5421 times by 1 test |
|| ((TRUE | never evaluated | FALSE | evaluated 5421 times by 1 test |
temp_var)->value) == 0TRUE | never evaluated | FALSE | evaluated 5421 times by 1 test |
|| file_isdir (((temp_var)->value)) == 0TRUE | evaluated 23 times by 1 test | FALSE | evaluated 5398 times by 1 test |
) | 0-5421 |
1148 | | - |
1149 | | - |
1150 | | - |
1151 | { | - |
1152 | temp_var = bind_variable ("OLDPWD", (char *) | - |
1153 | ((void *)0) | - |
1154 | , 0); | - |
1155 | ((temp_var)->attributes |= ((0x0000001 | 0x0001000))); | - |
1156 | }executed 49 times by 1 test: end of block | 49 |
1157 | }executed 5447 times by 1 test: end of block | 5447 |
1158 | | - |
1159 | | - |
1160 | void | - |
1161 | set_ppid () | - |
1162 | { | - |
1163 | char namebuf[((sizeof (pid_t) * 8 - (! ((pid_t) 0 < (pid_t) -1))) * 302 / 1000 + 1 + (! ((pid_t) 0 < (pid_t) -1))) + 1], *name; | - |
1164 | SHELL_VAR *temp_var; | - |
1165 | | - |
1166 | name = inttostr (getppid (), namebuf, sizeof(namebuf)); | - |
1167 | temp_var = find_variable ("PPID"); | - |
1168 | if (temp_varTRUE | never evaluated | FALSE | evaluated 5447 times by 1 test |
) | 0-5447 |
1169 | (( never executed: ((temp_var)->attributes &= ~((0x0000002 | 0x0000001))); temp_var)->attributes &= ~((0x0000002 | 0x0000001)));never executed: ((temp_var)->attributes &= ~((0x0000002 | 0x0000001))); | 0 |
1170 | temp_var = bind_variable ("PPID", name, 0); | - |
1171 | ((temp_var)->attributes |= ((0x0000002 | 0x0000010))); | - |
1172 | }executed 5447 times by 1 test: end of block | 5447 |
1173 | | - |
1174 | static void | - |
1175 | uidset () | - |
1176 | { | - |
1177 | char buff[((sizeof (uid_t) * 8 - (! ((uid_t) 0 < (uid_t) -1))) * 302 / 1000 + 1 + (! ((uid_t) 0 < (uid_t) -1))) + 1], *b; | - |
1178 | register SHELL_VAR *v; | - |
1179 | | - |
1180 | b = inttostr (current_user.uid, buff, sizeof (buff)); | - |
1181 | v = find_variable ("UID"); | - |
1182 | if (v == 0TRUE | evaluated 5447 times by 1 test | FALSE | never evaluated |
) | 0-5447 |
1183 | { | - |
1184 | v = bind_variable ("UID", b, 0); | - |
1185 | ((v)->attributes |= ((0x0000002 | 0x0000010))); | - |
1186 | }executed 5447 times by 1 test: end of block | 5447 |
1187 | | - |
1188 | if (current_user.euid != current_user.uidTRUE | never evaluated | FALSE | evaluated 5447 times by 1 test |
) | 0-5447 |
1189 | b = inttostr (current_user.euid, buff, sizeof (buff)); never executed: b = inttostr (current_user.euid, buff, sizeof (buff)); | 0 |
1190 | | - |
1191 | v = find_variable ("EUID"); | - |
1192 | if (v == 0TRUE | evaluated 5447 times by 1 test | FALSE | never evaluated |
) | 0-5447 |
1193 | { | - |
1194 | v = bind_variable ("EUID", b, 0); | - |
1195 | ((v)->attributes |= ((0x0000002 | 0x0000010))); | - |
1196 | }executed 5447 times by 1 test: end of block | 5447 |
1197 | }executed 5447 times by 1 test: end of block | 5447 |
1198 | | - |
1199 | | - |
1200 | static void | - |
1201 | make_vers_array () | - |
1202 | { | - |
1203 | SHELL_VAR *vv; | - |
1204 | ARRAY *av; | - |
1205 | char *s, d[32], b[((sizeof (int) * 8 - (! ((int) 0 < (int) -1))) * 302 / 1000 + 1 + (! ((int) 0 < (int) -1))) + 1]; | - |
1206 | | - |
1207 | unbind_variable_noref ("BASH_VERSINFO"); | - |
1208 | | - |
1209 | vv = make_new_array_variable ("BASH_VERSINFO"); | - |
1210 | av = (ARRAY *)((vv)->value); | - |
1211 | strcpy (d, dist_version); | - |
1212 | s = | - |
1213 | (__extension__ (__builtin_constant_p (TRUE | evaluated 5447 times by 1 test | FALSE | never evaluated |
| 0-5447 |
1214 | '.'TRUE | evaluated 5447 times by 1 test | FALSE | never evaluated |
| 0-5447 |
1215 | )TRUE | evaluated 5447 times by 1 test | FALSE | never evaluated |
&& !__builtin_constant_p (TRUE | evaluated 5447 times by 1 test | FALSE | never evaluated |
| 0-5447 |
1216 | dTRUE | evaluated 5447 times by 1 test | FALSE | never evaluated |
| 0-5447 |
1217 | )TRUE | evaluated 5447 times by 1 test | FALSE | never evaluated |
&& (TRUE | never evaluated | FALSE | evaluated 5447 times by 1 test |
| 0-5447 |
1218 | '.'TRUE | never evaluated | FALSE | evaluated 5447 times by 1 test |
| 0-5447 |
1219 | ) == '\0'TRUE | never evaluated | FALSE | evaluated 5447 times by 1 test |
? (char *) __rawmemchr ( | 0-5447 |
1220 | d | - |
1221 | , | - |
1222 | '.' | - |
1223 | ) : __builtin_strchr ( | - |
1224 | d | - |
1225 | , | - |
1226 | '.' | - |
1227 | ))) | - |
1228 | ; | - |
1229 | if (sTRUE | evaluated 5447 times by 1 test | FALSE | never evaluated |
) | 0-5447 |
1230 | *executed 5447 times by 1 test: *s++ = '\0'; s++ = '\0';executed 5447 times by 1 test: *s++ = '\0'; | 5447 |
1231 | array_insert (av, 0, d); | - |
1232 | array_insert (av, 1, s); | - |
1233 | s = inttostr (patch_level, b, sizeof (b)); | - |
1234 | array_insert (av, 2, s); | - |
1235 | s = inttostr (build_version, b, sizeof (b)); | - |
1236 | array_insert (av, 3, s); | - |
1237 | array_insert (av, 4, release_status); | - |
1238 | array_insert (av, 5, "x86_64-pc-linux-gnu"); | - |
1239 | | - |
1240 | ((vv)->attributes |= (0x0000002)); | - |
1241 | }executed 5447 times by 1 test: end of block | 5447 |
1242 | | - |
1243 | | - |
1244 | | - |
1245 | | - |
1246 | void | - |
1247 | sh_set_lines_and_columns (lines, cols) | - |
1248 | int lines, cols; | - |
1249 | { | - |
1250 | char val[((sizeof (int) * 8 - (! ((int) 0 < (int) -1))) * 302 / 1000 + 1 + (! ((int) 0 < (int) -1))) + 1], *v; | - |
1251 | | - |
1252 | | - |
1253 | | - |
1254 | if (winsize_assignmentTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1255 | return; never executed: return; | 0 |
1256 | | - |
1257 | | - |
1258 | v = inttostr (lines, val, sizeof (val)); | - |
1259 | bind_variable ("LINES", v, 0); | - |
1260 | | - |
1261 | v = inttostr (cols, val, sizeof (val)); | - |
1262 | bind_variable ("COLUMNS", v, 0); | - |
1263 | } never executed: end of block | 0 |
1264 | void | - |
1265 | print_var_list (list) | - |
1266 | register SHELL_VAR **list; | - |
1267 | { | - |
1268 | register int i; | - |
1269 | register SHELL_VAR *var; | - |
1270 | | - |
1271 | for (i = 0; listTRUE | evaluated 429 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 423 times by 1 test | FALSE | evaluated 6 times by 1 test |
var = list[i])TRUE | evaluated 423 times by 1 test | FALSE | evaluated 6 times by 1 test |
; i++) | 0-429 |
1272 | if (((((TRUE | evaluated 417 times by 1 test | FALSE | evaluated 6 times by 1 test |
var)->attributes) & (0x0001000))) == 0TRUE | evaluated 417 times by 1 test | FALSE | evaluated 6 times by 1 test |
) | 6-417 |
1273 | print_assignment (var);executed 417 times by 1 test: print_assignment (var); | 417 |
1274 | }executed 6 times by 1 test: end of block | 6 |
1275 | | - |
1276 | | - |
1277 | | - |
1278 | void | - |
1279 | print_func_list (list) | - |
1280 | register SHELL_VAR **list; | - |
1281 | { | - |
1282 | register int i; | - |
1283 | register SHELL_VAR *var; | - |
1284 | | - |
1285 | for (i = 0; listTRUE | evaluated 12 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 8 times by 1 test | FALSE | evaluated 4 times by 1 test |
var = list[i])TRUE | evaluated 8 times by 1 test | FALSE | evaluated 4 times by 1 test |
; i++) | 0-12 |
1286 | { | - |
1287 | printf ("%s ", var->name); | - |
1288 | print_var_function (var); | - |
1289 | printf ("\n"); | - |
1290 | }executed 8 times by 1 test: end of block | 8 |
1291 | }executed 4 times by 1 test: end of block | 4 |
1292 | | - |
1293 | | - |
1294 | | - |
1295 | | - |
1296 | void | - |
1297 | print_assignment (var) | - |
1298 | SHELL_VAR *var; | - |
1299 | { | - |
1300 | if (((TRUE | evaluated 66 times by 1 test | FALSE | evaluated 357 times by 1 test |
var)->value != 0) == 0TRUE | evaluated 66 times by 1 test | FALSE | evaluated 357 times by 1 test |
) | 66-357 |
1301 | return;executed 66 times by 1 test: return; | 66 |
1302 | | - |
1303 | if (((((TRUE | never evaluated | FALSE | evaluated 357 times by 1 test |
var)->attributes) & (0x0000008)))TRUE | never evaluated | FALSE | evaluated 357 times by 1 test |
) | 0-357 |
1304 | { | - |
1305 | printf ("%s", var->name); | - |
1306 | print_var_function (var); | - |
1307 | printf ("\n"); | - |
1308 | } never executed: end of block | 0 |
1309 | | - |
1310 | else if (((((TRUE | evaluated 51 times by 1 test | FALSE | evaluated 306 times by 1 test |
var)->attributes) & (0x0000004)))TRUE | evaluated 51 times by 1 test | FALSE | evaluated 306 times by 1 test |
) | 51-306 |
1311 | print_array_assignment (var, 0);executed 51 times by 1 test: print_array_assignment (var, 0); | 51 |
1312 | else if (((((TRUE | evaluated 14 times by 1 test | FALSE | evaluated 292 times by 1 test |
var)->attributes) & (0x0000040)))TRUE | evaluated 14 times by 1 test | FALSE | evaluated 292 times by 1 test |
) | 14-292 |
1313 | print_assoc_assignment (var, 0);executed 14 times by 1 test: print_assoc_assignment (var, 0); | 14 |
1314 | | - |
1315 | else | - |
1316 | { | - |
1317 | printf ("%s=", var->name); | - |
1318 | print_var_value (var, 1); | - |
1319 | printf ("\n"); | - |
1320 | }executed 292 times by 1 test: end of block | 292 |
1321 | } | - |
1322 | | - |
1323 | | - |
1324 | | - |
1325 | | - |
1326 | | - |
1327 | void | - |
1328 | print_var_value (var, quote) | - |
1329 | SHELL_VAR *var; | - |
1330 | int quote; | - |
1331 | { | - |
1332 | char *t; | - |
1333 | | - |
1334 | if (((TRUE | never evaluated | FALSE | evaluated 292 times by 1 test |
var)->value != 0) == 0TRUE | never evaluated | FALSE | evaluated 292 times by 1 test |
) | 0-292 |
1335 | return; never executed: return; | 0 |
1336 | | - |
1337 | if (quoteTRUE | evaluated 292 times by 1 test | FALSE | never evaluated |
&& posixly_correct == 0TRUE | evaluated 292 times by 1 test | FALSE | never evaluated |
&& ansic_shouldquote (((var)->value))TRUE | evaluated 10 times by 1 test | FALSE | evaluated 282 times by 1 test |
) | 0-292 |
1338 | { | - |
1339 | t = ansic_quote (((var)->value), 0, (int *)0); | - |
1340 | printf ("%s", t); | - |
1341 | sh_xfree((t), "variables.c", 1080); | - |
1342 | }executed 10 times by 1 test: end of block | 10 |
1343 | else if (quoteTRUE | evaluated 282 times by 1 test | FALSE | never evaluated |
&& sh_contains_shell_metas (((var)->value))TRUE | evaluated 24 times by 1 test | FALSE | evaluated 258 times by 1 test |
) | 0-282 |
1344 | { | - |
1345 | t = sh_single_quote (((var)->value)); | - |
1346 | printf ("%s", t); | - |
1347 | sh_xfree((t), "variables.c", 1086); | - |
1348 | }executed 24 times by 1 test: end of block | 24 |
1349 | else | - |
1350 | printf ("%s", ((var)->value));executed 258 times by 1 test: printf ("%s", ((var)->value)); | 258 |
1351 | } | - |
1352 | | - |
1353 | | - |
1354 | | - |
1355 | void | - |
1356 | print_var_function (var) | - |
1357 | SHELL_VAR *var; | - |
1358 | { | - |
1359 | char *x; | - |
1360 | | - |
1361 | if (((((TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
var)->attributes) & (0x0000008)))TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
&& ((TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
var)->value != 0)TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
) | 0-8 |
1362 | { | - |
1363 | x = named_function_string ((char *) | - |
1364 | ((void *)0) | - |
1365 | , (COMMAND *)((var)->value), 0x01|0x02); | - |
1366 | printf ("%s", x); | - |
1367 | }executed 8 times by 1 test: end of block | 8 |
1368 | }executed 8 times by 1 test: end of block | 8 |
1369 | static SHELL_VAR * | - |
1370 | null_assign (self, value, unused, key) | - |
1371 | SHELL_VAR *self; | - |
1372 | char *value; | - |
1373 | arrayind_t unused; | - |
1374 | char *key; | - |
1375 | { | - |
1376 | return never executed: return (self); (self);never executed: return (self); | 0 |
1377 | } | - |
1378 | | - |
1379 | | - |
1380 | static SHELL_VAR * | - |
1381 | null_array_assign (self, value, ind, key) | - |
1382 | SHELL_VAR *self; | - |
1383 | char *value; | - |
1384 | arrayind_t ind; | - |
1385 | char *key; | - |
1386 | { | - |
1387 | returnexecuted 4 times by 1 test: return (self); (self);executed 4 times by 1 test: return (self); | 4 |
1388 | } | - |
1389 | | - |
1390 | | - |
1391 | | - |
1392 | | - |
1393 | static SHELL_VAR * | - |
1394 | get_self (self) | - |
1395 | SHELL_VAR *self; | - |
1396 | { | - |
1397 | returnexecuted 3319909 times by 1 test: return (self); (self);executed 3319909 times by 1 test: return (self); | 3319909 |
1398 | } | - |
1399 | | - |
1400 | | - |
1401 | | - |
1402 | | - |
1403 | static SHELL_VAR * | - |
1404 | init_dynamic_array_var (name, getfunc, setfunc, attrs) | - |
1405 | char *name; | - |
1406 | sh_var_value_func_t *getfunc; | - |
1407 | sh_var_assign_func_t *setfunc; | - |
1408 | int attrs; | - |
1409 | { | - |
1410 | SHELL_VAR *v; | - |
1411 | | - |
1412 | v = find_variable (name); | - |
1413 | if (vTRUE | never evaluated | FALSE | evaluated 32682 times by 1 test |
) | 0-32682 |
1414 | return never executed: return (v); (v);never executed: return (v); | 0 |
1415 | do { v = make_new_array_variable (name); v->dynamic_value = getfunc; v->assign_func = setfunc; } while (0); | - |
1416 | if (attrsTRUE | evaluated 27235 times by 1 test | FALSE | evaluated 5447 times by 1 test |
) | 5447-27235 |
1417 | ((executed 27235 times by 1 test: ((v)->attributes |= (attrs)); v)->attributes |= (attrs));executed 27235 times by 1 test: ((v)->attributes |= (attrs)); | 27235 |
1418 | returnexecuted 32682 times by 1 test: return v; v;executed 32682 times by 1 test: return v; | 32682 |
1419 | } | - |
1420 | | - |
1421 | static SHELL_VAR * | - |
1422 | init_dynamic_assoc_var (name, getfunc, setfunc, attrs) | - |
1423 | char *name; | - |
1424 | sh_var_value_func_t *getfunc; | - |
1425 | sh_var_assign_func_t *setfunc; | - |
1426 | int attrs; | - |
1427 | { | - |
1428 | SHELL_VAR *v; | - |
1429 | | - |
1430 | v = find_variable (name); | - |
1431 | if (vTRUE | never evaluated | FALSE | evaluated 10894 times by 1 test |
) | 0-10894 |
1432 | return never executed: return (v); (v);never executed: return (v); | 0 |
1433 | do { v = make_new_assoc_variable (name); v->dynamic_value = getfunc; v->assign_func = setfunc; } while (0); | - |
1434 | if (attrsTRUE | evaluated 10894 times by 1 test | FALSE | never evaluated |
) | 0-10894 |
1435 | ((executed 10894 times by 1 test: ((v)->attributes |= (attrs)); v)->attributes |= (attrs));executed 10894 times by 1 test: ((v)->attributes |= (attrs)); | 10894 |
1436 | returnexecuted 10894 times by 1 test: return v; v;executed 10894 times by 1 test: return v; | 10894 |
1437 | } | - |
1438 | | - |
1439 | | - |
1440 | | - |
1441 | | - |
1442 | | - |
1443 | static intmax_t seconds_value_assigned; | - |
1444 | | - |
1445 | static SHELL_VAR * | - |
1446 | assign_seconds (self, value, unused, key) | - |
1447 | SHELL_VAR *self; | - |
1448 | char *value; | - |
1449 | arrayind_t unused; | - |
1450 | char *key; | - |
1451 | { | - |
1452 | if (legal_number (value, &seconds_value_assigned) == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1453 | seconds_value_assigned = 0; never executed: seconds_value_assigned = 0; | 0 |
1454 | shell_start_time = ((time_t) time ((time_t *) 0)); | - |
1455 | return never executed: return (self); (self);never executed: return (self); | 0 |
1456 | } | - |
1457 | | - |
1458 | static SHELL_VAR * | - |
1459 | get_seconds (var) | - |
1460 | SHELL_VAR *var; | - |
1461 | { | - |
1462 | time_t time_since_start; | - |
1463 | char *p; | - |
1464 | | - |
1465 | time_since_start = ((time_t) time ((time_t *) 0)) - shell_start_time; | - |
1466 | p = itos(seconds_value_assigned + time_since_start); | - |
1467 | | - |
1468 | do { if (((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1 time by 1 test |
var)->value)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1 time by 1 test |
) sh_xfree((((var)->value)), "variables.c", 1272);executed 1 time by 1 test: sh_xfree((((var)->value)), "variables.c", 1272); } while (0); | 1 |
1469 | | - |
1470 | ((var)->attributes |= (0x0000010)); | - |
1471 | ((var)->value = (p)); | - |
1472 | returnexecuted 2 times by 1 test: return (var); (var);executed 2 times by 1 test: return (var); | 2 |
1473 | } | - |
1474 | | - |
1475 | static SHELL_VAR * | - |
1476 | init_seconds_var () | - |
1477 | { | - |
1478 | SHELL_VAR *v; | - |
1479 | | - |
1480 | v = find_variable ("SECONDS"); | - |
1481 | if (vTRUE | never evaluated | FALSE | evaluated 5447 times by 1 test |
) | 0-5447 |
1482 | { | - |
1483 | if (legal_number (((v)->value), &seconds_value_assigned) == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1484 | seconds_value_assigned = 0; never executed: seconds_value_assigned = 0; | 0 |
1485 | } never executed: end of block | 0 |
1486 | do { v = bind_variable ("SECONDS", ((v ? ((v)->value) : (char *) | - |
1487 | ((void *)0) | - |
1488 | )), 0); v->dynamic_value = get_seconds; v->assign_func = assign_seconds; } while (0); | - |
1489 | returnexecuted 5447 times by 1 test: return v; v;executed 5447 times by 1 test: return v; | 5447 |
1490 | } | - |
1491 | | - |
1492 | | - |
1493 | static unsigned long rseed = 1; | - |
1494 | static int last_random_value; | - |
1495 | static int seeded_subshell = 0; | - |
1496 | | - |
1497 | | - |
1498 | | - |
1499 | | - |
1500 | | - |
1501 | | - |
1502 | static int | - |
1503 | brand () | - |
1504 | { | - |
1505 | | - |
1506 | | - |
1507 | | - |
1508 | long h, l; | - |
1509 | | - |
1510 | | - |
1511 | if (rseed == 0TRUE | never evaluated | FALSE | evaluated 20021 times by 1 test |
) | 0-20021 |
1512 | rseed = 123459876; never executed: rseed = 123459876; | 0 |
1513 | h = rseed / 127773; | - |
1514 | l = rseed % 127773; | - |
1515 | rseed = 16807 * l - 2836 * h; | - |
1516 | | - |
1517 | | - |
1518 | | - |
1519 | | - |
1520 | returnexecuted 20021 times by 1 test: return ((unsigned int)(rseed & 32767)); ((unsigned int)(rseed & 32767));executed 20021 times by 1 test: return ((unsigned int)(rseed & 32767)); | 20021 |
1521 | } | - |
1522 | | - |
1523 | | - |
1524 | static void | - |
1525 | sbrand (seed) | - |
1526 | unsigned long seed; | - |
1527 | { | - |
1528 | rseed = seed; | - |
1529 | last_random_value = 0; | - |
1530 | }executed 5452 times by 1 test: end of block | 5452 |
1531 | | - |
1532 | static void | - |
1533 | seedrand () | - |
1534 | { | - |
1535 | struct timeval tv; | - |
1536 | | - |
1537 | gettimeofday (&tv, | - |
1538 | ((void *)0) | - |
1539 | ); | - |
1540 | sbrand (tv.tv_sec ^ tv.tv_usec ^ getpid ()); | - |
1541 | }executed 5448 times by 1 test: end of block | 5448 |
1542 | | - |
1543 | static SHELL_VAR * | - |
1544 | assign_random (self, value, unused, key) | - |
1545 | SHELL_VAR *self; | - |
1546 | char *value; | - |
1547 | arrayind_t unused; | - |
1548 | char *key; | - |
1549 | { | - |
1550 | sbrand (strtoul (value, (char **) | - |
1551 | ((void *)0) | - |
1552 | , 10)); | - |
1553 | if (subshell_environmentTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
) | 0-4 |
1554 | seeded_subshell = getpid (); never executed: seeded_subshell = getpid (); | 0 |
1555 | returnexecuted 4 times by 1 test: return (self); (self);executed 4 times by 1 test: return (self); | 4 |
1556 | } | - |
1557 | | - |
1558 | int | - |
1559 | get_random_number () | - |
1560 | { | - |
1561 | int rv, pid; | - |
1562 | | - |
1563 | | - |
1564 | pid = getpid (); | - |
1565 | if (subshell_environmentTRUE | evaluated 1 time by 1 test | FALSE | evaluated 20020 times by 1 test |
&& seeded_subshell != pidTRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) | 0-20020 |
1566 | { | - |
1567 | seedrand (); | - |
1568 | seeded_subshell = pid; | - |
1569 | }executed 1 time by 1 test: end of block | 1 |
1570 | | - |
1571 | do | - |
1572 | rv = brand ();executed 20021 times by 1 test: rv = brand (); | 20021 |
1573 | while (rv == last_random_valueTRUE | never evaluated | FALSE | evaluated 20021 times by 1 test |
); | 0-20021 |
1574 | returnexecuted 20021 times by 1 test: return rv; rv;executed 20021 times by 1 test: return rv; | 20021 |
1575 | } | - |
1576 | | - |
1577 | static SHELL_VAR * | - |
1578 | get_random (var) | - |
1579 | SHELL_VAR *var; | - |
1580 | { | - |
1581 | int rv; | - |
1582 | char *p; | - |
1583 | | - |
1584 | rv = get_random_number (); | - |
1585 | last_random_value = rv; | - |
1586 | p = itos (rv); | - |
1587 | | - |
1588 | do { if (((TRUE | evaluated 20012 times by 1 test | FALSE | evaluated 9 times by 1 test |
var)->value)TRUE | evaluated 20012 times by 1 test | FALSE | evaluated 9 times by 1 test |
) sh_xfree((((var)->value)), "variables.c", 1386);executed 20012 times by 1 test: sh_xfree((((var)->value)), "variables.c", 1386); } while (0); | 9-20012 |
1589 | | - |
1590 | ((var)->attributes |= (0x0000010)); | - |
1591 | ((var)->value = (p)); | - |
1592 | returnexecuted 20021 times by 1 test: return (var); (var);executed 20021 times by 1 test: return (var); | 20021 |
1593 | } | - |
1594 | | - |
1595 | static SHELL_VAR * | - |
1596 | assign_lineno (var, value, unused, key) | - |
1597 | SHELL_VAR *var; | - |
1598 | char *value; | - |
1599 | arrayind_t unused; | - |
1600 | char *key; | - |
1601 | { | - |
1602 | intmax_t new_value; | - |
1603 | | - |
1604 | if (value == 0TRUE | never evaluated | FALSE | never evaluated |
|| *TRUE | never evaluated | FALSE | never evaluated |
value == '\0'TRUE | never evaluated | FALSE | never evaluated |
|| legal_number (value, &new_value) == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1605 | new_value = 0; never executed: new_value = 0; | 0 |
1606 | line_number = line_number_base = new_value; | - |
1607 | return never executed: return var; var;never executed: return var; | 0 |
1608 | } | - |
1609 | | - |
1610 | | - |
1611 | static SHELL_VAR * | - |
1612 | get_lineno (var) | - |
1613 | SHELL_VAR *var; | - |
1614 | { | - |
1615 | char *p; | - |
1616 | int ln; | - |
1617 | | - |
1618 | ln = executing_line_number (); | - |
1619 | p = itos (ln); | - |
1620 | do { if (((TRUE | evaluated 2243 times by 1 test | FALSE | evaluated 31 times by 1 test |
var)->value)TRUE | evaluated 2243 times by 1 test | FALSE | evaluated 31 times by 1 test |
) sh_xfree((((var)->value)), "variables.c", 1418);executed 2243 times by 1 test: sh_xfree((((var)->value)), "variables.c", 1418); } while (0); | 31-2243 |
1621 | ((var)->value = (p)); | - |
1622 | returnexecuted 2274 times by 1 test: return (var); (var);executed 2274 times by 1 test: return (var); | 2274 |
1623 | } | - |
1624 | | - |
1625 | static SHELL_VAR * | - |
1626 | assign_subshell (var, value, unused, key) | - |
1627 | SHELL_VAR *var; | - |
1628 | char *value; | - |
1629 | arrayind_t unused; | - |
1630 | char *key; | - |
1631 | { | - |
1632 | intmax_t new_value; | - |
1633 | | - |
1634 | if (value == 0TRUE | never evaluated | FALSE | never evaluated |
|| *TRUE | never evaluated | FALSE | never evaluated |
value == '\0'TRUE | never evaluated | FALSE | never evaluated |
|| legal_number (value, &new_value) == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1635 | new_value = 0; never executed: new_value = 0; | 0 |
1636 | subshell_level = new_value; | - |
1637 | return never executed: return var; var;never executed: return var; | 0 |
1638 | } | - |
1639 | | - |
1640 | static SHELL_VAR * | - |
1641 | get_subshell (var) | - |
1642 | SHELL_VAR *var; | - |
1643 | { | - |
1644 | char *p; | - |
1645 | | - |
1646 | p = itos (subshell_level); | - |
1647 | do { if (((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 4 times by 1 test |
var)->value)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 4 times by 1 test |
) sh_xfree((((var)->value)), "variables.c", 1445);executed 1 time by 1 test: sh_xfree((((var)->value)), "variables.c", 1445); } while (0); | 1-4 |
1648 | ((var)->value = (p)); | - |
1649 | returnexecuted 5 times by 1 test: return (var); (var);executed 5 times by 1 test: return (var); | 5 |
1650 | } | - |
1651 | | - |
1652 | static SHELL_VAR * | - |
1653 | get_epochseconds (var) | - |
1654 | SHELL_VAR *var; | - |
1655 | { | - |
1656 | intmax_t now; | - |
1657 | char *p; | - |
1658 | | - |
1659 | now = ((time_t) time ((time_t *) 0)); | - |
1660 | p = itos (now); | - |
1661 | | - |
1662 | do { if (((TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
var)->value)TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
) sh_xfree((((var)->value)), "variables.c", 1460);never executed: sh_xfree((((var)->value)), "variables.c", 1460); } while (0); | 0-1 |
1663 | ((var)->value = (p)); | - |
1664 | returnexecuted 1 time by 1 test: return (var); (var);executed 1 time by 1 test: return (var); | 1 |
1665 | } | - |
1666 | | - |
1667 | static SHELL_VAR * | - |
1668 | get_epochrealtime (var) | - |
1669 | SHELL_VAR *var; | - |
1670 | { | - |
1671 | char buf[32]; | - |
1672 | char *p; | - |
1673 | struct timeval tv; | - |
1674 | | - |
1675 | gettimeofday (&tv, | - |
1676 | ((void *)0) | - |
1677 | ); | - |
1678 | snprintf (buf, sizeof (buf), "%u%c%06u", (unsigned)tv.tv_sec, | - |
1679 | locale_decpoint (), | - |
1680 | (unsigned)tv.tv_usec); | - |
1681 | | - |
1682 | p = (char *)strcpy (sh_xmalloc((1 + strlen (buf)), "variables.c", 1478), (buf)); | - |
1683 | do { if (((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1 time by 1 test |
var)->value)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1 time by 1 test |
) sh_xfree((((var)->value)), "variables.c", 1479);executed 1 time by 1 test: sh_xfree((((var)->value)), "variables.c", 1479); } while (0); | 1 |
1684 | ((var)->value = (p)); | - |
1685 | returnexecuted 2 times by 1 test: return (var); (var);executed 2 times by 1 test: return (var); | 2 |
1686 | } | - |
1687 | | - |
1688 | static SHELL_VAR * | - |
1689 | get_bashpid (var) | - |
1690 | SHELL_VAR *var; | - |
1691 | { | - |
1692 | int pid; | - |
1693 | char *p; | - |
1694 | | - |
1695 | pid = getpid (); | - |
1696 | p = itos (pid); | - |
1697 | | - |
1698 | do { if (((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 8 times by 1 test |
var)->value)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 8 times by 1 test |
) sh_xfree((((var)->value)), "variables.c", 1494);executed 1 time by 1 test: sh_xfree((((var)->value)), "variables.c", 1494); } while (0); | 1-8 |
1699 | ((var)->attributes |= (0x0000010)); | - |
1700 | ((var)->value = (p)); | - |
1701 | returnexecuted 9 times by 1 test: return (var); (var);executed 9 times by 1 test: return (var); | 9 |
1702 | } | - |
1703 | | - |
1704 | static SHELL_VAR * | - |
1705 | get_bash_argv0 (var) | - |
1706 | SHELL_VAR *var; | - |
1707 | { | - |
1708 | char *p; | - |
1709 | | - |
1710 | p = (char *)strcpy (sh_xmalloc((1 + strlen (dollar_vars[0])), "variables.c", 1506), (dollar_vars[0])); | - |
1711 | do { if (((TRUE | never evaluated | FALSE | never evaluated |
var)->value)TRUE | never evaluated | FALSE | never evaluated |
) sh_xfree((((var)->value)), "variables.c", 1507);never executed: sh_xfree((((var)->value)), "variables.c", 1507); } while (0); | 0 |
1712 | ((var)->value = (p)); | - |
1713 | return never executed: return var; var;never executed: return var; | 0 |
1714 | } | - |
1715 | | - |
1716 | static char *static_shell_name = 0; | - |
1717 | | - |
1718 | static SHELL_VAR * | - |
1719 | assign_bash_argv0 (var, value, unused, key) | - |
1720 | SHELL_VAR *var; | - |
1721 | char *value; | - |
1722 | arrayind_t unused; | - |
1723 | char *key; | - |
1724 | { | - |
1725 | size_t vlen; | - |
1726 | | - |
1727 | if (value == 0TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
1728 | return never executed: return var; var;never executed: return var; | 0 |
1729 | | - |
1730 | do { if (dollar_vars[0]TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) sh_xfree((dollar_vars[0]), "variables.c", 1526);executed 2 times by 1 test: sh_xfree((dollar_vars[0]), "variables.c", 1526); } while (0); | 0-2 |
1731 | dollar_vars[0] = (char *)strcpy (sh_xmalloc((1 + strlen (value)), "variables.c", 1527), (value)); | - |
1732 | | - |
1733 | | - |
1734 | vlen = (((TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
value)TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
value)[0]TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) ? ((TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
value)[1]TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
? ((TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
value)[2]TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
? strlen(value) : 2) : 1) : 0); | 0-2 |
1735 | static_shell_name = sh_xrealloc((static_shell_name), (vlen + 1), "variables.c", 1531); | - |
1736 | strcpy (static_shell_name, value); | - |
1737 | | - |
1738 | shell_name = static_shell_name; | - |
1739 | returnexecuted 2 times by 1 test: return var; var;executed 2 times by 1 test: return var; | 2 |
1740 | } | - |
1741 | | - |
1742 | static SHELL_VAR * | - |
1743 | get_bash_command (var) | - |
1744 | SHELL_VAR *var; | - |
1745 | { | - |
1746 | char *p; | - |
1747 | | - |
1748 | if (the_printed_command_except_trapTRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) | 0-1 |
1749 | p = (char *)strcpy (sh_xmalloc((1 + strlen (the_printed_command_except_trap)), "variables.c", 1545), (the_printed_command_except_trap));executed 1 time by 1 test: p = (char *)strcpy (sh_xmalloc((1 + strlen (the_printed_command_except_trap)), "variables.c", 1545), (the_printed_command_except_trap)); | 1 |
1750 | else | - |
1751 | { | - |
1752 | p = (char *)sh_xmalloc((1), "variables.c", 1548); | - |
1753 | p[0] = '\0'; | - |
1754 | } never executed: end of block | 0 |
1755 | do { if (((TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
var)->value)TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
) sh_xfree((((var)->value)), "variables.c", 1551);never executed: sh_xfree((((var)->value)), "variables.c", 1551); } while (0); | 0-1 |
1756 | ((var)->value = (p)); | - |
1757 | returnexecuted 1 time by 1 test: return (var); (var);executed 1 time by 1 test: return (var); | 1 |
1758 | } | - |
1759 | | - |
1760 | | - |
1761 | static SHELL_VAR * | - |
1762 | get_histcmd (var) | - |
1763 | SHELL_VAR *var; | - |
1764 | { | - |
1765 | char *p; | - |
1766 | | - |
1767 | p = itos (history_number ()); | - |
1768 | do { if (((TRUE | never evaluated | FALSE | never evaluated |
var)->value)TRUE | never evaluated | FALSE | never evaluated |
) sh_xfree((((var)->value)), "variables.c", 1564);never executed: sh_xfree((((var)->value)), "variables.c", 1564); } while (0); | 0 |
1769 | ((var)->value = (p)); | - |
1770 | return never executed: return (var); (var);never executed: return (var); | 0 |
1771 | } | - |
1772 | | - |
1773 | | - |
1774 | | - |
1775 | | - |
1776 | static SHELL_VAR * | - |
1777 | get_comp_wordbreaks (var) | - |
1778 | SHELL_VAR *var; | - |
1779 | { | - |
1780 | | - |
1781 | if (rl_completer_word_break_characters == 0TRUE | never evaluated | FALSE | never evaluated |
&& bash_readline_initialized == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1782 | enable_hostname_completion (perform_hostname_completion); never executed: enable_hostname_completion (perform_hostname_completion); | 0 |
1783 | | - |
1784 | do { if (((TRUE | never evaluated | FALSE | never evaluated |
var)->value)TRUE | never evaluated | FALSE | never evaluated |
) sh_xfree((((var)->value)), "variables.c", 1580);never executed: sh_xfree((((var)->value)), "variables.c", 1580); } while (0); | 0 |
1785 | ((var)->value = ((char *)strcpy (sh_xmalloc((1 + strlen (rl_completer_word_break_characters)), "variables.c", 1581), (rl_completer_word_break_characters)))); | - |
1786 | | - |
1787 | return never executed: return (var); (var);never executed: return (var); | 0 |
1788 | } | - |
1789 | | - |
1790 | | - |
1791 | | - |
1792 | static SHELL_VAR * | - |
1793 | assign_comp_wordbreaks (self, value, unused, key) | - |
1794 | SHELL_VAR *self; | - |
1795 | char *value; | - |
1796 | arrayind_t unused; | - |
1797 | char *key; | - |
1798 | { | - |
1799 | if (rl_completer_word_break_charactersTRUE | never evaluated | FALSE | never evaluated |
&& | 0 |
1800 | rl_completer_word_break_characters != rl_basic_word_break_charactersTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1801 | sh_xfree((rl_completer_word_break_characters), "variables.c", 1597); never executed: sh_xfree((rl_completer_word_break_characters), "variables.c", 1597); | 0 |
1802 | | - |
1803 | rl_completer_word_break_characters = (char *)strcpy (sh_xmalloc((1 + strlen (value)), "variables.c", 1599), (value)); | - |
1804 | return never executed: return self; self;never executed: return self; | 0 |
1805 | } | - |
1806 | | - |
1807 | | - |
1808 | | - |
1809 | static SHELL_VAR * | - |
1810 | assign_dirstack (self, value, ind, key) | - |
1811 | SHELL_VAR *self; | - |
1812 | char *value; | - |
1813 | arrayind_t ind; | - |
1814 | char *key; | - |
1815 | { | - |
1816 | set_dirstack_element (ind, 1, value); | - |
1817 | returnexecuted 1 time by 1 test: return self; self;executed 1 time by 1 test: return self; | 1 |
1818 | } | - |
1819 | | - |
1820 | static SHELL_VAR * | - |
1821 | get_dirstack (self) | - |
1822 | SHELL_VAR *self; | - |
1823 | { | - |
1824 | ARRAY *a; | - |
1825 | WORD_LIST *l; | - |
1826 | | - |
1827 | l = get_directory_stack (0); | - |
1828 | a = array_from_word_list (l); | - |
1829 | array_dispose ((ARRAY *)((self)->value)); | - |
1830 | dispose_words (l); | - |
1831 | ((self)->value = (char *)(a)); | - |
1832 | returnexecuted 27 times by 1 test: return self; self;executed 27 times by 1 test: return self; | 27 |
1833 | } | - |
1834 | | - |
1835 | | - |
1836 | | - |
1837 | | - |
1838 | | - |
1839 | static SHELL_VAR * | - |
1840 | get_groupset (self) | - |
1841 | SHELL_VAR *self; | - |
1842 | { | - |
1843 | register int i; | - |
1844 | int ng; | - |
1845 | ARRAY *a; | - |
1846 | static char **group_set = (char **) | - |
1847 | ((void *)0) | - |
1848 | ; | - |
1849 | | - |
1850 | if (group_set == 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5 times by 1 test |
) | 1-5 |
1851 | { | - |
1852 | group_set = get_group_list (&ng); | - |
1853 | a = (ARRAY *)((self)->value); | - |
1854 | for (i = 0; i < ngTRUE | evaluated 11 times by 1 test | FALSE | evaluated 1 time by 1 test |
; i++) | 1-11 |
1855 | array_insert (a, i, group_set[i]);executed 11 times by 1 test: array_insert (a, i, group_set[i]); | 11 |
1856 | }executed 1 time by 1 test: end of block | 1 |
1857 | returnexecuted 6 times by 1 test: return (self); (self);executed 6 times by 1 test: return (self); | 6 |
1858 | } | - |
1859 | | - |
1860 | static SHELL_VAR * | - |
1861 | build_hashcmd (self) | - |
1862 | SHELL_VAR *self; | - |
1863 | { | - |
1864 | HASH_TABLE *h; | - |
1865 | int i; | - |
1866 | char *k, *v; | - |
1867 | BUCKET_CONTENTS *item; | - |
1868 | | - |
1869 | h = (HASH_TABLE *)((self)->value); | - |
1870 | if (hTRUE | evaluated 10 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-10 |
1871 | assoc_dispose (h);executed 10 times by 1 test: assoc_dispose (h); | 10 |
1872 | | - |
1873 | if (hashed_filenames == 0TRUE | evaluated 2 times by 1 test | FALSE | evaluated 10 times by 1 test |
|| ((TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
hashed_filenames) ? (hashed_filenames)->nentries : 0) == 0TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
) | 0-10 |
1874 | { | - |
1875 | ((self)->value = ((char *) | - |
1876 | ((void *)0) | - |
1877 | )); | - |
1878 | returnexecuted 2 times by 1 test: return self; self;executed 2 times by 1 test: return self; | 2 |
1879 | } | - |
1880 | | - |
1881 | h = (hash_create((hashed_filenames->nbuckets))); | - |
1882 | for (i = 0; i < hashed_filenames->nbucketsTRUE | evaluated 640 times by 1 test | FALSE | evaluated 10 times by 1 test |
; i++) | 10-640 |
1883 | { | - |
1884 | for (item = ((hashed_filenames && (i < hashed_filenames->nbuckets)) ? hashed_filenames->bucket_array[i] : (BUCKET_CONTENTS *) | - |
1885 | ((void *)0) | - |
1886 | ); itemTRUE | evaluated 30 times by 1 test | FALSE | evaluated 640 times by 1 test |
; item = item->next) | 30-640 |
1887 | { | - |
1888 | k = (char *)strcpy (sh_xmalloc((1 + strlen (item->key)), "variables.c", 1678), (item->key)); | - |
1889 | v = ((PATH_DATA *)(item)->data)->path; | - |
1890 | assoc_insert (h, k, v); | - |
1891 | }executed 30 times by 1 test: end of block | 30 |
1892 | }executed 640 times by 1 test: end of block | 640 |
1893 | | - |
1894 | ((self)->value = ((char *)h)); | - |
1895 | returnexecuted 10 times by 1 test: return self; self;executed 10 times by 1 test: return self; | 10 |
1896 | } | - |
1897 | | - |
1898 | static SHELL_VAR * | - |
1899 | get_hashcmd (self) | - |
1900 | SHELL_VAR *self; | - |
1901 | { | - |
1902 | build_hashcmd (self); | - |
1903 | returnexecuted 10 times by 1 test: return (self); (self);executed 10 times by 1 test: return (self); | 10 |
1904 | } | - |
1905 | | - |
1906 | static SHELL_VAR * | - |
1907 | assign_hashcmd (self, value, ind, key) | - |
1908 | SHELL_VAR *self; | - |
1909 | char *value; | - |
1910 | arrayind_t ind; | - |
1911 | char *key; | - |
1912 | { | - |
1913 | | - |
1914 | char *full_path; | - |
1915 | | - |
1916 | if (restrictedTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
1917 | { | - |
1918 | if ( | - |
1919 | (TRUE | never evaluated | FALSE | never evaluated |
__extension__ (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1920 | '/'TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1921 | )TRUE | never evaluated | FALSE | never evaluated |
&& !__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1922 | valueTRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1923 | )TRUE | never evaluated | FALSE | never evaluated |
&& (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1924 | '/'TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1925 | ) == '\0'TRUE | never evaluated | FALSE | never evaluated |
? (char *) __rawmemchr (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1926 | valueTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1927 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1928 | '/'TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1929 | ) : __builtin_strchr (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1930 | valueTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1931 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1932 | '/'TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1933 | )))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1934 | ) | - |
1935 | { | - |
1936 | sh_restricted (value); | - |
1937 | return never executed: return (SHELL_VAR *) ((void *)0) ; (SHELL_VAR *)never executed: return (SHELL_VAR *) ((void *)0) ; | 0 |
1938 | ((void *)0) never executed: return (SHELL_VAR *) ((void *)0) ; | 0 |
1939 | ; never executed: return (SHELL_VAR *) ((void *)0) ; | 0 |
1940 | } | - |
1941 | | - |
1942 | | - |
1943 | full_path = find_user_command (value); | - |
1944 | if (full_path == 0TRUE | never evaluated | FALSE | never evaluated |
|| *TRUE | never evaluated | FALSE | never evaluated |
full_path == 0TRUE | never evaluated | FALSE | never evaluated |
|| executable_file (full_path) == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1945 | { | - |
1946 | sh_notfound (value); | - |
1947 | sh_xfree((full_path), "variables.c", 1719); | - |
1948 | return never executed: return ((SHELL_VAR *) ((void *)0) ); ((SHELL_VAR *)never executed: return ((SHELL_VAR *) ((void *)0) ); | 0 |
1949 | ((void *)0) never executed: return ((SHELL_VAR *) ((void *)0) ); | 0 |
1950 | ); never executed: return ((SHELL_VAR *) ((void *)0) ); | 0 |
1951 | } | - |
1952 | sh_xfree((full_path), "variables.c", 1722); | - |
1953 | } never executed: end of block | 0 |
1954 | | - |
1955 | phash_insert (key, value, 0, 0); | - |
1956 | returnexecuted 2 times by 1 test: return (build_hashcmd (self)); (build_hashcmd (self));executed 2 times by 1 test: return (build_hashcmd (self)); | 2 |
1957 | } | - |
1958 | | - |
1959 | | - |
1960 | static SHELL_VAR * | - |
1961 | build_aliasvar (self) | - |
1962 | SHELL_VAR *self; | - |
1963 | { | - |
1964 | HASH_TABLE *h; | - |
1965 | int i; | - |
1966 | char *k, *v; | - |
1967 | BUCKET_CONTENTS *item; | - |
1968 | | - |
1969 | h = (HASH_TABLE *)((self)->value); | - |
1970 | if (hTRUE | evaluated 10 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-10 |
1971 | assoc_dispose (h);executed 10 times by 1 test: assoc_dispose (h); | 10 |
1972 | | - |
1973 | if (aliases == 0TRUE | evaluated 2 times by 1 test | FALSE | evaluated 10 times by 1 test |
|| ((TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
aliases) ? (aliases)->nentries : 0) == 0TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
) | 0-10 |
1974 | { | - |
1975 | ((self)->value = ((char *) | - |
1976 | ((void *)0) | - |
1977 | )); | - |
1978 | returnexecuted 2 times by 1 test: return self; self;executed 2 times by 1 test: return self; | 2 |
1979 | } | - |
1980 | | - |
1981 | h = (hash_create((aliases->nbuckets))); | - |
1982 | for (i = 0; i < aliases->nbucketsTRUE | evaluated 640 times by 1 test | FALSE | evaluated 10 times by 1 test |
; i++) | 10-640 |
1983 | { | - |
1984 | for (item = ((aliases && (i < aliases->nbuckets)) ? aliases->bucket_array[i] : (BUCKET_CONTENTS *) | - |
1985 | ((void *)0) | - |
1986 | ); itemTRUE | evaluated 30 times by 1 test | FALSE | evaluated 640 times by 1 test |
; item = item->next) | 30-640 |
1987 | { | - |
1988 | k = (char *)strcpy (sh_xmalloc((1 + strlen (item->key)), "variables.c", 1754), (item->key)); | - |
1989 | v = ((alias_t *)(item->data))->value; | - |
1990 | assoc_insert (h, k, v); | - |
1991 | }executed 30 times by 1 test: end of block | 30 |
1992 | }executed 640 times by 1 test: end of block | 640 |
1993 | | - |
1994 | ((self)->value = ((char *)h)); | - |
1995 | returnexecuted 10 times by 1 test: return self; self;executed 10 times by 1 test: return self; | 10 |
1996 | } | - |
1997 | | - |
1998 | static SHELL_VAR * | - |
1999 | get_aliasvar (self) | - |
2000 | SHELL_VAR *self; | - |
2001 | { | - |
2002 | build_aliasvar (self); | - |
2003 | returnexecuted 10 times by 1 test: return (self); (self);executed 10 times by 1 test: return (self); | 10 |
2004 | } | - |
2005 | | - |
2006 | static SHELL_VAR * | - |
2007 | assign_aliasvar (self, value, ind, key) | - |
2008 | SHELL_VAR *self; | - |
2009 | char *value; | - |
2010 | arrayind_t ind; | - |
2011 | char *key; | - |
2012 | { | - |
2013 | add_alias (key, value); | - |
2014 | returnexecuted 2 times by 1 test: return (build_aliasvar (self)); (build_aliasvar (self));executed 2 times by 1 test: return (build_aliasvar (self)); | 2 |
2015 | } | - |
2016 | | - |
2017 | | - |
2018 | | - |
2019 | | - |
2020 | | - |
2021 | | - |
2022 | static SHELL_VAR * | - |
2023 | get_funcname (self) | - |
2024 | SHELL_VAR *self; | - |
2025 | { | - |
2026 | returnexecuted 6553497 times by 1 test: return (self); (self);executed 6553497 times by 1 test: return (self); | 6553497 |
2027 | } | - |
2028 | | - |
2029 | void | - |
2030 | make_funcname_visible (on_or_off) | - |
2031 | int on_or_off; | - |
2032 | { | - |
2033 | SHELL_VAR *v; | - |
2034 | | - |
2035 | v = find_variable ("FUNCNAME"); | - |
2036 | if (v == 0TRUE | never evaluated | FALSE | evaluated 3264159 times by 1 test |
|| v->dynamic_value == 0TRUE | never evaluated | FALSE | evaluated 3264159 times by 1 test |
) | 0-3264159 |
2037 | return; never executed: return; | 0 |
2038 | | - |
2039 | if (on_or_offTRUE | evaluated 1640471 times by 1 test | FALSE | evaluated 1623688 times by 1 test |
) | 1623688-1640471 |
2040 | ((executed 1640471 times by 1 test: ((v)->attributes &= ~(0x0001000)); v)->attributes &= ~(0x0001000));executed 1640471 times by 1 test: ((v)->attributes &= ~(0x0001000)); | 1640471 |
2041 | else | - |
2042 | ((executed 1623688 times by 1 test: ((v)->attributes |= (0x0001000)); v)->attributes |= (0x0001000));executed 1623688 times by 1 test: ((v)->attributes |= (0x0001000)); | 1623688 |
2043 | } | - |
2044 | | - |
2045 | static SHELL_VAR * | - |
2046 | init_funcname_var () | - |
2047 | { | - |
2048 | SHELL_VAR *v; | - |
2049 | | - |
2050 | v = find_variable ("FUNCNAME"); | - |
2051 | if (vTRUE | never evaluated | FALSE | evaluated 5447 times by 1 test |
) | 0-5447 |
2052 | return never executed: return v; v;never executed: return v; | 0 |
2053 | | - |
2054 | do { v = make_new_array_variable ("FUNCNAME"); v->dynamic_value = get_funcname; v->assign_func = null_array_assign; } while (0); | - |
2055 | | - |
2056 | | - |
2057 | | - |
2058 | ((v)->attributes |= (0x0001000|0x0004000)); | - |
2059 | returnexecuted 5447 times by 1 test: return v; v;executed 5447 times by 1 test: return v; | 5447 |
2060 | } | - |
2061 | | - |
2062 | static void | - |
2063 | initialize_dynamic_variables () | - |
2064 | { | - |
2065 | SHELL_VAR *v; | - |
2066 | | - |
2067 | v = init_seconds_var (); | - |
2068 | | - |
2069 | do { v = bind_variable ("BASH_ARGV0", ((char *) | - |
2070 | ((void *)0) | - |
2071 | ), 0); v->dynamic_value = get_bash_argv0; v->assign_func = assign_bash_argv0; } while (0); | - |
2072 | | - |
2073 | do { v = bind_variable ("BASH_COMMAND", ((char *) | - |
2074 | ((void *)0) | - |
2075 | ), 0); v->dynamic_value = get_bash_command; v->assign_func = (sh_var_assign_func_t *) | - |
2076 | ((void *)0) | - |
2077 | ; } while (0); | - |
2078 | do { v = bind_variable ("BASH_SUBSHELL", ((char *) | - |
2079 | ((void *)0) | - |
2080 | ), 0); v->dynamic_value = get_subshell; v->assign_func = assign_subshell; } while (0); | - |
2081 | | - |
2082 | do { v = bind_variable ("RANDOM", ((char *) | - |
2083 | ((void *)0) | - |
2084 | ), 0); v->dynamic_value = get_random; v->assign_func = assign_random; } while (0); | - |
2085 | ((v)->attributes |= (0x0000010)); | - |
2086 | do { v = bind_variable ("LINENO", ((char *) | - |
2087 | ((void *)0) | - |
2088 | ), 0); v->dynamic_value = get_lineno; v->assign_func = assign_lineno; } while (0); | - |
2089 | ((v)->attributes |= (0x0000010|0x0040000)); | - |
2090 | | - |
2091 | do { v = bind_variable ("BASHPID", ((char *) | - |
2092 | ((void *)0) | - |
2093 | ), 0); v->dynamic_value = get_bashpid; v->assign_func = null_assign; } while (0); | - |
2094 | ((v)->attributes |= (0x0000010)); | - |
2095 | | - |
2096 | do { v = bind_variable ("EPOCHSECONDS", ((char *) | - |
2097 | ((void *)0) | - |
2098 | ), 0); v->dynamic_value = get_epochseconds; v->assign_func = null_assign; } while (0); | - |
2099 | ((v)->attributes |= (0x0040000)); | - |
2100 | do { v = bind_variable ("EPOCHREALTIME", ((char *) | - |
2101 | ((void *)0) | - |
2102 | ), 0); v->dynamic_value = get_epochrealtime; v->assign_func = null_assign; } while (0); | - |
2103 | ((v)->attributes |= (0x0040000)); | - |
2104 | | - |
2105 | | - |
2106 | do { v = bind_variable ("HISTCMD", ((char *) | - |
2107 | ((void *)0) | - |
2108 | ), 0); v->dynamic_value = get_histcmd; v->assign_func = (sh_var_assign_func_t *) | - |
2109 | ((void *)0) | - |
2110 | ; } while (0); | - |
2111 | ((v)->attributes |= (0x0000010)); | - |
2112 | | - |
2113 | | - |
2114 | | - |
2115 | do { v = bind_variable ("COMP_WORDBREAKS", ((char *) | - |
2116 | ((void *)0) | - |
2117 | ), 0); v->dynamic_value = get_comp_wordbreaks; v->assign_func = assign_comp_wordbreaks; } while (0); | - |
2118 | | - |
2119 | | - |
2120 | | - |
2121 | v = init_dynamic_array_var ("DIRSTACK", get_dirstack, assign_dirstack, 0); | - |
2122 | | - |
2123 | | - |
2124 | | - |
2125 | v = init_dynamic_array_var ("GROUPS", get_groupset, null_array_assign, 0x0004000); | - |
2126 | | - |
2127 | | - |
2128 | v = init_dynamic_array_var ("BASH_ARGC", get_self, null_array_assign, 0x0004000|0x0002000); | - |
2129 | v = init_dynamic_array_var ("BASH_ARGV", get_self, null_array_assign, 0x0004000|0x0002000); | - |
2130 | | - |
2131 | v = init_dynamic_array_var ("BASH_SOURCE", get_self, null_array_assign, 0x0004000|0x0002000); | - |
2132 | v = init_dynamic_array_var ("BASH_LINENO", get_self, null_array_assign, 0x0004000|0x0002000); | - |
2133 | | - |
2134 | v = init_dynamic_assoc_var ("BASH_CMDS", get_hashcmd, assign_hashcmd, 0x0020000); | - |
2135 | | - |
2136 | v = init_dynamic_assoc_var ("BASH_ALIASES", get_aliasvar, assign_aliasvar, 0x0020000); | - |
2137 | | - |
2138 | | - |
2139 | | - |
2140 | v = init_funcname_var (); | - |
2141 | }executed 5447 times by 1 test: end of block | 5447 |
2142 | static SHELL_VAR * | - |
2143 | hash_lookup (name, hashed_vars) | - |
2144 | const char *name; | - |
2145 | HASH_TABLE *hashed_vars; | - |
2146 | { | - |
2147 | BUCKET_CONTENTS *bucket; | - |
2148 | | - |
2149 | bucket = hash_search (name, hashed_vars, 0); | - |
2150 | | - |
2151 | | - |
2152 | if (bucketTRUE | evaluated 317768149 times by 1 test | FALSE | evaluated 290516185 times by 1 test |
) | 290516185-317768149 |
2153 | last_table_searched = hashed_vars;executed 317768149 times by 1 test: last_table_searched = hashed_vars; | 317768149 |
2154 | returnexecuted 608284334 times by 1 test: return (bucket ? (SHELL_VAR *)bucket->data : (SHELL_VAR *) ((void *)0) ); (bucket ? (SHELL_VAR *)bucket->data : (SHELL_VAR *)executed 608284334 times by 1 test: return (bucket ? (SHELL_VAR *)bucket->data : (SHELL_VAR *) ((void *)0) ); | 608284334 |
2155 | ((void *)0)executed 608284334 times by 1 test: return (bucket ? (SHELL_VAR *)bucket->data : (SHELL_VAR *) ((void *)0) ); | 608284334 |
2156 | );executed 608284334 times by 1 test: return (bucket ? (SHELL_VAR *)bucket->data : (SHELL_VAR *) ((void *)0) ); | 608284334 |
2157 | } | - |
2158 | | - |
2159 | SHELL_VAR * | - |
2160 | var_lookup (name, vcontext) | - |
2161 | const char *name; | - |
2162 | VAR_CONTEXT *vcontext; | - |
2163 | { | - |
2164 | VAR_CONTEXT *vc; | - |
2165 | SHELL_VAR *v; | - |
2166 | | - |
2167 | v = (SHELL_VAR *) | - |
2168 | ((void *)0) | - |
2169 | ; | - |
2170 | for (vc = vcontext; vcTRUE | evaluated 352391221 times by 1 test | FALSE | evaluated 1646277 times by 1 test |
; vc = vc->down) | 1646277-352391221 |
2171 | if (v = hash_lookup (name, vc->table)TRUE | evaluated 199428273 times by 1 test | FALSE | evaluated 152962948 times by 1 test |
) | 152962948-199428273 |
2172 | break;executed 199428273 times by 1 test: break; | 199428273 |
2173 | | - |
2174 | returnexecuted 201074550 times by 1 test: return v; v;executed 201074550 times by 1 test: return v; | 201074550 |
2175 | } | - |
2176 | SHELL_VAR * | - |
2177 | find_variable_internal (name, flags) | - |
2178 | const char *name; | - |
2179 | int flags; | - |
2180 | { | - |
2181 | SHELL_VAR *var; | - |
2182 | int search_tempenv, force_tempenv; | - |
2183 | VAR_CONTEXT *vc; | - |
2184 | | - |
2185 | var = (SHELL_VAR *) | - |
2186 | ((void *)0) | - |
2187 | ; | - |
2188 | | - |
2189 | force_tempenv = (flags & 0x01); | - |
2190 | | - |
2191 | | - |
2192 | | - |
2193 | | - |
2194 | | - |
2195 | | - |
2196 | search_tempenv = force_tempenvTRUE | evaluated 36498286 times by 1 test | FALSE | evaluated 164543196 times by 1 test |
|| (expanding_redir == 0TRUE | evaluated 162551006 times by 1 test | FALSE | evaluated 1992190 times by 1 test |
&& subshell_environmentTRUE | evaluated 56514 times by 1 test | FALSE | evaluated 162494492 times by 1 test |
); | 56514-164543196 |
2197 | | - |
2198 | if (search_tempenvTRUE | evaluated 36554800 times by 1 test | FALSE | evaluated 164486682 times by 1 test |
&& temporary_envTRUE | evaluated 6885 times by 1 test | FALSE | evaluated 36547915 times by 1 test |
) | 6885-164486682 |
2199 | var = hash_lookup (name, temporary_env);executed 6885 times by 1 test: var = hash_lookup (name, temporary_env); | 6885 |
2200 | | - |
2201 | if (var == 0TRUE | evaluated 201038167 times by 1 test | FALSE | evaluated 3315 times by 1 test |
) | 3315-201038167 |
2202 | { | - |
2203 | if ((TRUE | evaluated 201038167 times by 1 test | FALSE | never evaluated |
flags & 0x02) == 0TRUE | evaluated 201038167 times by 1 test | FALSE | never evaluated |
) | 0-201038167 |
2204 | var = var_lookup (name, shell_variables);executed 201038167 times by 1 test: var = var_lookup (name, shell_variables); | 201038167 |
2205 | else | - |
2206 | { | - |
2207 | | - |
2208 | | - |
2209 | for (vc = shell_variables; vcTRUE | never evaluated | FALSE | never evaluated |
; vc = vc->down) | 0 |
2210 | { | - |
2211 | var = hash_lookup (name, vc->table); | - |
2212 | if (varTRUE | never evaluated | FALSE | never evaluated |
&& ((((TRUE | never evaluated | FALSE | never evaluated |
var)->attributes) & (0x0001000)))TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2213 | var = 0; never executed: var = 0; | 0 |
2214 | if (varTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2215 | break; never executed: break; | 0 |
2216 | } never executed: end of block | 0 |
2217 | } never executed: end of block | 0 |
2218 | } | - |
2219 | | - |
2220 | if (var == 0TRUE | evaluated 1627791 times by 1 test | FALSE | evaluated 199413691 times by 1 test |
) | 1627791-199413691 |
2221 | returnexecuted 1627791 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); ((SHELL_VAR *)executed 1627791 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 1627791 |
2222 | ((void *)0)executed 1627791 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 1627791 |
2223 | );executed 1627791 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 1627791 |
2224 | | - |
2225 | returnexecuted 199413691 times by 1 test: return (var->dynamic_value ? (*(var->dynamic_value)) (var) : var); (var->dynamic_value ? (*(var->dynamic_value)) (var) : var);executed 199413691 times by 1 test: return (var->dynamic_value ? (*(var->dynamic_value)) (var) : var); | 199413691 |
2226 | } | - |
2227 | | - |
2228 | | - |
2229 | | - |
2230 | SHELL_VAR * | - |
2231 | find_variable_nameref (v) | - |
2232 | SHELL_VAR *v; | - |
2233 | { | - |
2234 | int level, flags; | - |
2235 | char *newname; | - |
2236 | SHELL_VAR *orig, *oldv; | - |
2237 | | - |
2238 | level = 0; | - |
2239 | orig = v; | - |
2240 | while (vTRUE | evaluated 480 times by 1 test | FALSE | evaluated 83 times by 1 test |
&& ((((TRUE | evaluated 331 times by 1 test | FALSE | evaluated 149 times by 1 test |
v)->attributes) & (0x0000800)))TRUE | evaluated 331 times by 1 test | FALSE | evaluated 149 times by 1 test |
) | 83-480 |
2241 | { | - |
2242 | level++; | - |
2243 | if (level > 8TRUE | never evaluated | FALSE | evaluated 331 times by 1 test |
) | 0-331 |
2244 | return never executed: return ((SHELL_VAR *)0); ((SHELL_VAR *)0);never executed: return ((SHELL_VAR *)0); | 0 |
2245 | newname = ((v)->value); | - |
2246 | if (newname == 0TRUE | evaluated 82 times by 1 test | FALSE | evaluated 249 times by 1 test |
|| *TRUE | never evaluated | FALSE | evaluated 249 times by 1 test |
newname == '\0'TRUE | never evaluated | FALSE | evaluated 249 times by 1 test |
) | 0-249 |
2247 | returnexecuted 82 times by 1 test: return ((SHELL_VAR *)0); ((SHELL_VAR *)0);executed 82 times by 1 test: return ((SHELL_VAR *)0); | 82 |
2248 | oldv = v; | - |
2249 | flags = 0; | - |
2250 | if (expanding_redir == 0TRUE | evaluated 249 times by 1 test | FALSE | never evaluated |
&& (assigning_in_environmentTRUE | evaluated 17 times by 1 test | FALSE | evaluated 232 times by 1 test |
|| executing_builtinTRUE | evaluated 59 times by 1 test | FALSE | evaluated 173 times by 1 test |
)) | 0-249 |
2251 | flags |= 0x01;executed 76 times by 1 test: flags |= 0x01; | 76 |
2252 | | - |
2253 | v = find_variable_internal (newname, flags); | - |
2254 | if (v == origTRUE | evaluated 4 times by 1 test | FALSE | evaluated 245 times by 1 test |
|| v == oldvTRUE | never evaluated | FALSE | evaluated 245 times by 1 test |
) | 0-245 |
2255 | { | - |
2256 | internal_warning ( | - |
2257 | dcgettext (((void *)0), | - |
2258 | "%s: circular name reference" | - |
2259 | , 5) | - |
2260 | , orig->name); | - |
2261 | | - |
2262 | | - |
2263 | | - |
2264 | if (variable_contextTRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
&& v->contextTRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-2 |
2265 | returnexecuted 2 times by 1 test: return (find_global_variable_noref (v->name)); (find_global_variable_noref (v->name));executed 2 times by 1 test: return (find_global_variable_noref (v->name)); | 2 |
2266 | else | - |
2267 | | - |
2268 | returnexecuted 2 times by 1 test: return ((SHELL_VAR *)0); ((SHELL_VAR *)0);executed 2 times by 1 test: return ((SHELL_VAR *)0); | 2 |
2269 | } | - |
2270 | }executed 245 times by 1 test: end of block | 245 |
2271 | returnexecuted 232 times by 1 test: return v; v;executed 232 times by 1 test: return v; | 232 |
2272 | } | - |
2273 | | - |
2274 | | - |
2275 | SHELL_VAR * | - |
2276 | find_variable_last_nameref (name, vflags) | - |
2277 | const char *name; | - |
2278 | int vflags; | - |
2279 | { | - |
2280 | SHELL_VAR *v, *nv; | - |
2281 | char *newname; | - |
2282 | int level, flags; | - |
2283 | | - |
2284 | nv = v = find_variable_noref (name); | - |
2285 | level = 0; | - |
2286 | while (vTRUE | evaluated 5444914 times by 1 test | FALSE | evaluated 24801 times by 1 test |
&& ((((TRUE | evaluated 341 times by 1 test | FALSE | evaluated 5444573 times by 1 test |
v)->attributes) & (0x0000800)))TRUE | evaluated 341 times by 1 test | FALSE | evaluated 5444573 times by 1 test |
) | 341-5444914 |
2287 | { | - |
2288 | level++; | - |
2289 | if (level > 8TRUE | evaluated 3 times by 1 test | FALSE | evaluated 338 times by 1 test |
) | 3-338 |
2290 | returnexecuted 3 times by 1 test: return ((SHELL_VAR *)0); ((SHELL_VAR *)0);executed 3 times by 1 test: return ((SHELL_VAR *)0); | 3 |
2291 | newname = ((v)->value); | - |
2292 | if (newname == 0TRUE | evaluated 128 times by 1 test | FALSE | evaluated 210 times by 1 test |
|| *TRUE | never evaluated | FALSE | evaluated 210 times by 1 test |
newname == '\0'TRUE | never evaluated | FALSE | evaluated 210 times by 1 test |
) | 0-210 |
2293 | returnexecuted 128 times by 1 test: return ((vflags && ((((v)->attributes) & (0x0001000)))) ? v : (SHELL_VAR *)0); ((vflags && ((((v)->attributes) & (0x0001000)))) ? v : (SHELL_VAR *)0);executed 128 times by 1 test: return ((vflags && ((((v)->attributes) & (0x0001000)))) ? v : (SHELL_VAR *)0); | 128 |
2294 | nv = v; | - |
2295 | flags = 0; | - |
2296 | if (expanding_redir == 0TRUE | evaluated 210 times by 1 test | FALSE | never evaluated |
&& (assigning_in_environmentTRUE | evaluated 1 time by 1 test | FALSE | evaluated 209 times by 1 test |
|| executing_builtinTRUE | evaluated 108 times by 1 test | FALSE | evaluated 101 times by 1 test |
)) | 0-210 |
2297 | flags |= 0x01;executed 109 times by 1 test: flags |= 0x01; | 109 |
2298 | | - |
2299 | v = find_variable_internal (newname, flags); | - |
2300 | }executed 210 times by 1 test: end of block | 210 |
2301 | returnexecuted 5469374 times by 1 test: return nv; nv;executed 5469374 times by 1 test: return nv; | 5469374 |
2302 | } | - |
2303 | | - |
2304 | | - |
2305 | SHELL_VAR * | - |
2306 | find_global_variable_last_nameref (name, vflags) | - |
2307 | const char *name; | - |
2308 | int vflags; | - |
2309 | { | - |
2310 | SHELL_VAR *v, *nv; | - |
2311 | char *newname; | - |
2312 | int level; | - |
2313 | | - |
2314 | nv = v = find_global_variable_noref (name); | - |
2315 | level = 0; | - |
2316 | while (vTRUE | evaluated 28 times by 1 test | FALSE | evaluated 18 times by 1 test |
&& ((((TRUE | never evaluated | FALSE | evaluated 28 times by 1 test |
v)->attributes) & (0x0000800)))TRUE | never evaluated | FALSE | evaluated 28 times by 1 test |
) | 0-28 |
2317 | { | - |
2318 | level++; | - |
2319 | if (level > 8TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2320 | return never executed: return ((SHELL_VAR *)0); ((SHELL_VAR *)0);never executed: return ((SHELL_VAR *)0); | 0 |
2321 | newname = ((v)->value); | - |
2322 | if (newname == 0TRUE | never evaluated | FALSE | never evaluated |
|| *TRUE | never evaluated | FALSE | never evaluated |
newname == '\0'TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2323 | return never executed: return ((vflags && ((((v)->attributes) & (0x0001000)))) ? v : (SHELL_VAR *)0); ((vflags && ((((v)->attributes) & (0x0001000)))) ? v : (SHELL_VAR *)0);never executed: return ((vflags && ((((v)->attributes) & (0x0001000)))) ? v : (SHELL_VAR *)0); | 0 |
2324 | nv = v; | - |
2325 | | - |
2326 | v = find_global_variable_noref (newname); | - |
2327 | } never executed: end of block | 0 |
2328 | returnexecuted 46 times by 1 test: return nv; nv;executed 46 times by 1 test: return nv; | 46 |
2329 | } | - |
2330 | | - |
2331 | static SHELL_VAR * | - |
2332 | find_nameref_at_context (v, vc) | - |
2333 | SHELL_VAR *v; | - |
2334 | VAR_CONTEXT *vc; | - |
2335 | { | - |
2336 | SHELL_VAR *nv, *nv2; | - |
2337 | char *newname; | - |
2338 | int level; | - |
2339 | | - |
2340 | nv = v; | - |
2341 | level = 1; | - |
2342 | while (nvTRUE | evaluated 98 times by 1 test | FALSE | never evaluated |
&& ((((TRUE | evaluated 93 times by 1 test | FALSE | evaluated 5 times by 1 test |
nv)->attributes) & (0x0000800)))TRUE | evaluated 93 times by 1 test | FALSE | evaluated 5 times by 1 test |
) | 0-98 |
2343 | { | - |
2344 | level++; | - |
2345 | if (level > 8TRUE | evaluated 6 times by 1 test | FALSE | evaluated 87 times by 1 test |
) | 6-87 |
2346 | returnexecuted 6 times by 1 test: return (&nameref_maxloop_value); (&nameref_maxloop_value);executed 6 times by 1 test: return (&nameref_maxloop_value); | 6 |
2347 | newname = ((nv)->value); | - |
2348 | if (newname == 0TRUE | evaluated 16 times by 1 test | FALSE | evaluated 71 times by 1 test |
|| *TRUE | never evaluated | FALSE | evaluated 71 times by 1 test |
newname == '\0'TRUE | never evaluated | FALSE | evaluated 71 times by 1 test |
) | 0-71 |
2349 | returnexecuted 16 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); ((SHELL_VAR *)executed 16 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 16 |
2350 | ((void *)0)executed 16 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 16 |
2351 | );executed 16 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 16 |
2352 | nv2 = hash_lookup (newname, vc->table); | - |
2353 | if (nv2 == 0TRUE | evaluated 24 times by 1 test | FALSE | evaluated 47 times by 1 test |
) | 24-47 |
2354 | break;executed 24 times by 1 test: break; | 24 |
2355 | nv = nv2; | - |
2356 | }executed 47 times by 1 test: end of block | 47 |
2357 | returnexecuted 29 times by 1 test: return nv; nv;executed 29 times by 1 test: return nv; | 29 |
2358 | } | - |
2359 | | - |
2360 | | - |
2361 | | - |
2362 | | - |
2363 | | - |
2364 | | - |
2365 | static SHELL_VAR * | - |
2366 | find_variable_nameref_context (v, vc, nvcp) | - |
2367 | SHELL_VAR *v; | - |
2368 | VAR_CONTEXT *vc; | - |
2369 | VAR_CONTEXT **nvcp; | - |
2370 | { | - |
2371 | SHELL_VAR *nv, *nv2; | - |
2372 | VAR_CONTEXT *nvc; | - |
2373 | | - |
2374 | | - |
2375 | for (nv = v, nvc = vc; nvcTRUE | evaluated 33 times by 1 test | FALSE | evaluated 9 times by 1 test |
; nvc = nvc->down) | 9-33 |
2376 | { | - |
2377 | nv2 = find_nameref_at_context (nv, nvc); | - |
2378 | if (nv2 == &nameref_maxloop_valueTRUE | evaluated 6 times by 1 test | FALSE | evaluated 27 times by 1 test |
) | 6-27 |
2379 | returnexecuted 6 times by 1 test: return (nv2); (nv2);executed 6 times by 1 test: return (nv2); | 6 |
2380 | if (nv2 == 0TRUE | evaluated 8 times by 1 test | FALSE | evaluated 19 times by 1 test |
) | 8-19 |
2381 | continue;executed 8 times by 1 test: continue; | 8 |
2382 | nv = nv2; | - |
2383 | if (*TRUE | evaluated 19 times by 1 test | FALSE | never evaluated |
nvcpTRUE | evaluated 19 times by 1 test | FALSE | never evaluated |
) | 0-19 |
2384 | *executed 19 times by 1 test: *nvcp = nvc; nvcp = nvc;executed 19 times by 1 test: *nvcp = nvc; | 19 |
2385 | if (((((TRUE | evaluated 5 times by 1 test | FALSE | evaluated 14 times by 1 test |
nv)->attributes) & (0x0000800))) == 0TRUE | evaluated 5 times by 1 test | FALSE | evaluated 14 times by 1 test |
) | 5-14 |
2386 | break;executed 5 times by 1 test: break; | 5 |
2387 | }executed 14 times by 1 test: end of block | 14 |
2388 | returnexecuted 14 times by 1 test: return (((((nv)->attributes) & (0x0000800))) ? (SHELL_VAR *) ((void *)0) : nv); (((((nv)->attributes) & (0x0000800))) ? (SHELL_VAR *)executed 14 times by 1 test: return (((((nv)->attributes) & (0x0000800))) ? (SHELL_VAR *) ((void *)0) : nv); | 14 |
2389 | ((void *)0) executed 14 times by 1 test: return (((((nv)->attributes) & (0x0000800))) ? (SHELL_VAR *) ((void *)0) : nv); | 14 |
2390 | : nv);executed 14 times by 1 test: return (((((nv)->attributes) & (0x0000800))) ? (SHELL_VAR *) ((void *)0) : nv); | 14 |
2391 | } | - |
2392 | | - |
2393 | | - |
2394 | | - |
2395 | | - |
2396 | | - |
2397 | | - |
2398 | static SHELL_VAR * | - |
2399 | find_variable_last_nameref_context (v, vc, nvcp) | - |
2400 | SHELL_VAR *v; | - |
2401 | VAR_CONTEXT *vc; | - |
2402 | VAR_CONTEXT **nvcp; | - |
2403 | { | - |
2404 | SHELL_VAR *nv, *nv2; | - |
2405 | VAR_CONTEXT *nvc; | - |
2406 | | - |
2407 | | - |
2408 | for (nv = v, nvc = vc; nvcTRUE | evaluated 18 times by 1 test | FALSE | evaluated 9 times by 1 test |
; nvc = nvc->down) | 9-18 |
2409 | { | - |
2410 | nv2 = find_nameref_at_context (nv, nvc); | - |
2411 | if (nv2 == &nameref_maxloop_valueTRUE | never evaluated | FALSE | evaluated 18 times by 1 test |
) | 0-18 |
2412 | return never executed: return (nv2); (nv2);never executed: return (nv2); | 0 |
2413 | if (nv2 == 0TRUE | evaluated 8 times by 1 test | FALSE | evaluated 10 times by 1 test |
) | 8-10 |
2414 | continue;executed 8 times by 1 test: continue; | 8 |
2415 | nv = nv2; | - |
2416 | if (*TRUE | evaluated 10 times by 1 test | FALSE | never evaluated |
nvcpTRUE | evaluated 10 times by 1 test | FALSE | never evaluated |
) | 0-10 |
2417 | *executed 10 times by 1 test: *nvcp = nvc; nvcp = nvc;executed 10 times by 1 test: *nvcp = nvc; | 10 |
2418 | }executed 10 times by 1 test: end of block | 10 |
2419 | returnexecuted 9 times by 1 test: return (((((nv)->attributes) & (0x0000800))) ? nv : (SHELL_VAR *) ((void *)0) ); (((((nv)->attributes) & (0x0000800))) ? nv : (SHELL_VAR *)executed 9 times by 1 test: return (((((nv)->attributes) & (0x0000800))) ? nv : (SHELL_VAR *) ((void *)0) ); | 9 |
2420 | ((void *)0)executed 9 times by 1 test: return (((((nv)->attributes) & (0x0000800))) ? nv : (SHELL_VAR *) ((void *)0) ); | 9 |
2421 | );executed 9 times by 1 test: return (((((nv)->attributes) & (0x0000800))) ? nv : (SHELL_VAR *) ((void *)0) ); | 9 |
2422 | } | - |
2423 | | - |
2424 | SHELL_VAR * | - |
2425 | find_variable_nameref_for_create (name, flags) | - |
2426 | const char *name; | - |
2427 | int flags; | - |
2428 | { | - |
2429 | SHELL_VAR *var; | - |
2430 | | - |
2431 | | - |
2432 | | - |
2433 | var = find_variable_last_nameref (name, 1); | - |
2434 | if ((TRUE | evaluated 13 times by 1 test | FALSE | evaluated 54 times by 1 test |
flags&1)TRUE | evaluated 13 times by 1 test | FALSE | evaluated 54 times by 1 test |
&& varTRUE | evaluated 6 times by 1 test | FALSE | evaluated 7 times by 1 test |
&& ((((TRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
var)->attributes) & (0x0000800)))TRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
&& ((((TRUE | evaluated 5 times by 1 test | FALSE | evaluated 1 time by 1 test |
var)->attributes) & (0x0001000)))TRUE | evaluated 5 times by 1 test | FALSE | evaluated 1 time by 1 test |
) | 0-54 |
2435 | { | - |
2436 | internal_warning ( | - |
2437 | dcgettext (((void *)0), | - |
2438 | "%s: removing nameref attribute" | - |
2439 | , 5) | - |
2440 | , name); | - |
2441 | ((var)->attributes &= ~(0x0000800)); | - |
2442 | }executed 5 times by 1 test: end of block | 5 |
2443 | if (varTRUE | evaluated 15 times by 1 test | FALSE | evaluated 52 times by 1 test |
&& ((((TRUE | evaluated 10 times by 1 test | FALSE | evaluated 5 times by 1 test |
var)->attributes) & (0x0000800)))TRUE | evaluated 10 times by 1 test | FALSE | evaluated 5 times by 1 test |
) | 5-52 |
2444 | { | - |
2445 | if (legal_identifier (((var)->value)) == 0TRUE | evaluated 7 times by 1 test | FALSE | evaluated 3 times by 1 test |
) | 3-7 |
2446 | { | - |
2447 | sh_invalidid (((var)->value) ? ((var)->value) : ""); | - |
2448 | returnexecuted 7 times by 1 test: return ((SHELL_VAR *)(void *)&nameref_invalid_value); ((SHELL_VAR *)(void *)&nameref_invalid_value);executed 7 times by 1 test: return ((SHELL_VAR *)(void *)&nameref_invalid_value); | 7 |
2449 | } | - |
2450 | }executed 3 times by 1 test: end of block | 3 |
2451 | returnexecuted 60 times by 1 test: return (var); (var);executed 60 times by 1 test: return (var); | 60 |
2452 | } | - |
2453 | | - |
2454 | SHELL_VAR * | - |
2455 | find_variable_nameref_for_assignment (name, flags) | - |
2456 | const char *name; | - |
2457 | int flags; | - |
2458 | { | - |
2459 | SHELL_VAR *var; | - |
2460 | | - |
2461 | | - |
2462 | | - |
2463 | var = find_variable_last_nameref (name, 1); | - |
2464 | if (varTRUE | never evaluated | FALSE | never evaluated |
&& ((((TRUE | never evaluated | FALSE | never evaluated |
var)->attributes) & (0x0000800)))TRUE | never evaluated | FALSE | never evaluated |
&& ((((TRUE | never evaluated | FALSE | never evaluated |
var)->attributes) & (0x0001000)))TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2465 | { | - |
2466 | internal_warning ( | - |
2467 | dcgettext (((void *)0), | - |
2468 | "%s: removing nameref attribute" | - |
2469 | , 5) | - |
2470 | , name); | - |
2471 | ((var)->attributes &= ~(0x0000800)); | - |
2472 | } never executed: end of block | 0 |
2473 | if (varTRUE | never evaluated | FALSE | never evaluated |
&& ((((TRUE | never evaluated | FALSE | never evaluated |
var)->attributes) & (0x0000800)))TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2474 | { | - |
2475 | if (valid_nameref_value (((var)->value), 1) == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2476 | { | - |
2477 | sh_invalidid (((var)->value) ? ((var)->value) : ""); | - |
2478 | return never executed: return ((SHELL_VAR *)(void *)&nameref_invalid_value); ((SHELL_VAR *)(void *)&nameref_invalid_value);never executed: return ((SHELL_VAR *)(void *)&nameref_invalid_value); | 0 |
2479 | } | - |
2480 | } never executed: end of block | 0 |
2481 | return never executed: return (var); (var);never executed: return (var); | 0 |
2482 | } | - |
2483 | | - |
2484 | | - |
2485 | SHELL_VAR * | - |
2486 | find_variable_tempenv (name) | - |
2487 | const char *name; | - |
2488 | { | - |
2489 | SHELL_VAR *var; | - |
2490 | | - |
2491 | var = find_variable_internal (name, 0x01); | - |
2492 | if (varTRUE | evaluated 27788 times by 1 test | FALSE | evaluated 69 times by 1 test |
&& ((((TRUE | never evaluated | FALSE | evaluated 27788 times by 1 test |
var)->attributes) & (0x0000800)))TRUE | never evaluated | FALSE | evaluated 27788 times by 1 test |
) | 0-27788 |
2493 | var = find_variable_nameref (var); never executed: var = find_variable_nameref (var); | 0 |
2494 | returnexecuted 27857 times by 1 test: return (var); (var);executed 27857 times by 1 test: return (var); | 27857 |
2495 | } | - |
2496 | | - |
2497 | | - |
2498 | SHELL_VAR * | - |
2499 | find_variable_notempenv (name) | - |
2500 | const char *name; | - |
2501 | { | - |
2502 | SHELL_VAR *var; | - |
2503 | | - |
2504 | var = find_variable_internal (name, 0); | - |
2505 | if (varTRUE | evaluated 2582 times by 1 test | FALSE | evaluated 4 times by 1 test |
&& ((((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 2576 times by 1 test |
var)->attributes) & (0x0000800)))TRUE | evaluated 6 times by 1 test | FALSE | evaluated 2576 times by 1 test |
) | 4-2582 |
2506 | var = find_variable_nameref (var);executed 6 times by 1 test: var = find_variable_nameref (var); | 6 |
2507 | returnexecuted 2586 times by 1 test: return (var); (var);executed 2586 times by 1 test: return (var); | 2586 |
2508 | } | - |
2509 | | - |
2510 | SHELL_VAR * | - |
2511 | find_global_variable (name) | - |
2512 | const char *name; | - |
2513 | { | - |
2514 | SHELL_VAR *var; | - |
2515 | | - |
2516 | var = var_lookup (name, global_variables); | - |
2517 | if (varTRUE | evaluated 77 times by 1 test | FALSE | evaluated 21 times by 1 test |
&& ((((TRUE | evaluated 21 times by 1 test | FALSE | evaluated 56 times by 1 test |
var)->attributes) & (0x0000800)))TRUE | evaluated 21 times by 1 test | FALSE | evaluated 56 times by 1 test |
) | 21-77 |
2518 | var = find_variable_nameref (var);executed 21 times by 1 test: var = find_variable_nameref (var); | 21 |
2519 | | - |
2520 | if (var == 0TRUE | evaluated 34 times by 1 test | FALSE | evaluated 64 times by 1 test |
) | 34-64 |
2521 | returnexecuted 34 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); ((SHELL_VAR *)executed 34 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 34 |
2522 | ((void *)0)executed 34 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 34 |
2523 | );executed 34 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 34 |
2524 | | - |
2525 | returnexecuted 64 times by 1 test: return (var->dynamic_value ? (*(var->dynamic_value)) (var) : var); (var->dynamic_value ? (*(var->dynamic_value)) (var) : var);executed 64 times by 1 test: return (var->dynamic_value ? (*(var->dynamic_value)) (var) : var); | 64 |
2526 | } | - |
2527 | | - |
2528 | SHELL_VAR * | - |
2529 | find_global_variable_noref (name) | - |
2530 | const char *name; | - |
2531 | { | - |
2532 | SHELL_VAR *var; | - |
2533 | | - |
2534 | var = var_lookup (name, global_variables); | - |
2535 | | - |
2536 | if (var == 0TRUE | evaluated 18 times by 1 test | FALSE | evaluated 30 times by 1 test |
) | 18-30 |
2537 | returnexecuted 18 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); ((SHELL_VAR *)executed 18 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 18 |
2538 | ((void *)0)executed 18 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 18 |
2539 | );executed 18 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 18 |
2540 | | - |
2541 | returnexecuted 30 times by 1 test: return (var->dynamic_value ? (*(var->dynamic_value)) (var) : var); (var->dynamic_value ? (*(var->dynamic_value)) (var) : var);executed 30 times by 1 test: return (var->dynamic_value ? (*(var->dynamic_value)) (var) : var); | 30 |
2542 | } | - |
2543 | | - |
2544 | SHELL_VAR * | - |
2545 | find_shell_variable (name) | - |
2546 | const char *name; | - |
2547 | { | - |
2548 | SHELL_VAR *var; | - |
2549 | | - |
2550 | var = var_lookup (name, shell_variables); | - |
2551 | if (varTRUE | evaluated 10391 times by 1 test | FALSE | evaluated 41 times by 1 test |
&& ((((TRUE | evaluated 16 times by 1 test | FALSE | evaluated 10375 times by 1 test |
var)->attributes) & (0x0000800)))TRUE | evaluated 16 times by 1 test | FALSE | evaluated 10375 times by 1 test |
) | 16-10391 |
2552 | var = find_variable_nameref (var);executed 16 times by 1 test: var = find_variable_nameref (var); | 16 |
2553 | | - |
2554 | if (var == 0TRUE | evaluated 48 times by 1 test | FALSE | evaluated 10384 times by 1 test |
) | 48-10384 |
2555 | returnexecuted 48 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); ((SHELL_VAR *)executed 48 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 48 |
2556 | ((void *)0)executed 48 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 48 |
2557 | );executed 48 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 48 |
2558 | | - |
2559 | returnexecuted 10384 times by 1 test: return (var->dynamic_value ? (*(var->dynamic_value)) (var) : var); (var->dynamic_value ? (*(var->dynamic_value)) (var) : var);executed 10384 times by 1 test: return (var->dynamic_value ? (*(var->dynamic_value)) (var) : var); | 10384 |
2560 | } | - |
2561 | | - |
2562 | | - |
2563 | SHELL_VAR * | - |
2564 | find_variable (name) | - |
2565 | const char *name; | - |
2566 | { | - |
2567 | SHELL_VAR *v; | - |
2568 | int flags; | - |
2569 | | - |
2570 | last_table_searched = 0; | - |
2571 | flags = 0; | - |
2572 | if (expanding_redir == 0TRUE | evaluated 193547358 times by 1 test | FALSE | evaluated 1992186 times by 1 test |
&& (assigning_in_environmentTRUE | evaluated 6878 times by 1 test | FALSE | evaluated 193540480 times by 1 test |
|| executing_builtinTRUE | evaluated 36454321 times by 1 test | FALSE | evaluated 157086159 times by 1 test |
)) | 6878-193547358 |
2573 | flags |= 0x01;executed 36461199 times by 1 test: flags |= 0x01; | 36461199 |
2574 | v = find_variable_internal (name, flags); | - |
2575 | if (vTRUE | evaluated 193937406 times by 1 test | FALSE | evaluated 1602138 times by 1 test |
&& ((((TRUE | evaluated 266 times by 1 test | FALSE | evaluated 193937140 times by 1 test |
v)->attributes) & (0x0000800)))TRUE | evaluated 266 times by 1 test | FALSE | evaluated 193937140 times by 1 test |
) | 266-193937406 |
2576 | v = find_variable_nameref (v);executed 266 times by 1 test: v = find_variable_nameref (v); | 266 |
2577 | returnexecuted 195539544 times by 1 test: return v; v;executed 195539544 times by 1 test: return v; | 195539544 |
2578 | } | - |
2579 | | - |
2580 | | - |
2581 | | - |
2582 | | - |
2583 | SHELL_VAR * | - |
2584 | find_variable_no_invisible (name) | - |
2585 | const char *name; | - |
2586 | { | - |
2587 | SHELL_VAR *v; | - |
2588 | int flags; | - |
2589 | | - |
2590 | last_table_searched = 0; | - |
2591 | flags = 0x02; | - |
2592 | if (expanding_redir == 0TRUE | never evaluated | FALSE | never evaluated |
&& (assigning_in_environmentTRUE | never evaluated | FALSE | never evaluated |
|| executing_builtinTRUE | never evaluated | FALSE | never evaluated |
)) | 0 |
2593 | flags |= 0x01; never executed: flags |= 0x01; | 0 |
2594 | v = find_variable_internal (name, flags); | - |
2595 | if (vTRUE | never evaluated | FALSE | never evaluated |
&& ((((TRUE | never evaluated | FALSE | never evaluated |
v)->attributes) & (0x0000800)))TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2596 | v = find_variable_nameref (v); never executed: v = find_variable_nameref (v); | 0 |
2597 | return never executed: return v; v;never executed: return v; | 0 |
2598 | } | - |
2599 | | - |
2600 | | - |
2601 | | - |
2602 | SHELL_VAR * | - |
2603 | find_variable_for_assignment (name) | - |
2604 | const char *name; | - |
2605 | { | - |
2606 | SHELL_VAR *v; | - |
2607 | int flags; | - |
2608 | | - |
2609 | last_table_searched = 0; | - |
2610 | flags = 0; | - |
2611 | if (expanding_redir == 0TRUE | never evaluated | FALSE | never evaluated |
&& (assigning_in_environmentTRUE | never evaluated | FALSE | never evaluated |
|| executing_builtinTRUE | never evaluated | FALSE | never evaluated |
)) | 0 |
2612 | flags |= 0x01; never executed: flags |= 0x01; | 0 |
2613 | v = find_variable_internal (name, flags); | - |
2614 | if (vTRUE | never evaluated | FALSE | never evaluated |
&& ((((TRUE | never evaluated | FALSE | never evaluated |
v)->attributes) & (0x0000800)))TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2615 | v = find_variable_nameref (v); never executed: v = find_variable_nameref (v); | 0 |
2616 | return never executed: return v; v;never executed: return v; | 0 |
2617 | } | - |
2618 | | - |
2619 | SHELL_VAR * | - |
2620 | find_variable_noref (name) | - |
2621 | const char *name; | - |
2622 | { | - |
2623 | SHELL_VAR *v; | - |
2624 | int flags; | - |
2625 | | - |
2626 | flags = 0; | - |
2627 | if (expanding_redir == 0TRUE | evaluated 5471032 times by 1 test | FALSE | evaluated 4 times by 1 test |
&& (assigning_in_environmentTRUE | evaluated 1532 times by 1 test | FALSE | evaluated 5469500 times by 1 test |
|| executing_builtinTRUE | evaluated 7513 times by 1 test | FALSE | evaluated 5461987 times by 1 test |
)) | 4-5471032 |
2628 | flags |= 0x01;executed 9045 times by 1 test: flags |= 0x01; | 9045 |
2629 | v = find_variable_internal (name, flags); | - |
2630 | returnexecuted 5471036 times by 1 test: return v; v;executed 5471036 times by 1 test: return v; | 5471036 |
2631 | } | - |
2632 | | - |
2633 | | - |
2634 | | - |
2635 | SHELL_VAR * | - |
2636 | find_function (name) | - |
2637 | const char *name; | - |
2638 | { | - |
2639 | returnexecuted 34751686 times by 1 test: return (hash_lookup (name, shell_functions)); (hash_lookup (name, shell_functions));executed 34751686 times by 1 test: return (hash_lookup (name, shell_functions)); | 34751686 |
2640 | } | - |
2641 | | - |
2642 | | - |
2643 | | - |
2644 | FUNCTION_DEF * | - |
2645 | find_function_def (name) | - |
2646 | const char *name; | - |
2647 | { | - |
2648 | | - |
2649 | returnexecuted 1662836 times by 1 test: return ((FUNCTION_DEF *)hash_lookup (name, shell_function_defs)); ((FUNCTION_DEF *)hash_lookup (name, shell_function_defs));executed 1662836 times by 1 test: return ((FUNCTION_DEF *)hash_lookup (name, shell_function_defs)); | 1662836 |
2650 | | - |
2651 | | - |
2652 | | - |
2653 | } | - |
2654 | | - |
2655 | | - |
2656 | | - |
2657 | char * | - |
2658 | get_variable_value (var) | - |
2659 | SHELL_VAR *var; | - |
2660 | { | - |
2661 | if (var == 0TRUE | evaluated 94 times by 1 test | FALSE | evaluated 7299711 times by 1 test |
) | 94-7299711 |
2662 | returnexecuted 94 times by 1 test: return ((char *) ((void *)0) ); ((char *)executed 94 times by 1 test: return ((char *) ((void *)0) ); | 94 |
2663 | ((void *)0)executed 94 times by 1 test: return ((char *) ((void *)0) ); | 94 |
2664 | );executed 94 times by 1 test: return ((char *) ((void *)0) ); | 94 |
2665 | | - |
2666 | else if (((((TRUE | evaluated 19 times by 1 test | FALSE | evaluated 7299692 times by 1 test |
var)->attributes) & (0x0000004)))TRUE | evaluated 19 times by 1 test | FALSE | evaluated 7299692 times by 1 test |
) | 19-7299692 |
2667 | returnexecuted 19 times by 1 test: return (array_reference ((ARRAY *)((var)->value), 0)); (array_reference ((ARRAY *)((var)->value), 0));executed 19 times by 1 test: return (array_reference ((ARRAY *)((var)->value), 0)); | 19 |
2668 | else if (((((TRUE | never evaluated | FALSE | evaluated 7299692 times by 1 test |
var)->attributes) & (0x0000040)))TRUE | never evaluated | FALSE | evaluated 7299692 times by 1 test |
) | 0-7299692 |
2669 | return never executed: return (assoc_reference ((HASH_TABLE *)((var)->value), "0")); (assoc_reference ((HASH_TABLE *)((var)->value), "0"));never executed: return (assoc_reference ((HASH_TABLE *)((var)->value), "0")); | 0 |
2670 | | - |
2671 | else | - |
2672 | returnexecuted 7299692 times by 1 test: return (((var)->value)); (((var)->value));executed 7299692 times by 1 test: return (((var)->value)); | 7299692 |
2673 | } | - |
2674 | | - |
2675 | | - |
2676 | | - |
2677 | | - |
2678 | | - |
2679 | | - |
2680 | char * | - |
2681 | get_string_value (var_name) | - |
2682 | const char *var_name; | - |
2683 | { | - |
2684 | SHELL_VAR *var; | - |
2685 | | - |
2686 | var = find_variable (var_name); | - |
2687 | returnexecuted 1482994 times by 1 test: return ((var) ? get_variable_value (var) : (char *) ((void *)0) ); ((var) ? get_variable_value (var) : (char *)executed 1482994 times by 1 test: return ((var) ? get_variable_value (var) : (char *) ((void *)0) ); | 1482994 |
2688 | ((void *)0)executed 1482994 times by 1 test: return ((var) ? get_variable_value (var) : (char *) ((void *)0) ); | 1482994 |
2689 | );executed 1482994 times by 1 test: return ((var) ? get_variable_value (var) : (char *) ((void *)0) ); | 1482994 |
2690 | } | - |
2691 | | - |
2692 | | - |
2693 | char * | - |
2694 | sh_get_env_value (v) | - |
2695 | const char *v; | - |
2696 | { | - |
2697 | returnexecuted 55 times by 1 test: return get_string_value (v); get_string_value (v);executed 55 times by 1 test: return get_string_value (v); | 55 |
2698 | } | - |
2699 | SHELL_VAR * | - |
2700 | set_if_not (name, value) | - |
2701 | char *name, *value; | - |
2702 | { | - |
2703 | SHELL_VAR *v; | - |
2704 | | - |
2705 | if (shell_variables == 0TRUE | never evaluated | FALSE | evaluated 43650 times by 1 test |
) | 0-43650 |
2706 | create_variable_tables (); never executed: create_variable_tables (); | 0 |
2707 | | - |
2708 | v = find_variable (name); | - |
2709 | if (v == 0TRUE | evaluated 32850 times by 1 test | FALSE | evaluated 10800 times by 1 test |
) | 10800-32850 |
2710 | v = bind_variable_internal (name, value, global_variables->table, 0x01, 0);executed 32850 times by 1 test: v = bind_variable_internal (name, value, global_variables->table, 0x01, 0); | 32850 |
2711 | returnexecuted 43650 times by 1 test: return (v); (v);executed 43650 times by 1 test: return (v); | 43650 |
2712 | } | - |
2713 | | - |
2714 | | - |
2715 | SHELL_VAR * | - |
2716 | make_local_variable (name, flags) | - |
2717 | const char *name; | - |
2718 | int flags; | - |
2719 | { | - |
2720 | SHELL_VAR *new_var, *old_var, *old_ref; | - |
2721 | VAR_CONTEXT *vc; | - |
2722 | int was_tmpvar; | - |
2723 | char *old_value; | - |
2724 | | - |
2725 | | - |
2726 | | - |
2727 | old_ref = find_variable_noref (name); | - |
2728 | if (old_refTRUE | evaluated 237 times by 1 test | FALSE | evaluated 454 times by 1 test |
&& ((((TRUE | evaluated 228 times by 1 test | FALSE | evaluated 9 times by 1 test |
old_ref)->attributes) & (0x0000800))) == 0TRUE | evaluated 228 times by 1 test | FALSE | evaluated 9 times by 1 test |
) | 9-454 |
2729 | old_ref = 0;executed 228 times by 1 test: old_ref = 0; | 228 |
2730 | | - |
2731 | old_var = find_variable (name); | - |
2732 | if (old_ref == 0TRUE | evaluated 682 times by 1 test | FALSE | evaluated 9 times by 1 test |
&& old_varTRUE | evaluated 228 times by 1 test | FALSE | evaluated 454 times by 1 test |
&& ((((TRUE | evaluated 161 times by 1 test | FALSE | evaluated 67 times by 1 test |
old_var)->attributes) & (0x0000020)))TRUE | evaluated 161 times by 1 test | FALSE | evaluated 67 times by 1 test |
&& old_var->context == variable_contextTRUE | evaluated 125 times by 1 test | FALSE | evaluated 36 times by 1 test |
) | 9-682 |
2733 | returnexecuted 125 times by 1 test: return (old_var); (old_var);executed 125 times by 1 test: return (old_var); | 125 |
2734 | | - |
2735 | | - |
2736 | if (old_refTRUE | evaluated 9 times by 1 test | FALSE | evaluated 557 times by 1 test |
&& ((((TRUE | evaluated 5 times by 1 test | FALSE | evaluated 4 times by 1 test |
old_ref)->attributes) & (0x0000020)))TRUE | evaluated 5 times by 1 test | FALSE | evaluated 4 times by 1 test |
&& old_ref->context == variable_contextTRUE | evaluated 5 times by 1 test | FALSE | never evaluated |
) | 0-557 |
2737 | returnexecuted 5 times by 1 test: return (old_ref); (old_ref);executed 5 times by 1 test: return (old_ref); | 5 |
2738 | | - |
2739 | | - |
2740 | if (old_refTRUE | evaluated 4 times by 1 test | FALSE | evaluated 557 times by 1 test |
) | 4-557 |
2741 | old_var = old_ref;executed 4 times by 1 test: old_var = old_ref; | 4 |
2742 | | - |
2743 | was_tmpvar = old_varTRUE | evaluated 107 times by 1 test | FALSE | evaluated 454 times by 1 test |
&& ((((TRUE | evaluated 26 times by 1 test | FALSE | evaluated 81 times by 1 test |
old_var)->attributes) & (0x0100000)))TRUE | evaluated 26 times by 1 test | FALSE | evaluated 81 times by 1 test |
; | 26-454 |
2744 | if (was_tmpvarTRUE | evaluated 26 times by 1 test | FALSE | evaluated 535 times by 1 test |
&& old_var->context == variable_contextTRUE | evaluated 26 times by 1 test | FALSE | never evaluated |
&& last_table_searched != temporary_envTRUE | evaluated 23 times by 1 test | FALSE | evaluated 3 times by 1 test |
) | 0-535 |
2745 | { | - |
2746 | ((old_var)->attributes &= ~(0x0001000)); | - |
2747 | returnexecuted 23 times by 1 test: return (old_var); (old_var);executed 23 times by 1 test: return (old_var); | 23 |
2748 | } | - |
2749 | | - |
2750 | | - |
2751 | | - |
2752 | old_value = was_tmpvarTRUE | evaluated 3 times by 1 test | FALSE | evaluated 535 times by 1 test |
? ((old_var)->value) : (char *) | 3-535 |
2753 | ((void *)0) | - |
2754 | ; | - |
2755 | | - |
2756 | for (vc = shell_variables; vcTRUE | evaluated 538 times by 1 test | FALSE | never evaluated |
; vc = vc->down) | 0-538 |
2757 | if ((((TRUE | evaluated 538 times by 1 test | FALSE | never evaluated |
vc)->flags & 0x04) != 0)TRUE | evaluated 538 times by 1 test | FALSE | never evaluated |
&& vc->scope == variable_contextTRUE | evaluated 538 times by 1 test | FALSE | never evaluated |
) | 0-538 |
2758 | break;executed 538 times by 1 test: break; | 538 |
2759 | | - |
2760 | if (vc == 0TRUE | never evaluated | FALSE | evaluated 538 times by 1 test |
) | 0-538 |
2761 | { | - |
2762 | internal_error ( | - |
2763 | dcgettext (((void *)0), | - |
2764 | "make_local_variable: no function context at current scope" | - |
2765 | , 5) | - |
2766 | ); | - |
2767 | return never executed: return ((SHELL_VAR *) ((void *)0) ); ((SHELL_VAR *)never executed: return ((SHELL_VAR *) ((void *)0) ); | 0 |
2768 | ((void *)0) never executed: return ((SHELL_VAR *) ((void *)0) ); | 0 |
2769 | ); never executed: return ((SHELL_VAR *) ((void *)0) ); | 0 |
2770 | } | - |
2771 | else if (vc->table == 0TRUE | evaluated 274 times by 1 test | FALSE | evaluated 264 times by 1 test |
) | 264-274 |
2772 | vc->table = hash_create (4);executed 274 times by 1 test: vc->table = hash_create (4); | 274 |
2773 | if (old_varTRUE | evaluated 84 times by 1 test | FALSE | evaluated 454 times by 1 test |
&& (((((TRUE | never evaluated | FALSE | evaluated 84 times by 1 test |
old_var)->attributes) & (0x0004000)))TRUE | never evaluated | FALSE | evaluated 84 times by 1 test |
|| | 0-454 |
2774 | (((((TRUE | evaluated 2 times by 1 test | FALSE | evaluated 82 times by 1 test |
old_var)->attributes) & (0x0000002)))TRUE | evaluated 2 times by 1 test | FALSE | evaluated 82 times by 1 test |
&& old_var->context == 0TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
))) | 0-82 |
2775 | { | - |
2776 | if (((((TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
old_var)->attributes) & (0x0000002)))TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-2 |
2777 | sh_readonly (name);executed 2 times by 1 test: sh_readonly (name); | 2 |
2778 | else if (((((TRUE | never evaluated | FALSE | never evaluated |
old_var)->attributes) & (0x0004000)))TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2779 | builtin_error ( never executed: builtin_error ( dcgettext (((void *)0), "%s: variable may not be assigned value" , 5) , name); | 0 |
2780 | dcgettext (((void *)0), never executed: builtin_error ( dcgettext (((void *)0), "%s: variable may not be assigned value" , 5) , name); | 0 |
2781 | "%s: variable may not be assigned value" never executed: builtin_error ( dcgettext (((void *)0), "%s: variable may not be assigned value" , 5) , name); | 0 |
2782 | , 5) never executed: builtin_error ( dcgettext (((void *)0), "%s: variable may not be assigned value" , 5) , name); | 0 |
2783 | , name); never executed: builtin_error ( dcgettext (((void *)0), "%s: variable may not be assigned value" , 5) , name); | 0 |
2784 | | - |
2785 | | - |
2786 | | - |
2787 | | - |
2788 | returnexecuted 2 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); ((SHELL_VAR *)executed 2 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 2 |
2789 | ((void *)0)executed 2 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 2 |
2790 | );executed 2 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 2 |
2791 | } | - |
2792 | | - |
2793 | if (old_var == 0TRUE | evaluated 454 times by 1 test | FALSE | evaluated 82 times by 1 test |
) | 82-454 |
2794 | new_var = make_new_variable (name, vc->table);executed 454 times by 1 test: new_var = make_new_variable (name, vc->table); | 454 |
2795 | else | - |
2796 | { | - |
2797 | new_var = make_new_variable (name, vc->table); | - |
2798 | if (was_tmpvarTRUE | evaluated 3 times by 1 test | FALSE | evaluated 79 times by 1 test |
) | 3-79 |
2799 | ((executed 3 times by 1 test: ((new_var)->value = ((char *)strcpy (sh_xmalloc((1 + strlen (old_value)), "variables.c", 2555), (old_value)))); new_var)->value = ((char *)strcpy (sh_xmalloc((1 + strlen (old_value)), "variables.c", 2555), (old_value))));executed 3 times by 1 test: ((new_var)->value = ((char *)strcpy (sh_xmalloc((1 + strlen (old_value)), "variables.c", 2555), (old_value)))); | 3 |
2800 | else if (localvar_inheritTRUE | never evaluated | FALSE | evaluated 79 times by 1 test |
|| (TRUE | never evaluated | FALSE | evaluated 79 times by 1 test |
flags & 0x01)TRUE | never evaluated | FALSE | evaluated 79 times by 1 test |
) | 0-79 |
2801 | { | - |
2802 | | - |
2803 | | - |
2804 | | - |
2805 | if (((((TRUE | never evaluated | FALSE | never evaluated |
old_var)->attributes) & (0x0000040)))TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2806 | (( never executed: ((new_var)->value = (char *)((hash_copy(((HASH_TABLE *)((old_var)->value)), 0)))); new_var)->value = (char *)((hash_copy(((HASH_TABLE *)((old_var)->value)), 0))));never executed: ((new_var)->value = (char *)((hash_copy(((HASH_TABLE *)((old_var)->value)), 0)))); | 0 |
2807 | else if (((((TRUE | never evaluated | FALSE | never evaluated |
old_var)->attributes) & (0x0000004)))TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2808 | (( never executed: ((new_var)->value = (char *)(array_copy ((ARRAY *)((old_var)->value)))); new_var)->value = (char *)(array_copy ((ARRAY *)((old_var)->value))));never executed: ((new_var)->value = (char *)(array_copy ((ARRAY *)((old_var)->value)))); | 0 |
2809 | else if (((TRUE | never evaluated | FALSE | never evaluated |
old_var)->value)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2810 | | - |
2811 | | - |
2812 | | - |
2813 | (( never executed: ((new_var)->value = ((char *)strcpy (sh_xmalloc((1 + strlen (((old_var)->value))), "variables.c", 2569), (((old_var)->value))))); new_var)->value = ((char *)strcpy (sh_xmalloc((1 + strlen (((old_var)->value))), "variables.c", 2569), (((old_var)->value)))));never executed: ((new_var)->value = ((char *)strcpy (sh_xmalloc((1 + strlen (((old_var)->value))), "variables.c", 2569), (((old_var)->value))))); | 0 |
2814 | else | - |
2815 | (( never executed: ((new_var)->value = ((char *) ((void *)0) )); new_var)->value = ((char *)never executed: ((new_var)->value = ((char *) ((void *)0) )); | 0 |
2816 | ((void *)0) never executed: ((new_var)->value = ((char *) ((void *)0) )); | 0 |
2817 | )); never executed: ((new_var)->value = ((char *) ((void *)0) )); | 0 |
2818 | } | - |
2819 | | - |
2820 | if (localvar_inheritTRUE | never evaluated | FALSE | evaluated 82 times by 1 test |
|| (TRUE | never evaluated | FALSE | evaluated 82 times by 1 test |
flags & 0x01)TRUE | never evaluated | FALSE | evaluated 82 times by 1 test |
) | 0-82 |
2821 | { | - |
2822 | | - |
2823 | new_var->attributes = old_var->attributes & ~0x0000800; | - |
2824 | new_var->dynamic_value = old_var->dynamic_value; | - |
2825 | new_var->assign_func = old_var->assign_func; | - |
2826 | } never executed: end of block | 0 |
2827 | else | - |
2828 | | - |
2829 | new_var->attributes = ((((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 76 times by 1 test |
old_var)->attributes) & (0x0000001)))TRUE | evaluated 6 times by 1 test | FALSE | evaluated 76 times by 1 test |
? 0x0000001 : 0;executed 82 times by 1 test: new_var->attributes = ((((old_var)->attributes) & (0x0000001))) ? 0x0000001 : 0; | 6-82 |
2830 | } | - |
2831 | | - |
2832 | vc->flags |= 0x01; | - |
2833 | | - |
2834 | new_var->context = variable_context; | - |
2835 | ((new_var)->attributes |= (0x0000020)); | - |
2836 | | - |
2837 | if (((TRUE | evaluated 2 times by 1 test | FALSE | evaluated 534 times by 1 test |
name)[0] == 'I'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 534 times by 1 test |
&& (TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
name)[1] == 'F'TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
name)[2] == 'S'TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
name)[3] == '\0'TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
)) | 0-534 |
2838 | setifs (new_var);executed 2 times by 1 test: setifs (new_var); | 2 |
2839 | | - |
2840 | | - |
2841 | | - |
2842 | if (was_tmpvar == 0TRUE | evaluated 533 times by 1 test | FALSE | evaluated 3 times by 1 test |
&& no_invisible_vars == 0TRUE | evaluated 533 times by 1 test | FALSE | never evaluated |
&& ((TRUE | evaluated 533 times by 1 test | FALSE | never evaluated |
new_var)->value) == 0TRUE | evaluated 533 times by 1 test | FALSE | never evaluated |
) | 0-533 |
2843 | ((executed 533 times by 1 test: ((new_var)->attributes |= (0x0001000)); new_var)->attributes |= (0x0001000));executed 533 times by 1 test: ((new_var)->attributes |= (0x0001000)); | 533 |
2844 | returnexecuted 536 times by 1 test: return (new_var); (new_var);executed 536 times by 1 test: return (new_var); | 536 |
2845 | } | - |
2846 | | - |
2847 | | - |
2848 | static SHELL_VAR * | - |
2849 | new_shell_variable (name) | - |
2850 | const char *name; | - |
2851 | { | - |
2852 | SHELL_VAR *entry; | - |
2853 | | - |
2854 | entry = (SHELL_VAR *)sh_xmalloc((sizeof (SHELL_VAR)), "variables.c", 2608); | - |
2855 | | - |
2856 | entry->name = (char *)strcpy (sh_xmalloc((1 + strlen (name)), "variables.c", 2610), (name)); | - |
2857 | ((entry)->value = ((char *) | - |
2858 | ((void *)0) | - |
2859 | )); | - |
2860 | (entry)->exportstr = (char *) | - |
2861 | ((void *)0) | - |
2862 | ; | - |
2863 | | - |
2864 | entry->dynamic_value = (sh_var_value_func_t *) | - |
2865 | ((void *)0) | - |
2866 | ; | - |
2867 | entry->assign_func = (sh_var_assign_func_t *) | - |
2868 | ((void *)0) | - |
2869 | ; | - |
2870 | | - |
2871 | entry->attributes = 0; | - |
2872 | | - |
2873 | | - |
2874 | | - |
2875 | | - |
2876 | entry->context = 0; | - |
2877 | | - |
2878 | returnexecuted 407137 times by 1 test: return (entry); (entry);executed 407137 times by 1 test: return (entry); | 407137 |
2879 | } | - |
2880 | | - |
2881 | | - |
2882 | | - |
2883 | static SHELL_VAR * | - |
2884 | make_new_variable (name, table) | - |
2885 | const char *name; | - |
2886 | HASH_TABLE *table; | - |
2887 | { | - |
2888 | SHELL_VAR *entry; | - |
2889 | BUCKET_CONTENTS *elt; | - |
2890 | | - |
2891 | entry = new_shell_variable (name); | - |
2892 | | - |
2893 | | - |
2894 | if (shell_variables == 0TRUE | never evaluated | FALSE | evaluated 397163 times by 1 test |
) | 0-397163 |
2895 | create_variable_tables (); never executed: create_variable_tables (); | 0 |
2896 | | - |
2897 | elt = hash_insert ((char *)strcpy (sh_xmalloc((1 + strlen (name)), "variables.c", 2643), (name)), table, 0x01); | - |
2898 | elt->data = (void *)entry; | - |
2899 | | - |
2900 | returnexecuted 397163 times by 1 test: return entry; entry;executed 397163 times by 1 test: return entry; | 397163 |
2901 | } | - |
2902 | | - |
2903 | | - |
2904 | SHELL_VAR * | - |
2905 | make_new_array_variable (name) | - |
2906 | char *name; | - |
2907 | { | - |
2908 | SHELL_VAR *entry; | - |
2909 | ARRAY *array; | - |
2910 | | - |
2911 | entry = make_new_variable (name, global_variables->table); | - |
2912 | array = array_create (); | - |
2913 | | - |
2914 | ((entry)->value = (char *)(array)); | - |
2915 | ((entry)->attributes |= (0x0000004)); | - |
2916 | returnexecuted 49519 times by 1 test: return entry; entry;executed 49519 times by 1 test: return entry; | 49519 |
2917 | } | - |
2918 | | - |
2919 | SHELL_VAR * | - |
2920 | make_local_array_variable (name, assoc_ok) | - |
2921 | char *name; | - |
2922 | int assoc_ok; | - |
2923 | { | - |
2924 | SHELL_VAR *var; | - |
2925 | ARRAY *array; | - |
2926 | | - |
2927 | var = make_local_variable (name, 0); | - |
2928 | if (var == 0TRUE | never evaluated | FALSE | evaluated 24 times by 1 test |
|| ((((TRUE | evaluated 8 times by 1 test | FALSE | evaluated 16 times by 1 test |
var)->attributes) & (0x0000004)))TRUE | evaluated 8 times by 1 test | FALSE | evaluated 16 times by 1 test |
|| (assoc_okTRUE | evaluated 1 time by 1 test | FALSE | evaluated 15 times by 1 test |
&& ((((TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
var)->attributes) & (0x0000040)))TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
)) | 0-24 |
2929 | returnexecuted 9 times by 1 test: return var; var;executed 9 times by 1 test: return var; | 9 |
2930 | | - |
2931 | array = array_create (); | - |
2932 | | - |
2933 | dispose_variable_value (var); | - |
2934 | ((var)->value = (char *)(array)); | - |
2935 | ((var)->attributes |= (0x0000004)); | - |
2936 | returnexecuted 15 times by 1 test: return var; var;executed 15 times by 1 test: return var; | 15 |
2937 | } | - |
2938 | | - |
2939 | SHELL_VAR * | - |
2940 | make_new_assoc_variable (name) | - |
2941 | char *name; | - |
2942 | { | - |
2943 | SHELL_VAR *entry; | - |
2944 | HASH_TABLE *hash; | - |
2945 | | - |
2946 | entry = make_new_variable (name, global_variables->table); | - |
2947 | hash = (hash_create((0))); | - |
2948 | | - |
2949 | ((entry)->value = (char *)(hash)); | - |
2950 | ((entry)->attributes |= (0x0000040)); | - |
2951 | returnexecuted 11006 times by 1 test: return entry; entry;executed 11006 times by 1 test: return entry; | 11006 |
2952 | } | - |
2953 | | - |
2954 | SHELL_VAR * | - |
2955 | make_local_assoc_variable (name) | - |
2956 | char *name; | - |
2957 | { | - |
2958 | SHELL_VAR *var; | - |
2959 | HASH_TABLE *hash; | - |
2960 | | - |
2961 | var = make_local_variable (name, 0); | - |
2962 | if (var == 0TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
|| ((((TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
var)->attributes) & (0x0000040)))TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 0-4 |
2963 | returnexecuted 2 times by 1 test: return var; var;executed 2 times by 1 test: return var; | 2 |
2964 | | - |
2965 | dispose_variable_value (var); | - |
2966 | hash = (hash_create((0))); | - |
2967 | | - |
2968 | ((var)->value = (char *)(hash)); | - |
2969 | ((var)->attributes |= (0x0000040)); | - |
2970 | returnexecuted 2 times by 1 test: return var; var;executed 2 times by 1 test: return var; | 2 |
2971 | } | - |
2972 | | - |
2973 | | - |
2974 | char * | - |
2975 | make_variable_value (var, value, flags) | - |
2976 | SHELL_VAR *var; | - |
2977 | char *value; | - |
2978 | int flags; | - |
2979 | { | - |
2980 | char *retval, *oval; | - |
2981 | intmax_t lval, rval; | - |
2982 | int expok, olen, op; | - |
2983 | if ((TRUE | evaluated 115381044 times by 1 test | FALSE | never evaluated |
flags & 0x0100) == 0TRUE | evaluated 115381044 times by 1 test | FALSE | never evaluated |
&& ((((TRUE | evaluated 663 times by 1 test | FALSE | evaluated 115380381 times by 1 test |
var)->attributes) & (0x0000010)))TRUE | evaluated 663 times by 1 test | FALSE | evaluated 115380381 times by 1 test |
) | 0-115381044 |
2984 | { | - |
2985 | if (flags & 0x0001TRUE | evaluated 63 times by 1 test | FALSE | evaluated 600 times by 1 test |
) | 63-600 |
2986 | { | - |
2987 | oval = ((var)->value); | - |
2988 | lval = evalexp (oval, 0, &expok); | - |
2989 | if (expok == 0TRUE | never evaluated | FALSE | evaluated 63 times by 1 test |
) | 0-63 |
2990 | { | - |
2991 | if (flags & 0x0200TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
2992 | goto never executed: goto make_value; make_value;never executed: goto make_value; | 0 |
2993 | else | - |
2994 | { | - |
2995 | top_level_cleanup (); | - |
2996 | jump_to_top_level (2); | - |
2997 | } never executed: end of block | 0 |
2998 | } | - |
2999 | }executed 63 times by 1 test: end of block | 63 |
3000 | rval = evalexp (value, 0, &expok); | - |
3001 | if (expok == 0TRUE | evaluated 16 times by 1 test | FALSE | evaluated 647 times by 1 test |
) | 16-647 |
3002 | { | - |
3003 | if (flags & 0x0200TRUE | never evaluated | FALSE | evaluated 16 times by 1 test |
) | 0-16 |
3004 | goto never executed: goto make_value; make_value;never executed: goto make_value; | 0 |
3005 | else | - |
3006 | { | - |
3007 | top_level_cleanup (); | - |
3008 | jump_to_top_level (2); | - |
3009 | } never executed: end of block | 0 |
3010 | } | - |
3011 | | - |
3012 | | - |
3013 | if (flags & 0x0001TRUE | evaluated 63 times by 1 test | FALSE | evaluated 584 times by 1 test |
) | 63-584 |
3014 | rval += lval;executed 63 times by 1 test: rval += lval; | 63 |
3015 | retval = itos (rval); | - |
3016 | }executed 647 times by 1 test: end of block | 647 |
3017 | | - |
3018 | else if ((TRUE | evaluated 115380381 times by 1 test | FALSE | never evaluated |
flags & 0x0100) == 0TRUE | evaluated 115380381 times by 1 test | FALSE | never evaluated |
&& (((((TRUE | evaluated 2 times by 1 test | FALSE | evaluated 115380379 times by 1 test |
var)->attributes) & (0x0000400)))TRUE | evaluated 2 times by 1 test | FALSE | evaluated 115380379 times by 1 test |
|| ((((TRUE | evaluated 3 times by 1 test | FALSE | evaluated 115380376 times by 1 test |
var)->attributes) & (0x0000100)))TRUE | evaluated 3 times by 1 test | FALSE | evaluated 115380376 times by 1 test |
|| ((((TRUE | evaluated 13 times by 1 test | FALSE | evaluated 115380363 times by 1 test |
var)->attributes) & (0x0000200)))TRUE | evaluated 13 times by 1 test | FALSE | evaluated 115380363 times by 1 test |
)) | 0-115380381 |
3019 | { | - |
3020 | if (flags & 0x0001TRUE | evaluated 2 times by 1 test | FALSE | evaluated 16 times by 1 test |
) | 2-16 |
3021 | { | - |
3022 | oval = get_variable_value (var); | - |
3023 | if (oval == 0TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
3024 | oval = ""; never executed: oval = ""; | 0 |
3025 | olen = (((TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
oval)TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
oval)[0]TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) ? ((TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
oval)[1]TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
? ((TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
oval)[2]TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
? strlen(oval) : 2) : 1) : 0); | 0-2 |
3026 | retval = (char *)sh_xmalloc((olen + (value ? (((value) && (value)[0]) ? ((value)[1] ? ((value)[2] ? strlen(value) : 2) : 1) : 0) : 0) + 1), "variables.c", 2781); | - |
3027 | strcpy (retval, oval); | - |
3028 | if (valueTRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-2 |
3029 | strcpy (retval+olen, value);executed 2 times by 1 test: strcpy (retval+olen, value); | 2 |
3030 | }executed 2 times by 1 test: end of block | 2 |
3031 | else if (*TRUE | evaluated 16 times by 1 test | FALSE | never evaluated |
valueTRUE | evaluated 16 times by 1 test | FALSE | never evaluated |
) | 0-16 |
3032 | retval = (char *)strcpy (sh_xmalloc((1 + strlen (value)), "variables.c", 2787), (value));executed 16 times by 1 test: retval = (char *)strcpy (sh_xmalloc((1 + strlen (value)), "variables.c", 2787), (value)); | 16 |
3033 | else | - |
3034 | { | - |
3035 | retval = (char *)sh_xmalloc((1), "variables.c", 2790); | - |
3036 | retval[0] = '\0'; | - |
3037 | } never executed: end of block | 0 |
3038 | op = ((((TRUE | evaluated 2 times by 1 test | FALSE | evaluated 16 times by 1 test |
var)->attributes) & (0x0000400)))TRUE | evaluated 2 times by 1 test | FALSE | evaluated 16 times by 1 test |
? 0x0004 | 2-16 |
3039 | : (((((TRUE | evaluated 3 times by 1 test | FALSE | evaluated 13 times by 1 test |
var)->attributes) & (0x0000100)))TRUE | evaluated 3 times by 1 test | FALSE | evaluated 13 times by 1 test |
? 0x0002 : 0x0001); | 3-13 |
3040 | oval = sh_modcase (retval, (char *)0, op); | - |
3041 | sh_xfree((retval), "variables.c", 2796); | - |
3042 | retval = oval; | - |
3043 | }executed 18 times by 1 test: end of block | 18 |
3044 | | - |
3045 | else if (valueTRUE | evaluated 115320054 times by 1 test | FALSE | evaluated 60309 times by 1 test |
) | 60309-115320054 |
3046 | { | - |
3047 | make_value: | - |
3048 | if (flags & 0x0001TRUE | evaluated 21 times by 1 test | FALSE | evaluated 115320033 times by 1 test |
) | 21-115320033 |
3049 | { | - |
3050 | oval = get_variable_value (var); | - |
3051 | if (oval == 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 20 times by 1 test |
) | 1-20 |
3052 | oval = "";executed 1 time by 1 test: oval = ""; | 1 |
3053 | olen = (((TRUE | evaluated 21 times by 1 test | FALSE | never evaluated |
oval)TRUE | evaluated 21 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 18 times by 1 test | FALSE | evaluated 3 times by 1 test |
oval)[0]TRUE | evaluated 18 times by 1 test | FALSE | evaluated 3 times by 1 test |
) ? ((TRUE | evaluated 15 times by 1 test | FALSE | evaluated 3 times by 1 test |
oval)[1]TRUE | evaluated 15 times by 1 test | FALSE | evaluated 3 times by 1 test |
? ((TRUE | evaluated 11 times by 1 test | FALSE | evaluated 4 times by 1 test |
oval)[2]TRUE | evaluated 11 times by 1 test | FALSE | evaluated 4 times by 1 test |
? strlen(oval) : 2) : 1) : 0); | 0-21 |
3054 | retval = (char *)sh_xmalloc((olen + (value ? (((value) && (value)[0]) ? ((value)[1] ? ((value)[2] ? strlen(value) : 2) : 1) : 0) : 0) + 1), "variables.c", 2809); | - |
3055 | strcpy (retval, oval); | - |
3056 | if (valueTRUE | evaluated 21 times by 1 test | FALSE | never evaluated |
) | 0-21 |
3057 | strcpy (retval+olen, value);executed 21 times by 1 test: strcpy (retval+olen, value); | 21 |
3058 | }executed 21 times by 1 test: end of block | 21 |
3059 | else if (*TRUE | evaluated 79786439 times by 1 test | FALSE | evaluated 35533594 times by 1 test |
valueTRUE | evaluated 79786439 times by 1 test | FALSE | evaluated 35533594 times by 1 test |
) | 35533594-79786439 |
3060 | retval = (char *)strcpy (sh_xmalloc((1 + strlen (value)), "variables.c", 2815), (value));executed 79786439 times by 1 test: retval = (char *)strcpy (sh_xmalloc((1 + strlen (value)), "variables.c", 2815), (value)); | 79786439 |
3061 | else | - |
3062 | { | - |
3063 | retval = (char *)sh_xmalloc((1), "variables.c", 2818); | - |
3064 | retval[0] = '\0'; | - |
3065 | }executed 35533594 times by 1 test: end of block | 35533594 |
3066 | } | - |
3067 | else | - |
3068 | retval = (char *)executed 60309 times by 1 test: retval = (char *) ((void *)0) ; | 60309 |
3069 | ((void *)0)executed 60309 times by 1 test: retval = (char *) ((void *)0) ; | 60309 |
3070 | ;executed 60309 times by 1 test: retval = (char *) ((void *)0) ; | 60309 |
3071 | | - |
3072 | returnexecuted 115381028 times by 1 test: return retval; retval;executed 115381028 times by 1 test: return retval; | 115381028 |
3073 | } | - |
3074 | | - |
3075 | | - |
3076 | static int | - |
3077 | can_optimize_assignment (entry, value, aflags) | - |
3078 | SHELL_VAR *entry; | - |
3079 | char *value; | - |
3080 | int aflags; | - |
3081 | { | - |
3082 | if ((TRUE | evaluated 115031823 times by 1 test | FALSE | evaluated 64 times by 1 test |
aflags & 0x0001) == 0TRUE | evaluated 115031823 times by 1 test | FALSE | evaluated 64 times by 1 test |
) | 64-115031823 |
3083 | returnexecuted 115031823 times by 1 test: return 0; 0;executed 115031823 times by 1 test: return 0; | 115031823 |
3084 | | - |
3085 | if (((((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 63 times by 1 test |
entry)->attributes) & (0x0000004)))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 63 times by 1 test |
|| ((((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 62 times by 1 test |
entry)->attributes) & (0x0000040)))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 62 times by 1 test |
) | 1-63 |
3086 | returnexecuted 2 times by 1 test: return 0; 0;executed 2 times by 1 test: return 0; | 2 |
3087 | | - |
3088 | if (((((TRUE | evaluated 55 times by 1 test | FALSE | evaluated 7 times by 1 test |
entry)->attributes) & (0x0000010)))TRUE | evaluated 55 times by 1 test | FALSE | evaluated 7 times by 1 test |
|| ((((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 6 times by 1 test |
entry)->attributes) & (0x0000100)))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 6 times by 1 test |
|| ((((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5 times by 1 test |
entry)->attributes) & (0x0000200)))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5 times by 1 test |
|| ((((TRUE | never evaluated | FALSE | evaluated 5 times by 1 test |
entry)->attributes) & (0x0000400)))TRUE | never evaluated | FALSE | evaluated 5 times by 1 test |
) | 0-55 |
3089 | returnexecuted 57 times by 1 test: return 0; 0;executed 57 times by 1 test: return 0; | 57 |
3090 | if (((((TRUE | never evaluated | FALSE | evaluated 5 times by 1 test |
entry)->attributes) & (0x0000002)))TRUE | never evaluated | FALSE | evaluated 5 times by 1 test |
|| ((((TRUE | never evaluated | FALSE | evaluated 5 times by 1 test |
entry)->attributes) & (0x0004000)))TRUE | never evaluated | FALSE | evaluated 5 times by 1 test |
) | 0-5 |
3091 | return never executed: return 0; 0;never executed: return 0; | 0 |
3092 | returnexecuted 5 times by 1 test: return 1; 1;executed 5 times by 1 test: return 1; | 5 |
3093 | } | - |
3094 | | - |
3095 | | - |
3096 | static SHELL_VAR * | - |
3097 | optimized_assignment (entry, value, aflags) | - |
3098 | SHELL_VAR *entry; | - |
3099 | char *value; | - |
3100 | int aflags; | - |
3101 | { | - |
3102 | size_t len, vlen; | - |
3103 | char *v, *new; | - |
3104 | | - |
3105 | v = ((entry)->value); | - |
3106 | len = (((TRUE | evaluated 5 times by 1 test | FALSE | never evaluated |
v)TRUE | evaluated 5 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 1 time by 1 test |
v)[0]TRUE | evaluated 4 times by 1 test | FALSE | evaluated 1 time by 1 test |
) ? ((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 3 times by 1 test |
v)[1]TRUE | evaluated 1 time by 1 test | FALSE | evaluated 3 times by 1 test |
? ((TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
v)[2]TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
? strlen(v) : 2) : 1) : 0); | 0-5 |
3107 | vlen = (((TRUE | evaluated 5 times by 1 test | FALSE | never evaluated |
value)TRUE | evaluated 5 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 5 times by 1 test | FALSE | never evaluated |
value)[0]TRUE | evaluated 5 times by 1 test | FALSE | never evaluated |
) ? ((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 4 times by 1 test |
value)[1]TRUE | evaluated 1 time by 1 test | FALSE | evaluated 4 times by 1 test |
? ((TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
value)[2]TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
? strlen(value) : 2) : 1) : 0); | 0-5 |
3108 | | - |
3109 | new = (char *)sh_xrealloc((v), (len + vlen + 8), "variables.c", 2862); | - |
3110 | if (vlen == 1TRUE | evaluated 4 times by 1 test | FALSE | evaluated 1 time by 1 test |
) | 1-4 |
3111 | { | - |
3112 | new[len] = *value; | - |
3113 | new[len+1] = '\0'; | - |
3114 | }executed 4 times by 1 test: end of block | 4 |
3115 | else | - |
3116 | strcpy (new + len, value);executed 1 time by 1 test: strcpy (new + len, value); | 1 |
3117 | ((entry)->value = (new)); | - |
3118 | returnexecuted 5 times by 1 test: return entry; entry;executed 5 times by 1 test: return entry; | 5 |
3119 | } | - |
3120 | | - |
3121 | | - |
3122 | | - |
3123 | | - |
3124 | static SHELL_VAR * | - |
3125 | bind_variable_internal (name, value, table, hflags, aflags) | - |
3126 | const char *name; | - |
3127 | char *value; | - |
3128 | HASH_TABLE *table; | - |
3129 | int hflags, aflags; | - |
3130 | { | - |
3131 | char *newval, *tname; | - |
3132 | SHELL_VAR *entry, *tentry; | - |
3133 | | - |
3134 | entry = (TRUE | evaluated 32850 times by 1 test | FALSE | evaluated 115333419 times by 1 test |
hflags & 0x01)TRUE | evaluated 32850 times by 1 test | FALSE | evaluated 115333419 times by 1 test |
? (SHELL_VAR *) | 32850-115333419 |
3135 | ((void *)0) | - |
3136 | : hash_lookup (name, table); | - |
3137 | | - |
3138 | if (entryTRUE | evaluated 115031997 times by 1 test | FALSE | evaluated 334272 times by 1 test |
&& ((((TRUE | evaluated 101 times by 1 test | FALSE | evaluated 115031896 times by 1 test |
entry)->attributes) & (0x0000800)))TRUE | evaluated 101 times by 1 test | FALSE | evaluated 115031896 times by 1 test |
&& (((((TRUE | evaluated 21 times by 1 test | FALSE | evaluated 80 times by 1 test |
entry)->attributes) & (0x0001000))) == 0)TRUE | evaluated 21 times by 1 test | FALSE | evaluated 80 times by 1 test |
&& table == global_variables->tableTRUE | evaluated 21 times by 1 test | FALSE | never evaluated |
) | 0-115031997 |
3139 | { | - |
3140 | entry = find_global_variable (entry->name); | - |
3141 | | - |
3142 | | - |
3143 | if (entry == 0TRUE | evaluated 13 times by 1 test | FALSE | evaluated 8 times by 1 test |
) | 8-13 |
3144 | entry = find_variable_last_nameref (name, 0);executed 13 times by 1 test: entry = find_variable_last_nameref (name, 0); | 13 |
3145 | if (entry == 0TRUE | evaluated 2 times by 1 test | FALSE | evaluated 19 times by 1 test |
) | 2-19 |
3146 | returnexecuted 2 times by 1 test: return (entry); (entry);executed 2 times by 1 test: return (entry); | 2 |
3147 | }executed 19 times by 1 test: end of block | 19 |
3148 | | - |
3149 | | - |
3150 | | - |
3151 | if (entryTRUE | evaluated 115031995 times by 1 test | FALSE | evaluated 334272 times by 1 test |
&& ((((TRUE | evaluated 346 times by 1 test | FALSE | evaluated 115031649 times by 1 test |
entry)->attributes) & (0x0001000)))TRUE | evaluated 346 times by 1 test | FALSE | evaluated 115031649 times by 1 test |
&& ((((TRUE | evaluated 80 times by 1 test | FALSE | evaluated 266 times by 1 test |
entry)->attributes) & (0x0000800)))TRUE | evaluated 80 times by 1 test | FALSE | evaluated 266 times by 1 test |
) | 80-115031995 |
3152 | { | - |
3153 | if ((TRUE | evaluated 66 times by 1 test | FALSE | evaluated 14 times by 1 test |
aflags & 0x0020) == 0TRUE | evaluated 66 times by 1 test | FALSE | evaluated 14 times by 1 test |
&& valueTRUE | evaluated 66 times by 1 test | FALSE | never evaluated |
&& valid_nameref_value (value, 0) == 0TRUE | evaluated 57 times by 1 test | FALSE | evaluated 9 times by 1 test |
) | 0-66 |
3154 | { | - |
3155 | sh_invalidid (value); | - |
3156 | returnexecuted 57 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); ((SHELL_VAR *)executed 57 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 57 |
3157 | ((void *)0)executed 57 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 57 |
3158 | );executed 57 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 57 |
3159 | } | - |
3160 | gotoexecuted 23 times by 1 test: goto assign_value; assign_value;executed 23 times by 1 test: goto assign_value; | 23 |
3161 | } | - |
3162 | else if (entryTRUE | evaluated 115031915 times by 1 test | FALSE | evaluated 334272 times by 1 test |
&& ((((TRUE | evaluated 11 times by 1 test | FALSE | evaluated 115031904 times by 1 test |
entry)->attributes) & (0x0000800)))TRUE | evaluated 11 times by 1 test | FALSE | evaluated 115031904 times by 1 test |
) | 11-115031915 |
3163 | { | - |
3164 | newval = ((entry)->value); | - |
3165 | | - |
3166 | | - |
3167 | if (valid_array_reference (newval, 0)TRUE | evaluated 5 times by 1 test | FALSE | evaluated 6 times by 1 test |
) | 5-6 |
3168 | { | - |
3169 | tname = array_variable_name (newval, 0, (char **)0, (int *)0); | - |
3170 | if (tnameTRUE | evaluated 5 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 2 times by 1 test |
tentry = find_variable_noref (tname))TRUE | evaluated 3 times by 1 test | FALSE | evaluated 2 times by 1 test |
&& ((((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 2 times by 1 test |
tentry)->attributes) & (0x0000800)))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 2 times by 1 test |
) | 0-5 |
3171 | { | - |
3172 | | - |
3173 | internal_warning ( | - |
3174 | dcgettext (((void *)0), | - |
3175 | "%s: removing nameref attribute" | - |
3176 | , 5) | - |
3177 | , ((tentry)->name)); | - |
3178 | do { if (((TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
tentry)->value)TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) sh_xfree((((tentry)->value)), "variables.c", 2923);executed 1 time by 1 test: sh_xfree((((tentry)->value)), "variables.c", 2923); } while (0); | 0-1 |
3179 | ((tentry)->value = ((char *) | - |
3180 | ((void *)0) | - |
3181 | )); | - |
3182 | ((tentry)->attributes &= ~(0x0000800)); | - |
3183 | }executed 1 time by 1 test: end of block | 1 |
3184 | sh_xfree((tname), "variables.c", 2927); | - |
3185 | | - |
3186 | entry = assign_array_element (newval, make_variable_value (entry, value, aflags), aflags|0x0010); | - |
3187 | if (entry == 0TRUE | evaluated 2 times by 1 test | FALSE | evaluated 3 times by 1 test |
) | 2-3 |
3188 | returnexecuted 2 times by 1 test: return entry; entry;executed 2 times by 1 test: return entry; | 2 |
3189 | }executed 3 times by 1 test: end of block | 3 |
3190 | else | - |
3191 | | - |
3192 | { | - |
3193 | entry = make_new_variable (newval, table); | - |
3194 | ((entry)->value = (make_variable_value (entry, value, aflags))); | - |
3195 | }executed 6 times by 1 test: end of block | 6 |
3196 | } | - |
3197 | else if (entry == 0TRUE | evaluated 334272 times by 1 test | FALSE | evaluated 115031904 times by 1 test |
) | 334272-115031904 |
3198 | { | - |
3199 | entry = make_new_variable (name, table); | - |
3200 | ((entry)->value = (make_variable_value (entry, value, aflags))); | - |
3201 | }executed 334272 times by 1 test: end of block | 334272 |
3202 | else if (entry->assign_funcTRUE | evaluated 10 times by 1 test | FALSE | evaluated 115031894 times by 1 test |
) | 10-115031894 |
3203 | { | - |
3204 | do { if ((TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
entry)->exportstrTRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
) { sh_xfree(((entry)->exportstr), "variables.c", 2947); (entry)->exportstr = (char *) | 0-10 |
3205 | ((void *)0) | - |
3206 | ; } never executed: end of block } while (0); | 0 |
3207 | newval = (TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
aflags & 0x0001)TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
? make_variable_value (entry, value, aflags) : value; | 0-10 |
3208 | if (((((TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
entry)->attributes) & (0x0000040)))TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
) | 0-10 |
3209 | entry = (*(entry->assign_func)) (entry, newval, -1, (char *)strcpy (sh_xmalloc((1 + strlen ("0")), "variables.c", 2950), ("0"))); never executed: entry = (*(entry->assign_func)) (entry, newval, -1, (char *)strcpy (sh_xmalloc((1 + strlen ("0")), "variables.c", 2950), ("0"))); | 0 |
3210 | else if (((((TRUE | evaluated 4 times by 1 test | FALSE | evaluated 6 times by 1 test |
entry)->attributes) & (0x0000004)))TRUE | evaluated 4 times by 1 test | FALSE | evaluated 6 times by 1 test |
) | 4-6 |
3211 | entry = (*(entry->assign_func)) (entry, newval, 0, 0);executed 4 times by 1 test: entry = (*(entry->assign_func)) (entry, newval, 0, 0); | 4 |
3212 | else | - |
3213 | entry = (*(entry->assign_func)) (entry, newval, -1, 0);executed 6 times by 1 test: entry = (*(entry->assign_func)) (entry, newval, -1, 0); | 6 |
3214 | if (newval != valueTRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
) | 0-10 |
3215 | sh_xfree((newval), "variables.c", 2956); never executed: sh_xfree((newval), "variables.c", 2956); | 0 |
3216 | returnexecuted 10 times by 1 test: return (entry); (entry);executed 10 times by 1 test: return (entry); | 10 |
3217 | } | - |
3218 | else | - |
3219 | { | - |
3220 | assign_value: | - |
3221 | if ((((((TRUE | evaluated 35 times by 1 test | FALSE | evaluated 115031882 times by 1 test |
entry)->attributes) & (0x0000002)))TRUE | evaluated 35 times by 1 test | FALSE | evaluated 115031882 times by 1 test |
&& (TRUE | evaluated 30 times by 1 test | FALSE | evaluated 5 times by 1 test |
aflags & 0x0020) == 0TRUE | evaluated 30 times by 1 test | FALSE | evaluated 5 times by 1 test |
) || ((((TRUE | never evaluated | FALSE | evaluated 115031887 times by 1 test |
entry)->attributes) & (0x0004000)))TRUE | never evaluated | FALSE | evaluated 115031887 times by 1 test |
) | 0-115031887 |
3222 | { | - |
3223 | if (((((TRUE | evaluated 30 times by 1 test | FALSE | never evaluated |
entry)->attributes) & (0x0000002)))TRUE | evaluated 30 times by 1 test | FALSE | never evaluated |
) | 0-30 |
3224 | err_readonly (((entry)->name));executed 30 times by 1 test: err_readonly (((entry)->name)); | 30 |
3225 | returnexecuted 30 times by 1 test: return (entry); (entry);executed 30 times by 1 test: return (entry); | 30 |
3226 | } | - |
3227 | | - |
3228 | | - |
3229 | ((entry)->attributes &= ~(0x0001000)); | - |
3230 | | - |
3231 | | - |
3232 | | - |
3233 | if (can_optimize_assignment (entry, value, aflags)TRUE | evaluated 5 times by 1 test | FALSE | evaluated 115031882 times by 1 test |
) | 5-115031882 |
3234 | { | - |
3235 | do { if ((TRUE | never evaluated | FALSE | evaluated 5 times by 1 test |
entry)->exportstrTRUE | never evaluated | FALSE | evaluated 5 times by 1 test |
) { sh_xfree(((entry)->exportstr), "variables.c", 2976); (entry)->exportstr = (char *) | 0-5 |
3236 | ((void *)0) | - |
3237 | ; } never executed: end of block } while (0); | 0 |
3238 | optimized_assignment (entry, value, aflags); | - |
3239 | | - |
3240 | if (mark_modified_varsTRUE | never evaluated | FALSE | evaluated 5 times by 1 test |
) | 0-5 |
3241 | (( never executed: ((entry)->attributes |= (0x0000001)); entry)->attributes |= (0x0000001));never executed: ((entry)->attributes |= (0x0000001)); | 0 |
3242 | | - |
3243 | if (((((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 4 times by 1 test |
entry)->attributes) & (0x0000001)))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 4 times by 1 test |
) | 1-4 |
3244 | array_needs_making = 1;executed 1 time by 1 test: array_needs_making = 1; | 1 |
3245 | | - |
3246 | returnexecuted 5 times by 1 test: return (entry); (entry);executed 5 times by 1 test: return (entry); | 5 |
3247 | } | - |
3248 | | - |
3249 | | - |
3250 | if (((((TRUE | evaluated 5 times by 1 test | FALSE | evaluated 115031877 times by 1 test |
entry)->attributes) & (0x0000040)))TRUE | evaluated 5 times by 1 test | FALSE | evaluated 115031877 times by 1 test |
|| ((((TRUE | evaluated 25 times by 1 test | FALSE | evaluated 115031852 times by 1 test |
entry)->attributes) & (0x0000004)))TRUE | evaluated 25 times by 1 test | FALSE | evaluated 115031852 times by 1 test |
) | 5-115031877 |
3251 | newval = make_array_variable_value (entry, 0, "0", value, aflags);executed 30 times by 1 test: newval = make_array_variable_value (entry, 0, "0", value, aflags); | 30 |
3252 | else | - |
3253 | | - |
3254 | newval = make_variable_value (entry, value, aflags);executed 115031852 times by 1 test: newval = make_variable_value (entry, value, aflags); | 115031852 |
3255 | | - |
3256 | | - |
3257 | do { if ((TRUE | evaluated 11133 times by 1 test | FALSE | evaluated 115020733 times by 1 test |
entry)->exportstrTRUE | evaluated 11133 times by 1 test | FALSE | evaluated 115020733 times by 1 test |
) { sh_xfree(((entry)->exportstr), "variables.c", 2996); (entry)->exportstr = (char *) | 11133-115020733 |
3258 | ((void *)0) | - |
3259 | ; }executed 11133 times by 1 test: end of block } while (0); | 11133 |
3260 | | - |
3261 | | - |
3262 | | - |
3263 | | - |
3264 | | - |
3265 | | - |
3266 | if (((((TRUE | evaluated 5 times by 1 test | FALSE | evaluated 115031861 times by 1 test |
entry)->attributes) & (0x0000040)))TRUE | evaluated 5 times by 1 test | FALSE | evaluated 115031861 times by 1 test |
) | 5-115031861 |
3267 | { | - |
3268 | assoc_insert ((HASH_TABLE *)((entry)->value), (char *)strcpy (sh_xmalloc((1 + strlen ("0")), "variables.c", 3005), ("0")), newval); | - |
3269 | sh_xfree((newval), "variables.c", 3006); | - |
3270 | }executed 5 times by 1 test: end of block | 5 |
3271 | else if (((((TRUE | evaluated 25 times by 1 test | FALSE | evaluated 115031836 times by 1 test |
entry)->attributes) & (0x0000004)))TRUE | evaluated 25 times by 1 test | FALSE | evaluated 115031836 times by 1 test |
) | 25-115031836 |
3272 | { | - |
3273 | array_insert ((ARRAY *)((entry)->value), 0, newval); | - |
3274 | sh_xfree((newval), "variables.c", 3011); | - |
3275 | }executed 25 times by 1 test: end of block | 25 |
3276 | else | - |
3277 | | - |
3278 | { | - |
3279 | do { if (((TRUE | evaluated 115031548 times by 1 test | FALSE | evaluated 288 times by 1 test |
entry)->value)TRUE | evaluated 115031548 times by 1 test | FALSE | evaluated 288 times by 1 test |
) sh_xfree((((entry)->value)), "variables.c", 3016);executed 115031548 times by 1 test: sh_xfree((((entry)->value)), "variables.c", 3016); } while (0); | 288-115031548 |
3280 | ((entry)->value = (newval)); | - |
3281 | }executed 115031836 times by 1 test: end of block | 115031836 |
3282 | } | - |
3283 | | - |
3284 | if (mark_modified_varsTRUE | evaluated 22 times by 1 test | FALSE | evaluated 115366125 times by 1 test |
) | 22-115366125 |
3285 | ((executed 22 times by 1 test: ((entry)->attributes |= (0x0000001)); entry)->attributes |= (0x0000001));executed 22 times by 1 test: ((entry)->attributes |= (0x0000001)); | 22 |
3286 | | - |
3287 | if (((((TRUE | evaluated 11305 times by 1 test | FALSE | evaluated 115354842 times by 1 test |
entry)->attributes) & (0x0000001)))TRUE | evaluated 11305 times by 1 test | FALSE | evaluated 115354842 times by 1 test |
) | 11305-115354842 |
3288 | array_needs_making = 1;executed 11305 times by 1 test: array_needs_making = 1; | 11305 |
3289 | | - |
3290 | returnexecuted 115366147 times by 1 test: return (entry); (entry);executed 115366147 times by 1 test: return (entry); | 115366147 |
3291 | } | - |
3292 | | - |
3293 | | - |
3294 | | - |
3295 | | - |
3296 | | - |
3297 | SHELL_VAR * | - |
3298 | bind_variable (name, value, flags) | - |
3299 | const char *name; | - |
3300 | char *value; | - |
3301 | int flags; | - |
3302 | { | - |
3303 | SHELL_VAR *v, *nv; | - |
3304 | VAR_CONTEXT *vc, *nvc; | - |
3305 | | - |
3306 | if (shell_variables == 0TRUE | evaluated 17 times by 1 test | FALSE | evaluated 115333347 times by 1 test |
) | 17-115333347 |
3307 | create_variable_tables ();executed 17 times by 1 test: create_variable_tables (); | 17 |
3308 | | - |
3309 | | - |
3310 | | - |
3311 | | - |
3312 | | - |
3313 | | - |
3314 | if (temporary_envTRUE | evaluated 2972 times by 1 test | FALSE | evaluated 115330392 times by 1 test |
&& valueTRUE | evaluated 2972 times by 1 test | FALSE | never evaluated |
) | 0-115330392 |
3315 | bind_tempenv_variable (name, value);executed 2972 times by 1 test: bind_tempenv_variable (name, value); | 2972 |
3316 | | - |
3317 | | - |
3318 | for (vc = shell_variables; vcTRUE | evaluated 219463146 times by 1 test | FALSE | evaluated 115329745 times by 1 test |
; vc = vc->down) | 115329745-219463146 |
3319 | { | - |
3320 | if ((((TRUE | evaluated 104133249 times by 1 test | FALSE | evaluated 115329897 times by 1 test |
vc)->flags & 0x04) != 0)TRUE | evaluated 104133249 times by 1 test | FALSE | evaluated 115329897 times by 1 test |
|| (((TRUE | evaluated 152 times by 1 test | FALSE | evaluated 115329745 times by 1 test |
vc)->flags & 0x08) != 0)TRUE | evaluated 152 times by 1 test | FALSE | evaluated 115329745 times by 1 test |
) | 152-115329897 |
3321 | { | - |
3322 | v = hash_lookup (name, vc->table); | - |
3323 | nvc = vc; | - |
3324 | if (vTRUE | evaluated 3625 times by 1 test | FALSE | evaluated 104129776 times by 1 test |
&& ((((TRUE | evaluated 20 times by 1 test | FALSE | evaluated 3605 times by 1 test |
v)->attributes) & (0x0000800)))TRUE | evaluated 20 times by 1 test | FALSE | evaluated 3605 times by 1 test |
) | 20-104129776 |
3325 | { | - |
3326 | nv = find_variable_nameref_context (v, vc, &nvc); | - |
3327 | if (nv == 0TRUE | evaluated 9 times by 1 test | FALSE | evaluated 11 times by 1 test |
) | 9-11 |
3328 | { | - |
3329 | nv = find_variable_last_nameref_context (v, vc, &nvc); | - |
3330 | if (nvTRUE | evaluated 9 times by 1 test | FALSE | never evaluated |
&& ((((TRUE | evaluated 9 times by 1 test | FALSE | never evaluated |
nv)->attributes) & (0x0000800)))TRUE | evaluated 9 times by 1 test | FALSE | never evaluated |
) | 0-9 |
3331 | { | - |
3332 | | - |
3333 | | - |
3334 | | - |
3335 | if (((TRUE | evaluated 4 times by 1 test | FALSE | evaluated 5 times by 1 test |
nv)->value) == 0TRUE | evaluated 4 times by 1 test | FALSE | evaluated 5 times by 1 test |
) | 4-5 |
3336 | returnexecuted 4 times by 1 test: return (bind_variable_internal (nv->name, value, nvc->table, 0, flags)); (bind_variable_internal (nv->name, value, nvc->table, 0, flags));executed 4 times by 1 test: return (bind_variable_internal (nv->name, value, nvc->table, 0, flags)); | 4 |
3337 | | - |
3338 | else if (valid_array_reference (((nv)->value), 0)TRUE | evaluated 3 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-3 |
3339 | returnexecuted 3 times by 1 test: return (assign_array_element (((nv)->value), value, flags)); (assign_array_element (((nv)->value), value, flags));executed 3 times by 1 test: return (assign_array_element (((nv)->value), value, flags)); | 3 |
3340 | else | - |
3341 | | - |
3342 | returnexecuted 2 times by 1 test: return (bind_variable_internal (((nv)->value), value, nvc->table, 0, flags)); (bind_variable_internal (((nv)->value), value, nvc->table, 0, flags));executed 2 times by 1 test: return (bind_variable_internal (((nv)->value), value, nvc->table, 0, flags)); | 2 |
3343 | } | - |
3344 | else if (nv == &nameref_maxloop_valueTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
3345 | { | - |
3346 | internal_warning ( | - |
3347 | dcgettext (((void *)0), | - |
3348 | "%s: circular name reference" | - |
3349 | , 5) | - |
3350 | , v->name); | - |
3351 | | - |
3352 | | - |
3353 | | - |
3354 | v = 0; | - |
3355 | | - |
3356 | } never executed: end of block | 0 |
3357 | else | - |
3358 | v = nv; never executed: v = nv; | 0 |
3359 | } | - |
3360 | else if (nv == &nameref_maxloop_valueTRUE | evaluated 6 times by 1 test | FALSE | evaluated 5 times by 1 test |
) | 5-6 |
3361 | { | - |
3362 | internal_warning ( | - |
3363 | dcgettext (((void *)0), | - |
3364 | "%s: circular name reference" | - |
3365 | , 5) | - |
3366 | , v->name); | - |
3367 | | - |
3368 | | - |
3369 | | - |
3370 | v = 0; | - |
3371 | | - |
3372 | }executed 6 times by 1 test: end of block | 6 |
3373 | else | - |
3374 | v = nv;executed 5 times by 1 test: v = nv; | 5 |
3375 | } | - |
3376 | if (vTRUE | evaluated 3610 times by 1 test | FALSE | evaluated 104129782 times by 1 test |
) | 3610-104129782 |
3377 | returnexecuted 3610 times by 1 test: return (bind_variable_internal (v->name, value, nvc->table, 0, flags)); (bind_variable_internal (v->name, value, nvc->table, 0, flags));executed 3610 times by 1 test: return (bind_variable_internal (v->name, value, nvc->table, 0, flags)); | 3610 |
3378 | }executed 104129782 times by 1 test: end of block | 104129782 |
3379 | }executed 219459527 times by 1 test: end of block | 219459527 |
3380 | | - |
3381 | returnexecuted 115329745 times by 1 test: return (bind_variable_internal (name, value, global_variables->table, 0, flags)); (bind_variable_internal (name, value, global_variables->table, 0, flags));executed 115329745 times by 1 test: return (bind_variable_internal (name, value, global_variables->table, 0, flags)); | 115329745 |
3382 | } | - |
3383 | | - |
3384 | SHELL_VAR * | - |
3385 | bind_global_variable (name, value, flags) | - |
3386 | const char *name; | - |
3387 | char *value; | - |
3388 | int flags; | - |
3389 | { | - |
3390 | if (shell_variables == 0TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
) | 0-7 |
3391 | create_variable_tables (); never executed: create_variable_tables (); | 0 |
3392 | | - |
3393 | | - |
3394 | returnexecuted 7 times by 1 test: return (bind_variable_internal (name, value, global_variables->table, 0, flags)); (bind_variable_internal (name, value, global_variables->table, 0, flags));executed 7 times by 1 test: return (bind_variable_internal (name, value, global_variables->table, 0, flags)); | 7 |
3395 | } | - |
3396 | | - |
3397 | | - |
3398 | | - |
3399 | | - |
3400 | | - |
3401 | | - |
3402 | SHELL_VAR * | - |
3403 | bind_variable_value (var, value, aflags) | - |
3404 | SHELL_VAR *var; | - |
3405 | char *value; | - |
3406 | int aflags; | - |
3407 | { | - |
3408 | char *t; | - |
3409 | int invis; | - |
3410 | | - |
3411 | invis = ((((var)->attributes) & (0x0001000))); | - |
3412 | ((var)->attributes &= ~(0x0001000)); | - |
3413 | | - |
3414 | if (var->assign_funcTRUE | never evaluated | FALSE | evaluated 670 times by 1 test |
) | 0-670 |
3415 | { | - |
3416 | | - |
3417 | | - |
3418 | t = (TRUE | never evaluated | FALSE | never evaluated |
aflags & 0x0001)TRUE | never evaluated | FALSE | never evaluated |
? make_variable_value (var, value, aflags) : value; | 0 |
3419 | (*(var->assign_func)) (var, t, -1, 0); | - |
3420 | if (t != valueTRUE | never evaluated | FALSE | never evaluated |
&& tTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
3421 | sh_xfree((t), "variables.c", 3150); never executed: sh_xfree((t), "variables.c", 3150); | 0 |
3422 | } never executed: end of block | 0 |
3423 | else | - |
3424 | { | - |
3425 | t = make_variable_value (var, value, aflags); | - |
3426 | if ((TRUE | evaluated 185 times by 1 test | FALSE | evaluated 485 times by 1 test |
aflags & (0x0010|0x0020)) == 0x0010TRUE | evaluated 185 times by 1 test | FALSE | evaluated 485 times by 1 test |
&& check_selfref (((var)->name), t, 0)TRUE | evaluated 9 times by 1 test | FALSE | evaluated 176 times by 1 test |
) | 9-485 |
3427 | { | - |
3428 | if (variable_contextTRUE | evaluated 8 times by 1 test | FALSE | evaluated 1 time by 1 test |
) | 1-8 |
3429 | internal_warning (executed 8 times by 1 test: internal_warning ( dcgettext (((void *)0), "%s: circular name reference" , 5) , ((var)->name)); | 8 |
3430 | dcgettext (((void *)0), executed 8 times by 1 test: internal_warning ( dcgettext (((void *)0), "%s: circular name reference" , 5) , ((var)->name)); | 8 |
3431 | "%s: circular name reference"executed 8 times by 1 test: internal_warning ( dcgettext (((void *)0), "%s: circular name reference" , 5) , ((var)->name)); | 8 |
3432 | , 5)executed 8 times by 1 test: internal_warning ( dcgettext (((void *)0), "%s: circular name reference" , 5) , ((var)->name)); | 8 |
3433 | , ((var)->name));executed 8 times by 1 test: internal_warning ( dcgettext (((void *)0), "%s: circular name reference" , 5) , ((var)->name)); | 8 |
3434 | else | - |
3435 | { | - |
3436 | internal_error ( | - |
3437 | dcgettext (((void *)0), | - |
3438 | "%s: nameref variable self references not allowed" | - |
3439 | , 5) | - |
3440 | , ((var)->name)); | - |
3441 | sh_xfree((t), "variables.c", 3162); | - |
3442 | if (invisTRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
) | 0-1 |
3443 | (( never executed: ((var)->attributes |= (0x0001000)); var)->attributes |= (0x0001000));never executed: ((var)->attributes |= (0x0001000)); | 0 |
3444 | returnexecuted 1 time by 1 test: return ((SHELL_VAR *) ((void *)0) ); ((SHELL_VAR *)executed 1 time by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 1 |
3445 | ((void *)0)executed 1 time by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 1 |
3446 | );executed 1 time by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 1 |
3447 | } | - |
3448 | } | - |
3449 | if ((TRUE | evaluated 184 times by 1 test | FALSE | evaluated 485 times by 1 test |
aflags & 0x0010)TRUE | evaluated 184 times by 1 test | FALSE | evaluated 485 times by 1 test |
&& (TRUE | evaluated 13 times by 1 test | FALSE | evaluated 171 times by 1 test |
valid_nameref_value (t, 0) == 0)TRUE | evaluated 13 times by 1 test | FALSE | evaluated 171 times by 1 test |
) | 13-485 |
3450 | { | - |
3451 | sh_xfree((t), "variables.c", 3170); | - |
3452 | if (invisTRUE | evaluated 5 times by 1 test | FALSE | evaluated 8 times by 1 test |
) | 5-8 |
3453 | ((executed 5 times by 1 test: ((var)->attributes |= (0x0001000)); var)->attributes |= (0x0001000));executed 5 times by 1 test: ((var)->attributes |= (0x0001000)); | 5 |
3454 | returnexecuted 13 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); ((SHELL_VAR *)executed 13 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 13 |
3455 | ((void *)0)executed 13 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 13 |
3456 | );executed 13 times by 1 test: return ((SHELL_VAR *) ((void *)0) ); | 13 |
3457 | } | - |
3458 | do { if (((TRUE | evaluated 208 times by 1 test | FALSE | evaluated 448 times by 1 test |
var)->value)TRUE | evaluated 208 times by 1 test | FALSE | evaluated 448 times by 1 test |
) sh_xfree((((var)->value)), "variables.c", 3175);executed 208 times by 1 test: sh_xfree((((var)->value)), "variables.c", 3175); } while (0); | 208-448 |
3459 | ((var)->value = (t)); | - |
3460 | }executed 656 times by 1 test: end of block | 656 |
3461 | | - |
3462 | do { if ((TRUE | evaluated 4 times by 1 test | FALSE | evaluated 652 times by 1 test |
var)->exportstrTRUE | evaluated 4 times by 1 test | FALSE | evaluated 652 times by 1 test |
) { sh_xfree(((var)->exportstr), "variables.c", 3179); (var)->exportstr = (char *) | 4-652 |
3463 | ((void *)0) | - |
3464 | ; }executed 4 times by 1 test: end of block } while (0); | 4 |
3465 | | - |
3466 | if (mark_modified_varsTRUE | evaluated 2 times by 1 test | FALSE | evaluated 654 times by 1 test |
) | 2-654 |
3467 | ((executed 2 times by 1 test: ((var)->attributes |= (0x0000001)); var)->attributes |= (0x0000001));executed 2 times by 1 test: ((var)->attributes |= (0x0000001)); | 2 |
3468 | | - |
3469 | if (((((TRUE | evaluated 9 times by 1 test | FALSE | evaluated 647 times by 1 test |
var)->attributes) & (0x0000001)))TRUE | evaluated 9 times by 1 test | FALSE | evaluated 647 times by 1 test |
) | 9-647 |
3470 | array_needs_making = 1;executed 9 times by 1 test: array_needs_making = 1; | 9 |
3471 | | - |
3472 | returnexecuted 656 times by 1 test: return (var); (var);executed 656 times by 1 test: return (var); | 656 |
3473 | } | - |
3474 | SHELL_VAR * | - |
3475 | bind_int_variable (lhs, rhs, flags) | - |
3476 | char *lhs, *rhs; | - |
3477 | int flags; | - |
3478 | { | - |
3479 | register SHELL_VAR *v; | - |
3480 | int isint, isarr, implicitarray; | - |
3481 | | - |
3482 | isint = isarr = implicitarray = 0; | - |
3483 | | - |
3484 | if (valid_array_reference (lhs, (flags & 0x0080) != 0)TRUE | evaluated 10045 times by 1 test | FALSE | evaluated 7173330 times by 1 test |
) | 10045-7173330 |
3485 | { | - |
3486 | isarr = 1; | - |
3487 | v = array_variable_part (lhs, (flags & 0x0080) != 0, (char **)0, (int *)0); | - |
3488 | }executed 10045 times by 1 test: end of block | 10045 |
3489 | else | - |
3490 | | - |
3491 | v = find_variable (lhs);executed 7173330 times by 1 test: v = find_variable (lhs); | 7173330 |
3492 | | - |
3493 | if (vTRUE | evaluated 7182659 times by 1 test | FALSE | evaluated 716 times by 1 test |
) | 716-7182659 |
3494 | { | - |
3495 | isint = ((((v)->attributes) & (0x0000010))); | - |
3496 | ((v)->attributes &= ~(0x0000010)); | - |
3497 | | - |
3498 | if (((((TRUE | evaluated 10038 times by 1 test | FALSE | evaluated 7172621 times by 1 test |
v)->attributes) & (0x0000004)))TRUE | evaluated 10038 times by 1 test | FALSE | evaluated 7172621 times by 1 test |
&& isarr == 0TRUE | evaluated 7 times by 1 test | FALSE | evaluated 10031 times by 1 test |
) | 7-7172621 |
3499 | implicitarray = 1;executed 7 times by 1 test: implicitarray = 1; | 7 |
3500 | | - |
3501 | }executed 7182659 times by 1 test: end of block | 7182659 |
3502 | | - |
3503 | | - |
3504 | if (isarrTRUE | evaluated 10045 times by 1 test | FALSE | evaluated 7173330 times by 1 test |
) | 10045-7173330 |
3505 | v = assign_array_element (lhs, rhs, flags);executed 10045 times by 1 test: v = assign_array_element (lhs, rhs, flags); | 10045 |
3506 | else if (implicitarrayTRUE | evaluated 7 times by 1 test | FALSE | evaluated 7173323 times by 1 test |
) | 7-7173323 |
3507 | v = bind_array_variable (lhs, 0, rhs, 0);executed 7 times by 1 test: v = bind_array_variable (lhs, 0, rhs, 0); | 7 |
3508 | else | - |
3509 | | - |
3510 | v = bind_variable (lhs, rhs, 0);executed 7173323 times by 1 test: v = bind_variable (lhs, rhs, 0); | 7173323 |
3511 | | - |
3512 | if (vTRUE | evaluated 7183362 times by 1 test | FALSE | evaluated 12 times by 1 test |
) | 12-7183362 |
3513 | { | - |
3514 | if (isintTRUE | evaluated 208 times by 1 test | FALSE | evaluated 7183154 times by 1 test |
) | 208-7183154 |
3515 | ((executed 208 times by 1 test: ((v)->attributes |= (0x0000010)); v)->attributes |= (0x0000010));executed 208 times by 1 test: ((v)->attributes |= (0x0000010)); | 208 |
3516 | ((v)->attributes &= ~(0x0001000)); | - |
3517 | }executed 7183362 times by 1 test: end of block | 7183362 |
3518 | | - |
3519 | if (vTRUE | evaluated 7183362 times by 1 test | FALSE | evaluated 12 times by 1 test |
&& ((((TRUE | never evaluated | FALSE | evaluated 7183362 times by 1 test |
v)->attributes) & (0x0000800)))TRUE | never evaluated | FALSE | evaluated 7183362 times by 1 test |
) | 0-7183362 |
3520 | internal_warning ( never executed: internal_warning ( dcgettext (((void *)0), "%s: assigning integer to name reference" , 5) , lhs); | 0 |
3521 | dcgettext (((void *)0), never executed: internal_warning ( dcgettext (((void *)0), "%s: assigning integer to name reference" , 5) , lhs); | 0 |
3522 | "%s: assigning integer to name reference" never executed: internal_warning ( dcgettext (((void *)0), "%s: assigning integer to name reference" , 5) , lhs); | 0 |
3523 | , 5) never executed: internal_warning ( dcgettext (((void *)0), "%s: assigning integer to name reference" , 5) , lhs); | 0 |
3524 | , lhs); never executed: internal_warning ( dcgettext (((void *)0), "%s: assigning integer to name reference" , 5) , lhs); | 0 |
3525 | | - |
3526 | returnexecuted 7183374 times by 1 test: return (v); (v);executed 7183374 times by 1 test: return (v); | 7183374 |
3527 | } | - |
3528 | | - |
3529 | SHELL_VAR * | - |
3530 | bind_var_to_int (var, val) | - |
3531 | char *var; | - |
3532 | intmax_t val; | - |
3533 | { | - |
3534 | char ibuf[((sizeof (intmax_t) * 8 - (! ((intmax_t) 0 < (intmax_t) -1))) * 302 / 1000 + 1 + (! ((intmax_t) 0 < (intmax_t) -1))) + 1], *p; | - |
3535 | | - |
3536 | p = fmtulong (val, 10, ibuf, sizeof (ibuf), 0); | - |
3537 | returnexecuted 27 times by 1 test: return (bind_int_variable (var, p, 0)); (bind_int_variable (var, p, 0));executed 27 times by 1 test: return (bind_int_variable (var, p, 0)); | 27 |
3538 | } | - |
3539 | | - |
3540 | | - |
3541 | | - |
3542 | SHELL_VAR * | - |
3543 | bind_function (name, value) | - |
3544 | const char *name; | - |
3545 | COMMAND *value; | - |
3546 | { | - |
3547 | SHELL_VAR *entry; | - |
3548 | | - |
3549 | entry = find_function (name); | - |
3550 | if (entry == 0TRUE | evaluated 9974 times by 1 test | FALSE | evaluated 1180 times by 1 test |
) | 1180-9974 |
3551 | { | - |
3552 | BUCKET_CONTENTS *elt; | - |
3553 | | - |
3554 | elt = hash_insert ((char *)strcpy (sh_xmalloc((1 + strlen (name)), "variables.c", 3276), (name)), shell_functions, 0x01); | - |
3555 | entry = new_shell_variable (name); | - |
3556 | elt->data = (void *)entry; | - |
3557 | }executed 9974 times by 1 test: end of block | 9974 |
3558 | else | - |
3559 | do { if ((TRUE | never evaluated | FALSE | evaluated 1180 times by 1 test |
entry)->exportstrTRUE | never evaluated | FALSE | evaluated 1180 times by 1 test |
) { sh_xfree(((entry)->exportstr), "variables.c", 3281); (entry)->exportstr = (char *) | 0-1180 |
3560 | ((void *)0) | - |
3561 | ; } never executed: end of block }executed 1180 times by 1 test: end of block while (0); | 0-1180 |
3562 | | - |
3563 | if (((TRUE | evaluated 1180 times by 1 test | FALSE | evaluated 9974 times by 1 test |
entry)->value != 0)TRUE | evaluated 1180 times by 1 test | FALSE | evaluated 9974 times by 1 test |
) | 1180-9974 |
3564 | dispose_command ((COMMAND *)((entry)->value));executed 1180 times by 1 test: dispose_command ((COMMAND *)((entry)->value)); | 1180 |
3565 | | - |
3566 | if (valueTRUE | evaluated 11154 times by 1 test | FALSE | never evaluated |
) | 0-11154 |
3567 | ((executed 11154 times by 1 test: ((entry)->value = (char *)(copy_command (value))); entry)->value = (char *)(copy_command (value)));executed 11154 times by 1 test: ((entry)->value = (char *)(copy_command (value))); | 11154 |
3568 | else | - |
3569 | (( never executed: ((entry)->value = (char *)(0)); entry)->value = (char *)(0));never executed: ((entry)->value = (char *)(0)); | 0 |
3570 | | - |
3571 | ((entry)->attributes |= (0x0000008)); | - |
3572 | | - |
3573 | if (mark_modified_varsTRUE | evaluated 1 time by 1 test | FALSE | evaluated 11153 times by 1 test |
) | 1-11153 |
3574 | ((executed 1 time by 1 test: ((entry)->attributes |= (0x0000001)); entry)->attributes |= (0x0000001));executed 1 time by 1 test: ((entry)->attributes |= (0x0000001)); | 1 |
3575 | | - |
3576 | ((entry)->attributes &= ~(0x0001000)); | - |
3577 | | - |
3578 | if (((((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 11153 times by 1 test |
entry)->attributes) & (0x0000001)))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 11153 times by 1 test |
) | 1-11153 |
3579 | array_needs_making = 1;executed 1 time by 1 test: array_needs_making = 1; | 1 |
3580 | | - |
3581 | | - |
3582 | set_itemlist_dirty (&it_functions); | - |
3583 | | - |
3584 | | - |
3585 | returnexecuted 11154 times by 1 test: return (entry); (entry);executed 11154 times by 1 test: return (entry); | 11154 |
3586 | } | - |
3587 | | - |
3588 | | - |
3589 | | - |
3590 | | - |
3591 | | - |
3592 | | - |
3593 | void | - |
3594 | bind_function_def (name, value, flags) | - |
3595 | const char *name; | - |
3596 | FUNCTION_DEF *value; | - |
3597 | int flags; | - |
3598 | { | - |
3599 | FUNCTION_DEF *entry; | - |
3600 | BUCKET_CONTENTS *elt; | - |
3601 | COMMAND *cmd; | - |
3602 | | - |
3603 | entry = find_function_def (name); | - |
3604 | if (entryTRUE | evaluated 12446 times by 1 test | FALSE | evaluated 9919 times by 1 test |
&& (TRUE | evaluated 11154 times by 1 test | FALSE | evaluated 1292 times by 1 test |
flags & 1)TRUE | evaluated 11154 times by 1 test | FALSE | evaluated 1292 times by 1 test |
) | 1292-12446 |
3605 | { | - |
3606 | dispose_function_def_contents (entry); | - |
3607 | entry = copy_function_def_contents (value, entry); | - |
3608 | }executed 11154 times by 1 test: end of block | 11154 |
3609 | else if (entryTRUE | evaluated 1292 times by 1 test | FALSE | evaluated 9919 times by 1 test |
) | 1292-9919 |
3610 | return;executed 1292 times by 1 test: return; | 1292 |
3611 | else | - |
3612 | { | - |
3613 | cmd = value->command; | - |
3614 | value->command = 0; | - |
3615 | entry = copy_function_def (value); | - |
3616 | value->command = cmd; | - |
3617 | | - |
3618 | elt = hash_insert ((char *)strcpy (sh_xmalloc((1 + strlen (name)), "variables.c", 3338), (name)), shell_function_defs, 0x01); | - |
3619 | elt->data = (void * *)entry; | - |
3620 | }executed 9919 times by 1 test: end of block | 9919 |
3621 | } | - |
3622 | | - |
3623 | | - |
3624 | | - |
3625 | | - |
3626 | | - |
3627 | | - |
3628 | int | - |
3629 | assign_in_env (word, flags) | - |
3630 | WORD_DESC *word; | - |
3631 | int flags; | - |
3632 | { | - |
3633 | int offset, aflags; | - |
3634 | char *name, *temp, *value, *newname; | - |
3635 | SHELL_VAR *var; | - |
3636 | const char *string; | - |
3637 | | - |
3638 | string = word->word; | - |
3639 | | - |
3640 | aflags = 0; | - |
3641 | offset = assignment (string, 0); | - |
3642 | newname = name = (char *)strcpy (sh_xmalloc((1 + strlen (string)), "variables.c", 3362), (string)); | - |
3643 | value = (char *) | - |
3644 | ((void *)0) | - |
3645 | ; | - |
3646 | | - |
3647 | if (name[offset] == '='TRUE | evaluated 1844 times by 1 test | FALSE | never evaluated |
) | 0-1844 |
3648 | { | - |
3649 | name[offset] = 0; | - |
3650 | | - |
3651 | | - |
3652 | if (name[offset - 1] == '+'TRUE | evaluated 11 times by 1 test | FALSE | evaluated 1833 times by 1 test |
) | 11-1833 |
3653 | { | - |
3654 | name[offset - 1] = '\0'; | - |
3655 | aflags |= 0x0001; | - |
3656 | }executed 11 times by 1 test: end of block | 11 |
3657 | | - |
3658 | var = find_variable (name); | - |
3659 | if (var == 0TRUE | evaluated 1531 times by 1 test | FALSE | evaluated 313 times by 1 test |
) | 313-1531 |
3660 | { | - |
3661 | var = find_variable_last_nameref (name, 1); | - |
3662 | | - |
3663 | | - |
3664 | | - |
3665 | | - |
3666 | | - |
3667 | if (varTRUE | evaluated 9 times by 1 test | FALSE | evaluated 1522 times by 1 test |
&& ((((TRUE | evaluated 9 times by 1 test | FALSE | never evaluated |
var)->attributes) & (0x0000800)))TRUE | evaluated 9 times by 1 test | FALSE | never evaluated |
&& valid_nameref_value (((var)->value), 1)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 8 times by 1 test |
) | 0-1522 |
3668 | { | - |
3669 | newname = ((var)->value); | - |
3670 | var = 0; | - |
3671 | }executed 1 time by 1 test: end of block | 1 |
3672 | }executed 1531 times by 1 test: end of block | 1531 |
3673 | else | - |
3674 | newname = ((var)->name);executed 313 times by 1 test: newname = ((var)->name); | 313 |
3675 | | - |
3676 | if (varTRUE | evaluated 321 times by 1 test | FALSE | evaluated 1523 times by 1 test |
&& (((((TRUE | evaluated 19 times by 1 test | FALSE | evaluated 302 times by 1 test |
var)->attributes) & (0x0000002)))TRUE | evaluated 19 times by 1 test | FALSE | evaluated 302 times by 1 test |
|| ((((TRUE | never evaluated | FALSE | evaluated 302 times by 1 test |
var)->attributes) & (0x0004000)))TRUE | never evaluated | FALSE | evaluated 302 times by 1 test |
)) | 0-1523 |
3677 | { | - |
3678 | if (((((TRUE | evaluated 19 times by 1 test | FALSE | never evaluated |
var)->attributes) & (0x0000002)))TRUE | evaluated 19 times by 1 test | FALSE | never evaluated |
) | 0-19 |
3679 | err_readonly (name);executed 19 times by 1 test: err_readonly (name); | 19 |
3680 | sh_xfree((name), "variables.c", 3398); | - |
3681 | returnexecuted 19 times by 1 test: return (0); (0);executed 19 times by 1 test: return (0); | 19 |
3682 | } | - |
3683 | temp = name + offset + 1; | - |
3684 | | - |
3685 | value = expand_assignment_string_to_string (temp, 0); | - |
3686 | | - |
3687 | if (varTRUE | evaluated 302 times by 1 test | FALSE | evaluated 1523 times by 1 test |
&& (TRUE | evaluated 11 times by 1 test | FALSE | evaluated 291 times by 1 test |
aflags & 0x0001)TRUE | evaluated 11 times by 1 test | FALSE | evaluated 291 times by 1 test |
) | 11-1523 |
3688 | { | - |
3689 | if (value == 0TRUE | evaluated 3 times by 1 test | FALSE | evaluated 8 times by 1 test |
) | 3-8 |
3690 | { | - |
3691 | value = (char *)sh_xmalloc((1), "variables.c", 3409); | - |
3692 | value[0] = '\0'; | - |
3693 | }executed 3 times by 1 test: end of block | 3 |
3694 | temp = make_variable_value (var, value, aflags); | - |
3695 | do { if (valueTRUE | evaluated 11 times by 1 test | FALSE | never evaluated |
) sh_xfree((value), "variables.c", 3413);executed 11 times by 1 test: sh_xfree((value), "variables.c", 3413); } while (0); | 0-11 |
3696 | value = temp; | - |
3697 | }executed 11 times by 1 test: end of block | 11 |
3698 | }executed 1825 times by 1 test: end of block | 1825 |
3699 | | - |
3700 | if (temporary_env == 0TRUE | evaluated 1753 times by 1 test | FALSE | evaluated 72 times by 1 test |
) | 72-1753 |
3701 | temporary_env = hash_create (4);executed 1753 times by 1 test: temporary_env = hash_create (4); | 1753 |
3702 | | - |
3703 | var = hash_lookup (newname, temporary_env); | - |
3704 | if (var == 0TRUE | evaluated 1824 times by 1 test | FALSE | evaluated 1 time by 1 test |
) | 1-1824 |
3705 | var = make_new_variable (newname, temporary_env);executed 1824 times by 1 test: var = make_new_variable (newname, temporary_env); | 1824 |
3706 | else | - |
3707 | do { if (((TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
var)->value)TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) sh_xfree((((var)->value)), "variables.c", 3425);executed 1 time by 1 test: sh_xfree((((var)->value)), "variables.c", 3425); }executed 1 time by 1 test: end of block while (0); | 0-1 |
3708 | | - |
3709 | if (value == 0TRUE | evaluated 16 times by 1 test | FALSE | evaluated 1809 times by 1 test |
) | 16-1809 |
3710 | { | - |
3711 | value = (char *)sh_xmalloc((1), "variables.c", 3429); | - |
3712 | value[0] = '\0'; | - |
3713 | }executed 16 times by 1 test: end of block | 16 |
3714 | | - |
3715 | ((var)->value = (value)); | - |
3716 | var->attributes |= (0x0000001|0x0100000); | - |
3717 | var->context = variable_context; | - |
3718 | | - |
3719 | do { if ((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1824 times by 1 test |
var)->exportstrTRUE | evaluated 1 time by 1 test | FALSE | evaluated 1824 times by 1 test |
) { sh_xfree(((var)->exportstr), "variables.c", 3437); (var)->exportstr = (char *) | 1-1824 |
3720 | ((void *)0) | - |
3721 | ; }executed 1 time by 1 test: end of block } while (0); | 1 |
3722 | var->exportstr = mk_env_string (newname, value, 0); | - |
3723 | | - |
3724 | array_needs_making = 1; | - |
3725 | | - |
3726 | if (flagsTRUE | evaluated 1787 times by 1 test | FALSE | evaluated 38 times by 1 test |
) | 38-1787 |
3727 | stupidly_hack_special_variables (newname);executed 1787 times by 1 test: stupidly_hack_special_variables (newname); | 1787 |
3728 | | - |
3729 | if (echo_command_at_executeTRUE | never evaluated | FALSE | evaluated 1825 times by 1 test |
) | 0-1825 |
3730 | | - |
3731 | | - |
3732 | xtrace_print_assignment (name, value, 0, 1); never executed: xtrace_print_assignment (name, value, 0, 1); | 0 |
3733 | | - |
3734 | sh_xfree((name), "variables.c", 3450); | - |
3735 | returnexecuted 1825 times by 1 test: return 1; 1;executed 1825 times by 1 test: return 1; | 1825 |
3736 | } | - |
3737 | static void | - |
3738 | dispose_variable_value (var) | - |
3739 | SHELL_VAR *var; | - |
3740 | { | - |
3741 | if (((((TRUE | evaluated 4653 times by 1 test | FALSE | evaluated 10648 times by 1 test |
var)->attributes) & (0x0000008)))TRUE | evaluated 4653 times by 1 test | FALSE | evaluated 10648 times by 1 test |
) | 4653-10648 |
3742 | dispose_command ((COMMAND *)((var)->value));executed 4653 times by 1 test: dispose_command ((COMMAND *)((var)->value)); | 4653 |
3743 | | - |
3744 | else if (((((TRUE | evaluated 458 times by 1 test | FALSE | evaluated 10190 times by 1 test |
var)->attributes) & (0x0000004)))TRUE | evaluated 458 times by 1 test | FALSE | evaluated 10190 times by 1 test |
) | 458-10190 |
3745 | array_dispose ((ARRAY *)((var)->value));executed 458 times by 1 test: array_dispose ((ARRAY *)((var)->value)); | 458 |
3746 | else if (((((TRUE | evaluated 71 times by 1 test | FALSE | evaluated 10119 times by 1 test |
var)->attributes) & (0x0000040)))TRUE | evaluated 71 times by 1 test | FALSE | evaluated 10119 times by 1 test |
) | 71-10119 |
3747 | assoc_dispose ((HASH_TABLE *)((var)->value));executed 71 times by 1 test: assoc_dispose ((HASH_TABLE *)((var)->value)); | 71 |
3748 | | - |
3749 | else if (((((TRUE | evaluated 189 times by 1 test | FALSE | evaluated 9930 times by 1 test |
var)->attributes) & (0x0000800)))TRUE | evaluated 189 times by 1 test | FALSE | evaluated 9930 times by 1 test |
) | 189-9930 |
3750 | do { if (((TRUE | evaluated 113 times by 1 test | FALSE | evaluated 76 times by 1 test |
var)->value)TRUE | evaluated 113 times by 1 test | FALSE | evaluated 76 times by 1 test |
) sh_xfree((((var)->value)), "variables.c", 3521);executed 113 times by 1 test: sh_xfree((((var)->value)), "variables.c", 3521); }executed 189 times by 1 test: end of block while (0); | 76-189 |
3751 | else | - |
3752 | do { if (((TRUE | evaluated 9721 times by 1 test | FALSE | evaluated 209 times by 1 test |
var)->value)TRUE | evaluated 9721 times by 1 test | FALSE | evaluated 209 times by 1 test |
) sh_xfree((((var)->value)), "variables.c", 3523);executed 9721 times by 1 test: sh_xfree((((var)->value)), "variables.c", 3523); }executed 9930 times by 1 test: end of block while (0); | 209-9930 |
3753 | } | - |
3754 | | - |
3755 | void | - |
3756 | dispose_variable (var) | - |
3757 | SHELL_VAR *var; | - |
3758 | { | - |
3759 | if (var == 0TRUE | never evaluated | FALSE | evaluated 15314 times by 1 test |
) | 0-15314 |
3760 | return; never executed: return; | 0 |
3761 | | - |
3762 | if (((((TRUE | evaluated 15284 times by 1 test | FALSE | evaluated 30 times by 1 test |
var)->attributes) & (0x0020000))) == 0TRUE | evaluated 15284 times by 1 test | FALSE | evaluated 30 times by 1 test |
) | 30-15284 |
3763 | dispose_variable_value (var);executed 15284 times by 1 test: dispose_variable_value (var); | 15284 |
3764 | | - |
3765 | do { if ((TRUE | evaluated 2162 times by 1 test | FALSE | evaluated 13152 times by 1 test |
var)->exportstrTRUE | evaluated 2162 times by 1 test | FALSE | evaluated 13152 times by 1 test |
) sh_xfree(((var)->exportstr), "variables.c", 3536);executed 2162 times by 1 test: sh_xfree(((var)->exportstr), "variables.c", 3536); } while (0); | 2162-13152 |
3766 | | - |
3767 | sh_xfree((var->name), "variables.c", 3538); | - |
3768 | | - |
3769 | if (((((TRUE | evaluated 2205 times by 1 test | FALSE | evaluated 13109 times by 1 test |
var)->attributes) & (0x0000001)))TRUE | evaluated 2205 times by 1 test | FALSE | evaluated 13109 times by 1 test |
) | 2205-13109 |
3770 | array_needs_making = 1;executed 2205 times by 1 test: array_needs_making = 1; | 2205 |
3771 | | - |
3772 | sh_xfree((var), "variables.c", 3543); | - |
3773 | }executed 15314 times by 1 test: end of block | 15314 |
3774 | | - |
3775 | | - |
3776 | | - |
3777 | int | - |
3778 | unbind_variable (name) | - |
3779 | const char *name; | - |
3780 | { | - |
3781 | SHELL_VAR *v, *nv; | - |
3782 | int r; | - |
3783 | | - |
3784 | v = var_lookup (name, shell_variables); | - |
3785 | nv = (vTRUE | evaluated 7118 times by 1 test | FALSE | evaluated 12794 times by 1 test |
&& ((((TRUE | evaluated 9 times by 1 test | FALSE | evaluated 7109 times by 1 test |
v)->attributes) & (0x0000800)))TRUE | evaluated 9 times by 1 test | FALSE | evaluated 7109 times by 1 test |
) ? find_variable_nameref (v) : (SHELL_VAR *) | 9-12794 |
3786 | ((void *)0) | - |
3787 | ; | - |
3788 | | - |
3789 | r = nvTRUE | evaluated 3 times by 1 test | FALSE | evaluated 19909 times by 1 test |
? makunbound (nv->name, shell_variables) : makunbound (name, shell_variables); | 3-19909 |
3790 | returnexecuted 19912 times by 1 test: return r; r;executed 19912 times by 1 test: return r; | 19912 |
3791 | } | - |
3792 | | - |
3793 | | - |
3794 | int | - |
3795 | unbind_nameref (name) | - |
3796 | const char *name; | - |
3797 | { | - |
3798 | SHELL_VAR *v; | - |
3799 | | - |
3800 | v = var_lookup (name, shell_variables); | - |
3801 | if (vTRUE | evaluated 138 times by 1 test | FALSE | evaluated 42 times by 1 test |
&& ((((TRUE | evaluated 109 times by 1 test | FALSE | evaluated 29 times by 1 test |
v)->attributes) & (0x0000800)))TRUE | evaluated 109 times by 1 test | FALSE | evaluated 29 times by 1 test |
) | 29-138 |
3802 | returnexecuted 109 times by 1 test: return makunbound (name, shell_variables); makunbound (name, shell_variables);executed 109 times by 1 test: return makunbound (name, shell_variables); | 109 |
3803 | returnexecuted 71 times by 1 test: return 0; 0;executed 71 times by 1 test: return 0; | 71 |
3804 | } | - |
3805 | | - |
3806 | | - |
3807 | int | - |
3808 | unbind_variable_noref (name) | - |
3809 | const char *name; | - |
3810 | { | - |
3811 | SHELL_VAR *v; | - |
3812 | | - |
3813 | v = var_lookup (name, shell_variables); | - |
3814 | if (vTRUE | evaluated 143 times by 1 test | FALSE | evaluated 5570 times by 1 test |
) | 143-5570 |
3815 | returnexecuted 143 times by 1 test: return makunbound (name, shell_variables); makunbound (name, shell_variables);executed 143 times by 1 test: return makunbound (name, shell_variables); | 143 |
3816 | returnexecuted 5570 times by 1 test: return 0; 0;executed 5570 times by 1 test: return 0; | 5570 |
3817 | } | - |
3818 | | - |
3819 | int | - |
3820 | check_unbind_variable (name) | - |
3821 | const char *name; | - |
3822 | { | - |
3823 | SHELL_VAR *v; | - |
3824 | | - |
3825 | v = find_variable (name); | - |
3826 | if (vTRUE | evaluated 15 times by 1 test | FALSE | evaluated 6 times by 1 test |
&& ((((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 9 times by 1 test |
v)->attributes) & (0x0000002)))TRUE | evaluated 6 times by 1 test | FALSE | evaluated 9 times by 1 test |
) | 6-15 |
3827 | { | - |
3828 | internal_error ( | - |
3829 | dcgettext (((void *)0), | - |
3830 | "%s: cannot unset: readonly %s" | - |
3831 | , 5) | - |
3832 | , name, "variable"); | - |
3833 | returnexecuted 6 times by 1 test: return -1; -1;executed 6 times by 1 test: return -1; | 6 |
3834 | } | - |
3835 | returnexecuted 15 times by 1 test: return (unbind_variable (name)); (unbind_variable (name));executed 15 times by 1 test: return (unbind_variable (name)); | 15 |
3836 | } | - |
3837 | | - |
3838 | | - |
3839 | int | - |
3840 | unbind_func (name) | - |
3841 | const char *name; | - |
3842 | { | - |
3843 | BUCKET_CONTENTS *elt; | - |
3844 | SHELL_VAR *func; | - |
3845 | | - |
3846 | elt = hash_remove (name, shell_functions, 0); | - |
3847 | | - |
3848 | if (elt == 0TRUE | evaluated 1734 times by 1 test | FALSE | evaluated 4649 times by 1 test |
) | 1734-4649 |
3849 | returnexecuted 1734 times by 1 test: return -1; -1;executed 1734 times by 1 test: return -1; | 1734 |
3850 | | - |
3851 | | - |
3852 | set_itemlist_dirty (&it_functions); | - |
3853 | | - |
3854 | | - |
3855 | func = (SHELL_VAR *)elt->data; | - |
3856 | if (funcTRUE | evaluated 4649 times by 1 test | FALSE | never evaluated |
) | 0-4649 |
3857 | { | - |
3858 | if (((((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 4648 times by 1 test |
func)->attributes) & (0x0000001)))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 4648 times by 1 test |
) | 1-4648 |
3859 | array_needs_making++;executed 1 time by 1 test: array_needs_making++; | 1 |
3860 | dispose_variable (func); | - |
3861 | }executed 4649 times by 1 test: end of block | 4649 |
3862 | | - |
3863 | sh_xfree((elt->key), "variables.c", 3628); | - |
3864 | sh_xfree((elt), "variables.c", 3629); | - |
3865 | | - |
3866 | returnexecuted 4649 times by 1 test: return 0; 0;executed 4649 times by 1 test: return 0; | 4649 |
3867 | } | - |
3868 | | - |
3869 | | - |
3870 | int | - |
3871 | unbind_function_def (name) | - |
3872 | const char *name; | - |
3873 | { | - |
3874 | BUCKET_CONTENTS *elt; | - |
3875 | FUNCTION_DEF *funcdef; | - |
3876 | | - |
3877 | elt = hash_remove (name, shell_function_defs, 0); | - |
3878 | | - |
3879 | if (elt == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
3880 | return never executed: return -1; -1;never executed: return -1; | 0 |
3881 | | - |
3882 | funcdef = (FUNCTION_DEF *)elt->data; | - |
3883 | if (funcdefTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
3884 | dispose_function_def (funcdef); never executed: dispose_function_def (funcdef); | 0 |
3885 | | - |
3886 | sh_xfree((elt->key), "variables.c", 3651); | - |
3887 | sh_xfree((elt), "variables.c", 3652); | - |
3888 | | - |
3889 | return never executed: return 0; 0;never executed: return 0; | 0 |
3890 | } | - |
3891 | | - |
3892 | | - |
3893 | int | - |
3894 | delete_var (name, vc) | - |
3895 | const char *name; | - |
3896 | VAR_CONTEXT *vc; | - |
3897 | { | - |
3898 | BUCKET_CONTENTS *elt; | - |
3899 | SHELL_VAR *old_var; | - |
3900 | VAR_CONTEXT *v; | - |
3901 | | - |
3902 | for (elt = (BUCKET_CONTENTS *) | - |
3903 | ((void *)0) | - |
3904 | , v = vc; vTRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
; v = v->down) | 0-8 |
3905 | if (elt = hash_remove (name, v->table, 0)TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
) | 0-8 |
3906 | break;executed 8 times by 1 test: break; | 8 |
3907 | | - |
3908 | if (elt == 0TRUE | never evaluated | FALSE | evaluated 8 times by 1 test |
) | 0-8 |
3909 | return never executed: return (-1); (-1);never executed: return (-1); | 0 |
3910 | | - |
3911 | old_var = (SHELL_VAR *)elt->data; | - |
3912 | sh_xfree((elt->key), "variables.c", 3675); | - |
3913 | sh_xfree((elt), "variables.c", 3676); | - |
3914 | | - |
3915 | dispose_variable (old_var); | - |
3916 | returnexecuted 8 times by 1 test: return (0); (0);executed 8 times by 1 test: return (0); | 8 |
3917 | } | - |
3918 | | - |
3919 | | - |
3920 | | - |
3921 | | - |
3922 | | - |
3923 | int | - |
3924 | makunbound (name, vc) | - |
3925 | const char *name; | - |
3926 | VAR_CONTEXT *vc; | - |
3927 | { | - |
3928 | BUCKET_CONTENTS *elt, *new_elt; | - |
3929 | SHELL_VAR *old_var; | - |
3930 | VAR_CONTEXT *v; | - |
3931 | char *t; | - |
3932 | | - |
3933 | for (elt = (BUCKET_CONTENTS *) | - |
3934 | ((void *)0) | - |
3935 | , v = vc; vTRUE | evaluated 25666 times by 1 test | FALSE | evaluated 12794 times by 1 test |
; v = v->down) | 12794-25666 |
3936 | if (elt = hash_remove (name, v->table, 0)TRUE | evaluated 7370 times by 1 test | FALSE | evaluated 18296 times by 1 test |
) | 7370-18296 |
3937 | break;executed 7370 times by 1 test: break; | 7370 |
3938 | | - |
3939 | if (elt == 0TRUE | evaluated 12794 times by 1 test | FALSE | evaluated 7370 times by 1 test |
) | 7370-12794 |
3940 | returnexecuted 12794 times by 1 test: return (-1); (-1);executed 12794 times by 1 test: return (-1); | 12794 |
3941 | | - |
3942 | old_var = (SHELL_VAR *)elt->data; | - |
3943 | | - |
3944 | if (old_varTRUE | evaluated 7370 times by 1 test | FALSE | never evaluated |
&& ((((TRUE | evaluated 47 times by 1 test | FALSE | evaluated 7323 times by 1 test |
old_var)->attributes) & (0x0000001)))TRUE | evaluated 47 times by 1 test | FALSE | evaluated 7323 times by 1 test |
) | 0-7370 |
3945 | array_needs_making++;executed 47 times by 1 test: array_needs_making++; | 47 |
3946 | | - |
3947 | | - |
3948 | | - |
3949 | | - |
3950 | | - |
3951 | | - |
3952 | | - |
3953 | if (old_varTRUE | evaluated 7370 times by 1 test | FALSE | never evaluated |
&& ((((TRUE | evaluated 11 times by 1 test | FALSE | evaluated 7359 times by 1 test |
old_var)->attributes) & (0x0000020)))TRUE | evaluated 11 times by 1 test | FALSE | evaluated 7359 times by 1 test |
&& | 0-7370 |
3954 | (old_var->context == variable_contextTRUE | evaluated 9 times by 1 test | FALSE | evaluated 2 times by 1 test |
|| (localvar_unsetTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
&& old_var->context < variable_contextTRUE | never evaluated | FALSE | never evaluated |
))) | 0-9 |
3955 | { | - |
3956 | if (((((TRUE | never evaluated | FALSE | evaluated 9 times by 1 test |
old_var)->attributes) & (0x0020000)))TRUE | never evaluated | FALSE | evaluated 9 times by 1 test |
) | 0-9 |
3957 | (( never executed: ((old_var)->value = ((char *) ((void *)0) )); old_var)->value = ((char *)never executed: ((old_var)->value = ((char *) ((void *)0) )); | 0 |
3958 | (( never executed: ((old_var)->value = ((char *) ((void *)0) )); never executed: ((old_var)->value = ((char *) ((void *)0) )); void *)0)never executed: ((old_var)->value = ((char *) ((void *)0) )); | 0 |
3959 | )) never executed: ((old_var)->value = ((char *) ((void *)0) )); never executed: ((old_var)->value = ((char *) ((void *)0) )); ;never executed: ((old_var)->value = ((char *) ((void *)0) )); | 0 |
3960 | | - |
3961 | else if (((((TRUE | never evaluated | FALSE | evaluated 9 times by 1 test |
old_var)->attributes) & (0x0000004)))TRUE | never evaluated | FALSE | evaluated 9 times by 1 test |
) | 0-9 |
3962 | array_dispose ((ARRAY *)((old_var)->value)); never executed: array_dispose ((ARRAY *)((old_var)->value)); | 0 |
3963 | else if (((((TRUE | never evaluated | FALSE | evaluated 9 times by 1 test |
old_var)->attributes) & (0x0000040)))TRUE | never evaluated | FALSE | evaluated 9 times by 1 test |
) | 0-9 |
3964 | assoc_dispose ((HASH_TABLE *)((old_var)->value)); never executed: assoc_dispose ((HASH_TABLE *)((old_var)->value)); | 0 |
3965 | | - |
3966 | else if (((((TRUE | never evaluated | FALSE | evaluated 9 times by 1 test |
old_var)->attributes) & (0x0000800)))TRUE | never evaluated | FALSE | evaluated 9 times by 1 test |
) | 0-9 |
3967 | do { if (((TRUE | never evaluated | FALSE | never evaluated |
old_var)->value)TRUE | never evaluated | FALSE | never evaluated |
) sh_xfree((((old_var)->value)), "variables.c", 3726);never executed: sh_xfree((((old_var)->value)), "variables.c", 3726); }never executed: end of block while (0); | 0 |
3968 | else | - |
3969 | do { if (((TRUE | evaluated 9 times by 1 test | FALSE | never evaluated |
old_var)->value)TRUE | evaluated 9 times by 1 test | FALSE | never evaluated |
) sh_xfree((((old_var)->value)), "variables.c", 3728);executed 9 times by 1 test: sh_xfree((((old_var)->value)), "variables.c", 3728); }executed 9 times by 1 test: end of block while (0); | 0-9 |
3970 | | - |
3971 | | - |
3972 | | - |
3973 | old_var->attributes = (((((TRUE | never evaluated | FALSE | evaluated 9 times by 1 test |
old_var)->attributes) & (0x0000001)))TRUE | never evaluated | FALSE | evaluated 9 times by 1 test |
&& ((((TRUE | never evaluated | FALSE | never evaluated |
old_var)->attributes) & (0x0100000)))TRUE | never evaluated | FALSE | never evaluated |
) ? 0x0000001 : 0; | 0-9 |
3974 | ((old_var)->attributes |= (0x0000020)); | - |
3975 | ((old_var)->attributes |= (0x0001000)); | - |
3976 | ((old_var)->value = ((char *) | - |
3977 | ((void *)0) | - |
3978 | )); | - |
3979 | do { if ((TRUE | never evaluated | FALSE | evaluated 9 times by 1 test |
old_var)->exportstrTRUE | never evaluated | FALSE | evaluated 9 times by 1 test |
) { sh_xfree(((old_var)->exportstr), "variables.c", 3736); (old_var)->exportstr = (char *) | 0-9 |
3980 | ((void *)0) | - |
3981 | ; } never executed: end of block } while (0); | 0 |
3982 | | - |
3983 | new_elt = hash_insert ((char *)strcpy (sh_xmalloc((1 + strlen (old_var->name)), "variables.c", 3738), (old_var->name)), v->table, 0); | - |
3984 | new_elt->data = (void *)old_var; | - |
3985 | stupidly_hack_special_variables (old_var->name); | - |
3986 | | - |
3987 | sh_xfree((elt->key), "variables.c", 3742); | - |
3988 | sh_xfree((elt), "variables.c", 3743); | - |
3989 | returnexecuted 9 times by 1 test: return (0); (0);executed 9 times by 1 test: return (0); | 9 |
3990 | } | - |
3991 | | - |
3992 | | - |
3993 | | - |
3994 | | - |
3995 | t = (char *)strcpy (sh_xmalloc((1 + strlen (name)), "variables.c", 3750), (name)); | - |
3996 | | - |
3997 | sh_xfree((elt->key), "variables.c", 3752); | - |
3998 | sh_xfree((elt), "variables.c", 3753); | - |
3999 | | - |
4000 | dispose_variable (old_var); | - |
4001 | stupidly_hack_special_variables (t); | - |
4002 | sh_xfree((t), "variables.c", 3757); | - |
4003 | | - |
4004 | returnexecuted 7361 times by 1 test: return (0); (0);executed 7361 times by 1 test: return (0); | 7361 |
4005 | } | - |
4006 | | - |
4007 | | - |
4008 | void | - |
4009 | kill_all_local_variables () | - |
4010 | { | - |
4011 | VAR_CONTEXT *vc; | - |
4012 | | - |
4013 | for (vc = shell_variables; vcTRUE | never evaluated | FALSE | never evaluated |
; vc = vc->down) | 0 |
4014 | if ((((TRUE | never evaluated | FALSE | never evaluated |
vc)->flags & 0x04) != 0)TRUE | never evaluated | FALSE | never evaluated |
&& vc->scope == variable_contextTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
4015 | break; never executed: break; | 0 |
4016 | if (vc == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
4017 | return; never executed: return; | 0 |
4018 | | - |
4019 | if (vc->tableTRUE | never evaluated | FALSE | never evaluated |
&& (((TRUE | never evaluated | FALSE | never evaluated |
vc)->flags & 0x01) != 0)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
4020 | { | - |
4021 | delete_all_variables (vc->table); | - |
4022 | hash_dispose (vc->table); | - |
4023 | } never executed: end of block | 0 |
4024 | vc->table = (HASH_TABLE *) | - |
4025 | ((void *)0) | - |
4026 | ; | - |
4027 | } never executed: end of block | 0 |
4028 | | - |
4029 | static void | - |
4030 | free_variable_hash_data (data) | - |
4031 | void * data; | - |
4032 | { | - |
4033 | SHELL_VAR *var; | - |
4034 | | - |
4035 | var = (SHELL_VAR *)data; | - |
4036 | dispose_variable (var); | - |
4037 | }executed 950 times by 1 test: end of block | 950 |
4038 | | - |
4039 | | - |
4040 | void | - |
4041 | delete_all_variables (hashed_vars) | - |
4042 | HASH_TABLE *hashed_vars; | - |
4043 | { | - |
4044 | hash_flush (hashed_vars, free_variable_hash_data); | - |
4045 | }executed 353 times by 1 test: end of block | 353 |
4046 | void | - |
4047 | set_var_read_only (name) | - |
4048 | char *name; | - |
4049 | { | - |
4050 | SHELL_VAR *entry; | - |
4051 | | - |
4052 | do { entry = find_variable (name); if (!entryTRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
) { entry = bind_variable (name, "", 0); if (!no_invisible_varsTRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
&& entryTRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) entry->attributes |= 0x0001000;executed 2 times by 1 test: entry->attributes |= 0x0001000; }executed 2 times by 1 test: end of block } while (0); | 0-2 |
4053 | ((entry)->attributes |= (0x0000002)); | - |
4054 | }executed 4 times by 1 test: end of block | 4 |
4055 | static VARLIST * | - |
4056 | vlist_alloc (nentries) | - |
4057 | int nentries; | - |
4058 | { | - |
4059 | VARLIST *vlist; | - |
4060 | | - |
4061 | vlist = (VARLIST *)sh_xmalloc((sizeof (VARLIST)), "variables.c", 3881); | - |
4062 | vlist->list = (SHELL_VAR **)sh_xmalloc(((nentries + 1) * sizeof (SHELL_VAR *)), "variables.c", 3882); | - |
4063 | vlist->list_size = nentries; | - |
4064 | vlist->list_len = 0; | - |
4065 | vlist->list[0] = (SHELL_VAR *) | - |
4066 | ((void *)0) | - |
4067 | ; | - |
4068 | | - |
4069 | returnexecuted 18792 times by 1 test: return vlist; vlist;executed 18792 times by 1 test: return vlist; | 18792 |
4070 | } | - |
4071 | | - |
4072 | static VARLIST * | - |
4073 | vlist_realloc (vlist, n) | - |
4074 | VARLIST *vlist; | - |
4075 | int n; | - |
4076 | { | - |
4077 | if (vlist == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
4078 | return never executed: return (vlist = vlist_alloc (n)); (vlist = vlist_alloc (n));never executed: return (vlist = vlist_alloc (n)); | 0 |
4079 | if (n > vlist->list_sizeTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
4080 | { | - |
4081 | vlist->list_size = n; | - |
4082 | vlist->list = (SHELL_VAR **)sh_xrealloc((vlist->list), ((vlist->list_size + 1) * sizeof (SHELL_VAR *)), "variables.c", 3900); | - |
4083 | } never executed: end of block | 0 |
4084 | return never executed: return vlist; vlist;never executed: return vlist; | 0 |
4085 | } | - |
4086 | | - |
4087 | static void | - |
4088 | vlist_add (vlist, var, flags) | - |
4089 | VARLIST *vlist; | - |
4090 | SHELL_VAR *var; | - |
4091 | int flags; | - |
4092 | { | - |
4093 | register int i; | - |
4094 | | - |
4095 | for (i = 0; i < vlist->list_lenTRUE | evaluated 3523014 times by 1 test | FALSE | evaluated 322045 times by 1 test |
; i++) | 322045-3523014 |
4096 | if (((TRUE | evaluated 318842 times by 1 test | FALSE | evaluated 3204172 times by 1 test |
var->name)[0] == (vlist->list[i]->name)[0]TRUE | evaluated 318842 times by 1 test | FALSE | evaluated 3204172 times by 1 test |
&& | 318842-3204172 |
4097 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4098 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4099 | ) && __builtin_constant_p (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4100 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4101 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4102 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4103 | ), __s2_len = __builtin_strlen (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4104 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4105 | ), (!((size_t)(const void *)((TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4106 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4107 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4108 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4109 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4110 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4111 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4112 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4113 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4114 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4115 | , TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4116 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4117 | ) : (__builtin_constant_p (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4118 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4119 | ) && ((size_t)(const void *)((TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4120 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4121 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4122 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4123 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4124 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4125 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4126 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4127 | ) && ((size_t)(const void *)((TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4128 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4129 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4130 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4131 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4132 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4133 | , TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4134 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4135 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4136 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4137 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4138 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4139 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 0-318815 |
4140 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4141 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 0-318815 |
4142 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4143 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( var->name ))[3] - __s2[3]); TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 0-318815 |
4144 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( var->name ))[3] - __s2[3]); | 0-318815 |
4145 | ))[3] - __s2[3]);TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( var->name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 0-318815 |
4146 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4147 | ) && ((size_t)(const void *)((TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4148 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4149 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4150 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4151 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4152 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4153 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4154 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4155 | ) && ((size_t)(const void *)((TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4156 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4157 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4158 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4159 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4160 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4161 | , TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4162 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4163 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4164 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4165 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4166 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4167 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 0-318815 |
4168 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4169 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 0-318815 |
4170 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4171 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( vlist->list[i]->name ))[3] - __s2[3]); TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 0-318815 |
4172 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( vlist->list[i]->name ))[3] - __s2[3]); | 0-318815 |
4173 | ))[3] - __s2[3]);TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( vlist->list[i]->name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 0-318815 |
4174 | var->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4175 | , TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4176 | vlist->list[i]->nameTRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4177 | )))); }) TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
| 27-318815 |
4178 | == 0TRUE | evaluated 27 times by 1 test | FALSE | evaluated 318815 times by 1 test |
)) | 27-318815 |
4179 | break;executed 27 times by 1 test: break; | 27 |
4180 | if (i < vlist->list_lenTRUE | evaluated 27 times by 1 test | FALSE | evaluated 322045 times by 1 test |
) | 27-322045 |
4181 | return;executed 27 times by 1 test: return; | 27 |
4182 | | - |
4183 | if (i >= vlist->list_sizeTRUE | never evaluated | FALSE | evaluated 322045 times by 1 test |
) | 0-322045 |
4184 | vlist = vlist_realloc (vlist, vlist->list_size + 16); never executed: vlist = vlist_realloc (vlist, vlist->list_size + 16); | 0 |
4185 | | - |
4186 | vlist->list[vlist->list_len++] = var; | - |
4187 | vlist->list[vlist->list_len] = (SHELL_VAR *) | - |
4188 | ((void *)0) | - |
4189 | ; | - |
4190 | }executed 322045 times by 1 test: end of block | 322045 |
4191 | | - |
4192 | | - |
4193 | | - |
4194 | | - |
4195 | SHELL_VAR ** | - |
4196 | map_over (function, vc) | - |
4197 | sh_var_map_func_t *function; | - |
4198 | VAR_CONTEXT *vc; | - |
4199 | { | - |
4200 | VAR_CONTEXT *v; | - |
4201 | VARLIST *vlist; | - |
4202 | SHELL_VAR **ret; | - |
4203 | int nentries; | - |
4204 | | - |
4205 | for (nentries = 0, v = vc; vTRUE | evaluated 18240 times by 1 test | FALSE | evaluated 14189 times by 1 test |
; v = v->down) | 14189-18240 |
4206 | nentries += ((TRUE | evaluated 15689 times by 1 test | FALSE | evaluated 2551 times by 1 test |
v->table)TRUE | evaluated 15689 times by 1 test | FALSE | evaluated 2551 times by 1 test |
? (v->table)->nentries : 0);executed 18240 times by 1 test: nentries += ((v->table) ? (v->table)->nentries : 0); | 2551-18240 |
4207 | | - |
4208 | if (nentries == 0TRUE | never evaluated | FALSE | evaluated 14189 times by 1 test |
) | 0-14189 |
4209 | return never executed: return (SHELL_VAR **) ((void *)0) ; (SHELL_VAR **)never executed: return (SHELL_VAR **) ((void *)0) ; | 0 |
4210 | ((void *)0) never executed: return (SHELL_VAR **) ((void *)0) ; | 0 |
4211 | ; never executed: return (SHELL_VAR **) ((void *)0) ; | 0 |
4212 | | - |
4213 | vlist = vlist_alloc (nentries); | - |
4214 | | - |
4215 | for (v = vc; vTRUE | evaluated 18240 times by 1 test | FALSE | evaluated 14189 times by 1 test |
; v = v->down) | 14189-18240 |
4216 | flatten (v->table, function, vlist, 0);executed 18240 times by 1 test: flatten (v->table, function, vlist, 0); | 18240 |
4217 | | - |
4218 | ret = vlist->list; | - |
4219 | sh_xfree((vlist), "variables.c", 3951); | - |
4220 | returnexecuted 14189 times by 1 test: return ret; ret;executed 14189 times by 1 test: return ret; | 14189 |
4221 | } | - |
4222 | | - |
4223 | SHELL_VAR ** | - |
4224 | map_over_funcs (function) | - |
4225 | sh_var_map_func_t *function; | - |
4226 | { | - |
4227 | VARLIST *vlist; | - |
4228 | SHELL_VAR **ret; | - |
4229 | | - |
4230 | if (shell_functions == 0TRUE | never evaluated | FALSE | evaluated 14180 times by 1 test |
|| ((TRUE | evaluated 14180 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 9580 times by 1 test | FALSE | evaluated 4600 times by 1 test |
shell_functions)TRUE | evaluated 14180 times by 1 test | FALSE | never evaluated |
? (shell_functions)->nentries : 0) == 0TRUE | evaluated 9580 times by 1 test | FALSE | evaluated 4600 times by 1 test |
) | 0-14180 |
4231 | returnexecuted 9580 times by 1 test: return ((SHELL_VAR **) ((void *)0) ); ((SHELL_VAR **)executed 9580 times by 1 test: return ((SHELL_VAR **) ((void *)0) ); | 9580 |
4232 | ((void *)0)executed 9580 times by 1 test: return ((SHELL_VAR **) ((void *)0) ); | 9580 |
4233 | );executed 9580 times by 1 test: return ((SHELL_VAR **) ((void *)0) ); | 9580 |
4234 | | - |
4235 | vlist = vlist_alloc (((shell_functions) ? (shell_functions)->nentries : 0)); | - |
4236 | | - |
4237 | flatten (shell_functions, function, vlist, 0); | - |
4238 | | - |
4239 | ret = vlist->list; | - |
4240 | sh_xfree((vlist), "variables.c", 3970); | - |
4241 | returnexecuted 4600 times by 1 test: return ret; ret;executed 4600 times by 1 test: return ret; | 4600 |
4242 | } | - |
4243 | | - |
4244 | | - |
4245 | | - |
4246 | | - |
4247 | | - |
4248 | | - |
4249 | | - |
4250 | static void | - |
4251 | flatten (var_hash_table, func, vlist, flags) | - |
4252 | HASH_TABLE *var_hash_table; | - |
4253 | sh_var_map_func_t *func; | - |
4254 | VARLIST *vlist; | - |
4255 | int flags; | - |
4256 | { | - |
4257 | register int i; | - |
4258 | register BUCKET_CONTENTS *tlist; | - |
4259 | int r; | - |
4260 | SHELL_VAR *var; | - |
4261 | | - |
4262 | if (var_hash_table == 0TRUE | evaluated 2551 times by 1 test | FALSE | evaluated 20448 times by 1 test |
|| (((TRUE | never evaluated | FALSE | evaluated 20448 times by 1 test |
var_hash_table) ? (var_hash_table)->nentries : 0) == 0)TRUE | never evaluated | FALSE | evaluated 20448 times by 1 test |
|| (vlist == 0TRUE | evaluated 156 times by 1 test | FALSE | evaluated 20292 times by 1 test |
&& func == 0TRUE | never evaluated | FALSE | evaluated 156 times by 1 test |
)) | 0-20448 |
4263 | return;executed 2551 times by 1 test: return; | 2551 |
4264 | | - |
4265 | for (i = 0; i < var_hash_table->nbucketsTRUE | evaluated 16891372 times by 1 test | FALSE | evaluated 20448 times by 1 test |
; i++) | 20448-16891372 |
4266 | { | - |
4267 | for (tlist = ((var_hash_table && (i < var_hash_table->nbuckets)) ? var_hash_table->bucket_array[i] : (BUCKET_CONTENTS *) | - |
4268 | ((void *)0) | - |
4269 | ); tlistTRUE | evaluated 941646 times by 1 test | FALSE | evaluated 16891372 times by 1 test |
; tlist = tlist->next) | 941646-16891372 |
4270 | { | - |
4271 | var = (SHELL_VAR *)tlist->data; | - |
4272 | | - |
4273 | r = funcTRUE | evaluated 940026 times by 1 test | FALSE | evaluated 1620 times by 1 test |
? (*func) (var) : 1; | 1620-940026 |
4274 | if (rTRUE | evaluated 322164 times by 1 test | FALSE | evaluated 619482 times by 1 test |
&& vlistTRUE | evaluated 322072 times by 1 test | FALSE | evaluated 92 times by 1 test |
) | 92-619482 |
4275 | vlist_add (vlist, var, flags);executed 322072 times by 1 test: vlist_add (vlist, var, flags); | 322072 |
4276 | }executed 941646 times by 1 test: end of block | 941646 |
4277 | }executed 16891372 times by 1 test: end of block | 16891372 |
4278 | }executed 20448 times by 1 test: end of block | 20448 |
4279 | | - |
4280 | void | - |
4281 | sort_variables (array) | - |
4282 | SHELL_VAR **array; | - |
4283 | { | - |
4284 | qsort (array, strvec_len ((char **)array), sizeof (SHELL_VAR *), (QSFUNC *)qsort_var_comp); | - |
4285 | }executed 52 times by 1 test: end of block | 52 |
4286 | | - |
4287 | static int | - |
4288 | qsort_var_comp (var1, var2) | - |
4289 | SHELL_VAR **var1, **var2; | - |
4290 | { | - |
4291 | int result; | - |
4292 | | - |
4293 | if ((TRUE | evaluated 2788 times by 1 test | FALSE | evaluated 6949 times by 1 test |
result = (*var1)->name[0] - (*var2)->name[0]) == 0TRUE | evaluated 2788 times by 1 test | FALSE | evaluated 6949 times by 1 test |
) | 2788-6949 |
4294 | result = executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4295 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4296 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4297 | ) && __builtin_constant_p (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4298 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4299 | ) && (__s1_len = __builtin_strlen (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4300 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4301 | ), __s2_len = __builtin_strlen (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4302 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4303 | ), (!((size_t)(const void *)((executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4304 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4305 | ) + 1) - (size_t)(const void *)(executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4306 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4307 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4308 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4309 | ) + 1) - (size_t)(const void *)(executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4310 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4311 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4312 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4313 | , executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4314 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4315 | ) : (__builtin_constant_p (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4316 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4317 | ) && ((size_t)(const void *)((executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4318 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4319 | ) + 1) - (size_t)(const void *)(executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4320 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4321 | ) == 1) && (__s1_len = __builtin_strlen (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4322 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4323 | ), __s1_len < 4) ? (__builtin_constant_p (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4324 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4325 | ) && ((size_t)(const void *)((executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4326 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4327 | ) + 1) - (size_t)(const void *)(executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4328 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4329 | ) == 1) ? __builtin_strcmp (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4330 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4331 | , executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4332 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4333 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4334 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4335 | ); int __result = (((const unsigned char *) (const char *) (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4336 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4337 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 0-2788 |
4338 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4339 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 0-2788 |
4340 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4341 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( (*var1)->name ))[3] - __s2[3]); executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 0-2788 |
4342 | (*var1)->name never executed: __result = (((const unsigned char *) (const char *) ( (*var1)->name ))[3] - __s2[3]); executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 0-2788 |
4343 | ))[3] - __s2[3]); never executed: __result = (((const unsigned char *) (const char *) ( (*var1)->name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 0-2788 |
4344 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4345 | ) && ((size_t)(const void *)((executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4346 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4347 | ) + 1) - (size_t)(const void *)(executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4348 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4349 | ) == 1) && (__s2_len = __builtin_strlen (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4350 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4351 | ), __s2_len < 4) ? (__builtin_constant_p (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4352 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4353 | ) && ((size_t)(const void *)((executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4354 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4355 | ) + 1) - (size_t)(const void *)(executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4356 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4357 | ) == 1) ? __builtin_strcmp (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4358 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4359 | , executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4360 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4361 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4362 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4363 | ); int __result = (((const unsigned char *) (const char *) (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4364 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4365 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 0-2788 |
4366 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4367 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 0-2788 |
4368 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4369 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 0-2788 |
4370 | (*var2)->name never executed: __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 0-2788 |
4371 | ))[3] - __s2[3]); never executed: __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 0-2788 |
4372 | (*var1)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4373 | , executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4374 | (*var2)->nameexecuted 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4375 | )))); })executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4376 | ;executed 2788 times by 1 test: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*var1)->name ) && __builtin_constant_p ( (*var2)->name ) && (__s1_len = __builtin_strlen ( (*var1)->name ), __s2_len = __builtin_strlen ( (*var2)->name ), (!((size_t)(const void...r *) (const char *) ( (*var2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*var2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*var1)->name , (*var2)->name )))); }) ; | 2788 |
4377 | | - |
4378 | returnexecuted 9737 times by 1 test: return (result); (result);executed 9737 times by 1 test: return (result); | 9737 |
4379 | } | - |
4380 | | - |
4381 | | - |
4382 | | - |
4383 | static SHELL_VAR ** | - |
4384 | vapply (func) | - |
4385 | sh_var_map_func_t *func; | - |
4386 | { | - |
4387 | SHELL_VAR **list; | - |
4388 | | - |
4389 | list = map_over (func, shell_variables); | - |
4390 | if (listTRUE | evaluated 30 times by 1 test | FALSE | never evaluated |
) | 0-30 |
4391 | sort_variables (list);executed 30 times by 1 test: sort_variables (list); | 30 |
4392 | returnexecuted 30 times by 1 test: return (list); (list);executed 30 times by 1 test: return (list); | 30 |
4393 | } | - |
4394 | | - |
4395 | | - |
4396 | | - |
4397 | static SHELL_VAR ** | - |
4398 | fapply (func) | - |
4399 | sh_var_map_func_t *func; | - |
4400 | { | - |
4401 | SHELL_VAR **list; | - |
4402 | | - |
4403 | list = map_over_funcs (func); | - |
4404 | if (listTRUE | evaluated 19 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-19 |
4405 | sort_variables (list);executed 19 times by 1 test: sort_variables (list); | 19 |
4406 | returnexecuted 21 times by 1 test: return (list); (list);executed 21 times by 1 test: return (list); | 21 |
4407 | } | - |
4408 | | - |
4409 | | - |
4410 | SHELL_VAR ** | - |
4411 | all_shell_variables () | - |
4412 | { | - |
4413 | returnexecuted 23 times by 1 test: return (vapply ((sh_var_map_func_t *) ((void *)0) )); (vapply ((sh_var_map_func_t *)executed 23 times by 1 test: return (vapply ((sh_var_map_func_t *) ((void *)0) )); | 23 |
4414 | ((void *)0)executed 23 times by 1 test: return (vapply ((sh_var_map_func_t *) ((void *)0) )); | 23 |
4415 | ));executed 23 times by 1 test: return (vapply ((sh_var_map_func_t *) ((void *)0) )); | 23 |
4416 | } | - |
4417 | | - |
4418 | | - |
4419 | SHELL_VAR ** | - |
4420 | all_shell_functions () | - |
4421 | { | - |
4422 | returnexecuted 21 times by 1 test: return (fapply ((sh_var_map_func_t *) ((void *)0) )); (fapply ((sh_var_map_func_t *)executed 21 times by 1 test: return (fapply ((sh_var_map_func_t *) ((void *)0) )); | 21 |
4423 | ((void *)0)executed 21 times by 1 test: return (fapply ((sh_var_map_func_t *) ((void *)0) )); | 21 |
4424 | ));executed 21 times by 1 test: return (fapply ((sh_var_map_func_t *) ((void *)0) )); | 21 |
4425 | } | - |
4426 | | - |
4427 | static int | - |
4428 | visible_var (var) | - |
4429 | SHELL_VAR *var; | - |
4430 | { | - |
4431 | returnexecuted 469 times by 1 test: return (((((var)->attributes) & (0x0001000))) == 0); (((((var)->attributes) & (0x0001000))) == 0);executed 469 times by 1 test: return (((((var)->attributes) & (0x0001000))) == 0); | 469 |
4432 | } | - |
4433 | | - |
4434 | SHELL_VAR ** | - |
4435 | all_visible_functions () | - |
4436 | { | - |
4437 | return never executed: return (fapply (visible_var)); (fapply (visible_var));never executed: return (fapply (visible_var)); | 0 |
4438 | } | - |
4439 | | - |
4440 | SHELL_VAR ** | - |
4441 | all_visible_variables () | - |
4442 | { | - |
4443 | returnexecuted 7 times by 1 test: return (vapply (visible_var)); (vapply (visible_var));executed 7 times by 1 test: return (vapply (visible_var)); | 7 |
4444 | } | - |
4445 | | - |
4446 | | - |
4447 | | - |
4448 | static int | - |
4449 | visible_and_exported (var) | - |
4450 | SHELL_VAR *var; | - |
4451 | { | - |
4452 | returnexecuted 10560 times by 1 test: return (((((var)->attributes) & (0x0001000))) == 0 && ((((var)->attributes) & (0x0000001)))); (((((var)->attributes) & (0x0001000))) == 0 && ((((var)->attributes) & (0x0000001))));executed 10560 times by 1 test: return (((((var)->attributes) & (0x0001000))) == 0 && ((((var)->attributes) & (0x0000001)))); | 10560 |
4453 | } | - |
4454 | | - |
4455 | | - |
4456 | | - |
4457 | | - |
4458 | static int | - |
4459 | export_environment_candidate (var) | - |
4460 | SHELL_VAR *var; | - |
4461 | { | - |
4462 | returnexecuted 928814 times by 1 test: return (((((var)->attributes) & (0x0000001))) && (((((var)->attributes) & (0x0001000))) == 0 || ((((var)->attributes) & (0x0008000))))); (((((var)->attributes) & (0x0000001))) && (((((var)->attributes) & (0x0001000))) == 0 || ((((var)->attributes) & (0x0008000)))));executed 928814 times by 1 test: return (((((var)->attributes) & (0x0000001))) && (((((var)->attributes) & (0x0001000))) == 0 || ((((var)->attributes) & (0x0008000))))); | 928814 |
4463 | } | - |
4464 | | - |
4465 | | - |
4466 | | - |
4467 | static int | - |
4468 | local_and_exported (var) | - |
4469 | SHELL_VAR *var; | - |
4470 | { | - |
4471 | return never executed: return (((((var)->attributes) & (0x0001000))) == 0 && ((((var)->attributes) & (0x0000020))) && var->context == variable_context && ((((var)->attributes) & (0x0000001)))); (((((var)->attributes) & (0x0001000))) == 0 && ((((var)->attributes) & (0x0000020))) && var->context == variable_context && ((((var)->attributes) & (0x0000001))));never executed: return (((((var)->attributes) & (0x0001000))) == 0 && ((((var)->attributes) & (0x0000020))) && var->context == variable_context && ((((var)->attributes) & (0x0000001)))); | 0 |
4472 | } | - |
4473 | | - |
4474 | SHELL_VAR ** | - |
4475 | all_exported_variables () | - |
4476 | { | - |
4477 | return never executed: return (vapply (visible_and_exported)); (vapply (visible_and_exported));never executed: return (vapply (visible_and_exported)); | 0 |
4478 | } | - |
4479 | | - |
4480 | SHELL_VAR ** | - |
4481 | local_exported_variables () | - |
4482 | { | - |
4483 | return never executed: return (vapply (local_and_exported)); (vapply (local_and_exported));never executed: return (vapply (local_and_exported)); | 0 |
4484 | } | - |
4485 | | - |
4486 | static int | - |
4487 | variable_in_context (var) | - |
4488 | SHELL_VAR *var; | - |
4489 | { | - |
4490 | returnexecuted 6 times by 1 test: return (((((var)->attributes) & (0x0001000))) == 0 && ((((var)->attributes) & (0x0000020))) && var->context == variable_context); (((((var)->attributes) & (0x0001000))) == 0 && ((((var)->attributes) & (0x0000020))) && var->context == variable_context);executed 6 times by 1 test: return (((((var)->attributes) & (0x0001000))) == 0 && ((((var)->attributes) & (0x0000020))) && var->context == variable_context); | 6 |
4491 | } | - |
4492 | | - |
4493 | SHELL_VAR ** | - |
4494 | all_local_variables () | - |
4495 | { | - |
4496 | VARLIST *vlist; | - |
4497 | SHELL_VAR **ret; | - |
4498 | VAR_CONTEXT *vc; | - |
4499 | | - |
4500 | vc = shell_variables; | - |
4501 | for (vc = shell_variables; vcTRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
; vc = vc->down) | 0-3 |
4502 | if ((((TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
vc)->flags & 0x04) != 0)TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
&& vc->scope == variable_contextTRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
) | 0-3 |
4503 | break;executed 3 times by 1 test: break; | 3 |
4504 | | - |
4505 | if (vc == 0TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
) | 0-3 |
4506 | { | - |
4507 | internal_error ( | - |
4508 | dcgettext (((void *)0), | - |
4509 | "all_local_variables: no function context at current scope" | - |
4510 | , 5) | - |
4511 | ); | - |
4512 | return never executed: return (SHELL_VAR **) ((void *)0) ; (SHELL_VAR **)never executed: return (SHELL_VAR **) ((void *)0) ; | 0 |
4513 | ((void *)0) never executed: return (SHELL_VAR **) ((void *)0) ; | 0 |
4514 | ; never executed: return (SHELL_VAR **) ((void *)0) ; | 0 |
4515 | } | - |
4516 | if (vc->table == 0TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
|| ((TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
vc->table) ? (vc->table)->nentries : 0) == 0TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
|| (((TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
vc)->flags & 0x01) != 0) == 0TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
) | 0-3 |
4517 | return never executed: return (SHELL_VAR **) ((void *)0) ; (SHELL_VAR **)never executed: return (SHELL_VAR **) ((void *)0) ; | 0 |
4518 | ((void *)0) never executed: return (SHELL_VAR **) ((void *)0) ; | 0 |
4519 | ; never executed: return (SHELL_VAR **) ((void *)0) ; | 0 |
4520 | | - |
4521 | vlist = vlist_alloc (((vc->table) ? (vc->table)->nentries : 0)); | - |
4522 | | - |
4523 | flatten (vc->table, variable_in_context, vlist, 0); | - |
4524 | | - |
4525 | ret = vlist->list; | - |
4526 | sh_xfree((vlist), "variables.c", 4160); | - |
4527 | if (retTRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
) | 0-3 |
4528 | sort_variables (ret);executed 3 times by 1 test: sort_variables (ret); | 3 |
4529 | returnexecuted 3 times by 1 test: return ret; ret;executed 3 times by 1 test: return ret; | 3 |
4530 | } | - |
4531 | | - |
4532 | | - |
4533 | | - |
4534 | static int | - |
4535 | visible_array_vars (var) | - |
4536 | SHELL_VAR *var; | - |
4537 | { | - |
4538 | return never executed: return (((((var)->attributes) & (0x0001000))) == 0 && (((((var)->attributes) & (0x0000004))) || ((((var)->attributes) & (0x0000040))))); (((((var)->attributes) & (0x0001000))) == 0 && (((((var)->attributes) & (0x0000004))) || ((((var)->attributes) & (0x0000040)))));never executed: return (((((var)->attributes) & (0x0001000))) == 0 && (((((var)->attributes) & (0x0000004))) || ((((var)->attributes) & (0x0000040))))); | 0 |
4539 | } | - |
4540 | | - |
4541 | SHELL_VAR ** | - |
4542 | all_array_variables () | - |
4543 | { | - |
4544 | return never executed: return (vapply (visible_array_vars)); (vapply (visible_array_vars));never executed: return (vapply (visible_array_vars)); | 0 |
4545 | } | - |
4546 | | - |
4547 | | - |
4548 | char ** | - |
4549 | all_variables_matching_prefix (prefix) | - |
4550 | const char *prefix; | - |
4551 | { | - |
4552 | SHELL_VAR **varlist; | - |
4553 | char **rlist; | - |
4554 | int vind, rind, plen; | - |
4555 | | - |
4556 | plen = (((TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
prefix)TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
prefix)[0]TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
) ? ((TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
prefix)[1]TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
? ((TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
prefix)[2]TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
? strlen(prefix) : 2) : 1) : 0); | 0-7 |
4557 | varlist = all_visible_variables (); | - |
4558 | for (vind = 0; varlistTRUE | evaluated 469 times by 1 test | FALSE | never evaluated |
&& varlist[vind]TRUE | evaluated 462 times by 1 test | FALSE | evaluated 7 times by 1 test |
; vind++) | 0-469 |
4559 | ;executed 462 times by 1 test: ; | 462 |
4560 | if (varlist == 0TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
|| vind == 0TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
) | 0-7 |
4561 | return never executed: return ((char **) ((void *)0) ); ((char **)never executed: return ((char **) ((void *)0) ); | 0 |
4562 | ((void *)0) never executed: return ((char **) ((void *)0) ); | 0 |
4563 | ); never executed: return ((char **) ((void *)0) ); | 0 |
4564 | rlist = strvec_create (vind + 1); | - |
4565 | for (vind = rind = 0; varlist[vind]TRUE | evaluated 462 times by 1 test | FALSE | evaluated 7 times by 1 test |
; vind++) | 7-462 |
4566 | { | - |
4567 | if (plen == 0TRUE | never evaluated | FALSE | evaluated 462 times by 1 test |
|| ((TRUE | never evaluated | FALSE | evaluated 462 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
plen == 0)TRUE | never evaluated | FALSE | evaluated 462 times by 1 test |
? (1) : ((TRUE | evaluated 49 times by 1 test | FALSE | evaluated 413 times by 1 test |
prefix)[0] == (varlist[vind]->name)[0]TRUE | evaluated 49 times by 1 test | FALSE | evaluated 413 times by 1 test |
&& TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-462 |
4568 | (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
__extension__ (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 49 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4569 | plenTRUE | never evaluated | FALSE | evaluated 49 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4570 | )TRUE | never evaluated | FALSE | evaluated 49 times by 1 test |
&& ((__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4571 | prefixTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4572 | )TRUE | never evaluated | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4573 | prefixTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4574 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4575 | plenTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4576 | ))TRUE | never evaluated | FALSE | never evaluated |
) || (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4577 | varlist[vind]->nameTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4578 | )TRUE | never evaluated | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4579 | varlist[vind]->nameTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4580 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4581 | plenTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4582 | ))TRUE | never evaluated | FALSE | never evaluated |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4583 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4584 | ) && __builtin_constant_p (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4585 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4586 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4587 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4588 | ), __s2_len = __builtin_strlen (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4589 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4590 | ), (!((size_t)(const void *)((TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4591 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4592 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4593 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4594 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4595 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4596 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4597 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4598 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4599 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4600 | , TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4601 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4602 | ) : (__builtin_constant_p (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4603 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4604 | ) && ((size_t)(const void *)((TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4605 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4606 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4607 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4608 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4609 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4610 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4611 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4612 | ) && ((size_t)(const void *)((TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4613 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4614 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4615 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4616 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4617 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4618 | , TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4619 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4620 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4621 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4622 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4623 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4624 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4625 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4626 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4627 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4628 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( prefix ))[3] - __s2[3]); TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4629 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( prefix ))[3] - __s2[3]); | 0-426 |
4630 | ))[3] - __s2[3]);TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( prefix ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4631 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4632 | ) && ((size_t)(const void *)((TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4633 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4634 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4635 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4636 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4637 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4638 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4639 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4640 | ) && ((size_t)(const void *)((TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4641 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4642 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4643 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4644 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4645 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4646 | , TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4647 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4648 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4649 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4650 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4651 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4652 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4653 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4654 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4655 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4656 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( varlist[vind]->name ))[3] - __s2[3]); TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4657 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( varlist[vind]->name ))[3] - __s2[3]); | 0-426 |
4658 | ))[3] - __s2[3]);TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( varlist[vind]->name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 0-426 |
4659 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4660 | , TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4661 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4662 | )))); }) : strncmp (TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4663 | prefixTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4664 | , TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4665 | varlist[vind]->nameTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4666 | , TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4667 | plenTRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4668 | ))) TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
| 13-426 |
4669 | == 0TRUE | evaluated 36 times by 1 test | FALSE | evaluated 13 times by 1 test |
))TRUE | evaluated 36 times by 1 test | FALSE | evaluated 426 times by 1 test |
) | 13-426 |
4670 | rlist[rind++] = (char *)strcpy (sh_xmalloc((1 + strlen (varlist[vind]->name)), "variables.c", 4200), (varlist[vind]->name));executed 36 times by 1 test: rlist[rind++] = (char *)strcpy (sh_xmalloc((1 + strlen (varlist[vind]->name)), "variables.c", 4200), (varlist[vind]->name)); | 36 |
4671 | }executed 462 times by 1 test: end of block | 462 |
4672 | rlist[rind] = (char *)0; | - |
4673 | sh_xfree((varlist), "variables.c", 4203); | - |
4674 | | - |
4675 | returnexecuted 7 times by 1 test: return rlist; rlist;executed 7 times by 1 test: return rlist; | 7 |
4676 | } | - |
4677 | static SHELL_VAR * | - |
4678 | bind_tempenv_variable (name, value) | - |
4679 | const char *name; | - |
4680 | char *value; | - |
4681 | { | - |
4682 | SHELL_VAR *var; | - |
4683 | | - |
4684 | var = temporary_envTRUE | evaluated 2972 times by 1 test | FALSE | never evaluated |
? hash_lookup (name, temporary_env) : (SHELL_VAR *) | 0-2972 |
4685 | ((void *)0) | - |
4686 | ; | - |
4687 | | - |
4688 | if (varTRUE | evaluated 17 times by 1 test | FALSE | evaluated 2955 times by 1 test |
) | 17-2955 |
4689 | { | - |
4690 | do { if (((TRUE | evaluated 17 times by 1 test | FALSE | never evaluated |
var)->value)TRUE | evaluated 17 times by 1 test | FALSE | never evaluated |
) sh_xfree((((var)->value)), "variables.c", 4226);executed 17 times by 1 test: sh_xfree((((var)->value)), "variables.c", 4226); } while (0); | 0-17 |
4691 | ((var)->value = ((char *)strcpy (sh_xmalloc((1 + strlen (value)), "variables.c", 4227), (value)))); | - |
4692 | do { if ((TRUE | evaluated 16 times by 1 test | FALSE | evaluated 1 time by 1 test |
var)->exportstrTRUE | evaluated 16 times by 1 test | FALSE | evaluated 1 time by 1 test |
) { sh_xfree(((var)->exportstr), "variables.c", 4228); (var)->exportstr = (char *) | 1-16 |
4693 | ((void *)0) | - |
4694 | ; }executed 16 times by 1 test: end of block } while (0); | 16 |
4695 | }executed 17 times by 1 test: end of block | 17 |
4696 | | - |
4697 | returnexecuted 2972 times by 1 test: return (var); (var);executed 2972 times by 1 test: return (var); | 2972 |
4698 | } | - |
4699 | | - |
4700 | | - |
4701 | | - |
4702 | SHELL_VAR * | - |
4703 | find_tempenv_variable (name) | - |
4704 | const char *name; | - |
4705 | { | - |
4706 | returnexecuted 13467 times by 1 test: return (temporary_env ? hash_lookup (name, temporary_env) : (SHELL_VAR *) ((void *)0) ); (temporary_env ? hash_lookup (name, temporary_env) : (SHELL_VAR *)executed 13467 times by 1 test: return (temporary_env ? hash_lookup (name, temporary_env) : (SHELL_VAR *) ((void *)0) ); | 13467 |
4707 | ((void *)0)executed 13467 times by 1 test: return (temporary_env ? hash_lookup (name, temporary_env) : (SHELL_VAR *) ((void *)0) ); | 13467 |
4708 | );executed 13467 times by 1 test: return (temporary_env ? hash_lookup (name, temporary_env) : (SHELL_VAR *) ((void *)0) ); | 13467 |
4709 | } | - |
4710 | | - |
4711 | char **tempvar_list; | - |
4712 | int tvlist_ind; | - |
4713 | | - |
4714 | | - |
4715 | | - |
4716 | static void | - |
4717 | push_temp_var (data) | - |
4718 | void * data; | - |
4719 | { | - |
4720 | SHELL_VAR *var, *v; | - |
4721 | HASH_TABLE *binding_table; | - |
4722 | | - |
4723 | var = (SHELL_VAR *)data; | - |
4724 | | - |
4725 | binding_table = shell_variables->table; | - |
4726 | if (binding_table == 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 27 times by 1 test |
) | 1-27 |
4727 | { | - |
4728 | if (shell_variables == global_variablesTRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
) | 0-1 |
4729 | | - |
4730 | binding_table = shell_variables->table = global_variables->table = hash_create (1024); never executed: binding_table = shell_variables->table = global_variables->table = hash_create (1024); | 0 |
4731 | else | - |
4732 | binding_table = shell_variables->table = hash_create (4);executed 1 time by 1 test: binding_table = shell_variables->table = hash_create (4); | 1 |
4733 | } | - |
4734 | | - |
4735 | v = bind_variable_internal (var->name, ((var)->value), binding_table, 0, 0x0020|0x0200); | - |
4736 | | - |
4737 | | - |
4738 | | - |
4739 | if (binding_table == global_variables->tableTRUE | evaluated 26 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-26 |
4740 | var->attributes &= ~(0x0100000|0x0200000);executed 26 times by 1 test: var->attributes &= ~(0x0100000|0x0200000); | 26 |
4741 | else | - |
4742 | { | - |
4743 | var->attributes |= 0x0200000; | - |
4744 | if (binding_table == shell_variables->tableTRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-2 |
4745 | shell_variables->flags |= 0x02;executed 2 times by 1 test: shell_variables->flags |= 0x02; | 2 |
4746 | }executed 2 times by 1 test: end of block | 2 |
4747 | if (vTRUE | evaluated 28 times by 1 test | FALSE | never evaluated |
) | 0-28 |
4748 | v->attributes |= var->attributes;executed 28 times by 1 test: v->attributes |= var->attributes; | 28 |
4749 | | - |
4750 | if (find_special_var (var->name) >= 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 27 times by 1 test |
) | 1-27 |
4751 | tempvar_list[tvlist_ind++] = (char *)strcpy (sh_xmalloc((1 + strlen (var->name)), "variables.c", 4283), (var->name));executed 1 time by 1 test: tempvar_list[tvlist_ind++] = (char *)strcpy (sh_xmalloc((1 + strlen (var->name)), "variables.c", 4283), (var->name)); | 1 |
4752 | | - |
4753 | dispose_variable (var); | - |
4754 | }executed 28 times by 1 test: end of block | 28 |
4755 | | - |
4756 | static void | - |
4757 | propagate_temp_var (data) | - |
4758 | void * data; | - |
4759 | { | - |
4760 | SHELL_VAR *var; | - |
4761 | | - |
4762 | var = (SHELL_VAR *)data; | - |
4763 | if (((((TRUE | evaluated 1620 times by 1 test | FALSE | never evaluated |
var)->attributes) & (0x0100000)))TRUE | evaluated 1620 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 17 times by 1 test | FALSE | evaluated 1603 times by 1 test |
var->attributes & 0x0200000)TRUE | evaluated 17 times by 1 test | FALSE | evaluated 1603 times by 1 test |
) | 0-1620 |
4764 | push_temp_var (data);executed 17 times by 1 test: push_temp_var (data); | 17 |
4765 | else | - |
4766 | { | - |
4767 | if (find_special_var (var->name) >= 0TRUE | evaluated 1407 times by 1 test | FALSE | evaluated 196 times by 1 test |
) | 196-1407 |
4768 | tempvar_list[tvlist_ind++] = (char *)strcpy (sh_xmalloc((1 + strlen (var->name)), "variables.c", 4300), (var->name));executed 1407 times by 1 test: tempvar_list[tvlist_ind++] = (char *)strcpy (sh_xmalloc((1 + strlen (var->name)), "variables.c", 4300), (var->name)); | 1407 |
4769 | dispose_variable (var); | - |
4770 | }executed 1603 times by 1 test: end of block | 1603 |
4771 | } | - |
4772 | static void | - |
4773 | dispose_temporary_env (pushf) | - |
4774 | sh_free_func_t *pushf; | - |
4775 | { | - |
4776 | int i; | - |
4777 | | - |
4778 | tempvar_list = strvec_create (((temporary_env) ? (temporary_env)->nentries : 0) + 1); | - |
4779 | tempvar_list[tvlist_ind = 0] = 0; | - |
4780 | | - |
4781 | hash_flush (temporary_env, pushf); | - |
4782 | hash_dispose (temporary_env); | - |
4783 | temporary_env = (HASH_TABLE *) | - |
4784 | ((void *)0) | - |
4785 | ; | - |
4786 | | - |
4787 | tempvar_list[tvlist_ind] = 0; | - |
4788 | | - |
4789 | array_needs_making = 1; | - |
4790 | | - |
4791 | | - |
4792 | | - |
4793 | | - |
4794 | for (i = 0; i < tvlist_indTRUE | evaluated 1408 times by 1 test | FALSE | evaluated 1581 times by 1 test |
; i++) | 1408-1581 |
4795 | stupidly_hack_special_variables (tempvar_list[i]);executed 1408 times by 1 test: stupidly_hack_special_variables (tempvar_list[i]); | 1408 |
4796 | | - |
4797 | strvec_dispose (tempvar_list); | - |
4798 | tempvar_list = 0; | - |
4799 | tvlist_ind = 0; | - |
4800 | }executed 1581 times by 1 test: end of block | 1581 |
4801 | | - |
4802 | void | - |
4803 | dispose_used_env_vars () | - |
4804 | { | - |
4805 | if (temporary_envTRUE | evaluated 1570 times by 1 test | FALSE | evaluated 64697866 times by 1 test |
) | 1570-64697866 |
4806 | { | - |
4807 | dispose_temporary_env (propagate_temp_var); | - |
4808 | maybe_make_export_env (); | - |
4809 | }executed 1570 times by 1 test: end of block | 1570 |
4810 | }executed 64699436 times by 1 test: end of block | 64699436 |
4811 | | - |
4812 | | - |
4813 | | - |
4814 | void | - |
4815 | merge_temporary_env () | - |
4816 | { | - |
4817 | if (temporary_envTRUE | evaluated 11 times by 1 test | FALSE | never evaluated |
) | 0-11 |
4818 | dispose_temporary_env (push_temp_var);executed 11 times by 1 test: dispose_temporary_env (push_temp_var); | 11 |
4819 | }executed 11 times by 1 test: end of block | 11 |
4820 | | - |
4821 | void | - |
4822 | flush_temporary_env () | - |
4823 | { | - |
4824 | if (temporary_envTRUE | evaluated 13 times by 1 test | FALSE | evaluated 1360 times by 1 test |
) | 13-1360 |
4825 | { | - |
4826 | hash_flush (temporary_env, free_variable_hash_data); | - |
4827 | hash_dispose (temporary_env); | - |
4828 | temporary_env = (HASH_TABLE *) | - |
4829 | ((void *)0) | - |
4830 | ; | - |
4831 | }executed 13 times by 1 test: end of block | 13 |
4832 | }executed 1373 times by 1 test: end of block | 1373 |
4833 | | - |
4834 | | - |
4835 | | - |
4836 | | - |
4837 | | - |
4838 | | - |
4839 | | - |
4840 | static inline char * | - |
4841 | mk_env_string (name, value, isfunc) | - |
4842 | const char *name, *value; | - |
4843 | int isfunc; | - |
4844 | { | - |
4845 | size_t name_len, value_len; | - |
4846 | char *p, *q, *t; | - |
4847 | | - |
4848 | name_len = strlen (name); | - |
4849 | value_len = (((TRUE | evaluated 9908 times by 1 test | FALSE | never evaluated |
value)TRUE | evaluated 9908 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 9864 times by 1 test | FALSE | evaluated 44 times by 1 test |
value)[0]TRUE | evaluated 9864 times by 1 test | FALSE | evaluated 44 times by 1 test |
) ? ((TRUE | evaluated 4071 times by 1 test | FALSE | evaluated 5793 times by 1 test |
value)[1]TRUE | evaluated 4071 times by 1 test | FALSE | evaluated 5793 times by 1 test |
? ((TRUE | evaluated 1757 times by 1 test | FALSE | evaluated 2314 times by 1 test |
value)[2]TRUE | evaluated 1757 times by 1 test | FALSE | evaluated 2314 times by 1 test |
? strlen(value) : 2) : 1) : 0); | 0-9908 |
4850 | | - |
4851 | | - |
4852 | | - |
4853 | if (isfuncTRUE | evaluated 61 times by 1 test | FALSE | evaluated 9847 times by 1 test |
&& valueTRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
) | 0-9847 |
4854 | { | - |
4855 | p = (char *)sh_xmalloc((10 + name_len + 2 + value_len + 2), "variables.c", 4391); | - |
4856 | q = p; | - |
4857 | memcpy (q, "BASH_FUNC_", 10); | - |
4858 | q += 10; | - |
4859 | memcpy (q, name, name_len); | - |
4860 | q += name_len; | - |
4861 | memcpy (q, "%%", 2); | - |
4862 | q += 2; | - |
4863 | }executed 61 times by 1 test: end of block | 61 |
4864 | else | - |
4865 | { | - |
4866 | p = (char *)sh_xmalloc((2 + name_len + value_len), "variables.c", 4402); | - |
4867 | memcpy (p, name, name_len); | - |
4868 | q = p + name_len; | - |
4869 | }executed 9847 times by 1 test: end of block | 9847 |
4870 | | - |
4871 | q[0] = '='; | - |
4872 | if (valueTRUE | evaluated 9908 times by 1 test | FALSE | never evaluated |
&& *TRUE | evaluated 9864 times by 1 test | FALSE | evaluated 44 times by 1 test |
valueTRUE | evaluated 9864 times by 1 test | FALSE | evaluated 44 times by 1 test |
) | 0-9908 |
4873 | { | - |
4874 | if (isfuncTRUE | evaluated 61 times by 1 test | FALSE | evaluated 9803 times by 1 test |
) | 61-9803 |
4875 | { | - |
4876 | t = dequote_escapes (value); | - |
4877 | value_len = (((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
t)TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
&& (TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
t)[0]TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
) ? ((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
t)[1]TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
? ((TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
t)[2]TRUE | evaluated 61 times by 1 test | FALSE | never evaluated |
? strlen(t) : 2) : 1) : 0); | 0-61 |
4878 | memcpy (q + 1, t, value_len + 1); | - |
4879 | sh_xfree((t), "variables.c", 4415); | - |
4880 | }executed 61 times by 1 test: end of block | 61 |
4881 | else | - |
4882 | memcpy (q + 1, value, value_len + 1);executed 9803 times by 1 test: memcpy (q + 1, value, value_len + 1); | 9803 |
4883 | } | - |
4884 | else | - |
4885 | q[1] = '\0';executed 44 times by 1 test: q[1] = '\0'; | 44 |
4886 | | - |
4887 | returnexecuted 9908 times by 1 test: return (p); (p);executed 9908 times by 1 test: return (p); | 9908 |
4888 | } | - |
4889 | | - |
4890 | | - |
4891 | | - |
4892 | static int | - |
4893 | valid_exportstr (v) | - |
4894 | SHELL_VAR *v; | - |
4895 | { | - |
4896 | char *s; | - |
4897 | | - |
4898 | s = v->exportstr; | - |
4899 | if (s == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
4900 | { | - |
4901 | internal_error ( | - |
4902 | dcgettext (((void *)0), | - |
4903 | "%s has null exportstr" | - |
4904 | , 5) | - |
4905 | , v->name); | - |
4906 | return never executed: return (0); (0);never executed: return (0); | 0 |
4907 | } | - |
4908 | if (((TRUE | never evaluated | FALSE | never evaluated |
1 && TRUE | never evaluated | FALSE | never evaluated |
| 0 |
4909 | ((*TRUE | never evaluated | FALSE | never evaluated |
__ctype_b_loc ())[(int) ((TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
4910 | (unsigned char)(unsigned char)*sTRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
4911 | ))] & (unsigned short int) _ISalpha)TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
4912 | ) || ((TRUE | never evaluated | FALSE | never evaluated |
unsigned char)*s == '_')TRUE | never evaluated | FALSE | never evaluated |
) == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
4913 | { | - |
4914 | internal_error ( | - |
4915 | dcgettext (((void *)0), | - |
4916 | "invalid character %d in exportstr for %s" | - |
4917 | , 5) | - |
4918 | , *s, v->name); | - |
4919 | return never executed: return (0); (0);never executed: return (0); | 0 |
4920 | } | - |
4921 | for (s = v->exportstr + 1; sTRUE | never evaluated | FALSE | never evaluated |
&& *TRUE | never evaluated | FALSE | never evaluated |
sTRUE | never evaluated | FALSE | never evaluated |
; s++) | 0 |
4922 | { | - |
4923 | if (*TRUE | never evaluated | FALSE | never evaluated |
s == '='TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
4924 | break; never executed: break; | 0 |
4925 | if (((TRUE | never evaluated | FALSE | never evaluated |
1 && TRUE | never evaluated | FALSE | never evaluated |
| 0 |
4926 | ((*TRUE | never evaluated | FALSE | never evaluated |
__ctype_b_loc ())[(int) ((TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
4927 | (unsigned char)(unsigned char)*sTRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
4928 | ))] & (unsigned short int) _ISalnum)TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
4929 | ) || (TRUE | never evaluated | FALSE | never evaluated |
unsigned char)*s == '_'TRUE | never evaluated | FALSE | never evaluated |
) == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
4930 | { | - |
4931 | internal_error ( | - |
4932 | dcgettext (((void *)0), | - |
4933 | "invalid character %d in exportstr for %s" | - |
4934 | , 5) | - |
4935 | , *s, v->name); | - |
4936 | return never executed: return (0); (0);never executed: return (0); | 0 |
4937 | } | - |
4938 | } never executed: end of block | 0 |
4939 | if (*TRUE | never evaluated | FALSE | never evaluated |
s != '='TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
4940 | { | - |
4941 | internal_error ( | - |
4942 | dcgettext (((void *)0), | - |
4943 | "no `=' in exportstr for %s" | - |
4944 | , 5) | - |
4945 | , v->name); | - |
4946 | return never executed: return (0); (0);never executed: return (0); | 0 |
4947 | } | - |
4948 | return never executed: return (1); (1);never executed: return (1); | 0 |
4949 | } | - |
4950 | | - |
4951 | | - |
4952 | static char ** | - |
4953 | make_env_array_from_var_list (vars) | - |
4954 | SHELL_VAR **vars; | - |
4955 | { | - |
4956 | register int i, list_index; | - |
4957 | register SHELL_VAR *var; | - |
4958 | char **list, *value; | - |
4959 | | - |
4960 | list = strvec_create ((1 + strvec_len ((char **)vars))); | - |
4961 | | - |
4962 | | - |
4963 | | - |
4964 | for (i = 0, list_index = 0; var = vars[i]TRUE | evaluated 319958 times by 1 test | FALSE | evaluated 18740 times by 1 test |
; i++) | 18740-319958 |
4965 | { | - |
4966 | | - |
4967 | | - |
4968 | | - |
4969 | | - |
4970 | | - |
4971 | | - |
4972 | if (((((TRUE | never evaluated | FALSE | evaluated 319958 times by 1 test |
var)->attributes) & (0x0040000)))TRUE | never evaluated | FALSE | evaluated 319958 times by 1 test |
&& var->dynamic_valueTRUE | never evaluated | FALSE | never evaluated |
) | 0-319958 |
4973 | { | - |
4974 | var = (*(var->dynamic_value)) (var); | - |
4975 | do { if ((TRUE | never evaluated | FALSE | never evaluated |
var)->exportstrTRUE | never evaluated | FALSE | never evaluated |
) { sh_xfree(((var)->exportstr), "variables.c", 4487); (var)->exportstr = (char *) | 0 |
4976 | ((void *)0) | - |
4977 | ; } never executed: end of block } while (0); | 0 |
4978 | } never executed: end of block | 0 |
4979 | | - |
4980 | if (var->exportstrTRUE | evaluated 311840 times by 1 test | FALSE | evaluated 8118 times by 1 test |
) | 8118-311840 |
4981 | value = var->exportstr;executed 311840 times by 1 test: value = var->exportstr; | 311840 |
4982 | else if (((((TRUE | evaluated 61 times by 1 test | FALSE | evaluated 8057 times by 1 test |
var)->attributes) & (0x0000008)))TRUE | evaluated 61 times by 1 test | FALSE | evaluated 8057 times by 1 test |
) | 61-8057 |
4983 | value = named_function_string ((char *)executed 61 times by 1 test: value = named_function_string ((char *) ((void *)0) , (COMMAND *)((var)->value), 0); | 61 |
4984 | ((void *)0)executed 61 times by 1 test: value = named_function_string ((char *) ((void *)0) , (COMMAND *)((var)->value), 0); | 61 |
4985 | , (COMMAND *)((var)->value), 0);executed 61 times by 1 test: value = named_function_string ((char *) ((void *)0) , (COMMAND *)((var)->value), 0); | 61 |
4986 | | - |
4987 | else if (((((TRUE | evaluated 8 times by 1 test | FALSE | evaluated 8049 times by 1 test |
var)->attributes) & (0x0000004)))TRUE | evaluated 8 times by 1 test | FALSE | evaluated 8049 times by 1 test |
) | 8-8049 |
4988 | | - |
4989 | | - |
4990 | | - |
4991 | continue;executed 8 times by 1 test: continue; | 8 |
4992 | | - |
4993 | else if (((((TRUE | never evaluated | FALSE | evaluated 8049 times by 1 test |
var)->attributes) & (0x0000040)))TRUE | never evaluated | FALSE | evaluated 8049 times by 1 test |
) | 0-8049 |
4994 | | - |
4995 | | - |
4996 | | - |
4997 | continue; never executed: continue; | 0 |
4998 | | - |
4999 | | - |
5000 | else | - |
5001 | value = ((var)->value);executed 8049 times by 1 test: value = ((var)->value); | 8049 |
5002 | | - |
5003 | if (valueTRUE | evaluated 319923 times by 1 test | FALSE | evaluated 27 times by 1 test |
) | 27-319923 |
5004 | { | - |
5005 | | - |
5006 | | - |
5007 | list[list_index] = (TRUE | evaluated 311840 times by 1 test | FALSE | evaluated 8083 times by 1 test |
value == var->exportstr)TRUE | evaluated 311840 times by 1 test | FALSE | evaluated 8083 times by 1 test |
? (char *)strcpy (sh_xmalloc((1 + strlen (value)), "variables.c", 4515), (value)) | 8083-311840 |
5008 | : mk_env_string (var->name, value, ((((var)->attributes) & (0x0000008)))); | - |
5009 | | - |
5010 | if ((TRUE | evaluated 8083 times by 1 test | FALSE | evaluated 311840 times by 1 test |
value == var->exportstr) == 0TRUE | evaluated 8083 times by 1 test | FALSE | evaluated 311840 times by 1 test |
) | 8083-311840 |
5011 | (executed 8083 times by 1 test: (var)->exportstr = (list[list_index]) ? (char *)strcpy (sh_xmalloc((1 + strlen (list[list_index])), "variables.c", 4519), (list[list_index])) : (char *) ((void *)0) ; var)->exportstr = (list[list_index]) ? (char *)strcpy (sh_xmalloc((1 + strlen (list[list_index])), "variables.c", 4519), (list[list_index])) : (char *)executed 8083 times by 1 test: (var)->exportstr = (list[list_index]) ? (char *)strcpy (sh_xmalloc((1 + strlen (list[list_index])), "variables.c", 4519), (list[list_index])) : (char *) ((void *)0) ; | 8083 |
5012 | ((void *)0)executed 8083 times by 1 test: (var)->exportstr = (list[list_index]) ? (char *)strcpy (sh_xmalloc((1 + strlen (list[list_index])), "variables.c", 4519), (list[list_index])) : (char *) ((void *)0) ; | 8083 |
5013 | ;executed 8083 times by 1 test: (var)->exportstr = (list[list_index]) ? (char *)strcpy (sh_xmalloc((1 + strlen (list[list_index])), "variables.c", 4519), (list[list_index])) : (char *) ((void *)0) ; | 8083 |
5014 | | - |
5015 | list_index++; | - |
5016 | }executed 319923 times by 1 test: end of block | 319923 |
5017 | }executed 319950 times by 1 test: end of block | 319950 |
5018 | | - |
5019 | list[list_index] = (char *) | - |
5020 | ((void *)0) | - |
5021 | ; | - |
5022 | returnexecuted 18740 times by 1 test: return (list); (list);executed 18740 times by 1 test: return (list); | 18740 |
5023 | } | - |
5024 | | - |
5025 | | - |
5026 | | - |
5027 | | - |
5028 | static char ** | - |
5029 | make_var_export_array (vcxt) | - |
5030 | VAR_CONTEXT *vcxt; | - |
5031 | { | - |
5032 | char **list; | - |
5033 | SHELL_VAR **vars; | - |
5034 | | - |
5035 | | - |
5036 | | - |
5037 | | - |
5038 | vars = map_over (export_environment_candidate, vcxt); | - |
5039 | | - |
5040 | | - |
5041 | if (vars == 0TRUE | never evaluated | FALSE | evaluated 14159 times by 1 test |
) | 0-14159 |
5042 | return never executed: return (char **) ((void *)0) ; (char **)never executed: return (char **) ((void *)0) ; | 0 |
5043 | ((void *)0) never executed: return (char **) ((void *)0) ; | 0 |
5044 | ; never executed: return (char **) ((void *)0) ; | 0 |
5045 | | - |
5046 | list = make_env_array_from_var_list (vars); | - |
5047 | | - |
5048 | sh_xfree((vars), "variables.c", 4558); | - |
5049 | returnexecuted 14159 times by 1 test: return (list); (list);executed 14159 times by 1 test: return (list); | 14159 |
5050 | } | - |
5051 | | - |
5052 | static char ** | - |
5053 | make_func_export_array () | - |
5054 | { | - |
5055 | char **list; | - |
5056 | SHELL_VAR **vars; | - |
5057 | | - |
5058 | vars = map_over_funcs (visible_and_exported); | - |
5059 | if (vars == 0TRUE | evaluated 9578 times by 1 test | FALSE | evaluated 4581 times by 1 test |
) | 4581-9578 |
5060 | returnexecuted 9578 times by 1 test: return (char **) ((void *)0) ; (char **)executed 9578 times by 1 test: return (char **) ((void *)0) ; | 9578 |
5061 | ((void *)0)executed 9578 times by 1 test: return (char **) ((void *)0) ; | 9578 |
5062 | ;executed 9578 times by 1 test: return (char **) ((void *)0) ; | 9578 |
5063 | | - |
5064 | list = make_env_array_from_var_list (vars); | - |
5065 | | - |
5066 | sh_xfree((vars), "variables.c", 4574); | - |
5067 | returnexecuted 4581 times by 1 test: return (list); (list);executed 4581 times by 1 test: return (list); | 4581 |
5068 | } | - |
5069 | char ** | - |
5070 | add_or_supercede_exported_var (assign, do_alloc) | - |
5071 | char *assign; | - |
5072 | int do_alloc; | - |
5073 | { | - |
5074 | register int i; | - |
5075 | int equal_offset; | - |
5076 | | - |
5077 | equal_offset = assignment (assign, 0); | - |
5078 | if (equal_offset == 0TRUE | never evaluated | FALSE | evaluated 27842 times by 1 test |
) | 0-27842 |
5079 | return never executed: return (export_env); (export_env);never executed: return (export_env); | 0 |
5080 | | - |
5081 | | - |
5082 | | - |
5083 | | - |
5084 | if (assign[equal_offset + 1] == '('TRUE | never evaluated | FALSE | evaluated 27842 times by 1 test |
&& | 0-27842 |
5085 | | - |
5086 | (TRUE | never evaluated | FALSE | never evaluated |
__extension__ (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5087 | 3TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5088 | )TRUE | never evaluated | FALSE | never evaluated |
&& ((__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5089 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5090 | )TRUE | never evaluated | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5091 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5092 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5093 | 3TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5094 | ))TRUE | never evaluated | FALSE | never evaluated |
) || (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5095 | ") {"TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5096 | )TRUE | never evaluated | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5097 | ") {"TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5098 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5099 | 3TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5100 | ))TRUE | never evaluated | FALSE | never evaluated |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5101 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5102 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5103 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5104 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5105 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5106 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5107 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5108 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5109 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5110 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5111 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5112 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5113 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5114 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5115 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5116 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5117 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5118 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5119 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5120 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5121 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5122 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5123 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5124 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5125 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5126 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5127 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5128 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5129 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5130 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5131 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5132 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5133 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5134 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5135 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5136 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5137 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5138 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5139 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5140 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5141 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5142 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5143 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5144 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5145 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5146 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( assign + equal_offset + 2 ))[3] - __s2[3]); | 0 |
5147 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( assign + equal_offset + 2 ))[3] - __s2[3]); | 0 |
5148 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5149 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5150 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5151 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5152 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5153 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5154 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5155 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5156 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5157 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5158 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5159 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5160 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5161 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5162 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5163 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5164 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5165 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5166 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5167 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5168 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5169 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5170 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5171 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5172 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5173 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5174 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( ") {" ))[3] - __s2[3]); | 0 |
5175 | ") {"TRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( ") {" ))[3] - __s2[3]); | 0 |
5176 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5177 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5178 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5179 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5180 | )))); }) : strncmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5181 | assign + equal_offset + 2TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5182 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5183 | ") {"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5184 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5185 | 3TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5186 | ))) TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5187 | == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
5188 | equal_offset += 4; never executed: equal_offset += 4; | 0 |
5189 | | - |
5190 | for (i = 0; i < export_env_indexTRUE | evaluated 612817 times by 1 test | FALSE | evaluated 1856 times by 1 test |
; i++) | 1856-612817 |
5191 | { | - |
5192 | if (((TRUE | never evaluated | FALSE | evaluated 612817 times by 1 test |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
TRUE | never evaluated | FALSE | evaluated 612817 times by 1 test |
equal_offset + 1 == 0)TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
TRUE | never evaluated | FALSE | evaluated 612817 times by 1 test |
? (1) : ((TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
assign)[0] == (export_env[i])[0]TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
&& TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-612817 |
5193 | (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
__extension__ (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 25986 times by 1 test |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5194 | equal_offset + 1TRUE | never evaluated | FALSE | evaluated 25986 times by 1 test |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5195 | )TRUE | never evaluated | FALSE | evaluated 25986 times by 1 test |
&& ((__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5196 | assignTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5197 | )TRUE | never evaluated | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5198 | assignTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5199 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5200 | equal_offset + 1TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5201 | ))TRUE | never evaluated | FALSE | never evaluated |
) || (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5202 | export_env[i]TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5203 | )TRUE | never evaluated | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5204 | export_env[i]TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5205 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5206 | equal_offset + 1TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5207 | ))TRUE | never evaluated | FALSE | never evaluated |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5208 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5209 | ) && __builtin_constant_p (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5210 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5211 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5212 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5213 | ), __s2_len = __builtin_strlen (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5214 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5215 | ), (!((size_t)(const void *)((TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5216 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5217 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5218 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5219 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5220 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5221 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5222 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5223 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5224 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5225 | , TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5226 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5227 | ) : (__builtin_constant_p (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5228 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5229 | ) && ((size_t)(const void *)((TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5230 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5231 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5232 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5233 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5234 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5235 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5236 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5237 | ) && ((size_t)(const void *)((TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5238 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5239 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5240 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5241 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5242 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5243 | , TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5244 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5245 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5246 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5247 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5248 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5249 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5250 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5251 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5252 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5253 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( assign ))[3] - __s2[3]); TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5254 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( assign ))[3] - __s2[3]); | 0-586831 |
5255 | ))[3] - __s2[3]);TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( assign ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
| 0-586831 |
5256 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5257 | ) && ((size_t)(const void *)((TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5258 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5259 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5260 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5261 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5262 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5263 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5264 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5265 | ) && ((size_t)(const void *)((TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5266 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5267 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5268 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5269 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5270 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5271 | , TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5272 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5273 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5274 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5275 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5276 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5277 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5278 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5279 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5280 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5281 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( export_env[i] ))[3] - __s2[3]); TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5282 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( export_env[i] ))[3] - __s2[3]); | 0-586831 |
5283 | ))[3] - __s2[3]);TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( export_env[i] ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
| 0-586831 |
5284 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5285 | , TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5286 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5287 | )))); }) : strncmp (TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5288 | assignTRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5289 | , TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5290 | export_env[i]TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5291 | , TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5292 | equal_offset + 1TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5293 | ))) TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
| 0-586831 |
5294 | == 0TRUE | evaluated 25986 times by 1 test | FALSE | never evaluated |
))TRUE | evaluated 25986 times by 1 test | FALSE | evaluated 586831 times by 1 test |
) | 0-586831 |
5295 | { | - |
5296 | sh_xfree((export_env[i]), "variables.c", 4617); | - |
5297 | export_env[i] = do_allocTRUE | never evaluated | FALSE | evaluated 25986 times by 1 test |
? (char *)strcpy (sh_xmalloc((1 + strlen (assign)), "variables.c", 4618), (assign)) : assign; | 0-25986 |
5298 | returnexecuted 25986 times by 1 test: return (export_env); (export_env);executed 25986 times by 1 test: return (export_env); | 25986 |
5299 | } | - |
5300 | }executed 586831 times by 1 test: end of block | 586831 |
5301 | do { if (export_env_index >= (export_env_size - 1)TRUE | never evaluated | FALSE | evaluated 1856 times by 1 test |
) { export_env_size += 16; export_env = strvec_resize (export_env, export_env_size); environ = export_env; }never executed: end of block export_env[export_env_index++] = (TRUE | never evaluated | FALSE | evaluated 1856 times by 1 test |
do_alloc)TRUE | never evaluated | FALSE | evaluated 1856 times by 1 test |
? (char *)strcpy (sh_xmalloc((1 + strlen (assign)), "variables.c", 4622), (assign)) : assign; export_env[export_env_index] = (char *) | 0-1856 |
5302 | ((void *)0) | - |
5303 | ; } while (0); | - |
5304 | returnexecuted 1856 times by 1 test: return (export_env); (export_env);executed 1856 times by 1 test: return (export_env); | 1856 |
5305 | } | - |
5306 | | - |
5307 | static void | - |
5308 | add_temp_array_to_env (temp_array, do_alloc, do_supercede) | - |
5309 | char **temp_array; | - |
5310 | int do_alloc, do_supercede; | - |
5311 | { | - |
5312 | register int i; | - |
5313 | | - |
5314 | if (temp_array == 0TRUE | never evaluated | FALSE | evaluated 18740 times by 1 test |
) | 0-18740 |
5315 | return; never executed: return; | 0 |
5316 | | - |
5317 | for (i = 0; temp_array[i]TRUE | evaluated 319923 times by 1 test | FALSE | evaluated 18740 times by 1 test |
; i++) | 18740-319923 |
5318 | { | - |
5319 | if (do_supercedeTRUE | never evaluated | FALSE | evaluated 319923 times by 1 test |
) | 0-319923 |
5320 | export_env = add_or_supercede_exported_var (temp_array[i], do_alloc); never executed: export_env = add_or_supercede_exported_var (temp_array[i], do_alloc); | 0 |
5321 | else | - |
5322 | do { if (export_env_index >= (export_env_size - 1)TRUE | never evaluated | FALSE | evaluated 319923 times by 1 test |
) { export_env_size += 16; export_env = strvec_resize (export_env, export_env_size); environ = export_env; }never executed: end of block export_env[export_env_index++] = (TRUE | never evaluated | FALSE | evaluated 319923 times by 1 test |
do_alloc)TRUE | never evaluated | FALSE | evaluated 319923 times by 1 test |
? (char *)strcpy (sh_xmalloc((1 + strlen (temp_array[i])), "variables.c", 4641), (temp_array[i])) : temp_array[i]; export_env[export_env_index] = (char *) | 0-319923 |
5323 | ((void *)0) | - |
5324 | ; }executed 319923 times by 1 test: end of block while (0); | 319923 |
5325 | } | - |
5326 | | - |
5327 | sh_xfree((temp_array), "variables.c", 4644); | - |
5328 | }executed 18740 times by 1 test: end of block | 18740 |
5329 | static int | - |
5330 | n_shell_variables () | - |
5331 | { | - |
5332 | VAR_CONTEXT *vc; | - |
5333 | int n; | - |
5334 | | - |
5335 | for (n = 0, vc = shell_variables; vcTRUE | evaluated 18113 times by 1 test | FALSE | evaluated 14159 times by 1 test |
; vc = vc->down) | 14159-18113 |
5336 | n += ((TRUE | evaluated 15562 times by 1 test | FALSE | evaluated 2551 times by 1 test |
vc->table)TRUE | evaluated 15562 times by 1 test | FALSE | evaluated 2551 times by 1 test |
? (vc->table)->nentries : 0);executed 18113 times by 1 test: n += ((vc->table) ? (vc->table)->nentries : 0); | 2551-18113 |
5337 | returnexecuted 14159 times by 1 test: return n; n;executed 14159 times by 1 test: return n; | 14159 |
5338 | } | - |
5339 | | - |
5340 | int | - |
5341 | chkexport (name) | - |
5342 | char *name; | - |
5343 | { | - |
5344 | SHELL_VAR *v; | - |
5345 | | - |
5346 | v = find_variable (name); | - |
5347 | if (vTRUE | evaluated 18 times by 1 test | FALSE | evaluated 3 times by 1 test |
&& ((((TRUE | evaluated 16 times by 1 test | FALSE | evaluated 2 times by 1 test |
v)->attributes) & (0x0000001)))TRUE | evaluated 16 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-18 |
5348 | { | - |
5349 | array_needs_making = 1; | - |
5350 | maybe_make_export_env (); | - |
5351 | returnexecuted 16 times by 1 test: return 1; 1;executed 16 times by 1 test: return 1; | 16 |
5352 | } | - |
5353 | returnexecuted 5 times by 1 test: return 0; 0;executed 5 times by 1 test: return 0; | 5 |
5354 | } | - |
5355 | | - |
5356 | void | - |
5357 | maybe_make_export_env () | - |
5358 | { | - |
5359 | register char **temp_array; | - |
5360 | int new_size; | - |
5361 | VAR_CONTEXT *tcxt; | - |
5362 | | - |
5363 | if (array_needs_makingTRUE | evaluated 14159 times by 1 test | FALSE | evaluated 3302469 times by 1 test |
) | 14159-3302469 |
5364 | { | - |
5365 | if (export_envTRUE | evaluated 8749 times by 1 test | FALSE | evaluated 5410 times by 1 test |
) | 5410-8749 |
5366 | strvec_flush (export_env);executed 8749 times by 1 test: strvec_flush (export_env); | 8749 |
5367 | | - |
5368 | | - |
5369 | | - |
5370 | | - |
5371 | | - |
5372 | new_size = n_shell_variables () + ((TRUE | evaluated 14159 times by 1 test | FALSE | never evaluated |
shell_functions)TRUE | evaluated 14159 times by 1 test | FALSE | never evaluated |
? (shell_functions)->nentries : 0) + 1 + | 0-14159 |
5373 | ((TRUE | evaluated 96 times by 1 test | FALSE | evaluated 14063 times by 1 test |
temporary_env)TRUE | evaluated 96 times by 1 test | FALSE | evaluated 14063 times by 1 test |
? (temporary_env)->nentries : 0); | 96-14063 |
5374 | if (new_size > export_env_sizeTRUE | evaluated 12489 times by 1 test | FALSE | evaluated 1670 times by 1 test |
) | 1670-12489 |
5375 | { | - |
5376 | export_env_size = new_size; | - |
5377 | export_env = strvec_resize (export_env, export_env_size); | - |
5378 | environ = export_env; | - |
5379 | }executed 12489 times by 1 test: end of block | 12489 |
5380 | export_env[export_env_index = 0] = (char *) | - |
5381 | ((void *)0) | - |
5382 | ; | - |
5383 | | - |
5384 | | - |
5385 | | - |
5386 | | - |
5387 | | - |
5388 | if (temporary_envTRUE | evaluated 96 times by 1 test | FALSE | evaluated 14063 times by 1 test |
) | 96-14063 |
5389 | { | - |
5390 | tcxt = new_var_context ((char *) | - |
5391 | ((void *)0) | - |
5392 | , 0); | - |
5393 | tcxt->table = temporary_env; | - |
5394 | tcxt->down = shell_variables; | - |
5395 | }executed 96 times by 1 test: end of block | 96 |
5396 | else | - |
5397 | tcxt = shell_variables;executed 14063 times by 1 test: tcxt = shell_variables; | 14063 |
5398 | | - |
5399 | temp_array = make_var_export_array (tcxt); | - |
5400 | if (temp_arrayTRUE | evaluated 14159 times by 1 test | FALSE | never evaluated |
) | 0-14159 |
5401 | add_temp_array_to_env (temp_array, 0, 0);executed 14159 times by 1 test: add_temp_array_to_env (temp_array, 0, 0); | 14159 |
5402 | | - |
5403 | if (tcxt != shell_variablesTRUE | evaluated 96 times by 1 test | FALSE | evaluated 14063 times by 1 test |
) | 96-14063 |
5404 | sh_xfree((tcxt), "variables.c", 4734);executed 96 times by 1 test: sh_xfree((tcxt), "variables.c", 4734); | 96 |
5405 | | - |
5406 | | - |
5407 | | - |
5408 | temp_array = restrictedTRUE | never evaluated | FALSE | evaluated 14159 times by 1 test |
? (char **)0 : make_func_export_array (); | 0-14159 |
5409 | | - |
5410 | | - |
5411 | | - |
5412 | if (temp_arrayTRUE | evaluated 4581 times by 1 test | FALSE | evaluated 9578 times by 1 test |
) | 4581-9578 |
5413 | add_temp_array_to_env (temp_array, 0, 0);executed 4581 times by 1 test: add_temp_array_to_env (temp_array, 0, 0); | 4581 |
5414 | | - |
5415 | array_needs_making = 0; | - |
5416 | }executed 14159 times by 1 test: end of block | 14159 |
5417 | }executed 3316628 times by 1 test: end of block | 3316628 |
5418 | void | - |
5419 | update_export_env_inplace (env_prefix, preflen, value) | - |
5420 | char *env_prefix; | - |
5421 | int preflen; | - |
5422 | char *value; | - |
5423 | { | - |
5424 | char *evar; | - |
5425 | | - |
5426 | evar = (char *)sh_xmalloc(((((value) && (value)[0]) ? ((value)[1] ? ((value)[2] ? strlen(value) : 2) : 1) : 0) + preflen + 1), "variables.c", 4766); | - |
5427 | strcpy (evar, env_prefix); | - |
5428 | if (valueTRUE | evaluated 27842 times by 1 test | FALSE | never evaluated |
) | 0-27842 |
5429 | strcpy (evar + preflen, value);executed 27842 times by 1 test: strcpy (evar + preflen, value); | 27842 |
5430 | export_env = add_or_supercede_exported_var (evar, 0); | - |
5431 | }executed 27842 times by 1 test: end of block | 27842 |
5432 | | - |
5433 | | - |
5434 | void | - |
5435 | put_command_name_into_env (command_name) | - |
5436 | char *command_name; | - |
5437 | { | - |
5438 | update_export_env_inplace ("_=", 2, command_name); | - |
5439 | }executed 27754 times by 1 test: end of block | 27754 |
5440 | VAR_CONTEXT * | - |
5441 | new_var_context (name, flags) | - |
5442 | char *name; | - |
5443 | int flags; | - |
5444 | { | - |
5445 | VAR_CONTEXT *vc; | - |
5446 | | - |
5447 | vc = (VAR_CONTEXT *)sh_xmalloc((sizeof (VAR_CONTEXT)), "variables.c", 4797); | - |
5448 | vc->name = nameTRUE | evaluated 1640471 times by 1 test | FALSE | evaluated 5630 times by 1 test |
? (char *)strcpy (sh_xmalloc((1 + strlen (name)), "variables.c", 4798), (name)) : (char *) | 5630-1640471 |
5449 | ((void *)0) | - |
5450 | ; | - |
5451 | vc->scope = variable_context; | - |
5452 | vc->flags = flags; | - |
5453 | | - |
5454 | vc->up = vc->down = (VAR_CONTEXT *) | - |
5455 | ((void *)0) | - |
5456 | ; | - |
5457 | vc->table = (HASH_TABLE *) | - |
5458 | ((void *)0) | - |
5459 | ; | - |
5460 | | - |
5461 | returnexecuted 1646101 times by 1 test: return vc; vc;executed 1646101 times by 1 test: return vc; | 1646101 |
5462 | } | - |
5463 | | - |
5464 | | - |
5465 | | - |
5466 | void | - |
5467 | dispose_var_context (vc) | - |
5468 | VAR_CONTEXT *vc; | - |
5469 | { | - |
5470 | do { if (vc->nameTRUE | evaluated 1636136 times by 1 test | FALSE | never evaluated |
) sh_xfree((vc->name), "variables.c", 4814);executed 1636136 times by 1 test: sh_xfree((vc->name), "variables.c", 4814); } while (0); | 0-1636136 |
5471 | | - |
5472 | if (vc->tableTRUE | evaluated 323 times by 1 test | FALSE | evaluated 1635813 times by 1 test |
) | 323-1635813 |
5473 | { | - |
5474 | delete_all_variables (vc->table); | - |
5475 | hash_dispose (vc->table); | - |
5476 | }executed 323 times by 1 test: end of block | 323 |
5477 | | - |
5478 | sh_xfree((vc), "variables.c", 4822); | - |
5479 | }executed 1636136 times by 1 test: end of block | 1636136 |
5480 | | - |
5481 | | - |
5482 | static int | - |
5483 | set_context (var) | - |
5484 | SHELL_VAR *var; | - |
5485 | { | - |
5486 | returnexecuted 177 times by 1 test: return (var->context = variable_context); (var->context = variable_context);executed 177 times by 1 test: return (var->context = variable_context); | 177 |
5487 | } | - |
5488 | | - |
5489 | | - |
5490 | | - |
5491 | | - |
5492 | VAR_CONTEXT * | - |
5493 | push_var_context (name, flags, tempvars) | - |
5494 | char *name; | - |
5495 | int flags; | - |
5496 | HASH_TABLE *tempvars; | - |
5497 | { | - |
5498 | VAR_CONTEXT *vc; | - |
5499 | | - |
5500 | vc = new_var_context (name, flags); | - |
5501 | vc->table = tempvars; | - |
5502 | if (tempvarsTRUE | evaluated 156 times by 1 test | FALSE | evaluated 1640417 times by 1 test |
) | 156-1640417 |
5503 | { | - |
5504 | | - |
5505 | | - |
5506 | flatten (tempvars, set_context, (VARLIST *) | - |
5507 | ((void *)0) | - |
5508 | , 0); | - |
5509 | vc->flags |= 0x02; | - |
5510 | }executed 156 times by 1 test: end of block | 156 |
5511 | vc->down = shell_variables; | - |
5512 | shell_variables->up = vc; | - |
5513 | | - |
5514 | returnexecuted 1640573 times by 1 test: return (shell_variables = vc); (shell_variables = vc);executed 1640573 times by 1 test: return (shell_variables = vc); | 1640573 |
5515 | } | - |
5516 | | - |
5517 | static void | - |
5518 | push_func_var (data) | - |
5519 | void * data; | - |
5520 | { | - |
5521 | SHELL_VAR *var, *v; | - |
5522 | | - |
5523 | var = (SHELL_VAR *)data; | - |
5524 | | - |
5525 | if (((((TRUE | evaluated 526 times by 1 test | FALSE | evaluated 133 times by 1 test |
var)->attributes) & (0x0000020)))TRUE | evaluated 526 times by 1 test | FALSE | evaluated 133 times by 1 test |
&& ((TRUE | never evaluated | FALSE | evaluated 526 times by 1 test |
var->name)[0] == ("-")[0]TRUE | never evaluated | FALSE | evaluated 526 times by 1 test |
&& | 0-526 |
5526 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5527 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5528 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5529 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5530 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5531 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5532 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5533 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5534 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5535 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5536 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5537 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5538 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5539 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5540 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5541 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5542 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5543 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5544 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5545 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5546 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5547 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5548 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5549 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5550 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5551 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5552 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5553 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5554 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5555 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5556 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5557 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5558 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5559 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5560 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5561 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5562 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5563 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5564 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5565 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5566 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5567 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5568 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5569 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5570 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5571 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5572 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( var->name ))[3] - __s2[3]); | 0 |
5573 | var->nameTRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( var->name ))[3] - __s2[3]); | 0 |
5574 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5575 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5576 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5577 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5578 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5579 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5580 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5581 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5582 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5583 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5584 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5585 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5586 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5587 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5588 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5589 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5590 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5591 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5592 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5593 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5594 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5595 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5596 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5597 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5598 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5599 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5600 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0 |
5601 | "-"TRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0 |
5602 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5603 | var->nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
5604 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5605 | "-"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5606 | )))); }) TRUE | never evaluated | FALSE | never evaluated |
| 0 |
5607 | == 0TRUE | never evaluated | FALSE | never evaluated |
)) | 0 |
5608 | set_current_options (((var)->value)); never executed: set_current_options (((var)->value)); | 0 |
5609 | else if (((((TRUE | evaluated 133 times by 1 test | FALSE | evaluated 526 times by 1 test |
var)->attributes) & (0x0100000)))TRUE | evaluated 133 times by 1 test | FALSE | evaluated 526 times by 1 test |
&& (posixly_correctTRUE | evaluated 20 times by 1 test | FALSE | evaluated 113 times by 1 test |
|| (TRUE | evaluated 3 times by 1 test | FALSE | evaluated 110 times by 1 test |
var->attributes & 0x0200000)TRUE | evaluated 3 times by 1 test | FALSE | evaluated 110 times by 1 test |
)) | 3-526 |
5610 | { | - |
5611 | | - |
5612 | | - |
5613 | | - |
5614 | if (((((TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
shell_variables)->flags & 0x04) != 0)TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
|| (((TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
shell_variables)->flags & ((0x04|0x08|0x10))) == 0x10)TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
) && shell_variables->table == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0-23 |
5615 | shell_variables->table = hash_create (1024); never executed: shell_variables->table = hash_create (1024); | 0 |
5616 | | - |
5617 | v = bind_variable_internal (var->name, ((var)->value), shell_variables->table, 0, 0); | - |
5618 | | - |
5619 | if (vTRUE | evaluated 23 times by 1 test | FALSE | never evaluated |
&& (((((TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
var)->attributes) & (0x0000004)))TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
|| ((((TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
var)->attributes) & (0x0000040)))TRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
)) | 0-23 |
5620 | { | - |
5621 | do { if (((TRUE | never evaluated | FALSE | never evaluated |
v)->value)TRUE | never evaluated | FALSE | never evaluated |
) sh_xfree((((v)->value)), "variables.c", 4881);never executed: sh_xfree((((v)->value)), "variables.c", 4881); } while (0); | 0 |
5622 | if (((((TRUE | never evaluated | FALSE | never evaluated |
var)->attributes) & (0x0000004)))TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
5623 | (( never executed: ((v)->value = (char *)(array_copy ((ARRAY *)((var)->value)))); v)->value = (char *)(array_copy ((ARRAY *)((var)->value))));never executed: ((v)->value = (char *)(array_copy ((ARRAY *)((var)->value)))); | 0 |
5624 | else | - |
5625 | (( never executed: ((v)->value = (char *)((hash_copy(((HASH_TABLE *)((var)->value)), 0)))); v)->value = (char *)((hash_copy(((HASH_TABLE *)((var)->value)), 0))));never executed: ((v)->value = (char *)((hash_copy(((HASH_TABLE *)((var)->value)), 0)))); | 0 |
5626 | } | - |
5627 | | - |
5628 | if (shell_variables == global_variablesTRUE | evaluated 23 times by 1 test | FALSE | never evaluated |
) | 0-23 |
5629 | var->attributes &= ~(0x0100000|0x0200000);executed 23 times by 1 test: var->attributes &= ~(0x0100000|0x0200000); | 23 |
5630 | else | - |
5631 | shell_variables->flags |= 0x02; never executed: shell_variables->flags |= 0x02; | 0 |
5632 | if (vTRUE | evaluated 23 times by 1 test | FALSE | never evaluated |
) | 0-23 |
5633 | v->attributes |= var->attributes;executed 23 times by 1 test: v->attributes |= var->attributes; | 23 |
5634 | }executed 23 times by 1 test: end of block | 23 |
5635 | else | - |
5636 | stupidly_hack_special_variables (var->name);executed 636 times by 1 test: stupidly_hack_special_variables (var->name); | 636 |
5637 | | - |
5638 | dispose_variable (var); | - |
5639 | }executed 659 times by 1 test: end of block | 659 |
5640 | | - |
5641 | | - |
5642 | | - |
5643 | void | - |
5644 | pop_var_context () | - |
5645 | { | - |
5646 | VAR_CONTEXT *ret, *vcxt; | - |
5647 | | - |
5648 | vcxt = shell_variables; | - |
5649 | if ((((TRUE | never evaluated | FALSE | evaluated 1636136 times by 1 test |
vcxt)->flags & 0x04) != 0) == 0TRUE | never evaluated | FALSE | evaluated 1636136 times by 1 test |
) | 0-1636136 |
5650 | { | - |
5651 | internal_error ( | - |
5652 | dcgettext (((void *)0), | - |
5653 | "pop_var_context: head of shell_variables not a function context" | - |
5654 | , 5) | - |
5655 | ); | - |
5656 | return; never executed: return; | 0 |
5657 | } | - |
5658 | | - |
5659 | if (ret = vcxt->downTRUE | evaluated 1636136 times by 1 test | FALSE | never evaluated |
) | 0-1636136 |
5660 | { | - |
5661 | ret->up = (VAR_CONTEXT *) | - |
5662 | ((void *)0) | - |
5663 | ; | - |
5664 | shell_variables = ret; | - |
5665 | if (vcxt->tableTRUE | evaluated 323 times by 1 test | FALSE | evaluated 1635813 times by 1 test |
) | 323-1635813 |
5666 | hash_flush (vcxt->table, push_func_var);executed 323 times by 1 test: hash_flush (vcxt->table, push_func_var); | 323 |
5667 | dispose_var_context (vcxt); | - |
5668 | }executed 1636136 times by 1 test: end of block | 1636136 |
5669 | else | - |
5670 | internal_error ( never executed: internal_error ( dcgettext (((void *)0), "pop_var_context: no global_variables context" , 5) ); | 0 |
5671 | dcgettext (((void *)0), never executed: internal_error ( dcgettext (((void *)0), "pop_var_context: no global_variables context" , 5) ); | 0 |
5672 | "pop_var_context: no global_variables context" never executed: internal_error ( dcgettext (((void *)0), "pop_var_context: no global_variables context" , 5) ); | 0 |
5673 | , 5) never executed: internal_error ( dcgettext (((void *)0), "pop_var_context: no global_variables context" , 5) ); | 0 |
5674 | ); never executed: internal_error ( dcgettext (((void *)0), "pop_var_context: no global_variables context" , 5) ); | 0 |
5675 | } | - |
5676 | | - |
5677 | | - |
5678 | | - |
5679 | void | - |
5680 | delete_all_contexts (vcxt) | - |
5681 | VAR_CONTEXT *vcxt; | - |
5682 | { | - |
5683 | VAR_CONTEXT *v, *t; | - |
5684 | | - |
5685 | for (v = vcxt; v != global_variablesTRUE | never evaluated | FALSE | evaluated 15 times by 1 test |
; v = t) | 0-15 |
5686 | { | - |
5687 | t = v->down; | - |
5688 | dispose_var_context (v); | - |
5689 | } never executed: end of block | 0 |
5690 | | - |
5691 | delete_all_variables (global_variables->table); | - |
5692 | shell_variables = global_variables; | - |
5693 | }executed 15 times by 1 test: end of block | 15 |
5694 | | - |
5695 | | - |
5696 | | - |
5697 | | - |
5698 | | - |
5699 | | - |
5700 | | - |
5701 | VAR_CONTEXT * | - |
5702 | push_scope (flags, tmpvars) | - |
5703 | int flags; | - |
5704 | HASH_TABLE *tmpvars; | - |
5705 | { | - |
5706 | returnexecuted 102 times by 1 test: return (push_var_context ((char *) ((void *)0) , flags, tmpvars)); (push_var_context ((char *)executed 102 times by 1 test: return (push_var_context ((char *) ((void *)0) , flags, tmpvars)); | 102 |
5707 | ((void *)0)executed 102 times by 1 test: return (push_var_context ((char *) ((void *)0) , flags, tmpvars)); | 102 |
5708 | , flags, tmpvars));executed 102 times by 1 test: return (push_var_context ((char *) ((void *)0) , flags, tmpvars)); | 102 |
5709 | } | - |
5710 | | - |
5711 | static void | - |
5712 | push_exported_var (data) | - |
5713 | void * data; | - |
5714 | { | - |
5715 | SHELL_VAR *var, *v; | - |
5716 | | - |
5717 | var = (SHELL_VAR *)data; | - |
5718 | if (((((TRUE | evaluated 42 times by 1 test | FALSE | never evaluated |
var)->attributes) & (0x0100000)))TRUE | evaluated 42 times by 1 test | FALSE | never evaluated |
&& ((((TRUE | evaluated 42 times by 1 test | FALSE | never evaluated |
var)->attributes) & (0x0000001)))TRUE | evaluated 42 times by 1 test | FALSE | never evaluated |
&& (TRUE | never evaluated | FALSE | evaluated 42 times by 1 test |
var->attributes & 0x0200000)TRUE | never evaluated | FALSE | evaluated 42 times by 1 test |
) | 0-42 |
5719 | | - |
5720 | { | - |
5721 | var->attributes &= ~0x0100000; | - |
5722 | v = bind_variable_internal (var->name, ((var)->value), shell_variables->table, 0, 0); | - |
5723 | if (shell_variables == global_variablesTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
5724 | var->attributes &= ~0x0200000; never executed: var->attributes &= ~0x0200000; | 0 |
5725 | if (vTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
5726 | v->attributes |= var->attributes; never executed: v->attributes |= var->attributes; | 0 |
5727 | } never executed: end of block | 0 |
5728 | else | - |
5729 | stupidly_hack_special_variables (var->name);executed 42 times by 1 test: stupidly_hack_special_variables (var->name); | 42 |
5730 | | - |
5731 | dispose_variable (var); | - |
5732 | }executed 42 times by 1 test: end of block | 42 |
5733 | | - |
5734 | void | - |
5735 | pop_scope (is_special) | - |
5736 | int is_special; | - |
5737 | { | - |
5738 | VAR_CONTEXT *vcxt, *ret; | - |
5739 | | - |
5740 | vcxt = shell_variables; | - |
5741 | if ((((TRUE | never evaluated | FALSE | evaluated 101 times by 1 test |
vcxt)->flags & (0x10|0x08)) != 0) == 0TRUE | never evaluated | FALSE | evaluated 101 times by 1 test |
) | 0-101 |
5742 | { | - |
5743 | internal_error ( | - |
5744 | dcgettext (((void *)0), | - |
5745 | "pop_scope: head of shell_variables not a temporary environment scope" | - |
5746 | , 5) | - |
5747 | ); | - |
5748 | return; never executed: return; | 0 |
5749 | } | - |
5750 | | - |
5751 | ret = vcxt->down; | - |
5752 | if (retTRUE | evaluated 101 times by 1 test | FALSE | never evaluated |
) | 0-101 |
5753 | ret->up = (VAR_CONTEXT *)executed 101 times by 1 test: ret->up = (VAR_CONTEXT *) ((void *)0) ; | 101 |
5754 | ((void *)0)executed 101 times by 1 test: ret->up = (VAR_CONTEXT *) ((void *)0) ; | 101 |
5755 | ;executed 101 times by 1 test: ret->up = (VAR_CONTEXT *) ((void *)0) ; | 101 |
5756 | | - |
5757 | shell_variables = ret; | - |
5758 | | - |
5759 | | - |
5760 | | - |
5761 | do { if (vcxt->nameTRUE | never evaluated | FALSE | evaluated 101 times by 1 test |
) sh_xfree((vcxt->name), "variables.c", 5011);never executed: sh_xfree((vcxt->name), "variables.c", 5011); } while (0); | 0-101 |
5762 | if (vcxt->tableTRUE | evaluated 101 times by 1 test | FALSE | never evaluated |
) | 0-101 |
5763 | { | - |
5764 | if (is_specialTRUE | evaluated 59 times by 1 test | FALSE | evaluated 42 times by 1 test |
) | 42-59 |
5765 | hash_flush (vcxt->table, push_func_var);executed 59 times by 1 test: hash_flush (vcxt->table, push_func_var); | 59 |
5766 | else | - |
5767 | hash_flush (vcxt->table, push_exported_var);executed 42 times by 1 test: hash_flush (vcxt->table, push_exported_var); | 42 |
5768 | hash_dispose (vcxt->table); | - |
5769 | }executed 101 times by 1 test: end of block | 101 |
5770 | sh_xfree((vcxt), "variables.c", 5020); | - |
5771 | | - |
5772 | sv_ifs ("IFS"); | - |
5773 | }executed 101 times by 1 test: end of block | 101 |
5774 | | - |
5775 | | - |
5776 | | - |
5777 | | - |
5778 | | - |
5779 | | - |
5780 | | - |
5781 | static WORD_LIST **dollar_arg_stack = (WORD_LIST **) | - |
5782 | ((void *)0) | - |
5783 | ; | - |
5784 | static int dollar_arg_stack_slots; | - |
5785 | static int dollar_arg_stack_index; | - |
5786 | | - |
5787 | | - |
5788 | void | - |
5789 | push_context (name, is_subshell, tempvars) | - |
5790 | char *name; | - |
5791 | int is_subshell; | - |
5792 | HASH_TABLE *tempvars; | - |
5793 | { | - |
5794 | if (is_subshell == 0TRUE | evaluated 1640374 times by 1 test | FALSE | evaluated 97 times by 1 test |
) | 97-1640374 |
5795 | push_dollar_vars ();executed 1640374 times by 1 test: push_dollar_vars (); | 1640374 |
5796 | variable_context++; | - |
5797 | push_var_context (name, 0x04, tempvars); | - |
5798 | }executed 1640471 times by 1 test: end of block | 1640471 |
5799 | | - |
5800 | | - |
5801 | | - |
5802 | void | - |
5803 | pop_context () | - |
5804 | { | - |
5805 | pop_dollar_vars (); | - |
5806 | variable_context--; | - |
5807 | pop_var_context (); | - |
5808 | | - |
5809 | sv_ifs ("IFS"); | - |
5810 | }executed 1636136 times by 1 test: end of block | 1636136 |
5811 | | - |
5812 | | - |
5813 | void | - |
5814 | push_dollar_vars () | - |
5815 | { | - |
5816 | if (dollar_arg_stack_index + 2 > dollar_arg_stack_slotsTRUE | evaluated 4378 times by 1 test | FALSE | evaluated 1637203 times by 1 test |
) | 4378-1637203 |
5817 | { | - |
5818 | dollar_arg_stack = (WORD_LIST **) | - |
5819 | sh_xrealloc((dollar_arg_stack), ((dollar_arg_stack_slots += 10) * sizeof (WORD_LIST *)), | - |
5820 | "variables.c" | - |
5821 | , | - |
5822 | 5068 | - |
5823 | ) | - |
5824 | ; | - |
5825 | }executed 4378 times by 1 test: end of block | 4378 |
5826 | dollar_arg_stack[dollar_arg_stack_index++] = list_rest_of_args (); | - |
5827 | dollar_arg_stack[dollar_arg_stack_index] = (WORD_LIST *) | - |
5828 | ((void *)0) | - |
5829 | ; | - |
5830 | }executed 1641581 times by 1 test: end of block | 1641581 |
5831 | | - |
5832 | | - |
5833 | void | - |
5834 | pop_dollar_vars () | - |
5835 | { | - |
5836 | if (!dollar_arg_stackTRUE | never evaluated | FALSE | evaluated 1637326 times by 1 test |
|| dollar_arg_stack_index == 0TRUE | never evaluated | FALSE | evaluated 1637326 times by 1 test |
) | 0-1637326 |
5837 | return; never executed: return; | 0 |
5838 | | - |
5839 | remember_args (dollar_arg_stack[--dollar_arg_stack_index], 1); | - |
5840 | dispose_words (dollar_arg_stack[dollar_arg_stack_index]); | - |
5841 | dollar_arg_stack[dollar_arg_stack_index] = (WORD_LIST *) | - |
5842 | ((void *)0) | - |
5843 | ; | - |
5844 | set_dollar_vars_unchanged (); | - |
5845 | }executed 1637326 times by 1 test: end of block | 1637326 |
5846 | | - |
5847 | void | - |
5848 | dispose_saved_dollar_vars () | - |
5849 | { | - |
5850 | if (!dollar_arg_stackTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
|| dollar_arg_stack_index == 0TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
) | 0-7 |
5851 | return; never executed: return; | 0 |
5852 | | - |
5853 | dispose_words (dollar_arg_stack[dollar_arg_stack_index]); | - |
5854 | dollar_arg_stack[dollar_arg_stack_index] = (WORD_LIST *) | - |
5855 | ((void *)0) | - |
5856 | ; | - |
5857 | }executed 7 times by 1 test: end of block | 7 |
5858 | | - |
5859 | | - |
5860 | | - |
5861 | void | - |
5862 | init_bash_argv () | - |
5863 | { | - |
5864 | if (bash_argv_initialized == 0TRUE | evaluated 21 times by 1 test | FALSE | evaluated 2127 times by 1 test |
) | 21-2127 |
5865 | { | - |
5866 | save_bash_argv (); | - |
5867 | bash_argv_initialized = 1; | - |
5868 | }executed 21 times by 1 test: end of block | 21 |
5869 | }executed 2148 times by 1 test: end of block | 2148 |
5870 | | - |
5871 | void | - |
5872 | save_bash_argv () | - |
5873 | { | - |
5874 | WORD_LIST *list; | - |
5875 | | - |
5876 | list = list_rest_of_args (); | - |
5877 | push_args (list); | - |
5878 | dispose_words (list); | - |
5879 | }executed 21 times by 1 test: end of block | 21 |
5880 | | - |
5881 | | - |
5882 | | - |
5883 | void | - |
5884 | push_args (list) | - |
5885 | WORD_LIST *list; | - |
5886 | { | - |
5887 | | - |
5888 | SHELL_VAR *bash_argv_v, *bash_argc_v; | - |
5889 | ARRAY *bash_argv_a, *bash_argc_a; | - |
5890 | WORD_LIST *l; | - |
5891 | arrayind_t i; | - |
5892 | char *t; | - |
5893 | | - |
5894 | do { (bash_argv_v) = find_variable ("BASH_ARGV"); (bash_argv_a) = ((bash_argv_v) && (((((bash_argv_v))->attributes) & (0x0000004)))) ? (ARRAY *)((bash_argv_v)->value) : (ARRAY *)0; } while (0); | - |
5895 | do { (bash_argc_v) = find_variable ("BASH_ARGC"); (bash_argc_a) = ((bash_argc_v) && (((((bash_argc_v))->attributes) & (0x0000004)))) ? (ARRAY *)((bash_argc_v)->value) : (ARRAY *)0; } while (0); | - |
5896 | | - |
5897 | for (l = list, i = 0; lTRUE | evaluated 1999 times by 1 test | FALSE | evaluated 2148 times by 1 test |
; l = l->next, i++) | 1999-2148 |
5898 | do { array_rshift ((bash_argv_a), 1, (l->word->word)); }executed 1999 times by 1 test: end of block while (0); | 1999 |
5899 | | - |
5900 | t = itos (i); | - |
5901 | do { array_rshift ((bash_argc_a), 1, (t)); } while (0); | - |
5902 | sh_xfree((t), "variables.c", 5140); | - |
5903 | | - |
5904 | }executed 2148 times by 1 test: end of block | 2148 |
5905 | | - |
5906 | | - |
5907 | | - |
5908 | | - |
5909 | void | - |
5910 | pop_args () | - |
5911 | { | - |
5912 | | - |
5913 | SHELL_VAR *bash_argv_v, *bash_argc_v; | - |
5914 | ARRAY *bash_argv_a, *bash_argc_a; | - |
5915 | ARRAY_ELEMENT *ce; | - |
5916 | intmax_t i; | - |
5917 | | - |
5918 | do { (bash_argv_v) = find_variable ("BASH_ARGV"); (bash_argv_a) = ((bash_argv_v) && (((((bash_argv_v))->attributes) & (0x0000004)))) ? (ARRAY *)((bash_argv_v)->value) : (ARRAY *)0; } while (0); | - |
5919 | do { (bash_argc_v) = find_variable ("BASH_ARGC"); (bash_argc_a) = ((bash_argc_v) && (((((bash_argc_v))->attributes) & (0x0000004)))) ? (ARRAY *)((bash_argc_v)->value) : (ARRAY *)0; } while (0); | - |
5920 | | - |
5921 | ce = array_shift (bash_argc_a, 1, 0); | - |
5922 | if (ce == 0TRUE | evaluated 15 times by 1 test | FALSE | evaluated 2251 times by 1 test |
|| legal_number (((ce)->value), &i) == 0TRUE | never evaluated | FALSE | evaluated 2251 times by 1 test |
) | 0-2251 |
5923 | i = 0;executed 15 times by 1 test: i = 0; | 15 |
5924 | | - |
5925 | for ( ; i > 0TRUE | evaluated 2147 times by 1 test | FALSE | evaluated 2266 times by 1 test |
; i--) | 2147-2266 |
5926 | do { array_dispose_element (array_shift ((bash_argv_a), 1, 0)); }executed 2147 times by 1 test: end of block while (0); | 2147 |
5927 | array_dispose_element (ce); | - |
5928 | | - |
5929 | }executed 2266 times by 1 test: end of block | 2266 |
5930 | struct name_and_function { | - |
5931 | char *name; | - |
5932 | sh_sv_func_t *function; | - |
5933 | }; | - |
5934 | | - |
5935 | static struct name_and_function special_vars[] = { | - |
5936 | { "BASH_COMPAT", sv_shcompat }, | - |
5937 | { "BASH_XTRACEFD", sv_xtracefd }, | - |
5938 | | - |
5939 | | - |
5940 | { "CHILD_MAX", sv_childmax }, | - |
5941 | | - |
5942 | | - |
5943 | | - |
5944 | | - |
5945 | | - |
5946 | | - |
5947 | { "COMP_WORDBREAKS", sv_comp_wordbreaks }, | - |
5948 | | - |
5949 | | - |
5950 | { "EXECIGNORE", sv_execignore }, | - |
5951 | | - |
5952 | { "FUNCNEST", sv_funcnest }, | - |
5953 | | - |
5954 | { "GLOBIGNORE", sv_globignore }, | - |
5955 | | - |
5956 | | - |
5957 | { "HISTCONTROL", sv_history_control }, | - |
5958 | { "HISTFILESIZE", sv_histsize }, | - |
5959 | { "HISTIGNORE", sv_histignore }, | - |
5960 | { "HISTSIZE", sv_histsize }, | - |
5961 | { "HISTTIMEFORMAT", sv_histtimefmt }, | - |
5962 | | - |
5963 | | - |
5964 | | - |
5965 | | - |
5966 | | - |
5967 | | - |
5968 | | - |
5969 | { "HOSTFILE", sv_hostfile }, | - |
5970 | | - |
5971 | | - |
5972 | { "IFS", sv_ifs }, | - |
5973 | { "IGNOREEOF", sv_ignoreeof }, | - |
5974 | | - |
5975 | { "LANG", sv_locale }, | - |
5976 | { "LC_ALL", sv_locale }, | - |
5977 | { "LC_COLLATE", sv_locale }, | - |
5978 | { "LC_CTYPE", sv_locale }, | - |
5979 | { "LC_MESSAGES", sv_locale }, | - |
5980 | { "LC_NUMERIC", sv_locale }, | - |
5981 | { "LC_TIME", sv_locale }, | - |
5982 | | - |
5983 | | - |
5984 | | - |
5985 | | - |
5986 | | - |
5987 | { "MAIL", sv_mail }, | - |
5988 | { "MAILCHECK", sv_mail }, | - |
5989 | { "MAILPATH", sv_mail }, | - |
5990 | | - |
5991 | { "OPTERR", sv_opterr }, | - |
5992 | { "OPTIND", sv_optind }, | - |
5993 | | - |
5994 | { "PATH", sv_path }, | - |
5995 | { "POSIXLY_CORRECT", sv_strict_posix }, | - |
5996 | | - |
5997 | | - |
5998 | { "TERM", sv_terminal }, | - |
5999 | { "TERMCAP", sv_terminal }, | - |
6000 | { "TERMINFO", sv_terminal }, | - |
6001 | | - |
6002 | | - |
6003 | { "TEXTDOMAIN", sv_locale }, | - |
6004 | { "TEXTDOMAINDIR", sv_locale }, | - |
6005 | | - |
6006 | | - |
6007 | { "TZ", sv_tz }, | - |
6008 | | - |
6009 | | - |
6010 | | - |
6011 | { "histchars", sv_histchars }, | - |
6012 | | - |
6013 | | - |
6014 | { "ignoreeof", sv_ignoreeof }, | - |
6015 | | - |
6016 | { (char *)0, (sh_sv_func_t *)0 } | - |
6017 | }; | - |
6018 | | - |
6019 | | - |
6020 | | - |
6021 | static int | - |
6022 | sv_compare (sv1, sv2) | - |
6023 | struct name_and_function *sv1, *sv2; | - |
6024 | { | - |
6025 | int r; | - |
6026 | | - |
6027 | if ((TRUE | evaluated 158560 times by 1 test | FALSE | evaluated 287390 times by 1 test |
r = sv1->name[0] - sv2->name[0]) == 0TRUE | evaluated 158560 times by 1 test | FALSE | evaluated 287390 times by 1 test |
) | 158560-287390 |
6028 | r = executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6029 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6030 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6031 | ) && __builtin_constant_p (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6032 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6033 | ) && (__s1_len = __builtin_strlen (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6034 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6035 | ), __s2_len = __builtin_strlen (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6036 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6037 | ), (!((size_t)(const void *)((executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6038 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6039 | ) + 1) - (size_t)(const void *)(executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6040 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6041 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6042 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6043 | ) + 1) - (size_t)(const void *)(executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6044 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6045 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6046 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6047 | , executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6048 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6049 | ) : (__builtin_constant_p (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6050 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6051 | ) && ((size_t)(const void *)((executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6052 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6053 | ) + 1) - (size_t)(const void *)(executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6054 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6055 | ) == 1) && (__s1_len = __builtin_strlen (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6056 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6057 | ), __s1_len < 4) ? (__builtin_constant_p (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6058 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6059 | ) && ((size_t)(const void *)((executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6060 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6061 | ) + 1) - (size_t)(const void *)(executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6062 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6063 | ) == 1) ? __builtin_strcmp (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6064 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6065 | , executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6066 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6067 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6068 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6069 | ); int __result = (((const unsigned char *) (const char *) (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6070 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6071 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 0-158560 |
6072 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6073 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 0-158560 |
6074 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6075 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( sv1->name ))[3] - __s2[3]); executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 0-158560 |
6076 | sv1->name never executed: __result = (((const unsigned char *) (const char *) ( sv1->name ))[3] - __s2[3]); executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 0-158560 |
6077 | ))[3] - __s2[3]); never executed: __result = (((const unsigned char *) (const char *) ( sv1->name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 0-158560 |
6078 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6079 | ) && ((size_t)(const void *)((executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6080 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6081 | ) + 1) - (size_t)(const void *)(executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6082 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6083 | ) == 1) && (__s2_len = __builtin_strlen (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6084 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6085 | ), __s2_len < 4) ? (__builtin_constant_p (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6086 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6087 | ) && ((size_t)(const void *)((executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6088 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6089 | ) + 1) - (size_t)(const void *)(executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6090 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6091 | ) == 1) ? __builtin_strcmp (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6092 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6093 | , executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6094 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6095 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6096 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6097 | ); int __result = (((const unsigned char *) (const char *) (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6098 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6099 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 0-158560 |
6100 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6101 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 0-158560 |
6102 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6103 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 0-158560 |
6104 | sv2->name never executed: __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 0-158560 |
6105 | ))[3] - __s2[3]); never executed: __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 0-158560 |
6106 | sv1->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6107 | , executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6108 | sv2->nameexecuted 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6109 | )))); })executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6110 | ;executed 158560 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( sv1->name ) && __builtin_constant_p ( sv2->name ) && (__s1_len = __builtin_strlen ( sv1->name ), __s2_len = __builtin_strlen ( sv2->name ), (!((size_t)(const void *)(( sv1->name ) + 1...nst unsigned char *) (const char *) ( sv2->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( sv2->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( sv1->name , sv2->name )))); }) ; | 158560 |
6111 | returnexecuted 445950 times by 1 test: return r; r;executed 445950 times by 1 test: return r; | 445950 |
6112 | } | - |
6113 | | - |
6114 | static inline int | - |
6115 | find_special_var (name) | - |
6116 | const char *name; | - |
6117 | { | - |
6118 | register int i, r; | - |
6119 | | - |
6120 | for (i = 0; special_vars[i].nameTRUE | evaluated 1453190601 times by 1 test | FALSE | evaluated 14514246 times by 1 test |
; i++) | 14514246-1453190601 |
6121 | { | - |
6122 | r = special_vars[i].name[0] - name[0]; | - |
6123 | if (r == 0TRUE | evaluated 8179628 times by 1 test | FALSE | evaluated 1445010973 times by 1 test |
) | 8179628-1445010973 |
6124 | r = executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6125 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6126 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6127 | ) && __builtin_constant_p (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6128 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6129 | ) && (__s1_len = __builtin_strlen (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6130 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6131 | ), __s2_len = __builtin_strlen (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6132 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6133 | ), (!((size_t)(const void *)((executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6134 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6135 | ) + 1) - (size_t)(const void *)(executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6136 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6137 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6138 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6139 | ) + 1) - (size_t)(const void *)(executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6140 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6141 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6142 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6143 | , executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6144 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6145 | ) : (__builtin_constant_p (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6146 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6147 | ) && ((size_t)(const void *)((executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6148 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6149 | ) + 1) - (size_t)(const void *)(executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6150 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6151 | ) == 1) && (__s1_len = __builtin_strlen (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6152 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6153 | ), __s1_len < 4) ? (__builtin_constant_p (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6154 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6155 | ) && ((size_t)(const void *)((executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6156 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6157 | ) + 1) - (size_t)(const void *)(executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6158 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6159 | ) == 1) ? __builtin_strcmp (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6160 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6161 | , executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6162 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6163 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6164 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6165 | ); int __result = (((const unsigned char *) (const char *) (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6166 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6167 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 0-8179628 |
6168 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6169 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 0-8179628 |
6170 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6171 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( special_vars[i].name ))[3] - __s2[3]); executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 0-8179628 |
6172 | special_vars[i].name never executed: __result = (((const unsigned char *) (const char *) ( special_vars[i].name ))[3] - __s2[3]); executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 0-8179628 |
6173 | ))[3] - __s2[3]); never executed: __result = (((const unsigned char *) (const char *) ( special_vars[i].name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 0-8179628 |
6174 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6175 | ) && ((size_t)(const void *)((executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6176 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6177 | ) + 1) - (size_t)(const void *)(executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6178 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6179 | ) == 1) && (__s2_len = __builtin_strlen (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6180 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6181 | ), __s2_len < 4) ? (__builtin_constant_p (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6182 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6183 | ) && ((size_t)(const void *)((executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6184 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6185 | ) + 1) - (size_t)(const void *)(executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6186 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6187 | ) == 1) ? __builtin_strcmp (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6188 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6189 | , executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6190 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6191 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6192 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6193 | ); int __result = (((const unsigned char *) (const char *) (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6194 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6195 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 0-8179628 |
6196 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6197 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 0-8179628 |
6198 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6199 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 0-8179628 |
6200 | name never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 0-8179628 |
6201 | ))[3] - __s2[3]); never executed: __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 0-8179628 |
6202 | special_vars[i].nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6203 | , executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6204 | nameexecuted 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6205 | )))); })executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6206 | ;executed 8179628 times by 1 test: r = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( special_vars[i].name ) && __builtin_constant_p ( name ) && (__s1_len = __builtin_strlen ( special_vars[i].name ), __s2_len = __builtin_strlen ( name ), (!((size_t)(const void *)(( spe...((const unsigned char *) (const char *) ( name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( special_vars[i].name , name )))); }) ; | 8179628 |
6207 | if (r == 0TRUE | evaluated 6483382 times by 1 test | FALSE | evaluated 1446707219 times by 1 test |
) | 6483382-1446707219 |
6208 | returnexecuted 6483382 times by 1 test: return i; i;executed 6483382 times by 1 test: return i; | 6483382 |
6209 | else if (r > 0TRUE | evaluated 23963390 times by 1 test | FALSE | evaluated 1422743829 times by 1 test |
) | 23963390-1422743829 |
6210 | | - |
6211 | | - |
6212 | break;executed 23963390 times by 1 test: break; | 23963390 |
6213 | }executed 1422743829 times by 1 test: end of block | 1422743829 |
6214 | returnexecuted 38477636 times by 1 test: return -1; -1;executed 38477636 times by 1 test: return -1; | 38477636 |
6215 | } | - |
6216 | | - |
6217 | | - |
6218 | | - |
6219 | void | - |
6220 | stupidly_hack_special_variables (name) | - |
6221 | char *name; | - |
6222 | { | - |
6223 | static int sv_sorted = 0; | - |
6224 | int i; | - |
6225 | | - |
6226 | if (sv_sorted == 0TRUE | evaluated 4955 times by 1 test | FALSE | evaluated 44954432 times by 1 test |
) | 4955-44954432 |
6227 | { | - |
6228 | qsort (special_vars, (sizeof (special_vars) / sizeof (special_vars[0]) - 1), sizeof (special_vars[0]), | - |
6229 | (QSFUNC *)sv_compare); | - |
6230 | sv_sorted = 1; | - |
6231 | }executed 4955 times by 1 test: end of block | 4955 |
6232 | | - |
6233 | i = find_special_var (name); | - |
6234 | if (i != -1TRUE | evaluated 6481974 times by 1 test | FALSE | evaluated 38477413 times by 1 test |
) | 6481974-38477413 |
6235 | (*(executed 6481974 times by 1 test: (*(special_vars[i].function)) (name); special_vars[i].function)) (name);executed 6481974 times by 1 test: (*(special_vars[i].function)) (name); | 6481974 |
6236 | }executed 44959387 times by 1 test: end of block | 44959387 |
6237 | | - |
6238 | | - |
6239 | | - |
6240 | void | - |
6241 | reinit_special_variables () | - |
6242 | { | - |
6243 | | - |
6244 | sv_comp_wordbreaks ("COMP_WORDBREAKS"); | - |
6245 | | - |
6246 | sv_globignore ("GLOBIGNORE"); | - |
6247 | sv_opterr ("OPTERR"); | - |
6248 | }executed 15 times by 1 test: end of block | 15 |
6249 | | - |
6250 | void | - |
6251 | sv_ifs (name) | - |
6252 | char *name; | - |
6253 | { | - |
6254 | SHELL_VAR *v; | - |
6255 | | - |
6256 | v = find_variable ("IFS"); | - |
6257 | setifs (v); | - |
6258 | }executed 9449028 times by 1 test: end of block | 9449028 |
6259 | | - |
6260 | | - |
6261 | void | - |
6262 | sv_path (name) | - |
6263 | char *name; | - |
6264 | { | - |
6265 | | - |
6266 | phash_flush (); | - |
6267 | }executed 80 times by 1 test: end of block | 80 |
6268 | | - |
6269 | | - |
6270 | | - |
6271 | | - |
6272 | void | - |
6273 | sv_mail (name) | - |
6274 | char *name; | - |
6275 | { | - |
6276 | | - |
6277 | | - |
6278 | | - |
6279 | | - |
6280 | if (name[4] == 'C'TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
6281 | reset_mail_timer (); never executed: reset_mail_timer (); | 0 |
6282 | else | - |
6283 | { | - |
6284 | free_mail_files (); | - |
6285 | remember_mail_dates (); | - |
6286 | } never executed: end of block | 0 |
6287 | } | - |
6288 | | - |
6289 | void | - |
6290 | sv_funcnest (name) | - |
6291 | char *name; | - |
6292 | { | - |
6293 | SHELL_VAR *v; | - |
6294 | intmax_t num; | - |
6295 | | - |
6296 | v = find_variable (name); | - |
6297 | if (v == 0TRUE | evaluated 5449 times by 1 test | FALSE | evaluated 3 times by 1 test |
) | 3-5449 |
6298 | funcnest_max = 0;executed 5449 times by 1 test: funcnest_max = 0; | 5449 |
6299 | else if (legal_number (((v)->value), &num) == 0TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
) | 0-3 |
6300 | funcnest_max = 0; never executed: funcnest_max = 0; | 0 |
6301 | else | - |
6302 | funcnest_max = num;executed 3 times by 1 test: funcnest_max = num; | 3 |
6303 | } | - |
6304 | | - |
6305 | | - |
6306 | void | - |
6307 | sv_execignore (name) | - |
6308 | char *name; | - |
6309 | { | - |
6310 | setup_exec_ignore (name); | - |
6311 | } never executed: end of block | 0 |
6312 | | - |
6313 | | - |
6314 | void | - |
6315 | sv_globignore (name) | - |
6316 | char *name; | - |
6317 | { | - |
6318 | if (privileged_mode == 0TRUE | evaluated 22 times by 1 test | FALSE | never evaluated |
) | 0-22 |
6319 | setup_glob_ignore (name);executed 22 times by 1 test: setup_glob_ignore (name); | 22 |
6320 | }executed 22 times by 1 test: end of block | 22 |
6321 | | - |
6322 | | - |
6323 | void | - |
6324 | sv_comp_wordbreaks (name) | - |
6325 | char *name; | - |
6326 | { | - |
6327 | SHELL_VAR *sv; | - |
6328 | | - |
6329 | sv = find_variable (name); | - |
6330 | if (sv == 0TRUE | evaluated 15 times by 1 test | FALSE | never evaluated |
) | 0-15 |
6331 | reset_completer_word_break_chars ();executed 15 times by 1 test: reset_completer_word_break_chars (); | 15 |
6332 | }executed 15 times by 1 test: end of block | 15 |
6333 | | - |
6334 | | - |
6335 | | - |
6336 | | - |
6337 | void | - |
6338 | sv_terminal (name) | - |
6339 | char *name; | - |
6340 | { | - |
6341 | if (interactive_shellTRUE | never evaluated | FALSE | never evaluated |
&& no_line_editing == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
6342 | rl_reset_terminal (get_string_value ("TERM")); never executed: rl_reset_terminal (get_string_value ("TERM")); | 0 |
6343 | } never executed: end of block | 0 |
6344 | | - |
6345 | void | - |
6346 | sv_hostfile (name) | - |
6347 | char *name; | - |
6348 | { | - |
6349 | SHELL_VAR *v; | - |
6350 | | - |
6351 | v = find_variable (name); | - |
6352 | if (v == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
6353 | clear_hostname_list (); never executed: clear_hostname_list (); | 0 |
6354 | else | - |
6355 | hostname_list_initialized = 0; never executed: hostname_list_initialized = 0; | 0 |
6356 | } | - |
6357 | void | - |
6358 | sv_histsize (name) | - |
6359 | char *name; | - |
6360 | { | - |
6361 | char *temp; | - |
6362 | intmax_t num; | - |
6363 | int hmax; | - |
6364 | | - |
6365 | temp = get_string_value (name); | - |
6366 | | - |
6367 | if (tempTRUE | evaluated 77 times by 1 test | FALSE | evaluated 4 times by 1 test |
&& *TRUE | evaluated 77 times by 1 test | FALSE | never evaluated |
tempTRUE | evaluated 77 times by 1 test | FALSE | never evaluated |
) | 0-77 |
6368 | { | - |
6369 | if (legal_number (temp, &num)TRUE | evaluated 77 times by 1 test | FALSE | never evaluated |
) | 0-77 |
6370 | { | - |
6371 | hmax = num; | - |
6372 | if (hmax < 0TRUE | never evaluated | FALSE | evaluated 77 times by 1 test |
&& name[4] == 'S'TRUE | never evaluated | FALSE | never evaluated |
) | 0-77 |
6373 | unstifle_history (); never executed: unstifle_history (); | 0 |
6374 | else if (name[4] == 'S'TRUE | evaluated 39 times by 1 test | FALSE | evaluated 38 times by 1 test |
) | 38-39 |
6375 | { | - |
6376 | stifle_history (hmax); | - |
6377 | hmax = where_history (); | - |
6378 | if (history_lines_this_session > hmaxTRUE | never evaluated | FALSE | evaluated 39 times by 1 test |
) | 0-39 |
6379 | history_lines_this_session = hmax; never executed: history_lines_this_session = hmax; | 0 |
6380 | }executed 39 times by 1 test: end of block | 39 |
6381 | else if (hmax >= 0TRUE | evaluated 38 times by 1 test | FALSE | never evaluated |
) | 0-38 |
6382 | { | - |
6383 | history_truncate_file (get_string_value ("HISTFILE"), hmax); | - |
6384 | | - |
6385 | | - |
6386 | | - |
6387 | if (hmax < history_lines_in_fileTRUE | never evaluated | FALSE | evaluated 38 times by 1 test |
) | 0-38 |
6388 | history_lines_in_file = hmax; never executed: history_lines_in_file = hmax; | 0 |
6389 | }executed 38 times by 1 test: end of block | 38 |
6390 | }executed 77 times by 1 test: end of block | 77 |
6391 | }executed 77 times by 1 test: end of block | 77 |
6392 | else if (name[4] == 'S'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2 |
6393 | unstifle_history ();executed 2 times by 1 test: unstifle_history (); | 2 |
6394 | }executed 81 times by 1 test: end of block | 81 |
6395 | | - |
6396 | | - |
6397 | void | - |
6398 | sv_histignore (name) | - |
6399 | char *name; | - |
6400 | { | - |
6401 | setup_history_ignore (name); | - |
6402 | }executed 38 times by 1 test: end of block | 38 |
6403 | | - |
6404 | | - |
6405 | void | - |
6406 | sv_history_control (name) | - |
6407 | char *name; | - |
6408 | { | - |
6409 | char *temp; | - |
6410 | char *val; | - |
6411 | int tptr; | - |
6412 | | - |
6413 | history_control = 0; | - |
6414 | temp = get_string_value (name); | - |
6415 | | - |
6416 | if (temp == 0TRUE | evaluated 33 times by 1 test | FALSE | evaluated 7 times by 1 test |
|| *TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
temp == 0TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
) | 0-33 |
6417 | return;executed 33 times by 1 test: return; | 33 |
6418 | | - |
6419 | tptr = 0; | - |
6420 | while (val = extract_colon_unit (temp, &tptr)TRUE | evaluated 7 times by 1 test | FALSE | evaluated 7 times by 1 test |
) | 7 |
6421 | { | - |
6422 | if (((TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
val)[0] == ("ignorespace")[0]TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
&& | 0-7 |
6423 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6424 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6425 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6426 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6427 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6428 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6429 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6430 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6431 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6432 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6433 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6434 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6435 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6436 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6437 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6438 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6439 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6440 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6441 | , TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6442 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6443 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6444 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6445 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6446 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6447 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6448 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6449 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6450 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6451 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6452 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6453 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6454 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6455 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6456 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6457 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6458 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6459 | , TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6460 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6461 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6462 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6463 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6464 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6465 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6466 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6467 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6468 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6469 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( val ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6470 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( val ))[3] - __s2[3]); | 0-7 |
6471 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( val ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6472 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6473 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6474 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6475 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6476 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6477 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6478 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6479 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6480 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6481 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6482 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6483 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6484 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6485 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6486 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6487 | , TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6488 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6489 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6490 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6491 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6492 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6493 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6494 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6495 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6496 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6497 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "ignorespace" ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6498 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "ignorespace" ))[3] - __s2[3]); | 0-7 |
6499 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "ignorespace" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6500 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6501 | , TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6502 | "ignorespace"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6503 | )))); }) TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6504 | == 0TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
)) | 0-7 |
6505 | history_control |= 0x01; never executed: history_control |= 0x01; | 0 |
6506 | else if (((TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
val)[0] == ("ignoredups")[0]TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
&& | 0-7 |
6507 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6508 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6509 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6510 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6511 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6512 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6513 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6514 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6515 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6516 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6517 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6518 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6519 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6520 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6521 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6522 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6523 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6524 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6525 | , TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6526 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6527 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6528 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6529 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6530 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6531 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6532 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6533 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6534 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6535 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6536 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6537 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6538 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6539 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6540 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6541 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6542 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6543 | , TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6544 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6545 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6546 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6547 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6548 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6549 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6550 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6551 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6552 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6553 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( val ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6554 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( val ))[3] - __s2[3]); | 0-7 |
6555 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( val ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6556 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6557 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6558 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6559 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6560 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6561 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6562 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6563 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6564 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6565 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6566 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6567 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6568 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6569 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6570 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6571 | , TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6572 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6573 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6574 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6575 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6576 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6577 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6578 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6579 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6580 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6581 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "ignoredups" ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6582 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "ignoredups" ))[3] - __s2[3]); | 0-7 |
6583 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "ignoredups" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6584 | valTRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6585 | , TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6586 | "ignoredups"TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6587 | )))); }) TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
| 0-7 |
6588 | == 0TRUE | never evaluated | FALSE | evaluated 7 times by 1 test |
)) | 0-7 |
6589 | history_control |= 0x02; never executed: history_control |= 0x02; | 0 |
6590 | else if (((TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
val)[0] == ("ignoreboth")[0]TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
&& | 0-7 |
6591 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6592 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6593 | ) && __builtin_constant_p (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6594 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6595 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6596 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6597 | ), __s2_len = __builtin_strlen (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6598 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6599 | ), (!((size_t)(const void *)((TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6600 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6601 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6602 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6603 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6604 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6605 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6606 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6607 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6608 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6609 | , TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6610 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6611 | ) : (__builtin_constant_p (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6612 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6613 | ) && ((size_t)(const void *)((TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6614 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6615 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6616 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6617 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6618 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6619 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6620 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6621 | ) && ((size_t)(const void *)((TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6622 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6623 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6624 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6625 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6626 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6627 | , TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6628 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6629 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6630 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6631 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6632 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6633 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6634 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6635 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6636 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6637 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( val ))[3] - __s2[3]); TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6638 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( val ))[3] - __s2[3]); | 0-7 |
6639 | ))[3] - __s2[3]);TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( val ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6640 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6641 | ) && ((size_t)(const void *)((TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6642 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6643 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6644 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6645 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6646 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6647 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6648 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6649 | ) && ((size_t)(const void *)((TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6650 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6651 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6652 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6653 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6654 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6655 | , TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6656 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6657 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6658 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6659 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6660 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6661 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6662 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6663 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6664 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6665 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "ignoreboth" ))[3] - __s2[3]); TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6666 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "ignoreboth" ))[3] - __s2[3]); | 0-7 |
6667 | ))[3] - __s2[3]);TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "ignoreboth" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6668 | valTRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6669 | , TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6670 | "ignoreboth"TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6671 | )))); }) TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-7 |
6672 | == 0TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
)) | 0-7 |
6673 | history_control |= (0x01|0x02);executed 7 times by 1 test: history_control |= (0x01|0x02); | 7 |
6674 | else if (((TRUE | never evaluated | FALSE | never evaluated |
val)[0] == ("erasedups")[0]TRUE | never evaluated | FALSE | never evaluated |
&& | 0 |
6675 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6676 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6677 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6678 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6679 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6680 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6681 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6682 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6683 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6684 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6685 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6686 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6687 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6688 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6689 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6690 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6691 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6692 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6693 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6694 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6695 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6696 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6697 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6698 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6699 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6700 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6701 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6702 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6703 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6704 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6705 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6706 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6707 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6708 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6709 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6710 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6711 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6712 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6713 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6714 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6715 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6716 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6717 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6718 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6719 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6720 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6721 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( val ))[3] - __s2[3]); | 0 |
6722 | valTRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( val ))[3] - __s2[3]); | 0 |
6723 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6724 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6725 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6726 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6727 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6728 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6729 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6730 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6731 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6732 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6733 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6734 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6735 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6736 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6737 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6738 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6739 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6740 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6741 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6742 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6743 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6744 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6745 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6746 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6747 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6748 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6749 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "erasedups" ))[3] - __s2[3]); | 0 |
6750 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "erasedups" ))[3] - __s2[3]); | 0 |
6751 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6752 | valTRUE | never evaluated | FALSE | never evaluated |
| 0 |
6753 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6754 | "erasedups"TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6755 | )))); }) TRUE | never evaluated | FALSE | never evaluated |
| 0 |
6756 | == 0TRUE | never evaluated | FALSE | never evaluated |
)) | 0 |
6757 | history_control |= 0x04; never executed: history_control |= 0x04; | 0 |
6758 | | - |
6759 | sh_xfree((val), "variables.c", 5575); | - |
6760 | }executed 7 times by 1 test: end of block | 7 |
6761 | }executed 7 times by 1 test: end of block | 7 |
6762 | | - |
6763 | | - |
6764 | | - |
6765 | void | - |
6766 | sv_histchars (name) | - |
6767 | char *name; | - |
6768 | { | - |
6769 | char *temp; | - |
6770 | | - |
6771 | temp = get_string_value (name); | - |
6772 | if (tempTRUE | evaluated 3 times by 1 test | FALSE | evaluated 29 times by 1 test |
) | 3-29 |
6773 | { | - |
6774 | history_expansion_char = *temp; | - |
6775 | if (temp[0]TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
&& temp[1]TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
) | 0-3 |
6776 | { | - |
6777 | history_subst_char = temp[1]; | - |
6778 | if (temp[2]TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
) | 0-3 |
6779 | history_comment_char = temp[2];executed 3 times by 1 test: history_comment_char = temp[2]; | 3 |
6780 | }executed 3 times by 1 test: end of block | 3 |
6781 | }executed 3 times by 1 test: end of block | 3 |
6782 | else | - |
6783 | { | - |
6784 | history_expansion_char = '!'; | - |
6785 | history_subst_char = '^'; | - |
6786 | history_comment_char = '#'; | - |
6787 | }executed 29 times by 1 test: end of block | 29 |
6788 | } | - |
6789 | | - |
6790 | | - |
6791 | void | - |
6792 | sv_histtimefmt (name) | - |
6793 | char *name; | - |
6794 | { | - |
6795 | SHELL_VAR *v; | - |
6796 | | - |
6797 | if (v = find_variable (name)TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
) | 0-3 |
6798 | { | - |
6799 | if (history_comment_char == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
6800 | history_comment_char = '#'; never executed: history_comment_char = '#'; | 0 |
6801 | } never executed: end of block | 0 |
6802 | history_write_timestamps = (v != 0); | - |
6803 | }executed 3 times by 1 test: end of block | 3 |
6804 | | - |
6805 | | - |
6806 | | - |
6807 | void | - |
6808 | sv_tz (name) | - |
6809 | char *name; | - |
6810 | { | - |
6811 | if (chkexport (name)TRUE | evaluated 16 times by 1 test | FALSE | evaluated 5 times by 1 test |
) | 5-16 |
6812 | tzset ();executed 16 times by 1 test: tzset (); | 16 |
6813 | }executed 21 times by 1 test: end of block | 21 |
6814 | | - |
6815 | | - |
6816 | | - |
6817 | | - |
6818 | | - |
6819 | void | - |
6820 | sv_ignoreeof (name) | - |
6821 | char *name; | - |
6822 | { | - |
6823 | SHELL_VAR *tmp_var; | - |
6824 | char *temp; | - |
6825 | | - |
6826 | eof_encountered = 0; | - |
6827 | | - |
6828 | tmp_var = find_variable (name); | - |
6829 | ignoreeof = tmp_varTRUE | evaluated 3 times by 1 test | FALSE | evaluated 18 times by 1 test |
&& ((TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
tmp_var)->value != 0)TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
; | 0-18 |
6830 | temp = tmp_varTRUE | evaluated 3 times by 1 test | FALSE | evaluated 18 times by 1 test |
? ((tmp_var)->value) : (char *) | 3-18 |
6831 | ((void *)0) | - |
6832 | ; | - |
6833 | if (tempTRUE | evaluated 3 times by 1 test | FALSE | evaluated 18 times by 1 test |
) | 3-18 |
6834 | eof_encountered_limit = (*TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
tempTRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
&& all_digits (temp)TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
) ? atoi (temp) : 10;executed 3 times by 1 test: eof_encountered_limit = (*temp && all_digits (temp)) ? atoi (temp) : 10; | 0-3 |
6835 | set_shellopts (); | - |
6836 | }executed 21 times by 1 test: end of block | 21 |
6837 | | - |
6838 | void | - |
6839 | sv_optind (name) | - |
6840 | char *name; | - |
6841 | { | - |
6842 | SHELL_VAR *var; | - |
6843 | char *tt; | - |
6844 | int s; | - |
6845 | | - |
6846 | var = find_variable ("OPTIND"); | - |
6847 | tt = varTRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
? get_variable_value (var) : (char *) | 0-8 |
6848 | ((void *)0) | - |
6849 | ; | - |
6850 | | - |
6851 | | - |
6852 | | - |
6853 | | - |
6854 | if (ttTRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
&& *TRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
ttTRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
) | 0-8 |
6855 | { | - |
6856 | s = atoi (tt); | - |
6857 | | - |
6858 | | - |
6859 | | - |
6860 | if (s < 0TRUE | never evaluated | FALSE | evaluated 8 times by 1 test |
|| s == 1TRUE | evaluated 5 times by 1 test | FALSE | evaluated 3 times by 1 test |
) | 0-8 |
6861 | s = 0;executed 5 times by 1 test: s = 0; | 5 |
6862 | }executed 8 times by 1 test: end of block | 8 |
6863 | else | - |
6864 | s = 0; never executed: s = 0; | 0 |
6865 | getopts_reset (s); | - |
6866 | }executed 8 times by 1 test: end of block | 8 |
6867 | | - |
6868 | void | - |
6869 | sv_opterr (name) | - |
6870 | char *name; | - |
6871 | { | - |
6872 | char *tt; | - |
6873 | | - |
6874 | tt = get_string_value ("OPTERR"); | - |
6875 | sh_opterr = (ttTRUE | evaluated 3 times by 1 test | FALSE | evaluated 15 times by 1 test |
&& *TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
ttTRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
) ? atoi (tt) : 1; | 0-15 |
6876 | }executed 18 times by 1 test: end of block | 18 |
6877 | | - |
6878 | void | - |
6879 | sv_strict_posix (name) | - |
6880 | char *name; | - |
6881 | { | - |
6882 | SHELL_VAR *var; | - |
6883 | | - |
6884 | var = find_variable (name); | - |
6885 | posixly_correct = varTRUE | evaluated 162 times by 1 test | FALSE | evaluated 133 times by 1 test |
&& ((TRUE | evaluated 162 times by 1 test | FALSE | never evaluated |
var)->value != 0)TRUE | evaluated 162 times by 1 test | FALSE | never evaluated |
; | 0-162 |
6886 | posix_initialize (posixly_correct); | - |
6887 | | - |
6888 | if (interactive_shellTRUE | never evaluated | FALSE | evaluated 295 times by 1 test |
) | 0-295 |
6889 | posix_readline_initialize (posixly_correct); never executed: posix_readline_initialize (posixly_correct); | 0 |
6890 | | - |
6891 | set_shellopts (); | - |
6892 | }executed 295 times by 1 test: end of block | 295 |
6893 | | - |
6894 | void | - |
6895 | sv_locale (name) | - |
6896 | char *name; | - |
6897 | { | - |
6898 | char *v; | - |
6899 | int r; | - |
6900 | | - |
6901 | v = get_string_value (name); | - |
6902 | if (name[0] == 'L'TRUE | evaluated 2997 times by 1 test | FALSE | never evaluated |
&& name[1] == 'A'TRUE | evaluated 111 times by 1 test | FALSE | evaluated 2886 times by 1 test |
) | 0-2997 |
6903 | r = set_lang (name, v);executed 111 times by 1 test: r = set_lang (name, v); | 111 |
6904 | else | - |
6905 | r = set_locale_var (name, v);executed 2886 times by 1 test: r = set_locale_var (name, v); | 2886 |
6906 | | - |
6907 | | - |
6908 | if (r == 0TRUE | evaluated 482 times by 1 test | FALSE | evaluated 2515 times by 1 test |
&& posixly_correctTRUE | never evaluated | FALSE | evaluated 482 times by 1 test |
) | 0-2515 |
6909 | last_command_exit_value = 1; never executed: last_command_exit_value = 1; | 0 |
6910 | | - |
6911 | }executed 2997 times by 1 test: end of block | 2997 |
6912 | | - |
6913 | | - |
6914 | void | - |
6915 | set_pipestatus_array (ps, nproc) | - |
6916 | int *ps; | - |
6917 | int nproc; | - |
6918 | { | - |
6919 | SHELL_VAR *v; | - |
6920 | ARRAY *a; | - |
6921 | ARRAY_ELEMENT *ae; | - |
6922 | register int i; | - |
6923 | char *t, tbuf[((sizeof (int) * 8 - (! ((int) 0 < (int) -1))) * 302 / 1000 + 1 + (! ((int) 0 < (int) -1))) + 1]; | - |
6924 | | - |
6925 | v = find_variable ("PIPESTATUS"); | - |
6926 | if (v == 0TRUE | evaluated 5414 times by 1 test | FALSE | evaluated 71162387 times by 1 test |
) | 5414-71162387 |
6927 | v = make_new_array_variable ("PIPESTATUS");executed 5414 times by 1 test: v = make_new_array_variable ("PIPESTATUS"); | 5414 |
6928 | if (((((TRUE | never evaluated | FALSE | evaluated 71167801 times by 1 test |
v)->attributes) & (0x0000004))) == 0TRUE | never evaluated | FALSE | evaluated 71167801 times by 1 test |
) | 0-71167801 |
6929 | return; never executed: return; | 0 |
6930 | a = (ARRAY *)((v)->value); | - |
6931 | | - |
6932 | if (a == 0TRUE | never evaluated | FALSE | evaluated 71167801 times by 1 test |
|| ((TRUE | evaluated 5414 times by 1 test | FALSE | evaluated 71162387 times by 1 test |
a)->num_elements) == 0TRUE | evaluated 5414 times by 1 test | FALSE | evaluated 71162387 times by 1 test |
) | 0-71167801 |
6933 | { | - |
6934 | for (i = 0; i < nprocTRUE | evaluated 5506 times by 1 test | FALSE | evaluated 5414 times by 1 test |
; i++) | 5414-5506 |
6935 | { | - |
6936 | t = inttostr (ps[i], tbuf, sizeof (tbuf)); | - |
6937 | array_insert (a, i, t); | - |
6938 | }executed 5506 times by 1 test: end of block | 5506 |
6939 | return;executed 5414 times by 1 test: return; | 5414 |
6940 | } | - |
6941 | | - |
6942 | | - |
6943 | if (((TRUE | evaluated 71141128 times by 1 test | FALSE | evaluated 21259 times by 1 test |
a)->num_elements) == nprocTRUE | evaluated 71141128 times by 1 test | FALSE | evaluated 21259 times by 1 test |
&& nproc == 1TRUE | evaluated 71140186 times by 1 test | FALSE | evaluated 942 times by 1 test |
) | 942-71141128 |
6944 | { | - |
6945 | ae = ((a->head)->next); | - |
6946 | sh_xfree((((ae)->value)), "variables.c", 5758); | - |
6947 | ((ae)->value = (itos (ps[0]))); | - |
6948 | }executed 71140186 times by 1 test: end of block | 71140186 |
6949 | else if (((TRUE | evaluated 12001 times by 1 test | FALSE | evaluated 10200 times by 1 test |
a)->num_elements) <= nprocTRUE | evaluated 12001 times by 1 test | FALSE | evaluated 10200 times by 1 test |
) | 10200-12001 |
6950 | { | - |
6951 | | - |
6952 | ae = a->head; | - |
6953 | for (i = 0; i < ((a)->num_elements)TRUE | evaluated 13115 times by 1 test | FALSE | evaluated 12001 times by 1 test |
; i++) | 12001-13115 |
6954 | { | - |
6955 | ae = ((ae)->next); | - |
6956 | sh_xfree((((ae)->value)), "variables.c", 5768); | - |
6957 | ((ae)->value = (itos (ps[i]))); | - |
6958 | }executed 13115 times by 1 test: end of block | 13115 |
6959 | | - |
6960 | for ( ; i < nprocTRUE | evaluated 11175 times by 1 test | FALSE | evaluated 12001 times by 1 test |
; i++) | 11175-12001 |
6961 | { | - |
6962 | t = inttostr (ps[i], tbuf, sizeof (tbuf)); | - |
6963 | array_insert (a, i, t); | - |
6964 | }executed 11175 times by 1 test: end of block | 11175 |
6965 | }executed 12001 times by 1 test: end of block | 12001 |
6966 | else | - |
6967 | { | - |
6968 | | - |
6969 | array_flush (a); | - |
6970 | for (i = 0; ps[i] != -1TRUE | evaluated 10200 times by 1 test | FALSE | evaluated 10200 times by 1 test |
; i++) | 10200 |
6971 | { | - |
6972 | t = inttostr (ps[i], tbuf, sizeof (tbuf)); | - |
6973 | array_insert (a, i, t); | - |
6974 | }executed 10200 times by 1 test: end of block | 10200 |
6975 | }executed 10200 times by 1 test: end of block | 10200 |
6976 | } | - |
6977 | | - |
6978 | ARRAY * | - |
6979 | save_pipestatus_array () | - |
6980 | { | - |
6981 | SHELL_VAR *v; | - |
6982 | ARRAY *a; | - |
6983 | | - |
6984 | v = find_variable ("PIPESTATUS"); | - |
6985 | if (v == 0TRUE | evaluated 1196 times by 1 test | FALSE | evaluated 711019 times by 1 test |
|| ((((TRUE | never evaluated | FALSE | evaluated 711019 times by 1 test |
v)->attributes) & (0x0000004))) == 0TRUE | never evaluated | FALSE | evaluated 711019 times by 1 test |
|| (TRUE | never evaluated | FALSE | evaluated 711019 times by 1 test |
ARRAY *)((v)->value) == 0TRUE | never evaluated | FALSE | evaluated 711019 times by 1 test |
) | 0-711019 |
6986 | returnexecuted 1196 times by 1 test: return ((ARRAY *) ((void *)0) ); ((ARRAY *)executed 1196 times by 1 test: return ((ARRAY *) ((void *)0) ); | 1196 |
6987 | ((void *)0)executed 1196 times by 1 test: return ((ARRAY *) ((void *)0) ); | 1196 |
6988 | );executed 1196 times by 1 test: return ((ARRAY *) ((void *)0) ); | 1196 |
6989 | | - |
6990 | a = array_copy ((ARRAY *)((v)->value)); | - |
6991 | | - |
6992 | returnexecuted 711019 times by 1 test: return a; a;executed 711019 times by 1 test: return a; | 711019 |
6993 | } | - |
6994 | | - |
6995 | void | - |
6996 | restore_pipestatus_array (a) | - |
6997 | ARRAY *a; | - |
6998 | { | - |
6999 | SHELL_VAR *v; | - |
7000 | ARRAY *a2; | - |
7001 | | - |
7002 | v = find_variable ("PIPESTATUS"); | - |
7003 | | - |
7004 | if (v == 0TRUE | evaluated 1196 times by 1 test | FALSE | evaluated 710987 times by 1 test |
|| ((((TRUE | never evaluated | FALSE | evaluated 710987 times by 1 test |
v)->attributes) & (0x0000004))) == 0TRUE | never evaluated | FALSE | evaluated 710987 times by 1 test |
|| (TRUE | never evaluated | FALSE | evaluated 710987 times by 1 test |
ARRAY *)((v)->value) == 0TRUE | never evaluated | FALSE | evaluated 710987 times by 1 test |
) | 0-710987 |
7005 | return;executed 1196 times by 1 test: return; | 1196 |
7006 | | - |
7007 | a2 = (ARRAY *)((v)->value); | - |
7008 | ((v)->value = (char *)(a)); | - |
7009 | | - |
7010 | array_dispose (a2); | - |
7011 | }executed 710987 times by 1 test: end of block | 710987 |
7012 | | - |
7013 | | - |
7014 | void | - |
7015 | set_pipestatus_from_exit (s) | - |
7016 | int s; | - |
7017 | { | - |
7018 | | - |
7019 | static int v[2] = { 0, -1 }; | - |
7020 | | - |
7021 | v[0] = s; | - |
7022 | set_pipestatus_array (v, 1); | - |
7023 | | - |
7024 | }executed 71125236 times by 1 test: end of block | 71125236 |
7025 | | - |
7026 | void | - |
7027 | sv_xtracefd (name) | - |
7028 | char *name; | - |
7029 | { | - |
7030 | SHELL_VAR *v; | - |
7031 | char *t, *e; | - |
7032 | int fd; | - |
7033 | FILE *fp; | - |
7034 | | - |
7035 | v = find_variable (name); | - |
7036 | if (v == 0TRUE | evaluated 2 times by 1 test | FALSE | evaluated 1 time by 1 test |
) | 1-2 |
7037 | { | - |
7038 | xtrace_reset (); | - |
7039 | return;executed 2 times by 1 test: return; | 2 |
7040 | } | - |
7041 | | - |
7042 | t = ((v)->value); | - |
7043 | if (t == 0TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
|| *TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
t == 0TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
) | 0-1 |
7044 | xtrace_reset (); never executed: xtrace_reset (); | 0 |
7045 | else | - |
7046 | { | - |
7047 | fd = (int)strtol (t, &e, 10); | - |
7048 | if (e != tTRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
&& *TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
e == '\0'TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
&& sh_validfd (fd)TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) | 0-1 |
7049 | { | - |
7050 | fp = fdopen (fd, "w"); | - |
7051 | if (fp == 0TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
) | 0-1 |
7052 | internal_error ( never executed: internal_error ( dcgettext (((void *)0), "%s: %s: cannot open as FILE" , 5) , name, ((v)->value)); | 0 |
7053 | dcgettext (((void *)0), never executed: internal_error ( dcgettext (((void *)0), "%s: %s: cannot open as FILE" , 5) , name, ((v)->value)); | 0 |
7054 | "%s: %s: cannot open as FILE" never executed: internal_error ( dcgettext (((void *)0), "%s: %s: cannot open as FILE" , 5) , name, ((v)->value)); | 0 |
7055 | , 5) never executed: internal_error ( dcgettext (((void *)0), "%s: %s: cannot open as FILE" , 5) , name, ((v)->value)); | 0 |
7056 | , name, ((v)->value)); never executed: internal_error ( dcgettext (((void *)0), "%s: %s: cannot open as FILE" , 5) , name, ((v)->value)); | 0 |
7057 | else | - |
7058 | xtrace_set (fd, fp);executed 1 time by 1 test: xtrace_set (fd, fp); | 1 |
7059 | } | - |
7060 | else | - |
7061 | internal_error ( never executed: internal_error ( dcgettext (((void *)0), "%s: %s: invalid value for trace file descriptor" , 5) , name, ((v)->value)); | 0 |
7062 | dcgettext (((void *)0), never executed: internal_error ( dcgettext (((void *)0), "%s: %s: invalid value for trace file descriptor" , 5) , name, ((v)->value)); | 0 |
7063 | "%s: %s: invalid value for trace file descriptor" never executed: internal_error ( dcgettext (((void *)0), "%s: %s: invalid value for trace file descriptor" , 5) , name, ((v)->value)); | 0 |
7064 | , 5) never executed: internal_error ( dcgettext (((void *)0), "%s: %s: invalid value for trace file descriptor" , 5) , name, ((v)->value)); | 0 |
7065 | , name, ((v)->value)); never executed: internal_error ( dcgettext (((void *)0), "%s: %s: invalid value for trace file descriptor" , 5) , name, ((v)->value)); | 0 |
7066 | } | - |
7067 | } | - |
7068 | | - |
7069 | | - |
7070 | | - |
7071 | void | - |
7072 | sv_shcompat (name) | - |
7073 | char *name; | - |
7074 | { | - |
7075 | SHELL_VAR *v; | - |
7076 | char *val; | - |
7077 | int tens, ones, compatval; | - |
7078 | | - |
7079 | v = find_variable (name); | - |
7080 | if (v == 0TRUE | evaluated 5447 times by 1 test | FALSE | never evaluated |
) | 0-5447 |
7081 | { | - |
7082 | shell_compatibility_level = 50; | - |
7083 | set_compatibility_opts (); | - |
7084 | return;executed 5447 times by 1 test: return; | 5447 |
7085 | } | - |
7086 | val = ((v)->value); | - |
7087 | if (val == 0TRUE | never evaluated | FALSE | never evaluated |
|| *TRUE | never evaluated | FALSE | never evaluated |
val == '\0'TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
7088 | { | - |
7089 | shell_compatibility_level = 50; | - |
7090 | set_compatibility_opts (); | - |
7091 | return; never executed: return; | 0 |
7092 | } | - |
7093 | | - |
7094 | if ((1 && | - |
7095 | ((*TRUE | never evaluated | FALSE | never evaluated |
__ctype_b_loc ())[(int) ((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
7096 | (unsigned char)val[0]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
7097 | ))] & (unsigned short int) _ISdigit)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
7098 | ) && val[1] == '.'TRUE | never evaluated | FALSE | never evaluated |
&& (1 && | 0 |
7099 | ((*TRUE | never evaluated | FALSE | never evaluated |
__ctype_b_loc ())[(int) ((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
7100 | (unsigned char)val[2]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
7101 | ))] & (unsigned short int) _ISdigit)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
7102 | ) && val[3] == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
7103 | { | - |
7104 | tens = val[0] - '0'; | - |
7105 | ones = val[2] - '0'; | - |
7106 | compatval = tens*10 + ones; | - |
7107 | } never executed: end of block | 0 |
7108 | | - |
7109 | else if ((1 && | - |
7110 | ((*TRUE | never evaluated | FALSE | never evaluated |
__ctype_b_loc ())[(int) ((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
7111 | (unsigned char)val[0]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
7112 | ))] & (unsigned short int) _ISdigit)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
7113 | ) && (1 && | - |
7114 | ((*TRUE | never evaluated | FALSE | never evaluated |
__ctype_b_loc ())[(int) ((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
7115 | (unsigned char)val[1]TRUE | never evaluated | FALSE | never evaluated |
| 0 |
7116 | ))] & (unsigned short int) _ISdigit)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
7117 | ) && val[2] == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
7118 | { | - |
7119 | tens = val[0] - '0'; | - |
7120 | ones = val[1] - '0'; | - |
7121 | compatval = tens*10 + ones; | - |
7122 | } never executed: end of block | 0 |
7123 | else | - |
7124 | { | - |
7125 | compat_error: | - |
7126 | internal_error ( | - |
7127 | dcgettext (((void *)0), | - |
7128 | "%s: %s: compatibility value out of range" | - |
7129 | , 5) | - |
7130 | , name, val); | - |
7131 | shell_compatibility_level = 50; | - |
7132 | set_compatibility_opts (); | - |
7133 | return; never executed: return; | 0 |
7134 | } | - |
7135 | | - |
7136 | if (compatval < 31TRUE | never evaluated | FALSE | never evaluated |
|| compatval > 50TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
7137 | goto never executed: goto compat_error; compat_error;never executed: goto compat_error; | 0 |
7138 | | - |
7139 | shell_compatibility_level = compatval; | - |
7140 | set_compatibility_opts (); | - |
7141 | } never executed: end of block | 0 |
7142 | | - |
7143 | | - |
7144 | void | - |
7145 | sv_childmax (name) | - |
7146 | char *name; | - |
7147 | { | - |
7148 | char *tt; | - |
7149 | int s; | - |
7150 | | - |
7151 | tt = get_string_value (name); | - |
7152 | s = (ttTRUE | never evaluated | FALSE | never evaluated |
&& *TRUE | never evaluated | FALSE | never evaluated |
ttTRUE | never evaluated | FALSE | never evaluated |
) ? atoi (tt) : 0; | 0 |
7153 | set_maxchild (s); | - |
7154 | } never executed: end of block | 0 |
| | |