Control flow graph analysis
Abstract
A method and systems generate a control flow graph including an edge of the control flow graph from a branch instruction to a target address of the branch instruction in an abstract interpretation for an assignment instruction to a branch target variable of a program. The program allocates a particular branch target variable to a branch instruction having a plurality of branch targets. The branch target address is loaded from the branch target variable upon branching, a branch address of a branch instruction having one branch target as well as the address assigned by the assignment instruction to the branch target variable being determined as certain constant values determined by compiling the program. The target address assigned by the assignment instruction is added to an object of the abstract interpretation. A current abstract interpretation is terminated if the abstract interpretation reaches an instruction already subjected to the abstract interpretation.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer executable method for analyzing a control flow graph by an abstract interpretation of a program comprising: extracting a current program state of the program from a program state buffer, the current program state including a program counter and a virtual address register, the virtual address register including a branch instruction address to one or more branch targets; generating an edge of a control flow graph from the branch instruction address to each of the one or more branch targets of the virtual address register; adding a new program state to the program state buffer, having
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (15)
Non-Patent Literature (4)
- Cousot et al., “Abstract Interpretation: A Unified Lattice Model for Static Analysis of Programs by Construction or Approximation of Fixpoints”, Proceedings of the 4th ACM SIGACT-SIGPLAN sumplsium on Principles of programming languages, pp. 238-252 (Year: 1977).
- Kinder, et al. “An Abstract Interpretation-Based Framework for Control Flow Reconstruction from Binaries”, Verification, Model Checking, and Abstract Interpretation, 10th International Conference (VMCAI) Atlanta, GA., pp. 1-21, Jan. 2009.
- List of IBM Patents or Patent Applications Treated as Related dated Jan. 17, 2018, 2 pages.
- Midtgaard et al., “A calculation Approach to Control-Flow Analysis by Abstract Interpretation”, 15th Internation Symposium, SAS, LNCS 5079, pp. 347-362 (Year: 2008).