-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #683 from viperproject/carbon_pr_457
Update tests for Carbon exhale with well-definedness change (Carbon PR viperproject/carbon#457)
- Loading branch information
Showing
3 changed files
with
27 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
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,24 @@ | ||
field f: Ref | ||
|
||
method m1() { | ||
var y: Ref | ||
var z: Ref | ||
inhale acc(y.f) && acc(z.f) | ||
exhale acc(y.f) && forperm x: Ref [x.f] :: x != z ==> 0/0 == 0/0 | ||
} | ||
|
||
method m2() { | ||
var x: Ref | ||
|
||
inhale acc(x.f) | ||
|
||
//:: ExpectedOutput(exhale.failed:division.by.zero) | ||
exhale acc(x.f) && (perm(x.f) == none ==> 0/0 == 0/0) | ||
} | ||
|
||
method m3() { | ||
var x: Ref | ||
|
||
inhale acc(x.f) | ||
exhale acc(x.f) && (perm(x.f) != none ==> 0/0 == 0/0) | ||
} |
2 changes: 2 additions & 0 deletions
2
src/test/resources/examples/vmcai2016/linked-list-predicates.vpr
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