summaryrefslogtreecommitdiff
path: root/Test/z3api/boog8.bpl
blob: 121f27cf5cfed75f6dcab234dc862ae10d3f6f0e (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
type ref;
// types
type Wicket;
var favorite: Wicket;


const myBv: bv5;
axiom myBv==1bv2++2bv3;

const myBool: bool;
axiom myBool==true;


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

  ensures favorite==p;

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