OpenCoverage

dispose_cmd.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/bash/src/dispose_cmd.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7extern sh_obj_cache_t wdcache, wlcache;-
8-
9-
10void-
11dispose_command (command)-
12 COMMAND *command;-
13{-
14 if (command == 0
command == 0Description
TRUEevaluated 9705414 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 140150651 times by 1 test
Evaluated by:
  • Self test
)
9705414-140150651
15 return;
executed 9705414 times by 1 test: return;
Executed by:
  • Self test
9705414
16-
17 if (command->redirects
command->redirectsDescription
TRUEevaluated 3102 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 140147549 times by 1 test
Evaluated by:
  • Self test
)
3102-140147549
18 dispose_redirects (command->redirects);
executed 3102 times by 1 test: dispose_redirects (command->redirects);
Executed by:
  • Self test
3102
19-
20 switch (command->type)-
21 {-
22 case
executed 1616277 times by 1 test: case cm_for:
Executed by:
  • Self test
cm_for:
executed 1616277 times by 1 test: case cm_for:
Executed by:
  • Self test
1616277
23-
24 case
executed 9 times by 1 test: case cm_select:
Executed by:
  • Self test
cm_select:
executed 9 times by 1 test: case cm_select:
Executed by:
  • Self test
9
25-
26 {-
27 register FOR_COM *c;-
28-
29 if (command->type == cm_select
command->type == cm_selectDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1616277 times by 1 test
Evaluated by:
  • Self test
)
9-1616277
30 c = (FOR_COM *)command->value.Select;
executed 9 times by 1 test: c = (FOR_COM *)command->value.Select;
Executed by:
  • Self test
9
31 else-
32-
33 c = command->value.For;
executed 1616277 times by 1 test: c = command->value.For;
Executed by:
  • Self test
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:
  • Self test
1616286
39 }-
40-
41-
42 case
executed 4552 times by 1 test: case cm_arith_for:
Executed by:
  • Self test
cm_arith_for:
executed 4552 times by 1 test: case cm_arith_for:
Executed by:
  • Self test
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:
  • Self test
4552
53 }-
54-
55-
56 case
executed 1655514 times by 1 test: case cm_group:
Executed by:
  • Self test
cm_group:
executed 1655514 times by 1 test: case cm_group:
Executed by:
  • Self test
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:
  • Self test
1655514
61 }-
62-
63 case
executed 6458 times by 1 test: case cm_subshell:
Executed by:
  • Self test
cm_subshell:
executed 6458 times by 1 test: case cm_subshell:
Executed by:
  • Self test
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:
  • Self test
6458
68 }-
69-
70 case
executed 36 times by 1 test: case cm_coproc:
Executed by:
  • Self test
cm_coproc:
executed 36 times by 1 test: case cm_coproc:
Executed by:
  • Self test
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:
  • Self test
36
76 }-
77-
78 case
executed 32312615 times by 1 test: case cm_case:
Executed by:
  • Self test
cm_case:
executed 32312615 times by 1 test: case cm_case:
Executed by:
  • Self test
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
pDescription
TRUEevaluated 79167555 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 32312615 times by 1 test
Evaluated by:
  • Self test
; )
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:
  • Self test
79167555
94 sh_xfree((c), "dispose_cmd.c", 119);-
95 break;
executed 32312615 times by 1 test: break;
Executed by:
  • Self test
32312615
96 }-
97-
98 case
executed 22 times by 1 test: case cm_until:
Executed by:
  • Self test
cm_until:
executed 22 times by 1 test: case cm_until:
Executed by:
  • Self test
22
99 case
executed 1618045 times by 1 test: case cm_while:
Executed by:
  • Self test
cm_while:
executed 1618045 times by 1 test: case cm_while:
Executed by:
  • Self test
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:
  • Self test
1618067
108 }-
109-
110 case
executed 3383 times by 1 test: case cm_if:
Executed by:
  • Self test
cm_if:
executed 3383 times by 1 test: case cm_if:
Executed by:
  • Self test
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:
  • Self test
3383
120 }-
121-
122 case
executed 55905077 times by 1 test: case cm_simple:
Executed by:
  • Self test
cm_simple:
executed 55905077 times by 1 test: case cm_simple:
Executed by:
  • Self test
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:
  • Self test
55905077
131 }-
132-
133 case
executed 30837621 times by 1 test: case cm_connection:
Executed by:
  • Self test
cm_connection:
executed 30837621 times by 1 test: case cm_connection:
Executed by:
  • Self test
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:
  • Self test
30837621
142 }-
143-
144-
145 case
executed 16179229 times by 1 test: case cm_arith:
Executed by:
  • Self test
cm_arith:
executed 16179229 times by 1 test: case cm_arith:
Executed by:
  • Self test
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:
  • Self test
16179229
153 }-
154-
155-
156-
157 case
executed 610 times by 1 test: case cm_cond:
Executed by:
  • Self test
cm_cond:
executed 610 times by 1 test: case cm_cond:
Executed by:
  • Self test
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:
  • Self test
610
164 }-
165-
166-
167 case
executed 11203 times by 1 test: case cm_function_def:
Executed by:
  • Self test
cm_function_def:
executed 11203 times by 1 test: case cm_function_def:
Executed by:
  • Self test
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:
  • Self test
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:
  • Self test
140150651
182-
183-
184-
185void-
186dispose_cond_node (cond)-
187 COND_COM *cond;-
188{-
189 if (cond
condDescription
TRUEevaluated 2041 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
)
0-2041
190 {-
191 if (cond->left
cond->leftDescription
TRUEevaluated 831 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1210 times by 1 test
Evaluated by:
  • Self test
)
831-1210
192 dispose_cond_node (cond->left);
executed 831 times by 1 test: dispose_cond_node (cond->left);
Executed by:
  • Self test
831
193 if (cond->right
cond->rightDescription
TRUEevaluated 600 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1441 times by 1 test
Evaluated by:
  • Self test
)
600-1441
194 dispose_cond_node (cond->right);
executed 600 times by 1 test: dispose_cond_node (cond->right);
Executed by:
  • Self test
600
195 if (cond->op
cond->opDescription
TRUEevaluated 1926 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 115 times by 1 test
Evaluated by:
  • Self test
)
115-1926
196 dispose_word (cond->op);
executed 1926 times by 1 test: dispose_word (cond->op);
Executed by:
  • Self test
1926
197 sh_xfree((cond), "dispose_cmd.c", 222);-
198 }
executed 2041 times by 1 test: end of block
Executed by:
  • Self test
2041
199}
executed 2041 times by 1 test: end of block
Executed by:
  • Self test
2041
200-
201-
202void-
203dispose_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
c->source_fileDescription
TRUEevaluated 22357 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
) sh_xfree((c->source_file), "dispose_cmd.c", 233);
executed 22357 times by 1 test: sh_xfree((c->source_file), "dispose_cmd.c", 233);
Executed by:
  • Self test
} while (0);
0-22357
209}
executed 22357 times by 1 test: end of block
Executed by:
  • Self test
22357
210-
211void-
212dispose_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:
  • Self test
11203
218-
219-
220void-
221dispose_word (w)-
222 WORD_DESC *w;-
223{-
224 do { if (w->word
w->wordDescription
TRUEevaluated 558863560 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 292 times by 1 test
Evaluated by:
  • Self test
) sh_xfree((w->word), "dispose_cmd.c", 249);
executed 558863560 times by 1 test: sh_xfree((w->word), "dispose_cmd.c", 249);
Executed by:
  • Self test
} while (0);
292-558863560
225 do { if ((
(wdcache).nc < (wdcache).csDescription
TRUEevaluated 521682494 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 37181358 times by 1 test
Evaluated by:
  • Self test
wdcache).nc < (wdcache).cs
(wdcache).nc < (wdcache).csDescription
TRUEevaluated 521682494 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 37181358 times by 1 test
Evaluated by:
  • Self test
) { do { if ((
(sizeof(WORD_DESC)) <= 32Description
TRUEevaluated 521682494 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
sizeof(WORD_DESC)) <= 32
(sizeof(WORD_DESC)) <= 32Description
TRUEevaluated 521682494 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
) { register char * mzp = (char *)((w)); unsigned long mctmp = (sizeof(WORD_DESC)); register long mcn; if (mctmp < 8
mctmp < 8Description
TRUEnever evaluated
FALSEevaluated 521682494 times by 1 test
Evaluated by:
  • Self test
) mcn = 0;
never executed: mcn = 0;
else { mcn = (mctmp-1)/8; mctmp &= 7; }
executed 521682494 times by 1 test: end of block
Executed by:
  • Self test
switch (mctmp) { case
executed 521682494 times by 1 test: case 0:
Executed by:
  • Self test
0:
executed 521682494 times by 1 test: case 0:
Executed by:
  • Self test
for(;;) { *mzp++ = 0xdf; case
never executed: case 7:
code before this statement executed 1043364988 times by 1 test: case 7:
Executed by:
  • Self test
never executed: case 7:
7:
code before this statement executed 1043364988 times by 1 test: case 7:
Executed by:
  • Self test
never executed: case 7:
*mzp++ = 0xdf; case
never executed: case 6:
code before this statement executed 1043364988 times by 1 test: case 6:
Executed by:
  • Self test
never executed: case 6:
6:
code before this statement executed 1043364988 times by 1 test: case 6:
Executed by:
  • Self test
never executed: case 6:
*mzp++ = 0xdf; case
never executed: case 5:
code before this statement executed 1043364988 times by 1 test: case 5:
Executed by:
  • Self test
never executed: case 5:
5:
code before this statement executed 1043364988 times by 1 test: case 5:
Executed by:
  • Self test
never executed: case 5:
*mzp++ = 0xdf; case
never executed: case 4:
code before this statement executed 1043364988 times by 1 test: case 4:
Executed by:
  • Self test
never executed: case 4:
4:
code before this statement executed 1043364988 times by 1 test: case 4:
Executed by:
  • Self test
never executed: case 4:
*mzp++ = 0xdf; case
never executed: case 3:
code before this statement executed 1043364988 times by 1 test: case 3:
Executed by:
  • Self test
never executed: case 3:
3:
code before this statement executed 1043364988 times by 1 test: case 3:
Executed by:
  • Self test
never executed: case 3:
*mzp++ = 0xdf; case
never executed: case 2:
code before this statement executed 1043364988 times by 1 test: case 2:
Executed by:
  • Self test
never executed: case 2:
2:
code before this statement executed 1043364988 times by 1 test: case 2:
Executed by:
  • Self test
never executed: case 2:
*mzp++ = 0xdf; case
never executed: case 1:
code before this statement executed 1043364988 times by 1 test: case 1:
Executed by:
  • Self test
never executed: case 1:
1:
code before this statement executed 1043364988 times by 1 test: case 1:
Executed by:
  • Self test
never executed: case 1:
*mzp++ = 0xdf; if(mcn <= 0
mcn <= 0Description
TRUEevaluated 521682494 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 521682494 times by 1 test
Evaluated by:
  • Self test
) break;
executed 521682494 times by 1 test: break;
Executed by:
  • Self test
mcn--; }
executed 521682494 times by 1 test: end of block
Executed by:
  • Self test
}
executed 521682494 times by 1 test: end of block
Executed by:
  • Self test
}
executed 521682494 times by 1 test: end of block
Executed by:
  • Self test
else memset (((w)), (0xdf), (sizeof(WORD_DESC)));
never executed: memset (((w)), (0xdf), (sizeof(WORD_DESC)));
} while(0); ((WORD_DESC **)((wdcache).data))[(wdcache).nc++] = (w); }
executed 521682494 times by 1 test: end of block
Executed by:
  • Self test
else sh_xfree((w), "dispose_cmd.c", 250);
executed 37181358 times by 1 test: sh_xfree((w), "dispose_cmd.c", 250);
Executed by:
  • Self test
} while (0);
0-1043364988
226}
executed 558863852 times by 1 test: end of block
Executed by:
  • Self test
558863852
227-
228-
229void-
230dispose_word_desc (w)-
231 WORD_DESC *w;-
232{-
233 w->word = 0;-
234 do { if ((
(wdcache).nc < (wdcache).csDescription
TRUEevaluated 115524570 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1112 times by 1 test
Evaluated by:
  • Self test
wdcache).nc < (wdcache).cs
(wdcache).nc < (wdcache).csDescription
TRUEevaluated 115524570 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1112 times by 1 test
Evaluated by:
  • Self test
) { do { if ((
(sizeof(WORD_DESC)) <= 32Description
TRUEevaluated 115524570 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
sizeof(WORD_DESC)) <= 32
(sizeof(WORD_DESC)) <= 32Description
TRUEevaluated 115524570 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
) { register char * mzp = (char *)((w)); unsigned long mctmp = (sizeof(WORD_DESC)); register long mcn; if (mctmp < 8
mctmp < 8Description
TRUEnever evaluated
FALSEevaluated 115524570 times by 1 test
Evaluated by:
  • Self test
) mcn = 0;
never executed: mcn = 0;
else { mcn = (mctmp-1)/8; mctmp &= 7; }
executed 115524570 times by 1 test: end of block
Executed by:
  • Self test
switch (mctmp) { case
executed 115524570 times by 1 test: case 0:
Executed by:
  • Self test
0:
executed 115524570 times by 1 test: case 0:
Executed by:
  • Self test
for(;;) { *mzp++ = 0xdf; case
never executed: case 7:
code before this statement executed 231049140 times by 1 test: case 7:
Executed by:
  • Self test
never executed: case 7:
7:
code before this statement executed 231049140 times by 1 test: case 7:
Executed by:
  • Self test
never executed: case 7:
*mzp++ = 0xdf; case
never executed: case 6:
code before this statement executed 231049140 times by 1 test: case 6:
Executed by:
  • Self test
never executed: case 6:
6:
code before this statement executed 231049140 times by 1 test: case 6:
Executed by:
  • Self test
never executed: case 6:
*mzp++ = 0xdf; case
never executed: case 5:
code before this statement executed 231049140 times by 1 test: case 5:
Executed by:
  • Self test
never executed: case 5:
5:
code before this statement executed 231049140 times by 1 test: case 5:
Executed by:
  • Self test
never executed: case 5:
*mzp++ = 0xdf; case
never executed: case 4:
code before this statement executed 231049140 times by 1 test: case 4:
Executed by:
  • Self test
never executed: case 4:
4:
code before this statement executed 231049140 times by 1 test: case 4:
Executed by:
  • Self test
never executed: case 4:
*mzp++ = 0xdf; case
never executed: case 3:
code before this statement executed 231049140 times by 1 test: case 3:
Executed by:
  • Self test
never executed: case 3:
3:
code before this statement executed 231049140 times by 1 test: case 3:
Executed by:
  • Self test
never executed: case 3:
*mzp++ = 0xdf; case
never executed: case 2:
code before this statement executed 231049140 times by 1 test: case 2:
Executed by:
  • Self test
never executed: case 2:
2:
code before this statement executed 231049140 times by 1 test: case 2:
Executed by:
  • Self test
never executed: case 2:
*mzp++ = 0xdf; case
never executed: case 1:
code before this statement executed 231049140 times by 1 test: case 1:
Executed by:
  • Self test
never executed: case 1:
1:
code before this statement executed 231049140 times by 1 test: case 1:
Executed by:
  • Self test
never executed: case 1:
*mzp++ = 0xdf; if(mcn <= 0
mcn <= 0Description
TRUEevaluated 115524570 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 115524570 times by 1 test
Evaluated by:
  • Self test
) break;
executed 115524570 times by 1 test: break;
Executed by:
  • Self test
mcn--; }
executed 115524570 times by 1 test: end of block
Executed by:
  • Self test
}
executed 115524570 times by 1 test: end of block
Executed by:
  • Self test
}
executed 115524570 times by 1 test: end of block
Executed by:
  • Self test
else memset (((w)), (0xdf), (sizeof(WORD_DESC)));
never executed: memset (((w)), (0xdf), (sizeof(WORD_DESC)));
} while(0); ((WORD_DESC **)((wdcache).data))[(wdcache).nc++] = (w); }
executed 115524570 times by 1 test: end of block
Executed by:
  • Self test
else sh_xfree((w), "dispose_cmd.c", 259);
executed 1112 times by 1 test: sh_xfree((w), "dispose_cmd.c", 259);
Executed by:
  • Self test
} while (0);
0-231049140
235}
executed 115525682 times by 1 test: end of block
Executed by:
  • Self test
115525682
236-
237-
238void-
239dispose_words (list)-
240 WORD_LIST *list;-
241{-
242 WORD_LIST *t;-
243-
244 while (list
listDescription
TRUEevaluated 498401600 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 443858634 times by 1 test
Evaluated by:
  • Self test
)
443858634-498401600
245 {-
246 t = list;-
247 list = list->next;-
248 dispose_word (t->word);-
249-
250-
251-
252 do { if ((
(wlcache).nc < (wlcache).csDescription
TRUEevaluated 495038916 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3362684 times by 1 test
Evaluated by:
  • Self test
wlcache).nc < (wlcache).cs
(wlcache).nc < (wlcache).csDescription
TRUEevaluated 495038916 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 3362684 times by 1 test
Evaluated by:
  • Self test
) { do { if ((
(sizeof(WORD_LIST)) <= 32Description
TRUEevaluated 495038916 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
sizeof(WORD_LIST)) <= 32
(sizeof(WORD_LIST)) <= 32Description
TRUEevaluated 495038916 times by 1 test
Evaluated by:
  • Self test
FALSEnever evaluated
) { register char * mzp = (char *)((t)); unsigned long mctmp = (sizeof(WORD_LIST)); register long mcn; if (mctmp < 8
mctmp < 8Description
TRUEnever evaluated
FALSEevaluated 495038916 times by 1 test
Evaluated by:
  • Self test
) mcn = 0;
never executed: mcn = 0;
else { mcn = (mctmp-1)/8; mctmp &= 7; }
executed 495038916 times by 1 test: end of block
Executed by:
  • Self test
switch (mctmp) { case
executed 495038916 times by 1 test: case 0:
Executed by:
  • Self test
0:
executed 495038916 times by 1 test: case 0:
Executed by:
  • Self test
for(;;) { *mzp++ = 0xdf; case
never executed: case 7:
code before this statement executed 990077832 times by 1 test: case 7:
Executed by:
  • Self test
never executed: case 7:
7:
code before this statement executed 990077832 times by 1 test: case 7:
Executed by:
  • Self test
never executed: case 7:
*mzp++ = 0xdf; case
never executed: case 6:
code before this statement executed 990077832 times by 1 test: case 6:
Executed by:
  • Self test
never executed: case 6:
6:
code before this statement executed 990077832 times by 1 test: case 6:
Executed by:
  • Self test
never executed: case 6:
*mzp++ = 0xdf; case
never executed: case 5:
code before this statement executed 990077832 times by 1 test: case 5:
Executed by:
  • Self test
never executed: case 5:
5:
code before this statement executed 990077832 times by 1 test: case 5:
Executed by:
  • Self test
never executed: case 5:
*mzp++ = 0xdf; case
never executed: case 4:
code before this statement executed 990077832 times by 1 test: case 4:
Executed by:
  • Self test
never executed: case 4:
4:
code before this statement executed 990077832 times by 1 test: case 4:
Executed by:
  • Self test
never executed: case 4:
*mzp++ = 0xdf; case
never executed: case 3:
code before this statement executed 990077832 times by 1 test: case 3:
Executed by:
  • Self test
never executed: case 3:
3:
code before this statement executed 990077832 times by 1 test: case 3:
Executed by:
  • Self test
never executed: case 3:
*mzp++ = 0xdf; case
never executed: case 2:
code before this statement executed 990077832 times by 1 test: case 2:
Executed by:
  • Self test
never executed: case 2:
2:
code before this statement executed 990077832 times by 1 test: case 2:
Executed by:
  • Self test
never executed: case 2:
*mzp++ = 0xdf; case
never executed: case 1:
code before this statement executed 990077832 times by 1 test: case 1:
Executed by:
  • Self test
never executed: case 1:
1:
code before this statement executed 990077832 times by 1 test: case 1:
Executed by:
  • Self test
never executed: case 1:
*mzp++ = 0xdf; if(mcn <= 0
mcn <= 0Description
TRUEevaluated 495038916 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 495038916 times by 1 test
Evaluated by:
  • Self test
) break;
executed 495038916 times by 1 test: break;
Executed by:
  • Self test
mcn--; }
executed 495038916 times by 1 test: end of block
Executed by:
  • Self test
}
executed 495038916 times by 1 test: end of block
Executed by:
  • Self test
}
executed 495038916 times by 1 test: end of block
Executed by:
  • Self test
else memset (((t)), (0xdf), (sizeof(WORD_LIST)));
never executed: memset (((t)), (0xdf), (sizeof(WORD_LIST)));
} while(0); ((WORD_LIST **)((wlcache).data))[(wlcache).nc++] = (t); }
executed 495038916 times by 1 test: end of block
Executed by:
  • Self test
else sh_xfree((t), "dispose_cmd.c", 277);
executed 3362684 times by 1 test: sh_xfree((t), "dispose_cmd.c", 277);
Executed by:
  • Self test
} while (0);
0-990077832
253-
254 }
executed 498401600 times by 1 test: end of block
Executed by:
  • Self test
498401600
255}
executed 443858634 times by 1 test: end of block
Executed by:
  • Self test
443858634
256void-
257dispose_redirects (list)-
258 REDIRECT *list;-
259{-
260 register REDIRECT *t;-
261-
262 while (list
listDescription
TRUEevaluated 1504083 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 87256034 times by 1 test
Evaluated by:
  • Self test
)
1504083-87256034
263 {-
264 t = list;-
265 list = list->next;-
266-
267 if (t->rflags & 0x01
t->rflags & 0x01Description
TRUEevaluated 76 times by 1 test
Evaluated by:
  • Self test
FALSEevaluated 1504007 times by 1 test
Evaluated by:
  • Self test
)
76-1504007
268 dispose_word (t->redirector.filename);
executed 76 times by 1 test: dispose_word (t->redirector.filename);
Executed by:
  • Self test
76
269-
270 switch (t->instruction)-
271 {-
272 case
executed 3062 times by 1 test: case r_reading_until:
Executed by:
  • Self test
r_reading_until:
executed 3062 times by 1 test: case r_reading_until:
Executed by:
  • Self test
3062
273 case
executed 50 times by 1 test: case r_deblank_reading_until:
Executed by:
  • Self test
r_deblank_reading_until:
executed 50 times by 1 test: case r_deblank_reading_until:
Executed by:
  • Self test
50
274 sh_xfree((t->here_doc_eof), "dispose_cmd.c", 320);-
275-
276 case
executed 88 times by 1 test: case r_reading_string:
Executed by:
  • Self test
r_reading_string:
executed 88 times by 1 test: case r_reading_string:
Executed by:
  • Self test
code before this statement executed 3112 times by 1 test: case r_reading_string:
Executed by:
  • Self test
88-3112
277 case
executed 27153 times by 1 test: case r_output_direction:
Executed by:
  • Self test
r_output_direction:
executed 27153 times by 1 test: case r_output_direction:
Executed by:
  • Self test
27153
278 case
executed 2948 times by 1 test: case r_input_direction:
Executed by:
  • Self test
r_input_direction:
executed 2948 times by 1 test: case r_input_direction:
Executed by:
  • Self test
2948
279 case
never executed: case r_inputa_direction:
r_inputa_direction:
never executed: case r_inputa_direction:
0
280 case
executed 41 times by 1 test: case r_appending_to:
Executed by:
  • Self test
r_appending_to:
executed 41 times by 1 test: case r_appending_to:
Executed by:
  • Self test
41
281 case
executed 33 times by 1 test: case r_err_and_out:
Executed by:
  • Self test
r_err_and_out:
executed 33 times by 1 test: case r_err_and_out:
Executed by:
  • Self test
33
282 case
executed 6 times by 1 test: case r_append_err_and_out:
Executed by:
  • Self test
r_append_err_and_out:
executed 6 times by 1 test: case r_append_err_and_out:
Executed by:
  • Self test
6
283 case
executed 18 times by 1 test: case r_input_output:
Executed by:
  • Self test
r_input_output:
executed 18 times by 1 test: case r_input_output:
Executed by:
  • Self test
18
284 case
executed 19 times by 1 test: case r_output_force:
Executed by:
  • Self test
r_output_force:
executed 19 times by 1 test: case r_output_force:
Executed by:
  • Self test
19
285 case
executed 17 times by 1 test: case r_duplicating_input_word:
Executed by:
  • Self test
r_duplicating_input_word:
executed 17 times by 1 test: case r_duplicating_input_word:
Executed by:
  • Self test
17
286 case
executed 112 times by 1 test: case r_duplicating_output_word:
Executed by:
  • Self test
r_duplicating_output_word:
executed 112 times by 1 test: case r_duplicating_output_word:
Executed by:
  • Self test
112
287 case
executed 7 times by 1 test: case r_move_input_word:
Executed by:
  • Self test
r_move_input_word:
executed 7 times by 1 test: case r_move_input_word:
Executed by:
  • Self test
7
288 case
executed 7 times by 1 test: case r_move_output_word:
Executed by:
  • Self test
r_move_output_word:
executed 7 times by 1 test: case r_move_output_word:
Executed by:
  • Self test
7
289 dispose_word (t->redirectee.filename);-
290-
291 default
executed 1504083 times by 1 test: default:
Executed by:
  • Self test
:
executed 1504083 times by 1 test: default:
Executed by:
  • Self test
code before this statement executed 33561 times by 1 test: default:
Executed by:
  • Self test
33561-1504083
292 break;
executed 1504083 times by 1 test: break;
Executed by:
  • Self test
1504083
293 }-
294 sh_xfree((t), "dispose_cmd.c", 340);-
295 }
executed 1504083 times by 1 test: end of block
Executed by:
  • Self test
1504083
296}
executed 87256034 times by 1 test: end of block
Executed by:
  • Self test
87256034
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2