Automated Data Structure Generation: Refuting Common Wisdom
Authors:
- Kyle DeweyKDKyle Dewey
- Lawton NicholsLNLawton Nichols
- Ben HardekopfBHBen Hardekopf
- 1 May 2015
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- Vol. 1, 32-43
Abstract
Common wisdom in the automated data structure generation community states that declarative techniques have better usability than imperative techniques, while imperative techniques have better performance. We show that this reasoning is fundamentally flawed: if we go to the declarative limit and employ constraint logic programming (CLP), the CLP data structure generation has orders of magnitude better performance than comparable imperative techniques. Conversely, we observe and argue that when it comes to realistically complex data structures and properties, the CLP specifications become more obscure, indirect, and difficult to implement and understand than their imperative counterparts. We empirically evaluate three competing generation techniques, CLP, Korat, and UDITA, to validate these observations on more complex and interesting data structures than any prior work in this area. We explain why these observations are true, and discuss possible techniques for attaining the best of both worlds.Keywords
This publication has 24 references indexed in Scilit:
- Generation of Test Data Structures Using Constraint Logic Programming2012
- SWI-PrologTheory and Practice of Logic Programming, 2011
- Test case generation for object-oriented imperative languages in CLPTheory and Practice of Logic Programming, 2010
- Pex–White Box Test Generation for .NET2008
- A Proposal for Disequality Constraints in CurryElectronic Notes in Theoretical Computer Science, 2007
- Automatic software model checking via constraint logicScience of Computer Programming, 2004
- AlloyACM Transactions on Software Engineering and Methodology, 2002
- Solving the incremental satisfiability problemThe Journal of Logic Programming, 1993
- Self-adjusting binary search treesJournal of the ACM, 1985
- Prolog - the language and its implementation compared with LispACM SIGART Bulletin, 1977