Patents
US 8,046,751 B1#1064863 Most CitedActiveUnited States (USPTO)Utility

Structuring unstructured regions in a control flow graph

47Forward Citations (#1064863 Global)
3.1/yrCitation Velocity (#816220 Global)
3.72Citation PageRank (#5361729 Global)
7Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

Abstract

A control flow graph may be generated from a model. The control flow graph may be restructured by converting at least one unstructured region of a control flow graph into a structured region. The restructuring may include locating at least one block between two merge nodes in the control flow graph, moving the located block to a different section of the control flow graph, and creating the structured region by surrounding the moved code block with a test of a guard variable.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 47.

Claims (2 — 1 Independent, 1 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented method of generating a structured control flow graph from a model, said method comprising: generating, using a computing device, a control flow graph from the model; identifying at least one unstructured region by locating at least one code block between two merge nodes in the control flow graph; and creating a structured region of the control flow graph by removing the functionality of the at least one code block from between the two merge nodes using a guard variable, the guard variable preventing execution of the at least one code block when a condition is satisfied.

  2. Claim 2Depends on #1

    The computer-implemented method of claim 1 , wherein creating the structured region further comprises: surrounding the at least one code block with a test of the guard variable; and setting the guard variable to a predetermined value on every path that has led to

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • Cifuentes, Cristina, "A Structuring Algorithm for Decompilation," Proceedings of the XIX Conferencia Latinoamericana de Informatica, Aug. 1993, pp. 267-276.
  • Erosa, Ana M. and Laurie J. Hendren, "Taming Control Flow: A Structured Approach to Eliminating Goto Statements," Proceedings of the 1994 International Conference on Computer Languages, May 1994, pp. 229-240.
  • Pan, Si and R. Geoff Dromey, "A Formal Basis for Removing Goto Statements," The Computer Journal, vol. 39, No. 3, 1996, pp. 203-214.
  • Sarkar, V., "Automatic selection of high-order transformations in the IBM XL Forran compilers," IBM J. Res. Develop., vol. 41(3):233-264 (1997).
  • Williams, M. H. and H. L. Ossher, "Conversion of Unstructured Flow Diagrams to Structured Form," The Computer Journal, vol. 21, No. 2, 1978, pp. 161-167.