File: non_natural.res.oracle

package info (click to toggle)
frama-c 20161101%2Bsilicon%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 42,324 kB
  • ctags: 35,695
  • sloc: ml: 200,142; ansic: 31,465; makefile: 2,334; sh: 1,643; lisp: 259; python: 85; asm: 26
file content (284 lines) | stat: -rw-r--r-- 17,409 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
[kernel] Parsing share/libc/__fc_builtin_for_normalization.i (no preprocessing)
[kernel] Parsing tests/value/non_natural.i (no preprocessing)
[value] Analyzing a complete application starting at main
[value] Computing initial state
[value] Initial state computed
[value:initial-state] Values of globals at initialization
  v ∈ [--..--]
[value] computing for function main1 <- main.
        Called from tests/value/non_natural.i:63.
tests/value/non_natural.i:13:[kernel] warning: Non-natural loop detected.
[value] Called Frama_C_show_each({0})
[value] Called Frama_C_show_each({0; 1})
[value] Called Frama_C_show_each({0; 1; 2})
[value] Called Frama_C_show_each({0; 1; 2; 3})
[value] Called Frama_C_show_each([0..999999])
[value] Recording results for main1
[value] Done for function main1
[value] computing for function main2 <- main.
        Called from tests/value/non_natural.i:64.
[value] computing for function duff1 <- main2 <- main.
        Called from tests/value/non_natural.i:57.
tests/value/non_natural.i:21:[kernel] warning: Non-natural loop detected.
tests/value/non_natural.i:21:[value] entering loop for the first time
[value] Called Frama_C_show_each({{ &p2 }})
tests/value/non_natural.i:23:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_0);
                 (tmp_0 from from++)
tests/value/non_natural.i:24:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_2);
                 (tmp_2 from from++)
tests/value/non_natural.i:25:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_4);
                 (tmp_4 from from++)
tests/value/non_natural.i:26:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_6);
                 (tmp_6 from from++)
tests/value/non_natural.i:27:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_8);
                 (tmp_8 from from++)
tests/value/non_natural.i:28:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_10);
                 (tmp_10 from from++)
tests/value/non_natural.i:29:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_12);
                 (tmp_12 from from++)
tests/value/non_natural.i:30:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_14);
                 (tmp_14 from from++)
[value] Called Frama_C_show_each({{ &p2 + {0; 32} }})
[value] Called Frama_C_show_each({{ &p2 + {0; 32; 64} }})
[value] Called Frama_C_show_each({{ &p2 + {0; 32; 64; 96} }})
[value] Called Frama_C_show_each({{ &p2 + {0; 32; 64; 96; 128} }})
[value] Called Frama_C_show_each({{ &p2 + [0..399968],0%32 }})
tests/value/non_natural.i:23:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:24:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:25:[value] warning: out of bounds read. assert \valid_read(tmp_4);
                                     (tmp_4 from from++)
tests/value/non_natural.i:25:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:26:[value] warning: out of bounds read. assert \valid_read(tmp_6);
                                     (tmp_6 from from++)
tests/value/non_natural.i:26:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:27:[value] warning: out of bounds read. assert \valid_read(tmp_8);
                                     (tmp_8 from from++)
tests/value/non_natural.i:27:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:28:[value] warning: out of bounds read. assert \valid_read(tmp_10);
                                     (tmp_10 from from++)
tests/value/non_natural.i:28:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:29:[value] warning: out of bounds read. assert \valid_read(tmp_12);
                                     (tmp_12 from from++)
tests/value/non_natural.i:29:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:30:[value] warning: out of bounds read. assert \valid_read(tmp_14);
                                     (tmp_14 from from++)
tests/value/non_natural.i:30:[kernel] more than 200(12500) locations to update in array. Approximating.
[value] Called Frama_C_show_each({{ &p2 + [0..400000],0%32 }})
tests/value/non_natural.i:23:[value] warning: out of bounds write. assert \valid(tmp);
                                      (tmp from to++)
tests/value/non_natural.i:23:[value] warning: out of bounds read. assert \valid_read(tmp_0);
                                     (tmp_0 from from++)
tests/value/non_natural.i:24:[value] warning: out of bounds write. assert \valid(tmp_1);
                                      (tmp_1 from to++)
tests/value/non_natural.i:24:[value] warning: out of bounds read. assert \valid_read(tmp_2);
                                     (tmp_2 from from++)
tests/value/non_natural.i:25:[value] warning: out of bounds write. assert \valid(tmp_3);
                                      (tmp_3 from to++)
tests/value/non_natural.i:26:[value] warning: out of bounds write. assert \valid(tmp_5);
                                      (tmp_5 from to++)
tests/value/non_natural.i:27:[value] warning: out of bounds write. assert \valid(tmp_7);
                                      (tmp_7 from to++)
tests/value/non_natural.i:28:[value] warning: out of bounds write. assert \valid(tmp_9);
                                      (tmp_9 from to++)
tests/value/non_natural.i:29:[value] warning: out of bounds write. assert \valid(tmp_11);
                                      (tmp_11 from to++)
tests/value/non_natural.i:30:[value] warning: out of bounds write. assert \valid(tmp_13);
                                      (tmp_13 from to++)
[value] Called Frama_C_show_each({{ &p2 + [0..--],0%32 }})
[value] Recording results for duff1
[value] Done for function duff1
tests/value/non_natural.i:58:[value] warning: accessing out of bounds index. assert 0 ≤ o;
tests/value/non_natural.i:58:[value] warning: accessing out of bounds index. assert o < 100002;
[value] computing for function duff2 <- main2 <- main.
        Called from tests/value/non_natural.i:59.
tests/value/non_natural.i:38:[kernel] warning: Non-natural loop detected.
[value] Called Frama_C_show_each({{ &p2 }})
tests/value/non_natural.i:39:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_0);
                 (tmp_0 from from++)
tests/value/non_natural.i:40:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_2);
                 (tmp_2 from from++)
tests/value/non_natural.i:41:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_4);
                 (tmp_4 from from++)
tests/value/non_natural.i:42:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_6);
                 (tmp_6 from from++)
tests/value/non_natural.i:43:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_8);
                 (tmp_8 from from++)
tests/value/non_natural.i:44:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_10);
                 (tmp_10 from from++)
tests/value/non_natural.i:45:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_12);
                 (tmp_12 from from++)
tests/value/non_natural.i:46:[value] warning: accessing uninitialized left-value.
                 assert \initialized(tmp_14);
                 (tmp_14 from from++)
[value] Called Frama_C_show_each({{ &p2 + {0; 32} }})
[value] Called Frama_C_show_each({{ &p2 + {0; 32; 64} }})
[value] Called Frama_C_show_each({{ &p2 + [0..399968],0%32 }})
tests/value/non_natural.i:39:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:40:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:41:[value] warning: out of bounds read. assert \valid_read(tmp_4);
                                     (tmp_4 from from++)
tests/value/non_natural.i:41:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:42:[value] warning: out of bounds read. assert \valid_read(tmp_6);
                                     (tmp_6 from from++)
tests/value/non_natural.i:42:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:43:[value] warning: out of bounds read. assert \valid_read(tmp_8);
                                     (tmp_8 from from++)
tests/value/non_natural.i:43:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:44:[value] warning: out of bounds read. assert \valid_read(tmp_10);
                                     (tmp_10 from from++)
tests/value/non_natural.i:44:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:45:[value] warning: out of bounds read. assert \valid_read(tmp_12);
                                     (tmp_12 from from++)
tests/value/non_natural.i:45:[kernel] more than 200(12500) locations to update in array. Approximating.
tests/value/non_natural.i:46:[value] warning: out of bounds read. assert \valid_read(tmp_14);
                                     (tmp_14 from from++)
tests/value/non_natural.i:46:[kernel] more than 200(12500) locations to update in array. Approximating.
[value] Called Frama_C_show_each({{ &p2 + [0..400000],0%32 }})
tests/value/non_natural.i:39:[value] warning: out of bounds write. assert \valid(tmp);
                                      (tmp from to++)
tests/value/non_natural.i:39:[value] warning: out of bounds read. assert \valid_read(tmp_0);
                                     (tmp_0 from from++)
tests/value/non_natural.i:40:[value] warning: out of bounds write. assert \valid(tmp_1);
                                      (tmp_1 from to++)
tests/value/non_natural.i:40:[value] warning: out of bounds read. assert \valid_read(tmp_2);
                                     (tmp_2 from from++)
tests/value/non_natural.i:41:[value] warning: out of bounds write. assert \valid(tmp_3);
                                      (tmp_3 from to++)
tests/value/non_natural.i:42:[value] warning: out of bounds write. assert \valid(tmp_5);
                                      (tmp_5 from to++)
tests/value/non_natural.i:43:[value] warning: out of bounds write. assert \valid(tmp_7);
                                      (tmp_7 from to++)
tests/value/non_natural.i:44:[value] warning: out of bounds write. assert \valid(tmp_9);
                                      (tmp_9 from to++)
tests/value/non_natural.i:45:[value] warning: out of bounds write. assert \valid(tmp_11);
                                      (tmp_11 from to++)
tests/value/non_natural.i:46:[value] warning: out of bounds write. assert \valid(tmp_13);
                                      (tmp_13 from to++)
[value] Called Frama_C_show_each({{ &p2 + [0..--],0%32 }})
[value] Recording results for duff2
[value] Done for function duff2
[value] Recording results for main2
[value] Done for function main2
[value] Recording results for main
[value] done for function main
[value] ====== VALUES COMPUTED ======
tests/value/non_natural.i:23:[kernel] more than 200(12500) elements to enumerate. Approximating.
tests/value/non_natural.i:24:[kernel] more than 200(12500) elements to enumerate. Approximating.
tests/value/non_natural.i:25:[kernel] more than 200(12500) elements to enumerate. Approximating.
tests/value/non_natural.i:26:[kernel] more than 200(12500) elements to enumerate. Approximating.
tests/value/non_natural.i:27:[kernel] more than 200(12500) elements to enumerate. Approximating.
tests/value/non_natural.i:28:[kernel] more than 200(12500) elements to enumerate. Approximating.
tests/value/non_natural.i:29:[kernel] more than 200(12500) elements to enumerate. Approximating.
tests/value/non_natural.i:30:[kernel] more than 200(12500) elements to enumerate. Approximating.
[value:final-states] Values at end of function duff1:
  to ∈ {{ &p2 + [32..--],0%32 }}
  from ∈ {{ &p1 + [32..--],0%32 }}
  n ∈ {0}
  p2[0..99999] ∈ {1} or UNINITIALIZED
[value:final-states] Values at end of function duff2:
  to ∈ {{ &p2 + [32..--],0%32 }}
  from ∈ {{ &p1 + [32..--],0%32 }}
  n ∈ {0}
  p2[0..99999] ∈ {1; 2} or UNINITIALIZED
[value:final-states] Values at end of function main1:
  c ∈ {1000000}
tests/value/non_natural.i:23:[kernel] more than 200(12501) elements to enumerate. Approximating.
tests/value/non_natural.i:24:[kernel] more than 200(12501) elements to enumerate. Approximating.
[value:final-states] Values at end of function main2:
  p1[0..100001] ∈ {1; 2} or UNINITIALIZED
  p2[0..99999] ∈ {1; 2} or UNINITIALIZED
  o ∈ [0..100001]
[value:final-states] Values at end of function main:
  
[from] Computing for function duff1
tests/value/non_natural.i:23:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:24:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:25:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:26:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:27:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:28:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:29:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:30:[kernel] more than 200(12500) dependencies to update. Approximating.
[from] Done for function duff1
[from] Computing for function duff2
tests/value/non_natural.i:39:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:40:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:41:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:42:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:43:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:44:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:45:[kernel] more than 200(12500) dependencies to update. Approximating.
tests/value/non_natural.i:46:[kernel] more than 200(12500) dependencies to update. Approximating.
[from] Done for function duff2
[from] Computing for function main1
[from] Done for function main1
[from] Computing for function main2
[from] Done for function main2
[from] Computing for function main
[from] Done for function main
[from] ====== DEPENDENCIES COMPUTED ======
       These dependencies hold at termination for the executions that terminate:
[from] Function duff1:
  p2[0] FROM to; from; count; p1[0..100000] (and SELF)
    [1..99992] FROM to; from; count; p1[0..100001] (and SELF)
    [99993] FROM to; from; count; p1[1..100001] (and SELF)
    [99994] FROM to; from; count; p1[2..99999] (and SELF)
    [99995] FROM to; from; count; p1[3..99999] (and SELF)
    [99996] FROM to; from; count; p1[4..99999] (and SELF)
    [99997] FROM to; from; count; p1[5..99999] (and SELF)
    [99998] FROM to; from; count; p1[6..99999] (and SELF)
    [99999] FROM to; from; count; p1[7..99999] (and SELF)
[from] Function duff2:
  p2[0] FROM to; from; count; p1[0..100000] (and SELF)
    [1..99992] FROM to; from; count; p1[0..100001] (and SELF)
    [99993] FROM to; from; count; p1[1..100001] (and SELF)
    [99994] FROM to; from; count; p1[2..99999] (and SELF)
    [99995] FROM to; from; count; p1[3..99999] (and SELF)
    [99996] FROM to; from; count; p1[4..99999] (and SELF)
    [99997] FROM to; from; count; p1[5..99999] (and SELF)
    [99998] FROM to; from; count; p1[6..99999] (and SELF)
    [99999] FROM to; from; count; p1[7..99999] (and SELF)
[from] Function main1:
  NO EFFECTS
[from] Function main2:
  NO EFFECTS
[from] Function main:
  NO EFFECTS
[from] ====== END OF DEPENDENCIES ======
[inout] Out (internal) for function duff1:
          to; from; n; tmp; tmp_0; tmp_1; tmp_2; tmp_3; tmp_4; tmp_5; tmp_6; 
          tmp_7; tmp_8; tmp_9; tmp_10; tmp_11; tmp_12; tmp_13; tmp_14; p2[0..99999]
[inout] Inputs for function duff1:
          p1[0..100001]
[inout] Out (internal) for function duff2:
          to; from; n; tmp; tmp_0; tmp_1; tmp_2; tmp_3; tmp_4; tmp_5; tmp_6; 
          tmp_7; tmp_8; tmp_9; tmp_10; tmp_11; tmp_12; tmp_13; tmp_14; p2[0..99999]
[inout] Inputs for function duff2:
          p1[0..100001]
[inout] Out (internal) for function main1:
          c
[inout] Inputs for function main1:
          v
[inout] Out (internal) for function main2:
          p1[0..100001]; p2[0..99999]; o
[inout] Inputs for function main2:
          v
[inout] Out (internal) for function main:
          \nothing
[inout] Inputs for function main:
          v