]> andersk Git - splint.git/blame_incremental - test/metastate.expect
Pushed back constraintResolve.c to the previous version.
[splint.git] / test / metastate.expect
... / ...
CommitLineData
1
2file1.c: (in function main)
3file1.c:10:14: Invalid transfer from implicitly unopen fle to open (unopen file
4 passed as open): checkOpen(..., fle, ...)
5 file1.c:6:14: fle becomes implicitly unopen
6 file1.c:1:53: parameter 1 becomes open
7file1.c:19:16: Invalid transfer from implicitly open fle to unopen (open file
8 passed as unopen): checkClosed(..., fle, ...)
9 file1.c:12:3: fle becomes implicitly open
10 file1.c:2:57: parameter 1 becomes unopen
11file1.c:23:14: Invalid transfer from unopen fle to open (unopen file passed as
12 open): checkOpen(..., fle, ...)
13 file1.c:22:10: fle becomes unopen
14 file1.c:1:53: parameter 1 becomes open
15file1.c:7:8: Variable s declared but not used
16
17Finished checking --- 4 code warnings, as expected
18
19file2.c: (in function main)
20file2.c:11:6: Scope exit loses reference fle2 in invalid state implicitly open
21 (open file not closed)
22 file2.c:9:41: State becomes implicitly open
23file2.c:13:12: Return loses reference fle1 in invalid state implicitly open
24 (open file not closed)
25 file2.c:5:37: State becomes implicitly open
26
27Finished checking --- 2 code warnings, as expected
28
29file3.c: (in function main)
30file3.c:10:22: Possibly null storage fle1 passed as non-null param:
31 fclose (fle1)
32 file3.c:6:16: Storage fle1 may become null
33file3.c:11:5: Control branches merge with incompatible states for fle1 (unopen
34 and open): files merge in inconsistent state
35 file3.c:6:37: fle1 becomes implicitly open
36 file3.c:10:14: fle1 becomes unopen
37
38Finished checking --- 2 code warnings, as expected
39
40file4.c: (in function main)
41file4.c:15:14: Invalid transfer from implicitly unopen fle to open (unopen file
42 passed as open): checkOpen(..., fle, ...)
43 file4.c:11:14: fle becomes implicitly unopen
44 file4.c:1:53: parameter 1 becomes open
45
46Finished checking --- 1 code warning, as expected
47
48file5.c: (in function passOpen)
49file5.c:8:2: Ensures clause not satisfied by f (state is open):
50 ensures closed f
51 file5.c:4:35: f becomes open
52file5.c: (in function returnOpen)
53file5.c:16:10: Result state fle does not satisfy ensures clause:
54 ensures open result (state is unopen, should be open): fle
55 file5.c:13:30: Storage fle becomes dependent
56file5.c: (in function main)
57file5.c:25:14: Invalid transfer from implicitly unopen fle to open (unopen file
58 passed as open): checkOpen(..., fle, ...)
59 file5.c:21:14: fle becomes implicitly unopen
60 file5.c:1:53: parameter 1 becomes open
61file5.c:35:18: Invalid transfer from unopen fle to open (unopen file passed as
62 open): fclose(..., fle, ...)
63 file5.c:34:3: fle becomes unopen
64 file.xh:1:44: parameter 1 becomes open
65
66Finished checking --- 4 code warnings, as expected
67
68file6.c: (in function newOpenBad)
69file6.c:20:10: Invalid transfer from unopen res to open (unopen file passed as
70 open): return res
71 file6.c:19:10: res becomes unopen
72 file6.c:14:2: becomes open
73file6.c: (in function main)
74file6.c:30:12: Return loses reference fle in invalid state implicitly open
75 (open file not closed)
76 file6.c:27:3: State becomes implicitly open
77
78Finished checking --- 2 code warnings, as expected
79
80filebad.c:1:23: Attribute annotation open used in inconsistent context:
81 int badOpen(FILE *)
82filebad.c:3:52: Attribute annotation closed used in inconsistent context:
83 int p_x
84filebad.c:3:12: Attribute annotation open used on inappropriate reference p_x
85 in ensures open clause of badEnsures: ensures open p_x
86
87Finished checking --- 3 code warnings, as expected
88
89sockets.c: (in function test1)
90sockets.c:13:3: Requires clause of called function useSockets not satisfied
91 (state is uninitialized): requires sockets_initialized
92sockets.c: (in function test5)
93sockets.c:37:3: Requires clause of called function useSockets not satisfied
94 (state is uninitialized): requires sockets_initialized
95sockets.c: (in function test6)
96sockets.c:42:3: Requires clause of called function useSockets not satisfied
97 (state is uninitialized): requires sockets_initialized
98
99Finished checking --- 3 code warnings, as expected
100
101sockets2.c: (in function test1)
102sockets2.c:15:4: Control branches merge with incompatible global states
103 (initialized and uninitialized): Sockets initialized on true branch,
104 uninitialized on false branch.
105 sockets2.c:11:24: <global marker> becomes uninitialized
106 sockets2.c:14:5: <global marker> becomes initialized
107sockets2.c: (in function test2)
108sockets2.c:24:3: Control branches merge with incompatible global states
109 (uninitialized and initialized): Sockets uninitialized on false branch,
110 initialized on true branch.
111 sockets2.c:20:24: <global marker> becomes initialized
112 sockets2.c:23:5: <global marker> becomes uninitialized
113
114Finished checking --- 2 code warnings, as expected
115
116struct.c: (in function source_badClose)
117struct.c:10:2: Function returns with parameter s in inconsistent state (s->file
118 is unopen, should be open): unopen file passed as open
119 struct.c:9:10: s->file becomes unopen
120
121Finished checking --- 1 code warning, as expected
122
123nullbranch.c: (in function ftest2)
124nullbranch.c:30:22: Possibly null storage f passed as non-null param:
125 fclose (f)
126 nullbranch.c:22:7: Storage f may become null
127nullbranch.c:32:2: Return loses reference f in invalid state open (open file
128 not closed)
129 nullbranch.c:22:3: State becomes open
130
131Finished checking --- 2 code warnings, as expected
132
133osd.c: (in function osd_fileIsReadable)
134osd.c:9:7: Return value (type int) ignored: fclose(fl)
135osd.c:10:14: Return value type bool does not match declared type int: (TRUE)
136
137Finished checking --- 2 code warnings, as expected
This page took 0.045631 seconds and 5 git commands to generate.