File: bts0506.0.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 (312 lines) | stat: -rw-r--r-- 10,190 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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
[kernel] Parsing share/libc/__fc_builtin_for_normalization.i (no preprocessing)
[kernel] Parsing tests/value/bts0506.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
  
[value] computing for function f <- main.
        Called from tests/value/bts0506.i:47.
[value] Recording results for f
[value] Done for function f
[value] computing for function main2 <- main.
        Called from tests/value/bts0506.i:49.
[value] computing for function f1 <- main2 <- main.
        Called from tests/value/bts0506.i:15.
tests/value/bts0506.i:15:[kernel] warning: Neither code nor specification for function f1, generating default assigns from the prototype
[value] using specification for function f1
[value] Done for function f1
[value] computing for function f1 <- main2 <- main.
        Called from tests/value/bts0506.i:16.
[value] Done for function f1
[value] computing for function f1 <- main2 <- main.
        Called from tests/value/bts0506.i:17.
[value] Done for function f1
[value] computing for function f1 <- main2 <- main.
        Called from tests/value/bts0506.i:18.
[value] Done for function f1
[value] computing for function f2 <- main2 <- main.
        Called from tests/value/bts0506.i:20.
tests/value/bts0506.i:20:[kernel] warning: Neither code nor specification for function f2, generating default assigns from the prototype
[value] using specification for function f2
[value] Done for function f2
[value] computing for function f2 <- main2 <- main.
        Called from tests/value/bts0506.i:21.
[value] Done for function f2
[value] computing for function f2 <- main2 <- main.
        Called from tests/value/bts0506.i:22.
[value] Done for function f2
[value] computing for function f3 <- main2 <- main.
        Called from tests/value/bts0506.i:24.
tests/value/bts0506.i:24:[kernel] warning: Neither code nor specification for function f3, generating default assigns from the prototype
[value] using specification for function f3
[value] Done for function f3
[value] computing for function f3 <- main2 <- main.
        Called from tests/value/bts0506.i:25.
[value] Done for function f3
[value] computing for function f4 <- main2 <- main.
        Called from tests/value/bts0506.i:27.
tests/value/bts0506.i:27:[kernel] warning: Neither code nor specification for function f4, generating default assigns from the prototype
[value] using specification for function f4
[value] Done for function f4
tests/value/bts0506.i:27:[value] warning: non-finite float value. assert \is_finite(tmp_8);
                                         (tmp_8 from f4())
[value] computing for function f4 <- main2 <- main.
        Called from tests/value/bts0506.i:28.
[value] Done for function f4
tests/value/bts0506.i:28:[value] warning: non-finite float value. assert \is_finite(tmp_9);
                                         (tmp_9 from f4())
[value] computing for function f5 <- main2 <- main.
        Called from tests/value/bts0506.i:30.
tests/value/bts0506.i:30:[kernel] warning: Neither code nor specification for function f5, generating default assigns from the prototype
[value] using specification for function f5
[value] Done for function f5
tests/value/bts0506.i:30:[value] warning: non-finite double value. assert \is_finite(tmp_10);
                                          (tmp_10 from f5())
tests/value/bts0506.i:30:[value] warning: non-finite float value. assert \is_finite((float)tmp_10);
                                         (tmp_10 from f5())
[value] computing for function f5 <- main2 <- main.
        Called from tests/value/bts0506.i:31.
[value] Done for function f5
tests/value/bts0506.i:31:[value] warning: non-finite double value. assert \is_finite(tmp_11);
                                          (tmp_11 from f5())
[value] computing for function f6 <- main2 <- main.
        Called from tests/value/bts0506.i:33.
tests/value/bts0506.i:33:[kernel] warning: Neither code nor specification for function f6, generating default assigns from the prototype
[value] using specification for function f6
[value] Done for function f6
[value] computing for function f6 <- main2 <- main.
        Called from tests/value/bts0506.i:34.
[value] Done for function f6
[value] computing for function f6 <- main2 <- main.
        Called from tests/value/bts0506.i:35.
[value] Done for function f6
[value] computing for function f7 <- main2 <- main.
        Called from tests/value/bts0506.i:37.
tests/value/bts0506.i:37:[kernel] warning: Neither code nor specification for function f7, generating default assigns from the prototype
[value] using specification for function f7
[value] Done for function f7
[value] computing for function f7 <- main2 <- main.
        Called from tests/value/bts0506.i:38.
[value] Done for function f7
[value] Recording results for main2
[value] Done for function main2
[value] Recording results for main
[value] done for function main
[value] ====== VALUES COMPUTED ======
[value:final-states] Values at end of function f:
  __retres ∈ {43}
[value:final-states] Values at end of function main2:
  r1 ∈ [--..--]
  r2 ∈ [--..--]
  r3 ∈ [--..--]
  r4 ∈ [--..--]
  r5 ∈ [--..--]
  r6 ∈ [--..--]
  r7 ∈ [--..--]
  r8 ∈ [--..--]
  r8bis ∈ [--..--]
  r9 ∈ [-3.40282346639e+38 .. 3.40282346639e+38]
  r10 ∈ [-3.40282346639e+38 .. 3.40282346639e+38]
  r11 ∈ [-3.40282346639e+38 .. 3.40282346639e+38]
  r12 ∈ [-1.79769313486e+308 .. 1.79769313486e+308]
  r13 ∈
     {{ NULL + [0..4294967295] ; &alloced_return_f6 + [0..2147483644],0%4 }}
  r14 ∈
     {{ NULL + [0..4294967295] ; &alloced_return_f6 + [0..2147483644],0%4 }}
  r15 ∈
     {{ NULL + [0..4294967295] ; &alloced_return_f6 + [0..2147483644],0%4 }}
  r16 ∈ {{ NULL + [0..4294967295] ; &alloced_return_f7 + [0..2147483647] }}
  r17 ∈ {{ NULL + [0..4294967295] ; &alloced_return_f7 + [0..2147483647] }}
[value:final-states] Values at end of function main:
  x ∈ {43}
[from] Computing for function f
[from] Done for function f
[from] Computing for function main2
[from] Computing for function f1 <-main2
[from] Done for function f1
[from] Computing for function f2 <-main2
[from] Done for function f2
[from] Computing for function f3 <-main2
[from] Done for function f3
[from] Computing for function f4 <-main2
[from] Done for function f4
[from] Computing for function f5 <-main2
[from] Done for function f5
[from] Computing for function f6 <-main2
[from] Done for function f6
[from] Computing for function f7 <-main2
[from] Done for function f7
[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 f:
  \result FROM x
[from] Function f1:
  \result FROM \nothing
[from] Function f2:
  \result FROM \nothing
[from] Function f3:
  \result FROM \nothing
[from] Function f4:
  \result FROM \nothing
[from] Function f5:
  \result FROM \nothing
[from] Function f6:
  \result FROM \nothing
[from] Function f7:
  \result FROM \nothing
[from] Function main2:
  NO EFFECTS
[from] Function main:
  NO EFFECTS
[from] ====== END OF DEPENDENCIES ======
[inout] Out (internal) for function f:
          __retres
[inout] Inputs for function f:
          \nothing
[inout] Out (internal) for function main2:
          r1; tmp; r2; tmp_0; r3; tmp_1; r4; tmp_2; r5; tmp_3; r6; tmp_4; r7; 
          tmp_5; r8; tmp_6; r8bis; tmp_7; r9; tmp_8; r10; tmp_9; r11; tmp_10; 
          r12; tmp_11; r13; tmp_12; r14; tmp_13; r15; tmp_14; r16; tmp_15; r17;
          tmp_16
[inout] Inputs for function main2:
          \nothing
[inout] Out (internal) for function main:
          x; tmp
[inout] Inputs for function main:
          \nothing
/* Generated by Frama-C */
/*@ assigns \result;
    assigns \result \from \nothing; */
extern int f1();

/*@ assigns \result;
    assigns \result \from \nothing; */
extern long f2();

/*@ assigns \result;
    assigns \result \from \nothing; */
extern unsigned int f3();

/*@ assigns \result;
    assigns \result \from \nothing; */
extern float f4();

/*@ assigns \result;
    assigns \result \from \nothing; */
extern double f5();

/*@ assigns \result;
    assigns \result \from \nothing; */
extern int *f6();

/*@ assigns \result;
    assigns \result \from \nothing; */
extern void *f7();

void main2(void)
{
  long r1;
  int tmp;
  short r2;
  int tmp_0;
  int r3;
  int tmp_1;
  unsigned int r4;
  int tmp_2;
  long r5;
  long tmp_3;
  int r6;
  long tmp_4;
  unsigned long r7;
  long tmp_5;
  unsigned int r8;
  unsigned int tmp_6;
  int r8bis;
  unsigned int tmp_7;
  float r9;
  float tmp_8;
  double r10;
  float tmp_9;
  float r11;
  double tmp_10;
  double r12;
  double tmp_11;
  void *r13;
  int *tmp_12;
  int *r14;
  int *tmp_13;
  char *r15;
  int *tmp_14;
  void *r16;
  void *tmp_15;
  int *r17;
  void *tmp_16;
  tmp = f1();
  r1 = (long)tmp;
  tmp_0 = f1();
  r2 = (short)tmp_0;
  tmp_1 = f1();
  r3 = tmp_1;
  tmp_2 = f1();
  r4 = (unsigned int)tmp_2;
  tmp_3 = f2();
  r5 = tmp_3;
  tmp_4 = f2();
  r6 = (int)tmp_4;
  tmp_5 = f2();
  r7 = (unsigned long)tmp_5;
  tmp_6 = f3();
  r8 = tmp_6;
  tmp_7 = f3();
  r8bis = (int)tmp_7;
  tmp_8 = f4();
  /*@ assert Value: is_nan_or_infinite: \is_finite(tmp_8); */
  r9 = tmp_8;
  tmp_9 = f4();
  /*@ assert Value: is_nan_or_infinite: \is_finite(tmp_9); */
  r10 = (double)tmp_9;
  tmp_10 = f5();
  /*@ assert Value: is_nan_or_infinite: \is_finite(tmp_10); */
  /*@ assert Value: is_nan_or_infinite: \is_finite((float)tmp_10); */
  r11 = (float)tmp_10;
  tmp_11 = f5();
  /*@ assert Value: is_nan_or_infinite: \is_finite(tmp_11); */
  r12 = tmp_11;
  tmp_12 = f6();
  r13 = (void *)tmp_12;
  tmp_13 = f6();
  r14 = tmp_13;
  tmp_14 = f6();
  r15 = (char *)tmp_14;
  tmp_15 = f7();
  r16 = tmp_15;
  tmp_16 = f7();
  r17 = (int *)tmp_16;
  return;
}

int f(int x)
{
  int __retres;
  __retres = x + 1;
  return __retres;
}

void main(void)
{
  short x;
  int tmp;
  x = (short)4;
  { /* sequence */
    tmp = f(42);
    x = (short)tmp;
  }
  main2();
  return;
}