A compiler (142) constructs (FIGS. 14-32) a Reduced Flowgraph (RFG) from computer source code (144). The RFG is used to instrument (FIG. 36) code (142). An object module is created (146) and executed (148). Resulting path frequency counts are written to a counts file (154). A compiler (158) uses the...http://www.google.com.hk/patents/US6381739?utm_source=gb-gplus-share專利 US6381739 - Method and apparatus for hierarchical restructuring of computer code