mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
parent
19ed465696
commit
67497ba897
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue