From a2dc926f14b304aecf57975ee44903664b7ead30 Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Tue, 6 Apr 2021 12:06:46 -0500 Subject: [PATCH] Add benchmark for issue 5942 (#6296) Fixes #5942. This benchmark was fixed by recent changes to ppRewrite. --- test/regress/CMakeLists.txt | 1 + test/regress/regress1/sets/issue5942-witness.smt2 | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 test/regress/regress1/sets/issue5942-witness.smt2 diff --git a/test/regress/CMakeLists.txt b/test/regress/CMakeLists.txt index 0c42c09e4..d976b3e63 100644 --- a/test/regress/CMakeLists.txt +++ b/test/regress/CMakeLists.txt @@ -1977,6 +1977,7 @@ set(regress_1_tests regress1/sets/issue5309.smt2 regress1/sets/issue5342.smt2 regress1/sets/issue5342_difference_version.smt2 + regress1/sets/issue5942-witness.smt2 regress1/sets/lemmabug-ListElts317minimized.smt2 regress1/sets/remove_check_free_31_6.smt2 regress1/sets/sets-disequal.smt2 diff --git a/test/regress/regress1/sets/issue5942-witness.smt2 b/test/regress/regress1/sets/issue5942-witness.smt2 new file mode 100644 index 000000000..901f60edb --- /dev/null +++ b/test/regress/regress1/sets/issue5942-witness.smt2 @@ -0,0 +1,9 @@ +; COMMAND-LINE: --strings-exp +; EXPECT: sat +(set-logic ALL) +(set-info :status sat) +(declare-fun r1 () Real) +(declare-fun st9 () (Set String)) +(declare-fun str2 () String) +(assert (is_singleton (ite (= str2 (str.substr str2 0 (to_int r1))) st9 (as emptyset (Set String))))) +(check-sat) -- 2.30.2