An evolutionary approach to translating operational specifications into declarative specifications

被引:1
|
作者
Molina, Facundo [1 ,2 ]
Cornejo, Cesar [1 ,2 ]
Degiovanni, Renzo [3 ]
Regis, German [1 ]
Castro, Pablo F. [1 ,2 ]
Aguirre, Nazareno [1 ,2 ]
Frias, Marcelo F. [2 ,4 ]
机构
[1] Univ Rio Cuarto, Dept Comp Sci, FCEFQyN, Rio Cuarto, Argentina
[2] Natl Council Sci & Tech Res CONICET, Buenos Aires, DF, Argentina
[3] Univ Luxembourg, SnT, Luxembourg, Luxembourg
[4] Buenos Aires Inst Technol, Dept Software Engn, Buenos Aires, DF, Argentina
关键词
Program specification; Program analysis; Relational logic; Evolutionary algorithms;
D O I
10.1016/j.scico.2019.05.006
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Various tools for program analysis, including run-time assertion checkers and static analyzers such as verification and test generation tools, require formal specifications of the programs being analyzed. Moreover, many of these tools and techniques require such specifications to be written in a particular style, or follow certain patterns, in order to obtain an acceptable performance from the corresponding analyses. Thus, having a formal specification sometimes is not enough for using a particular technique, since such specification may not be provided in the right formalism. In this paper, we deal with this problem in the increasingly common case of having an operational specification, while for analysis reasons requiring a declarative specification. We propose an evolutionary approach to translate an operational specification written in a sequential programming language, into a declarative specification, in relational logic. We perform experiments on a benchmark of data structure implementations, for which operational invariants are available, and show that our evolutionary computation based approach to translating specifications achieves very good precision in this context, and produces declarative specifications that are more amenable to analyses that demand specifications in this style. This is assessed in two contexts: bounded verification of data structure invariant preservation, and instance enumeration using symbolic execution aided by tight bounds. (C) 2019 Elsevier B.V. All rights reserved.
引用
下载
收藏
页码:47 / 63
页数:17
相关论文
共 50 条
  • [1] RECONCILING OPERATIONAL AND DECLARATIVE SPECIFICATIONS
    HAGELSTEIN, J
    ROELANTS, D
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 593 : 221 - 238
  • [2] Declarative specifications
    Fuchs, NE
    Robertson, D
    KNOWLEDGE ENGINEERING REVIEW, 1996, 11 (04): : 317 - 331
  • [3] Inferring declarative requirements specifications from operational scenarios
    van Lamsweerde, A
    Willemet, L
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1998, 24 (12) : 1089 - 1114
  • [4] From Operational to Declarative Specifications using a Genetic Algorithm
    Molina, Facundo
    Degiovanni, Renzo
    Regis, German
    Castro, Pablo
    Aguirre, Nazareno
    Frias, Marcelo
    PROCEEDINGS 2018 IEEE/ACM 11TH INTERNATIONAL WORKSHOP ON SEARCH-BASED SOFTWARE TESTING (SBST), 2018, : 39 - 42
  • [5] On the Flexibility of Declarative Process Specifications
    Corea, Carl
    Felli, Paolo
    Montali, Marco
    Patrizi, Fabio
    ADVANCED INFORMATION SYSTEMS ENGINEERING, CAISE 2024, 2024, 14663 : 161 - 177
  • [6] Writing Declarative Specifications for Clauses
    Gebser, Martin
    Janhunen, Tomi
    Kaminski, Roland
    Schaub, Torsten
    Tasharrofi, Shahab
    LOGICS IN ARTIFICIAL INTELLIGENCE, (JELIA 2016), 2016, 10021 : 256 - 271
  • [7] IMPROVEMENTS ON THE EVALUATION OF DECLARATIVE SPECIFICATIONS
    DIETRICH, SW
    EIGHTH ANNUAL INTERNATIONAL PHOENIX CONFERENCE ON COMPUTERS AND COMMUNICATIONS: 1989 CONFERENCE PROCEEDINGS, 1989, : 606 - 610
  • [8] Declarative Verifiable SDI Specifications
    McGeer, Rick
    2016 IEEE SYMPOSIUM ON SECURITY AND PRIVACY WORKSHOPS (SPW 2016), 2016, : 198 - 203
  • [9] An Evolutionary Approach for Analyzing Alloy Specifications
    Wang, Jianghao
    Bagheri, Hamid
    Cohen, Myra B.
    PROCEEDINGS OF THE 2018 33RD IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMTED SOFTWARE ENGINEERING (ASE' 18), 2018, : 820 - 825
  • [10] Declarative specifications for adaptive hypermedia based on a semantic web approach
    Garlatti, S
    Iksal, S
    USER MODELING 2003, PROCEEDINGS, 2003, 2702 : 81 - 85