summaryrefslogtreecommitdiff
path: root/test/regress/regress2
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-09-19 09:44:04 -0500
committerGitHub <noreply@github.com>2019-09-19 09:44:04 -0500
commit7988675ce9666b6f2214b583d42b9fa8be52ae60 (patch)
tree12cda1e352a6d80819f00d131f969d7728bf28ec /test/regress/regress2
parentcfe4f59c0a10d49a35b9f59bb2fd6ab7d224e53d (diff)
Support context-(in)dependent decision strategies. (#3281)
Diffstat (limited to 'test/regress/regress2')
-rw-r--r--test/regress/regress2/strings/repl-repl-i-no-push.smt226
1 files changed, 26 insertions, 0 deletions
diff --git a/test/regress/regress2/strings/repl-repl-i-no-push.smt2 b/test/regress/regress2/strings/repl-repl-i-no-push.smt2
new file mode 100644
index 000000000..0076af392
--- /dev/null
+++ b/test/regress/regress2/strings/repl-repl-i-no-push.smt2
@@ -0,0 +1,26 @@
+; COMMAND-LINE: --strings-exp --strings-fmf --incremental
+; EXPECT: sat
+; EXPECT: unsat
+; EXPECT: sat
+; EXPECT: sat
+(set-logic SLIA)
+(declare-const x String)
+(declare-const y String)
+(declare-const z String)
+
+(assert (not (= (str.replace (str.replace x "B" x) x "AB") (str.replace (str.replace x "B" "AB") x "AB"))))
+(check-sat)
+
+(push 1)
+(assert (not (= (str.replace (str.replace x "B" x) x "A") (str.replace (str.replace x "B" "A") x "A"))))
+(check-sat)
+(pop 1)
+
+(push 1)
+(assert (not (= (str.replace (str.replace x z x) x y) (str.replace (str.replace x z y) x y))))
+(check-sat)
+(pop 1)
+
+(assert (not (= (str.replace (str.replace x z x) x y) (str.replace (str.replace x z y) x y))))
+(assert (<= (str.len y) (str.len z)))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback