From: Aina Niemetz Date: Tue, 8 Aug 2017 00:05:47 +0000 (-0700) Subject: Fix compiler warning in theory/quantifiers/term_database_sygus.cpp X-Git-Tag: cvc5-1.0.0~5691^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ab30bbb3f57b336e55db51ae42d63569ec8a9cc;p=cvc5.git Fix compiler warning in theory/quantifiers/term_database_sygus.cpp --- diff --git a/src/theory/quantifiers/term_database_sygus.cpp b/src/theory/quantifiers/term_database_sygus.cpp index d8913da56..62ba32d1e 100644 --- a/src/theory/quantifiers/term_database_sygus.cpp +++ b/src/theory/quantifiers/term_database_sygus.cpp @@ -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;