diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2013-11-26 19:02:21 -0600 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2013-11-26 19:02:32 -0600 |
commit | dd7e0c66cab285c154f59ff27132059c34e09e23 (patch) | |
tree | 73d61f763801d0c115dfe2e2849abdd771918944 /src/theory/quantifiers/inst_match.cpp | |
parent | e45b3b0ff2ffc9bee6f090a4744f6d5eb6da8b72 (diff) |
Bug fix for E-matching select terms, minor fix for bounded integers, bug fix to improve performance of quantifiers rewriter
Diffstat (limited to 'src/theory/quantifiers/inst_match.cpp')
-rw-r--r-- | src/theory/quantifiers/inst_match.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/theory/quantifiers/inst_match.cpp b/src/theory/quantifiers/inst_match.cpp index d55f72a88..ebe587765 100644 --- a/src/theory/quantifiers/inst_match.cpp +++ b/src/theory/quantifiers/inst_match.cpp @@ -36,7 +36,10 @@ InstMatch::InstMatch( InstMatch* m ) { bool InstMatch::setMatch( EqualityQuery* q, TNode v, TNode m, bool & set ){ std::map< Node, Node >::iterator vn = d_map.find( v ); - if( vn==d_map.end() || vn->second.isNull() ){ + if( !m.isNull() && !m.getType().isSubtypeOf( v.getType() ) ){ + set = false; + return false; + }else if( vn==d_map.end() || vn->second.isNull() ){ set = true; this->set(v,m); Debug("matching-debug") << "Add partial " << v << "->" << m << std::endl; |