{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,8]],"date-time":"2026-10-08T11:36:50Z","timestamp":1791459410658,"version":"4.3.4"},"reference-count":41,"publisher":"Association for Computing Machinery (ACM)","issue":"FSE","license":[{"start":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T00:00:00Z","timestamp":1750291200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Proc. ACM Softw. Eng."],"published-print":{"date-parts":[[2025,6,19]]},"abstract":"<jats:p>Code changes are an integral part of the software development process. Many code changes are meant to improve the code without changing its functional behavior, e.g., refactorings and performance improvements. Unfortunately, validating whether a code change preserves the behavior is non-trivial, particularly when the code change is performed deep inside a complex project. This paper presents ChangeGuard, an approach that uses learning-guided execution to compare the runtime behavior of a modified function. The approach is enabled by the novel concept of pairwise learning-guided execution and by a set of techniques that improve the robustness and coverage of the state-of-the-art learning-guided execution technique. Our evaluation applies ChangeGuard to a dataset of 224 manually annotated code changes from popular Python open-source projects and to three datasets of code changes obtained by applying automated code transformations. Our results show that the approach identifies semantics-changing code changes with a precision of 77.1% and a recall of 69.5%, and that it detects unexpected behavioral changes introduced by automatic code refactoring tools. In contrast, the existing regression tests of the analyzed projects miss the vast majority of semantics-changing code changes, with a recall of only 7.6%. We envision our approach being useful for detecting unintended behavioral changes early in the development process and for improving the quality of automated code transformations.<\/jats:p>","DOI":"10.1145\/3715760","type":"journal-article","created":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T11:15:34Z","timestamp":1750331734000},"page":"936-956","source":"Crossref","is-referenced-by-count":7,"title":["ChangeGuard: Validating Code Changes via Pairwise Learning-Guided Execution"],"prefix":"10.1145","volume":"2","author":[{"ORCID":"https:\/\/orcid.org\/0009-0004-2384-3163","authenticated-orcid":false,"given":"Lars","family":"Gr\u00f6ninger","sequence":"first","affiliation":[{"name":"University of Stuttgart, Stuttgart, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-7978-719X","authenticated-orcid":false,"given":"Beatriz","family":"Souza","sequence":"additional","affiliation":[{"name":"University of Stuttgart, Stuttgart, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1623-498X","authenticated-orcid":false,"given":"Michael","family":"Pradel","sequence":"additional","affiliation":[{"name":"University of Stuttgart, Stuttgart, Germany"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2025,6,19]]},"reference":[{"key":"e_1_3_1_2_2","doi-asserted-by":"crossref","unstructured":"Islem Bouzenia Bajaj Piyush Krishan and Michael Pradel. 2024. DyPyBench: A Benchmark of Executable Python Software. In ACM International Conference on the Foundations of Software Engineering (FSE).","DOI":"10.1145\/3643742"},{"key":"e_1_3_1_3_2","doi-asserted-by":"crossref","first-page":"507","DOI":"10.1109\/SANER.2018.8330249","volume-title":"2018 IEEE 25th International Conference on Software Analysis, Evolution and Reengineering (SANER)","author":"Brito Aline","year":"2018","unstructured":"Aline Brito, Laerte Xavier, Andre Hora, and Marco Tulio Valente. 2018. APIDiff: Detecting API breaking changes. In 2018 IEEE 25th International Conference on Software Analysis, Evolution and Reengineering (SANER). IEEE, 507\u2013511."},{"key":"e_1_3_1_4_2","doi-asserted-by":"crossref","unstructured":"Luca Di Grazia Paul Bredl and Michael Pradel. 2022. DiffSearch: A scalable and precise search engine for code changes. IEEE Transactions on Software Engineering (2022).","DOI":"10.1109\/TSE.2022.3218859"},{"key":"e_1_3_1_5_2","first-page":"404","volume-title":"ECOOP 2006\u2013Object-Oriented Programming: 20th European Conference, Nantes, France, July 3-7, 2006. Proceedings 20","author":"Dig Danny","year":"2006","unstructured":"Danny Dig, Can Comertoglu, Darko Marinov, and Ralph Johnson. 2006. Automated detection of refactorings in evolving components. In ECOOP 2006\u2013Object-Oriented Programming: 20th European Conference, Nantes, France, July 3-7, 2006. Proceedings 20. Springer, 404\u2013428."},{"key":"e_1_3_1_6_2","first-page":"303","volume-title":"Proceedings of the 23rd USENIX Security Symposium","author":"Egele Manuel","year":"2014","unstructured":"Manuel Egele, Maverick Woo, Peter Chapman, and David Brumley. 2014. Blanket Execution: Dynamic Similarity Testing for Program Binaries and Components. In Proceedings of the 23rd USENIX Security Symposium, San Diego, CA, USA, August 20-22, 2014. 303\u2013317."},{"key":"e_1_3_1_7_2","unstructured":"Manuel Egele Maverick Woo Peter Chapman and David Brumley. 2014. Blanket execution: Dynamic similarity testing for program binaries and components. In 23rd USENIX Security Symposium (USENIX Security 14). 303\u2013317."},{"key":"e_1_3_1_8_2","volume-title":"Refactoring: improving the design of existing code","author":"Fowler Martin","year":"2018","unstructured":"Martin Fowler. 2018. Refactoring: improving the design of existing code. Addison-Wesley Professional."},{"key":"e_1_3_1_9_2","doi-asserted-by":"crossref","unstructured":"Mark Gabel Lingxiao Jiang and Zhendong Su. 2008. Scalable detection of semantic clones. In Proceedings of the 30th international conference on Software engineering. 321\u2013330.","DOI":"10.1145\/1368088.1368132"},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","DOI":"10.1109\/MSR.2019.00016"},{"key":"e_1_3_1_11_2","doi-asserted-by":"crossref","unstructured":"Thong Hoang Hong Jin Kang David Lo and Julia Lawall. 2020. Cc2vec: Distributed representations of code changes. In Proceedings of the ACM\/IEEE 42nd International Conference on Software Engineering. 518\u2013529.","DOI":"10.1145\/3377811.3380361"},{"key":"e_1_3_1_12_2","first-page":"81","volume-title":"Proceedings of the Eighteenth International Symposium on Software Testing and Analysis, ISSTA 2009","author":"Jiang Lingxiao","year":"2009","unstructured":"Lingxiao Jiang and Zhendong Su. 2009. Automatic mining of functionally equivalent code fragments via random testing. In Proceedings of the Eighteenth International Symposium on Software Testing and Analysis, ISSTA 2009, Chicago, IL, USA, July 19-23, 2009. 81\u201392."},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2012.70"},{"key":"e_1_3_1_14_2","doi-asserted-by":"crossref","unstructured":"Heejung Kim Yungbum Jung Sunghun Kim and Kwankeun Yi. 2011. MeCC: memory comparison-based clone detector. In Proceedings of the 33rd International Conference on Software Engineering. 301\u2013310.","DOI":"10.1145\/1985793.1985835"},{"key":"e_1_3_1_15_2","doi-asserted-by":"crossref","unstructured":"Miryung Kim Matthew Gee Alex Loh and Napol Rachatasumrit. 2010. Ref-finder: a refactoring reconstruction tool based on logic query templates. In Proceedings of the eighteenth ACM SIGSOFT international symposium on Foundations of software engineering. 371\u2013372.","DOI":"10.1145\/1882291.1882353"},{"key":"e_1_3_1_16_2","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-47764-0_3"},{"key":"e_1_3_1_17_2","doi-asserted-by":"crossref","unstructured":"Jens Krinke. 2001. Identifying similar code with program dependence graphs. In Proceedings eighth working conference on reverse engineering. IEEE 301\u2013309.","DOI":"10.1109\/WCRE.2001.957835"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE48619.2023.00085"},{"key":"e_1_3_1_19_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-59762-7_2"},{"key":"e_1_3_1_20_2","doi-asserted-by":"crossref","unstructured":"Paul Dan Marinescu and Cristian Cadar. 2013. KATCH: high-coverage testing of software patches.. In ESEC\/SIGSOFT FSE. 235\u2013245.","DOI":"10.1145\/2491411.2491438"},{"key":"e_1_3_1_21_2","volume-title":"32nd european conference on object-oriented programming (ECOOP 2018)","author":"Mezzetti Gianluca","year":"2018","unstructured":"Gianluca Mezzetti, Anders M\u00f8ller, and Martin Toldam Torp. 2018. Type regression testing to detect breaking changes in Node. js libraries. In 32nd european conference on object-oriented programming (ECOOP 2018). Schloss-Dagstuhl-Leibniz Zentrum f\u00fcr Informatik."},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","DOI":"10.1002\/bltj.2229"},{"key":"e_1_3_1_23_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2011.41"},{"key":"e_1_3_1_24_2","doi-asserted-by":"crossref","unstructured":"Kexin Pei Zhou Xuan Junfeng Yang Suman Jana and Baishakhi Ray. 2022. Learning approximate execution semantics from traces for binary function similarity. IEEE Transactions on Software Engineering (2022).","DOI":"10.1109\/TSE.2022.3231621"},{"key":"e_1_3_1_25_2","unstructured":"Juan Altmayer Pizzorno and Emery D Berger. 2024. CoverUp: Coverage-Guided LLM-Based Test Generation. arXiv preprint arXiv:2403.16218 (2024)."},{"key":"e_1_3_1_26_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.infsof.2013.01.008"},{"issue":"115","key":"e_1_3_1_27_2","first-page":"64","article-title":"A survey on software clone detection research","volume":"541","author":"Roy Chanchal Kumar","year":"2007","unstructured":"Chanchal Kumar Roy and James R Cordy. 2007. A survey on software clone detection research. Queen\u2019s School of computing TR 541, 115 (2007), 64\u201368.","journal-title":"Queen\u2019s School of computing TR"},{"key":"e_1_3_1_28_2","doi-asserted-by":"crossref","unstructured":"Gabriel Ryan Siddhartha Jain Mingyue Shang Shiqi Wang Xiaofei Ma Murali Krishna Ramanathan and Baishakhi Ray. 2024. Code-Aware Prompting: A study of Coverage Guided Test Generation in Regression Setting using LLM. arXiv preprint arXiv:2402.00097 (2024).","DOI":"10.1145\/3643769"},{"key":"e_1_3_1_29_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.procs.2018.05.080"},{"key":"e_1_3_1_30_2","doi-asserted-by":"crossref","unstructured":"Emad Shihab Ahmed E Hassan Bram Adams and Zhen Ming Jiang. 2012. An industrial study on the risk of software changes. In Proceedings of the ACM SIGSOFT 20th International Symposium on the Foundations of Software Engineering. 1\u201311.","DOI":"10.1145\/2393596.2393670"},{"key":"e_1_3_1_31_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2020.2968072"},{"key":"e_1_3_1_32_2","doi-asserted-by":"crossref","first-page":"269","DOI":"10.1109\/MSR.2017.14","volume-title":"2017 IEEE\/ACM 14th International Conference on Mining Software Repositories (MSR)","author":"Silva Danilo","year":"2017","unstructured":"Danilo Silva and Marco Tulio Valente. 2017. Refdiff: detecting refactorings in version histories. In 2017 IEEE\/ACM 14th International Conference on Mining Software Repositories (MSR). IEEE, 269\u2013279."},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","unstructured":"Beatriz Souza and Michael Pradel. 2023. LExecutor: Learning-Guided Execution. In Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering ESEC\/FSE. 1522\u20131534. https:\/\/doi.org\/10.1145\/3611643.3616254 10.1145\/3611643.3616254","DOI":"10.1145\/3611643.3616254"},{"key":"e_1_3_1_34_2","doi-asserted-by":"crossref","unstructured":"Beatriz Souza and Michael Pradel. 2025. Treefix: Enabling Execution with a Tree of Prefixes. In International Conference on Software Engineering (ICSE).","DOI":"10.1109\/ICSE55347.2025.00215"},{"key":"e_1_3_1_35_2","doi-asserted-by":"crossref","unstructured":"Luca Della Toffola Michael Pradel and Thomas R. Gross. 2015. Performance Problems You Can Fix: A Dynamic Analysis of Memoization Opportunities. In Conference on Object-Oriented Programming Systems Languages and Applications (OOPSLA). 607\u2013622.","DOI":"10.1145\/2814270.2814290"},{"key":"e_1_3_1_36_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2020.3007722"},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2020.3007722"},{"key":"e_1_3_1_38_2","doi-asserted-by":"crossref","unstructured":"Nikolaos Tsantalis Matin Mansouri Laleh M Eshkevari Davood Mazinanian and Danny Dig. 2018. Accurate and efficient refactoring detection in commit history. In Proceedings of the 40th international conference on software engineering. 483\u2013494.","DOI":"10.1145\/3180155.3180206"},{"key":"e_1_3_1_39_2","doi-asserted-by":"publisher","unstructured":"Yue Wang Weishi Wang Shafiq R. Joty and Steven C. H. Hoi. 2021. CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generation. In EMNLP. https:\/\/doi.org\/10.18653\/v1\/2021.emnlp-main.685 10.18653\/v1\/2021.emnlp-main.685","DOI":"10.18653\/v1\/2021.emnlp-main.685"},{"key":"e_1_3_1_40_2","doi-asserted-by":"publisher","DOI":"10.1109\/QRS.2015.14"},{"key":"e_1_3_1_41_2","doi-asserted-by":"crossref","unstructured":"Zejun Zhang Zhenchang Xing Xin Xia Xiwei Xu and Liming Zhu. 2022. Making python code idiomatic by automatic refactoring non-idiomatic python code with pythonic idioms. In Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering. 696\u2013708.","DOI":"10.1145\/3540250.3549143"},{"key":"e_1_3_1_42_2","doi-asserted-by":"publisher","DOI":"10.1145\/3567550"}],"container-title":["Proceedings of the ACM on Software Engineering"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3715760","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,23]],"date-time":"2026-08-23T11:03:01Z","timestamp":1787482981000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3715760"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,6,19]]},"references-count":41,"journal-issue":{"issue":"FSE","published-print":{"date-parts":[[2025,6,19]]}},"alternative-id":["10.1145\/3715760"],"URL":"https:\/\/doi.org\/10.1145\/3715760","relation":{},"ISSN":["2994-970X"],"issn-type":[{"value":"2994-970X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,6,19]]}}}