summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/ematching/inst_strategy.cpp
blob: 5e9899ec3866b4972ecbe9f007680953e113cf2c (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
/*********************                                                        */
/*! \file inst_strategy.cpp
 ** \verbatim
 ** Top contributors (to current version):
 **   Andrew Reynolds, Mathias Preiner
 ** This file is part of the CVC4 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.\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(inst::TriggerDatabase& td,
                           QuantifiersState& qs,
                           QuantifiersInferenceManager& qim,
                           QuantifiersRegistry& qr,
                           TermRegistry& tr)
    : 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::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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback