Bridging the Gap between Source Code and Requirements Using GPT


Reverse engineering involves analyzing the design, architecture, and functionality of systems, and is crucial for legacy systems. Legacy systems are outdated software systems that are still in use and often lack proper documentation, which makes their maintenance and evolution challenging. To address this, we introduce SC2Req, utilizing the Generative Pre-trained Transformer (GPT) for automated code analysis and requirement generation. This approach aims to convert source code into understandable requirements and bridge the gap between those two. Through experiments on diverse software projects, SC2Req shows the potential to enhance the accuracy and efficiency of the translation process. This approach not only facilitates faster software development and easier maintenance of legacy systems but also lays a strong foundation for future research, promoting better understanding and communication in software development.


Copyright © 2024, Association for the Advancement of Artificial Intelligence ( All rights reserved. None



Xu, R., Xu, Z., Li, G., & Sheng, V.S.. 2024. Bridging the Gap between Source Code and Requirements Using GPT. Proceedings of the AAAI Conference on Artificial Intelligence, 38(21).