Synthesizing data structure refinements from integrity constraints
Synthesizing data structure refinements from integrity constraints
复制标题
从完整性约束综合数据结构改进
DOI:
10.1145/3453483.3454063
复制
发表时间:
2021
期刊:
影响因子:
--
通讯作者:
Dillig, Isil
中科院分区:
文献类型:
--
作者:
Pailoor, Shankara;Wang, Yuepeng;Wang, Xinyu;Dillig, Isil
Implementations of many data structures use several correlated fields to improve their performance; however, inconsistencies between these fields can be a source of serious program errors. To address this problem, we propose a new technique for automatically refining data structures from integrity constraints. In particular, consider a data structureDwith fieldsFand methodsM, as well as a new set of auxiliary fieldsF′ that should be added toD. Given this input and an integrity constraint Φ relatingFandF′, our method automatically generates a refinement ofDthat satisfies the provided integrity constraint. Our method is based on amodularinstantiation of the CEGIS paradigm and uses a novel inductive synthesizer that augments top-down search with three key ideas. First, it computesnecessary preconditionsof partial programs to dramatically prune its search space. Second, it augments the grammar with promising new productions by leveraging the computed preconditions. Third, it guides top-down search using aprobabilisticcontext-free grammar obtained by statically analyzing the integrity checking function and the original code base. We evaluated our method on 25 data structures from popular Java projects and show that our method can successfully refine 23 of them. We also compare our method against two state-of-the-art synthesis tools and perform an ablation study to justify our design choices. Our evaluation shows that (1) our method is successful at refining many data structure implementations in the wild, (2) it advances the state-of-the-art in synthesis, and (3) our proposed ideas are crucial for making this technique practical.
登录
查看更多内容
DOI:
--
发表时间:
2018-09
期刊:
--
影响因子:
--
作者:
X. Si;Yuan Yang;H. Dai;M. Naik;Le Song
通讯作者:
X. Si;Yuan Yang;H. Dai;M. Naik;Le Song
DOI:
10.1145/1706299.1706325
发表时间:
2010-01
期刊:
--
影响因子:
--
作者:
Philippe Suter;Mirco Dotta;Viktor Kunčak
通讯作者:
Philippe Suter;Mirco Dotta;Viktor Kunčak
DOI:
10.1007/978-3-540-31985-6_16
发表时间:
2005
期刊:
ACM Trans. Program. Lang. Syst.
影响因子:
--
作者:
Patrick Lam;Viktor Kunčak;M. Rinard
通讯作者:
M. Rinard
影响因子:
--
作者:
Yu Feng;R. Martins;O. Bastani;Işıl Dillig
通讯作者:
Yu Feng;R. Martins;O. Bastani;Işıl Dillig
DOI:
--
发表时间:
2017
期刊:
ArXiv
影响因子:
--
作者:
Manos Koukoutos;Mukund Raghothaman;Etienne Kneuss;Viktor Kunčak
通讯作者:
Viktor Kunčak