3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-11-03 08:52:48 -07:00
parent dd1e0fc561
commit af2cc460a9

View file

@ -254,14 +254,16 @@ namespace smt {
ctx.internalize_assertions();
lit = mk_literal(fn);
}
else if (m.is_true(r) || m.is_false(r))
std::swap(l, r);
else if (m.is_true(l))
lit = mk_literal(r);
else if (m.is_false(l))
lit = ~mk_literal(r);
else
lit = mk_eq(l, r, false);
else {
if (m.is_true(r) || m.is_false(r))
std::swap(l, r);
if (m.is_true(l))
lit = mk_literal(r);
else if (m.is_false(l))
lit = ~mk_literal(r);
else
lit = mk_eq(l, r, false);
}
ctx.mark_as_relevant(lit);
return lit;
}