From: Guy Date: Wed, 20 Jul 2016 02:33:15 +0000 (-0700) Subject: Bug fix X-Git-Tag: cvc5-1.0.0~6040^2~41 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fa28b63b3345d64de3a1ac55b2e41600c678424;p=cvc5.git Bug fix --- diff --git a/src/proof/proof_manager.cpp b/src/proof/proof_manager.cpp index 09fc5dc8b..cb6eee330 100644 --- a/src/proof/proof_manager.cpp +++ b/src/proof/proof_manager.cpp @@ -321,7 +321,12 @@ void ProofManager::getLemmasInUnsatCore(theory::TheoryId theory, std::vectorgetProofRecipe(lemma); + // TODO: we should be able to drop the "haveProofRecipe" check. + // however, there are some rewrite issues with the arith solver, resulting + // in non-registered recipes. For now we assume no one is requesting arith lemmas. + LemmaProofRecipe recipe; + if ( getCnfProof()->haveProofRecipe(lemma) ) + recipe = getCnfProof()->getProofRecipe(lemma); if (recipe.simpleLemma() && recipe.getTheory() == theory) { lemmas.push_back(recipe.getOriginalLemma());