Fixes #5942.
This benchmark was fixed by recent changes to ppRewrite.
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
--- /dev/null
+; 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)