GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/proof/assumption_proof_generator.h Lines: 1 1 100.0 %
Date: 2021-09-29 Branches: 0 0 0.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   Andrew Reynolds
4
 *
5
 * This file is part of the cvc5 project.
6
 *
7
 * Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
8
 * in the top-level source directory and their institutional affiliations.
9
 * All rights reserved.  See the file COPYING in the top-level source
10
 * directory for licensing information.
11
 * ****************************************************************************
12
 *
13
 * The assumption proof generator class.
14
 */
15
16
#include "cvc5_private.h"
17
18
#ifndef CVC5__PROOF__ASSUMPTION_PROOF_GENERATOR_H
19
#define CVC5__PROOF__ASSUMPTION_PROOF_GENERATOR_H
20
21
#include "proof/proof_generator.h"
22
23
namespace cvc5 {
24
25
class ProofNodeManager;
26
27
/**
28
 * A proof generator which always returns (ASSUME f) for getProofFor(f).
29
 */
30
658
class AssumptionProofGenerator : public ProofGenerator
31
{
32
 public:
33
  AssumptionProofGenerator(ProofNodeManager* pnm);
34
  /** Get the proof for formula f */
35
  std::shared_ptr<ProofNode> getProofFor(Node f) override;
36
  /** Identify this generator (for debugging, etc..) */
37
  std::string identify() const override;
38
39
 private:
40
  /** The proof manager, used for allocating new ProofNode objects */
41
  ProofNodeManager* d_pnm;
42
};
43
44
}  // namespace cvc5
45
46
#endif /* CVC5__PROOF__ASSUMPTION_PROOF_GENERATOR_H */