summaryrefslogtreecommitdiff
path: root/src/theory/quantifiers/inst_match.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2013-11-26 19:02:21 -0600
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2013-11-26 19:02:32 -0600
commitdd7e0c66cab285c154f59ff27132059c34e09e23 (patch)
tree73d61f763801d0c115dfe2e2849abdd771918944 /src/theory/quantifiers/inst_match.cpp
parente45b3b0ff2ffc9bee6f090a4744f6d5eb6da8b72 (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.cpp5
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;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback