{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,20]],"date-time":"2026-09-20T04:10:19Z","timestamp":1789877419298,"version":"4.0.1"},"reference-count":59,"publisher":"Association for Computing Machinery (ACM)","issue":"4","license":[{"start":{"date-parts":[[2012,11,1]],"date-time":"2012-11-01T00:00:00Z","timestamp":1351728000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Softw. Eng. Methodol."],"published-print":{"date-parts":[[2012,11]]},"abstract":"<jats:p>Many automatic testing, analysis, and verification techniques for programs can be effectively reduced to a constraint-generation phase followed by a constraint-solving phase. This separation of concerns often leads to more effective and maintainable software reliability tools. The increasing efficiency of off-the-shelf constraint solvers makes this approach even more compelling. However, there are few effective and sufficiently expressive off-the-shelf solvers for string constraints generated by analysis of string-manipulating programs, so researchers end up implementing their own ad-hoc solvers.<\/jats:p>\n          <jats:p>To fulfill this need, we designed and implemented Hampi, a solver for string constraints over bounded string variables. Users of Hampi specify constraints using regular expressions, context-free grammars, equality between string terms, and typical string operations such as concatenation and substring extraction. Hampi then finds a string that satisfies all the constraints or reports that the constraints are unsatisfiable.<\/jats:p>\n          <jats:p>\n            We demonstrate Hampi's expressiveness and efficiency by applying it to program analysis and automated testing. We used Hampi in static and dynamic analyses for finding SQL injection vulnerabilities in Web applications with hundreds of thousands of lines of code. We also used Hampi in the context of automated bug finding in C programs using dynamic systematic testing (also known as concolic testing). We then compared Hampi with another string solver, CFGAnalyzer, and show that Hampi is several times faster. Hampi's source code, documentation, and experimental data are available at http:\/\/people.csail.mit.edu\/akiezun\/hampi\n            <jats:sup>1<\/jats:sup>\n          <\/jats:p>","DOI":"10.1145\/2377656.2377662","type":"journal-article","created":{"date-parts":[[2013,2,5]],"date-time":"2013-02-05T13:19:41Z","timestamp":1360070381000},"page":"1-28","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":55,"title":["HAMPI"],"prefix":"10.1145","volume":"21","author":[{"given":"Adam","family":"Kiezun","sequence":"first","affiliation":[{"name":"Brigham and Women's Hospital\/Harvard Medical School"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Vijay","family":"Ganesh","sequence":"additional","affiliation":[{"name":"Massachusetts Institute of Technology"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Shay","family":"Artzi","sequence":"additional","affiliation":[{"name":"IBM T.J. Watson Research Center"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Philip J.","family":"Guo","sequence":"additional","affiliation":[{"name":"Stanford University"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Pieter","family":"Hooimeijer","sequence":"additional","affiliation":[{"name":"University of Virginia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Michael D.","family":"Ernst","sequence":"additional","affiliation":[{"name":"University of Washington"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2013,2,7]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"AT&T FSM Library 1997. AT&T FSM library. http:\/\/www.research.att.com\/&tilde;&T FSM library. http:\/\/www.research.att.com\/&tilde;&tilde; fsmtools\/fsm.  AT&T FSM Library 1997. AT&T FSM library. http:\/\/www.research.att.com\/&tilde;&T FSM library. http:\/\/www.research.att.com\/&tilde;&tilde; fsmtools\/fsm."},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-70583-3_34"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1007\/11527695_5"},{"key":"e_1_2_1_5_1","doi-asserted-by":"crossref","unstructured":"Biere A. Cimatti A. Clarke E. Strichman O. and Zhu Y. 2003. Bounded model checking. Adv. Comput. 58.  Biere A. Cimatti A. Clarke E. Strichman O. and Zhu Y. 2003. Bounded model checking. Adv. Comput. 58.","DOI":"10.1016\/S0065-2458(03)58003-2"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-00768-2_27"},{"key":"e_1_2_1_7_1","volume-title":"Proceedings of the Symposium on Operating Systems Design and Implementation. USENIX Association.","author":"Cadar C.","unstructured":"Cadar , C. , Dunbar , D. , and Engler , D. R . 2008. Klee: Unassisted and automatic generation of high-coverage tests for complex systems programs . In Proceedings of the Symposium on Operating Systems Design and Implementation. USENIX Association. Cadar, C., Dunbar, D., and Engler, D. R. 2008. Klee: Unassisted and automatic generation of high-coverage tests for complex systems programs. In Proceedings of the Symposium on Operating Systems Design and Implementation. USENIX Association."},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/1180405.1180445"},{"key":"e_1_2_1_9_1","volume-title":"Proceedings of the International Static Analysis Symposium. Springer.","author":"Christensen A. S.","unstructured":"Christensen , A. S. , M\u00f8ller , A. , and Schwartzbach , M. I . 2003. Precise analysis of string expressions . In Proceedings of the International Static Analysis Symposium. Springer. Christensen, A. S., M\u00f8ller, A., and Schwartzbach, M. I. 2003. Precise analysis of string expressions. In Proceedings of the International Static Analysis Symposium. Springer."},{"key":"e_1_2_1_10_1","volume-title":"Proceedings of the International Conference on Tools and Algorithms for the construction and Analysis of Systems. Springer.","author":"Clarke E. M.","unstructured":"Clarke , E. M. , Kroening , D. , and Lerda , F . 2004. A tool for checking ANSI-C programs . In Proceedings of the International Conference on Tools and Algorithms for the construction and Analysis of Systems. Springer. Clarke, E. M., Kroening, D., and Lerda, F. 2004. A tool for checking ANSI-C programs. In Proceedings of the International Conference on Tools and Algorithms for the construction and Analysis of Systems. Springer."},{"key":"e_1_2_1_11_1","volume-title":"Proceedings of the International Conference on Tools and Algorithms for the Construction and Analysis of Systems. Springer.","author":"de Moura L.","unstructured":"de Moura , L. and Bj\u00f8rner , N . 2008. Z3: An efficient SMT solver . In Proceedings of the International Conference on Tools and Algorithms for the Construction and Analysis of Systems. Springer. de Moura, L. and Bj\u00f8rner, N. 2008. Z3: An efficient SMT solver. In Proceedings of the International Conference on Tools and Algorithms for the Construction and Analysis of Systems. Springer."},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF02112533"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/1273463.1273484"},{"key":"e_1_2_1_14_1","volume-title":"Proceedings of the International Conference on Software Engineering & Knowledge Engineering.","author":"Fu X.","unstructured":"Fu , X. and Li , C . -C. 2010. A string constraint solver for detecting web application vulnerability . In Proceedings of the International Conference on Software Engineering & Knowledge Engineering. Fu, X. and Li, C.-C. 2010. A string constraint solver for detecting web application vulnerability. In Proceedings of the International Conference on Software Engineering & Knowledge Engineering."},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1109\/COMPSAC.2007.43"},{"key":"e_1_2_1_16_1","unstructured":"Ganesh V.\n     and \n      Dill D. L\n  . \n  2007\n  . A decision procedure for bit-vectors and arrays. In Proceedings of the 19th International Conference on Computer Aided Verification (CAV'07). W. Damm and H. Hermanns Eds. Lecture Notes in Computer Science vol. \n  4590\n  . \n  Springer\n  .   Ganesh V. and Dill D. L. 2007. A decision procedure for bit-vectors and arrays. In Proceedings of the 19th International Conference on Computer Aided Verification (CAV'07). W. Damm and H. Hermanns Eds. Lecture Notes in Computer Science vol. 4590. Springer."},{"key":"e_1_2_1_17_1","unstructured":"Ganesh V. Minnes M. Solar-Lezama A. and Rinard M. January 2011. What is decidable about strings&quest; Tech. rep. MIT-CSAIL-TR-2011-006 MIT.  Ganesh V. Minnes M. Solar-Lezama A. and Rinard M. January 2011. What is decidable about strings&quest; Tech. rep. MIT-CSAIL-TR-2011-006 MIT."},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/1375581.1375607"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/1065010.1065036"},{"key":"e_1_2_1_20_1","volume-title":"Proceedings of the Network and Distributed System Security Symposium. Internet Society.","author":"Godefroid P.","unstructured":"Godefroid , P. , Levin , M. Y. , and Molnar , D . 2008b. Automated whitebox fuzz testing . In Proceedings of the Network and Distributed System Security Symposium. Internet Society. Godefroid, P., Levin, M. Y., and Molnar, D. 2008b. Automated whitebox fuzz testing. In Proceedings of the Network and Distributed System Security Symposium. Internet Society."},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/1375581.1375616"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2007.70748"},{"key":"e_1_2_1_23_1","volume-title":"Proceedings of the International Conference on Verification, Model Checking, and Abstract Interpretation. Springer.","author":"Hooimeijer P.","unstructured":"Hooimeijer , P. and Veanes , M . 2011. An evaluation of automata algorithms for string analysis . In Proceedings of the International Conference on Verification, Model Checking, and Abstract Interpretation. Springer. Hooimeijer, P. and Veanes, M. 2011. An evaluation of automata algorithms for string analysis. In Proceedings of the International Conference on Verification, Model Checking, and Abstract Interpretation. Springer."},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/1542476.1542498"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/1858996.1859080"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/347324.383378"},{"key":"e_1_2_1_27_1","volume-title":"Proceedings of the NASA Formal Methods Symposium.","author":"Jayaraman K.","unstructured":"Jayaraman , K. , Harvison , D. , Ganesh , V. , and Kiezun , A . 2009. jFuzz: A concolic whitebox fuzzer for Java . In Proceedings of the NASA Formal Methods Symposium. Jayaraman, K., Harvison, D., Ganesh, V., and Kiezun, A. 2009. jFuzz: A concolic whitebox fuzzer for Java. In Proceedings of the NASA Formal Methods Symposium."},{"key":"e_1_2_1_28_1","unstructured":"Jha S. K. Seshia S. A. and Limaye R. S. 2009. On the computational complexity of satisfiability solving for string theories. Tech. rep. UCB\/EECS-2009-41 EECS Department University of California Berkeley.  Jha S. K. Seshia S. A. and Limaye R. S. 2009. On the computational complexity of satisfiability solving for string theories. Tech. rep. UCB\/EECS-2009-41 EECS Department University of California Berkeley."},{"key":"e_1_2_1_29_1","unstructured":"Kaluza 2010. Kaluza string solver. http:\/\/webblaze.cs.berkeley.edu\/2010\/kaluza.  Kaluza 2010. Kaluza string solver. http:\/\/webblaze.cs.berkeley.edu\/2010\/kaluza."},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/337244.337255"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1145\/1572272.1572286"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2009.5070521"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.5555\/647847.736899"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/1287624.1287708"},{"key":"e_1_2_1_35_1","first-page":"129","article-title":"The problem of solvability of equations in a free semigroup. Sbornik","volume":"32","author":"Makanin G.","year":"1977","unstructured":"Makanin , G. 1977 . The problem of solvability of equations in a free semigroup. Sbornik : Math. 32 , 2, 129 -- 198 . Makanin, G. 1977. The problem of solvability of equations in a free semigroup. Sbornik: Math. 32, 2, 129--198.","journal-title":"Math."},{"key":"e_1_2_1_36_1","first-page":"1","article-title":"Unsolvability of positive 89-theory of free semi-group","volume":"23","author":"Marchenkov S. S.","year":"1982","unstructured":"Marchenkov , S. S. 1982 . Unsolvability of positive 89-theory of free semi-group . Sibirsky Math. J. 23 , 1 . Marchenkov, S. S. 1982. Unsolvability of positive 89-theory of free semi-group. Sibirsky Math. J. 23, 1.","journal-title":"Sibirsky Math. J."},{"key":"e_1_2_1_37_1","doi-asserted-by":"crossref","unstructured":"Matiyasevich Y. 2008. Computation paradigms in light of Hilbert's tenth problem. In New Computational Paradigms S. B. Cooper B. Lwe and A. Sorbi Eds. Springer.  Matiyasevich Y. 2008. Computation paradigms in light of Hilbert's tenth problem. In New Computational Paradigms S. B. Cooper B. Lwe and A. Sorbi Eds. Springer.","DOI":"10.1007\/978-0-387-68546-5_4"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/1060745.1060809"},{"key":"e_1_2_1_39_1","unstructured":"M\u00f8ller A. 2010. Brics finite state automata utilities. http:\/\/www.brics.dk\/automaton.  M\u00f8ller A. 2010. Brics finite state automata utilities. http:\/\/www.brics.dk\/automaton."},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/378239.379017"},{"key":"e_1_2_1_41_1","volume-title":"Principles and Practices of Constraint Programming","author":"Pesant G.","unstructured":"Pesant , G. 2004. A regular language membership constraint for finite sequences of variables . In Principles and Practices of Constraint Programming . Springer . Pesant, G. 2004. A regular language membership constraint for finite sequences of variables. In Principles and Practices of Constraint Programming. Springer."},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/1132516.1132584"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1007\/11889205_64"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.2307\/2268308"},{"key":"e_1_2_1_45_1","series-title":"Lecture Notes in Computer Science","volume-title":"Proceedings of the 2nd International Workshop on Principles and Practice of Constraint Programming","author":"Rajasekar A.","unstructured":"Rajasekar , A. 1994. Applications in constraint logic programming with strings . In Proceedings of the 2nd International Workshop on Principles and Practice of Constraint Programming . Lecture Notes in Computer Science , vol. 874 . Springer . Rajasekar, A. 1994. Applications in constraint logic programming with strings. In Proceedings of the 2nd International Workshop on Principles and Practice of Constraint Programming. Lecture Notes in Computer Science, vol. 874. Springer."},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1109\/TASE.2008.25"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2010.38"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.5555\/646900.710169"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/1081706.1081750"},{"key":"e_1_2_1_50_1","volume-title":"Testing: Academic and Industrial Conference Practice and Research Techniques. IEEE.","author":"Shannon D.","unstructured":"Shannon , D. , Hajra , S. , Lee , A. , Zhan , D. , and Khurshid , S . 2007. Abstracting symbolic execution with string analysis . In Testing: Academic and Industrial Conference Practice and Research Techniques. IEEE. Shannon, D., Hajra, S., Lee, A., Zhan, D., and Khurshid, S. 2007. Abstracting symbolic execution with string analysis. In Testing: Academic and Industrial Conference Practice and Research Techniques. IEEE."},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/230514.571645"},{"key":"e_1_2_1_52_1","unstructured":"van Noord G. 2010. Finite state automata utilities. http:\/\/www.let.rug.nl\/&tilde; vannoord\/Fsa\/fsa.html.  van Noord G. 2010. Finite state automata utilities. http:\/\/www.let.rug.nl\/&tilde; vannoord\/Fsa\/fsa.html."},{"key":"e_1_2_1_53_1","volume-title":"Proceedings of the International Conference on Logic for Programming, Artificial Intelligence, and Reasoning. Springer.","author":"Veanes M.","unstructured":"Veanes , M. , Bj _rner, N., and Moura , L. D . 2010. Symbolic automata constraint solving . In Proceedings of the International Conference on Logic for Programming, Artificial Intelligence, and Reasoning. Springer. Veanes, M., Bj_rner, N., and Moura, L. D. 2010. Symbolic automata constraint solving. In Proceedings of the International Conference on Logic for Programming, Artificial Intelligence, and Reasoning. Springer."},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/1250734.1250739"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.1145\/1368088.1368112"},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/1390630.1390661"},{"key":"e_1_2_1_57_1","doi-asserted-by":"publisher","DOI":"10.1145\/1040305.1040334"},{"key":"e_1_2_1_58_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-12002-2_13"},{"key":"e_1_2_1_59_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-00768-2_28"},{"key":"e_1_2_1_60_1","volume-title":"Proceedings of the International Conference on Implementation and Application of Automata. Springer.","author":"Yu F.","unstructured":"Yu , F. , Bultan , T. , and Ibarra , O. H . 2010b. Relational string verification using multi-track automata . In Proceedings of the International Conference on Implementation and Application of Automata. Springer. Yu, F., Bultan, T., and Ibarra, O. H. 2010b. Relational string verification using multi-track automata. In Proceedings of the International Conference on Implementation and Application of Automata. Springer."}],"container-title":["ACM Transactions on Software Engineering and Methodology"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2377656.2377662","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/2377656.2377662","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T09:34:33Z","timestamp":1750239273000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/2377656.2377662"}},"subtitle":["A solver for word equations over strings, regular expressions, and context-free grammars"],"short-title":[],"issued":{"date-parts":[[2012,11]]},"references-count":59,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2012,11]]}},"alternative-id":["10.1145\/2377656.2377662"],"URL":"https:\/\/doi.org\/10.1145\/2377656.2377662","relation":{},"ISSN":["1049-331X","1557-7392"],"issn-type":[{"value":"1049-331X","type":"print"},{"value":"1557-7392","type":"electronic"}],"subject":[],"published":{"date-parts":[[2012,11]]},"assertion":[{"value":"2011-02-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2011-08-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2013-02-07","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}