summaryrefslogtreecommitdiff
path: root/test/regress/regress1/strings/replaceall-len.smt2
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-11-21 14:44:44 -0600
committerGitHub <noreply@github.com>2018-11-21 14:44:44 -0600
commit2c05402119dba7e90e24621c5768514ab2f5042c (patch)
treecec74ac8b51d20c622205bfa39e6ef6e44d510dc /test/regress/regress1/strings/replaceall-len.smt2
parentb3b1fffb390d19312227d7095fb404e9e0447d95 (diff)
Support string replace all (#2704)
Diffstat (limited to 'test/regress/regress1/strings/replaceall-len.smt2')
-rw-r--r--test/regress/regress1/strings/replaceall-len.smt210
1 files changed, 10 insertions, 0 deletions
diff --git a/test/regress/regress1/strings/replaceall-len.smt2 b/test/regress/regress1/strings/replaceall-len.smt2
new file mode 100644
index 000000000..448d8e98f
--- /dev/null
+++ b/test/regress/regress1/strings/replaceall-len.smt2
@@ -0,0 +1,10 @@
+(set-info :smt-lib-version 2.5)
+(set-logic ALL)
+(set-info :status sat)
+(set-option :strings-exp true)
+(set-option :strings-fmf true)
+(set-option :produce-models true)
+(declare-fun x () String)
+(assert (= (str.len (str.replaceall x "B" "CC")) (+ (str.len x) 2)))
+(assert (> (str.len x) 2))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback