mirror of
https://github.com/Z3Prover/z3
synced 2025-07-18 10:30:44 +00:00
a fix in the initialization
Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
parent
1ff81ba26e
commit
1a788d24fd
1 changed files with 7 additions and 3 deletions
|
@ -710,9 +710,13 @@ struct solver::imp {
|
||||||
}
|
}
|
||||||
|
|
||||||
void init_abs_val_table() {
|
void init_abs_val_table() {
|
||||||
// register only those that a factors in a monomial
|
// register those vars that a factors in a monomial
|
||||||
for (unsigned j = 0; j < m_lar_solver.number_of_vars(); j++) {
|
for (auto & p : m_monomials_containing_var) {
|
||||||
m_vars_equivalence.register_var_with_abs_val(j, vvr(j));
|
m_vars_equivalence.register_var_with_abs_val(p.first, vvr(p.first));
|
||||||
|
}
|
||||||
|
// register monomial vars too
|
||||||
|
for (auto & p : m_var_to_its_monomial) {
|
||||||
|
m_vars_equivalence.register_var_with_abs_val(p.first, vvr(p.first));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue