debugging: print the line numbers in merge_sm_state()