Add benchmark for issue 5942 (#6296)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Tue, 6 Apr 2021 17:06:46 +0000 (12:06 -0500)
committerGitHub <noreply@github.com>
Tue, 6 Apr 2021 17:06:46 +0000 (17:06 +0000)
Fixes #5942.

This benchmark was fixed by recent changes to ppRewrite.

test/regress/CMakeLists.txt
test/regress/regress1/sets/issue5942-witness.smt2 [new file with mode: 0644]

index 0c42c09e4dc5a222c1c269dcd1e563059c4f4991..d976b3e632fb4ed4ddb8ae7d5c2299e6cd8bcd69 100644 (file)
@@ -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 (file)
index 0000000..901f60e
--- /dev/null
@@ -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)