Skip to content

Commit 141f3ce

Browse files
committed
Add regression test for SMT unknown result
This adds a regression test for the SMT solver (here z3) returning a satisfiability result of "unknown" and reporting this to the user
1 parent dc975d5 commit 141f3ce

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

regression/cbmc/z3/Issue5977.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <assert.h>
2+
3+
void main()
4+
{
5+
int i;
6+
__CPROVER_assume(i % 2 == 0);
7+
assert(__CPROVER_exists {
8+
int j;
9+
i == j + j
10+
});
11+
}

regression/cbmc/z3/Issue5977.desc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE smt-backend broken-cprover-smt-backend
2+
Issue5977.c
3+
--z3
4+
^EXIT=(6|10)$
5+
^SIGNAL=0$
6+
^SMT2 solver returned "unknown"$
7+
--
8+
--
9+
This tests that an "unknown" result from the SMT solver is reported.

0 commit comments

Comments
 (0)