another fix for array-store-all printing
authorMorgan Deters <mdeters@cs.nyu.edu>
Mon, 10 Jun 2013 03:11:55 +0000 (23:11 -0400)
committerMorgan Deters <mdeters@cs.nyu.edu>
Mon, 10 Jun 2013 03:11:55 +0000 (23:11 -0400)
src/printer/smt2/smt2_printer.cpp

index d9717f9b70247b248fe94390c41371742e96c2db..f4abee292e127420c6c251fd8d48195c1a09dd04 100644 (file)
@@ -172,6 +172,12 @@ void Smt2Printer::toStream(std::ostream& out, TNode n,
       break;
     }
 
+    case kind::STORE_ALL: {
+      ArrayStoreAll asa = n.getConst<ArrayStoreAll>();
+      out << "(__array_store_all__ " << asa.getType() << " " << asa.getExpr() << ")";
+      break;
+    }
+
     case kind::SUBRANGE_TYPE: {
       const SubrangeBounds& bounds = n.getConst<SubrangeBounds>();
       // No way to represent subranges in SMT-LIBv2; this is inspired
@@ -255,7 +261,6 @@ void Smt2Printer::toStream(std::ostream& out, TNode n,
     // arrays theory
   case kind::SELECT:
   case kind::STORE:
-  case kind::STORE_ALL:
   case kind::ARRAY_TYPE: out << smtKindString(k) << " "; break;
 
     // bv theory