Sciweavers

ISSTA
2000
ACM

Finding bugs with a constraint solver

13 years 8 months ago
Finding bugs with a constraint solver
A method for finding bugs in code is presented. For given small numbers j and k, the code of a procedure is translated into a relational formula whose models represent all execution traces that involve at most j heap cells and k loop iterations. This formula is conjoined with the negation of the procedure’s specification. The models of the resulting formula, obtained using a constraint solver, are counterexamples: executions of the code that violate the specification. The method can analyze millions of executions in seconds, and thus rapidly expose quite subtle flaws. It can accommodate calls to procedures for which specifications but no code is available.A range of standard properties (such as absence of null pointer dereferences) can also be easily checked, using predefined specifications. KEYWORDS Detecting bugs; relational formulas; Alloy language; constraint solvers; testing; static analysis; model checking.
Daniel Jackson, Mandana Vaziri
Added 01 Aug 2010
Updated 01 Aug 2010
Type Conference
Year 2000
Where ISSTA
Authors Daniel Jackson, Mandana Vaziri
Comments (0)