3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-20 02:00:22 +00:00

adjust cuts and branch (m_t and m_k) for terms

Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
Lev 2018-09-14 12:39:46 -07:00
parent 257ba6218f
commit 26764b076f
4 changed files with 24 additions and 7 deletions

View file

@ -2265,6 +2265,16 @@ void lar_solver::set_cut_strategy(unsigned cut_frequency) {
}
}
void lar_solver::adjust_cut_for_terms(const lar_term& t, mpq & rs) {
for (const auto& p : t) {
if (!is_term(p.var())) continue;
const lar_term & p_term = get_term(p.var());
if (p_term.m_v.is_zero()) continue;
rs -= p.coeff() * p_term.m_v;
}
}
} // namespace lp