From 51824dbdc2a8c19cbae7c76826732ae2f319111d Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Mon, 9 Apr 2018 15:29:08 -0500 Subject: [PATCH] Fix sygus substr static symmetry breaking (#1761) --- src/theory/quantifiers/sygus/term_database_sygus.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.30.2