| 1 |
; COMMAND-LINE: |
| 2 |
; EXPECT: sat |
| 3 |
(set-logic ALL) |
| 4 |
(set-option :sygus-inference try) |
| 5 |
(set-info :status sat) |
| 6 |
(declare-fun a () String) |
| 7 |
(declare-fun b () String) |
| 8 |
(declare-const c String) |
| 9 |
(declare-const d String) |
| 10 |
(declare-fun g () Bool) |
| 11 |
(declare-fun e () Bool) |
| 12 |
(declare-fun f () String) |
| 13 |
(assert (str.in_re (str.substr a 0 (str.len (str.substr a 0 (str.len (str.substr a 0 (str.len c)))))) (re.* (re.++ (str.to_re "") (re.* (str.to_re "aa")))))) |
| 14 |
(assert (str.in_re (str.substr b 0 (str.len d)) (re.* (re.++ (re.* (str.to_re "")) (str.to_re "bb"))))) |
| 15 |
(assert (= 4 (str.len d))) |
| 16 |
(assert (not (= (str.substr a 0 (str.len c)) d))) |
| 17 |
(assert (= g (not (= "file" (str.substr a (str.len c) (str.len f)))))) |
| 18 |
(assert (= e (not g))) |
| 19 |
(assert e) |
| 20 |
(check-sat) |