blob: c975ec9abf0d047db52008c578c59e1ce0605a12 (
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
|
// RUN: %dafny /compile:0 "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
predicate G<X>(f:X->bool)
reads f.reads;
requires forall x :: f.requires(x) && f(x);
{
true
}
predicate H()
{
G((x:int) => true)
}
predicate P1<X>(m:map<X,bool>)
requires forall x :: x in m ==> m[x];
{
true
}
predicate P2(m:map<int,bool>)
requires forall x :: x in m ==> m[x];
{
P1(map x:int | x in m :: true)
}
|