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 条
  • [1] Reasoning about CBV functional programs in Isabelle/HOL
    Longley, J
    Pollack, R
    THEOREM PROVING IN HIGHER ORDER LOGICS, PROCEEDINGS, 2004, 3223 : 201 - 216
  • [2] Random testing in Isabelle/HOL
    Berghofer, S
    Nipkow, T
    PROCEEDINGS OF THE SECOND INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND FORMAL METHODS, 2004, : 230 - 239
  • [3] Concolic Testing of Functional Logic Programs
    Tikovsky, Jan Rasmus
    DECLARATIVE PROGRAMMING AND KNOWLEDGE MANAGEMENT, DECLARE 2017, 2018, 10997 : 169 - 186
  • [4] Functional Testing of Java']Java Programs
    Benac Earle, Clara
    Fredlund, Lars-Ake
    TRENDS IN FUNCTIONAL PROGRAMMING (TFP 2015), 2016, 9547 : 40 - 59
  • [5] PRODUCTION TESTING OF ISABELLE RING MAGNETS
    BLESER, E
    BROWN, D
    DAHL, P
    GARDNER, D
    MCINTURFF, A
    ROBINS, K
    SAMPSON, W
    SCHEWE, P
    BULLETIN OF THE AMERICAN PHYSICAL SOCIETY, 1979, 24 (02): : 184 - 185
  • [6] Translating Scala Programs to Isabelle/HOL System Description
    Hupel, Lars
    Kuncak, Viktor
    AUTOMATED REASONING (IJCAR 2016), 2016, 9706 : 568 - 577
  • [7] Imperative functional programming with Isabelle/HOL
    Bulwahn, Lukas
    Krauss, Alexander
    Haftmann, Horian
    Erkoek, Levent
    Matthews, John
    THEOREM PROVING IN HIGHER ORDER LOGICS, PROCEEDINGS, 2008, 5170 : 134 - +
  • [8] A verification environment for sequential imperative programs in Isabelle/HOL
    Schirmer, N
    LOGIC FOR PROGRAMMING, ARTIFICIAL INTELLIGENCE, AND REASONING, PROCEEDINGS, 2005, 3452 : 398 - 414
  • [9] Proving bounds for real linear programs in Isabelle/HOL
    Obua, S
    THEOREM PROVING IN HIGHER ORDER LOGICS, PROCEEDINGS, 2005, 3603 : 227 - 244
  • [10] Verifying Asymptotic Time Complexity of Imperative Programs in Isabelle
    Zhan, Bohua
    Haslbeck, Maximilian P. L.
    AUTOMATED REASONING, IJCAR 2018, 2018, 10900 : 532 - 548