summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/extended_rewrite.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-12-13 20:17:50 -0600
committerAndres Noetzli <andres.noetzli@gmail.com>2018-12-14 02:17:50 +0000
commit075e3d97974c89dcbd4cf6c7a1c3b37cbb27403d (patch)
treecb1466de550072e4a11d0a67816e6e23ef5770cb /src/theory/quantifiers/extended_rewrite.cpp
parent000feaeb02292d7a2873198664022801b12e5151 (diff)
Fix extended rewriter for binary associative operators. (#2751)
This was causing assertion failures when using Sets + Sygus.
Diffstat (limited to 'src/theory/quantifiers/extended_rewrite.cpp')
-rw-r--r--src/theory/quantifiers/extended_rewrite.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/theory/quantifiers/extended_rewrite.cpp b/src/theory/quantifiers/extended_rewrite.cpp
index b583a55da..ae053930c 100644
--- a/src/theory/quantifiers/extended_rewrite.cpp
+++ b/src/theory/quantifiers/extended_rewrite.cpp
@@ -119,7 +119,8 @@ Node ExtendedRewriter::extendedRewrite(Node n)
Kind k = n.getKind();
bool childChanged = false;
bool isNonAdditive = TermUtil::isNonAdditive(k);
- bool isAssoc = TermUtil::isAssoc(k);
+ // We flatten associative operators below, which requires k to be n-ary.
+ bool isAssoc = TermUtil::isAssoc(k, true);
for (unsigned i = 0; i < n.getNumChildren(); i++)
{
Node nc = extendedRewrite(n[i]);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback