summaryrefslogtreecommitdiff
path: root/test/regress/regress0/strings/strings-index-empty.smt2
blob: a726d9cabdf8cf4203f37d1e5ccade61f326d925 (plain)
1
2
3
4
5
6
7
8
9
10
11
; COMMAND-LINE: --simplification=none --strings-exp --no-strings-lazy-pp
; EXPECT: sat
(set-logic SLIA)
(set-info :status sat)
(declare-fun x () String)
(declare-fun f () String)
(declare-fun y () Int)
(assert (= (str.len f) 0))
; command line options ensure reduction is invoked for indexof, f is "", should return -1
(assert (= (str.indexof x f 4) y))
(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback