Content area

Abstract

Object Constraint Language (OCL) is one kind of lightweight formal specification, which is widely used for software verification and validation in NASA and Object Management Group projects. Although OCL provides a simple expressive syntax, it is hard for the developers to write correctly due to lacking knowledge of the mathematical foundations of the first‐order logic, which is approximately half accurate at the first stage of development. A deep neural network named DeepOCL is proposed, which takes the unrestricted natural language as inputs and automatically outputs the best‐scored OCL candidates without requiring a domain conceptual model that is compulsively required in existing rule‐based generation approaches. To demonstrate the validity of our proposed approach, ablation experiments were conducted on a new sentence‐aligned dataset named OCLPairs. The experiments show that the proposed DeepOCL can achieve state of the art for OCL statement generation, scored 74.30 on BLEU, and greatly outperformed experienced developers by 35.19%. The proposed approach is the first deep learning approach to generate the OCL expression from the natural language. It can be further developed as a CASE tool for the software industry.

Details

1009240
Identifier / keyword
Title
DeepOCL: A deep neural network for Object Constraint Language generation from unrestricted nature language
Author
Yang, Yilong 1   VIAFID ORCID Logo  ; Liu, Yibo 1   VIAFID ORCID Logo  ; Bao, Tianshu 2 ; Wang, Weiru 3 ; Niu, Nan 4 ; Yin, Yongfeng 1 

 School of Software, Beihang University, Beijing, China 
 College of Computer Science and Technology, Guizhou University, Guiyang, Guizhou, China 
 Faculty of Information Technology, Beijing University of Technology, Beijing, China 
 Department of Electrical Engineering and Computer Sciences, University of Cincinnati, Cincinnati, Ohio, USA 
Volume
9
Issue
1
Pages
250-263
Publication year
2024
Publication date
Feb 1, 2024
Section
REGULAR ARTICLES
Publisher
John Wiley & Sons, Inc.
Place of publication
Beijing
Country of publication
United States
e-ISSN
24682322
Source type
Scholarly Journal
Language of publication
English
Document type
Journal Article
Publication history
 
 
Online publication date
2023-03-12
Milestone dates
2023-01-20 (manuscriptRevised); 2024-02-13 (publishedOnlineFinalForm); 2022-10-24 (manuscriptReceived); 2023-03-12 (publishedOnlineEarlyUnpaginated); 2023-02-08 (manuscriptAccepted)
Publication history
 
 
   First posting date
12 Mar 2023
ProQuest document ID
3192195979
Document URL
https://www.proquest.com/scholarly-journals/deepocl-deep-neural-network-object-constraint/docview/3192195979/se-2?accountid=208611
Copyright
© 2024. This work is published under http://creativecommons.org/licenses/by/4.0/ (the "License"). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Last updated
2025-04-22
Database
ProQuest One Academic