-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15a5df4
commit 9f53be9
Showing
4 changed files
with
20 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
// RUN: %parallel-boogie "%s" > "%t" | ||
// RUN: %diff "%s.expect" "%t" | ||
|
||
async left action {:layer 1} main_f''() | ||
var {:linear} g: One int; | ||
|
||
async left action {:layer 1} main_f''({:linear_in} l: One int) | ||
refines final using Inv; | ||
creates main_f''; | ||
{ | ||
if(*){ | ||
} | ||
else{ | ||
call create_async(main_f''()); | ||
} | ||
if (*) { | ||
} else{ | ||
call create_async(main_f''(l)); | ||
} | ||
} | ||
|
||
action {:layer 2} final() | ||
action {:layer 2} final({:linear_in} l: One int) | ||
{ | ||
|
||
// conclusion check succeeds due to disjointness assumption | ||
} | ||
|
||
action {:layer 1} Inv() | ||
action {:layer 1} Inv({:linear_in} l: One int) | ||
creates main_f''; | ||
{ | ||
if(*){ | ||
} | ||
else{ | ||
call create_async(main_f''()); | ||
call set_choice(main_f''()); | ||
} | ||
assert l != g; | ||
if (*) { | ||
} else { | ||
call create_async(main_f''(l)); | ||
call set_choice(main_f''(l)); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
|
||
Boogie program verifier finished with 4 verified, 0 errors | ||
Boogie program verifier finished with 5 verified, 0 errors |