diff --git a/src/smt/theory_str_noodler/regex.cpp b/src/smt/theory_str_noodler/regex.cpp index cde5f589d42..08d4cba6145 100644 --- a/src/smt/theory_str_noodler/regex.cpp +++ b/src/smt/theory_str_noodler/regex.cpp @@ -117,7 +117,7 @@ namespace smt::noodler::regex { body_nfa.final.insert(new_state); body_nfa.unify_initial(); - mata::nfa::reduce(body_nfa); + body_nfa = mata::nfa::reduce(body_nfa); if (is_high_set) { // if high is set, we repeat body_nfa another high-low times