summaryrefslogtreecommitdiff
path: root/Test/AbsHoudini/houd8.bpl
blob: e5b88466fde10061993cfad0b3be5dc87023fff0 (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
// RUN: %boogie -noinfer -contractInfer -printAssignment -abstractHoudini:IA[ConstantProp] %s > %t
// RUN: %diff %s.expect %t
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