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 条
  • [2] DEMAND-DRIVEN INTERPRETATION OF FP PROGRAMS ON A DATA-FLOW MULTIPROCESSOR
    WEI, YH
    GAUDIOT, JL
    [J]. IEEE TRANSACTIONS ON COMPUTERS, 1988, 37 (08) : 946 - 966
  • [3] DEMAND-DRIVEN DATA-FLOW FOR CONCURRENT COMMITTED-CHOICE CODE
    MASSEY, B
    TICK, E
    [J]. PARALLEL ARCHITECTURES AND COMPILATION TECHNIQUES, 1994, 50 : 215 - 224
  • [4] A practical framework for demand-driven interprocedural data flow analysis
    Duesterwald, E
    Gupta, R
    Soffa, ML
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1997, 19 (06): : 992 - 1030
  • [5] Practical framework for demand-driven interprocedural data flow analysis
    Hewlett-Packard Lab, Cambridge, United States
    [J]. ACM Trans Program Lang Syst, 6 (992-1030):
  • [6] An Improved Demand-Driven Pointer Alias Analysis Algorithm
    Liu, Peng
    Zhao, Rong-cai
    Gao, Wei
    Meng, Xiang-jie
    [J]. INTERNATIONAL CONFERENCE ON COMPUTER, NETWORK SECURITY AND COMMUNICATION ENGINEERING (CNSCE 2014), 2014, : 82 - 88
  • [7] Bidirectionality in flow-sensitive demand-driven analysis
    Jaiswal, Swati
    Khedker, Uday P.
    Chakraborty, Supratik
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2020, 190
  • [8] A demand-driven analyzer for data flow testing at the integration level
    Duesterwald, E
    Gupta, R
    Soffa, ML
    [J]. PROCEEDINGS OF THE 18TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, 1996, : 575 - 584
  • [9] Layered Region Based Flow-Sensitive Demand-Driven Alias Analysis
    Pang Long
    Su Xiaohong
    Ma Peijun
    Zhao Lingling
    [J]. APPLIED DECISIONS IN AREA OF MECHANICAL ENGINEERING AND INDUSTRIAL MANUFACTURING, 2014, 577 : 917 - 920
  • [10] Demand-driven pointer analysis
    Heintze, N
    Tardieu, O
    [J]. ACM SIGPLAN NOTICES, 2001, 36 (05) : 24 - 34