File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change @@ -154,6 +154,12 @@ decision_proceduret::resultt smt2_dect::read_result(std::istream &in)
154
154
res=resultt::D_SATISFIABLE;
155
155
else if (parsed.id ()==" unsat" )
156
156
res=resultt::D_UNSATISFIABLE;
157
+ else if (parsed.id () == " unknown" )
158
+ {
159
+ messaget log{message_handler};
160
+ log.error () << " SMT2 solver returned \" unknown\" " << messaget::eom;
161
+ return decision_proceduret::resultt::D_ERROR;
162
+ }
157
163
else if (
158
164
parsed.id ().empty () && parsed.get_sub ().size () == 1 &&
159
165
parsed.get_sub ().front ().get_sub ().size () == 2 )
You can’t perform that action at this time.
0 commit comments