GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/theory/quantifiers/quant_module.cpp Lines: 23 25 92.0 %
Date: 2021-03-22 Branches: 7 16 43.8 %

Line Exec Source
1
/*********************                                                        */
2
/*! \file quant_module.cpp
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Andrew Reynolds
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 Implementation of quantifier module
13
 **/
14
15
#include "theory/quantifiers/quant_module.h"
16
#include "theory/quantifiers/inst_match.h"
17
#include "theory/quantifiers/term_database.h"
18
#include "theory/quantifiers/term_util.h"
19
#include "theory/quantifiers_engine.h"
20
21
using namespace CVC4::kind;
22
23
namespace CVC4 {
24
namespace theory {
25
26
24141
QuantifiersModule::QuantifiersModule(
27
    quantifiers::QuantifiersState& qs,
28
    quantifiers::QuantifiersInferenceManager& qim,
29
    quantifiers::QuantifiersRegistry& qr,
30
24141
    QuantifiersEngine* qe)
31
24141
    : d_quantEngine(qe), d_qstate(qs), d_qim(qim), d_qreg(qr)
32
{
33
24141
}
34
35
15041
QuantifiersModule::QEffort QuantifiersModule::needsModel(Theory::Effort e)
36
{
37
15041
  return QEFFORT_NONE;
38
}
39
40
19998
eq::EqualityEngine* QuantifiersModule::getEqualityEngine() const
41
{
42
19998
  return d_qstate.getEqualityEngine();
43
}
44
45
2368355
bool QuantifiersModule::areEqual(TNode n1, TNode n2) const
46
{
47
2368355
  return d_qstate.areEqual(n1, n2);
48
}
49
50
35346
bool QuantifiersModule::areDisequal(TNode n1, TNode n2) const
51
{
52
35346
  return d_qstate.areDisequal(n1, n2);
53
}
54
55
2991645
TNode QuantifiersModule::getRepresentative(TNode n) const
56
{
57
2991645
  return d_qstate.getRepresentative(n);
58
}
59
60
1731
QuantifiersEngine* QuantifiersModule::getQuantifiersEngine() const
61
{
62
1731
  return d_quantEngine;
63
}
64
65
6638069
quantifiers::TermDb* QuantifiersModule::getTermDatabase() const
66
{
67
6638069
  return d_quantEngine->getTermDatabase();
68
}
69
70
189350
quantifiers::QuantifiersState& QuantifiersModule::getState()
71
{
72
189350
  return d_qstate;
73
}
74
75
quantifiers::QuantifiersInferenceManager&
76
QuantifiersModule::getInferenceManager()
77
{
78
  return d_qim;
79
}
80
81
16
quantifiers::QuantifiersRegistry& QuantifiersModule::getQuantifiersRegistry()
82
{
83
16
  return d_qreg;
84
}
85
86
}  // namespace theory
87
26676
} /* namespace CVC4 */