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

more derived lemmas

Signed-off-by: Lev <levnach@hotmail.com>
This commit is contained in:
Lev 2019-02-05 16:37:08 -08:00 committed by Lev Nachmanson
parent d08f8a2512
commit 228ef48628
2 changed files with 38 additions and 14 deletions

View file

@ -195,7 +195,12 @@ struct vars_equivalence {
SASSERT(e.m_i == j || e.m_j == j);
return e.m_i == j? e.m_j : e.m_i;
}
bool vars_are_equiv(lpvar a, lpvar b) const {
return map_to_root(a) == map_to_root(b);
}
// Finds the root var which is equivalent to j.
// The sign is flipped if needed
lpvar map_to_root(lpvar j, rational& sign) const {