summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-06-02 15:55:49 -0500
committerGitHub <noreply@github.com>2020-06-02 15:55:49 -0500
commit6ae4eda75d5717543f7c847d4b2f58ccbbb611bf (patch)
treee5a64cad596fa2f3f7020c9b56eafaf300919408 /src/theory/quantifiers
parente4926117ce53433e59f4b1a86892ea43a01f709d (diff)
Fix scope issue with pulling ITEs in extended rewriter. (#4547)
Fixes #4476.
Diffstat (limited to 'src/theory/quantifiers')
-rw-r--r--src/theory/quantifiers/extended_rewrite.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/theory/quantifiers/extended_rewrite.cpp b/src/theory/quantifiers/extended_rewrite.cpp
index 1f42c384f..8803a9df8 100644
--- a/src/theory/quantifiers/extended_rewrite.cpp
+++ b/src/theory/quantifiers/extended_rewrite.cpp
@@ -586,6 +586,11 @@ Node ExtendedRewriter::extendedRewriteAndOr(Node n)
Node ExtendedRewriter::extendedRewritePullIte(Kind itek, Node n)
{
Assert(n.getKind() != ITE);
+ if (n.isClosure())
+ {
+ // don't pull ITE out of quantifiers
+ return n;
+ }
NodeManager* nm = NodeManager::currentNM();
TypeNode tn = n.getType();
std::vector<Node> children;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback