summaryrefslogtreecommitdiff
path: root/src/printer
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-04-20 16:40:12 -0500
committerGitHub <noreply@github.com>2021-04-20 21:40:12 +0000
commitcc8ce1bcdf8d6a4b508723063879e891a6cbd8c3 (patch)
treefef63c0628404e673eca56947d19411198ba3ce2 /src/printer
parent18ce14653647a93319cc53eec9bc310d3a4c6f57 (diff)
Add instantiation pool feature to the API (#6358)
This adds the command declare-pool to the public API. It also adds parsing support for this feature, lifts the internal kinds to public kinds, adds an example regression, and a unit test for the new declare-pool solver method.
Diffstat (limited to 'src/printer')
-rw-r--r--src/printer/printer.cpp8
-rw-r--r--src/printer/printer.h5
2 files changed, 13 insertions, 0 deletions
diff --git a/src/printer/printer.cpp b/src/printer/printer.cpp
index 6ab419b85..19d14eb09 100644
--- a/src/printer/printer.cpp
+++ b/src/printer/printer.cpp
@@ -190,6 +190,14 @@ void Printer::toStreamCmdDeclareFunction(std::ostream& out,
printUnknownCommand(out, "declare-fun");
}
+void Printer::toStreamCmdDeclarePool(std::ostream& out,
+ const std::string& id,
+ TypeNode type,
+ const std::vector<Node>& initValue) const
+{
+ printUnknownCommand(out, "declare-pool");
+}
+
void Printer::toStreamCmdDeclareType(std::ostream& out,
TypeNode type) const
{
diff --git a/src/printer/printer.h b/src/printer/printer.h
index aeffc76eb..86f3dbb2b 100644
--- a/src/printer/printer.h
+++ b/src/printer/printer.h
@@ -87,6 +87,11 @@ class Printer
virtual void toStreamCmdDeclareFunction(std::ostream& out,
const std::string& id,
TypeNode type) const;
+ /** Print declare-pool command */
+ virtual void toStreamCmdDeclarePool(std::ostream& out,
+ const std::string& id,
+ TypeNode type,
+ const std::vector<Node>& initValue) const;
/** Print declare-sort command */
virtual void toStreamCmdDeclareType(std::ostream& out,
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback