diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-11-21 14:44:44 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-21 14:44:44 -0600 |
commit | 2c05402119dba7e90e24621c5768514ab2f5042c (patch) | |
tree | cec74ac8b51d20c622205bfa39e6ef6e44d510dc /test/regress/regress1/strings/replaceall-len.smt2 | |
parent | b3b1fffb390d19312227d7095fb404e9e0447d95 (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.smt2 | 10 |
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) |