Smart Testing of Functional Programs in Isabelle

被引:0
|
作者
Bulwahn, Lukas [1 ]
机构
[1] Tech Univ Munich, D-80290 Munich, Germany
关键词
GENERATION;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
We present a novel counterexample generator for the interactive theorem prover Isabelle based on a compiler that synthesizes test data generators for functional programming languages (e.g. ML, Haskell) from specifications in Isabelle. In contrast to naive typebased test data generators, the smart generators take the preconditions into account and only generate tests that fulfill the preconditions. The smart generators are constructed by a compiler that reformulates the preconditions as logic programs and analyzes them with an enriched mode inference. From this inference, the compiler can construct the desired generators in the functional programming language. Applying these test data generators reduces the number of tests significantly and enables us to find errors in specifications where naive random and exhaustive testing fail.
引用
收藏
页码:153 / 167
页数:15
相关论文
共 50 条
  • [21] Program Logic for Higher-Order Probabilistic Programs in Isabelle/HOL
    Hirata, Michikazu
    Minamide, Yasuhiko
    Sato, Tetsuya
    FUNCTIONAL AND LOGIC PROGRAMMING, FLOPS 2022, 2022, 13215 : 57 - 74
  • [22] Functional testing and performance assessment of smart pressure transmitters used in NPPs
    Satheesh Kumar Reddy Y.
    Prasad K.V.R.B.
    Vinod G.
    Shrestha N.B.
    International Journal of System Assurance Engineering and Management, 2017, 8 (Suppl 2) : 765 - 772
  • [23] Verifying Pointer Programs Using Separation Logic and Invariant Based Programming in Isabelle
    Preoteasa, Viorel
    INTEGRATED FORMAL METHODS (IFM 2016), 2016, 9681 : 457 - 473
  • [24] A SPECIFICATION-BASED FUNCTIONAL TESTING METHOD FOR JS']JSP DESIGNED PROGRAMS
    ROPER, RMF
    SMITH, P
    INFORMATION AND SOFTWARE TECHNOLOGY, 1988, 30 (02) : 89 - 98
  • [25] Template-based Theory Exploration: Discovering Properties of Functional Programs by Testing
    Einarsdottir, Solrun Halla
    Smallbone, Nicholas
    Johansson, Moa
    PROCEEDINGS OF THE 32ND SYMPOSIUM ON IMPLEMENTATION AND APPLICATION OF FUNCTIONAL LANGUAGES, IFL 2020, 2020, : 67 - 78
  • [26] Tactic Program-Based Testing and Bounded Verification in Isabelle/HOL
    Keller, Chantal
    TESTS AND PROOFS, TAP 2018, 2018, 10889 : 103 - 119
  • [27] Getting SMART, SMART Recovery (R) programs and reoffending
    Blatch, Chris
    O'Sullivan, Kevin
    Delaney, Jordan J.
    Rathbone, Daniel
    JOURNAL OF FORENSIC PRACTICE, 2016, 18 (01) : 3 - 16
  • [28] On Testing Constraint Programs
    Lazaar, Nadjib
    Gotlieb, Arnaud
    Lebbah, Yahia
    PRINCIPLES AND PRACTICE OF CONSTRAINT PROGRAMMING-CP 2010, 2010, 6308 : 330 - +
  • [29] PHILOSOPHY OF TESTING PROGRAMS
    BRAND, BG
    JOURNAL OF PAINT TECHNOLOGY, 1969, 41 (530): : 197 - &
  • [30] FORAGE TESTING PROGRAMS
    BURLESON, RE
    JOURNAL OF DAIRY SCIENCE, 1963, 46 (04) : 370 - &