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 条
  • [1] Data-driven abductive discovery in mineralogy
    Hazen, Robert M.
    [J]. AMERICAN MINERALOGIST, 2014, 99 (11-12) : 2165 - 2170
  • [2] A data-driven approach for the optimisation of product specifications
    Zhang, Lei
    Chu, Xuening
    Chen, Hansi
    Yan, Bo
    [J]. INTERNATIONAL JOURNAL OF PRODUCTION RESEARCH, 2019, 57 (03) : 703 - 721
  • [3] Data-Driven Inference of Representation Invariants
    Miltner, Anders
    Padhi, Saswat
    Millstein, Todd
    Walker, David
    [J]. PROCEEDINGS OF THE 41ST ACM SIGPLAN CONFERENCE ON PROGRAMMING LANGUAGE DESIGN AND IMPLEMENTATION (PLDI '20), 2020, : 1 - 15
  • [4] Quiver: Guided Abductive Inference of Separation Logic Specifications in Coq
    Spies, Simon
    Gaeher, Lennard
    Sammler, Michael
    Dreyer, Derek
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2024, 8 (PLDI):
  • [5] Data-Driven Discovery of Design Specifications (Student Abstract)
    Chen, Angela
    Gisolfi, Nicholas
    Dubrawski, Artur
    [J]. THIRTY-EIGTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOL 38 NO 21, 2024, : 23449 - 23450
  • [6] On data-driven controller synthesis with regular language specifications
    Pola, Giordano
    Masciulli, Tommaso
    De Santis, Elena
    Di Benedetto, Maria Domenica
    [J]. IFAC PAPERSONLINE, 2020, 53 (02): : 3928 - 3933
  • [7] Data-driven inference of crosstalk in the tumor microenvironment
    Ghoshdastider, Umesh
    Naeini, Marjan
    Rohatgi, Neha
    Solai, Sundar
    Nguyen, Tin
    Revkov, Egor
    Skanderup, Anders
    [J]. CLINICAL CANCER RESEARCH, 2020, 26 (12) : 32 - 33
  • [8] Data-driven inference for the spatial scan statistic
    Alexandre CL Almeida
    Anderson R Duarte
    Luiz H Duczmal
    Fernando LP Oliveira
    Ricardo HC Takahashi
    [J]. International Journal of Health Geographics, 10
  • [9] Data-driven parceling and entropic inference in MEG
    Lapalme, E
    Lina, JM
    Mattout, J
    [J]. NEUROIMAGE, 2006, 30 (01) : 160 - 171
  • [10] Data-driven inference of hidden nodes in networks
    Danh-Tai Hoang
    Jo, Junghyo
    Periwal, Vipul
    [J]. PHYSICAL REVIEW E, 2019, 99 (04)