From: Morgan Deters Date: Thu, 27 Jun 2013 18:42:28 +0000 (-0400) Subject: Minor printer cleanup for SMT-LIBv2 symbols "div" and "mod". X-Git-Tag: cvc5-1.0.0~7287^2~84 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba893aaccd2f60168db6a50eccd947d7cf7f3069;p=cvc5.git Minor printer cleanup for SMT-LIBv2 symbols "div" and "mod". Thanks to Alex Horn for raising the issue on the CVC-BUGS mailing list. --- diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index 007b4ea82..ae787f42f 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -257,7 +257,7 @@ void Smt2Printer::toStream(std::ostream& out, TNode n, case kind::INTS_DIVISION_TOTAL: case kind::INTS_MODULUS: case kind::INTS_MODULUS_TOTAL: - case kind::ABS: out << smtKindString(k) << " "; break; + case kind::ABS: case kind::IS_INTEGER: case kind::TO_INTEGER: case kind::TO_REAL: out << smtKindString(k) << " "; break; @@ -447,10 +447,10 @@ static string smtKindString(Kind k) throw() { case kind::GEQ: return ">="; case kind::DIVISION: case kind::DIVISION_TOTAL: return "/"; - case kind::INTS_DIVISION: - case kind::INTS_DIVISION_TOTAL: return "div"; - case kind::INTS_MODULUS: - case kind::INTS_MODULUS_TOTAL: return "mod"; + case kind::INTS_DIVISION: return "div"; + case kind::INTS_DIVISION_TOTAL: return "INTS_DIVISION_TOTAL"; + case kind::INTS_MODULUS: return "mod"; + case kind::INTS_MODULUS_TOTAL: return "INTS_MODULUS_TOTAL"; case kind::ABS: return "abs"; case kind::IS_INTEGER: return "is_int"; case kind::TO_INTEGER: return "to_int";