summaryrefslogtreecommitdiff
path: root/test/regress/regress2/strings/update-ex3.smt2
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress/regress2/strings/update-ex3.smt2')
-rw-r--r--test/regress/regress2/strings/update-ex3.smt213
1 files changed, 13 insertions, 0 deletions
diff --git a/test/regress/regress2/strings/update-ex3.smt2 b/test/regress/regress2/strings/update-ex3.smt2
new file mode 100644
index 000000000..e21a2f445
--- /dev/null
+++ b/test/regress/regress2/strings/update-ex3.smt2
@@ -0,0 +1,13 @@
+(set-logic QF_SLIA)
+(set-option :strings-exp true)
+(set-info :status sat)
+(declare-fun s () String)
+(declare-fun x () Int)
+(declare-fun y () Int)
+
+(assert (= s (str.update (str.update "ABCDEFG" x "ZZZ") y "X")))
+(assert (not (str.contains s "B")))
+(assert (not (str.contains s "D")))
+(assert (not (str.contains s "G")))
+
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback