Algorithm recognition based on demand-driven data-flow analysis

被引:7
|
作者
Alias, C [1 ]
Barthou, D [1 ]
机构
[1] Univ Versailles, F-78000 Versailles, France
关键词
D O I
10.1109/WCRE.2003.1287260
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Algorithm recognition is an important problem in program analysis, optimization, and more particularly program comprehension. Basically, one would like to submit a piece of code, and get an answer like "Lines 10 to 23 are an implementation of Gauss-Jordan elimination". Existing approaches often perform a bottom-up recognition, using a database describing many implementation variations of a given algorithm, in a format making them difficult to maintain. In this paper we present a new method to recognize algorithm templates in a program. We perform a top-down recognition, stopping at template variables and thus limiting the need for many program variations. The code to analyze is given in SSA form, and the phi-junctions are computed on-demand, when computation is possible, along the candidate slices.
引用
收藏
页码:296 / 305
页数:10
相关论文
共 50 条
  • [21] AN EFFICIENT GENERAL ITERATIVE ALGORITHM FOR DATA-FLOW ANALYSIS
    HORWITZ, S
    DEMERS, A
    TEITELBAUM, T
    ACTA INFORMATICA, 1987, 24 (06) : 679 - 694
  • [22] A Benders decomposition algorithm for demand-driven metro scheduling
    Schettini, Tommaso
    Jabali, Ola
    Malucelli, Federico
    COMPUTERS & OPERATIONS RESEARCH, 2022, 138
  • [23] DATA-FLOW DRIVEN REALTIME PROCESSING
    WILLIAMS, D
    COMPUTER DESIGN, 1994, 33 (09): : 80 - 80
  • [24] Demand-driven interprocedural analysis for map-based abstract domains
    Apinis, Kalmer
    Vene, Varmo
    Vojdani, Vesal
    JOURNAL OF LOGICAL AND ALGEBRAIC METHODS IN PROGRAMMING, 2018, 100 : 57 - 70
  • [25] Demand-driven less-than analysis
    da Silva, Junio Cezar R.
    Pereira, Fernando Magno Q.
    PROCEEDINGS OF THE 21ST BRAZILIAN SYMPOSIUM ON PROGRAMMING LANGUAGES (SBLP 2017), 2017,
  • [26] Static Analysis with Demand-Driven Value Refinement
    Stein, Benno
    Nielsen, Benjamin Barslev
    Chang, Bor-Yuh Evan
    Moller, Anders
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2019, 3 (OOPSLA):
  • [27] Demand-Driven Refinement of Points-to Analysis
    Sun, Chenguang
    Midkiff, Samuel
    2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2019), 2019, : 264 - 265
  • [28] Demand-Driven Memory Leak Detection Based on Flow- and Context-Sensitive Pointer Analysis
    Ji Wang
    Xiao-Dong Ma
    Wei Dong
    Hou-Feng Xu
    Wan-Wei Liu
    Journal of Computer Science and Technology, 2009, 24 : 347 - 356
  • [29] Demand-Driven Memory Leak Detection Based on Flow-and Context-Sensitive Pointer Analysis
    王戟
    马晓东
    董威
    徐厚峰
    刘万伟
    Journal of Computer Science & Technology, 2009, 24 (02) : 347 - 356
  • [30] Demand-Driven Memory Leak Detection Based on Flow- and Context-Sensitive Pointer Analysis
    Wang, Ji
    Ma, Xiao-Dong
    Dong, Wei
    Xu, Hou-Feng
    Liu, Wan-Wei
    JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2009, 24 (02) : 347 - 356