A computer automated method for designing an integrated circuit includes
placing a plurality of marks on each of contours of a plurality of
patterns allocated in a chip area; dividing the marks into a plurality of
groups so that the adjacent marks are merged in a same group; determining
one of the groups as a candidate hot spot based on a total number of
marks included in each of the groups; and modifying the corresponding
pattern in the candidate hot spot.