mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
fix check for satisfiability before calling final_check
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7ef1e8a3de
commit
6d8daacdec
|
@ -1451,10 +1451,15 @@ namespace qe {
|
|||
if (assumption) m_solver.assert_expr(assumption);
|
||||
bool is_sat = false;
|
||||
lbool res = l_true;
|
||||
while (res == l_true) {
|
||||
while (true) {
|
||||
res = m_solver.check();
|
||||
if (res == l_true) is_sat = true;
|
||||
final_check();
|
||||
if (res == l_true) {
|
||||
is_sat = true;
|
||||
final_check();
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (res == l_undef) {
|
||||
free_vars.append(num_vars, vars);
|
||||
|
|
Loading…
Reference in a new issue