发明名称 A METHOD FOR DETERMINING PROGRAM CONTROL FLOW
摘要 <p>A method of generating a program control flow definition from the program code determines entry points in the program. The code is followed, or scanned, from an entry point to a branch or jump instruction, or control flow instruction. A code block is then defined as the code from the entry point up to and including the control flow instruction. From the control flow instruction, additional entry points are identified. This is repeated for each entry point having a known value, resulting in a partial control flow definition. For entry points having unknown values, a constant propagation analysis is performed on the partial control flow definition to convert unknown entry point values to known values. Finally, the entry points determined by the constant propagation analysis are used as starting points in the scanning step to define additional entry points. The steps of scanning from known block entry points to determine additional points and using constant propagation for determining additional block entry points for unknown values are repeated to extend the control flow definition. Constant propagation is only used when there are no known block entry points. Heuristics may be used to determine certain unknown values. In addition, a knowledge of the operating system under which the program is running may be used to determine certain unknown values. A preferred embodiment is implemented with a block worklist which comprises a list of all known blocks within the program and which defines the partial control flow for the computer program during analysis, and the complete control flow upon completion of analysis. A block entry worklist comprises a list of all known block entry points whose blocks are unknown, such that each block entry point in the block entry worklist is analyzed.</p>
申请公布号 WO2000034861(A1) 申请公布日期 2000.06.15
申请号 US1999029190 申请日期 1999.12.08
申请人 发明人
分类号 主分类号
代理机构 代理人
主权项
地址