mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
minor tweaks to gomory and reset n3 within loop (but the entire function is dead code).
This commit is contained in:
parent
924c296704
commit
35bc522dae
3 changed files with 12 additions and 4 deletions
|
@ -338,14 +338,14 @@ public:
|
|||
for (auto const& [c, v] : pol)
|
||||
m_lcm_den = lcm(m_lcm_den, denominator(c));
|
||||
lp_assert(m_lcm_den.is_pos());
|
||||
bool int_row = true;
|
||||
bool int_row = all_of(pol, [&](auto const& kv) { return is_int(kv.second); });
|
||||
TRACE("gomory_cut_detail", tout << "pol.size() > 1 den: " << m_lcm_den << std::endl;);
|
||||
|
||||
if (!m_lcm_den.is_one()) {
|
||||
// normalize coefficients of integer parameters to be integers.
|
||||
for (auto & [c,v]: pol) {
|
||||
c *= m_lcm_den;
|
||||
SASSERT(!is_int(v) || c.is_int());
|
||||
int_row &= is_int(v);
|
||||
}
|
||||
m_k *= m_lcm_den;
|
||||
}
|
||||
|
|
|
@ -5658,7 +5658,9 @@ namespace polynomial {
|
|||
if (!is_zero(Gh3) && d1%2 == 0)
|
||||
Gh3 = neg(Gh3);
|
||||
}
|
||||
|
||||
else
|
||||
n3 = 0;
|
||||
|
||||
// Compute hi
|
||||
if (i > 1) {
|
||||
g1 = lc(G1, x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue