diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-02-08 16:50:16 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 16:50:16 -0600 |
commit | c198f374972e62db0cebc93d3977fd1e414f431b (patch) | |
tree | f1180a7bda884d5c91a4bd64044ada8eadaaf333 /src/theory/quantifiers/cegqi/ceg_instantiator.cpp | |
parent | ca9705cf0785e3a81fc25995df0bc3dc76e3bd9f (diff) |
Use quantifiers inference manager for lemma management (#5867)
Towards eliminating dependencies on quantifiers engine.
This replaces the custom implementation of lemma management in quantifiers engine with the standard one.
It makes a few minor changes to the standard inference manager classes to ensure the same behavior for quantifiers.
Note that some minor changes in behavior are introduced in this PR, such as being more consistent about caching/rewriting lemmas. This should not have any major impact.
Diffstat (limited to 'src/theory/quantifiers/cegqi/ceg_instantiator.cpp')
-rw-r--r-- | src/theory/quantifiers/cegqi/ceg_instantiator.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/theory/quantifiers/cegqi/ceg_instantiator.cpp b/src/theory/quantifiers/cegqi/ceg_instantiator.cpp index 411ab36b9..b2fff012e 100644 --- a/src/theory/quantifiers/cegqi/ceg_instantiator.cpp +++ b/src/theory/quantifiers/cegqi/ceg_instantiator.cpp @@ -1082,8 +1082,9 @@ bool CegInstantiator::doAddInstantiation( std::vector< Node >& vars, std::vector } Trace("cegqi-inst-debug") << "Do the instantiation...." << std::endl; bool ret = d_parent->doAddInstantiation(subs); - for( unsigned i=0; i<lemmas.size(); i++ ){ - d_parent->addLemma(lemmas[i]); + for (const Node& l : lemmas) + { + d_parent->addPendingLemma(l); } return ret; } |