mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
fix bug for bit-vector optimization. Issue #919
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
899843b7cd
commit
41e6fafc58
|
@ -1002,7 +1002,8 @@ namespace opt {
|
||||||
TRACE("opt", tout << "Term does not evaluate " << term << "\n";);
|
TRACE("opt", tout << "Term does not evaluate " << term << "\n";);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!m_arith.is_numeral(val, r)) {
|
unsigned bv_size;
|
||||||
|
if (!m_arith.is_numeral(val, r) && !m_bv.is_numeral(val, r, bv_size)) {
|
||||||
TRACE("opt", tout << "model does not evaluate objective to a value\n";);
|
TRACE("opt", tout << "model does not evaluate objective to a value\n";);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue