blob: f5460712145640d14fc5f560ae4c5f379458ca62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
(set-logic QF_S)
(set-info :status sat)
(declare-fun x () String)
(declare-fun y () String)
(declare-fun z () String)
(declare-fun w () String)
(assert (str.in.re x (re.loop (str.to.re "a") 5)))
(assert (str.in.re y (re.loop (str.to.re "b") 2 5)))
(assert (str.in.re z (re.loop (str.to.re "c") 5)))
(assert (> (str.len z) 7))
(assert (str.in.re w (re.loop (str.to.re "b") 2 7)))
(assert (> (str.len w) 2))
(assert (< (str.len w) 5))
(check-sat)
|