| 1 |
(set-logic ALL) |
| 2 |
(set-info :status sat) |
| 3 |
|
| 4 |
|
| 5 |
(declare-fun s () String) |
| 6 |
(assert (= s "I like cookies.")) |
| 7 |
|
| 8 |
(declare-fun target () String) |
| 9 |
(assert (= target "like")) |
| 10 |
|
| 11 |
(declare-fun location () Int) |
| 12 |
(assert (= location (str.indexof s target 0))) |
| 13 |
|
| 14 |
(check-sat) |