Debian Codegraph @

src/plugins/wp/tests/wp_acsl/oracle/postassigns.res.oracle

raw
1 # frama-c -wp [...]
2 [kernel] Parsing postassigns.c (with preprocessing)
3 [wp] Running WP plugin...
4 [wp] Warning: Missing RTE guards
5 ------------------------------------------------------------
6 Function job1
7 ------------------------------------------------------------
8
9 Goal Post-condition (file postassigns.c, line 4) in 'job1':
10 Prove: true.
11
12 ------------------------------------------------------------
13
14 Goal Assigns (file postassigns.c, line 5) in 'job1' (1/9):
15 Prove: true.
16
17 ------------------------------------------------------------
18
19 Goal Assigns (file postassigns.c, line 5) in 'job1' (2/9):
20 Effect at line 10
21 Prove: true.
22
23 ------------------------------------------------------------
24
25 Goal Assigns (file postassigns.c, line 5) in 'job1' (3/9):
26 Effect at line 10
27 Prove: true.
28
29 ------------------------------------------------------------
30
31 Goal Assigns (file postassigns.c, line 5) in 'job1' (4/9):
32 Effect at line 11
33 Prove: true.
34
35 ------------------------------------------------------------
36
37 Goal Assigns (file postassigns.c, line 5) in 'job1' (5/9):
38 Effect at line 11
39 Prove: true.
40
41 ------------------------------------------------------------
42
43 Goal Assigns (file postassigns.c, line 5) in 'job1' (6/9):
44 Effect at line 12
45 Prove: true.
46
47 ------------------------------------------------------------
48
49 Goal Assigns (file postassigns.c, line 5) in 'job1' (7/9):
50 Effect at line 12
51 Prove: true.
52
53 ------------------------------------------------------------
54
55 Goal Assigns (file postassigns.c, line 5) in 'job1' (8/9):
56 Effect at line 13
57 Prove: true.
58
59 ------------------------------------------------------------
60
61 Goal Assigns (file postassigns.c, line 5) in 'job1' (9/9):
62 Effect at line 13
63 Prove: true.
64
65 ------------------------------------------------------------
66 ------------------------------------------------------------
67 Function job2
68 ------------------------------------------------------------
69
70 Goal Post-condition (file postassigns.c, line 19) in 'job2':
71 Prove: true.
72
73 ------------------------------------------------------------
74
75 Goal Assigns (file postassigns.c, line 20) in 'job2' (1/9):
76 Prove: true.
77
78 ------------------------------------------------------------
79
80 Goal Assigns (file postassigns.c, line 20) in 'job2' (2/9):
81 Effect at line 25
82 Prove: true.
83
84 ------------------------------------------------------------
85
86 Goal Assigns (file postassigns.c, line 20) in 'job2' (3/9):
87 Effect at line 25
88 Prove: true.
89
90 ------------------------------------------------------------
91
92 Goal Assigns (file postassigns.c, line 20) in 'job2' (4/9):
93 Effect at line 26
94 Prove: true.
95
96 ------------------------------------------------------------
97
98 Goal Assigns (file postassigns.c, line 20) in 'job2' (5/9):
99 Effect at line 26
100 Let x = A[1].
101 Assume {
102 Type: is_sint32(x).
103 (* Heap *)
104 Type: (region(p.base) <= 0) /\ IsArray_sint32(A) /\ linked(Malloc_0).
105 (* Goal *)
106 When: !invalid(Malloc_0, shift_sint32(p, x), 1).
107 }
108 Prove: exists i : Z. (A[i] = x) /\ (0 <= i) /\ (i <= 3).
109
110 ------------------------------------------------------------
111
112 Goal Assigns (file postassigns.c, line 20) in 'job2' (6/9):
113 Effect at line 27
114 Prove: true.
115
116 ------------------------------------------------------------
117
118 Goal Assigns (file postassigns.c, line 20) in 'job2' (7/9):
119 Effect at line 27
120 Let x = A[2].
121 Assume {
122 Type: is_sint32(x).
123 (* Heap *)
124 Type: (region(p.base) <= 0) /\ IsArray_sint32(A) /\ linked(Malloc_0).
125 (* Goal *)
126 When: !invalid(Malloc_0, shift_sint32(p, x), 1).
127 }
128 Prove: exists i : Z. (A[i] = x) /\ (0 <= i) /\ (i <= 3).
129
130 ------------------------------------------------------------
131
132 Goal Assigns (file postassigns.c, line 20) in 'job2' (8/9):
133 Effect at line 28
134 Prove: true.
135
136 ------------------------------------------------------------
137
138 Goal Assigns (file postassigns.c, line 20) in 'job2' (9/9):
139 Effect at line 28
140 Prove: true.
141
142 ------------------------------------------------------------
143 ------------------------------------------------------------
144 Function job3
145 ------------------------------------------------------------
146
147 Goal Preservation of Invariant (file postassigns.c, line 38):
148 Prove: true.
149
150 ------------------------------------------------------------
151
152 Goal Establishment of Invariant (file postassigns.c, line 38):
153 Prove: true.
154
155 ------------------------------------------------------------
156
157 Goal Loop assigns (file postassigns.c, line 39) (1/3):
158 Prove: true.
159
160 ------------------------------------------------------------
161
162 Goal Loop assigns (file postassigns.c, line 39) (2/3):
163 Effect at line 41
164 Prove: true.
165
166 ------------------------------------------------------------
167
168 Goal Loop assigns (file postassigns.c, line 39) (3/3):
169 Effect at line 42
170 Let x = i - 1.
171 Let a = shift_sint32(p, x).
172 Assume {
173 Type: is_sint32(N) /\ is_sint32(i) /\ is_sint32(x).
174 (* Heap *)
175 Type: (region(p.base) <= 0) /\ linked(Malloc_0).
176 (* Goal *)
177 When: !invalid(Malloc_0, a, 1).
178 (* Invariant *)
179 Have: 0 <= N.
180 (* Invariant *)
181 Have: (0 < i) /\ (i <= (1 + N)).
182 (* Then *)
183 Have: i <= N.
184 }
185 Prove: included(a, 1, shift_sint32(p, 0), N).
186
187 ------------------------------------------------------------
188
189 Goal Assigns (file postassigns.c, line 33) in 'job3' (1/2):
190 Prove: true.
191
192 ------------------------------------------------------------
193
194 Goal Assigns (file postassigns.c, line 33) in 'job3' (2/2):
195 Effect at line 41
196 Prove: true.
197
198 ------------------------------------------------------------
199 [wp] postassigns.c:7: Warning:
200 Memory model hypotheses for function 'job1':
201 /*@
202 behavior wp_typed:
203 requires \separated(p + (..), &N);
204 ensures \separated(p + (0 .. \at(N,Post) - 1), &N);
205 */
206 void job1(int *p);
207 [wp] postassigns.c:22: Warning:
208 Memory model hypotheses for function 'job2':
209 /*@
210 behavior wp_typed:
211 requires \separated(p + (..), (int *)A + (..), &N);
212 ensures \separated(p + A[0 .. \at(N,Post) - 1], (int *)A + (..), &N);
213 */
214 void job2(int *p);
215 [wp] postassigns.c:35: Warning:
216 Memory model hypotheses for function 'job3':
217 /*@
218 behavior wp_typed:
219 requires \separated(p + (..), &N);
220 ensures \separated(p + (0 .. \at(N,Post)), &N);
221 */
222 void job3(int *p);