diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-02-19 08:43:22 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 08:43:22 -0600 |
commit | 00479d03cdeac3e864a1930dddb16c71c5bf2ce9 (patch) | |
tree | 0870425e639bfb51933fd66e1d7bdd5da6648497 /test/regress/regress0 | |
parent | b30adb7a22091dfcd2f81f7cf04334e2240c19bd (diff) |
Fix rewrite for contains over replace (#5924)
Fixes model soundness issue (fixes #5915).
Diffstat (limited to 'test/regress/regress0')
-rw-r--r-- | test/regress/regress0/strings/issue5915-repl-ctn-rewrite.smt2 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/regress/regress0/strings/issue5915-repl-ctn-rewrite.smt2 b/test/regress/regress0/strings/issue5915-repl-ctn-rewrite.smt2 new file mode 100644 index 000000000..42326da28 --- /dev/null +++ b/test/regress/regress0/strings/issue5915-repl-ctn-rewrite.smt2 @@ -0,0 +1,9 @@ +; COMMAND-LINE: --strings-exp +; EXPECT: unsat +(set-logic ALL) +(set-info :status unsat) +(declare-fun x () String) +(declare-fun y () String) +(declare-fun z () Int) +(assert (= (str.replace (str.replace x "B" (str.++ "B" "B")) "B" (str.++ y "B")) (str.++ y "B"))) +(check-sat) |