add state id for identify a state uniquely

Signed-off-by: ubuntu <xqx@server.(none)>
printf range of a sma size