mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
add shortcut to equality mk utility
This commit is contained in:
parent
55ab7778f4
commit
98fc8c99db
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
// degrades simplification
|
||||
// if (lhs->get_id() > rhs->get_id()) std::swap(lhs, rhs);
|
||||
if (m().are_equal(lhs, rhs))
|
||||
return m().mk_true();
|
||||
if (m().are_distinct(lhs, rhs))
|
||||
return m().mk_false();
|
||||
return m().mk_eq(lhs, rhs);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue