diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2012-10-29 21:49:41 +0000 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2012-10-29 21:49:41 +0000 |
commit | 9a8a3449b130b0154ae55ad223f362c6d662d6ce (patch) | |
tree | 933bb099f84fdbfdbc15d790a9088d24bcb8ef15 /src/theory/quantifiers_engine.cpp | |
parent | 45d96ce6cdd0eb5a899611b4b0be243c6887da39 (diff) |
more updates and minor bug fixes for fmf/inst-gen quantifier instantiation
Diffstat (limited to 'src/theory/quantifiers_engine.cpp')
-rw-r--r-- | src/theory/quantifiers_engine.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/theory/quantifiers_engine.cpp b/src/theory/quantifiers_engine.cpp index 486e6721b..902eebe01 100644 --- a/src/theory/quantifiers_engine.cpp +++ b/src/theory/quantifiers_engine.cpp @@ -298,7 +298,16 @@ Node QuantifiersEngine::getInstantiation( Node f, InstMatch& m ){ } bool QuantifiersEngine::existsInstantiation( Node f, InstMatch& m, bool modEq, bool modInst ){ - return d_inst_match_trie[f].existsInstMatch( this, f, m, modEq, modInst ); + if( d_inst_match_trie.find( f )!=d_inst_match_trie.end() ){ + if( d_inst_match_trie[f].existsInstMatch( this, f, m, modEq, modInst ) ){ + return true; + } + } + //also check model engine (it may contain instantiations internally) + if( d_model_engine->getModelBuilder()->existsInstantiation( f, m, modEq, modInst ) ){ + return true; + } + return false; } bool QuantifiersEngine::addLemma( Node lem ){ |