blob: 02dd91c1ff118e142c666b36a243864c4fb6efa8 (
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
|
// 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;
function {:existential true} Assert(): bool;
var fooVar: int;
var xVar: int;
procedure foo()
modifies fooVar;
modifies xVar;
ensures b1() || fooVar==0;
ensures b3() || xVar<0;
{
fooVar:=5;
call bar();
}
procedure bar();
modifies xVar;
requires Assert() || fooVar!=5;
// expected assigment: Assert->true,b1->True,b2->false,b3->True
|