blob: b96c378da365589a922b9fcefe42ea8717f96495 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/******************************************************************************
* Top contributors (to current version):
* Andrew Reynolds, Mathias Preiner
*
* This file is part of the cvc5 project.
*
* Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
* in the top-level source directory and their institutional affiliations.
* All rights reserved. See the file COPYING in the top-level source
* directory for licensing information.
* ****************************************************************************
*
* Instantiation engine strategy base class.
*/
#include "theory/quantifiers/ematching/inst_strategy.h"
#include "smt/env.h"
#include "theory/quantifiers/quantifiers_state.h"
namespace cvc5 {
namespace theory {
namespace quantifiers {
InstStrategy::InstStrategy(Env& env,
inst::TriggerDatabase& td,
QuantifiersState& qs,
QuantifiersInferenceManager& qim,
QuantifiersRegistry& qr,
TermRegistry& tr)
: EnvObj(env), d_td(td), d_qstate(qs), d_qim(qim), d_qreg(qr), d_treg(tr)
{
}
InstStrategy::~InstStrategy() {}
void InstStrategy::presolve() {}
std::string InstStrategy::identify() const { return std::string("Unknown"); }
options::UserPatMode InstStrategy::getInstUserPatMode() const
{
if (options().quantifiers.userPatternsQuant
== options::UserPatMode::INTERLEAVE)
{
return d_qstate.getInstRounds() % 2 == 0 ? options::UserPatMode::USE
: options::UserPatMode::RESORT;
}
return options().quantifiers.userPatternsQuant;
}
} // namespace quantifiers
} // namespace theory
} // namespace cvc5
|