blob: 7fdf514ec7278783ca19a5b5f5611baa5e5957a3 (
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
|