Fix printing of instantiation patterns (#3305)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Wed, 25 Sep 2019 15:05:45 +0000 (10:05 -0500)
committerGitHub <noreply@github.com>
Wed, 25 Sep 2019 15:05:45 +0000 (10:05 -0500)
src/printer/smt2/smt2_printer.cpp

index 37a73db2dc27ee87b57515a6e56684bc7a4bea99..df9bee98139a30094b46f6a167b66b7d101911c8 100644 (file)
@@ -861,7 +861,8 @@ void Smt2Printer::toStream(std::ostream& out,
     out << ')';
     return;
   }
-  case kind::INST_PATTERN: break;
+  case kind::INST_PATTERN:
+  case kind::INST_NO_PATTERN: break;
   case kind::INST_PATTERN_LIST:
   {
     for (const Node& nc : n)
@@ -873,10 +874,14 @@ void Smt2Printer::toStream(std::ostream& out,
           out << ":fun-def";
         }
       }
-      else
+      else if (nc.getKind() == kind::INST_PATTERN)
       {
         out << ":pattern " << nc;
       }
+      else if (nc.getKind() == kind::INST_NO_PATTERN)
+      {
+        out << ":no-pattern " << nc[0];
+      }
     }
     return;
     break;