Switching an Assert to a CVC4_CHECK to test if it resolves CID 1459595. (#2315)
authorTim King <taking@cs.nyu.edu>
Thu, 16 Aug 2018 01:09:45 +0000 (18:09 -0700)
committerAndres Noetzli <andres.noetzli@gmail.com>
Thu, 16 Aug 2018 01:09:45 +0000 (18:09 -0700)
src/theory/quantifiers/fmf/ambqi_builder.cpp

index 5def5fc95056007a4fbe56c7eaaf4a9edc4d6986..f2b131f214a86cf78d0f08170a6e6128c1cd1984 100644 (file)
@@ -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<numReps; i++ ){
         d_def[ 1 << i ].construct_var( m, q, v, i, depth+1 );
       }