-
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.
added test for forward_trg_assertions
- Loading branch information
1 parent
24e60b3
commit 8a6b352
Showing
2 changed files
with
25 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
field f: Int | ||
|
||
|
||
func loc_id(x: Ref) | ||
returns (r: Ref) | ||
{ x } | ||
|
||
func t(x: Ref) | ||
returns (r: Bool) | ||
{ true } | ||
|
||
func guard(x: Ref, b: Bool) | ||
returns (r: Bool) | ||
{ true } | ||
|
||
proc p() { | ||
var b: Bool := true; | ||
|
||
if (b) { | ||
inhale forall x: Ref :: { t(x) } guard(x, b) ==> own(loc_id(x), f, 1, 1.0); | ||
} | ||
|
||
} |
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 @@ | ||
$ dune exec -- raven --shh ./forward_trg_assertions.rav | ||
Verification successful. |