Automatic modularization of source code
Abstract
A device creates a graph based on source code, and analyzes the source code to identify private variables and functions of the source code and public variables and functions of the source code. The device determines, based on the graph, a size threshold and semantics-related characteristics of functions and variables for each module, of multiple modules, and assigns, based on the graph, the private variables and functions to a corresponding module of the multiple modules. The device reduces, based on the graph, a number of the public variables and functions assigned to each module, and generates the multiple modules based on one or more of the graph, the size threshold, the assigned private variables and functions, and the number of the public variables and functions assigned to each module.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A device comprising: one or more processors to: create a graph based on source code, the graph: including representations of variables and functions provided in the source code, and indicating dependencies between the variables and the functions, analyze the source code to identify private variables and functions of the source code and public variables and functions of the source code, determine, based on the representations and the dependencies, a size threshold and semantics-related characteristics of functions and variables for each module of a plurality of modules, each module including a
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (14)
Non-Patent Literature (3)
- Emanuelsson, P., et al.: "A Comparative Study of Industrial Static Analysis Tools," Electronic Notes in Theoretical Computer Science, Elsevier, Amsterdam, NL, vol. 217, Jul. 21, 2008, pp. 5-21.
- Mitchell, B. S., et al.: "On the Automatic Modularization of Software Systems Using the Bunch Tool," IEEE Transactions on Software Engineering IEEE USA, vol. 32, No. 3, Mar. 2006, pp. 193-208.
- Notification of Transmittal of the International Search Report and the Written Opinion of the International Searching Authority, or the Declaration corresponding to PCT/US2012/067729, mailed May 2, 2013, 13 pages.