mirror of
https://github.com/Z3Prover/z3
synced 2026-06-19 07:06:28 +00:00
goal2sat: skip caching single-ref nodes without refcount perturbation
This commit is contained in:
parent
bcc3523b23
commit
0a3b87900c
1 changed files with 2 additions and 0 deletions
|
|
@ -260,6 +260,8 @@ struct goal2sat::imp : public sat::sat_internalizer {
|
|||
}
|
||||
|
||||
void cache(app* t, sat::literal l) override {
|
||||
if (t->get_ref_count() <= 1)
|
||||
return;
|
||||
force_push();
|
||||
SASSERT(!m_app2lit.contains(t));
|
||||
SASSERT(!m_lit2app.contains(l.index()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue