- {
- state_number *old_to_new = xnmalloc (nstates, sizeof *old_to_new);
- state_number nstates_old = nstates;
- state_remove_unreachable_states (old_to_new);
- lalr_update_state_numbers (old_to_new, nstates_old);
- conflicts_update_state_numbers (old_to_new, nstates_old);
- free (old_to_new);
- }
+ if (!muscle_percent_define_flag_if ("lr.keep-unreachable-states"))
+ {
+ state_number *old_to_new = xnmalloc (nstates, sizeof *old_to_new);
+ state_number nstates_old = nstates;
+ state_remove_unreachable_states (old_to_new);
+ lalr_update_state_numbers (old_to_new, nstates_old);
+ conflicts_update_state_numbers (old_to_new, nstates_old);
+ free (old_to_new);
+ }