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 |
19820 |
class TheoryBuiltin : public Theory |
32 |
|
{ |
33 |
|
public: |
34 |
|
TheoryBuiltin(Env& env, OutputChannel& out, Valuation valuation); |
35 |
|
|
36 |
|
/** get the official theory rewriter of this theory */ |
37 |
|
TheoryRewriter* getTheoryRewriter() override; |
38 |
|
/** get the proof checker of this theory */ |
39 |
|
ProofRuleChecker* getProofChecker() override; |
40 |
|
|
41 |
|
std::string identify() const override; |
42 |
|
|
43 |
|
/** finish initialization */ |
44 |
|
void finishInit() override; |
45 |
|
|
46 |
|
private: |
47 |
|
/** The theory rewriter for this theory. */ |
48 |
|
TheoryBuiltinRewriter d_rewriter; |
49 |
|
/** Proof rule checker */ |
50 |
|
BuiltinProofRuleChecker d_checker; |
51 |
|
/** A (default) theory state object */ |
52 |
|
TheoryState d_state; |
53 |
|
/** A (default) inference manager */ |
54 |
|
TheoryInferenceManager d_im; |
55 |
|
}; /* class TheoryBuiltin */ |
56 |
|
|
57 |
|
} // namespace builtin |
58 |
|
} // namespace theory |
59 |
|
} // namespace cvc5 |
60 |
|
|
61 |
|
#endif /* CVC5__THEORY__BUILTIN__THEORY_BUILTIN_H */ |