
6 CONCLUSION
This study demonstrates the potential of large lan-
guage models (LLMs) as code generators in Model-
Driven Development (MDD), translating UML and
OCL specifications into executable code and enhanc-
ing productivity through rapid prototyping. An em-
pirical comparison with manually written implemen-
tations showed that LLMs can interpret incomplete
or informal designs, handle custom OCL extensions,
and respond effectively to prompt engineering. While
the well-known Sudoku domain may bias results pos-
sibly due to its presence in training data, the study
highlights the LLM’s ability to generate structured,
semantically aligned code from formal models. How-
ever, the ease of producing large volumes of code in
a single prompt may tempt developers to skip manual
checks, reinforcing the need for automated verifica-
tion to ensure correctness and consistency.
Future work will explore novel domains to as-
sess generalization and address integration and per-
formance challenges. Key directions include advanc-
ing verification techniques, refining prompts, and im-
proving context tracking for iterative development.
Though unlikely to replace traditional MDD tools,
LLMs can serve as powerful assistants when coupled
with rigorous verification and validation frameworks.
REFERENCES
Bracha, G. (2016). The Dart Programming Language.
Addison-Wesley.
Carnevali, L., D’Amico, D., Ridi, L., and Vicario, E.
(2009). Automatic code generation from real-time
systems specifications. In IEEE/IFIP International
Symposium on Rapid System Prototyping, pages 102–
105, Paris, France.
Cheon, Y. (2021). Toward more effective use of assertions
for mobile app development. In IEEE International
Conference on Progress in Informatics and Comput-
ing (PIC), pages 319–323, Shanghai, China.
Cheon, Y. and Barua, A. (2018). Model driven develop-
ment for Android apps. In International Conference
on Software Engineering Research & Practice, pages
17–22, Las Vegas, Nevada.
Cheon, Y., Lozano, R., and Senthil-Prabhu, R. (2023). A
library-based approach for writing design assertions.
In IEEE/ACIS International Conference on Software
Engineering Research, Management and Applications
(SERA), pages 22–27, Orlando, FL.
Fan, A., Gokkaya, B., Harman, M., Lyubarskiy, M., abd
S. Yoo, S. S., and Zhang, J. M. (2023). Large language
models for software engineering: Survey and open
problems. In IEEE/ACM International Conference on
Software Engineering, pages 31–53, Melbourne, Aus-
tralia.
Flutter (2025). Build for any screen. https://flutter.dev/.
Accessed: 2025-04-24.
France, R. B., Ghosh, S., Dinh-Trong, T., and Solberg, A.
(2006). Model-driven development using UML 2.0:
promises and pitfalls. IEEE Computer, 39(2):59–66.
Frantz, C. K. and Nowostawski, M. (2016). From in-
stitutions to code: Towards automated generation of
smart contracts. In IEEE 1st International Workshops
on Foundations and Applications of Self-* Systems
(FAS*W), pages 210–215, Augsburg, Germany.
Hou, X., Zhao, Y., Liu, Y., Yang, Z., Wang, K., Li, L., Luo,
X., Lo, D., Grundy, J., and Wang, H. (2024). Large
language models for software engineering: A system-
atic literature review. ACM Transactions on Software
Engineering and Methodology, 33(8):1–79.
Jain, N., Vaidyanath, S., Iyer, A., Natarajan, N.,
Parthasarathy, S., Rajamani, S., and Sharma, R.
(2022). Jigsaw: Large language models meet program
synthesis. In International Conference on Software
Engineering, pages 1219–1231, Pittsburgh, PA.
Jurgelaitis, M. et al. (2021). Smart contract code gener-
ation from platform specific model for Hyperledger
Go. Trends and Applications in Information Systems
and Technologies, 4(9):63–73.
Meservy, T. O. and Fenstermacher, K. D. (2005). Trans-
forming software development: an MDA road map.
IEEE Computer, 38(9):52–58.
Object Management Group (2014). Object Constraint Lan-
guage, version 2.4. http://www.omg.org/spec/OCL/.
Accessed: 2025-04-24.
PlantUML (2025). PlantUML at a Glance.
https://plantuml.com. Accessed: 2025-04-24.
Sebastian, G., Gallud, J., and Tesoriero, R. (2020). Code
generation using model driven architecture: A system-
atic mapping study. Journal of Computer Languages,
56:100935.
Stahl, T. and Volter, M. (2006). Model-Driven Software
Development. Wiley.
Syriani, E., Luhunu, L., and Sahraoui, H. (2018). Sys-
tematic mapping study of template-based code gen-
eration. Computer Languages, Systems & Structures,
52:43–62.
Tsiounis, K. and Kontogiannis, K. (2023). Goal driven code
generation for smart contract assemblies. In Interna-
tional Conference on Software and Computer Appli-
cations, pages 112–121, Kuantan, Malaysia.
Wang, J. et al. (2024). Software testing with large language
models: Survey, landscape, and vision. IEEE Trans-
actions on Software Engineering, 50(4):911–936.
Warmer, J. and Kleppe, A. (2003). The Object Constraint
Language: Getting Your Models Ready for MDA.
Addison-Wesley, 2nd edition.
Xue, J. et al. (2024). Self-planning code generation with
large language models. ACM Transactions on Soft-
ware Engineering and Methodology, 33(7):1–30.
Zheng, Z. et al. (2025). Towards an understanding of large
language models in software engineering tasks. Em-
pirical Software Engineering, 30(2):50.
LLMs as Code Generators for Model-Driven Development
393