summaryrefslogtreecommitdiff
path: root/Test/test20/TypeSynonyms2.bpl.print.expect
blob: 72b889d94ea492ccfa9e976361d781c3db7d3364 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

type Set a = [a]bool;

function union<a>(x: Set a, y: Set a) : Set a;

axiom (forall<a> x: Set a, y: Set a, z: a :: (x[z] || y[z]) == union(x, y)[z]);

const intSet0: Set int;

axiom (forall x: int :: intSet0[x] == (x == 0 || x == 2 || x == 3));

const intSet1: Set int;

axiom (forall x: int :: intSet1[x] == (x == -5 || x == 3));

procedure P();



implementation P()
{
    assert (forall x: int :: union(intSet0, intSet1)[x] == (x == -5 || x == 0 || x == 2 || x == 3));
}



type Set a = [a]bool;

function union<a>(x: Set a, y: Set a) : Set a;

axiom (forall<a> x: Set a, y: Set a, z: a :: x[z] || y[z] <==> union(x, y)[z]);

const intSet0: Set int;

axiom (forall x: int :: intSet0[x] <==> x == 0 || x == 2 || x == 3);

const intSet1: Set int;

axiom (forall x: int :: intSet1[x] <==> x == -5 || x == 3);

procedure P();



implementation P()
{
    assert (forall x: int :: union(intSet0, intSet1)[x] <==> x == -5 || x == 0 || x == 2 || x == 3);
}



Boogie program verifier finished with 0 verified, 0 errors