3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-11 19:53:34 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-04 09:37:54 -08:00
parent 19ed465696
commit 67497ba897
2 changed files with 2 additions and 1 deletions

View file

@ -824,7 +824,7 @@ namespace opt {
rational val(c);
SASSERT(r.m_vars.empty());
r.m_vars.append(coeffs.size(), coeffs.c_ptr());
bool is_int_row = true;
bool is_int_row = !coeffs.empty();
std::sort(r.m_vars.begin(), r.m_vars.end(), var::compare());
for (auto const& c : coeffs) {
val += m_var2value[c.m_id] * c.m_coeff;

View file

@ -67,6 +67,7 @@ namespace qe {
CTRACE("qe", !m.is_true(val), tout << mk_pp(lit, m) << " := " << val << "\n";);
SASSERT(m.is_true(val)););
TRACE("opt", tout << mk_pp(lit, m) << " " << a.is_lt(lit) << " " << a.is_gt(lit) << "\n";);
bool is_not = m.is_not(lit, lit);
if (is_not) {
mul.neg();