TitleHAMPI: A solver for string constraints
Publication TypeConference Paper
Year of Publication2009
AuthorsKieżun A, Ganesh V, Guo PJ, Hooimeijer P, Ernst MD
Conference NameISSTA 2009, Proceedings of the 2009 International Symposium on Software Testing and Analysis
Pagination105–116
Date or Month PublishedJuly
Conference LocationChicago, IL, USA
AbstractMany 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 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 techniques for string-manipulating programs. \par We designed and implemented HAMPI, a solver for string constraints over fixed-size string variables. HAMPI constraints express membership in regular languages and fixed-size context-free languages. HAMPI constraints may contain context-free-language definitions, regular-language definitions and operations, and the membership predicate. Given a set of constraints, HAMPI outputs a string that satisfies all the constraints, or reports that the constraints are unsatisfiable. \par HAMPI is expressive and efficient, and can be successfully applied to testing and analysis of real programs. Our experiments use HAMPI in: static and dynamic analyses for finding SQL injection vulnerabilities in Web applications; automated bug finding in C programs using systematic testing; and compare HAMPI with another string solver. HAMPI's source code, documentation, and the experimental data are available at \urlhttps://people.csail.mit.edu/akiezun/hampi/.
Downloadshttps://people.csail.mit.edu/akiezun/hampi/ HAMPI implementation and experiments https://homes.cs.washington.edu/~mernst/pubs/string-solver-issta2009.pdf PDF
Citation KeyKiezunGGHE2009