; 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