GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/quantifiers/ematching/inst_strategy.cpp Lines: 10 13 76.9 %
Date: 2021-03-23 Branches: 3 16 18.8 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file inst_strategy.cpp
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Andrew Reynolds, Mathias Preiner
6
 ** This file is part of the CVC4 project.
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.\endverbatim
11
 **
12
 ** \brief Instantiation engine strategy base class
13
 **/
14
15
#include "theory/quantifiers/ematching/inst_strategy.h"
16
17
#include "theory/quantifiers/quantifiers_state.h"
18
19
namespace CVC4 {
20
namespace theory {
21
namespace quantifiers {
22
23
11650
InstStrategy::InstStrategy(QuantifiersEngine* qe,
24
                           QuantifiersState& qs,
25
                           QuantifiersInferenceManager& qim,
26
11650
                           QuantifiersRegistry& qr)
27
11650
    : d_quantEngine(qe), d_qstate(qs), d_qim(qim), d_qreg(qr)
28
{
29
11650
}
30
11644
InstStrategy::~InstStrategy() {}
31
12322
void InstStrategy::presolve() {}
32
std::string InstStrategy::identify() const { return std::string("Unknown"); }
33
34
124671
options::UserPatMode InstStrategy::getInstUserPatMode() const
35
{
36
124671
  if (options::userPatternsQuant() == options::UserPatMode::INTERLEAVE)
37
  {
38
    return d_qstate.getInstRounds() % 2 == 0 ? options::UserPatMode::USE
39
                                             : options::UserPatMode::RESORT;
40
  }
41
124671
  return options::userPatternsQuant();
42
}
43
44
}  // namespace quantifiers
45
}  // namespace theory
46
26685
}  // namespace CVC4