summaryrefslogtreecommitdiff
path: root/Test/AbsHoudini/pred2.bpl
blob: c9ac3f74ef8fe38d9d2dc6af504b0704da00f56f (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;
}