Two useless/empty bison reductions removed.
[splint-patched.git] / test / cases2.c
blobffe850225f81f91a2d464e73b28c9be87cb05444
1 extern /*@only@*/ int *g(/*@only@*/ int *y);
3 /*@null@*/ /*@only@*/ int *f(/*@only@*/ int *x)
5 switch (*x)
7 case 1:
8 return g(x);
9 case 2:
10 return g(x);
11 case 3:
12 return g(x);
13 default:
14 return g(x);
18 /*@null@*/ /*@only@*/ int *f2(/*@only@*/ int *x)
20 switch (*x)
22 case 1:
23 return g(x);
24 case 2:
25 return g(x);
26 } /* 1. Variable x is released in one possible execution, but live ... */
28 return g(x);
31 /*@null@*/ /*@only@*/ int *f3(/*@only@*/ int *x)
33 switch (*x)
35 case 1:
36 return g(x);
39 return g(x);