The present invention is a method and apparatus for organizing warning messages
generated by a computer program analyzer. A computer program analyzer generates
a set of warning messages based upon potentially erroneous portions of a computer
program, where each warning message identifies at least one potential error in
the computer program. An inference engine infers from a subset of the set of warning
messages at least one suggested-fix heuristic corresponding to each identified
potential error in the subset of the set of warning messages. An association module
associates each suggested-fix heuristic with the warning message containing the
corresponding identified potential error. A grouping module reorders the set of
warning messages so as to group together sets of warning messages having substantially
similar associated suggested-fix heuristics. A result file generates a result comprising
a subset of the set of warning messages ordered in grouped sets.