summaryrefslogtreecommitdiff
path: root/Test/AbsHoudini/houd8.bpl
blob: 8be7f3db2bd030371c6aa9891542530ba4cd89e5 (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
function {:existential true} b1():bool;
function {:existential true} b2():bool;
function {: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 assigment: b1->false,b2->true,b3->true