diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-01-09 15:39:07 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-09 15:39:07 -0600 |
commit | fb145effd5bfe67090736969478ff54cf7f62984 (patch) | |
tree | 275c110d057f195bb3e264d91a00706d7d575ebe /src | |
parent | 1df477011ed5d35f222340580cba916af3ba73b5 (diff) |
Do not rewrite 1-constructor sygus testers to true (#2780)
Diffstat (limited to 'src')
-rw-r--r-- | src/theory/datatypes/datatypes_rewriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theory/datatypes/datatypes_rewriter.cpp b/src/theory/datatypes/datatypes_rewriter.cpp index 4469f0fe9..a2458e2eb 100644 --- a/src/theory/datatypes/datatypes_rewriter.cpp +++ b/src/theory/datatypes/datatypes_rewriter.cpp @@ -428,7 +428,7 @@ RewriteResponse DatatypesRewriter::rewriteTester(TNode in) NodeManager::currentNM()->mkConst(result)); } const Datatype& dt = static_cast<DatatypeType>(in[0].getType().toType()).getDatatype(); - if (dt.getNumConstructors() == 1) + if (dt.getNumConstructors() == 1 && !dt.isSygus()) { // only one constructor, so it must be Trace("datatypes-rewrite") |