Integrated program debugging, verification, and optimization using abstract interpretation (and the Ciao system preprocessor)

被引:81
作者
Hermenegildo, MV
Puebla, G
Bueno, F
López-García, P
机构
[1] Tech Univ Madrid, Sch Comp Sci, Madrid 28660, Spain
[2] Tech Univ Madrid, Dept Comp Sci, Madrid 28660, Spain
[3] Univ New Mexico, Dept Comp Sci, Albuquerque, NM 87131 USA
[4] Univ New Mexico, Dept Elect & Comp Engn, Albuquerque, NM 87131 USA
关键词
program development; global analysis; abstract interpretation; debugging; verification; partial evaluation; program transformation; optimization; parallelization; resource control; programming environments; multi-Paradigm programming; (constraint) logic programming;
D O I
10.1016/j.scico.2005.02.006
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The technique of Abstract Interpretation has allowed the development of very sophisticated global program analyses which are at the same time provably correct and practical. We present in a tutorial fashion a novel program development framework which uses abstract interpretation as a fundamental tool. The framework uses modular, incremental abstract interpretation to obtain information about the program. This information is used to validate programs, to detect bugs with respect to partial specifications written using assertions (in the program itself and/or in system libraries), to generate and simplify run-time tests, and to perform high-level program transformations such as multiple abstract specialization, parallelization, and resource usage control, all in a provably correct way. In the case of validation and debugging, the assertions can refer to a variety of program points such as procedure entry, procedure exit, points within procedures, or global computations. The system can reason with much richer information than, for example, traditional types. This includes data structure shape (including pointer sharing), bounds on data structure sizes, and other operational variable instantiation properties, as well as procedure-level properties such as determinacy, termination, non-failure, and bounds on resource consumption (time or space cost). CiaoPP, the preprocessor of the Ciao multi-paradigm programming system, which implements the described functionality, will be used to illustrate the fundamental ideas. (c) 2005 Elsevier B.V. All rights reserved.
引用
收藏
页码:115 / 140
页数:26
相关论文
共 51 条
  • [1] ALBERT E, 2004, P COMP OPT MEETS COM
  • [2] Effectiveness of abstract interpretation in automatic parallelization: A case study in logic programming
    Bueno, F
    De la Banda, MG
    Hermenegildo, M
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1999, 21 (02): : 189 - 239
  • [3] Bueno F, 2004, LECT NOTES COMPUT SC, V2998, P100
  • [4] Bueno F., 1996, LNCS, V1058, P108, DOI [10.1007/3-540-61055-3_32, DOI 10.1007/3-540-61055-3_32]
  • [5] Bueno F., 1997, PROC 3 INT WS AUTOMA, P155
  • [6] Bueno R, 2001, LECT NOTES COMPUT SC, V2042, P86
  • [7] CABEZA D, 1994, LNCS, V864, P297
  • [8] Abstract diagnosis
    Comini, M
    Levi, G
    Meo, MC
    Vitiello, G
    [J]. JOURNAL OF LOGIC PROGRAMMING, 1999, 39 (1-3): : 43 - 93
  • [9] Comini M., 1995, 1995 INT LOG PROGR S, P275
  • [10] Cousot P, 2003, LECT NOTES COMPUT SC, V2575, P20