Minor printer cleanup for SMT-LIBv2 symbols "div" and "mod".
authorMorgan Deters <mdeters@cs.nyu.edu>
Thu, 27 Jun 2013 18:42:28 +0000 (14:42 -0400)
committerMorgan Deters <mdeters@cs.nyu.edu>
Thu, 27 Jun 2013 20:46:22 +0000 (16:46 -0400)
Thanks to Alex Horn for raising the issue on the CVC-BUGS mailing list.

src/printer/smt2/smt2_printer.cpp

index 007b4ea82a00b5c876f1cbc5d9fe41d2147309c1..ae787f42f2976befa46dfd856e35b09bb0da29d1 100644 (file)
@@ -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";