blob: f0478077fce99be31c7bcb8025b15669154b1ba7 (
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
27
28
29
|
function {:never_pattern true} f1(x:int) returns(int);
function {:never_pattern false} f2(x:int) returns(int);
function f3(x:int) returns(int);
procedure foo()
{
assume (forall x : int :: f1(x) > 0 && f2(x) > 0 && f3(x) > 0);
assert f2(3) > 0;
assert f3(4) > 0;
}
procedure bar()
{
assume (forall x : int :: f1(x) > 0 && f2(x) > 0 && f3(x) > 0 && f1(7) == 3);
assert f1(3) > 0;
}
procedure bar1()
{
assume (forall x : int :: {:nopats f2(x)} f1(x) > 0 && f2(x) > 0 && f3(x) > 0 && f1(7) == 3);
assert f1(3) > 0;
}
procedure bar2()
{
assume (forall x : int :: {:nopats f2(x)} f1(x) > 0 && f2(x) > 0 && f3(x) > 0 && f1(7) == 3);
assert f2(3) > 0;
}
|