1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Andrew Reynolds, Mathias Preiner |
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 |
|
* Instantiation engine strategy base class. |
14 |
|
*/ |
15 |
|
|
16 |
|
#include "theory/quantifiers/ematching/inst_strategy.h" |
17 |
|
|
18 |
|
#include "theory/quantifiers/quantifiers_state.h" |
19 |
|
|
20 |
|
namespace cvc5 { |
21 |
|
namespace theory { |
22 |
|
namespace quantifiers { |
23 |
|
|
24 |
12078 |
InstStrategy::InstStrategy(inst::TriggerDatabase& td, |
25 |
|
QuantifiersState& qs, |
26 |
|
QuantifiersInferenceManager& qim, |
27 |
|
QuantifiersRegistry& qr, |
28 |
12078 |
TermRegistry& tr) |
29 |
12078 |
: d_td(td), d_qstate(qs), d_qim(qim), d_qreg(qr), d_treg(tr) |
30 |
|
{ |
31 |
12078 |
} |
32 |
12078 |
InstStrategy::~InstStrategy() {} |
33 |
13552 |
void InstStrategy::presolve() {} |
34 |
|
std::string InstStrategy::identify() const { return std::string("Unknown"); } |
35 |
|
|
36 |
129876 |
options::UserPatMode InstStrategy::getInstUserPatMode() const |
37 |
|
{ |
38 |
129876 |
if (options::userPatternsQuant() == options::UserPatMode::INTERLEAVE) |
39 |
|
{ |
40 |
|
return d_qstate.getInstRounds() % 2 == 0 ? options::UserPatMode::USE |
41 |
|
: options::UserPatMode::RESORT; |
42 |
|
} |
43 |
129876 |
return options::userPatternsQuant(); |
44 |
|
} |
45 |
|
|
46 |
|
} // namespace quantifiers |
47 |
|
} // namespace theory |
48 |
27735 |
} // namespace cvc5 |