summaryrefslogtreecommitdiff
path: root/Test/z3api/boog1.bpl
blob: 6b6cce754b871af95b5648cfb54710a2223605fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
type Wicket;
const w: Wicket;
var favorite: Wicket;

function age(Wicket) returns (int);

axiom age(w)==7;

procedure NewFavorite(p: Wicket);
  modifies favorite
;

  ensures favorite==p;

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