function M = cleanup_nfsa(M) % a technical routine to remove some unnecessary states of a NFSA % see str2nfsa.m for basic nfsa definitions M = prune_eps(M); M = remove_unreachable(M); return