[V4][DM] remove b from bools and revise dm code

--------------------------------------
cursta_cstate and cur_sta_cstate
will mess up,so I delete one of them