From 38a6e0685314eceddad4dac228b6ee7cd88fb1e6 Mon Sep 17 00:00:00 2001 From: Haniel Barbosa Date: Wed, 29 Aug 2018 11:06:05 -0500 Subject: [PATCH] fix bv total ops printing (#2365) --- src/printer/smt2/smt2_printer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index 9c3bdc539..4cdb65a88 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -560,9 +560,13 @@ void Smt2Printer::toStream(std::ostream& out, case kind::BITVECTOR_SUB: out << "bvsub "; break; case kind::BITVECTOR_NEG: out << "bvneg "; break; case kind::BITVECTOR_UDIV: out << "bvudiv "; break; - case kind::BITVECTOR_UDIV_TOTAL: out << "bvudiv_total "; break; + case kind::BITVECTOR_UDIV_TOTAL: + out << (isVariant_2_6(d_variant) ? "bvudiv " : "bvudiv_total "); + break; case kind::BITVECTOR_UREM: out << "bvurem "; break; - case kind::BITVECTOR_UREM_TOTAL: out << "bvurem_total "; break; + case kind::BITVECTOR_UREM_TOTAL: + out << (isVariant_2_6(d_variant) ? "bvurem " : "bvurem_total "); + break; case kind::BITVECTOR_SDIV: out << "bvsdiv "; break; case kind::BITVECTOR_SREM: out << "bvsrem "; break; case kind::BITVECTOR_SMOD: out << "bvsmod "; break; -- 2.30.2