mirror of
https://github.com/Z3Prover/z3
synced 2025-06-20 04:43:39 +00:00
parent
19ed465696
commit
67497ba897
2 changed files with 2 additions and 1 deletions
|
@ -824,7 +824,7 @@ namespace opt {
|
||||||
rational val(c);
|
rational val(c);
|
||||||
SASSERT(r.m_vars.empty());
|
SASSERT(r.m_vars.empty());
|
||||||
r.m_vars.append(coeffs.size(), coeffs.c_ptr());
|
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());
|
std::sort(r.m_vars.begin(), r.m_vars.end(), var::compare());
|
||||||
for (auto const& c : coeffs) {
|
for (auto const& c : coeffs) {
|
||||||
val += m_var2value[c.m_id] * c.m_coeff;
|
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";);
|
CTRACE("qe", !m.is_true(val), tout << mk_pp(lit, m) << " := " << val << "\n";);
|
||||||
SASSERT(m.is_true(val)););
|
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);
|
bool is_not = m.is_not(lit, lit);
|
||||||
if (is_not) {
|
if (is_not) {
|
||||||
mul.neg();
|
mul.neg();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue