-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Civl] Add support for skip async calls (#923)
Co-authored-by: Shaz Qadeer <[email protected]>
- Loading branch information
1 parent
02fd4a3
commit b5ea010
Showing
6 changed files
with
110 additions
and
50 deletions.
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
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,26 @@ | ||
// RUN: %parallel-boogie "%s" > "%t" | ||
// RUN: %diff "%s.expect" "%t" | ||
|
||
yield procedure {:layer 1} Good() | ||
{ | ||
async call {:skip} P_A(); | ||
} | ||
|
||
atomic action {:layer 1} A() | ||
asserts true; | ||
{} | ||
|
||
yield procedure {:layer 0} P_A(); | ||
refines A; | ||
|
||
yield procedure {:layer 1} Bad() | ||
{ | ||
async call {:skip} P_B(); | ||
} | ||
|
||
atomic action {:layer 1} B() | ||
asserts false; | ||
{} | ||
|
||
yield procedure {:layer 0} P_B(); | ||
refines B; |
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,5 @@ | ||
refinement3.bpl(22,1): Error: this gate of B could not be proved | ||
Execution trace: | ||
refinement3.bpl(18,11): anon0 | ||
|
||
Boogie program verifier finished with 3 verified, 1 error |