From b92e8623c695e10f812e7cc213df9f871924ea8b Mon Sep 17 00:00:00 2001 From: Tim King Date: Wed, 15 Aug 2018 18:09:45 -0700 Subject: Switching an Assert to a CVC4_CHECK to test if it resolves CID 1459595. (#2315) --- src/theory/quantifiers/fmf/ambqi_builder.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/theory') diff --git a/src/theory/quantifiers/fmf/ambqi_builder.cpp b/src/theory/quantifiers/fmf/ambqi_builder.cpp index 5def5fc95..f2b131f21 100644 --- a/src/theory/quantifiers/fmf/ambqi_builder.cpp +++ b/src/theory/quantifiers/fmf/ambqi_builder.cpp @@ -13,6 +13,8 @@ **/ #include "theory/quantifiers/fmf/ambqi_builder.h" + +#include "base/cvc4_check.h" #include "options/quantifiers_options.h" #include "theory/quantifiers/instantiate.h" #include "theory/quantifiers/term_database.h" @@ -367,8 +369,8 @@ void AbsDef::construct_var( FirstOrderModelAbs * m, TNode q, unsigned v, int cur }else{ TypeNode tn = m->getVariable( q, depth ).getType(); if( v==depth ){ - unsigned numReps = m->getRepSet()->getNumRepresentatives(tn); - Assert( numReps>0 && numReps < 32 ); + const unsigned numReps = m->getRepSet()->getNumRepresentatives(tn); + CVC4_CHECK(numReps > 0 && numReps < 32); for( unsigned i=0; i