{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,9]],"date-time":"2026-05-09T10:47:48Z","timestamp":1778323668229,"version":"3.51.4"},"reference-count":45,"publisher":"Association for Computing Machinery (ACM)","issue":"4","license":[{"start":{"date-parts":[[2018,10,22]],"date-time":"2018-10-22T00:00:00Z","timestamp":1540166400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/100000006","name":"Office of Naval Research","doi-asserted-by":"crossref","award":["ONRG-NICOP-N62909-18-1-2052"],"award-info":[{"award-number":["ONRG-NICOP-N62909-18-1-2052"]}],"id":[{"id":"10.13039\/100000006","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Softw. Eng. Methodol."],"published-print":{"date-parts":[[2018,10,31]]},"abstract":"<jats:p>Automated program repair is a problem of finding a transformation (called a patch) of a given incorrect program that eliminates the observable failures. It has important applications such as providing debugging aids, automatically grading student assignments, and patching security vulnerabilities. A common challenge faced by existing repair techniques is scalability to large patch spaces, since there are many candidate patches that these techniques explicitly or implicitly consider.<\/jats:p>\n                  <jats:p>The correctness criteria for program repair is often given as a suite of tests. Current repair techniques do not scale due to the large number of test executions performed by the underlying search algorithms. In this work, we address this problem by introducing a methodology of patch generation based on a test-equivalence relation (if two programs are \u201ctest-equivalent\u201d for a given test, they produce indistinguishable results on this test). We propose two test-equivalence relations based on runtime values and dependencies, respectively, and present an algorithm that performs on-the-fly partitioning of patches into test-equivalence classes.<\/jats:p>\n                  <jats:p>Our experiments on real-world programs reveal that the proposed methodology drastically reduces the number of test executions and therefore provides an order of magnitude efficiency improvement over existing repair techniques, without sacrificing patch quality.<\/jats:p>","DOI":"10.1145\/3241980","type":"journal-article","created":{"date-parts":[[2018,10,22]],"date-time":"2018-10-22T08:08:16Z","timestamp":1540195696000},"page":"1-37","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":38,"title":["Test-Equivalence Analysis for Automatic Patch Generation"],"prefix":"10.1145","volume":"27","author":[{"given":"Sergey","family":"Mechtaev","sequence":"first","affiliation":[{"name":"National University of Singapore, Computing Drive, Singapore"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Xiang","family":"Gao","sequence":"additional","affiliation":[{"name":"National University of Singapore, Computing Drive, Singapore"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Shin Hwei","family":"Tan","sequence":"additional","affiliation":[{"name":"National University of Singapore"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Abhik","family":"Roychoudhury","sequence":"additional","affiliation":[{"name":"National University of Singapore, Computing Drive, Singapore"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2018,10,22]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"crossref","unstructured":"Rajeev Alur Rastislav Bodik Garvit Juniwal Milo M. K. Martin Mukund Raghothaman Sanjit A. Seshia Rishabh Singh Armando Solar-Lezama Emina Torlak and Abhishek Udupa. 2013. Syntax-guided synthesis. In FMCAD. IEEE 1--8. Rajeev Alur Rastislav Bodik Garvit Juniwal Milo M. K. Martin Mukund Raghothaman Sanjit A. Seshia Rishabh Singh Armando Solar-Lezama Emina Torlak and Abhishek Udupa. 2013. Syntax-guided synthesis. In FMCAD. IEEE 1--8.","DOI":"10.1109\/FMCAD.2013.6679385"},{"key":"e_1_2_1_2_1","doi-asserted-by":"crossref","unstructured":"Andrea Arcuri and Xin Yao. 2008. A novel co-evolutionary approach to automatic software bug fixing. In CEC. IEEE 162--168. Andrea Arcuri and Xin Yao. 2008. A novel co-evolutionary approach to automatic software bug fixing. In CEC. IEEE 162--168.","DOI":"10.1109\/CEC.2008.4630793"},{"key":"e_1_2_1_3_1","volume-title":"Qlose: Program repair with quantitative objectives","author":"D\u2019Antoni Loris","year":"2016"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/1065010.1065036"},{"key":"e_1_2_1_5_1","doi-asserted-by":"crossref","unstructured":"Jinru Hua and Sarfraz Khurshid. 2016. A sketching-based approach for debugging using test cases. In ATVA. Springer 463--478. Jinru Hua and Sarfraz Khurshid. 2016. A sketching-based approach for debugging using test cases. In ATVA. Springer 463--478.","DOI":"10.1007\/978-3-319-46520-3_29"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/1806799.1806833"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1007\/11513988_23"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/2610384.2610388"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/2594291.2594334"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/2814270.2814319"},{"key":"e_1_2_1_11_1","unstructured":"Xuan Bach Dinh Le Duc Hiep Chu David Lo Claire Le Goues and Willem Visser. 2017. S3: Syntax- and semantic-guided repair synthesis via programming by example. In FSE. ACM. Xuan Bach Dinh Le Duc Hiep Chu David Lo Claire Le Goues and Willem Visser. 2017. S3: Syntax- and semantic-guided repair synthesis via programming by example. In FSE. ACM."},{"key":"e_1_2_1_12_1","doi-asserted-by":"crossref","unstructured":"Claire Le Goues Michael Dewey-Vogt Stephanie Forrest and Westley Weimer. 2012. A systematic study of automated program repair: Fixing 55 out of 105 bugs for 8 each. In ICSE. IEEE 3--13. Claire Le Goues Michael Dewey-Vogt Stephanie Forrest and Westley Weimer. 2012. A systematic study of automated program repair: Fixing 55 out of 105 bugs for 8 each. In ICSE. IEEE 3--13.","DOI":"10.1109\/ICSE.2012.6227211"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2015.2454513"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2011.104"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/2786805.2786811"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/2884781.2884872"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837617"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/1065010.1065034"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.jss.2016.01.007"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/3180155.3180247"},{"key":"e_1_2_1_21_1","volume-title":"Directfix: Looking for simple program repairs","author":"Mechtaev Sergey","year":"2015"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/2884781.2884807"},{"key":"e_1_2_1_23_1","doi-asserted-by":"crossref","unstructured":"Tom M. Mitchell. 1982. Generalization as search. Artificial intelligence 18 2 (1982) 203--226. Tom M. Mitchell. 1982. Generalization as search. Artificial intelligence 18 2 (1982) 203--226.","DOI":"10.1016\/0004-3702(82)90040-6"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1002\/(SICI)1099-1689(199912)9:4<205::AID-STVR186>3.0.CO;2-X"},{"key":"e_1_2_1_25_1","doi-asserted-by":"crossref","unstructured":"Hoang Duong Thien Nguyen Dawei Qi Abhik Roychoudhury and Satish Chandra. 2013. SemFix: Program repair via semantic analysis. In ICSE. 772--781. Hoang Duong Thien Nguyen Dawei Qi Abhik Roychoudhury and Satish Chandra. 2013. SemFix: Program repair via semantic analysis. In ICSE. 772--781.","DOI":"10.1109\/ICSE.2013.6606623"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/2814270.2814310"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/2568225.2568254"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/2771783.2771791"},{"key":"e_1_2_1_29_1","doi-asserted-by":"crossref","unstructured":"Alex Reinking and Ruzica Piskac. 2015. A type-directed approach to program repair. In Computer Aided Verification (1). 511--517. Alex Reinking and Ruzica Piskac. 2015. A type-directed approach to program repair. In Computer Aided Verification (1). 511--517.","DOI":"10.1007\/978-3-319-21690-4_35"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2017.44"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE-NIER.2017.7"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/2786805.2786825"},{"key":"e_1_2_1_33_1","unstructured":"Armando Solar-Lezama. 2008. Program Synthesis by Sketching. University of California Berkeley. Armando Solar-Lezama. 2008. Program Synthesis by Sketching. University of California Berkeley."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/2983990.2984038"},{"key":"e_1_2_1_35_1","doi-asserted-by":"crossref","unstructured":"Shin Hwei Tan and Abhik Roychoudhury. 2015. relifix: Automated repair of software regressions. In ICSE. IEEE 471--482. Shin Hwei Tan and Abhik Roychoudhury. 2015. relifix: Automated repair of software regressions. In ICSE. IEEE 471--482.","DOI":"10.1109\/ICSE.2015.65"},{"key":"e_1_2_1_36_1","unstructured":"Shin Hwei Tan Abhik Roychoudhury Zhen Dong and Xiang Gao. 2018. Repairing crashes in android apps. In ICSE. Shin Hwei Tan Abhik Roychoudhury Zhen Dong and Xiang Gao. 2018. Repairing crashes in android apps. In ICSE."},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE-C.2017.76"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/2950290.2950295"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/2635868.2635873"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/3092703.3092714"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/1831708.1831716"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1109\/ASE.2013.6693094"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2017.45"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2016.2560811"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/3106237.3106262"}],"container-title":["ACM Transactions on Software Engineering and Methodology"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3241980","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3241980","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3241980","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,4,3]],"date-time":"2026-04-03T21:06:01Z","timestamp":1775250361000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3241980"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2018,10,22]]},"references-count":45,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2018,10,31]]}},"alternative-id":["10.1145\/3241980"],"URL":"https:\/\/doi.org\/10.1145\/3241980","relation":{},"ISSN":["1049-331X","1557-7392"],"issn-type":[{"value":"1049-331X","type":"print"},{"value":"1557-7392","type":"electronic"}],"subject":[],"published":{"date-parts":[[2018,10,22]]},"assertion":[{"value":"2017-10-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2018-07-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2018-10-22","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}