Fixes #5815.
This adds the regression, in theory I still think it is possible for the assertion to fail, but I don't think it is worth pursuing right now.
regress0/strings/issue5745-eager-pp.smt2
regress0/strings/issue5767-eager-pp.smt2
regress0/strings/issue5771-eager-pp.smt2
+ regress0/strings/issue5815-ndet-string-ent.smt2
regress0/strings/issue5816-re-kind.smt2
regress0/strings/issue5915-repl-ctn-rewrite.smt2
regress0/strings/issue6203-3-unfold-trivial-true.smt2
--- /dev/null
+(set-logic ALL)
+(set-info :status sat)
+(declare-fun a () String)
+(assert (= (str.substr (str.substr a (+ (+ 1 0) 1)
+ (- (str.len (str.substr (str.substr (str.substr a 1 (- (+ (str.len a) 1) 1)) 1 (- (+ 1 (+ 1 1)) 1))
+ 1 (- (str.len a) 1))) 1)) 0 0) a))
+(check-sat)