summaryrefslogtreecommitdiff
path: root/test/regress/regress0/strings/indexof_re.smt2
blob: 72c5d7ee7d5870ed7a655902e8df092803f23e0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; COMMAND-LINE: --strings-exp
(set-logic QF_SLIA)
(declare-const x String)
(assert (or
  (not (= (str.indexof_re "abc" re.allchar (- 1)) (- 1)))
  (not (= (str.indexof_re "abc" re.allchar (- 2)) (- 1)))
  (not (= (str.indexof_re "abc" re.allchar 5) (- 1)))
  (not (= (str.indexof_re "abc" re.allchar 0) 0))
  (not (= (str.indexof_re "abc" re.allchar 1) 1))
  (not (= (str.indexof_re "abc" re.allchar 2) 2))
  (not (= (str.indexof_re "abc" re.allchar 3) (- 1)))
  (not (= (str.indexof_re "abc" (re.++ re.allchar re.allchar) 2) (- 1)))
  (not (= (str.indexof_re "abc" (re.union (str.to_re "") re.allchar) 3) 3))
  (not (= (str.indexof_re (str.++ "abc" x) (re.union (str.to_re "") re.allchar) 3) 3))
  (not (= (str.indexof_re "cbabc" (re.union (str.to_re "a") (str.to_re "bab")) 0) 1))
))
(set-info :status unsat)
(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback