summaryrefslogtreecommitdiff
path: root/src/printer/cvc/cvc_printer.cpp
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2012-05-15 19:01:19 +0000
committerTim King <taking@cs.nyu.edu>2012-05-15 19:01:19 +0000
commit488ae3f42d9d3e06978e11a42d1d47e76072f797 (patch)
treef466859889ceee9947e20d695fd35f99065277f8 /src/printer/cvc/cvc_printer.cpp
parentfe2088f892af594765fc50d8cc9f2b4f87286b7c (diff)
This commit removes the CONST_INTEGER kind from nodes. This code comes from the branch arithmetic/remove_const_int.
Diffstat (limited to 'src/printer/cvc/cvc_printer.cpp')
-rw-r--r--src/printer/cvc/cvc_printer.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/printer/cvc/cvc_printer.cpp b/src/printer/cvc/cvc_printer.cpp
index 857513fa3..1f147479d 100644
--- a/src/printer/cvc/cvc_printer.cpp
+++ b/src/printer/cvc/cvc_printer.cpp
@@ -94,18 +94,13 @@ void CvcPrinter::toStream(std::ostream& out, TNode n, int depth, bool types, boo
break;
case kind::CONST_RATIONAL: {
const Rational& rat = n.getConst<Rational>();
- if(rat.getDenominator() == 1) {
+ if(rat.isIntegral()) {
out << rat.getNumerator();
} else {
out << '(' << rat.getNumerator() << '/' << rat.getDenominator() << ')';
}
break;
}
- case kind::CONST_INTEGER: {
- const Integer& num = n.getConst<Integer>();
- out << num;
- break;
- }
case kind::CONST_PSEUDOBOOLEAN: {
const Pseudoboolean& num = n.getConst<Pseudoboolean>();
out << num;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback