test/regress/cli/regress1/strings/string-unsound-sem.smt2
raw| 1 | (set-info :smt-lib-version 2.6) |
| 2 | (set-logic ALL) |
| 3 | |
| 4 | (set-info :status sat) |
| 5 | (declare-fun x () String) |
| 6 | (declare-fun y () String) |
| 7 | (declare-fun z () Int) |
| 8 | (assert (and |
| 9 | (not (= (str.replace "A" (str.from_int z) x) (str.++ "A" (str.replace "" (str.from_int z) x)))) |
| 10 | (not (= (str.replace x (str.at x z) "") (str.++ (str.replace (str.++ (str.substr x 0 z) (str.substr x z 1)) (str.substr x z 1) "") (str.substr x (+ 1 z) (str.len x))))) |
| 11 | ) |
| 12 | ) |
| 13 | (check-sat) |