Skip to content

Commit

Permalink
Merge pull request #767 from viperproject/meilers_carbon_missing_feat…
Browse files Browse the repository at this point in the history
…ures_tests

Updating test annotations
  • Loading branch information
marcoeilers authored Feb 2, 2024
2 parents a4ca89c + 09cf81b commit 7059da7
Show file tree
Hide file tree
Showing 22 changed files with 28 additions and 48 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/carbon/issue/257/)

field f: Int

method m1(xs: Set[Ref], y: Ref, zs: Seq[Ref]) {
Expand Down Expand Up @@ -31,6 +29,7 @@ method m2(xs: Set[Ref], ys: Set[Ref], z: Ref) {
assume y.f == 0
fold p1(y)
//:: MissingOutput(assert.failed:assertion.false, /Silicon/issue/000/)
//:: MissingOutput(assert.failed:assertion.false, /carbon/issue/000/)
//:: ExpectedOutput(assert.failed:assertion.false)
assert y != z
}
Expand All @@ -44,6 +43,7 @@ method m3(xs: Seq[Ref], y: Ref, zs: Seq[Ref]) {
assume !(z in xs)
package acc(z.f) --* acc(y.f)
assume forall x: Ref :: {acc(x.f) --* acc(y.f)} x in zs ==> x != y
//:: UnexpectedOutput(assert.failed:assertion.false, /carbon/issue/000/)
assert z != y
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/carbon/issue/255/)
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

field f: Int

Expand All @@ -19,6 +17,7 @@ method m2(xs: Set[Ref], ys: Set[Ref]) {
inhale forall x: Ref, y: Ref :: x in xs && y in ys ==> acc(x.f) --* acc(y.f)
inhale forall x: Ref, y: Ref :: {acc(x.f) --* acc(y.f)} x in xs && y in ys ==> x != y

//:: UnexpectedOutput(assert.failed:assertion.false, /carbon/issue/257/)
assert forperm x: Ref, y: Ref [acc(x.f) --* acc(y.f)] :: x != y
}

Expand All @@ -34,5 +33,6 @@ method m3(xs: Set[Ref], ys: Set[Ref]) {
assume b in ys

assert perm(acc(a.f) --* acc(b.f)) == write
//:: UnexpectedOutput(assert.failed:assertion.false, /carbon/issue/257/)
assert a != b
}
2 changes: 1 addition & 1 deletion src/test/resources/all/impure_assume/assume10QPwand.vpr
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/carbon/issue/255/)

field f: Int

Expand Down Expand Up @@ -44,6 +43,7 @@ method m(xs: Set[Ref], ys: Set[Ref], zs: Set[Ref],
assume CONTAINED(a, xs1, b, ys1, c, zs1)
assume CONTAINED(a, xs2, b, ys2, c, zs2)

//:: UnexpectedOutput(assert.failed:wand.not.found, /carbon/issue/257/)
assert WAND(a, b, c, q) && WAND(a, b, c, q)

//:: ExpectedOutput(assert.failed:assertion.false)
Expand Down
1 change: 0 additions & 1 deletion src/test/resources/all/issues/silicon/0388.vpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//:: IgnoreFile(/carbon/issue/294/)

predicate P()

Expand Down
2 changes: 0 additions & 2 deletions src/test/resources/all/issues/silicon/0493c.vpr
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/silver/issue/488/)
//:: IgnoreFile(/carbon/issue/244/)
//:: IgnoreFile(/carbon/issue/257/)

field val: Int

Expand Down
1 change: 0 additions & 1 deletion src/test/resources/all/issues/silicon/0496.vpr
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/carbon/issue/257/)
//:: IgnoreFile(/silver/issue/478/)

field val: Int
Expand Down
3 changes: 0 additions & 3 deletions src/test/resources/all/issues/silicon/0678b.vpr
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/carbon/issue/257/)


field f: Int


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/Carbon/issue/243/)
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

field f: Int

method m1(x: Ref, y: Ref) {
Expand All @@ -17,6 +16,7 @@ method m2(x: Ref, y: Ref, z: Ref) {
inhale p2(z, y)
inhale x != z

//:: UnexpectedOutput(assert.failed:assertion.false, /carbon/issue/243/)
assert !forperm a: Ref [p2(a,y)] :: a == z
unfold p2(x,y)
assert forperm a: Ref [p2(a,y)] :: a == z
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/Carbon/issue/243/)
field f: Int

method m1(x: Ref, y: Ref, z: Ref) {
Expand All @@ -15,6 +14,7 @@ field f: Int
inhale acc(g.f)
inhale forall a: Ref :: a == g ==> acc(a.f) && a.f < 3

//:: UnexpectedOutput(assert.failed:assertion.false, /carbon/issue/243/)
assert !forperm a: Ref [a.f] :: a.f > 3

inhale forall a: Ref :: a == x || a == y ==> a.f == 4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/Carbon/issue/243/)
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

field f: Int

method m1(x: Ref, y: Ref) {
Expand All @@ -22,6 +21,7 @@ method m2(x: Ref, y: Ref, z: Ref) {
inhale acc(z.f) --* acc(y.f)
inhale forperm a: Ref, b: Ref [acc(a.f) --* acc(b.f)] :: a.f > 0 && b.f < 0

//:: UnexpectedOutput(assert.failed:assertion.false, /carbon/issue/243/)
assert x.f > 0
assert y.f < 0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/Carbon/issue/243/)
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

field f: Int
field g: Int

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/Carbon/issue/243/)
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

field f: Int
field g: Int

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/Carbon/issue/243/)
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

field f: Int
field g: Int

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/Carbon/issue/243/)
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

field f: Int
field g: Int

Expand Down
1 change: 0 additions & 1 deletion src/test/resources/quantifiedcombinations/independence.vpr
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/carbon/issue/216/)
field f: Int
field g: Int

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/carbon/issue/216/)
field f: Int
field g: Int

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/carbon/issue/257/)

field f: Int

Expand Down
1 change: 0 additions & 1 deletion src/test/resources/wands/new_syntax/ApplyingBranching.vpr
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/carbon/issue/244/)
field b: Bool
field f: Int

Expand Down
1 change: 0 additions & 1 deletion src/test/resources/wands/new_syntax/ApplyingExpression.vpr
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/carbon/issue/244/)
//:: IgnoreFile(/silver/issue/478/)

field f: Int
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/carbon/issue/244/)
field f: Int
field g: Int

Expand Down
2 changes: 0 additions & 2 deletions src/test/resources/wands/regression/snapshots.vpr
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/carbon/issue/244/)
field f: Int
field g: Int
field h: Bool
Expand All @@ -23,7 +22,6 @@ method test01(x: Ref)
unfold acc(P(x))
apply A
assert acc(x.g) && ((x.f) + (x.g) > 0)
//:: UnexpectedOutput(assert.failed:assertion.false, /carbon/issue/110/)
assert x.g == 1
}

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/publicdomain/zero/1.0/

//:: IgnoreFile(/carbon/issue/244/)
//:: IgnoreFile(/silver/issue/478/)

field f: Ref
Expand Down

0 comments on commit 7059da7

Please sign in to comment.