From 76c6a103fb68f75e65201da5bab572f4630cd207 Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Fri, 22 Oct 2021 17:21:02 -0500 Subject: [PATCH] Remove stale pointer to proof node manager from skolemize utility (#7471) Issue was introduced when cleaning this utility to the new style (to not take explicit pnm). --- src/theory/quantifiers/skolemize.cpp | 5 +++-- src/theory/quantifiers/skolemize.h | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/theory/quantifiers/skolemize.cpp b/src/theory/quantifiers/skolemize.cpp index 830847b74..ccd9afe3e 100644 --- a/src/theory/quantifiers/skolemize.cpp +++ b/src/theory/quantifiers/skolemize.cpp @@ -62,6 +62,7 @@ TrustNode Skolemize::process(Node q) if (isProofEnabled() && !options::dtStcInduction() && !options::intWfInduction()) { + ProofNodeManager * pnm = d_env.getProofNodeManager(); // if using proofs and not using induction, we use the justified // skolemization NodeManager* nm = NodeManager::currentNM(); @@ -71,12 +72,12 @@ TrustNode Skolemize::process(Node q) Node existsq = nm->mkNode(EXISTS, echildren); Node res = skm->mkSkolemize(existsq, d_skolem_constants[q], "skv"); Node qnot = q.notNode(); - CDProof cdp(d_pnm); + CDProof cdp(pnm); cdp.addStep(res, PfRule::SKOLEMIZE, {qnot}, {}); std::shared_ptr pf = cdp.getProofFor(res); std::vector assumps; assumps.push_back(qnot); - std::shared_ptr pfs = d_pnm->mkScope({pf}, assumps); + std::shared_ptr pfs = pnm->mkScope({pf}, assumps); lem = nm->mkNode(IMPLIES, qnot, res); d_epg->setProofFor(lem, pfs); pg = d_epg.get(); diff --git a/src/theory/quantifiers/skolemize.h b/src/theory/quantifiers/skolemize.h index 604bc60e4..f1fb78e8d 100644 --- a/src/theory/quantifiers/skolemize.h +++ b/src/theory/quantifiers/skolemize.h @@ -149,8 +149,6 @@ class Skolemize : protected EnvObj std::unordered_map> d_skolem_constants; /** map from quantified formulas to their skolemized body */ std::unordered_map d_skolem_body; - /** Pointer to the proof node manager */ - ProofNodeManager* d_pnm; /** Eager proof generator for skolemization lemmas */ std::unique_ptr d_epg; }; -- 2.30.2