A state diagram allows the behavior of a state machine to be analysed rapidly. In addition, the state diagram can be quite useful in designing a machine from a set of specifications. The circular state symbol contains the name of the state with the state code adjacent to the symbol. Figure below shows the state symbols