Print array constants in SMT-LIB models with new syntax.
authorMorgan Deters <mdeters@cs.nyu.edu>
Mon, 6 Oct 2014 18:48:14 +0000 (14:48 -0400)
committerMorgan Deters <mdeters@cs.nyu.edu>
Mon, 6 Oct 2014 18:48:14 +0000 (14:48 -0400)
src/printer/smt2/smt2_printer.cpp

index b415c6b19307b3b6a3732bd084ebf3a172a5a2b2..5dc5cb7ee99c1f937f5031981532c0e89cb99887 100644 (file)
@@ -194,7 +194,7 @@ void Smt2Printer::toStream(std::ostream& out, TNode n,
 
     case kind::STORE_ALL: {
       ArrayStoreAll asa = n.getConst<ArrayStoreAll>();
-      out << "(__array_store_all__ " << asa.getType() << " " << asa.getExpr() << ")";
+      out << "((as const " << asa.getType() << ") " << asa.getExpr() << ")";
       break;
     }
 
@@ -588,7 +588,6 @@ static string smtKindString(Kind k) throw() {
     // arrays theory
   case kind::SELECT: return "select";
   case kind::STORE: return "store";
-  case kind::STORE_ALL: return "__array_store_all__";
   case kind::ARRAY_TYPE: return "Array";
 
     // bv theory