| 1 |
; COMMAND-LINE: |
| 2 |
; COMMAND-LINE: --ext-rew-pre=use |
| 3 |
; EXPECT: unsat |
| 4 |
(set-info :smt-lib-version 2.6) |
| 5 |
(set-logic SLIA) |
| 6 |
(set-info :status unsat) |
| 7 |
(declare-fun x () String) |
| 8 |
(declare-fun y () String) |
| 9 |
(declare-fun z () String) |
| 10 |
|
| 11 |
; these should all rewrite to false |
| 12 |
(assert (or |
| 13 |
(str.contains "abcdef0ghij1abced" (str.++ "g" (str.from_int (str.len z)) x "a" y (str.from_int (+ (str.len z) 1)))) |
| 14 |
(str.contains "abc23cd" (str.++ (str.from_int (str.len z)) (str.from_int (str.len z)) (str.from_int (str.len z)))) |
| 15 |
(not (str.contains (str.++ x "ab" y) (str.++ "b" (str.substr y 0 4)))) |
| 16 |
(not (str.contains (str.++ x "ab" y) (str.++ (str.substr x 5 (str.len x)) "a"))) |
| 17 |
(str.contains (str.++ x y) (str.++ x "a" y)) |
| 18 |
(str.contains (str.++ x y) (str.++ y x x y "a")) |
| 19 |
) |
| 20 |
) |
| 21 |
|
| 22 |
(check-sat) |