Suppose in a sequential circuit, we have an output which is based on the present state and the input, and the input of flip flops are based on the given input. When we change the input the output will change. Also the FF state will change from present state to the next state. And then the output of the circuit may change as well.
Based on which state do we decide the output?
For instance let's say we have a circuit like this (sorry I forget the clock input):
Assume that our present state is A=1, A'=0.
Let's say we give 1 as x input. Then the output y will change to 1 and after that the FF state will change to A=1, A'=0. So the output will change again, this time to 0.
Which output is correct?