state[j]|＝rstr_mask