diff options
-rw-r--r-- | src/theory/uf/theory_uf.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/theory/uf/theory_uf.cpp b/src/theory/uf/theory_uf.cpp index 1045c5a24..2bce77451 100644 --- a/src/theory/uf/theory_uf.cpp +++ b/src/theory/uf/theory_uf.cpp @@ -243,6 +243,13 @@ void TheoryUF::ppStaticLearn(TNode n, NodeBuilder<>& learned) { while(!workList.empty()) { n = workList.back(); + if(n.getKind() == kind::FORALL || n.getKind() == kind::EXISTS) { + // unsafe to go under quantifiers; we might pull bound vars out of scope! + processed.insert(n); + workList.pop_back(); + continue; + } + bool unprocessedChildren = false; for(TNode::iterator i = n.begin(), iend = n.end(); i != iend; ++i) { if(processed.find(*i) == processed.end()) { |