test/regress/cli/regress1/strings/substr001.smt2
raw| 1 | ; COMMAND-LINE: |
| 2 | (set-logic QF_SLIA) |
| 3 | (set-info :status sat) |
| 4 | |
| 5 | (declare-fun x () String) |
| 6 | (declare-fun i1 () Int) |
| 7 | (declare-fun i2 () Int) |
| 8 | (declare-fun i3 () Int) |
| 9 | (declare-fun i4 () Int) |
| 10 | |
| 11 | (assert (and (>= i1 0) (>= i2 0) (< (+ i1 i2) (str.len x)))) |
| 12 | (assert (and (>= i3 0) (>= i4 0) (< (+ i3 i4) (str.len x)))) |
| 13 | (assert (= "efg" (str.substr x i1 i2) ) ) |
| 14 | (assert (= "bef" (str.substr x i3 i4) ) ) |
| 15 | (assert (> (str.len x) 5)) |
| 16 | |
| 17 | (check-sat) |