summaryrefslogtreecommitdiff
path: root/Test/test2/SelectiveChecking.bpl
blob: 188243c8ab1c1e4b3fdba821bbd555cb7865abc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// RUN: %boogie -noinfer "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
procedure {:selective_checking} foo()
{
  var x, y, z : int;

  assert x < y;
  assert y < z;
  assume {:start_checking_here} true;
  assert x < z;
}

procedure {:selective_checking} foo_fail1()
{
  var x, y, z : int;

  assert x < y;
  assume {:start_checking_here} true;
  assert x < z;
}

procedure {:selective_checking} foo_fail2()
{
  var x, y, z : int;

  assert x < y;
  
  if (*) {
    assume {:start_checking_here} true;
  }

  assert x < z;
}

procedure foo_no_selch()
{
  var x, y, z : int;

  assert x < y;
  assume {:start_checking_here} true;
  assert x < z;
}