summaryrefslogtreecommitdiff
path: root/Test/z3api/boog8.bpl
blob: f027e9f6f5cc2d162497202bcfb0b2e4eb0cab74 (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;
}