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
|
// RUN: %dafny /compile:0 /dprint:"%t.dprint" /autoTriggers:1 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
// Imported from bug 76. LitInt would be triggered on, causing matching failures.
predicate P(x:int, y:int)
lemma L1(x:int, y:int)
requires y == 2;
requires forall i :: P(i, 3);
{
assert P(x, y + 1);
}
lemma L2(x:int, y:int)
requires y == 2;
requires forall i {:trigger P(i, 3)} :: P(i, 3);
{
assert P(x, y + 1);
}
lemma L3(x:int, y:int)
requires y == 2;
requires forall i :: P(i, 3);
{
var dummy := 3;
assert P(x, y + 1);
}
lemma L4(x:int, y:int)
requires y == 2;
requires forall i, j :: j == 3 ==> P(i, j);
{
assert P(x, y + 1);
}
// Local Variables:
// dafny-prover-local-args: ("/autoTriggers:1")
// End:
|