Bug fix in conjecture generation for --quant-ind.
authorajreynol <andrew.j.reynolds@gmail.com>
Tue, 11 Apr 2017 16:14:42 +0000 (11:14 -0500)
committerajreynol <andrew.j.reynolds@gmail.com>
Tue, 11 Apr 2017 16:14:42 +0000 (11:14 -0500)
src/theory/quantifiers/conjecture_generator.cpp

index 11adc61fd3ecf3d8e5e1300511270d2bea53b7a2..a0c607e0e2aa7b7a2a645175b3d3dc3f97edb72d 100644 (file)
@@ -356,6 +356,7 @@ void ConjectureGenerator::check( Theory::Effort e, unsigned quant_e ) {
       eq::EqClassesIterator eqcs_i = eq::EqClassesIterator( ee );
       while( !eqcs_i.isFinished() ){
         TNode r = (*eqcs_i);
+        Trace("sg-proc-debug") << "...eqc : " << r << std::endl;
         eqcs.push_back( r );
         if( r.getType().isBoolean() ){
           if( areEqual( r, getTermDatabase()->d_true ) ){
@@ -370,8 +371,10 @@ void ConjectureGenerator::check( Theory::Effort e, unsigned quant_e ) {
         eq::EqClassIterator ieqc_i = eq::EqClassIterator( r, ee );
         while( !ieqc_i.isFinished() ){
           TNode n = (*ieqc_i);
+          Trace("sg-proc-debug") << "......term : " << n << std::endl;
           if( getTermDatabase()->hasTermCurrent( n ) ){
             if( isHandledTerm( n ) ){
+              getTermDatabase()->computeArgReps( n );
               d_op_arg_index[r].addTerm( getTermDatabase()->d_arg_reps[n], n );
             }
           }