2025· Reliability and Quality of Complex Systems· 0 citations
TL;DR
Experimental evaluation shows that increasing the proportion of successful verifications requires additional model training, a broader context, and the integration of mutation and candidate selection operations, while practical limitations of the proposed hybrid approach when using small-class models are identified.
Abstract
Background. Automating the generation of formal specifications remains one of the key tasks in formal software verification, as manual code annotation is labour-intensive and prone to errors. This paper proposes a hybrid approach combining locally deployed large language models (LLMs) and logical verification tools aimed at automatically generating JML annotations and their subsequent formal verification. The goal of the study is to evaluate the quality of the generated annotations and identify practical limitations of the approach when using small-class models. verification of annotations was performed using SpotBugs, and formal verification was performed using OpenJML in conjunction with the SMT solver Z3. The pipeline consists of four stages: automatic annotation generation, syntactic validation, deductive verification, and error classification with subsequent correction. The following metrics were used for evaluation: the proportion of syntactically correct annotations, the proportion of successfully verified specifications, and the processing time per class. Results. On a set of 11 examples, medium-sized OpenJML models demonstrated the ability to generate syntactically correct JML annotations, but the proportion of fully verified specifications remained low. The main limitations were identified in the area of semantic accuracy of annotations, the inability to take side effects into account, and, in some cases, the mismatch of formats between analysis tools. Experimental evaluation shows that increasing the proportion of successful verifications requires additional model training, a broader context, and the integration of mutation and candidate selection operations. Conclusions. The proposed hybrid approach demonstrates practical potential, but its implementation in real development will require improving the quality of the semantics of automatically generated contracts, expanding training sets, and creating automated error correction procedures integrated into the generation cycle.
Background. Automated generation of formal specifications remains a key task in formal software verification to improve its reliability, since manual code annotation is labor-intensive and error-prone. The aim of the study is to evaluate the quality of generated annotations and identify practical limitations of the app...
P. Mel'nikov, Andrey Tyugashev, V. N. Novikova· Reliability and Quality of C...· 0 citations
This work proposes an integrated view on the use of LLMs for EDA and establishes an LLM-enabled behavior driven hardware development workflow, introducing and defining Formal Verification Gherkin Scenarios (FV Gherkin Scenarios), unlocking CNL specifications as the foundation for formally verified hardware designs via...
This article introduces Eiffel-tools, a language server protocol (LSP) implementation for the Eiffel programming language that uses Large Language Models (LLMs) to aid the development of statically verified software. The tool provides various interactive and non-interactive commands to produce code and specifications....
Alessandro Schena, I. Mustafin, Julia Kotovich· 0 citations
This work presents the development of an automatic refactoring tool for Java code built on top of the Eclipse JDT API. The proposed approach transforms control structures containing break and continue statements within different types of loops into semantically equivalent constructs that avoid their explicit use. To ac...
Andrés Juárez, J. Chicano, Rubén Saborido· 0 citations
Formal methods, including model checking, are rapidly gaining importance, especially in safety-critical domains like aerospace and automotive. Consequently, the systems to be verified are growing more complex and are described in diverse design languages, often expressive and ambiguous. However, model checkers oper...
Zsófia Ádám, Zoltán Micskei· Journal of Software and Syst...· 0 citations
This research investigates the possibility of replacing junior and intermediate programmers with artificial intelligence (AI)-based tools in the code generation process. To inspect the capabilities of these tools, the Qwen Coder tool was used to conduct the tests. The methodology used in the study is based on 10 tests,...
M. Pantilică, Corina Ene· Economic Insights: Trends an...· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.