summaryrefslogtreecommitdiff
path: root/src/theory/sets/theory_sets_rewriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/sets/theory_sets_rewriter.cpp')
-rw-r--r--src/theory/sets/theory_sets_rewriter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/theory/sets/theory_sets_rewriter.cpp b/src/theory/sets/theory_sets_rewriter.cpp
index d603946c4..cb9b26731 100644
--- a/src/theory/sets/theory_sets_rewriter.cpp
+++ b/src/theory/sets/theory_sets_rewriter.cpp
@@ -272,13 +272,12 @@ RewriteResponse TheorySetsRewriter::postRewrite(TNode node) {
{
if(node[0].isConst()) {
std::set<Node> elements = NormalForm::getElementsFromNormalConstant(node[0]);
- return RewriteResponse(
- REWRITE_DONE, nm->mkConst(CONST_RATIONAL, Rational(elements.size())));
+ return RewriteResponse(REWRITE_DONE,
+ nm->mkConstInt(Rational(elements.size())));
}
else if (node[0].getKind() == kind::SET_SINGLETON)
{
- return RewriteResponse(REWRITE_DONE,
- nm->mkConst(CONST_RATIONAL, Rational(1)));
+ return RewriteResponse(REWRITE_DONE, nm->mkConstInt(Rational(1)));
}
else if (node[0].getKind() == kind::SET_UNION)
{
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback