mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 17:45:32 +00:00
Skip try_parity for x==y and y==x
This commit is contained in:
parent
85715eb164
commit
05a1f4d096
1 changed files with 4 additions and 0 deletions
|
@ -644,6 +644,10 @@ namespace polysat {
|
|||
pdd X = s.var(x);
|
||||
if (!is_AxB_eq_0(x, axb_l_y, a, b, y))
|
||||
return false;
|
||||
if (a.is_max() && b.is_var()) // x == y, we propagate values in each direction and don't need a lemma
|
||||
return false;
|
||||
if (a.is_one() && (-b).is_var()) // y == x
|
||||
return false;
|
||||
signed_constraint b_is_odd = s.odd(b);
|
||||
signed_constraint a_is_odd = s.odd(a);
|
||||
signed_constraint x_is_odd = s.odd(X);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue