Debian Codegraph @

test/regress/cli/regress1/strings/repl-soundness-sem.smt2

raw
1 ; COMMAND-LINE:
2 ; EXPECT: unsat
3 (set-logic ALL)
4 (set-info :status unsat)
5 (declare-fun x () String)
6 (declare-fun y () String)
7 (assert (and
8 (= (str.replace x x "abc") "")
9 (= (str.replace (str.++ x y) x "abc") (str.++ x y))
10 (= (str.replace (str.++ x y) (str.substr x 0 2) "abc") y)
11 ))
12 (check-sat)