Skip to content

Commit

Permalink
Print array constants in SMT-LIB models with new syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeters committed Oct 6, 2014
1 parent 6970ed0 commit ff78886
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/printer/smt2/smt2_printer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ff78886

Please sign in to comment.