From d652155ae013f36a1ee17653a8e458baad2d9c2c Mon Sep 17 00:00:00 2001 From: Checkmate50 Date: Mon, 6 Jun 2016 23:14:18 -0600 Subject: Merging complete. Everything looks good *crosses fingers* --- Test/linear/async-bug.bpl | 72 +++++++++++++++++++++++------------------------ 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'Test/linear/async-bug.bpl') diff --git a/Test/linear/async-bug.bpl b/Test/linear/async-bug.bpl index ad7020ad..4692f267 100644 --- a/Test/linear/async-bug.bpl +++ b/Test/linear/async-bug.bpl @@ -1,36 +1,36 @@ -// RUN: %boogie -noinfer -typeEncoding:m -useArrayTheory -doModSetAnalysis "%s" > "%t" -// RUN: %diff "%s.expect" "%t" -const GcTid:int; - -procedure {:yields} {:layer 100} Initialize({:linear "tid"} tid:int) -requires{:layer 100} tid == GcTid; -{ - yield; - assert{:layer 100} tid == GcTid; - - call GarbageCollect(tid); - - yield; - assert{:layer 100} tid == GcTid; - - async call GarbageCollect(tid); - - yield; - assert{:layer 100} tid == GcTid; - - async call GarbageCollect(tid); - - yield; - assert{:layer 100} tid == GcTid; - - yield; - assert{:layer 100} tid == GcTid; -} - -procedure {:yields} {:layer 100} GarbageCollect({:linear "tid"} tid:int) -requires{:layer 100} tid == GcTid; -{ - yield; - assert{:layer 100} tid == GcTid; -} - +// RUN: %boogie -noinfer -typeEncoding:m -useArrayTheory -doModSetAnalysis "%s" > "%t" +// RUN: %diff "%s.expect" "%t" +const GcTid:int; + +procedure {:yields} {:layer 100} Initialize({:linear "tid"} tid:int) +requires{:layer 100} tid == GcTid; +{ + yield; + assert{:layer 100} tid == GcTid; + + call GarbageCollect(tid); + + yield; + assert{:layer 100} tid == GcTid; + + async call GarbageCollect(tid); + + yield; + assert{:layer 100} tid == GcTid; + + async call GarbageCollect(tid); + + yield; + assert{:layer 100} tid == GcTid; + + yield; + assert{:layer 100} tid == GcTid; +} + +procedure {:yields} {:layer 100} GarbageCollect({:linear "tid"} tid:int) +requires{:layer 100} tid == GcTid; +{ + yield; + assert{:layer 100} tid == GcTid; +} + -- cgit v1.2.3