forked from boogie-org/boogie
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generalized async calls to allow their atomic action specification to be
left mover
- Loading branch information
Shaz Qadeer
committed
Sep 6, 2016
1 parent
ba4f9fa
commit 8d5cdd2
Showing
4 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// RUN: %boogie -noinfer -useArrayTheory "%s" > "%t" | ||
// RUN: %diff "%s.expect" "%t" | ||
var {:layer 0} x: int; | ||
|
||
procedure {:yields} {:layer 0,1} Incr(); | ||
ensures {:left} |{ L: x := x + 1; return true; }|; | ||
|
||
procedure {:yields} {:layer 1} AsyncIncr() | ||
ensures {:left} |{ L: x := x + 1; return true; }|; | ||
{ | ||
yield; | ||
async call Incr(); | ||
yield; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
Boogie program verifier finished with 2 verified, 0 errors |