blob: fe771b4e79dcc2775553cac3bd06d56ea2ef9fe7 (
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
|
/********************* */
/*! \file inst_strategy.cpp
** \verbatim
** Top contributors (to current version):
** Andrew Reynolds
** This file is part of the CVC4 project.
** Copyright (c) 2009-2020 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.\endverbatim
**
** \brief Instantiation engine strategy base class
**/
#include "theory/quantifiers/ematching/inst_strategy.h"
#include "theory/quantifiers/quantifiers_state.h"
namespace CVC4 {
namespace theory {
namespace quantifiers {
InstStrategy::InstStrategy(QuantifiersEngine* qe,
QuantifiersState& qs,
QuantifiersInferenceManager& qim,
QuantifiersRegistry& qr)
: d_quantEngine(qe), d_qstate(qs), d_qim(qim), d_qreg(qr)
{
}
InstStrategy::~InstStrategy() {}
void InstStrategy::presolve() {}
std::string InstStrategy::identify() const { return std::string("Unknown"); }
options::UserPatMode InstStrategy::getInstUserPatMode() const
{
if (options::userPatternsQuant() == options::UserPatMode::INTERLEAVE)
{
return d_qstate.getInstRounds() % 2 == 0 ? options::UserPatMode::USE
: options::UserPatMode::RESORT;
}
return options::userPatternsQuant();
}
} // namespace quantifiers
} // namespace theory
} // namespace CVC4
|