Skip to content

Commit ae4a123

Browse files
authored
Merge pull request #683 from viperproject/carbon_pr_457
Update tests for Carbon exhale with well-definedness change (Carbon PR viperproject/carbon#457)
2 parents 8101fe1 + 1383e0f commit ae4a123

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

src/test/resources/all/issues/carbon/0213.vpr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ method test(r:Ref)
1111
requires P(r)
1212
{
1313
assert perm(r.next) == none
14+
//:: UnexpectedOutput(assert.failed:assertion.false, /carbon/issue/213/)
1415
assert (unfolding P(r) in perm(r.next) == write)
1516
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
field f: Ref
2+
3+
method m1() {
4+
var y: Ref
5+
var z: Ref
6+
inhale acc(y.f) && acc(z.f)
7+
exhale acc(y.f) && forperm x: Ref [x.f] :: x != z ==> 0/0 == 0/0
8+
}
9+
10+
method m2() {
11+
var x: Ref
12+
13+
inhale acc(x.f)
14+
15+
//:: ExpectedOutput(exhale.failed:division.by.zero)
16+
exhale acc(x.f) && (perm(x.f) == none ==> 0/0 == 0/0)
17+
}
18+
19+
method m3() {
20+
var x: Ref
21+
22+
inhale acc(x.f)
23+
exhale acc(x.f) && (perm(x.f) != none ==> 0/0 == 0/0)
24+
}

src/test/resources/examples/vmcai2016/linked-list-predicates.vpr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Any copyright is dedicated to the Public Domain.
22
// http://creativecommons.org/publicdomain/zero/1.0/
33

4+
//:: IgnoreFile(/carbon/issue/280/)
5+
46
/*****************************************************************
57
* List Nodes
68
*****************************************************************/

0 commit comments

Comments
 (0)