diff --git a/src/proof/alethe/alethe_post_processor.cpp b/src/proof/alethe/alethe_post_processor.cpp index 047900eb94e..ef9e405bd9d 100644 --- a/src/proof/alethe/alethe_post_processor.cpp +++ b/src/proof/alethe/alethe_post_processor.cpp @@ -2075,13 +2075,11 @@ bool AletheProofPostprocessCallback::maybeReplacePremiseProof(Node premise, // of EQ_RESOLVE. NodeManager* nm = NodeManager::currentNM(); Trace("alethe-proof") << "\n"; - CVC5_UNUSED AletheRule premiseProofRule = - getAletheRule(premisePf->getArguments()[0]); - CVC5_UNUSED AletheRule premiseChildProofRule = - getAletheRule(premisePf->getChildren()[0]->getArguments()[0]); + AletheRule premiseProofRule = getAletheRule(premisePf->getArguments()[0]); if ((premiseProofRule == AletheRule::CONTRACTION - || premiseProofRule == AletheRule::REORDERING) - && premiseChildProofRule == AletheRule::OR) + || premiseProofRule == AletheRule::REORDERING) + && getAletheRule(premisePf->getChildren()[0]->getArguments()[0]) + == AletheRule::OR) { // get great grand child std::shared_ptr premiseChildPf =