[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-497325-105":59,"doc-detail-497325-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","semantic-program-repair-using-a-reference-implementation-icse-2018","Semantic Program Repair Using a Reference Implementation - ICSE 2018","","Automated program repair aims to reduce manual debugging by generating patches for defects, yet test-based correctness criteria lead to test overfitting and weak generalization. This work proposes semantic program repair using a reference implementation: the reference program is symbolically analyzed to infer a specification of intended behavior, and the specification guides synthesis of a patch ensuring conditional equivalence between patched and reference programs. Using embedded Linux Busybox and GNU Coreutils as references, results show scalability to real-world software and production of more correct patches while alleviating overfitting.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/semantic-program-repair-using-a-reference-implementation-icse-2018/497325/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/semantic-program-repair-using-a-reference-implementation-icse-2018/497325.png","ImageObject",300,407,{"name":92,"@type":93},"anakgang17","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-02","2026-10-02",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",12,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"Why do test-based automated program repair systems often generate low-quality patches?","Question",{"text":113,"@type":114},"Because tests are an incomplete specification, patches can overfit the given test suite rather than reflect developer intent, producing weak generalization beyond the tests.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What is the core idea of semantic program repair using a reference implementation?",{"text":118,"@type":114},"Infer the missing specification from a correct reference program via symbolic analysis, then synthesize a patch that enforces conditional equivalence between the patched and reference programs.",{"name":120,"@type":111,"acceptedAnswer":121},"How does using a reference program help with test overfitting?",{"text":122,"@type":114},"The reference program acts as an implicit correctness criterion, which alleviates overfitting that arises when correctness is judged only by tests.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},497325,1791102651,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":19,"preview_urls":147},962090883568,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","Semantic Program Repair Using a Reference Implementation  \nSergey Mechtaev∗ National University of Singapore [mechtaev@comp.nus.edu.sg](mechtaev@comp.nus.edu.sg)  \nManh-Dung Nguyen∗ National University of Singapore [nguyenmanhdung1710@gmail.com](nguyenmanhdung1710@gmail.com)  \nYannic Noller  \nHumboldt University of Berlin [yannic.noller@informatik.hu-berlin.de](yannic.noller@informatik.hu-berlin.de)  \nLars Grunske  \nHumboldt University of Berlin [grunske@informatik.hu-berlin.de](grunske@informatik.hu-berlin.de)  \nAbhik Roychoudhury  \nNational University of Singapore [abhik@comp.nus.edu.sg](abhik@comp.nus.edu.sg)  \nABSTRACT  \nAutomated program repair has been studied via the use of techniques involving search, semantic analysis and artificial intelligence. Most of these techniques rely on tests as the correctness criteria, which causes the test overfitting problem. Although various approaches such as learning from code corpus have been proposed to address this problem, they are unable to guarantee that the generated patches generalize beyond the given tests. This work studies automated repair of errors using a reference implementation. The reference implementation is symbolically analyzed to automatically infer a specification of the intended behavior. This specification is then used to synthesize a patch that enforces conditional equivalence of the patched and the reference programs. The use of the reference implementation as an implicit correctness criterion alleviates overfitting in test-based repair. Besides, since we generate patches by semantic analysis, the reference program may have a substantially different implementation from the patched program, which distinguishes our approach from existing techniques for regression repair like Relifix. Our experiments in repairing the embedded Linux Busybox with GNU Coreutils as reference (and vice-versa) revealed that the proposed approach scales to real-world programs and enables the generation of more correct patches.  \nCCS CONCEPTS  \n• Software and its engineering → Automatic programming; Software verification;  \nKEYWORDS  \nDebugging, Program repair, Verification  \nACM Reference Format:  \nSergey Mechtaev, Manh-Dung Nguyen, Yannic Noller, Lars Grunske, and Abhik Roychoudhury. 2018. Semantic Program Repair Using a Reference Implementation. In Proceedings of 40th International Conference on Software Engineering , Gothenburg, Sweden, May 27-June 3, 2018 (ICSE ’18), 11 pages. [https://doi.org/10.1145/3180155.3180247](https://doi.org/10.1145/3180155.3180247)  \n∗ Joint first authors  \nPermission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions [from permissions@acm.org](from permissions@acm.org).  \nICSE ’18, May 27-June 3, 2018, Gothenburg, Sweden © 2018 Association for Computing Machinery.  \nACM ISBN 978-1-4503-5638-1/18/05. . . $15.00 [https://doi.org/10.1145/3180155.3180247](https://doi.org/10.1145/3180155.3180247)  \n1 INTRODUCTION  \nSoftware developers spend a significant amount of time and resources for bug fixing. Automated program repair has gained prominence due to its potential to reduce the manual debugging effort by automatically suggesting patches for given defects. Indeed, stateof-the-art program repair systems have been shown to be able to address defects in real-world software. However, the low quality of automatically generated patches remains a great barrier to the adoption of this technology by software developers in practice.  \nProblem. The primary reason for the low quality of automat","cbCaiisQ7rfmw1VK","https://ap.wps.com/l/cbCaiisQ7rfmw1VK","pdf",790692,11,"English","# Abstract\n# 1 Introduction\n## Problem\n## Intuition\n## Challenges","[{\"question\":\"Why do test-based automated program repair systems often generate low-quality patches?\",\"answer\":\"Because tests are an incomplete specification, patches can overfit the given test suite rather than reflect developer intent, producing weak generalization beyond the tests.\"},{\"question\":\"What is the core idea of semantic program repair using a reference implementation?\",\"answer\":\"Infer the missing specification from a correct reference program via symbolic analysis, then synthesize a patch that enforces conditional equivalence between the patched and reference programs.\"},{\"question\":\"How does using a reference program help with test overfitting?\",\"answer\":\"The reference program acts as an implicit correctness criterion, which alleviates overfitting that arises when correctness is judged only by tests.\"}]","Semantic Program Repair Using a Reference Implementation - ICSE 2018 | PDF",1790951967,28,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/f509a4bafefa6f44e7c12e78b246a350.webp",983,1272,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/4b8edbb866de219f4edafa3411256576.webp",982,1270,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5f24cc2b8727502b9697a13fc5d4b419.webp",981,1269,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/73ccd24b372a6a739bff3f1c3a72f494.webp",980,1268]