GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/bv/proof_checker.h Lines: 2 2 100.0 %
Date: 2021-05-22 Branches: 0 4 0.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   Mathias Preiner
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
 * Bit-Vector proof checker utility.
14
 */
15
16
#include "cvc5_private.h"
17
18
#ifndef CVC5__THEORY__BV__PROOF_CHECKER_H
19
#define CVC5__THEORY__BV__PROOF_CHECKER_H
20
21
#include "expr/node.h"
22
#include "expr/proof_checker.h"
23
#include "expr/proof_node.h"
24
#include "theory/bv/bitblast/simple_bitblaster.h"
25
26
namespace cvc5 {
27
namespace theory {
28
namespace bv {
29
30
/** The proof checker for bit-vectors. */
31
class BVProofRuleChecker : public ProofRuleChecker
32
{
33
 public:
34
15
  BVProofRuleChecker() = default;
35
15
  ~BVProofRuleChecker() = default;
36
37
  /** Register all rules owned by this rule checker into pc. */
38
  void registerTo(ProofChecker* pc) override;
39
40
 protected:
41
  /** Return the conclusion of the given proof step, or null if it is invalid */
42
  Node checkInternal(PfRule id,
43
                     const std::vector<Node>& children,
44
                     const std::vector<Node>& args) override;
45
};
46
47
}  // namespace bv
48
}  // namespace theory
49
}  // namespace cvc5
50
51
#endif /* CVC5__THEORY__BV__PROOF_CHECKER_H */