Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * This file is part of the cvc5 project. 3 : : * 4 : : * Copyright (c) 2009-2026 by the authors listed in the file AUTHORS 5 : : * in the top-level source directory and their institutional affiliations. 6 : : * All rights reserved. See the file COPYING in the top-level source 7 : : * directory for licensing information. 8 : : * **************************************************************************** 9 : : * 10 : : * Trust proof generator utility. 11 : : */ 12 : : 13 : : #include "proof/trust_proof_generator.h" 14 : : 15 : : #include "proof/proof.h" 16 : : 17 : : namespace cvc5::internal { 18 : : 19 : 10705 : TrustProofGenerator::TrustProofGenerator(Env& env, 20 : : TrustId id, 21 : 10705 : const std::vector<Node>& args) 22 : 10705 : : EnvObj(env), d_tid(id), d_pargs(args) 23 : : { 24 : 10705 : } 25 : : 26 : 21394 : TrustProofGenerator::~TrustProofGenerator() {} 27 : : 28 : 216 : std::shared_ptr<ProofNode> TrustProofGenerator::getProofFor(Node fact) 29 : : { 30 : 432 : CDProof cdp(d_env); 31 : 216 : cdp.addTrustedStep(fact, d_tid, {}, d_pargs); 32 : 432 : return cdp.getProofFor(fact); 33 : 216 : } 34 : : 35 : 0 : std::string TrustProofGenerator::identify() const 36 : : { 37 : 0 : return "TrustProofGenerator"; 38 : : } 39 : : 40 : : } // namespace cvc5::internal