1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Andrew Reynolds, Aina Niemetz |
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 |
|
* Implementation of quantifier module. |
14 |
|
*/ |
15 |
|
|
16 |
|
#include "theory/quantifiers/quant_module.h" |
17 |
|
|
18 |
|
using namespace cvc5::kind; |
19 |
|
|
20 |
|
namespace cvc5 { |
21 |
|
namespace theory { |
22 |
|
|
23 |
34169 |
QuantifiersModule::QuantifiersModule( |
24 |
|
quantifiers::QuantifiersState& qs, |
25 |
|
quantifiers::QuantifiersInferenceManager& qim, |
26 |
|
quantifiers::QuantifiersRegistry& qr, |
27 |
34169 |
quantifiers::TermRegistry& tr) |
28 |
34169 |
: d_qstate(qs), d_qim(qim), d_qreg(qr), d_treg(tr) |
29 |
|
{ |
30 |
34169 |
} |
31 |
|
|
32 |
24373 |
QuantifiersModule::QEffort QuantifiersModule::needsModel(Theory::Effort e) |
33 |
|
{ |
34 |
24373 |
return QEFFORT_NONE; |
35 |
|
} |
36 |
|
|
37 |
23830 |
eq::EqualityEngine* QuantifiersModule::getEqualityEngine() const |
38 |
|
{ |
39 |
23830 |
return d_qstate.getEqualityEngine(); |
40 |
|
} |
41 |
|
|
42 |
1560808 |
bool QuantifiersModule::areEqual(TNode n1, TNode n2) const |
43 |
|
{ |
44 |
1560808 |
return d_qstate.areEqual(n1, n2); |
45 |
|
} |
46 |
|
|
47 |
44460 |
bool QuantifiersModule::areDisequal(TNode n1, TNode n2) const |
48 |
|
{ |
49 |
44460 |
return d_qstate.areDisequal(n1, n2); |
50 |
|
} |
51 |
|
|
52 |
2909484 |
TNode QuantifiersModule::getRepresentative(TNode n) const |
53 |
|
{ |
54 |
2909484 |
return d_qstate.getRepresentative(n); |
55 |
|
} |
56 |
|
|
57 |
6017083 |
quantifiers::TermDb* QuantifiersModule::getTermDatabase() const |
58 |
|
{ |
59 |
6017083 |
return d_treg.getTermDatabase(); |
60 |
|
} |
61 |
|
|
62 |
166451 |
quantifiers::QuantifiersState& QuantifiersModule::getState() |
63 |
|
{ |
64 |
166451 |
return d_qstate; |
65 |
|
} |
66 |
|
|
67 |
|
quantifiers::QuantifiersInferenceManager& |
68 |
89737 |
QuantifiersModule::getInferenceManager() |
69 |
|
{ |
70 |
89737 |
return d_qim; |
71 |
|
} |
72 |
|
|
73 |
16 |
quantifiers::QuantifiersRegistry& QuantifiersModule::getQuantifiersRegistry() |
74 |
|
{ |
75 |
16 |
return d_qreg; |
76 |
|
} |
77 |
|
|
78 |
|
} // namespace theory |
79 |
29340 |
} // namespace cvc5 |