blob: 20e90843d5f7d432192ffbf693084e6c53cff8e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// RUN: %dafny /compile:0 /print:"%t.print" /dprint:"%t.dprint" /autoTriggers:1 /printTooltips "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
// This tests shows that, since quantifiers are split, it becomes possible to know more precisely what part of a precondition did not hold at the call site.
method f()
requires forall y :: y > 0 && y < 0 {
}
method g(x: int) {
f();
}
function gf(): int
requires forall y :: y > 0 && y < 0 {
1
}
function gg(x: int): int {
gf()
}
|