summaryrefslogtreecommitdiff
path: root/src/smt
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-08-23 20:34:40 -0500
committerGitHub <noreply@github.com>2018-08-23 20:34:40 -0500
commit33fe4c274ca71237601e776c7be942bd2bfd02af (patch)
tree20d7ee1992d1c0f31e6b5a88d7d7bdc26c32884f /src/smt
parent907cc0aceb81b9282f63367652f1f68bae4fb40e (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.cpp10
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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback