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 |
|
#include "theory/theory_inference_manager.h" |
25 |
|
#include "theory/theory_state.h" |
26 |
|
|
27 |
|
namespace cvc5 { |
28 |
|
namespace theory { |
29 |
|
namespace builtin { |
30 |
|
|
31 |
19706 |
class TheoryBuiltin : public Theory |
32 |
|
{ |
33 |
|
public: |
34 |
|
TheoryBuiltin(context::Context* c, |
35 |
|
context::UserContext* u, |
36 |
|
OutputChannel& out, |
37 |
|
Valuation valuation, |
38 |
|
const LogicInfo& logicInfo, |
39 |
|
ProofNodeManager* pnm = nullptr); |
40 |
|
|
41 |
|
/** get the official theory rewriter of this theory */ |
42 |
|
TheoryRewriter* getTheoryRewriter() override; |
43 |
|
/** get the proof checker of this theory */ |
44 |
|
ProofRuleChecker* getProofChecker() override; |
45 |
|
|
46 |
|
std::string identify() const override; |
47 |
|
|
48 |
|
/** finish initialization */ |
49 |
|
void finishInit() override; |
50 |
|
|
51 |
|
private: |
52 |
|
/** The theory rewriter for this theory. */ |
53 |
|
TheoryBuiltinRewriter d_rewriter; |
54 |
|
/** Proof rule checker */ |
55 |
|
BuiltinProofRuleChecker d_checker; |
56 |
|
/** A (default) theory state object */ |
57 |
|
TheoryState d_state; |
58 |
|
/** A (default) inference manager */ |
59 |
|
TheoryInferenceManager d_im; |
60 |
|
}; /* class TheoryBuiltin */ |
61 |
|
|
62 |
|
} // namespace builtin |
63 |
|
} // namespace theory |
64 |
|
} // namespace cvc5 |
65 |
|
|
66 |
|
#endif /* CVC5__THEORY__BUILTIN__THEORY_BUILTIN_H */ |