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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
/********************* */
/*! \file theory_sets.cpp
** \verbatim
** Original author: Kshitij Bansal
** Major contributors: none
** Minor contributors (to current version): none
** This file is part of the CVC4 project.
** Copyright (c) 2009-2014 New York University and The University of Iowa
** See the file COPYING in the top-level source directory for licensing
** information.\endverbatim
**
** \brief Sets theory.
**
** Sets theory.
**/
#include "theory/sets/theory_sets.h"
#include "theory/sets/theory_sets_private.h"
namespace CVC4 {
namespace theory {
namespace sets {
TheorySets::TheorySets(context::Context* c,
context::UserContext* u,
OutputChannel& out,
Valuation valuation,
const LogicInfo& logicInfo) :
Theory(THEORY_SETS, c, u, out, valuation, logicInfo),
d_internal(new TheorySetsPrivate(*this, c, u)) {
}
TheorySets::~TheorySets() {
delete d_internal;
}
void TheorySets::addSharedTerm(TNode n) {
d_internal->addSharedTerm(n);
}
void TheorySets::check(Effort e) {
if (done() && !fullEffort(e)) {
return;
}
TimerStat::CodeTimer checkTimer(d_checkTime);
d_internal->check(e);
}
void TheorySets::collectModelInfo(TheoryModel* m, bool fullModel) {
d_internal->collectModelInfo(m, fullModel);
}
void TheorySets::computeCareGraph() {
d_internal->computeCareGraph();
}
Node TheorySets::explain(TNode node) {
return d_internal->explain(node);
}
EqualityStatus TheorySets::getEqualityStatus(TNode a, TNode b) {
return d_internal->getEqualityStatus(a, b);
}
Node TheorySets::getModelValue(TNode node) {
return d_internal->getModelValue(node);
}
void TheorySets::preRegisterTerm(TNode node) {
d_internal->preRegisterTerm(node);
}
void TheorySets::propagate(Effort e) {
d_internal->propagate(e);
}
void TheorySets::setMasterEqualityEngine(eq::EqualityEngine* eq) {
d_internal->setMasterEqualityEngine(eq);
}
}/* CVC4::theory::sets namespace */
}/* CVC4::theory namespace */
}/* CVC4 namespace */
|