A FRAMEWORK FOR SOURCE CODE SEARCH USING PROGRAM PATTERNS

被引:81
|
作者
PAUL, S
PRAKASH, A
机构
[1] Software Systems Research Laboratory, Dept. of Electrical Engineering & Computer Science, University of Michigan, Ann Arbor, MI
关键词
REVERSE ENGINEERING; SOFTWARE MAINTENANCE; SOFTWARE REENGINEERING; PROGRAM UNDERSTANDING; PATTERN MATCHING; QUERY LANGUAGE;
D O I
10.1109/32.295894
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
For maintainers involved in understanding and reengineering large software. locating source code fragments that match certain patterns is a critical task. Existing solutions to the problem are few, and they either involve manual, painstaking scans of the source code using tools based on regular expressions, or the use of large, integrated software engineering environments that include simple pattern-based query processors in their tool-kits. We present a framework in which pattern languages are used to specify interesting code features. The pattern languages are derived by extending the source programming language with pattern-matching symbols. We describe SCRUPLE, a finite state machine-based source code search tool, that efficiently implements this framework. We also present experimental performance results obtained from a SCRUPLE prototype, and the user interface of a source code browser built on top of SCRUPLE.
引用
收藏
页码:463 / 475
页数:13
相关论文
共 50 条
  • [31] A Framework for the Detection of Search and Rescue Patterns Using Shapelet Classification
    Kapadais, Konstantinos
    Varlamis, Iraklis
    Sardianos, Christos
    Tserpes, Konstantinos
    FUTURE INTERNET, 2019, 11 (09):
  • [32] A Study of Datum Search Patterns Using a Stochastic Game Framework
    Ristic, Branko
    Skvortsov, Alex
    Arulampalam, Sanjeev
    Kim, Du Yong
    2022 11TH INTERNATIONAL CONFERENCE ON CONTROL, AUTOMATION AND INFORMATION SCIENCES (ICCAIS), 2022, : 13 - 18
  • [33] A Framework for automatically mining source code
    School of Computer and Applied Technology, Huazhong University of Science and Technology , Wuhan, China
    不详
    J. Softw. Eng., 2 (64-77):
  • [34] Precise and Scalable Querying of Syntactical Source Code Patterns Using Sample Code Snippets and a Database
    Panchenko, Oleksandr
    Karstens, Jan
    Plattner, Hasso
    Zeier, Alexander
    2011 IEEE 19TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC), 2011, : 41 - 50
  • [35] Effective pattern matching of source code using abstract syntax patterns
    Atkinson, DC
    Griswold, WG
    SOFTWARE-PRACTICE & EXPERIENCE, 2006, 36 (04): : 413 - 447
  • [36] Searching design patterns in source code
    Streitferdt, D
    Heller, C
    Philippow, I
    Proceedings of the 29th Annual International Computer Software and Applications Conference, Workshops and Fast Abstracts, 2005, : 33 - 34
  • [37] Java']Java Archives Search Engine Using Byte Code as Information Source
    Karnalim, Oscar
    Mandala, Rila
    2014 INTERNATIONAL CONFERENCE ON DATA AND SOFTWARE ENGINEERING (ICODSE), 2014,
  • [38] A SOURCE CODE AND NON-SOURCE CODE PLAGIARISM DETECTION RESEARCH FOR C PROGRAM
    Zhong Mei
    Li Yanchen
    Liu Dongsheng
    2011 3RD INTERNATIONAL CONFERENCE ON COMPUTER TECHNOLOGY AND DEVELOPMENT (ICCTD 2011), VOL 3, 2012, : 543 - 547
  • [39] BadCS: A Backdoor Attack Framework for Code search
    Qi, Shiyi
    Yang, Yuanhang
    Gao, Shuzheng
    Gao, Cuiyun
    Xu, Zenglin
    arXiv, 2023,
  • [40] Source Code Prioritization Using Forward Slicing for Exposing Critical Elements in a Program
    Mitrabinda Ray
    Kanhaiya lal Kumawat
    Durga Prasad Mohapatra
    Journal of Computer Science and Technology, 2011, 26 : 314 - 327