diff options
Diffstat (limited to 'test/regress/regress2/strings/replace_re_all.smt2')
-rw-r--r-- | test/regress/regress2/strings/replace_re_all.smt2 | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/regress/regress2/strings/replace_re_all.smt2 b/test/regress/regress2/strings/replace_re_all.smt2 new file mode 100644 index 000000000..cf2b674c3 --- /dev/null +++ b/test/regress/regress2/strings/replace_re_all.smt2 @@ -0,0 +1,31 @@ +; COMMAND-LINE: --strings-exp +(set-option :incremental true) +(set-logic SLIA) +(declare-const x String) +(declare-const y String) + +(push) +(assert (= x (str.replace_re_all "ZABCZACZADDC" (re.++ (str.to_re "A") re.all (str.to_re "C")) y))) +(assert (= x "ZFOOZFXOZFOO")) +(set-info :status unsat) +(check-sat) +(pop) + +(push) +(assert (= "ZFOOZFXOZFOO" (str.replace_re_all x (re.++ (str.to_re "A") re.all (str.to_re "C")) "FOO"))) +(assert (not (= x "ZFOOZFXOZFOO"))) +(set-info :status sat) +(check-sat) +(pop) + +(push) +(assert (= "ZFOOZZFOO" (str.replace_re_all (str.++ "ZACZ" x "ZADDC") (re.++ (str.to_re "A") re.all (str.to_re "C")) "FOO"))) +(set-info :status sat) +(check-sat) +(pop) + +(push) +(assert (= "ZFOOZZFOO" (str.replace_re_all (str.++ "ZACXZ" x "ZADDC") (re.++ (str.to_re "A") re.all (str.to_re "C")) "FOO"))) +(set-info :status unsat) +(check-sat) +(pop) |