From: Morgan Deters Date: Mon, 10 Jun 2013 03:11:55 +0000 (-0400) Subject: another fix for array-store-all printing X-Git-Tag: cvc5-1.0.0~7287^2~99 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50c94c993c08678849026cdbb47564458239895c;p=cvc5.git another fix for array-store-all printing --- diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index d9717f9b7..f4abee292 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -172,6 +172,12 @@ void Smt2Printer::toStream(std::ostream& out, TNode n, break; } + case kind::STORE_ALL: { + ArrayStoreAll asa = n.getConst(); + out << "(__array_store_all__ " << asa.getType() << " " << asa.getExpr() << ")"; + break; + } + case kind::SUBRANGE_TYPE: { const SubrangeBounds& bounds = n.getConst(); // 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