发明名称 METHOD AND APPARATUS FOR STATIC ANALYSIS OF SOFTWARE CODE
摘要 A method and apparatus for static analysis of program code. Embodiments of the invention allow for detection of run time bugs that may arise during the execution of a software application by implementing data structures that represent an image of the program and its variables in various execution instances. The invention is comprised of a context graph that represents various execution paths that are constructed from a series of related contexts. A context is a node in the context graph that represents the value of variables, state of methods, and the relationship between those variables and methods at an execution instance. The edges connecting the nodes represent one method calling the other, establishing a path of execution. Embodiments of the invention simplify the execution paths of large and complex programs into a context graph, using certain approximation and generalizations in analyzing the class files of a program. A context graph once developed can be queried for the status of different nodes and the relationship of those nodes at a certain instance of execution. Embodiments of the invention scale well to larger program codes, as they statistically represent information regarding various execution possibilities that are critical for analyzing the program, excluding any unnecessary details.
申请公布号 WO0101256(A1) 申请公布日期 2001.01.04
申请号 WO2000US18213 申请日期 2000.06.29
申请人 SUN MICROSYSTEMS, INC. 发明人 FINK, GEORGE
分类号 G06F9/45;G06F11/36;(IPC1-7):G06F11/36;G06F9/44 主分类号 G06F9/45
代理机构 代理人
主权项
地址