summaryrefslogtreecommitdiff
path: root/Test/civl/termination.bpl
blob: 7741fd19a45f3c21325faf11bc7980d4ecda52ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %boogie -noinfer -typeEncoding:m -useArrayTheory "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
procedure {:yields} {:layer 0} X();
ensures {:atomic} |{ A: return true; }|;

procedure {:yields} {:layer 0} Y();
ensures {:left} |{ A: return true; }|;

procedure {:yields} {:layer 1} main() {
  yield;
  call X();
  while (*)
  {
    call Y();
  }
  yield;
  assert {:layer 1} true;
}