In the condition-extraction process of the step S6-13, it should be noted that a pattern satisfying a given condition is searched for from the input data by inputting the exposure data for creating block mask or by specifying the parameters such as line width, angle, shape, pattern group, and the like.