diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-08-23 20:34:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-23 20:34:40 -0500 |
commit | 33fe4c274ca71237601e776c7be942bd2bfd02af (patch) | |
tree | 20d7ee1992d1c0f31e6b5a88d7d7bdc26c32884f /src/smt | |
parent | 907cc0aceb81b9282f63367652f1f68bae4fb40e (diff) |
Do not print internally generated datatypes in external outputs with sygus (#2234)
Diffstat (limited to 'src/smt')
-rw-r--r-- | src/smt/smt_engine.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/smt/smt_engine.cpp b/src/smt/smt_engine.cpp index d7c1ece96..c4492d3a1 100644 --- a/src/smt/smt_engine.cpp +++ b/src/smt/smt_engine.cpp @@ -734,10 +734,14 @@ class SmtEnginePrivate : public NodeManagerListener { } } - void nmNotifyNewDatatypes(const std::vector<DatatypeType>& dtts) override + void nmNotifyNewDatatypes(const std::vector<DatatypeType>& dtts, + uint32_t flags) override { - DatatypeDeclarationCommand c(dtts); - d_smt.addToModelCommandAndDump(c); + if ((flags & ExprManager::DATATYPE_FLAG_PLACEHOLDER) == 0) + { + DatatypeDeclarationCommand c(dtts); + d_smt.addToModelCommandAndDump(c); + } } void nmNotifyNewVar(TNode n, uint32_t flags) override |