summaryrefslogtreecommitdiff
path: root/Test/og/async.bpl
blob: aef12331621ccd366a7150b6b94cac3f4629337f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %boogie -noinfer -typeEncoding:m -useArrayTheory %s > %t
// RUN: %diff %s.expect %t
// XFAIL: *
var {:phase 1} x: int;
var {:phase 1} y: int;

procedure {:yields} {:phase 1} foo()
{
  assume x == y;
  x := x + 1;
  async call P();
  y := y + 1;
}

procedure {:yields} {:phase 1} P()
requires x != y;
{
  assert {:phase 1} x != y;
}