mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 17:44:08 +00:00
This commit is contained in:
parent
dd1e0fc561
commit
af2cc460a9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue