3
0
Fork 0
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:
copilot-swe-agent[bot] 2026-06-16 20:58:35 +00:00 committed by GitHub
parent bcc3523b23
commit 0a3b87900c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()));