### 抜粋

Program analysis is the heart of modern compilers. Most control flow analyses are reduced to the problem of finding a fixed point in a certain transition system, and such fixed point is commonly computed through an iterative procedure that repeats tracing until convergence. This paper proposes a new method to analyze programs through recursive graph traversals instead of iterative procedures, based on the fact that most programs (without spaghetti GOTO) have well-structured control flow graphs, graphs with bounded tree width. Our main techniques are; an algebraic construction of a control flow graph, called SP Term, which enables control flow analysis to be defined in a natural recursive form, and the Optimization Theorem, which enables us to compute optimal solution by dynamic programming. We illustrate our method with two examples; dead code detection and register allocation. Different from the traditional standard iterative solution, our dead code detection is described as a simple combination of bottom-up and top-down traversals on SP Term. Register allocation is more interesting, as it further requires optimality of the result. We show how the Optimization Theorem on SP Terms works to find an optimal register allocation as a certain dynamic programming.

元の言語 | English |
---|---|

ページ（範囲） | 111-123 |

ページ数 | 13 |

ジャーナル | ACM SIGPLAN Notices |

巻 | 38 |

発行部数 | 9 |

DOI | |

出版物ステータス | Published - 2003 9 |

イベント | Proceedings of the 2003 ACM SIGPLAN International Conference on Functional Programming - Uppsala, Sweden 継続期間: 2003 8 25 → 2003 8 29 |

### ASJC Scopus subject areas

- Software
- Computer Graphics and Computer-Aided Design

## フィンガープリント Iterative-free program analysis' の研究トピックを掘り下げます。これらはともに一意のフィンガープリントを構成します。

## これを引用

*ACM SIGPLAN Notices*,

*38*(9), 111-123. https://doi.org/10.1145/944746.944716