Abstract
Modern applications increasingly rely on embedded systems that incorporate visual interfaces developed utilizing socalled embedded graphics libraries. Verifying these embedded graphics libraries is challenging due to hardware dependencies and the lack of reference outputs. The lack of reference outputs is tackled in Metamorphic Testing (MT) by constructing two Firmware (FW) versions with distinct implementations that maintain the same input-output relationships. These relations are known as Metamorphic Relations (MRs). However, the development of these MRs remains a tedious and challenging task.
In this paper, we present a novel approach for generating MRs for MT of embedded graphics libraries using Large Language Models (LLMs). Because directly creating MRs with simple prompts is too complex for the LLM, we employ proven prompting strategies to develop our LLM-assisted MR pipeline. Strategies include role prompting, least-to-most prompting, zero-shot prompting, constraint-based prompting, and style prompting. In our experiments, we verify a widely used embedded graphics library. We compare our results with an existing manual approach and demonstrate that LLM-assisted MRs nearly doubles coverage and identifies additional bugs.
In this paper, we present a novel approach for generating MRs for MT of embedded graphics libraries using Large Language Models (LLMs). Because directly creating MRs with simple prompts is too complex for the LLM, we employ proven prompting strategies to develop our LLM-assisted MR pipeline. Strategies include role prompting, least-to-most prompting, zero-shot prompting, constraint-based prompting, and style prompting. In our experiments, we verify a widely used embedded graphics library. We compare our results with an existing manual approach and demonstrate that LLM-assisted MRs nearly doubles coverage and identifies additional bugs.
| Original language | English |
|---|---|
| Title of host publication | Forum on specification & Design Languages (FDL) 2025 |
| Publisher | IEEE Xplore |
| Number of pages | 10 |
| Edition | 1 |
| ISBN (Electronic) | 9798331593797 |
| DOIs | |
| Publication status | Published - 2025 |
Publication series
| Name | Forum on Specification and Design Languages |
|---|---|
| ISSN (Print) | 1636-9874 |
Fields of science
- 202028 Microelectronics
- 102011 Formal languages
- 202017 Embedded systems
- 102005 Computer aided design (CAD)
- 202041 Computer engineering
- 101015 Operations research
- 202005 Computer architecture
- 102 Computer Sciences
JKU Focus areas
- Digital Transformation
Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver