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