Fix compiler warning in theory/quantifiers/term_database_sygus.cpp
authorAina Niemetz <aina.niemetz@gmail.com>
Tue, 8 Aug 2017 00:05:47 +0000 (17:05 -0700)
committerAina Niemetz <aina.niemetz@gmail.com>
Tue, 8 Aug 2017 00:05:51 +0000 (17:05 -0700)
src/theory/quantifiers/term_database_sygus.cpp

index d8913da56f7c2b055018f4b2b9f6a1ac2620a2d4..62ba32d1e8b7d15d330318039687ac306bc7c04c 100644 (file)
@@ -1005,7 +1005,7 @@ int TermDbSygus::solveForArgument( TypeNode tn, unsigned cindex, unsigned arg )
       solve_ret = getConstConsNum( tn, builtin );
       if( solve_ret!=-1 ){
         // t - s    ----->  ( 0 - s ) + t
-        rt.d_req_kind = MINUS ? PLUS : BITVECTOR_PLUS;
+        rt.d_req_kind = nk == MINUS ? PLUS : BITVECTOR_PLUS;
         rt.d_children[0].d_req_type = tn; // avoid?
         rt.d_children[0].d_req_kind = nk;
         rt.d_children[0].d_children[0].d_req_const = builtin;