Debian Codegraph @

src/plugins/wp/tests/wp_acsl/oracle/funvar_inv.0.res.oracle

raw
1 # frama-c -wp -wp-model 'Hoare' [...]
2 [kernel] Parsing funvar_inv.i (no preprocessing)
3 [wp] Running WP plugin...
4 [wp] Warning: Missing RTE guards
5 [wp] funvar_inv.i:24: Warning: Can not compare pointers in Empty model
6 [wp] funvar_inv.i:23: Warning: Can not compare pointers in Empty model
7 [wp] funvar_inv.i:38: Warning: Can not compare pointers in Empty model
8 [wp] funvar_inv.i:37: Warning: Can not compare pointers in Empty model
9 [wp] funvar_inv.i:53: Warning: Can not compare pointers in Empty model
10 [wp] funvar_inv.i:52: Warning: Can not compare pointers in Empty model
11 ------------------------------------------------------------
12 Function f
13 ------------------------------------------------------------
14
15 Goal Post-condition 'P_startof' in 'f':
16 funvar_inv.i:23: warning from Empty Model:
17 - Warning: Target turned to False, looking for context inconsistency
18 Reason: Can not compare pointers in Empty model
19 Let x = G[0].
20 Assume {
21 Type: is_sint32(i) /\ is_sint32(x) /\ is_sint32(G[1]).
22 (* Heap *)
23 Type: IsArray_sint32(G).
24 If i <= 3
25 Then { (* Else *) Have: G[i] = 0. }
26 }
27 Prove: x != 0.
28
29 ------------------------------------------------------------
30
31 Goal Post-condition 'P_addr' in 'f':
32 funvar_inv.i:24: warning from Empty Model:
33 - Warning: Target turned to False, looking for context inconsistency
34 Reason: Can not compare pointers in Empty model
35 Let x = G[0].
36 Assume {
37 Type: is_sint32(i) /\ is_sint32(x).
38 (* Heap *)
39 Type: IsArray_sint32(G).
40 (* Goal *)
41 When: (x != 0) /\ (G[1] = 0).
42 If i <= 3
43 Then { (* Else *) Have: G[i] = 0. }
44 }
45 Prove: false.
46
47 ------------------------------------------------------------
48
49 Goal Loop assigns 'qed_ok,index':
50 Prove: true.
51
52 ------------------------------------------------------------
53 ------------------------------------------------------------
54 Function f2
55 ------------------------------------------------------------
56
57 Goal Post-condition 'P_startof_shift' in 'f2':
58 funvar_inv.i:37: warning from Empty Model:
59 - Warning: Target turned to False, looking for context inconsistency
60 Reason: Can not compare pointers in Empty model
61 Let x = G[0].
62 Assume {
63 Type: is_sint32(i) /\ is_sint32(x) /\ is_sint32(G[1]).
64 (* Heap *)
65 Type: IsArray_sint32(G).
66 If i <= 3
67 Then { (* Else *) Have: G[i] = 0. }
68 }
69 Prove: x != 0.
70
71 ------------------------------------------------------------
72
73 Goal Post-condition 'P_addr_shift' in 'f2':
74 funvar_inv.i:38: warning from Empty Model:
75 - Warning: Target turned to False, looking for context inconsistency
76 Reason: Can not compare pointers in Empty model
77 Let x = G[0].
78 Assume {
79 Type: is_sint32(i) /\ is_sint32(x).
80 (* Heap *)
81 Type: IsArray_sint32(G).
82 (* Goal *)
83 When: (x != 0) /\ (G[1] = 0).
84 If i <= 3
85 Then { (* Else *) Have: G[i] = 0. }
86 }
87 Prove: false.
88
89 ------------------------------------------------------------
90
91 Goal Loop assigns 'qed_ok,index':
92 Prove: true.
93
94 ------------------------------------------------------------
95 ------------------------------------------------------------
96 Function g
97 ------------------------------------------------------------
98
99 Goal Post-condition 'P_addr_startof_shift' in 'g':
100 funvar_inv.i:52: warning from Empty Model:
101 - Warning: Target turned to False, looking for context inconsistency
102 Reason: Can not compare pointers in Empty model
103 Let x = G[0].
104 Assume {
105 Type: is_sint32(i) /\ is_sint32(x) /\ is_sint32(G[1]).
106 (* Heap *)
107 Type: IsArray_sint32(G).
108 If i <= 3
109 Then { (* Else *) Have: G[i] = 0. }
110 }
111 Prove: x != 0.
112
113 ------------------------------------------------------------
114
115 Goal Post-condition 'P_addr_addr_shift' in 'g':
116 funvar_inv.i:53: warning from Empty Model:
117 - Warning: Target turned to False, looking for context inconsistency
118 Reason: Can not compare pointers in Empty model
119 Let x = G[0].
120 Assume {
121 Type: is_sint32(i) /\ is_sint32(x).
122 (* Heap *)
123 Type: IsArray_sint32(G).
124 (* Goal *)
125 When: (x != 0) /\ (G[1] = 0).
126 If i <= 3
127 Then { (* Else *) Have: G[i] = 0. }
128 }
129 Prove: false.
130
131 ------------------------------------------------------------
132
133 Goal Loop assigns 'qed_ok':
134 Prove: true.
135
136 ------------------------------------------------------------
137 [wp] funvar_inv.i:26: Warning:
138 Memory model hypotheses for function 'f':
139 /*@ behavior wp_hoare:
140 ensures \separated(\result, (int *)G + (..)); */
141 int *f(void);
142 [wp] funvar_inv.i:40: Warning:
143 Memory model hypotheses for function 'f2':
144 /*@ behavior wp_hoare:
145 ensures \separated(\result, (int *)G + (..)); */
146 int *f2(void);
147 [wp] funvar_inv.i:55: Warning:
148 Memory model hypotheses for function 'g':
149 /*@ behavior wp_hoare:
150 ensures \separated(\result, (int *)G + (..)); */
151 int *g(void);