#include <iostream>
+#include "options/proof_options.h"
+
using namespace CVC4::kind;
namespace CVC4 {
{
NodeManager* nm = NodeManager::currentNM();
std::vector<TypeNode> types;
+ d_conclusionMarker = nm->mkBoundVar(":conclusion", nm->mkSExprType(types));
d_argsMarker = nm->mkBoundVar(":args", nm->mkSExprType(types));
}
std::vector<Node> children;
// add proof rule
children.push_back(getOrMkPfRuleVariable(cur->getRule()));
+ if (options::proofPrintConclusion())
+ {
+ children.push_back(d_conclusionMarker);
+ children.push_back(cur->getResult());
+ }
const std::vector<std::shared_ptr<ProofNode>>& pc = cur->getChildren();
for (const std::shared_ptr<ProofNode>& cp : pc)
{
std::map<PfRule, Node> d_pfrMap;
/** Dummy ":args" marker */
Node d_argsMarker;
+ /** Dummy ":conclusion" marker */
+ Node d_conclusionMarker;
/** map proof nodes to their s-expression */
std::map<const ProofNode*, Node> d_pnMap;
/**
id = "PROOF"
name = "Proof"
header = "options/proof_options.h"
+
+[[option]]
+ name = "proofPrintConclusion"
+ category = "regular"
+ long = "proof-print-conclusion"
+ type = "bool"
+ default = "false"
+ read_only = true
+ help = "Print conclusion of proof steps when printing AST"