Skip to content

Commit

Permalink
added test for forward_trg_assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
EkanshdeepGupta committed Oct 31, 2024
1 parent 24e60b3 commit 8a6b352
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/ci/back-end/forward_trg_assertions.rav
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);
}

}
2 changes: 2 additions & 0 deletions test/ci/back-end/forward_trg_assertions.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$ dune exec -- raven --shh ./forward_trg_assertions.rav
Verification successful.

0 comments on commit 8a6b352

Please sign in to comment.