From: Andrew Reynolds Date: Mon, 9 Apr 2018 20:29:08 +0000 (-0500) Subject: Fix sygus substr static symmetry breaking (#1761) X-Git-Tag: cvc5-1.0.0~5166 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51824dbdc2a8c19cbae7c76826732ae2f319111d;p=cvc5.git Fix sygus substr static symmetry breaking (#1761) --- diff --git a/src/theory/quantifiers/sygus/term_database_sygus.cpp b/src/theory/quantifiers/sygus/term_database_sygus.cpp index 5c073aa0d..c8d7bf04d 100644 --- a/src/theory/quantifiers/sygus/term_database_sygus.cpp +++ b/src/theory/quantifiers/sygus/term_database_sygus.cpp @@ -555,7 +555,8 @@ bool TermDbSygus::considerConst( const Datatype& pdt, TypeNode tnp, Node c, Kind } } }else if( pk==STRING_SUBSTR ){ - if( c==one_c ){ + if (c == one_c && arg == 2) + { rt.d_req_kind = STRING_CHARAT; rt.d_children[0].d_req_type = getArgType( pdt[pc], 0 ); rt.d_children[1].d_req_type = getArgType( pdt[pc], 1 );