Abstract
Low-code development platforms (LCDPs) reduce development effort through reusable,high-level building blocks. Constructing such blocks requires identifying recurring pat
terns across existing codebases and transforming them into generalized, parameterizable
components, a process that does not scale to large or heterogeneous systems when done
manually.
This thesis presents a three-stage system that automates this transformation: a hy
brid code clone detection pipeline, combining classical static analysis, embedding-based
similarity, and large language model (LLM) reasoning, a chat-based abstraction stage,
in which a human engineer and an LLM collaboratively derive a structured abstraction
artifact, and an agentic code generation workflow that transforms the approved artifact
into a validated implementation through an iterative tool-calling loop.
The detection pipeline is evaluated on BigCloneBench and Project CodeNet across
eight detectors and ten hybrid configurations. Classical detectors achieve a precision
of about 0.97 but collapse on semantic clone types, reaching near-zero recall on Co
deNet. The Qwen3.6 27B open-weight model achieves the best single-model balance at
F1 = 0.864 on BigCloneBench and F1 = 0.964 on CodeNet, demonstrating that LLM
reasoning is a precondition for semantic clone coverage. The hybrid pipeline improves on
the standalone LLM across all ten BigCloneBench configurations while reducing LLM
token consumption by approximately 71%.
The abstraction and generation stages are evaluated through a case study on Siemens
Structured Control Language function blocks. Two sessions, one with GPT-5.4, one with
a locally hosted Qwen3.6-27B, both produced compilable ANTLR4 grammars within a
single interactive session. Both required seven domain-knowledge extension rounds for
concepts not inferred from the code alone. The local model additionally required three
technical correction rounds and consumed approximately 8% more total tokens.
The results demonstrate that the system can support engineers end-to-end using ei
ther proprietary or locally hosted models. Domain knowledge remains an irreplaceable
human contribution, and open-weight models may additionally require technical over
sight. A locally hosted 27B-parameter model is sufficient for the full pipeline, making
the approach viable for data-sovereign industrial applications.
| Date of Award | 2026 |
|---|---|
| Original language | English (American) |
| Awarding Institution |
|
| Supervisor | Stefan Wagner (Supervisor) & Bernhard Schenkenfelder (Supervisor) |
Studyprogram
- Software Engineering
Cite this
- Standard