test/regress/cli/regress0/strings/replace-const.smt2
raw| 1 | (set-info :smt-lib-version 2.6) |
| 2 | (set-logic ALL) |
| 3 | (set-info :status sat) |
| 4 | (declare-fun x () String) |
| 5 | (declare-fun y () String) |
| 6 | (declare-fun z () String) |
| 7 | |
| 8 | (assert (= x (str.replace "AA" "AA" "def"))) |
| 9 | (assert (= y (str.replace "BAA" "B" "def"))) |
| 10 | (assert (= z (str.replace "AAB" "B" "def"))) |
| 11 | |
| 12 | (check-sat) |