Using dynamic information to refine control flow graphs
Abstract
A system, method and computer program product to refine an original complex CFG into a simpler CFG showing interesting paths and reducing interfering paths with dynamic input for the state of program. The method receives/encodes dynamic user input in the form of annotations which encodes user's special interests or knowledge of the program at run time, e.g., some assumptions of any variables appeared, which can be equations of variable and value or relationships between variables. The method then simplifies all the branching points in a generated AST (Abstract Syntax Tree) whenever possible by querying a SMT (Satisfiability Modulo Theories) solver with branching condition and the user annotations and by evaluating immediate values of expressions or eliminate unreachable parts in the CFG. Finally, the method generates a simplified CFG by simplified AST. This can assist a programmer to understand the code and facilitates correlating different basic blocks under a same scenario.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for refining a graphical depiction of a computer program for analysis, said method comprising: obtaining, from a computer program compiler, an abstracted depiction of a program source code to be refined; receiving, at a hardware processor, annotations for the abstracted depiction of the program source code, the annotations directed to simplifying one or more paths of the program source code for analysis; determining, using the hardware processor, a presence of branching points at said one or more paths of the program source code; for each branch condition of a bra
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 11,379,468 B1 | Control flow graph refining via execution data | 2022 | 2 |
References Cited — Backward Prior Art (8)
Non-Patent Literature (2)
- U.S. Appl. No. 14/867,052, filed Sep. 28, 2015.
- U.S. Appl. No. 15/073,805, filed Mar. 18, 2016.