summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-04-09 15:29:08 -0500
committerGitHub <noreply@github.com>2018-04-09 15:29:08 -0500
commit51824dbdc2a8c19cbae7c76826732ae2f319111d (patch)
treefbb0f6477c58ef92955ec03c02cdbd0c0339b3a0
parente2816e7db1da33b3b4cee613e9bb67b0e1c16037 (diff)
Fix sygus substr static symmetry breaking (#1761)
-rw-r--r--src/theory/quantifiers/sygus/term_database_sygus.cpp3
1 files changed, 2 insertions, 1 deletions
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 );
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback