arXiv Science⌕ Search

arXiv subjects

Benedikt Jutz

Publications and source records attributed to Benedikt Jutz.

2 recordsLinked to original sources

Replay-Based Merge for Delta-Based Consistency Management in Multi-Model Development

When multiple models are kept consistent by automated Change Propagation Rules (CPRs), merging independently evolved branches remains challenging. Existing operation-based versioning approaches record edit histories but do not account for CPRs that generate consequential changes across model boundaries. As a result, they report conflicts on model elements that would be regenerated during a consistency aware merge. We present a replay-based three-way merge approach for multi-model consistency management systems that distinguish original from consequential changes. The approach records original changes per commit and replays them through the consistency preservation engine according to a dependency graph that preserves both branches' original intent while regenerating consequential changes. Conflicts are classified by provenance: direct conflicts between original changes require user resolution, whereas consequential overlaps become ordering constraints resolved automatically; cycles in the dependency graph indicate consequential conflicts. We instantiate the approach in the Vitruvius framework for view-based software development. We formalize the merge operator over change histories and show that every successful merge preserves global consistency. We evaluate the approach on three case studies comprising 14 merge scenarios and compare it with EMF Compare. Our approach reports 10 blocking conflicts, whereas EMF Compare reports 37, because it cannot distinguish original from consequential changes and therefore flags conflicts that our approach resolves automatically.

cs.SE↗

LLM4MTLs: Automated Generation and Empirical Evaluation of Model Transformation Languages

Model transformation languages (MTLs) are domain-specific languages for transforming models conforming to a given metamodel into other models, including textual models such as source code. Developing correct model transformations is challenging, requiring both language-specific and domain knowledge, and motivating the use of large language models (LLMs) for MTL code generation. However, due to limited training data and executable examples, LLM-generated MTL code is often not syntactically valid or semantically usable out of the box. This paper presents LLM4MTLs, an automated workflow for constructing and comparing prompting strategies for LLM-generated MTL code, together with an evaluation suite and an empirical evaluation. The workflow systematically explores prompt constructions combining few-shot prompting, grammar prompting, and helper method inclusion, and evaluates them using syntactic and semantic metrics. We construct an evaluation suite spanning four MTLs (ATL, ETL, QVTo, and the Reactions language) with executable reference scripts and manually written test suites, and evaluate across three LLMs. We find that few-shot prompting consistently improves syntactic quality across all four MTLs while gains in semantic correctness are uneven and language-dependent. For ATL, Pass@1 remains unchanged across all strategies and models, indicating that few-shot prompting improves surface-level syntax more readily than deep transformation semantics. Grammar prompting stabilizes code generation when combined with few-shot examples, but in isolation it can be ineffective or even counterproductive for certain model-language combinations. Including helper methods as a complementary amplifier can also be beneficial. Finally, LLM choice influences syntactic correctness and similarity for certain MTLs, particularly ETL and QVTo, while its influence on semantic correctness remains limited.

cs.SE↗