summaryrefslogtreecommitdiff
path: root/src/theory/sets
diff options
context:
space:
mode:
authorKshitij Bansal <kshitij@cs.nyu.edu>2014-10-10 18:08:56 -0400
committerKshitij Bansal <kshitij@cs.nyu.edu>2014-10-10 18:08:56 -0400
commit4e91f51cb0e58a9d2d8c1f12e387ca2455d307e4 (patch)
tree98c74cefa8faa2cbf7aced5c21c2d85e6d8fe665 /src/theory/sets
parent089d232454e89dc44a6ca2136f9b408c9335d8f1 (diff)
parent5527b0c00639f24b11d5e1d4c69050d908b82400 (diff)
Merge remote-tracking branch 'origin/1.4.x'
Diffstat (limited to 'src/theory/sets')
-rw-r--r--src/theory/sets/theory_sets_private.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/theory/sets/theory_sets_private.cpp b/src/theory/sets/theory_sets_private.cpp
index 630ae0651..57b761500 100644
--- a/src/theory/sets/theory_sets_private.cpp
+++ b/src/theory/sets/theory_sets_private.cpp
@@ -414,6 +414,7 @@ void TheorySetsPrivate::learnLiteral(TNode atom, bool polarity, Node reason) {
void TheorySetsPrivate::addSharedTerm(TNode n) {
Debug("sets") << "[sets] ThoerySetsPrivate::addSharedTerm( " << n << ")" << std::endl;
+ d_termInfoManager->addTerm(n);
d_equalityEngine.addTriggerTerm(n, THEORY_SETS);
}
@@ -673,7 +674,7 @@ bool TheorySetsPrivate::checkModel(const SettermElementsMap& settermElementsMap,
BOOST_FOREACH(TNode element, saved) { Debug("sets-model") << element << ", "; }
Debug("sets-model") << " }" << std::endl;
- if(S.getNumChildren() == 2) {
+ if(theory::kindToTheoryId(S.getKind()) == THEORY_SETS && S.getNumChildren() == 2) {
Elements cur;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback