summaryrefslogtreecommitdiff
path: root/Test/optimization/Optimization1.bpl
blob: 60df1edde8c02158da1094eb4729e7475a72eb20 (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
// RUN: %boogie /noVerify /printModel:4 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

procedure test0(n: int)
{
    assume {:minimize} true;
}

procedure test1(n: int)
{
    assume {:maximize} true;
}

procedure test2(n: int)
{
    assume {:minimize n, n} true;
}

procedure test3(n: int)
{
    assume {:maximize n, n} true;
}

procedure test4(n: int)
{
    assume {:minimize true} true;
}

procedure test5(n: int)
{
    assume {:maximize true} true;
}