blob: 52d491116686fdf1a5c16a11213677c88ca3febc (
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
|
// RUN: %boogie -noinfer -contractInfer -printAssignment "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
const {:existential true} b1:bool;
const {:existential true} b2:bool;
const {:existential true} b3:bool;
var myVar: int;
procedure foo(i:int)
modifies myVar;
ensures b1 ==> myVar>0;
ensures b2 ==> myVar==0;
ensures b3 ==> myVar<0;
{
myVar:=5;
}
// expected outcome: Correct
// expected assigment: b1->True,b2->False,b3->False
|