diff options
Diffstat (limited to 'src/theory/quantifiers/inst_match_trie.cpp')
-rw-r--r-- | src/theory/quantifiers/inst_match_trie.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/theory/quantifiers/inst_match_trie.cpp b/src/theory/quantifiers/inst_match_trie.cpp index 8b8689835..19ef88949 100644 --- a/src/theory/quantifiers/inst_match_trie.cpp +++ b/src/theory/quantifiers/inst_match_trie.cpp @@ -210,8 +210,12 @@ void InstMatchTrie::getInstantiations(std::vector<Node>& insts, { insts.push_back(getInstLemma()); } - else + else if (!options::trackInstLemmas()) { + // If we are tracking instantiation lemmas, then hasInstLemma() + // corresponds exactly to when the lemma was successfully added. + // Hence the above condition guards the case where the instantiation + // was recorded but not sent out as a lemma. insts.push_back(qe->getInstantiate()->getInstantiation(q, terms, true)); } } @@ -469,8 +473,11 @@ void CDInstMatchTrie::getInstantiations(std::vector<Node>& insts, { insts.push_back(getInstLemma()); } - else + else if (!options::trackInstLemmas()) { + // Like in the context-independent case, hasInstLemma() + // corresponds exactly to when the lemma was successfully added when + // trackInstLemmas() is true. insts.push_back( qe->getInstantiate()->getInstantiation(q, terms, true)); } |