发明名称 Automated detection and correction of uninitialized variables
摘要 In a compiler within a computing system, user definition webs are built for local variables in a subroutine. For each user definition web in which a first local variable is used, if there is a use of the first local variable for which there is no definition on at least one path to an entry point of the subroutine, a definition of the local variable is inserted at every entry point of the subroutine from which the use can be reached. Further, in the preferred embodiment, for each user definition web in which a first local variable is used, if there is a use of the first local variable for which there is no definition on at least one path to an entry point of the subroutine and if no definition can reach the use, the web is reported as definitely undefined. For each user definition web in which a first local variable is used, if there is a use of the first local variable for which there is no definition and if a definition can reach the use, the web is reported as possibly undefined.
申请公布号 US5615369(A) 申请公布日期 1997.03.25
申请号 US19940280166 申请日期 1994.07.25
申请人 HEWLETT-PACKARD COMPANY 发明人 HOLLER, ANNE M.
分类号 G06F9/45;(IPC1-7):G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址