Skip to content
Open access

INTEGRATION OF LOGIC-ORIENTED VERIFICATION WITH LARGE LANGUAGE MODELS INTO SOFTWARE DEVELOPMENT

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.

Read PDF

Similar papers

Open access 2025

THE POTENTIAL OF AI AGENTS IN THE FIELD OF RELIABILITY AND QUALITY

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 · 0 citations
Preprint Sep 2026

LLM-enabled Behavior Driven Development Workflow for Formally Verified Hardware Designs

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...

Luca Müller, Qian Liu, Rolf Drechsler · 0 citations
Preprint Sep 2026

Large Language Models and Language Server Protocol: a match made in context

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
Preprint Sep 2026

AST-Based Automated Elimination of break and continue Statements in Java Code

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
Review Open access Sep 2026

State space-based methods for validating model transformations in model checkers

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 · 0 citations
Open access 2026

An Empirical Study on the Effectiveness of Large Language Models for Automated Software Development Tasks

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 · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.