mirror of
https://github.com/Z3Prover/z3
synced 2025-06-20 04:43:39 +00:00
pydoc regression
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1e21ea4645
commit
b8734273c8
2 changed files with 4 additions and 3 deletions
|
@ -1271,7 +1271,7 @@ def Distinct(*args):
|
||||||
>>> simplify(Distinct(x, y, z))
|
>>> simplify(Distinct(x, y, z))
|
||||||
Distinct(x, y, z)
|
Distinct(x, y, z)
|
||||||
>>> simplify(Distinct(x, y, z), blast_distinct=True)
|
>>> 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)
|
args = _get_args(args)
|
||||||
ctx = _ctx_from_ast_arg_list(args)
|
ctx = _ctx_from_ast_arg_list(args)
|
||||||
|
|
|
@ -89,10 +89,10 @@ struct unit_subsumption_tactic : public tactic {
|
||||||
m_context.push();
|
m_context.push();
|
||||||
for (unsigned j = 0; j < m_clause_count; ++j) {
|
for (unsigned j = 0; j < m_clause_count; ++j) {
|
||||||
if (i == 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)) {
|
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
|
m_context.push(); // force propagation
|
||||||
|
@ -114,6 +114,7 @@ struct unit_subsumption_tactic : public tactic {
|
||||||
m_is_deleted.reset();
|
m_is_deleted.reset();
|
||||||
m_is_deleted.resize(g->size());
|
m_is_deleted.resize(g->size());
|
||||||
m_deleted.reset();
|
m_deleted.reset();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
expr* new_bool(unsigned& count, expr_ref_vector& v, char const* name) {
|
expr* new_bool(unsigned& count, expr_ref_vector& v, char const* name) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue