Fix assertion in enumerative instantiation (#4313)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Wed, 15 Apr 2020 08:02:50 +0000 (03:02 -0500)
committerGitHub <noreply@github.com>
Wed, 15 Apr 2020 08:02:50 +0000 (01:02 -0700)
Fixes regress1.

src/theory/quantifiers/inst_strategy_enumerative.cpp

index 81ade68fca6c9eddeb513111a20f44b82b8e5817..6c17746ef204bb0944a2d11dbf6c6f18d928025a 100644 (file)
@@ -313,7 +313,8 @@ bool InstStrategyEnum::process(Node f, bool fullEffort, bool isRd)
                   << "  " << term_db_list[ftypes[i]][childIndex[i]]
                   << std::endl;
             }
-            Assert(terms[i].getType().isComparableTo(ftypes[i]));
+            Assert(terms[i].isNull()
+                   || terms[i].getType().isComparableTo(ftypes[i]));
           }
           if (ie->addInstantiation(f, terms))
           {