3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 20:05:51 +00:00

a bug fix is the sign lemma

Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
Lev 2019-02-07 12:06:56 -08:00 committed by Lev Nachmanson
parent 158a3db330
commit 6071e08822
2 changed files with 66 additions and 11 deletions

View file

@ -259,9 +259,11 @@ struct vars_equivalence {
explain(j, exp);
}
unsigned get_abs_root_for_var(const rational & v) const {
lpvar get_abs_root_for_var(const rational & v) const {
SASSERT(!v.is_neg());
return *(m_vars_by_abs_values.find(v)->second.begin());
lpvar j = *(m_vars_by_abs_values.find(v)->second.begin());
SASSERT(abs(m_vvr(j)) == v);
return j;
}
void register_var_with_abs_val(unsigned j, const rational& val) {