Data-Driven Abductive Inference of Library Specifications

被引:9
|
作者
Zhou, Zhe [1 ]
Dickerson, Robert [1 ]
Delaware, Benjamin [1 ]
Jagannathan, Suresh [1 ]
机构
[1] Purdue Univ, W Lafayette, IN 47907 USA
来源
关键词
Automated Verification; Data-Driven Specification Inference; Data Structures; Decision Tree Learning; Counterexample Guided Refinement;
D O I
10.1145/3485493
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Programmers often leverage data structure libraries that provide useful and reusable abstractions. Modular verification of programs that make use of these libraries naturally rely on specifications that capture important properties about how the library expects these data structures to be accessed and manipulated. However, these specifications are often missing or incomplete, making it hard for clients to be confident they are using the library safely. When library source code is also unavailable, as is often the case, the challenge to infer meaningful specifications is further exacerbated. In this paper, we present a novel data-driven abductive inference mechanism that infers specifications for library methods sufficient to enable verification of the library's clients. Our technique combines a data-driven learning-based framework to postulate candidate specifications, along with SMT-provided counterexamples to refine these candidates, taking special care to prevent generating specifications that overfit to sampled tests. The resulting specifications form a minimal set of requirements on the behavior of library implementations that ensures safety of a particular client program. Our solution thus provides a new multi-abduction procedure for precise specification inference of data structure libraries guided by client-side verification tasks. Experimental results on a wide range of realistic OCaml data structure programs demonstrate the effectiveness of the approach.
引用
收藏
页数:29
相关论文
共 50 条
  • [41] Data science in the library: tools and strategies for supporting data-driven research and instruction
    Maceviciute, Elena
    [J]. INFORMATION RESEARCH-AN INTERNATIONAL ELECTRONIC JOURNAL, 2022, 27 (03):
  • [42] Data Science in the Library: Tools and Strategies for Supporting Data-Driven Research and Instruction
    Wuttke, Ulrike
    [J]. BIBLIOTHEK FORSCHUNG UND PRAXIS, 2023, 47 (01) : 181 - 184
  • [43] Data science in the library: tools and strategies for supporting data-driven research and instruction
    Giddens, Daniel
    [J]. JOURNAL OF THE AUSTRALIAN LIBRARY AND INFORMATION ASSOCIATION, 2022, 71 (04): : 413 - 414
  • [44] Big data-driven investigation into the maturity of library research data services (RDS)
    Nahotko, Marek
    Zych, Magdalena
    Januszko-Szakiel, Aneta
    Jaskowska, Malgorzata
    [J]. JOURNAL OF ACADEMIC LIBRARIANSHIP, 2023, 49 (01):
  • [45] Data-driven Gene Regulatory Network Inference based on Classification Algorithms
    Peignier, Sergio
    Schmitt, Pauline
    Calevro, Federica
    [J]. 2019 IEEE 31ST INTERNATIONAL CONFERENCE ON TOOLS WITH ARTIFICIAL INTELLIGENCE (ICTAI 2019), 2019, : 1065 - 1072
  • [46] Robust Data-Driven Inference for Density-Weighted Average Derivatives
    Cattaneo, Matias D.
    Crump, Richard K.
    Jansson, Michael
    [J]. JOURNAL OF THE AMERICAN STATISTICAL ASSOCIATION, 2010, 105 (491) : 1070 - 1083
  • [47] Data-driven Gene Regulatory Networks Inference Based on Classification Algorithms
    Peignier, Sergio
    Schmitt, Pauline
    Calevro, Federica
    [J]. INTERNATIONAL JOURNAL ON ARTIFICIAL INTELLIGENCE TOOLS, 2021, 30 (04)
  • [48] Inference about the expected performance of a data-driven dynamic treatment regime
    Chakraborty, Bibhas
    Laber, Eric B.
    Zhao, Ying-Qi
    [J]. CLINICAL TRIALS, 2014, 11 (04) : 408 - 417
  • [49] Data-Driven Inference of Thermosphere Composition During Solar Minimum Conditions
    Mehta, Piyush M.
    Linares, Richard
    Sutton, Eric K.
    [J]. SPACE WEATHER-THE INTERNATIONAL JOURNAL OF RESEARCH AND APPLICATIONS, 2019, 17 (09): : 1364 - 1379
  • [50] Bayesian operator inference for data-driven reduced-order modeling
    Guo, Mengwu
    McQuarrie, Shane A.
    Willcox, Karen E.
    [J]. COMPUTER METHODS IN APPLIED MECHANICS AND ENGINEERING, 2022, 402