summaryrefslogtreecommitdiff
path: root/test/regress/regress1/strings/reloop.smt2
blob: 967e564ce99932155dbc5188c86c89662d7fce0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(set-info :smt-lib-version 2.5)
(set-logic QF_S)
(set-option :strings-exp true)
(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)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback