{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,7]],"date-time":"2026-07-07T11:07:30Z","timestamp":1783422450276,"version":"3.54.6"},"reference-count":54,"publisher":"Association for Computing Machinery (ACM)","issue":"3","license":[{"start":{"date-parts":[[2014,5,1]],"date-time":"2014-05-01T00:00:00Z","timestamp":1398902400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"name":"UNL-UCARE Program"},{"DOI":"10.13039\/100006785","name":"Google","doi-asserted-by":"publisher","id":[{"id":"10.13039\/100006785","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100000181","name":"Air Force Office of Scientific Research","doi-asserted-by":"publisher","id":[{"id":"10.13039\/100000181","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Softw. Eng. Methodol."],"published-print":{"date-parts":[[2014,5]]},"abstract":"<jats:p>Programmers frequently search for source code to reuse using keyword searches. The search effectiveness in facilitating reuse, however, depends on the programmer's ability to specify a query that captures how the desired code may have been implemented. Further, the results often include many irrelevant matches that must be filtered manually. More semantic search approaches could address these limitations, yet existing approaches are either not flexible enough to find approximate matches or require the programmer to define complex specifications as queries.<\/jats:p>\n          <jats:p>We propose a novel approach to semantic code search that addresses several of these limitations and is designed for queries that can be described using a concrete input\/output example. In this approach, programmers write lightweight specifications as inputs and expected output examples. Unlike existing approaches to semantic search, we use an SMT solver to identify programs or program fragments in a repository, which have been automatically transformed into constraints using symbolic analysis, that match the programmer-provided specification.<\/jats:p>\n          <jats:p>\n            We instantiated and evaluated this approach in subsets of three languages, the Java String library, Yahoo! Pipes mashup language, and SQL select statements, exploring its generality, utility, and trade-offs. The results indicate that this approach is effective at finding relevant code, can be used on its own or to filter results from keyword searches to increase search precision, and is adaptable to find\n            <jats:italic>approximate<\/jats:italic>\n            matches and then guide modifications to match the user specifications when\n            <jats:italic>exact<\/jats:italic>\n            matches do not already exist. These gains in precision and flexibility come at the cost of performance, for which underlying factors and mitigation strategies are identified.\n          <\/jats:p>","DOI":"10.1145\/2581377","type":"journal-article","created":{"date-parts":[[2014,5,27]],"date-time":"2014-05-27T12:56:59Z","timestamp":1401195419000},"page":"1-45","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":96,"title":["Solving the Search for Source Code"],"prefix":"10.1145","volume":"23","author":[{"given":"Kathryn T.","family":"Stolee","sequence":"first","affiliation":[{"name":"Iowa State University, Ames, IA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Sebastian","family":"Elbaum","sequence":"additional","affiliation":[{"name":"University of Nebraska-Lincoln, Lincoln, NE"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Daniel","family":"Dobos","sequence":"additional","affiliation":[{"name":"University of Nebraska-Lincoln, Lincoln, NE"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2014,6,2]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.1985.231877"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICDE.2007.367896"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-00768-2_27"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/2393596.2393606"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.1976.233817"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1016\/0164-1212(85)90004-4"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/1453101.1453130"},{"key":"e_1_2_1_8_1","volume-title":"Proceedings of the 13th Text Retrieval Conference (NIST'04)","author":"Craswell Nick","year":"2004","unstructured":"Nick Craswell and David Hawkings . 2004 . Overview of the trec 2004 webl track . In Proceedings of the 13th Text Retrieval Conference (NIST'04) . 1--9. Nick Craswell and David Hawkings. 2004. Overview of the trec 2004 webl track. In Proceedings of the 13th Text Retrieval Conference (NIST'04). 1--9."},{"key":"e_1_2_1_9_1","volume-title":"Watch What I Do: Programming by Demonstration","author":"Cypher Allen","unstructured":"Allen Cypher , Daniel C. Halbert , David Kurlander , Henry Lieberman , David Maulsby , Brad A. Myers , and Alan Turransky . 1993. Watch What I Do: Programming by Demonstration . MIT Press , Cambridge, MA . Allen Cypher, Daniel C. Halbert, David Kurlander, Henry Lieberman, David Maulsby, Brad A. Myers, and Alan Turransky. 1993. Watch What I Do: Programming by Demonstration. MIT Press, Cambridge, MA."},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.5555\/1792734.1792766"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.5555\/256664.256813"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1109\/52.469757"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/1809175.1809178"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/2254064.2254116"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/1810295.1810347"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/1993498.1993505"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","DOI":"10.5555\/2486788.2486898"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/1993316.1993536"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2006.117"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/1645953.1645966"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/1556460.1556489"},{"key":"e_1_2_1_22_1","unstructured":"JPF-Symbc. 2012. Symbolic pathfinder. http:\/\/babel_sh.arc.nasa.gov\/trac\/jpf\/wiki\/projects\/jpf-symbc.  JPF-Symbc. 2012. Symbolic pathfinder. http:\/\/babel_sh.arc.nasa.gov\/trac\/jpf\/wiki\/projects\/jpf-symbc."},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.5555\/1765871.1765924"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/1572272.1572286"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/360248.360252"},{"key":"e_1_2_1_26_1","unstructured":"Koders. 2012. Koders. http:\/\/code.ohloh.net\/.  Koders. 2012. Koders. http:\/\/code.ohloh.net\/."},{"key":"e_1_2_1_27_1","volume-title":"Meyer","author":"Langville Amy N.","year":"2006","unstructured":"Amy N. Langville and Carl D . Meyer . 2006 . Google Page Rank and Beyond. Princeton University Press . Amy N. Langville and Carl D. Meyer. 2006. Google Page Rank and Beyond. Princeton University Press."},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/1297846.1297944"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/1882291.1882317"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/1065010.1065018"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/1985793.1985809"},{"key":"e_1_2_1_32_1","unstructured":"Mechanicalturk. 2010. Amazon mechanical turk. https:\/\/www.mturk.com\/mturk\/welcome.  Mechanicalturk. 2010. Amazon mechanical turk. https:\/\/www.mturk.com\/mturk\/welcome."},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/2384616.2384689"},{"key":"e_1_2_1_34_1","volume-title":"Principles of Program Analysis","author":"Nielson Flemming","unstructured":"Flemming Nielson , Hanne R. Nielson , and Chris Hankin . 2004. Principles of Program Analysis . Springer . Flemming Nielson, Hanne R. Nielson, and Chris Hankin. 2004. Principles of Program Analysis. Springer."},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1023\/A:1008766530096"},{"key":"e_1_2_1_36_1","unstructured":"Pipes. 2012. Yahoo&excl; pipes. http:\/\/pipes.yahoo.com\/.  Pipes. 2012. Yahoo&excl; pipes. http:\/\/pipes.yahoo.com\/."},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/152388.152392"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2009.5070525"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.5555\/2486788.2486895"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/2063239.2063243"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/2025113.2025153"},{"key":"e_1_2_1_42_1","unstructured":"Smtlib2. 2012. SMT-LIB. http:\/\/www.smtlib.org\/.  Smtlib2. 2012. SMT-LIB. http:\/\/www.smtlib.org\/."},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.infsof.2012.10.004"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/1852786.1852832"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/1985793.1985805"},{"key":"e_1_2_1_47_1","volume-title":"Stolee and Sebastian Elbaum","author":"Kathryn","year":"2012","unstructured":"Kathryn T. Stolee and Sebastian Elbaum . 2012 a. Solving the search for suitable code: An initial implementation. Tech. rep. CSE 126, University of Nebraska-Lincoln . Kathryn T. Stolee and Sebastian Elbaum. 2012a. Solving the search for suitable code: An initial implementation. Tech. rep. CSE 126, University of Nebraska-Lincoln."},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/2393596.2393625"},{"key":"e_1_2_1_49_1","volume-title":"Proceedings of the ACM\/IEEE International Symposium on Empirical Software Engineering and Measurement.","author":"Kathryn","unstructured":"Kathryn T. Stolee and Sebastian Elbaum. 2013. On the use of input\/output queries for code search . In Proceedings of the ACM\/IEEE International Symposium on Empirical Software Engineering and Measurement. Kathryn T. Stolee and Sebastian Elbaum. 2013. On the use of input\/output queries for code search. In Proceedings of the ACM\/IEEE International Symposium on Empirical Software Engineering and Measurement."},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.5555\/1939141.1939165"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/2393596.2393665"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1023\/A:1022920129859"},{"key":"e_1_2_1_53_1","volume-title":"Witten and Dan Mo","author":"Ian","year":"1993","unstructured":"Ian H. Witten and Dan Mo . 1993 . TELS : Learning text editing tasks from examples. InWatch What I Do, MIT Press , 183--203. Ian H. Witten and Dan Mo. 1993. TELS: Learning text editing tasks from examples. InWatch What I Do, MIT Press, 183--203."},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/261640.261641"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.1145\/2491411.2491456"}],"container-title":["ACM Transactions on Software Engineering and Methodology"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2581377","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/2581377","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T08:10:20Z","timestamp":1750234220000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2581377"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2014,5]]},"references-count":54,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2014,5]]}},"alternative-id":["10.1145\/2581377"],"URL":"https:\/\/doi.org\/10.1145\/2581377","relation":{},"ISSN":["1049-331X","1557-7392"],"issn-type":[{"value":"1049-331X","type":"print"},{"value":"1557-7392","type":"electronic"}],"subject":[],"published":{"date-parts":[[2014,5]]},"assertion":[{"value":"2012-12-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2014-02-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2014-06-02","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}