Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/bash/src/dispose_cmd.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||||||||||||||||||||
2 | - | |||||||||||||||||||||||||||||||||||||
3 | - | |||||||||||||||||||||||||||||||||||||
4 | - | |||||||||||||||||||||||||||||||||||||
5 | - | |||||||||||||||||||||||||||||||||||||
6 | - | |||||||||||||||||||||||||||||||||||||
7 | extern sh_obj_cache_t wdcache, wlcache; | - | ||||||||||||||||||||||||||||||||||||
8 | - | |||||||||||||||||||||||||||||||||||||
9 | - | |||||||||||||||||||||||||||||||||||||
10 | void | - | ||||||||||||||||||||||||||||||||||||
11 | dispose_command (command) | - | ||||||||||||||||||||||||||||||||||||
12 | COMMAND *command; | - | ||||||||||||||||||||||||||||||||||||
13 | { | - | ||||||||||||||||||||||||||||||||||||
14 | if (command == 0
| 9705414-140150651 | ||||||||||||||||||||||||||||||||||||
15 | return; executed 9705414 times by 1 test: return; Executed by:
| 9705414 | ||||||||||||||||||||||||||||||||||||
16 | - | |||||||||||||||||||||||||||||||||||||
17 | if (command->redirects
| 3102-140147549 | ||||||||||||||||||||||||||||||||||||
18 | dispose_redirects (command->redirects); executed 3102 times by 1 test: dispose_redirects (command->redirects); Executed by:
| 3102 | ||||||||||||||||||||||||||||||||||||
19 | - | |||||||||||||||||||||||||||||||||||||
20 | switch (command->type) | - | ||||||||||||||||||||||||||||||||||||
21 | { | - | ||||||||||||||||||||||||||||||||||||
22 | case executed 1616277 times by 1 test: cm_for:case cm_for: Executed by:
executed 1616277 times by 1 test: case cm_for: Executed by:
| 1616277 | ||||||||||||||||||||||||||||||||||||
23 | - | |||||||||||||||||||||||||||||||||||||
24 | case executed 9 times by 1 test: cm_select:case cm_select: Executed by:
executed 9 times by 1 test: case cm_select: Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||
25 | - | |||||||||||||||||||||||||||||||||||||
26 | { | - | ||||||||||||||||||||||||||||||||||||
27 | register FOR_COM *c; | - | ||||||||||||||||||||||||||||||||||||
28 | - | |||||||||||||||||||||||||||||||||||||
29 | if (command->type == cm_select
| 9-1616277 | ||||||||||||||||||||||||||||||||||||
30 | c = (FOR_COM *)command->value.Select; executed 9 times by 1 test: c = (FOR_COM *)command->value.Select; Executed by:
| 9 | ||||||||||||||||||||||||||||||||||||
31 | else | - | ||||||||||||||||||||||||||||||||||||
32 | - | |||||||||||||||||||||||||||||||||||||
33 | c = command->value.For; executed 1616277 times by 1 test: c = command->value.For; Executed by:
| 1616277 | ||||||||||||||||||||||||||||||||||||
34 | dispose_word (c->name); | - | ||||||||||||||||||||||||||||||||||||
35 | dispose_words (c->map_list); | - | ||||||||||||||||||||||||||||||||||||
36 | dispose_command (c->action); | - | ||||||||||||||||||||||||||||||||||||
37 | sh_xfree((c), "dispose_cmd.c", 62); | - | ||||||||||||||||||||||||||||||||||||
38 | break; executed 1616286 times by 1 test: break; Executed by:
| 1616286 | ||||||||||||||||||||||||||||||||||||
39 | } | - | ||||||||||||||||||||||||||||||||||||
40 | - | |||||||||||||||||||||||||||||||||||||
41 | - | |||||||||||||||||||||||||||||||||||||
42 | case executed 4552 times by 1 test: cm_arith_for:case cm_arith_for: Executed by:
executed 4552 times by 1 test: case cm_arith_for: Executed by:
| 4552 | ||||||||||||||||||||||||||||||||||||
43 | { | - | ||||||||||||||||||||||||||||||||||||
44 | register ARITH_FOR_COM *c; | - | ||||||||||||||||||||||||||||||||||||
45 | - | |||||||||||||||||||||||||||||||||||||
46 | c = command->value.ArithFor; | - | ||||||||||||||||||||||||||||||||||||
47 | dispose_words (c->init); | - | ||||||||||||||||||||||||||||||||||||
48 | dispose_words (c->test); | - | ||||||||||||||||||||||||||||||||||||
49 | dispose_words (c->step); | - | ||||||||||||||||||||||||||||||||||||
50 | dispose_command (c->action); | - | ||||||||||||||||||||||||||||||||||||
51 | sh_xfree((c), "dispose_cmd.c", 76); | - | ||||||||||||||||||||||||||||||||||||
52 | break; executed 4552 times by 1 test: break; Executed by:
| 4552 | ||||||||||||||||||||||||||||||||||||
53 | } | - | ||||||||||||||||||||||||||||||||||||
54 | - | |||||||||||||||||||||||||||||||||||||
55 | - | |||||||||||||||||||||||||||||||||||||
56 | case executed 1655514 times by 1 test: cm_group:case cm_group: Executed by:
executed 1655514 times by 1 test: case cm_group: Executed by:
| 1655514 | ||||||||||||||||||||||||||||||||||||
57 | { | - | ||||||||||||||||||||||||||||||||||||
58 | dispose_command (command->value.Group->command); | - | ||||||||||||||||||||||||||||||||||||
59 | sh_xfree((command->value.Group), "dispose_cmd.c", 84); | - | ||||||||||||||||||||||||||||||||||||
60 | break; executed 1655514 times by 1 test: break; Executed by:
| 1655514 | ||||||||||||||||||||||||||||||||||||
61 | } | - | ||||||||||||||||||||||||||||||||||||
62 | - | |||||||||||||||||||||||||||||||||||||
63 | case executed 6458 times by 1 test: cm_subshell:case cm_subshell: Executed by:
executed 6458 times by 1 test: case cm_subshell: Executed by:
| 6458 | ||||||||||||||||||||||||||||||||||||
64 | { | - | ||||||||||||||||||||||||||||||||||||
65 | dispose_command (command->value.Subshell->command); | - | ||||||||||||||||||||||||||||||||||||
66 | sh_xfree((command->value.Subshell), "dispose_cmd.c", 91); | - | ||||||||||||||||||||||||||||||||||||
67 | break; executed 6458 times by 1 test: break; Executed by:
| 6458 | ||||||||||||||||||||||||||||||||||||
68 | } | - | ||||||||||||||||||||||||||||||||||||
69 | - | |||||||||||||||||||||||||||||||||||||
70 | case executed 36 times by 1 test: cm_coproc:case cm_coproc: Executed by:
executed 36 times by 1 test: case cm_coproc: Executed by:
| 36 | ||||||||||||||||||||||||||||||||||||
71 | { | - | ||||||||||||||||||||||||||||||||||||
72 | sh_xfree((command->value.Coproc->name), "dispose_cmd.c", 97); | - | ||||||||||||||||||||||||||||||||||||
73 | dispose_command (command->value.Coproc->command); | - | ||||||||||||||||||||||||||||||||||||
74 | sh_xfree((command->value.Coproc), "dispose_cmd.c", 99); | - | ||||||||||||||||||||||||||||||||||||
75 | break; executed 36 times by 1 test: break; Executed by:
| 36 | ||||||||||||||||||||||||||||||||||||
76 | } | - | ||||||||||||||||||||||||||||||||||||
77 | - | |||||||||||||||||||||||||||||||||||||
78 | case executed 32312615 times by 1 test: cm_case:case cm_case: Executed by:
executed 32312615 times by 1 test: case cm_case: Executed by:
| 32312615 | ||||||||||||||||||||||||||||||||||||
79 | { | - | ||||||||||||||||||||||||||||||||||||
80 | register CASE_COM *c; | - | ||||||||||||||||||||||||||||||||||||
81 | PATTERN_LIST *t, *p; | - | ||||||||||||||||||||||||||||||||||||
82 | - | |||||||||||||||||||||||||||||||||||||
83 | c = command->value.Case; | - | ||||||||||||||||||||||||||||||||||||
84 | dispose_word (c->word); | - | ||||||||||||||||||||||||||||||||||||
85 | - | |||||||||||||||||||||||||||||||||||||
86 | for (p = c->clauses; p
| 32312615-79167555 | ||||||||||||||||||||||||||||||||||||
87 | { | - | ||||||||||||||||||||||||||||||||||||
88 | dispose_words (p->patterns); | - | ||||||||||||||||||||||||||||||||||||
89 | dispose_command (p->action); | - | ||||||||||||||||||||||||||||||||||||
90 | t = p; | - | ||||||||||||||||||||||||||||||||||||
91 | p = p->next; | - | ||||||||||||||||||||||||||||||||||||
92 | sh_xfree((t), "dispose_cmd.c", 117); | - | ||||||||||||||||||||||||||||||||||||
93 | } executed 79167555 times by 1 test: end of block Executed by:
| 79167555 | ||||||||||||||||||||||||||||||||||||
94 | sh_xfree((c), "dispose_cmd.c", 119); | - | ||||||||||||||||||||||||||||||||||||
95 | break; executed 32312615 times by 1 test: break; Executed by:
| 32312615 | ||||||||||||||||||||||||||||||||||||
96 | } | - | ||||||||||||||||||||||||||||||||||||
97 | - | |||||||||||||||||||||||||||||||||||||
98 | case executed 22 times by 1 test: cm_until:case cm_until: Executed by:
executed 22 times by 1 test: case cm_until: Executed by:
| 22 | ||||||||||||||||||||||||||||||||||||
99 | case executed 1618045 times by 1 test: cm_while:case cm_while: Executed by:
executed 1618045 times by 1 test: case cm_while: Executed by:
| 1618045 | ||||||||||||||||||||||||||||||||||||
100 | { | - | ||||||||||||||||||||||||||||||||||||
101 | register WHILE_COM *c; | - | ||||||||||||||||||||||||||||||||||||
102 | - | |||||||||||||||||||||||||||||||||||||
103 | c = command->value.While; | - | ||||||||||||||||||||||||||||||||||||
104 | dispose_command (c->test); | - | ||||||||||||||||||||||||||||||||||||
105 | dispose_command (c->action); | - | ||||||||||||||||||||||||||||||||||||
106 | sh_xfree((c), "dispose_cmd.c", 131); | - | ||||||||||||||||||||||||||||||||||||
107 | break; executed 1618067 times by 1 test: break; Executed by:
| 1618067 | ||||||||||||||||||||||||||||||||||||
108 | } | - | ||||||||||||||||||||||||||||||||||||
109 | - | |||||||||||||||||||||||||||||||||||||
110 | case executed 3383 times by 1 test: cm_if:case cm_if: Executed by:
executed 3383 times by 1 test: case cm_if: Executed by:
| 3383 | ||||||||||||||||||||||||||||||||||||
111 | { | - | ||||||||||||||||||||||||||||||||||||
112 | register IF_COM *c; | - | ||||||||||||||||||||||||||||||||||||
113 | - | |||||||||||||||||||||||||||||||||||||
114 | c = command->value.If; | - | ||||||||||||||||||||||||||||||||||||
115 | dispose_command (c->test); | - | ||||||||||||||||||||||||||||||||||||
116 | dispose_command (c->true_case); | - | ||||||||||||||||||||||||||||||||||||
117 | dispose_command (c->false_case); | - | ||||||||||||||||||||||||||||||||||||
118 | sh_xfree((c), "dispose_cmd.c", 143); | - | ||||||||||||||||||||||||||||||||||||
119 | break; executed 3383 times by 1 test: break; Executed by:
| 3383 | ||||||||||||||||||||||||||||||||||||
120 | } | - | ||||||||||||||||||||||||||||||||||||
121 | - | |||||||||||||||||||||||||||||||||||||
122 | case executed 55905077 times by 1 test: cm_simple:case cm_simple: Executed by:
executed 55905077 times by 1 test: case cm_simple: Executed by:
| 55905077 | ||||||||||||||||||||||||||||||||||||
123 | { | - | ||||||||||||||||||||||||||||||||||||
124 | register SIMPLE_COM *c; | - | ||||||||||||||||||||||||||||||||||||
125 | - | |||||||||||||||||||||||||||||||||||||
126 | c = command->value.Simple; | - | ||||||||||||||||||||||||||||||||||||
127 | dispose_words (c->words); | - | ||||||||||||||||||||||||||||||||||||
128 | dispose_redirects (c->redirects); | - | ||||||||||||||||||||||||||||||||||||
129 | sh_xfree((c), "dispose_cmd.c", 154); | - | ||||||||||||||||||||||||||||||||||||
130 | break; executed 55905077 times by 1 test: break; Executed by:
| 55905077 | ||||||||||||||||||||||||||||||||||||
131 | } | - | ||||||||||||||||||||||||||||||||||||
132 | - | |||||||||||||||||||||||||||||||||||||
133 | case executed 30837621 times by 1 test: cm_connection:case cm_connection: Executed by:
executed 30837621 times by 1 test: case cm_connection: Executed by:
| 30837621 | ||||||||||||||||||||||||||||||||||||
134 | { | - | ||||||||||||||||||||||||||||||||||||
135 | register CONNECTION *c; | - | ||||||||||||||||||||||||||||||||||||
136 | - | |||||||||||||||||||||||||||||||||||||
137 | c = command->value.Connection; | - | ||||||||||||||||||||||||||||||||||||
138 | dispose_command (c->first); | - | ||||||||||||||||||||||||||||||||||||
139 | dispose_command (c->second); | - | ||||||||||||||||||||||||||||||||||||
140 | sh_xfree((c), "dispose_cmd.c", 165); | - | ||||||||||||||||||||||||||||||||||||
141 | break; executed 30837621 times by 1 test: break; Executed by:
| 30837621 | ||||||||||||||||||||||||||||||||||||
142 | } | - | ||||||||||||||||||||||||||||||||||||
143 | - | |||||||||||||||||||||||||||||||||||||
144 | - | |||||||||||||||||||||||||||||||||||||
145 | case executed 16179229 times by 1 test: cm_arith:case cm_arith: Executed by:
executed 16179229 times by 1 test: case cm_arith: Executed by:
| 16179229 | ||||||||||||||||||||||||||||||||||||
146 | { | - | ||||||||||||||||||||||||||||||||||||
147 | register ARITH_COM *c; | - | ||||||||||||||||||||||||||||||||||||
148 | - | |||||||||||||||||||||||||||||||||||||
149 | c = command->value.Arith; | - | ||||||||||||||||||||||||||||||||||||
150 | dispose_words (c->exp); | - | ||||||||||||||||||||||||||||||||||||
151 | sh_xfree((c), "dispose_cmd.c", 176); | - | ||||||||||||||||||||||||||||||||||||
152 | break; executed 16179229 times by 1 test: break; Executed by:
| 16179229 | ||||||||||||||||||||||||||||||||||||
153 | } | - | ||||||||||||||||||||||||||||||||||||
154 | - | |||||||||||||||||||||||||||||||||||||
155 | - | |||||||||||||||||||||||||||||||||||||
156 | - | |||||||||||||||||||||||||||||||||||||
157 | case executed 610 times by 1 test: cm_cond:case cm_cond: Executed by:
executed 610 times by 1 test: case cm_cond: Executed by:
| 610 | ||||||||||||||||||||||||||||||||||||
158 | { | - | ||||||||||||||||||||||||||||||||||||
159 | register COND_COM *c; | - | ||||||||||||||||||||||||||||||||||||
160 | - | |||||||||||||||||||||||||||||||||||||
161 | c = command->value.Cond; | - | ||||||||||||||||||||||||||||||||||||
162 | dispose_cond_node (c); | - | ||||||||||||||||||||||||||||||||||||
163 | break; executed 610 times by 1 test: break; Executed by:
| 610 | ||||||||||||||||||||||||||||||||||||
164 | } | - | ||||||||||||||||||||||||||||||||||||
165 | - | |||||||||||||||||||||||||||||||||||||
166 | - | |||||||||||||||||||||||||||||||||||||
167 | case executed 11203 times by 1 test: cm_function_def:case cm_function_def: Executed by:
executed 11203 times by 1 test: case cm_function_def: Executed by:
| 11203 | ||||||||||||||||||||||||||||||||||||
168 | { | - | ||||||||||||||||||||||||||||||||||||
169 | register FUNCTION_DEF *c; | - | ||||||||||||||||||||||||||||||||||||
170 | - | |||||||||||||||||||||||||||||||||||||
171 | c = command->value.Function_def; | - | ||||||||||||||||||||||||||||||||||||
172 | dispose_function_def (c); | - | ||||||||||||||||||||||||||||||||||||
173 | break; executed 11203 times by 1 test: break; Executed by:
| 11203 | ||||||||||||||||||||||||||||||||||||
174 | } | - | ||||||||||||||||||||||||||||||||||||
175 | - | |||||||||||||||||||||||||||||||||||||
176 | default never executed: :default: never executed: default: | 0 | ||||||||||||||||||||||||||||||||||||
177 | command_error ("dispose_command", 1, command->type, 0); | - | ||||||||||||||||||||||||||||||||||||
178 | break; never executed: break; | 0 | ||||||||||||||||||||||||||||||||||||
179 | } | - | ||||||||||||||||||||||||||||||||||||
180 | sh_xfree((command), "dispose_cmd.c", 205); | - | ||||||||||||||||||||||||||||||||||||
181 | } executed 140150651 times by 1 test: end of block Executed by:
| 140150651 | ||||||||||||||||||||||||||||||||||||
182 | - | |||||||||||||||||||||||||||||||||||||
183 | - | |||||||||||||||||||||||||||||||||||||
184 | - | |||||||||||||||||||||||||||||||||||||
185 | void | - | ||||||||||||||||||||||||||||||||||||
186 | dispose_cond_node (cond) | - | ||||||||||||||||||||||||||||||||||||
187 | COND_COM *cond; | - | ||||||||||||||||||||||||||||||||||||
188 | { | - | ||||||||||||||||||||||||||||||||||||
189 | if (cond
| 0-2041 | ||||||||||||||||||||||||||||||||||||
190 | { | - | ||||||||||||||||||||||||||||||||||||
191 | if (cond->left
| 831-1210 | ||||||||||||||||||||||||||||||||||||
192 | dispose_cond_node (cond->left); executed 831 times by 1 test: dispose_cond_node (cond->left); Executed by:
| 831 | ||||||||||||||||||||||||||||||||||||
193 | if (cond->right
| 600-1441 | ||||||||||||||||||||||||||||||||||||
194 | dispose_cond_node (cond->right); executed 600 times by 1 test: dispose_cond_node (cond->right); Executed by:
| 600 | ||||||||||||||||||||||||||||||||||||
195 | if (cond->op
| 115-1926 | ||||||||||||||||||||||||||||||||||||
196 | dispose_word (cond->op); executed 1926 times by 1 test: dispose_word (cond->op); Executed by:
| 1926 | ||||||||||||||||||||||||||||||||||||
197 | sh_xfree((cond), "dispose_cmd.c", 222); | - | ||||||||||||||||||||||||||||||||||||
198 | } executed 2041 times by 1 test: end of block Executed by:
| 2041 | ||||||||||||||||||||||||||||||||||||
199 | } executed 2041 times by 1 test: end of block Executed by:
| 2041 | ||||||||||||||||||||||||||||||||||||
200 | - | |||||||||||||||||||||||||||||||||||||
201 | - | |||||||||||||||||||||||||||||||||||||
202 | void | - | ||||||||||||||||||||||||||||||||||||
203 | dispose_function_def_contents (c) | - | ||||||||||||||||||||||||||||||||||||
204 | FUNCTION_DEF *c; | - | ||||||||||||||||||||||||||||||||||||
205 | { | - | ||||||||||||||||||||||||||||||||||||
206 | dispose_word (c->name); | - | ||||||||||||||||||||||||||||||||||||
207 | dispose_command (c->command); | - | ||||||||||||||||||||||||||||||||||||
208 | do { if (c->source_file
executed 22357 times by 1 test: } while (0);sh_xfree((c->source_file), "dispose_cmd.c", 233); Executed by:
| 0-22357 | ||||||||||||||||||||||||||||||||||||
209 | } executed 22357 times by 1 test: end of block Executed by:
| 22357 | ||||||||||||||||||||||||||||||||||||
210 | - | |||||||||||||||||||||||||||||||||||||
211 | void | - | ||||||||||||||||||||||||||||||||||||
212 | dispose_function_def (c) | - | ||||||||||||||||||||||||||||||||||||
213 | FUNCTION_DEF *c; | - | ||||||||||||||||||||||||||||||||||||
214 | { | - | ||||||||||||||||||||||||||||||||||||
215 | dispose_function_def_contents (c); | - | ||||||||||||||||||||||||||||||||||||
216 | sh_xfree((c), "dispose_cmd.c", 241); | - | ||||||||||||||||||||||||||||||||||||
217 | } executed 11203 times by 1 test: end of block Executed by:
| 11203 | ||||||||||||||||||||||||||||||||||||
218 | - | |||||||||||||||||||||||||||||||||||||
219 | - | |||||||||||||||||||||||||||||||||||||
220 | void | - | ||||||||||||||||||||||||||||||||||||
221 | dispose_word (w) | - | ||||||||||||||||||||||||||||||||||||
222 | WORD_DESC *w; | - | ||||||||||||||||||||||||||||||||||||
223 | { | - | ||||||||||||||||||||||||||||||||||||
224 | do { if (w->word
executed 558863560 times by 1 test: } while (0);sh_xfree((w->word), "dispose_cmd.c", 249); Executed by:
| 292-558863560 | ||||||||||||||||||||||||||||||||||||
225 | do { if ((
never executed: else { mcn = (mctmp-1)/8; mctmp &= 7; }mcn = 0; executed 521682494 times by 1 test: switch (mctmp) { caseend of block Executed by:
executed 521682494 times by 1 test: 0:case 0: Executed by:
executed 521682494 times by 1 test: for(;;) { *mzp++ = 0xdf; casecase 0: Executed by:
never executed: case 7: code before this statement executed 1043364988 times by 1 test: case 7: Executed by:
never executed: 7:case 7: code before this statement executed 1043364988 times by 1 test: case 7: Executed by:
never executed: *mzp++ = 0xdf; casecase 7: never executed: case 6: code before this statement executed 1043364988 times by 1 test: case 6: Executed by:
never executed: 6:case 6: code before this statement executed 1043364988 times by 1 test: case 6: Executed by:
never executed: *mzp++ = 0xdf; casecase 6: never executed: case 5: code before this statement executed 1043364988 times by 1 test: case 5: Executed by:
never executed: 5:case 5: code before this statement executed 1043364988 times by 1 test: case 5: Executed by:
never executed: *mzp++ = 0xdf; casecase 5: never executed: case 4: code before this statement executed 1043364988 times by 1 test: case 4: Executed by:
never executed: 4:case 4: code before this statement executed 1043364988 times by 1 test: case 4: Executed by:
never executed: *mzp++ = 0xdf; casecase 4: never executed: case 3: code before this statement executed 1043364988 times by 1 test: case 3: Executed by:
never executed: 3:case 3: code before this statement executed 1043364988 times by 1 test: case 3: Executed by:
never executed: *mzp++ = 0xdf; casecase 3: never executed: case 2: code before this statement executed 1043364988 times by 1 test: case 2: Executed by:
never executed: 2:case 2: code before this statement executed 1043364988 times by 1 test: case 2: Executed by:
never executed: *mzp++ = 0xdf; casecase 2: never executed: case 1: code before this statement executed 1043364988 times by 1 test: case 1: Executed by:
never executed: 1:case 1: code before this statement executed 1043364988 times by 1 test: case 1: Executed by:
never executed: *mzp++ = 0xdf; if(mcn <= 0case 1:
executed 521682494 times by 1 test: mcn--; }break; Executed by:
executed 521682494 times by 1 test: }end of block Executed by:
executed 521682494 times by 1 test: }end of block Executed by:
executed 521682494 times by 1 test: else memset (((w)), (0xdf), (sizeof(WORD_DESC)));end of block Executed by:
never executed: } while(0); ((WORD_DESC **)((wdcache).data))[(wdcache).nc++] = (w); }memset (((w)), (0xdf), (sizeof(WORD_DESC))); executed 521682494 times by 1 test: else sh_xfree((w), "dispose_cmd.c", 250);end of block Executed by:
executed 37181358 times by 1 test: } while (0);sh_xfree((w), "dispose_cmd.c", 250); Executed by:
| 0-1043364988 | ||||||||||||||||||||||||||||||||||||
226 | } executed 558863852 times by 1 test: end of block Executed by:
| 558863852 | ||||||||||||||||||||||||||||||||||||
227 | - | |||||||||||||||||||||||||||||||||||||
228 | - | |||||||||||||||||||||||||||||||||||||
229 | void | - | ||||||||||||||||||||||||||||||||||||
230 | dispose_word_desc (w) | - | ||||||||||||||||||||||||||||||||||||
231 | WORD_DESC *w; | - | ||||||||||||||||||||||||||||||||||||
232 | { | - | ||||||||||||||||||||||||||||||||||||
233 | w->word = 0; | - | ||||||||||||||||||||||||||||||||||||
234 | do { if ((
never executed: else { mcn = (mctmp-1)/8; mctmp &= 7; }mcn = 0; executed 115524570 times by 1 test: switch (mctmp) { caseend of block Executed by:
executed 115524570 times by 1 test: 0:case 0: Executed by:
executed 115524570 times by 1 test: for(;;) { *mzp++ = 0xdf; casecase 0: Executed by:
never executed: case 7: code before this statement executed 231049140 times by 1 test: case 7: Executed by:
never executed: 7:case 7: code before this statement executed 231049140 times by 1 test: case 7: Executed by:
never executed: *mzp++ = 0xdf; casecase 7: never executed: case 6: code before this statement executed 231049140 times by 1 test: case 6: Executed by:
never executed: 6:case 6: code before this statement executed 231049140 times by 1 test: case 6: Executed by:
never executed: *mzp++ = 0xdf; casecase 6: never executed: case 5: code before this statement executed 231049140 times by 1 test: case 5: Executed by:
never executed: 5:case 5: code before this statement executed 231049140 times by 1 test: case 5: Executed by:
never executed: *mzp++ = 0xdf; casecase 5: never executed: case 4: code before this statement executed 231049140 times by 1 test: case 4: Executed by:
never executed: 4:case 4: code before this statement executed 231049140 times by 1 test: case 4: Executed by:
never executed: *mzp++ = 0xdf; casecase 4: never executed: case 3: code before this statement executed 231049140 times by 1 test: case 3: Executed by:
never executed: 3:case 3: code before this statement executed 231049140 times by 1 test: case 3: Executed by:
never executed: *mzp++ = 0xdf; casecase 3: never executed: case 2: code before this statement executed 231049140 times by 1 test: case 2: Executed by:
never executed: 2:case 2: code before this statement executed 231049140 times by 1 test: case 2: Executed by:
never executed: *mzp++ = 0xdf; casecase 2: never executed: case 1: code before this statement executed 231049140 times by 1 test: case 1: Executed by:
never executed: 1:case 1: code before this statement executed 231049140 times by 1 test: case 1: Executed by:
never executed: *mzp++ = 0xdf; if(mcn <= 0case 1:
executed 115524570 times by 1 test: mcn--; }break; Executed by:
executed 115524570 times by 1 test: }end of block Executed by:
executed 115524570 times by 1 test: }end of block Executed by:
executed 115524570 times by 1 test: else memset (((w)), (0xdf), (sizeof(WORD_DESC)));end of block Executed by:
never executed: } while(0); ((WORD_DESC **)((wdcache).data))[(wdcache).nc++] = (w); }memset (((w)), (0xdf), (sizeof(WORD_DESC))); executed 115524570 times by 1 test: else sh_xfree((w), "dispose_cmd.c", 259);end of block Executed by:
executed 1112 times by 1 test: } while (0);sh_xfree((w), "dispose_cmd.c", 259); Executed by:
| 0-231049140 | ||||||||||||||||||||||||||||||||||||
235 | } executed 115525682 times by 1 test: end of block Executed by:
| 115525682 | ||||||||||||||||||||||||||||||||||||
236 | - | |||||||||||||||||||||||||||||||||||||
237 | - | |||||||||||||||||||||||||||||||||||||
238 | void | - | ||||||||||||||||||||||||||||||||||||
239 | dispose_words (list) | - | ||||||||||||||||||||||||||||||||||||
240 | WORD_LIST *list; | - | ||||||||||||||||||||||||||||||||||||
241 | { | - | ||||||||||||||||||||||||||||||||||||
242 | WORD_LIST *t; | - | ||||||||||||||||||||||||||||||||||||
243 | - | |||||||||||||||||||||||||||||||||||||
244 | while (list
| 443858634-498401600 | ||||||||||||||||||||||||||||||||||||
245 | { | - | ||||||||||||||||||||||||||||||||||||
246 | t = list; | - | ||||||||||||||||||||||||||||||||||||
247 | list = list->next; | - | ||||||||||||||||||||||||||||||||||||
248 | dispose_word (t->word); | - | ||||||||||||||||||||||||||||||||||||
249 | - | |||||||||||||||||||||||||||||||||||||
250 | - | |||||||||||||||||||||||||||||||||||||
251 | - | |||||||||||||||||||||||||||||||||||||
252 | do { if ((
never executed: else { mcn = (mctmp-1)/8; mctmp &= 7; }mcn = 0; executed 495038916 times by 1 test: switch (mctmp) { caseend of block Executed by:
executed 495038916 times by 1 test: 0:case 0: Executed by:
executed 495038916 times by 1 test: for(;;) { *mzp++ = 0xdf; casecase 0: Executed by:
never executed: case 7: code before this statement executed 990077832 times by 1 test: case 7: Executed by:
never executed: 7:case 7: code before this statement executed 990077832 times by 1 test: case 7: Executed by:
never executed: *mzp++ = 0xdf; casecase 7: never executed: case 6: code before this statement executed 990077832 times by 1 test: case 6: Executed by:
never executed: 6:case 6: code before this statement executed 990077832 times by 1 test: case 6: Executed by:
never executed: *mzp++ = 0xdf; casecase 6: never executed: case 5: code before this statement executed 990077832 times by 1 test: case 5: Executed by:
never executed: 5:case 5: code before this statement executed 990077832 times by 1 test: case 5: Executed by:
never executed: *mzp++ = 0xdf; casecase 5: never executed: case 4: code before this statement executed 990077832 times by 1 test: case 4: Executed by:
never executed: 4:case 4: code before this statement executed 990077832 times by 1 test: case 4: Executed by:
never executed: *mzp++ = 0xdf; casecase 4: never executed: case 3: code before this statement executed 990077832 times by 1 test: case 3: Executed by:
never executed: 3:case 3: code before this statement executed 990077832 times by 1 test: case 3: Executed by:
never executed: *mzp++ = 0xdf; casecase 3: never executed: case 2: code before this statement executed 990077832 times by 1 test: case 2: Executed by:
never executed: 2:case 2: code before this statement executed 990077832 times by 1 test: case 2: Executed by:
never executed: *mzp++ = 0xdf; casecase 2: never executed: case 1: code before this statement executed 990077832 times by 1 test: case 1: Executed by:
never executed: 1:case 1: code before this statement executed 990077832 times by 1 test: case 1: Executed by:
never executed: *mzp++ = 0xdf; if(mcn <= 0case 1:
executed 495038916 times by 1 test: mcn--; }break; Executed by:
executed 495038916 times by 1 test: }end of block Executed by:
executed 495038916 times by 1 test: }end of block Executed by:
executed 495038916 times by 1 test: else memset (((t)), (0xdf), (sizeof(WORD_LIST)));end of block Executed by:
never executed: } while(0); ((WORD_LIST **)((wlcache).data))[(wlcache).nc++] = (t); }memset (((t)), (0xdf), (sizeof(WORD_LIST))); executed 495038916 times by 1 test: else sh_xfree((t), "dispose_cmd.c", 277);end of block Executed by:
executed 3362684 times by 1 test: } while (0);sh_xfree((t), "dispose_cmd.c", 277); Executed by:
| 0-990077832 | ||||||||||||||||||||||||||||||||||||
253 | - | |||||||||||||||||||||||||||||||||||||
254 | } executed 498401600 times by 1 test: end of block Executed by:
| 498401600 | ||||||||||||||||||||||||||||||||||||
255 | } executed 443858634 times by 1 test: end of block Executed by:
| 443858634 | ||||||||||||||||||||||||||||||||||||
256 | void | - | ||||||||||||||||||||||||||||||||||||
257 | dispose_redirects (list) | - | ||||||||||||||||||||||||||||||||||||
258 | REDIRECT *list; | - | ||||||||||||||||||||||||||||||||||||
259 | { | - | ||||||||||||||||||||||||||||||||||||
260 | register REDIRECT *t; | - | ||||||||||||||||||||||||||||||||||||
261 | - | |||||||||||||||||||||||||||||||||||||
262 | while (list
| 1504083-87256034 | ||||||||||||||||||||||||||||||||||||
263 | { | - | ||||||||||||||||||||||||||||||||||||
264 | t = list; | - | ||||||||||||||||||||||||||||||||||||
265 | list = list->next; | - | ||||||||||||||||||||||||||||||||||||
266 | - | |||||||||||||||||||||||||||||||||||||
267 | if (t->rflags & 0x01
| 76-1504007 | ||||||||||||||||||||||||||||||||||||
268 | dispose_word (t->redirector.filename); executed 76 times by 1 test: dispose_word (t->redirector.filename); Executed by:
| 76 | ||||||||||||||||||||||||||||||||||||
269 | - | |||||||||||||||||||||||||||||||||||||
270 | switch (t->instruction) | - | ||||||||||||||||||||||||||||||||||||
271 | { | - | ||||||||||||||||||||||||||||||||||||
272 | case executed 3062 times by 1 test: r_reading_until:case r_reading_until: Executed by:
executed 3062 times by 1 test: case r_reading_until: Executed by:
| 3062 | ||||||||||||||||||||||||||||||||||||
273 | case executed 50 times by 1 test: r_deblank_reading_until:case r_deblank_reading_until: Executed by:
executed 50 times by 1 test: case r_deblank_reading_until: Executed by:
| 50 | ||||||||||||||||||||||||||||||||||||
274 | sh_xfree((t->here_doc_eof), "dispose_cmd.c", 320); | - | ||||||||||||||||||||||||||||||||||||
275 | - | |||||||||||||||||||||||||||||||||||||
276 | case executed 88 times by 1 test: r_reading_string:case r_reading_string: Executed by:
executed 88 times by 1 test: case r_reading_string: Executed by:
code before this statement executed 3112 times by 1 test: case r_reading_string: Executed by:
| 88-3112 | ||||||||||||||||||||||||||||||||||||
277 | case executed 27153 times by 1 test: r_output_direction:case r_output_direction: Executed by:
executed 27153 times by 1 test: case r_output_direction: Executed by:
| 27153 | ||||||||||||||||||||||||||||||||||||
278 | case executed 2948 times by 1 test: r_input_direction:case r_input_direction: Executed by:
executed 2948 times by 1 test: case r_input_direction: Executed by:
| 2948 | ||||||||||||||||||||||||||||||||||||
279 | case never executed: r_inputa_direction:case r_inputa_direction: never executed: case r_inputa_direction: | 0 | ||||||||||||||||||||||||||||||||||||
280 | case executed 41 times by 1 test: r_appending_to:case r_appending_to: Executed by:
executed 41 times by 1 test: case r_appending_to: Executed by:
| 41 | ||||||||||||||||||||||||||||||||||||
281 | case executed 33 times by 1 test: r_err_and_out:case r_err_and_out: Executed by:
executed 33 times by 1 test: case r_err_and_out: Executed by:
| 33 | ||||||||||||||||||||||||||||||||||||
282 | case executed 6 times by 1 test: r_append_err_and_out:case r_append_err_and_out: Executed by:
executed 6 times by 1 test: case r_append_err_and_out: Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||
283 | case executed 18 times by 1 test: r_input_output:case r_input_output: Executed by:
executed 18 times by 1 test: case r_input_output: Executed by:
| 18 | ||||||||||||||||||||||||||||||||||||
284 | case executed 19 times by 1 test: r_output_force:case r_output_force: Executed by:
executed 19 times by 1 test: case r_output_force: Executed by:
| 19 | ||||||||||||||||||||||||||||||||||||
285 | case executed 17 times by 1 test: r_duplicating_input_word:case r_duplicating_input_word: Executed by:
executed 17 times by 1 test: case r_duplicating_input_word: Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||
286 | case executed 112 times by 1 test: r_duplicating_output_word:case r_duplicating_output_word: Executed by:
executed 112 times by 1 test: case r_duplicating_output_word: Executed by:
| 112 | ||||||||||||||||||||||||||||||||||||
287 | case executed 7 times by 1 test: r_move_input_word:case r_move_input_word: Executed by:
executed 7 times by 1 test: case r_move_input_word: Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||
288 | case executed 7 times by 1 test: r_move_output_word:case r_move_output_word: Executed by:
executed 7 times by 1 test: case r_move_output_word: Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||
289 | dispose_word (t->redirectee.filename); | - | ||||||||||||||||||||||||||||||||||||
290 | - | |||||||||||||||||||||||||||||||||||||
291 | default executed 1504083 times by 1 test: :default: Executed by:
executed 1504083 times by 1 test: default: Executed by:
code before this statement executed 33561 times by 1 test: default: Executed by:
| 33561-1504083 | ||||||||||||||||||||||||||||||||||||
292 | break; executed 1504083 times by 1 test: break; Executed by:
| 1504083 | ||||||||||||||||||||||||||||||||||||
293 | } | - | ||||||||||||||||||||||||||||||||||||
294 | sh_xfree((t), "dispose_cmd.c", 340); | - | ||||||||||||||||||||||||||||||||||||
295 | } executed 1504083 times by 1 test: end of block Executed by:
| 1504083 | ||||||||||||||||||||||||||||||||||||
296 | } executed 87256034 times by 1 test: end of block Executed by:
| 87256034 | ||||||||||||||||||||||||||||||||||||
Switch to Source code | Preprocessed file |