diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-07-30 09:57:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 09:57:33 -0500 |
commit | aca0cef5cf1bcb882dce927a64917aa800dd8b27 (patch) | |
tree | 5f87b8e6d7737c0e1809cc9b8d8d5f52fe0cfc27 /test/regress/regress0/strings | |
parent | c9fa0516fd28b48940edf2a714e33bee6eacc396 (diff) |
Minor improvement for rewriter for str.replace (#3124)
Diffstat (limited to 'test/regress/regress0/strings')
-rw-r--r-- | test/regress/regress0/strings/replace-const.smt2 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/regress/regress0/strings/replace-const.smt2 b/test/regress/regress0/strings/replace-const.smt2 new file mode 100644 index 000000000..a7f225e33 --- /dev/null +++ b/test/regress/regress0/strings/replace-const.smt2 @@ -0,0 +1,12 @@ +(set-info :smt-lib-version 2.5) +(set-logic ALL) +(set-info :status sat) +(declare-fun x () String) +(declare-fun y () String) +(declare-fun z () String) + +(assert (= x (str.replace "AA" "AA" "def"))) +(assert (= y (str.replace "BAA" "B" "def"))) +(assert (= z (str.replace "AAB" "B" "def"))) + +(check-sat) |