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 "proof/proof_checker.h" |
23 |
|
#include "proof/proof_node.h" |
24 |
|
|
25 |
|
namespace cvc5 { |
26 |
|
namespace theory { |
27 |
|
namespace bv { |
28 |
|
|
29 |
|
/** The proof checker for bit-vectors. */ |
30 |
|
class BVProofRuleChecker : public ProofRuleChecker |
31 |
|
{ |
32 |
|
public: |
33 |
9851 |
BVProofRuleChecker() = default; |
34 |
9851 |
~BVProofRuleChecker() = default; |
35 |
|
|
36 |
|
/** Register all rules owned by this rule checker into pc. */ |
37 |
|
void registerTo(ProofChecker* pc) override; |
38 |
|
|
39 |
|
protected: |
40 |
|
/** Return the conclusion of the given proof step, or null if it is invalid */ |
41 |
|
Node checkInternal(PfRule id, |
42 |
|
const std::vector<Node>& children, |
43 |
|
const std::vector<Node>& args) override; |
44 |
|
}; |
45 |
|
|
46 |
|
} // namespace bv |
47 |
|
} // namespace theory |
48 |
|
} // namespace cvc5 |
49 |
|
|
50 |
|
#endif /* CVC5__THEORY__BV__PROOF_CHECKER_H */ |