mirror of
https://github.com/Z3Prover/z3
synced 2025-04-11 19:53:34 +00:00
parent
19ed465696
commit
67497ba897
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue