Various minor fixes for compiler/linter (other then splint itself) warnings.
[splint-patched.git] / test / null5.c
blob169e09adbd5faff3a737b021b8f719154414d204
1 # include "bool.h"
3 extern /*@truenull@*/ bool isnull(/*@null@*/ int *x);
4 extern /*@falsenull@*/ bool notnull(/*@null@*/ int *x);
5 extern /*@falsenull@*/ char badnull (/*@null@*/ int *x);
6 extern /*@falsenull@*/ bool worsenull (/*@null@*/ int *x, int t);
8 int g1 (/*@null@*/ int *y)
10 if (isnull (y))
12 return 0;
15 return *y;
18 int g2 (/*@null@*/ int *y)
20 if (notnull (y))
22 return 0;
24 else
26 return *y;
30 int g3 (/*@null@*/ int *y)
32 if (notnull (y))
34 return 0;
37 return *y;