1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Mudathir Mohamed, Andrew Reynolds, Andres Noetzli |
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 |
|
* Built-in theory. |
14 |
|
*/ |
15 |
|
|
16 |
|
#include "cvc5_private.h" |
17 |
|
|
18 |
|
#ifndef CVC5__THEORY__BUILTIN__THEORY_BUILTIN_H |
19 |
|
#define CVC5__THEORY__BUILTIN__THEORY_BUILTIN_H |
20 |
|
|
21 |
|
#include "theory/builtin/proof_checker.h" |
22 |
|
#include "theory/builtin/theory_builtin_rewriter.h" |
23 |
|
#include "theory/theory.h" |
24 |
|
|
25 |
|
namespace cvc5 { |
26 |
|
namespace theory { |
27 |
|
namespace builtin { |
28 |
|
|
29 |
17908 |
class TheoryBuiltin : public Theory |
30 |
|
{ |
31 |
|
public: |
32 |
|
TheoryBuiltin(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 |
|
std::string identify() const override; |
45 |
|
|
46 |
|
/** finish initialization */ |
47 |
|
void finishInit() override; |
48 |
|
|
49 |
|
private: |
50 |
|
/** The theory rewriter for this theory. */ |
51 |
|
TheoryBuiltinRewriter d_rewriter; |
52 |
|
/** Proof rule checker */ |
53 |
|
BuiltinProofRuleChecker d_checker; |
54 |
|
}; /* class TheoryBuiltin */ |
55 |
|
|
56 |
|
} // namespace builtin |
57 |
|
} // namespace theory |
58 |
|
} // namespace cvc5 |
59 |
|
|
60 |
|
#endif /* CVC5__THEORY__BUILTIN__THEORY_BUILTIN_H */ |