summaryrefslogtreecommitdiff
path: root/test/regress/regress1/strings
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-05-24 10:55:17 -0500
committerGitHub <noreply@github.com>2021-05-24 08:55:17 -0700
commit93a3d6a65db331008d590c4bb7fc0658ff1e46e0 (patch)
tree0f57cd35af96ec8b5cf4deefc7c83efc9f244fee /test/regress/regress1/strings
parentb00667a21984dc3f6b960a1a2d22845c7096bc35 (diff)
Fix instance of no rewrite in extended rewriter (#6610)
Fixes #6545. An assertion failure was being raised indicating that we were reporting a rewrite that was not changing the original term.
Diffstat (limited to 'test/regress/regress1/strings')
-rw-r--r--test/regress/regress1/strings/issue6545-extr.smt219
1 files changed, 19 insertions, 0 deletions
diff --git a/test/regress/regress1/strings/issue6545-extr.smt2 b/test/regress/regress1/strings/issue6545-extr.smt2
new file mode 100644
index 000000000..958f3b1ee
--- /dev/null
+++ b/test/regress/regress1/strings/issue6545-extr.smt2
@@ -0,0 +1,19 @@
+; COMMAND-LINE: --ext-rew-prep --ext-rew-prep-agg
+; EXPECT: sat
+(set-logic ALL)
+(declare-fun a () String)
+(assert
+ (str.contains ""
+ (str.replace_all ""
+ (str.substr a 1
+ (str.to_int
+ (str.substr
+ (str.substr a 0
+ (ite (= (str.len (str.substr a 2 1)) 1)
+ (ite (< (str.len a) 0)
+ (ite (= (str.len (str.substr (str.substr a 2 1) (str.len (str.substr a 1 1)) 2)) 1) 1 0)
+ (- 1))
+ 0))
+ 0 2)))
+ a)))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback