summaryrefslogtreecommitdiff
path: root/Test/civl/chris6.bpl
blob: a0aecf1e810809ee36a60cbd15418be226a13b15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %boogie -noinfer -useArrayTheory "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
procedure{:extern}{:yields}{:layer 1,2} P1();
  requires{:layer 1} false;
  ensures{:atomic} |{ A: return true; }|;

procedure{:yields}{:layer 2,3} P2()
  ensures{:atomic} |{ A: return true; }|;
{
  assert{:layer 1} false;
  yield;
  call P1();
  yield;
}