test/regress/cli/regress1/strings/regexp002.smt2
raw| 1 | (set-info :smt-lib-version 2.6) |
| 2 | (set-logic QF_S) |
| 3 | (set-info :status sat) |
| 4 | |
| 5 | |
| 6 | (declare-fun x () String) |
| 7 | (declare-fun y () String) |
| 8 | |
| 9 | (assert (str.in_re x |
| 10 | (re.* (re.++ (re.* (str.to_re "a") ) (str.to_re "b") )) |
| 11 | )) |
| 12 | |
| 13 | (assert (str.in_re y |
| 14 | (re.* (re.++ (re.* (str.to_re "a") ) (str.to_re "b") )) |
| 15 | )) |
| 16 | |
| 17 | (assert (not (= x y))) |
| 18 | (assert (= (str.len x) (str.len y))) |
| 19 | (assert (= (str.len y) 3)) |
| 20 | |
| 21 | (check-sat) |