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

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   Andrew Reynolds, Aina Niemetz
4
 *
5
 * This file is part of the cvc5 project.
6
 *
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.
11
 * ****************************************************************************
12
 *
13
 * Implementation of quantifier module.
14
 */
15
16
#include "theory/quantifiers/quant_module.h"
17
18
using namespace cvc5::kind;
19
20
namespace cvc5 {
21
namespace theory {
22
23
32760
QuantifiersModule::QuantifiersModule(
24
    quantifiers::QuantifiersState& qs,
25
    quantifiers::QuantifiersInferenceManager& qim,
26
    quantifiers::QuantifiersRegistry& qr,
27
32760
    quantifiers::TermRegistry& tr)
28
32760
    : d_qstate(qs), d_qim(qim), d_qreg(qr), d_treg(tr)
29
{
30
32760
}
31
32
21848
QuantifiersModule::QEffort QuantifiersModule::needsModel(Theory::Effort e)
33
{
34
21848
  return QEFFORT_NONE;
35
}
36
37
20627
eq::EqualityEngine* QuantifiersModule::getEqualityEngine() const
38
{
39
20627
  return d_qstate.getEqualityEngine();
40
}
41
42
2393508
bool QuantifiersModule::areEqual(TNode n1, TNode n2) const
43
{
44
2393508
  return d_qstate.areEqual(n1, n2);
45
}
46
47
35138
bool QuantifiersModule::areDisequal(TNode n1, TNode n2) const
48
{
49
35138
  return d_qstate.areDisequal(n1, n2);
50
}
51
52
2999142
TNode QuantifiersModule::getRepresentative(TNode n) const
53
{
54
2999142
  return d_qstate.getRepresentative(n);
55
}
56
57
6742977
quantifiers::TermDb* QuantifiersModule::getTermDatabase() const
58
{
59
6742977
  return d_treg.getTermDatabase();
60
}
61
62
194998
quantifiers::QuantifiersState& QuantifiersModule::getState()
63
{
64
194998
  return d_qstate;
65
}
66
67
quantifiers::QuantifiersInferenceManager&
68
189818
QuantifiersModule::getInferenceManager()
69
{
70
189818
  return d_qim;
71
}
72
73
16
quantifiers::QuantifiersRegistry& QuantifiersModule::getQuantifiersRegistry()
74
{
75
16
  return d_qreg;
76
}
77
78
}  // namespace theory
79
28194
}  // namespace cvc5