Fix match trie for polymorphic operators (#3125)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Mon, 29 Jul 2019 16:57:09 +0000 (11:57 -0500)
committerGitHub <noreply@github.com>
Mon, 29 Jul 2019 16:57:09 +0000 (11:57 -0500)
src/theory/quantifiers/candidate_rewrite_filter.cpp

index 53c40464fc0e5570b6740eed89f44bedff5e25a7..c07cae51d133dd79b94c5e3eb745624a1dfdbb90 100644 (file)
@@ -135,6 +135,10 @@ bool MatchTrie::getMatches(Node n, NotifyMatch* ntm)
               recurse = false;
             }
           }
+          else if (!var.getType().isSubtypeOf(cn.getType()))
+          {
+            recurse = false;
+          }
           else
           {
             vars.push_back(var);