ty-sixth aspect of the invention is characterized by further comprising a replacing step of replacing the circuit element assumed as an error element in the error element detecting step with a circuit element wh