summaryrefslogtreecommitdiff
path: root/test/regress/regress1/strings
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-07-02 08:55:19 -0500
committerGitHub <noreply@github.com>2021-07-02 13:55:19 +0000
commitf83a753ad62a005085c47a7c0f4ba2e406d9acd7 (patch)
treef8910317b97824bad9cf866e23b174624a2cfff3 /test/regress/regress1/strings
parent0711fcae88bc15b8d326dcd19802350051bba181 (diff)
Fix rewriter for negative constant seq.nth (#6827)
Fixes #6777.
Diffstat (limited to 'test/regress/regress1/strings')
-rw-r--r--test/regress/regress1/strings/issue6777-seq-nth-eval-cm.smt212
1 files changed, 12 insertions, 0 deletions
diff --git a/test/regress/regress1/strings/issue6777-seq-nth-eval-cm.smt2 b/test/regress/regress1/strings/issue6777-seq-nth-eval-cm.smt2
new file mode 100644
index 000000000..afa6fa238
--- /dev/null
+++ b/test/regress/regress1/strings/issue6777-seq-nth-eval-cm.smt2
@@ -0,0 +1,12 @@
+; COMMAND-LINE: -q
+; EXPECT: sat
+(set-logic ALL)
+(set-info :status sat)
+(set-option :strings-lazy-pp false)
+(set-option :check-unsat-cores true)
+(declare-fun b () (Seq Int))
+(declare-fun y () Int)
+(declare-fun l () Bool)
+(assert (distinct (seq.nth b y) (seq.nth b 1)))
+(assert (= l (> y 2)))
+(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback