blob: fcd1ab087aea4b5d961e75d7ffa560a9b1837008 (
plain)
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
|
var x: int;
var y: int;
procedure p();
modifies x;
implementation p()
{
A:
assume {:inferred} true;
assume -1 <= x;
assume {:inferred} -1 <= x;
goto B, E;
E:
assume {:inferred} true;
assume {:inferred} true;
return;
B:
assume {:inferred} -1 <= x;
assume x < y;
assume {:inferred} -1 <= x && 0 <= y;
goto C, E;
C:
assume {:inferred} -1 <= x && 0 <= y;
x := x * x;
assume {:inferred} x < 2 && 0 <= y;
goto D, E;
D:
assume {:inferred} x < 2 && 0 <= y;
x := y;
assume {:inferred} 0 <= x && 0 <= y;
return;
}
Boogie program verifier finished with 0 verified, 0 errors
|