OpenCoverage

alias.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/bash/src/alias.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12typedef int sh_alias_map_func_t (alias_t *);-
13-
14static void free_alias_data (void *);-
15static alias_t **map_over_aliases (sh_alias_map_func_t *);-
16static void sort_aliases (alias_t **);-
17static int qsort_alias_compare (alias_t **, alias_t **);-
18-
19-
20static int skipquotes (char *, int);-
21static int skipws (char *, int);-
22static int rd_token (char *, int);-
23-
24-
25-
26-
27int alias_expand_all = 0;-
28-
29-
30HASH_TABLE *aliases = (HASH_TABLE *)-
31 ((void *)0)-
32 ;-
33-
34void-
35initialize_aliases ()-
36{-
37 if (aliases == 0
aliases == 0Description
TRUEevaluated 49 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-49
38 aliases = hash_create (64);
executed 49 times by 1 test: aliases = hash_create (64);
Executed by:
  • Self test
49
39}
executed 49 times by 1 test: end of block
Executed by:
  • Self test
49
40-
41-
42-
43alias_t *-
44find_alias (name)-
45 char *name;-
46{-
47 BUCKET_CONTENTS *al;-
48-
49 if (aliases == 0
aliases == 0Description
TRUEevaluated 3518 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3726 times by 1 test
Evaluated by:
  • Self test
)
3518-3726
50 return
executed 3518 times by 1 test: return ((alias_t *) ((void *)0) );
Executed by:
  • Self test
((alias_t *)
executed 3518 times by 1 test: return ((alias_t *) ((void *)0) );
Executed by:
  • Self test
3518
51 ((void *)0)
executed 3518 times by 1 test: return ((alias_t *) ((void *)0) );
Executed by:
  • Self test
3518
52 );
executed 3518 times by 1 test: return ((alias_t *) ((void *)0) );
Executed by:
  • Self test
3518
53-
54 al = hash_search (name, aliases, 0);-
55 return
executed 3726 times by 1 test: return (al ? (alias_t *)al->data : (alias_t *) ((void *)0) );
Executed by:
  • Self test
(al ? (alias_t *)al->data : (alias_t *)
executed 3726 times by 1 test: return (al ? (alias_t *)al->data : (alias_t *) ((void *)0) );
Executed by:
  • Self test
3726
56 ((void *)0)
executed 3726 times by 1 test: return (al ? (alias_t *)al->data : (alias_t *) ((void *)0) );
Executed by:
  • Self test
3726
57 );
executed 3726 times by 1 test: return (al ? (alias_t *)al->data : (alias_t *) ((void *)0) );
Executed by:
  • Self test
3726
58}-
59-
60-
61char *-
62get_alias_value (name)-
63 char *name;-
64{-
65 alias_t *alias;-
66-
67 if (aliases == 0
aliases == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
68 return
never executed: return ((char *) ((void *)0) );
((char *)
never executed: return ((char *) ((void *)0) );
0
69 ((void *)0)
never executed: return ((char *) ((void *)0) );
0
70 );
never executed: return ((char *) ((void *)0) );
0
71-
72 alias = find_alias (name);-
73 return
never executed: return (alias ? alias->value : (char *) ((void *)0) );
(alias ? alias->value : (char *)
never executed: return (alias ? alias->value : (char *) ((void *)0) );
0
74 ((void *)0)
never executed: return (alias ? alias->value : (char *) ((void *)0) );
0
75 );
never executed: return (alias ? alias->value : (char *) ((void *)0) );
0
76}-
77-
78-
79-
80void-
81add_alias (name, value)-
82 char *name, *value;-
83{-
84 BUCKET_CONTENTS *elt;-
85 alias_t *temp;-
86 int n;-
87-
88 if (aliases == 0
aliases == 0Description
TRUEevaluated 49 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 46 times by 1 test
Evaluated by:
  • Self test
)
46-49
89 {-
90 initialize_aliases ();-
91 temp = (alias_t *)-
92 ((void *)0)-
93 ;-
94 }
executed 49 times by 1 test: end of block
Executed by:
  • Self test
49
95 else-
96 temp = find_alias (name);
executed 46 times by 1 test: temp = find_alias (name);
Executed by:
  • Self test
46
97-
98 if (temp
tempDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 93 times by 1 test
Evaluated by:
  • Self test
)
2-93
99 {-
100 sh_xfree((temp->value), "alias.c", 127);-
101 temp->value = (char *)strcpy (sh_xmalloc((1 + strlen (value)), "alias.c", 128), (value));-
102 temp->flags &= ~0x1;-
103 n = value[strlen (value) - 1];-
104 if (n == ' '
n == ' 'Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
|| n == '\t'
n == '\t'Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • Self test
)
0-2
105 temp->flags |= 0x1;
never executed: temp->flags |= 0x1;
0
106 }
executed 2 times by 1 test: end of block
Executed by:
  • Self test
2
107 else-
108 {-
109 temp = (alias_t *)sh_xmalloc((sizeof (alias_t)), "alias.c", 136);-
110 temp->name = (char *)strcpy (sh_xmalloc((1 + strlen (name)), "alias.c", 137), (name));-
111 temp->value = (char *)strcpy (sh_xmalloc((1 + strlen (value)), "alias.c", 138), (value));-
112 temp->flags = 0;-
113-
114 n = value[strlen (value) - 1];-
115 if (n == ' '
n == ' 'Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 88 times by 1 test
Evaluated by:
  • Self test
|| n == '\t'
n == '\t'Description
TRUEnever evaluated
FALSEevaluated 88 times by 1 test
Evaluated by:
  • Self test
)
0-88
116 temp->flags |= 0x1;
executed 5 times by 1 test: temp->flags |= 0x1;
Executed by:
  • Self test
5
117-
118 elt = hash_insert ((char *)strcpy (sh_xmalloc((1 + strlen (name)), "alias.c", 145), (name)), aliases, 0x01);-
119 elt->data = temp;-
120-
121 set_itemlist_dirty (&it_aliases);-
122-
123 }
executed 93 times by 1 test: end of block
Executed by:
  • Self test
93
124}-
125-
126-
127static void-
128free_alias_data (data)-
129 void * data;-
130{-
131 register alias_t *a;-
132-
133 a = (alias_t *)data;-
134-
135 if (a->flags & 0x2
a->flags & 0x2Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 45 times by 1 test
Evaluated by:
  • Self test
)
4-45
136 clear_string_list_expander (a);
executed 4 times by 1 test: clear_string_list_expander (a);
Executed by:
  • Self test
4
137-
138 sh_xfree((a->value), "alias.c", 165);-
139 sh_xfree((a->name), "alias.c", 166);-
140 sh_xfree((data), "alias.c", 167);-
141}
executed 49 times by 1 test: end of block
Executed by:
  • Self test
49
142-
143-
144-
145-
146int-
147remove_alias (name)-
148 char *name;-
149{-
150 BUCKET_CONTENTS *elt;-
151-
152 if (aliases == 0
aliases == 0Description
TRUEnever evaluated
FALSEevaluated 15 times by 1 test
Evaluated by:
  • Self test
)
0-15
153 return
never executed: return (-1);
(-1);
never executed: return (-1);
0
154-
155 elt = hash_remove (name, aliases, 0);-
156 if (elt
eltDescription
TRUEevaluated 15 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-15
157 {-
158 free_alias_data (elt->data);-
159 sh_xfree((elt->key), "alias.c", 186);-
160 sh_xfree((elt), "alias.c", 187);-
161-
162 set_itemlist_dirty (&it_aliases);-
163-
164 return
executed 15 times by 1 test: return (aliases->nentries);
Executed by:
  • Self test
(aliases->nentries);
executed 15 times by 1 test: return (aliases->nentries);
Executed by:
  • Self test
15
165 }-
166 return
never executed: return (-1);
(-1);
never executed: return (-1);
0
167}-
168-
169-
170void-
171delete_all_aliases ()-
172{-
173 if (aliases == 0
aliases == 0Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 21 times by 1 test
Evaluated by:
  • Self test
)
12-21
174 return;
executed 12 times by 1 test: return;
Executed by:
  • Self test
12
175-
176 hash_flush (aliases, free_alias_data);-
177 hash_dispose (aliases);-
178 aliases = (HASH_TABLE *)-
179 ((void *)0)-
180 ;-
181-
182 set_itemlist_dirty (&it_aliases);-
183-
184}
executed 21 times by 1 test: end of block
Executed by:
  • Self test
21
185-
186-
187-
188static alias_t **-
189map_over_aliases (function)-
190 sh_alias_map_func_t *function;-
191{-
192 register int i;-
193 register BUCKET_CONTENTS *tlist;-
194 alias_t *alias, **list;-
195 int list_index;-
196-
197 i = ((
(aliases)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
aliases)
(aliases)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
? (aliases)->nentries : 0);
0-5
198 if (i == 0
i == 0Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
)
0-5
199 return
never executed: return ((alias_t **) ((void *)0) );
((alias_t **)
never executed: return ((alias_t **) ((void *)0) );
0
200 ((void *)0)
never executed: return ((alias_t **) ((void *)0) );
0
201 );
never executed: return ((alias_t **) ((void *)0) );
0
202-
203 list = (alias_t **)sh_xmalloc(((i + 1) * sizeof (alias_t *)), "alias.c", 226);-
204 for (i = list_index = 0; i < aliases->nbuckets
i < aliases->nbucketsDescription
TRUEevaluated 320 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
; i++)
5-320
205 {-
206 for (tlist = ((aliases && (i < aliases->nbuckets)) ? aliases->bucket_array[i] : (BUCKET_CONTENTS *)-
207 ((void *)0)-
208 ); tlist
tlistDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 320 times by 1 test
Evaluated by:
  • Self test
; tlist = tlist->next)
8-320
209 {-
210 alias = (alias_t *)tlist->data;-
211-
212 if (!function
!functionDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
|| (*
(*function) (alias)Description
TRUEnever evaluated
FALSEnever evaluated
function) (alias)
(*function) (alias)Description
TRUEnever evaluated
FALSEnever evaluated
)
0-8
213 {-
214 list[list_index++] = alias;-
215 list[list_index] = (alias_t *)-
216 ((void *)0)-
217 ;-
218 }
executed 8 times by 1 test: end of block
Executed by:
  • Self test
8
219 }
executed 8 times by 1 test: end of block
Executed by:
  • Self test
8
220 }
executed 320 times by 1 test: end of block
Executed by:
  • Self test
320
221 return
executed 5 times by 1 test: return (list);
Executed by:
  • Self test
(list);
executed 5 times by 1 test: return (list);
Executed by:
  • Self test
5
222}-
223-
224static void-
225sort_aliases (array)-
226 alias_t **array;-
227{-
228 qsort (array, strvec_len ((char **)array), sizeof (alias_t *), (QSFUNC *)qsort_alias_compare);-
229}
executed 5 times by 1 test: end of block
Executed by:
  • Self test
5
230-
231static int-
232qsort_alias_compare (as1, as2)-
233 alias_t **as1, **as2;-
234{-
235 int result;-
236-
237 if ((
(result = (*as...>name[0]) == 0Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
result = (*as1)->name[0] - (*as2)->name[0]) == 0
(result = (*as...>name[0]) == 0Description
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
)
0-5
238 result =
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
239 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
240 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
241 ) && __builtin_constant_p (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
242 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
243 ) && (__s1_len = __builtin_strlen (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
244 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
245 ), __s2_len = __builtin_strlen (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
246 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
247 ), (!((size_t)(const void *)((
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
248 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
249 ) + 1) - (size_t)(const void *)(
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
250 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
251 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
252 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
253 ) + 1) - (size_t)(const void *)(
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
254 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
255 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
256 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
257 ,
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
258 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
259 ) : (__builtin_constant_p (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
260 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
261 ) && ((size_t)(const void *)((
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
262 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
263 ) + 1) - (size_t)(const void *)(
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
264 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
265 ) == 1) && (__s1_len = __builtin_strlen (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
266 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
267 ), __s1_len < 4) ? (__builtin_constant_p (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
268 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
269 ) && ((size_t)(const void *)((
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
270 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
271 ) + 1) - (size_t)(const void *)(
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
272 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
273 ) == 1) ? __builtin_strcmp (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
274 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
275 ,
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
276 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
277 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
278 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
279 ); int __result = (((const unsigned char *) (const char *) (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
280 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
281 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
282 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
283 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
284 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
285 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( (*as1)->name ))[3] - __s2[3]);
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
286 (*as1)->name
never executed: __result = (((const unsigned char *) (const char *) ( (*as1)->name ))[3] - __s2[3]);
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
287 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( (*as1)->name ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
288 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
289 ) && ((size_t)(const void *)((
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
290 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
291 ) + 1) - (size_t)(const void *)(
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
292 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
293 ) == 1) && (__s2_len = __builtin_strlen (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
294 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
295 ), __s2_len < 4) ? (__builtin_constant_p (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
296 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
297 ) && ((size_t)(const void *)((
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
298 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
299 ) + 1) - (size_t)(const void *)(
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
300 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
301 ) == 1) ? __builtin_strcmp (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
302 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
303 ,
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
304 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
305 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
306 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
307 ); int __result = (((const unsigned char *) (const char *) (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
308 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
309 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
310 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
311 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
312 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
313 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]);
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
314 (*as2)->name
never executed: __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]);
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
315 ))[3] - __s2[3]);
never executed: __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
316 (*as1)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
317 ,
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
318 (*as2)->name
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
319 )))); })
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
320 ;
never executed: result = __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( (*as1)->name ) && __builtin_constant_p ( (*as2)->name ) && (__s1_len = __builtin_strlen ( (*as1)->name ), __s2_len = __builtin_strlen ( (*as2)->name ), (!((size_t)(const void *)(... char *) (const char *) ( (*as2)->name ))[2] - __s2[2]); if (__s2_len > 2 && __result == 0) __result = (((const unsigned char *) (const char *) ( (*as2)->name ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp ( (*as1)->name , (*as2)->name )))); }) ;
0
321-
322 return
executed 5 times by 1 test: return (result);
Executed by:
  • Self test
(result);
executed 5 times by 1 test: return (result);
Executed by:
  • Self test
5
323}-
324-
325-
326alias_t **-
327all_aliases ()-
328{-
329 alias_t **list;-
330-
331 if (aliases == 0
aliases == 0Description
TRUEnever evaluated
FALSEevaluated 7 times by 1 test
Evaluated by:
  • Self test
|| ((
(aliases)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
((aliases) ? (...ries : 0) == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
aliases)
(aliases)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
? (aliases)->nentries : 0) == 0
((aliases) ? (...ries : 0) == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 5 times by 1 test
Evaluated by:
  • Self test
)
0-7
332 return
executed 2 times by 1 test: return ((alias_t **) ((void *)0) );
Executed by:
  • Self test
((alias_t **)
executed 2 times by 1 test: return ((alias_t **) ((void *)0) );
Executed by:
  • Self test
2
333 ((void *)0)
executed 2 times by 1 test: return ((alias_t **) ((void *)0) );
Executed by:
  • Self test
2
334 );
executed 2 times by 1 test: return ((alias_t **) ((void *)0) );
Executed by:
  • Self test
2
335-
336 list = map_over_aliases ((sh_alias_map_func_t *)-
337 ((void *)0)-
338 );-
339 if (list
listDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-5
340 sort_aliases (list);
executed 5 times by 1 test: sort_aliases (list);
Executed by:
  • Self test
5
341 return
executed 5 times by 1 test: return (list);
Executed by:
  • Self test
(list);
executed 5 times by 1 test: return (list);
Executed by:
  • Self test
5
342}-
343-
344char *-
345alias_expand_word (s)-
346 char *s;-
347{-
348 alias_t *r;-
349-
350 r = find_alias (s);-
351 return
never executed: return (r ? (char *)strcpy (sh_xmalloc((1 + strlen (r->value)), "alias.c", 284), (r->value)) : (char *) ((void *)0) );
(r ? (char *)strcpy (sh_xmalloc((1 + strlen (r->value)), "alias.c", 284), (r->value)) : (char *)
never executed: return (r ? (char *)strcpy (sh_xmalloc((1 + strlen (r->value)), "alias.c", 284), (r->value)) : (char *) ((void *)0) );
0
352 ((void *)0)
never executed: return (r ? (char *)strcpy (sh_xmalloc((1 + strlen (r->value)), "alias.c", 284), (r->value)) : (char *) ((void *)0) );
0
353 );
never executed: return (r ? (char *)strcpy (sh_xmalloc((1 + strlen (r->value)), "alias.c", 284), (r->value)) : (char *) ((void *)0) );
0
354}-
355static int command_word;-
356static int-
357skipquotes (string, start)-
358 char *string;-
359 int start;-
360{-
361 register int i;-
362 int delimiter = string[start];-
363-
364-
365-
366 for (i = start + 1 ; string[i]
string[i]Description
TRUEnever evaluated
FALSEnever evaluated
; i++)
0
367 {-
368 if (string[i] == '\\'
string[i] == '\\'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
369 {-
370 i++;-
371 if (string[i] == 0
string[i] == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
372 break;
never executed: break;
0
373 continue;
never executed: continue;
0
374 }-
375-
376 if (string[i] == delimiter
string[i] == delimiterDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
377 return
never executed: return i;
i;
never executed: return i;
0
378 }
never executed: end of block
0
379 return
never executed: return (i);
(i);
never executed: return (i);
0
380}-
381-
382-
383-
384-
385static int-
386skipws (string, start)-
387 char *string;-
388 int start;-
389{-
390 register int i;-
391 int pass_next, backslash_quoted_word;-
392 unsigned char peekc;-
393-
394-
395-
396 i = backslash_quoted_word = pass_next = 0;-
397-
398-
399-
400-
401 for (i = start; string[i]
string[i]Description
TRUEnever evaluated
FALSEnever evaluated
; i++)
0
402 {-
403 if (pass_next
pass_nextDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
404 {-
405 pass_next = 0;-
406 continue;
never executed: continue;
0
407 }-
408-
409 if ((((
((string[i]) == ' ')Description
TRUEnever evaluated
FALSEnever evaluated
string[i]) == ' ')
((string[i]) == ' ')Description
TRUEnever evaluated
FALSEnever evaluated
|| ((
((string[i]) == '\t')Description
TRUEnever evaluated
FALSEnever evaluated
string[i]) == '\t')
((string[i]) == '\t')Description
TRUEnever evaluated
FALSEnever evaluated
))
0
410 {-
411 backslash_quoted_word = 0;-
412 continue;
never executed: continue;
0
413 }-
414-
415 if (string[i] == '\\'
string[i] == '\\'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
416 {-
417 peekc = string[i+1];-
418 if (peekc == 0
peekc == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
419 break;
never executed: break;
0
420 if (((1 && -
421 ((*
((*__ctype_b_l...int) _ISalpha)Description
TRUEnever evaluated
FALSEnever evaluated
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISalpha)Description
TRUEnever evaluated
FALSEnever evaluated
0
422 (unsigned char)peekc
((*__ctype_b_l...int) _ISalpha)Description
TRUEnever evaluated
FALSEnever evaluated
0
423 ))] & (unsigned short int) _ISalpha)
((*__ctype_b_l...int) _ISalpha)Description
TRUEnever evaluated
FALSEnever evaluated
0
424 )))-
425 backslash_quoted_word++;
never executed: backslash_quoted_word++;
0
426 else-
427 pass_next++;
never executed: pass_next++;
0
428 continue;
never executed: continue;
0
429 }-
430-
431-
432-
433-
434-
435 if ((((
((string[i]) == '\'')Description
TRUEnever evaluated
FALSEnever evaluated
string[i]) == '\'')
((string[i]) == '\'')Description
TRUEnever evaluated
FALSEnever evaluated
|| ((
((string[i]) == '"')Description
TRUEnever evaluated
FALSEnever evaluated
string[i]) == '"')
((string[i]) == '"')Description
TRUEnever evaluated
FALSEnever evaluated
))
0
436 {-
437 i = skipquotes (string, i);-
438-
439-
440-
441 if (string[i] == '\0'
string[i] == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
442 break;
never executed: break;
0
443-
444 peekc = string[i + 1];-
445 if (((1 && -
446 ((*
((*__ctype_b_l...int) _ISalpha)Description
TRUEnever evaluated
FALSEnever evaluated
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISalpha)Description
TRUEnever evaluated
FALSEnever evaluated
0
447 (unsigned char)peekc
((*__ctype_b_l...int) _ISalpha)Description
TRUEnever evaluated
FALSEnever evaluated
0
448 ))] & (unsigned short int) _ISalpha)
((*__ctype_b_l...int) _ISalpha)Description
TRUEnever evaluated
FALSEnever evaluated
0
449 )))-
450 backslash_quoted_word++;
never executed: backslash_quoted_word++;
0
451 continue;
never executed: continue;
0
452 }-
453-
454-
455-
456 if (backslash_quoted_word
backslash_quoted_wordDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
457 continue;
never executed: continue;
0
458-
459-
460-
461-
462 if (((((
((string[i]))Description
TRUEnever evaluated
FALSEnever evaluated
string[i]))
((string[i]))Description
TRUEnever evaluated
FALSEnever evaluated
? ((char *)mbschr (("\r\n;|&("), ((string[i]))) != (char *)
((((string[i])...d *)0) ) : 0))Description
TRUEnever evaluated
FALSEnever evaluated
0
463 ((void *)0)
((((string[i])...d *)0) ) : 0))Description
TRUEnever evaluated
FALSEnever evaluated
0
464 ) : 0))
((((string[i])...d *)0) ) : 0))Description
TRUEnever evaluated
FALSEnever evaluated
)
0
465 {-
466 command_word++;-
467 continue;
never executed: continue;
0
468 }-
469 break;
never executed: break;
0
470 }-
471 return
never executed: return (i);
(i);
never executed: return (i);
0
472}-
473static int-
474rd_token (string, start)-
475 char *string;-
476 int start;-
477{-
478 register int i;-
479-
480-
481 for (i = start; string[i]
string[i]Description
TRUEnever evaluated
FALSEnever evaluated
&& (!(((((
((string[i]) == ' ')Description
TRUEnever evaluated
FALSEnever evaluated
string[i]) == ' ')
((string[i]) == ' ')Description
TRUEnever evaluated
FALSEnever evaluated
|| ((
((string[i]) == '\t')Description
TRUEnever evaluated
FALSEnever evaluated
string[i]) == '\t')
((string[i]) == '\t')Description
TRUEnever evaluated
FALSEnever evaluated
) || ((((
((((string[i])...d *)0) ) : 0))Description
TRUEnever evaluated
FALSEnever evaluated
string[i])) ? ((char *)mbschr ((" \t\n\r;|&()"), ((string[i]))) != (char *)
((((string[i])...d *)0) ) : 0))Description
TRUEnever evaluated
FALSEnever evaluated
0
482 ((void *)0)
((((string[i])...d *)0) ) : 0))Description
TRUEnever evaluated
FALSEnever evaluated
0
483 ) : 0))
((((string[i])...d *)0) ) : 0))Description
TRUEnever evaluated
FALSEnever evaluated
))); i++)
0
484 {-
485 if (string[i] == '\\'
string[i] == '\\'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
486 {-
487 i++;-
488 if (string[i] == 0
string[i] == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
489 break;
never executed: break;
0
490 continue;
never executed: continue;
0
491 }-
492-
493-
494-
495-
496-
497-
498 if ((((
((string[i]) == '\'')Description
TRUEnever evaluated
FALSEnever evaluated
string[i]) == '\'')
((string[i]) == '\'')Description
TRUEnever evaluated
FALSEnever evaluated
|| ((
((string[i]) == '"')Description
TRUEnever evaluated
FALSEnever evaluated
string[i]) == '"')
((string[i]) == '"')Description
TRUEnever evaluated
FALSEnever evaluated
))
0
499 {-
500 i = skipquotes (string, i);-
501-
502-
503-
504 if (string[i] == '\0'
string[i] == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
505 break;
never executed: break;
0
506-
507-
508-
509 continue;
never executed: continue;
0
510 }-
511 }
never executed: end of block
0
512 return
never executed: return (i);
(i);
never executed: return (i);
0
513}-
514-
515-
516char *-
517alias_expand (string)-
518 char *string;-
519{-
520 register int i, j, start;-
521 char *line, *token;-
522 int line_len, tl, real_start, expand_next, expand_this_token;-
523 alias_t *alias;-
524-
525 line_len = strlen (string) + 1;-
526 line = (char *)sh_xmalloc((line_len), "alias.c", 482);-
527 token = (char *)sh_xmalloc((line_len), "alias.c", 483);-
528-
529 line[0] = i = 0;-
530 expand_next = 0;-
531 command_word = 1;-
532-
533-
534-
535-
536-
537-
538 for (;;)-
539 {-
540-
541 token[0] = 0;-
542 start = i;-
543-
544-
545 i = skipws (string, start);-
546-
547 if (start == i
start == iDescription
TRUEnever evaluated
FALSEnever evaluated
&& string[i] == '\0'
string[i] == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
548 {-
549 sh_xfree((token), "alias.c", 505);-
550 return
never executed: return (line);
(line);
never executed: return (line);
0
551 }-
552-
553-
554-
555 j = strlen (line);-
556 tl = i - start;-
557 do { if ((
(j) + ((tl + 1)) >= line_lenDescription
TRUEnever evaluated
FALSEnever evaluated
j) + ((tl + 1)) >= line_len
(j) + ((tl + 1)) >= line_lenDescription
TRUEnever evaluated
FALSEnever evaluated
) { while ((
(j) + ((tl + 1)) >= line_lenDescription
TRUEnever evaluated
FALSEnever evaluated
j) + ((tl + 1)) >= line_len
(j) + ((tl + 1)) >= line_lenDescription
TRUEnever evaluated
FALSEnever evaluated
) line_len += ((tl + 50));
never executed: line_len += ((tl + 50));
line = sh_xrealloc((line), (line_len), "alias.c", 513); }
never executed: end of block
} while (0);
0
558 -
559 __builtin_strncpy (-
560 line + j-
561 , -
562 string + start-
563 , -
564 tl-
565 )-
566 ;-
567 line[j + tl] = '\0';-
568-
569 real_start = i;-
570-
571 command_word = command_word
command_wordDescription
TRUEnever evaluated
FALSEnever evaluated
|| (((((
(((((string[i]... *)0) ) : 0)))Description
TRUEnever evaluated
FALSEnever evaluated
string[i])) ? ((char *)mbschr (("\r\n;|&("), ((string[i]))) != (char *)
(((((string[i]... *)0) ) : 0)))Description
TRUEnever evaluated
FALSEnever evaluated
0
572 ((void *)0)
(((((string[i]... *)0) ) : 0)))Description
TRUEnever evaluated
FALSEnever evaluated
0
573 ) : 0)))
(((((string[i]... *)0) ) : 0)))Description
TRUEnever evaluated
FALSEnever evaluated
;
0
574 expand_this_token = (command_word
command_wordDescription
TRUEnever evaluated
FALSEnever evaluated
|| expand_next
expand_nextDescription
TRUEnever evaluated
FALSEnever evaluated
);
0
575 expand_next = 0;-
576-
577-
578 start = i;-
579 i = rd_token (string, start);-
580-
581 tl = i - start;-
582-
583-
584-
585 if (tl == 0
tl == 0Description
TRUEnever evaluated
FALSEnever evaluated
&& string[i] != '\0'
string[i] != '\0'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
586 {-
587 tl = 1;-
588 i++;-
589 }
never executed: end of block
0
590-
591 -
592 __builtin_strncpy (-
593 token-
594 , -
595 string + start-
596 , -
597 tl-
598 )-
599 ;-
600 token [tl] = '\0';-
601-
602-
603-
604-
605 if (mbschr (token, '\\')
mbschr (token, '\\')Description
TRUEnever evaluated
FALSEnever evaluated
)
0
606 expand_this_token = 0;
never executed: expand_this_token = 0;
0
607-
608-
609-
610-
611-
612-
613-
614 if ((
(token[0])Description
TRUEnever evaluated
FALSEnever evaluated
token[0])
(token[0])Description
TRUEnever evaluated
FALSEnever evaluated
&&
0
615 (expand_this_token
expand_this_tokenDescription
TRUEnever evaluated
FALSEnever evaluated
|| alias_expand_all
alias_expand_allDescription
TRUEnever evaluated
FALSEnever evaluated
) &&
0
616 (
(alias = find_alias (token))Description
TRUEnever evaluated
FALSEnever evaluated
alias = find_alias (token))
(alias = find_alias (token))Description
TRUEnever evaluated
FALSEnever evaluated
)
0
617 {-
618 char *v;-
619 int vlen, llen;-
620-
621 v = alias->value;-
622 vlen = strlen (v);-
623 llen = strlen (line);-
624-
625-
626 do { if ((
(llen) + ((vle...)) >= line_lenDescription
TRUEnever evaluated
FALSEnever evaluated
llen) + ((vlen + 3)) >= line_len
(llen) + ((vle...)) >= line_lenDescription
TRUEnever evaluated
FALSEnever evaluated
) { while ((
(llen) + ((vle...)) >= line_lenDescription
TRUEnever evaluated
FALSEnever evaluated
llen) + ((vlen + 3)) >= line_len
(llen) + ((vle...)) >= line_lenDescription
TRUEnever evaluated
FALSEnever evaluated
) line_len += ((vlen + 50));
never executed: line_len += ((vlen + 50));
line = sh_xrealloc((line), (line_len), "alias.c", 564); }
never executed: end of block
} while (0);
0
627-
628 strcpy (line + llen, v);-
629-
630 if ((expand_this_token
expand_this_tokenDescription
TRUEnever evaluated
FALSEnever evaluated
&& vlen
vlenDescription
TRUEnever evaluated
FALSEnever evaluated
&& (((
((v[vlen - 1]) == ' ')Description
TRUEnever evaluated
FALSEnever evaluated
v[vlen - 1]) == ' ')
((v[vlen - 1]) == ' ')Description
TRUEnever evaluated
FALSEnever evaluated
|| ((
((v[vlen - 1]) == '\t')Description
TRUEnever evaluated
FALSEnever evaluated
v[vlen - 1]) == '\t')
((v[vlen - 1]) == '\t')Description
TRUEnever evaluated
FALSEnever evaluated
)) ||
0
631 alias_expand_all
alias_expand_allDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
632 expand_next = 1;
never executed: expand_next = 1;
0
633 }
never executed: end of block
0
634 else-
635 {-
636 int llen, tlen;-
637-
638 llen = strlen (line);-
639 tlen = i - real_start;-
640-
641 do { if ((
(llen) + ((tle...)) >= line_lenDescription
TRUEnever evaluated
FALSEnever evaluated
llen) + ((tlen + 1)) >= line_len
(llen) + ((tle...)) >= line_lenDescription
TRUEnever evaluated
FALSEnever evaluated
) { while ((
(llen) + ((tle...)) >= line_lenDescription
TRUEnever evaluated
FALSEnever evaluated
llen) + ((tlen + 1)) >= line_len
(llen) + ((tle...)) >= line_lenDescription
TRUEnever evaluated
FALSEnever evaluated
) line_len += ((llen + tlen + 50));
never executed: line_len += ((llen + tlen + 50));
line = sh_xrealloc((line), (line_len), "alias.c", 579); }
never executed: end of block
} while (0);
0
642-
643 -
644 __builtin_strncpy (-
645 line + llen-
646 , -
647 string + real_start-
648 , -
649 tlen-
650 )-
651 ;-
652 line[llen + tlen] = '\0';-
653 }
never executed: end of block
0
654 command_word = 0;-
655 }
never executed: end of block
0
656}
never executed: end of block
0
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2