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 条
  • [41] Debugging functional programs
    Stumptner, M
    Wotawa, F
    IJCAI-99: PROCEEDINGS OF THE SIXTEENTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOLS 1 & 2, 1999, : 1074 - 1079
  • [42] Calculating functional programs
    Gibbons, J
    ALGEBRAIC AND COALGEBRAIC METHODS IN THE MATHEMATICS OF PROGRAM CONSTRUCTION, 2002, 2297 : 149 - 201
  • [43] Making Smart Moves to Untangle Programs
    Shah, Syed M. Ali
    Dietrich, Jens
    McCartin, Catherine
    2012 16TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING (CSMR), 2012, : 359 - 364
  • [44] Refactoring functional programs
    Thompson, S
    ADVANCED FUNCTIONAL PROGRAMMING, 2004, 3622 : 331 - 357
  • [45] Smart Testing - Approaches to Modern Truck Testing
    Töpfer, Tobias
    Jünemann, Dennis
    ATZheavy Duty Worldwide, 2020, 13 (01) : 34 - 37
  • [46] Exploring the Impact of Functional Test Programs Re-Used for Power-Aware Testing
    Touati, A.
    Bosio, A.
    Dilillo, L.
    Girard, P.
    Virazel, A.
    Bernardi, P.
    Reorda, M. Sonza
    2015 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE), 2015, : 1277 - 1280
  • [47] Smart and functional materials
    Baghdachi, Jamil
    ABSTRACTS OF PAPERS OF THE AMERICAN CHEMICAL SOCIETY, 2015, 250
  • [48] TESTING PROGRAMS WITH AID OF A COMPILER
    HAMLET, RG
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1977, 3 (04) : 279 - 290
  • [49] A STUDY OF SCHOOL TESTING PROGRAMS
    不详
    SCHOOL AND SOCIETY, 1959, 87 (2164): : 506 - 506
  • [50] Reachability testing of concurrent programs
    Lei, Yu
    Carver, Richard H.
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2006, 32 (06) : 382 - 403