3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-27 16:38:45 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-01-07 17:31:04 -08:00
parent 60ef60dff8
commit ac7d07ca58
2 changed files with 9 additions and 6 deletions

View file

@ -80,8 +80,8 @@ namespace smt {
expr * arg2 = m_app2->get_arg(i);
if (arg1 != arg2) {
app * eq = ctx.mk_eq_atom(arg1, arg2);
app * neq = m.mk_not(eq);
if (std::find(lits.begin(), lits.end(), neq) == lits.end()) {
app_ref neq(m.mk_not(eq), m);
if (std::find(lits.begin(), lits.end(), neq.get()) == lits.end()) {
lits.push_back(neq);
prs.push_back(mk_hypothesis(m, eq, false, arg1, arg2));
}
@ -398,7 +398,7 @@ namespace smt {
}
literal dyn_ack_manager::mk_eq(expr * n1, expr * n2) {
app_ref eq(m_context.mk_eq_atom(n1, n2), m);
app_ref eq(m.mk_eq(n1, n2), m);
m_context.internalize(eq, true);
literal l = m_context.get_literal(eq);
TRACE("dyn_ack", tout << "eq:\n" << mk_pp(eq, m) << "\nliteral: ";