summaryrefslogtreecommitdiff
path: root/Test/z3api/boog6.bpl
blob: 05a63440546942d4659c92e306e92938d455c91d (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
type ref;
// types
type Wicket;

// consts
var favorite: Wicket;

// axioms
const b: bool;
axiom b==true;

// procedure
procedure SetToSeven(p: Wicket);
  modifies favorite
;

  ensures favorite==p;

implementation SetToSeven(l: Wicket) {
  favorite:=l;
}