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:
parent
d08f8a2512
commit
228ef48628
2 changed files with 38 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue