A method for generating mask data that is used for a method for manufacturing a semiconductor device, the semiconductor device including a first wiring layer and a plurality of dummy wiring layers provided in an identical level as the first wiring layer, wherein, assuming a row direction and first virtual linear lines extending in a direction that traverses the row direction, the first virtual linear lines and the row direction define an angle of 2-40 degree, and the dummy wiring layers are disposed on the first virtual linear lines, the method for generating mask data comprising:
- (a) the step of setting a restriction region pattern that defines a restriction region;
- (b) the step of setting dummy patterns that define the dummy wiring layers;
- and
- (c) the step of mixing the restriction region pattern and the dummy patterns, wherein the dummy patterns that at least partially overlap the restriction region pattern are entirely excluded.