Generalized Data Structure Synthesis

Author email: loncaric@cs.washington.edu
Tool name: Cozy
Description: Data structure synthesis is the task of generating data structure implementations from high-level specifications. Recent work in this area has shown potential to save programmer time and reduce the risk of defects. Existing techniques focus on data structures for manipulating subsets of a single collection, but real-world programs often track multiple related collections and aggregate properties such as sums, counts, minimums, and maximums. This paper shows how to synthesize data structures that track subsets and aggregations of multiple related collections. Our technique decomposes the synthesis task into alternating steps of query synthesis and incrementalization. The query synthesis step implements pure operations over the data structure state by leveraging existing enumerative synthesis techniques, specialized to the data structures domain. The incrementalization step implements imperative state modifications by re-framing them as fresh queries that determine what to change, coupled with a small amount of code to apply the change. As an added benefit of this approach over previous work, the synthesized data structure is optimized for not only the queries in the specification but also the required update operations. We have evaluated our approach in four large case studies, demonstrating that these extensions are broadly applicable.
Bibtex: @INPROCEEDINGS{8453175, author={C. {Loncaric} and M. D. {Ernst} and E. {Torlak}}, booktitle={2018 IEEE/ACM 40th International Conference on Software Engineering (ICSE)}, title={Generalized Data Structure Synthesis}, year={2018}, volume={}, number={}, pages={958-968}, keywords={data structures;query processing;reasoning about programs;set theory;data structure implementations;track subsets;incrementalization;data structure state;data structures domain;data structure synthesis;query synthesis;aggregations;re-framing;code;Data structures;Synthesizers;Task analysis;Software;Servers;Tools;Program synthesis;automatic programming;data structures}, doi={10.1145/3180155.3180211}, ISSN={1558-1225}, month={May},}
Link to public pdf: https://ieeexplore.ieee.org/abstract/document/8453175
Link to tool webpage: https://cozy.uwplse.org/
Link to demo: Not provided by authors
Category: None
Year and Conference: 2018, ICSE
Terms of use