summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-01-09 15:39:07 -0600
committerGitHub <noreply@github.com>2019-01-09 15:39:07 -0600
commitfb145effd5bfe67090736969478ff54cf7f62984 (patch)
tree275c110d057f195bb3e264d91a00706d7d575ebe /src
parent1df477011ed5d35f222340580cba916af3ba73b5 (diff)
Do not rewrite 1-constructor sygus testers to true (#2780)
Diffstat (limited to 'src')
-rw-r--r--src/theory/datatypes/datatypes_rewriter.cpp2
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")
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback