From: Haniel Barbosa Date: Wed, 29 Aug 2018 16:06:05 +0000 (-0500) Subject: fix bv total ops printing (#2365) X-Git-Tag: cvc5-1.0.0~4700 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38a6e0685314eceddad4dac228b6ee7cd88fb1e6;p=cvc5.git fix bv total ops printing (#2365) --- 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;