mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
add shortcut to equality mk utility
This commit is contained in:
parent
55ab7778f4
commit
98fc8c99db
|
@ -690,8 +690,10 @@ br_status bool_rewriter::try_ite_value(app * ite, app * val, expr_ref & result)
|
||||||
|
|
||||||
|
|
||||||
app* bool_rewriter::mk_eq(expr* lhs, expr* rhs) {
|
app* bool_rewriter::mk_eq(expr* lhs, expr* rhs) {
|
||||||
// degrades simplification
|
if (m().are_equal(lhs, rhs))
|
||||||
// if (lhs->get_id() > rhs->get_id()) std::swap(lhs, rhs);
|
return m().mk_true();
|
||||||
|
if (m().are_distinct(lhs, rhs))
|
||||||
|
return m().mk_false();
|
||||||
return m().mk_eq(lhs, rhs);
|
return m().mk_eq(lhs, rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue