1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Andrew Reynolds, Andres Noetzli, Haniel Barbosa |
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 theory of booleans. |
14 |
|
*/ |
15 |
|
|
16 |
|
#include "cvc5_private.h" |
17 |
|
|
18 |
|
#ifndef CVC5__THEORY__BOOLEANS__THEORY_BOOL_H |
19 |
|
#define CVC5__THEORY__BOOLEANS__THEORY_BOOL_H |
20 |
|
|
21 |
|
#include "context/context.h" |
22 |
|
#include "theory/booleans/proof_checker.h" |
23 |
|
#include "theory/booleans/theory_bool_rewriter.h" |
24 |
|
#include "theory/theory.h" |
25 |
|
|
26 |
|
namespace cvc5 { |
27 |
|
namespace theory { |
28 |
|
namespace booleans { |
29 |
|
|
30 |
18918 |
class TheoryBool : public Theory { |
31 |
|
public: |
32 |
|
TheoryBool(context::Context* c, |
33 |
|
context::UserContext* u, |
34 |
|
OutputChannel& out, |
35 |
|
Valuation valuation, |
36 |
|
const LogicInfo& logicInfo, |
37 |
|
ProofNodeManager* pnm = nullptr); |
38 |
|
|
39 |
|
/** get the official theory rewriter of this theory */ |
40 |
|
TheoryRewriter* getTheoryRewriter() override; |
41 |
|
/** get the proof checker of this theory */ |
42 |
|
ProofRuleChecker* getProofChecker() override; |
43 |
|
|
44 |
|
PPAssertStatus ppAssert(TrustNode tin, |
45 |
|
TrustSubstitutionMap& outSubstitutions) override; |
46 |
|
|
47 |
|
std::string identify() const override; |
48 |
|
|
49 |
|
private: |
50 |
|
/** The theory rewriter for this theory. */ |
51 |
|
TheoryBoolRewriter d_rewriter; |
52 |
|
/** Proof rule checker */ |
53 |
|
BoolProofRuleChecker d_checker; |
54 |
|
};/* class TheoryBool */ |
55 |
|
|
56 |
|
} // namespace booleans |
57 |
|
} // namespace theory |
58 |
|
} // namespace cvc5 |
59 |
|
|
60 |
|
#endif /* CVC5__THEORY__BOOLEANS__THEORY_BOOL_H */ |