Login

HAMPI: A Solver for String Constraints

Show full item record




Title: HAMPI: A Solver for String Constraints
Author: Ernst, Michael D.; Kiezun, Adam; Ganesh, Vijay; Guo, Philip J.; Hooimeijer, Pieter
Other Contributors: Program Analysis
Advisor: Michael Ernst
Issue Date: 2009-02-04
Abstract: 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 tools. The increasing efficiency of off-the-shelf constraint solvers makes this approach even more compelling. However, there are few, if any, effective and sufficiently expressive off-the-shelf solvers for string constraints generated by analysis techniques for string-manipulating programs. We designed and implemented Hampi, a solver for string constraints over bounded string variables. Hampi constraints express membership in regular languages and bounded 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. 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 http://people.csail.mit.edu/akiezun/hampi.
URI: http://hdl.handle.net/1721.1/44584
Related To http://people.csail.mit.edu/akiezun/hampi
Series/Report no.: MIT-CSAIL-TR-2009-004
Keywords: Constraint solvers, Automated testing

Files in this item

Files Size Format
MIT-CSAIL-TR-2009-004.pdf 305.3Kb application/pdf
MIT-CSAIL-TR-2009-004.ps 1.252Mb application/postscript

This item appears in the following Collection(s)

Show full item record

Search DSpace@MIT


Advanced Search

Browse

My Account

Links