diff --git a/src/api/python/z3/z3.py b/src/api/python/z3/z3.py index 48da8ca3c..2dcf89927 100644 --- a/src/api/python/z3/z3.py +++ b/src/api/python/z3/z3.py @@ -1271,7 +1271,7 @@ def Distinct(*args): >>> simplify(Distinct(x, y, z)) Distinct(x, y, z) >>> simplify(Distinct(x, y, z), blast_distinct=True) - And(Not(x == y), Not(z == x), Not(z == y)) + And(Not(x == y), Not(x == z), Not(y == z)) """ args = _get_args(args) ctx = _ctx_from_ast_arg_list(args) diff --git a/src/smt/tactic/unit_subsumption_tactic.cpp b/src/smt/tactic/unit_subsumption_tactic.cpp index 7e960196d..9be3dd83a 100644 --- a/src/smt/tactic/unit_subsumption_tactic.cpp +++ b/src/smt/tactic/unit_subsumption_tactic.cpp @@ -89,10 +89,10 @@ struct unit_subsumption_tactic : public tactic { m_context.push(); for (unsigned j = 0; j < m_clause_count; ++j) { if (i == j) { - m_context.assert_expr(m.mk_not(m_clauses[j].get())); + m_context.assert_expr(m.mk_not(m_clauses.get(j))); } else if (!m_is_deleted.get(j)) { - m_context.assert_expr(m_clauses[j].get()); + m_context.assert_expr(m_clauses.get(j)); } } m_context.push(); // force propagation @@ -114,6 +114,7 @@ struct unit_subsumption_tactic : public tactic { m_is_deleted.reset(); m_is_deleted.resize(g->size()); m_deleted.reset(); + } expr* new_bool(unsigned& count, expr_ref_vector& v, char const* name) {