From: Andrew Reynolds Date: Wed, 15 Apr 2020 08:02:50 +0000 (-0500) Subject: Fix assertion in enumerative instantiation (#4313) X-Git-Tag: cvc5-1.0.0~3366 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94f8bafb38ccf380ace36259026a3b0959d13636;p=cvc5.git Fix assertion in enumerative instantiation (#4313) Fixes regress1. --- diff --git a/src/theory/quantifiers/inst_strategy_enumerative.cpp b/src/theory/quantifiers/inst_strategy_enumerative.cpp index 81ade68fc..6c17746ef 100644 --- a/src/theory/quantifiers/inst_strategy_enumerative.cpp +++ b/src/theory/quantifiers/inst_strategy_enumerative.cpp @@ -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)) {