diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-07-02 08:55:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 13:55:19 +0000 |
commit | f83a753ad62a005085c47a7c0f4ba2e406d9acd7 (patch) | |
tree | f8910317b97824bad9cf866e23b174624a2cfff3 /test/regress/regress1/strings | |
parent | 0711fcae88bc15b8d326dcd19802350051bba181 (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.smt2 | 12 |
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) |