summaryrefslogtreecommitdiff
path: root/Test/z3api/boog16.bpl
blob: a002c1663c7b610950a6bd1a4a99b8df54f12ae9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
type ref;
function choose(a:bool, b:int, c:int) returns (x:int);
axiom(forall a:bool, b:int, c:int :: 
  {choose(a,b,c)} !a ==> choose(a,b,c) == c);

var myInt:int;
procedure  main() 
modifies myInt;
ensures myInt==5;
{
  myInt:=4;
}