diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-08-23 17:27:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-23 17:27:05 -0500 |
commit | 0faead1572109c1d7cb3d67647da02d0b4600a20 (patch) | |
tree | e0bd28feb049be6a36a63fd73df37f9d3cc7aa54 /test/regress/regress1 | |
parent | eaf29fee0871f1b7a8c9cc7c208c6b6d5570bae5 (diff) |
Infer emptiness instead of splitting when a string equality rewrites to a constant (#3218)
Diffstat (limited to 'test/regress/regress1')
-rw-r--r-- | test/regress/regress1/strings/issue3217.smt2 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/regress/regress1/strings/issue3217.smt2 b/test/regress/regress1/strings/issue3217.smt2 new file mode 100644 index 000000000..4fd35999d --- /dev/null +++ b/test/regress/regress1/strings/issue3217.smt2 @@ -0,0 +1,13 @@ +(set-logic ALL_SUPPORTED) +(set-option :strings-exp true) +(set-info :status unsat) +(declare-fun a () String) +(declare-fun b () String) +(declare-fun c () String) +(declare-fun d () String) +(assert + (or + (not (= ( str.suffixof "B" ( str.replace "A" b "B")) (= ( str.substr a 0 (str.len b)) "A"))) + (not (= (not (= c "A")) ( str.suffixof "A" ( str.replace "A" c "B")))))) +(assert (= a (str.++ (str.++ b "") d))) +(check-sat) |