summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-09-27 15:01:42 -0500
committerGitHub <noreply@github.com>2019-09-27 15:01:42 -0500
commitb2447df23d473184a7881ead02aa0b1e8f547d53 (patch)
tree16bd315ee3358bd857ad4cb6cb910be46990fe6f /test
parent6c878c1cf54620b10bac95e5765d0d03bf718f5c (diff)
Fix case of disjunctive conclusion in strings (#3254)
Diffstat (limited to 'test')
-rw-r--r--test/regress/CMakeLists.txt1
-rw-r--r--test/regress/regress1/sygus/issue3247.smt223
2 files changed, 24 insertions, 0 deletions
diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt
index d4cc9b293..cdf93384e 100644
--- a/test/regress/CMakeLists.txt
+++ b/test/regress/CMakeLists.txt
@@ -1684,6 +1684,7 @@ set(regress_1_tests
regress1/sygus/issue3200.smt2
regress1/sygus/issue3201.smt2
regress1/sygus/issue3205.smt2
+ regress1/sygus/issue3247.smt2
regress1/sygus/large-const-simp.sy
regress1/sygus/let-bug-simp.sy
regress1/sygus/list-head-x.sy
diff --git a/test/regress/regress1/sygus/issue3247.smt2 b/test/regress/regress1/sygus/issue3247.smt2
new file mode 100644
index 000000000..6784b8797
--- /dev/null
+++ b/test/regress/regress1/sygus/issue3247.smt2
@@ -0,0 +1,23 @@
+; EXPECT: unsat
+; COMMAND-LINE: --sygus-inference --strings-exp
+(set-logic ALL)
+(declare-fun a () String)
+(declare-fun b () String)
+(declare-fun c () String)
+(declare-fun d () String)
+(declare-fun f () String)
+(declare-fun e () String)
+(assert
+ (not
+ (=
+ (str.contains
+ c
+ (str.replace d (str.substr b 0 (str.len d)) "A")
+ )
+ (str.contains c "A")
+ )
+ )
+)
+(assert (= a (str.++ c f)))
+(assert (= b (str.++ d e)))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback