Learning inductive invariants by sampling from frequency distributions

被引:4
|
作者
Fedyukovich, Grigory [1 ]
Kaufman, Samuel J. [2 ]
Bodik, Rastislav [2 ]
机构
[1] Florida State Univ, Tallahassee, FL 32306 USA
[2] Univ Washington, Seattle, WA 98195 USA
关键词
Software verification; Invariant synthesis; Syntax-guided synthesis;
D O I
10.1007/s10703-020-00349-x
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Automated verification for program safety is reduced to the discovery safe inductive invariants, i.e., formulas that over-approximate the sets of reachable program states, but precise enough to prove unreachability of the error state. We present a framework, called FreqHorn, that follows the Syntax-Guided Synthesis paradigm to iteratively sample candidate invariants from a formal grammar and check them with an SMT solver. FreqHorn automatically constructs grammars based on either source code or bounded proofs. After each (un-)successful candidate, FreqHorn adjusts the grammars to ensure the candidate is not sampled again. The process continues either until the conjunction of successful candidates (called lemmas) is sufficient, or the search space is exhausted. Additionally, FreqHorn keeps a history of counterexamples-to-induction (CTI) which block learning a lemma. With some periodicity, it checks if there is a CTI which is invalidated by the currently learned lemmas and rechecks the failed lemma if needed. FreqHorn is able to check several candidates at the same time to filter them effectively using the well known Houdini algorithm.
引用
收藏
页码:154 / 177
页数:24
相关论文
共 50 条
  • [31] Sampling from compositional and directional distributions
    Kume, Alfred
    Walker, Stephen G.
    STATISTICS AND COMPUTING, 2006, 16 (03) : 261 - 265
  • [32] Succinct Sampling from Discrete Distributions
    Bringmann, Karl
    Larsen, Kasper Green
    STOC'13: PROCEEDINGS OF THE 2013 ACM SYMPOSIUM ON THEORY OF COMPUTING, 2013, : 775 - 782
  • [33] Differentially Private Sampling from Distributions
    Raskhodnikova, Sofya
    Sivakumar, Satchit
    Smith, Adam
    Swanberg, Marika
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 34 (NEURIPS 2021), 2021, 34
  • [34] Statistical distributions of particulate matter and the error associated with sampling frequency
    Rumburg, B
    Alldredge, R
    Claiborn, C
    ATMOSPHERIC ENVIRONMENT, 2001, 35 (16) : 2907 - 2920
  • [35] Inductive learning from fuzzy examples
    Wang, CH
    Hong, TP
    Tseng, SS
    FUZZ-IEEE '96 - PROCEEDINGS OF THE FIFTH IEEE INTERNATIONAL CONFERENCE ON FUZZY SYSTEMS, VOLS 1-3, 1996, : 13 - 18
  • [36] CONJUNCT: Learning Inductive Invariants to Prove Unbounded Instruction Safety Against Microarchitectural Timing Attacks
    Dinesh, Sushant
    Parthasarathy, Madhusudan
    Fletcher, Christopher W.
    45TH IEEE SYMPOSIUM ON SECURITY AND PRIVACY, SP 2024, 2024, : 3735 - 3753
  • [37] Bounded Quantifier Instantiation for Checking Inductive Invariants
    Feldman, Yotam M. Y.
    Padon, Oded
    Immerman, Neil
    Sagiv, Mooly
    Shoham, Sharon
    TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, TACAS 2017, PT I, 2017, 10205 : 76 - 95
  • [38] Generation of Inductive Invariants from Register Transfer Level Designs of Communication Fabrics
    Joosten, Sebastiaan J. C.
    Schmaltz, Julien
    2013 ELEVENTH ACM/IEEE INTERNATIONAL CONFERENCE ON FORMAL METHODS AND MODELS FOR CODESIGN (MEMOCODE 2013), 2013, : 57 - 63
  • [39] Computing Inductive Invariants of Regular Abstraction Frameworks
    Czerner, Philipp
    Esparza, Javier
    Krasotin, Valentin
    Welzel-Mohr, Christoph
    Leibniz International Proceedings in Informatics, LIPIcs, 311
  • [40] Strengthening Model Checking Techniques With Inductive Invariants
    Cabodi, Gianpiero
    Nocco, Sergio
    Quer, Stefano
    IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2009, 28 (01) : 154 - 158