3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-16 07:45:27 +00:00

work on lemma from product to factors, and some renaming

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2018-08-30 18:58:26 +08:00
parent 18714ce020
commit 0644194fc9
5 changed files with 43 additions and 37 deletions

View file

@ -54,7 +54,7 @@ public:
lar_term(const vector<std::pair<mpq, unsigned>>& coeffs) {
for (const auto & p : coeffs) {
add_monomial(p.first, p.second);
add_coeff_var(p.first, p.second);
}
}
bool operator==(const lar_term & a) const { return false; } // take care not to create identical terms
@ -76,7 +76,7 @@ public:
if (it == nullptr) return;
const mpq & b = it->get_data().m_value;
for (unsigned it_j :li.m_index) {
add_monomial(- b * li.m_data[it_j], it_j);
add_coeff_var(- b * li.m_data[it_j], it_j);
}
m_coeffs.erase(j);
}