mirror of
https://github.com/Z3Prover/z3
synced 2025-08-21 02:30:23 +00:00
swap
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
262acc0556
commit
0f7ff2a3d0
2 changed files with 15 additions and 10 deletions
|
@ -127,9 +127,14 @@ public:
|
|||
br_status mk_ite_core(expr * c, expr * t, expr * e, expr_ref & result);
|
||||
br_status mk_not_core(expr * t, expr_ref & result);
|
||||
|
||||
app* mk_eq(expr* lhs, expr* rhs) {
|
||||
if (lhs->get_id() > rhs->get_id()) std::swap(lhs, rhs);
|
||||
return m().mk_eq(lhs, rhs);
|
||||
}
|
||||
|
||||
void mk_eq(expr * lhs, expr * rhs, expr_ref & result) {
|
||||
if (mk_eq_core(lhs, rhs, result) == BR_FAILED)
|
||||
result = m().mk_eq(lhs, rhs);
|
||||
result = mk_eq(lhs, rhs);
|
||||
}
|
||||
void mk_iff(expr * lhs, expr * rhs, expr_ref & result) { mk_eq(lhs, rhs, result); }
|
||||
void mk_xor(expr * lhs, expr * rhs, expr_ref & result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue