summaryrefslogtreecommitdiff
path: root/Test/AbsHoudini/pred2.bpl
blob: f34bf5d69c97d9b4938c1226e7548ef1606b46ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %boogie -noinfer -contractInfer -printAssignment -inlineDepth:1 -abstractHoudini:PredicateAbs "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
function {:existential true} b0(x:bool): bool;

var g: int;

procedure main()
modifies g;
ensures b0(g == old(g));
{
  if(*) { g := 5; }
  assume g != 5;
}