From: Morgan Deters Date: Mon, 6 Oct 2014 18:48:14 +0000 (-0400) Subject: Print array constants in SMT-LIB models with new syntax. X-Git-Tag: cvc5-1.0.0~6591 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff788863577dbc8d15a584d869f543773ce0ff1d;p=cvc5.git Print array constants in SMT-LIB models with new syntax. --- diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index b415c6b19..5dc5cb7ee 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -194,7 +194,7 @@ void Smt2Printer::toStream(std::ostream& out, TNode n, case kind::STORE_ALL: { ArrayStoreAll asa = n.getConst(); - 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