Higher-Order Test Generation

被引:8
|
作者
Godefroid, Patrice
机构
关键词
Testing; Verification; Automatic Test Generation; Software Model Checking; Uninterpreted Functions;
D O I
10.1145/1993316.1993529
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Symbolic reasoning about large programs is bound to be imprecise. How to deal with this imprecision is a fundamental problem in program analysis. Imprecision forces approximation. Traditional static program verification builds "may" over-approximations of the program behaviors to check universal "for-all-paths" properties, while automatic test generation requires "must" under-approximations to check existential "for-some-path" properties. In this paper, we introduce a new approach to test generation where tests are derived from validity proofs of first-order logic formulas, rather than satisfying assignments of quantifier-free first-order logic formulas as usual. Two key ingredients of this higher-order test generation are to (1) represent complex/unknown program functions/instructions causing imprecision in symbolic execution by uninterpreted functions, and (2) record uninterpreted function samples capturing input-output pairs observed at execution time for those functions. We show that higher-order test generation generalizes and is more precise than simplifying complex symbolic expressions using their concrete runtime values. We present several program examples where our approach can exercise program paths and find bugs missed by previous techniques. We discuss the implementability and applications of this approach. We also explain in what sense dynamic test generation is more powerful than static test generation.
引用
收藏
页码:258 / 269
页数:12
相关论文
共 50 条
  • [21] Higher-Order Contingentism, Part 1: Closure and Generation
    Peter Fritz
    Jeremy Goodman
    Journal of Philosophical Logic, 2016, 45 : 645 - 695
  • [22] HIGHER-ORDER SQUEEZING IN KTH-HARMONIC GENERATION
    KOZIEROWSKI, M
    PHYSICAL REVIEW A, 1986, 34 (04): : 3474 - 3477
  • [23] Automatic generation of editors for higher-order data structures
    Achten, P
    van Eekelen, M
    Plasmeijer, R
    van Weelden, A
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2004, 3302 : 262 - 279
  • [24] Code Generation via Higher-Order Rewrite Systems
    Haftmann, Florian
    Nipkow, Tobias
    FUNCTIONAL AND LOGIC PROGRAMMING, PROCEEDINGS, 2010, 6009 : 103 - 117
  • [25] A CONSISTENT HIGHER-ORDER THEORY WITHOUT A (HIGHER-ORDER) MODEL
    FORSTER, T
    ZEITSCHRIFT FUR MATHEMATISCHE LOGIK UND GRUNDLAGEN DER MATHEMATIK, 1989, 35 (05): : 385 - 386
  • [26] CALCULATION OF HIGHER-ORDER SENSITIVITIES AND HIGHER-ORDER SENSITIVITY INVARIANTS
    GEHER, K
    SOLYMOSI, J
    PERIODICA POLYTECHNICA-ELECTRICAL ENGINEERING, 1972, 16 (03): : 325 - 330
  • [27] Comparative higher-order risk aversion and higher-order prudence
    Wong, Kit Pong
    ECONOMICS LETTERS, 2018, 169 : 38 - 42
  • [28] Higher-order symmetric duality with higher-order generalized invexity
    Padhan S.K.
    Nahak C.
    Journal of Applied Mathematics and Computing, 2015, 48 (1-2) : 407 - 420
  • [29] HIGHER-ORDER OPTIMALITY CONDITIONS AND HIGHER-ORDER TANGENT SETS
    Penot, Jean-Paul
    SIAM JOURNAL ON OPTIMIZATION, 2017, 27 (04) : 2508 - 2527
  • [30] Typed higher-order narrowing without higher-order strategies
    Antoy, S
    Tolmach, A
    FUNCTIONAL AND LOGIC PROGRAMMING, PROCEEDINGS, 1999, 1722 : 335 - 352