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