blob: 48afd41d284da816fc11b16a66d818b27128b178 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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;
}
|