summaryrefslogtreecommitdiff
path: root/Test/houdini/houd8.bpl
blob: 1df79b48baf1b9fb11aa5c92f35cdae9a8853c8d (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