Quote unsat core names if applicable, fixes bug 816.
authorajreynol <andrew.j.reynolds@gmail.com>
Thu, 25 May 2017 17:44:35 +0000 (12:44 -0500)
committerajreynol <andrew.j.reynolds@gmail.com>
Thu, 25 May 2017 17:44:35 +0000 (12:44 -0500)
src/printer/smt2/smt2_printer.cpp

index 247ef2431014e29cb9ac7aab4588af719d21fcbf..fd77535116a437f4889a6e99c301134b16bcb541 100644 (file)
@@ -1067,7 +1067,7 @@ void Smt2Printer::toStream(std::ostream& out, const UnsatCore& core, const std::
     if(j == names.end()) {
       out << *i << endl;
     } else {
-      out << (*j).second << endl;
+      out << maybeQuoteSymbol((*j).second) << endl;
     }
   }
   out << ")" << endl;