Debian Codegraph @

test/regress/cli/regress1/strings/strings-index-empty.smt2

raw
1 ; COMMAND-LINE: --simplification=none --no-strings-lazy-pp
2 ; EXPECT: sat
3 (set-logic SLIA)
4 (set-info :status sat)
5 (declare-fun x () String)
6 (declare-fun f () String)
7 (declare-fun y () Int)
8 (assert (= (str.len f) 0))
9 ; command line options ensure reduction is invoked for indexof, f is "", should return -1
10 (assert (= (str.indexof x f 4) y))
11 (check-sat)