summaryrefslogtreecommitdiff
path: root/Test/civl/termination.bpl
blob: 2d5542dd69de318567190e9048ca63de22a1b73b (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;
}