From: Andrew Reynolds Date: Tue, 6 Apr 2021 17:06:46 +0000 (-0500) Subject: Add benchmark for issue 5942 (#6296) X-Git-Tag: cvc5-1.0.0~1959 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2dc926f14b304aecf57975ee44903664b7ead30;p=cvc5.git Add benchmark for issue 5942 (#6296) Fixes #5942. This benchmark was fixed by recent changes to ppRewrite. --- 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)