A long time ago I came across an interesting FSM in which the next state was a function of current state and previous state, along with the current input values. Here previous state is not the state from previous clock cycle but the state that FSM had before entering the current state.
Is there a special name for an FSM where next state is function of current state, current inputs AND also the previous state?