blob: c1dba49c680ddfcfc5ebd126e9c8074faec30cff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// RUN: %boogie /printModel:4 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
procedure test0()
{
var x: int;
assume x < 42;
assume {:maximize x} true; // TODO(wuestholz): Currently, Z3 does not produce a model with "x == 41" here. It seems like this is due to the fact that it returns "unknown".
assert (exists y: int :: y < x);
}
procedure test1()
{
var x: int;
assume x < 42;
assume {:maximize x} true;
assert (forall y: int :: y < x);
}
|