Diagnosing aliasing violations in a partial program view
Abstract
A compiler generated static analysis of potential aliasing violations in a portion of code that is not in the current program view of the analysis. Source code in a current program view of the program code is processed to collect symbol definitions. The possible destinations of each symbol definition are computed. The set of symbol definitions in the current program view of the code that are accessible to the portion of the program code outside the current program view is evaluated. Each symbol definition is diagnosed based on the type of the symbol defined and the symbols which may be pointed-to by the symbol definitions.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 39 · Forward citations: 6.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for performing a static analysis of a source code program, the method comprising: identifying, by a data processing system in a current program view of a first source code module of the source code program compiled by a first compiler during a static compilation of the first source code module by the first compiler, a symbol with an assigned definition pointing to data of a first declared type located at a memory location, wherein the memory location is also referenced by another symbol in a second source code module of the source code program compiled by a second compiler outside the
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (6 of 6 total)
References Cited — Backward Prior Art (39)
Non-Patent Literature (5)
- Amer Diwan et al. , "Using Types to Analyse and Optimize Object-Oriented Programs", ACM , 2001 , pp. 1-42.
- Amer Diwan et al. , “Using Types to Analyse and Optimize Object-Oriented Programs”, ACM , 2001 , <http://scholarworks.umass.edu/cgi/viewcontent.cgi?article=1008&context=cs—faculty—pubs> pp. 1-42.
- Avots et al., "Improving Software Security with a C Pointer Analysis," Proceedings of the 27th International Conference on Software Engineering (ICSE '05), May 2005, pp. 332-341.
- Dhurjati et al., "Enforcing Alias Analysis for Weakly Typed Languages", Computer Science Dept., University of Illinois, Nov. 2005, pp. 1-23.
- Diwan et al., "Type-Based Alias Analysis," Proceedings of the ACM SIGPLAN Conference on Programing Language Design and Implementation, Jun. 1998, pp. 106-117.