blob: faa1a65d8fad3485dc5896906e30060c638fecf9 (
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
|
// RUN: %boogie -noinfer -typeEncoding:m -useArrayTheory -doModSetAnalysis "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
const GcTid:int;
procedure {:yields} {:phase 100} Initialize({:cnst "tid"} tid:int)
requires{:phase 100} tid == GcTid;
{
yield;
assert{:phase 100} tid == GcTid;
async call GarbageCollect(tid);
yield;
assert{:phase 100} tid == GcTid;
async call GarbageCollect(tid);
yield;
assert{:phase 100} tid == GcTid;
yield;
assert{:phase 100} tid == GcTid;
}
procedure {:yields} {:phase 100} GarbageCollect({:cnst "tid"} tid:int)
requires{:phase 100} tid == GcTid;
{
yield;
assert{:phase 100} tid == GcTid;
}
|