Skip to content

Commit

Permalink
add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoAureliano committed Jul 4, 2024
1 parent 6f3f8da commit 7033967
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/scala/SMTLIB2Spec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ class SMTLIB2Spec extends AnyFlatSpec {
"issue-187b.ucl" should "verify all assertions." in {
SMTLIB2Spec.expectedFails("./test/issue-187b.ucl", 0)
}
"issue-255.ucl" should "faill single assertion." in {
SMTLIB2Spec.expectedFails("./test/issue-255.ucl", 1)
}
"test-redundant-assign.ucl" should "verify all assertions." in {
SMTLIB2Spec.expectedFails("./test/test-redundant-assign.ucl", 0)
}
Expand Down
17 changes: 17 additions & 0 deletions test/issue-255.ucl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module main {
type t;
datatype a = A(x: t);

var y: a;
var z: t;

init {
assert y.x == z;
}

control {
bmc(0);
check;
print_results;
}
}

0 comments on commit 7033967

Please sign in to comment.