mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
#6364 - remove option of redundant clauses from internalization
gc-ing definitions leads to unsoundness when they are not replayed. Instead of attempting to replay definitions theory internalization is irredundant by default. This is also the old solver behavior where TH_LEMMA is essentially never used, but is valid for top-level theory lemmas.
This commit is contained in:
parent
c8e1e180ea
commit
5c7eaec566
29 changed files with 133 additions and 147 deletions
|
@ -189,7 +189,6 @@ namespace euf {
|
|||
}
|
||||
|
||||
void ackerman::add_cc(expr* _a, expr* _b) {
|
||||
flet<bool> _is_redundant(ctx.m_is_redundant, true);
|
||||
app* a = to_app(_a);
|
||||
app* b = to_app(_b);
|
||||
TRACE("ack", tout << mk_pp(a, m) << " " << mk_pp(b, m) << "\n";);
|
||||
|
@ -213,7 +212,6 @@ namespace euf {
|
|||
void ackerman::add_eq(expr* a, expr* b, expr* c) {
|
||||
if (a == c || b == c)
|
||||
return;
|
||||
flet<bool> _is_redundant(ctx.m_is_redundant, true);
|
||||
sat::literal lits[3];
|
||||
expr_ref eq1(ctx.mk_eq(a, c), m);
|
||||
expr_ref eq2(ctx.mk_eq(b, c), m);
|
||||
|
@ -223,7 +221,7 @@ namespace euf {
|
|||
lits[1] = ~ctx.mk_literal(eq2);
|
||||
lits[2] = ctx.mk_literal(eq3);
|
||||
th_proof_hint* ph = ctx.mk_tc_proof_hint(lits);
|
||||
ctx.s().mk_clause(3, lits, sat::status::th(true, m.get_basic_family_id(), ph));
|
||||
ctx.s().add_clause(3, lits, sat::status::th(true, m.get_basic_family_id(), ph));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue