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 条
  • [31] From declarative to imperative UML/OCL operation specifications
    Cabot, Jordi
    CONCEPTUAL MODELING - ER 2007, PROCEEDINGS, 2007, 4801 : 198 - 213
  • [32] Paraconsistent reasoning for inconsistency measurement in declarative process specifications
    Corea, Carl
    Kuhlmann, Isabelle
    Thimm, Matthias
    John, Grant
    INFORMATION SYSTEMS, 2024, 122
  • [33] Detecting Responsive Web Design Bugs with Declarative Specifications
    Beroual, Oussama
    Guerin, Francis
    Halle, Sylvain
    WEB ENGINEERING, ICWE 2020, 2020, 12128 : 3 - 18
  • [34] Verification from Declarative Specifications Using Logic Programming
    Montali, Marco
    Torroni, Paolo
    Alberti, Marco
    Chesani, Federico
    Gavanelli, Marco
    Lamma, Evelina
    Mello, Paola
    LOGIC PROGRAMMING, PROCEEDINGS, 2008, 5366 : 440 - +
  • [35] Declarative specifications of complex transactions - With an application to cascading deletes
    De Brock, B
    TRANSACTIONS AND DATABASE DYNAMICS, 2000, 1773 : 150 - 166
  • [36] Declarative specifications for the development of multi-agent systems
    Challenger, Moharram
    Mernik, Marjan
    Kardas, Geylani
    Kosar, Tomaz
    COMPUTER STANDARDS & INTERFACES, 2016, 43 : 91 - 115
  • [37] STRUCTURAL OPERATIONAL SPECIFICATIONS AND TRACE AUTOMATA
    BADOUEL, E
    DARONDEAU, P
    LECTURE NOTES IN COMPUTER SCIENCE, 1992, 630 : 302 - 316
  • [38] Formalizing Operational Semantic Specifications in Logic
    Miller, Dale
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2009, 246 : 147 - 165
  • [39] FORMALIZING OPERATIONAL SEMANTIC SPECIFICATIONS IN LOGIC
    Aceto, Luca
    Miller, Dale
    BULLETIN OF THE EUROPEAN ASSOCIATION FOR THEORETICAL COMPUTER SCIENCE, 2008, (96): : 58 - 79
  • [40] Translating Meaning Representations To Behavioural Interface Specifications
    Leong, Iat Tou
    Barbosa, Raul
    SSRN, 2023,