Fix context for proofs of instantiations (#6890)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Thu, 15 Jul 2021 18:45:12 +0000 (13:45 -0500)
committerGitHub <noreply@github.com>
Thu, 15 Jul 2021 18:45:12 +0000 (18:45 +0000)
Caught by a regression on proof-new, where an instantiation was the symmetric equality of an instantiation on a previous call to check-sat. Proofs of instantiation should be user-context dependent.

src/theory/quantifiers/instantiate.cpp

index f4cd8cb6927ce859b8dfce5693ce97deaf6bd5c2..268d1371f59fcf6fe5b8b8252ed5e867a069e3b8 100644 (file)
@@ -56,7 +56,9 @@ Instantiate::Instantiate(QuantifiersState& qs,
       d_pnm(pnm),
       d_insts(qs.getUserContext()),
       d_c_inst_match_trie_dom(qs.getUserContext()),
-      d_pfInst(pnm ? new CDProof(pnm) : nullptr)
+      d_pfInst(
+          pnm ? new CDProof(pnm, qs.getUserContext(), "Instantiate::pfInst")
+              : nullptr)
 {
 }