summaryrefslogtreecommitdiff
path: root/test/regress/regress0/strings/repl-soundness-sem.smt2
blob: d56d7945f700b138bb176491999fec8cdb568ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; COMMAND-LINE: --strings-exp
; EXPECT: sat
(set-logic ALL)
(set-info :status sat)
(declare-fun x () String)
(declare-fun y () String)
(assert (and
(= (str.replace x x "abc") "")
(= (str.replace (str.++ x y) x "abc") (str.++ x y))
(= (str.replace (str.++ x y) (str.substr x 0 2) "abc") y)
))
(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback