Towards Optimal Concolic Testing

被引:45
|
作者
Wang, Xinyu [1 ]
Sun, Jun [2 ]
Chen, Zhenbang [3 ]
Zhang, Peixin [1 ]
Wang, Jingyi [2 ]
Lin, Yun [4 ]
机构
[1] Zhejiang Univ, Hangzhou, Zhejiang, Peoples R China
[2] Singapore Univ Tech & Design, Singapore, Singapore
[3] Natl Univ Def Technol, Changsha, Hunan, Peoples R China
[4] Natl Univ Singapore, Singapore, Singapore
关键词
SYMBOLIC EXECUTION;
D O I
10.1145/3180155.3180177
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Concolic testing integrates concrete execution (e.g., random testing) and symbolic execution for test case generation. It is shown to be more cost-effective than random testing or symbolic execution sometimes. A concolic testing strategy is a function which decides when to apply random testing or symbolic execution, and if it is the latter case, which program path to symbolically execute. Many heuristics-based strategies have been proposed. It is still an open problem what is the optimal concolic testing strategy. In this work, we make two contributions towards solving this problem. First, we show the optimal strategy can be defined based on the probability of program paths and the cost of constraint solving. The problem of identifying the optimal strategy is then reduced to a model checking problem of Markov Decision Processes with Costs. Secondly, in view of the complexity in identifying the optimal strategy, we design a greedy algorithm for approximating the optimal strategy. We conduct two sets of experiments. One is based on randomly generated models and the other is based on a set of C programs. The results show that existing heuristics have much room to improve and our greedy algorithm often outperforms existing heuristics.
引用
收藏
页码:291 / 302
页数:12
相关论文
共 50 条
  • [41] Scaling Concolic Testing for the Environment-Intensive Program
    Lei, Xue
    Huang, Wei
    Fan, Wenqing
    Yang, Yixian
    [J]. IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2015, E98D (10): : 1755 - 1764
  • [42] COLT: Extending CONCOLIC Testing to measure LCSAJ Coverage
    Dutta, Arpita
    Godboley, Sangharatna
    Mohapatra, Durga Prasad
    [J]. PROCEEDINGS OF THE 2016 IEEE REGION 10 CONFERENCE (TENCON), 2016, : 373 - 378
  • [43] FIRVER: Concolic Testing for Systematic Validation of Firmware Binaries
    Alam, Tashfia
    Yang, Zhenkun
    Chen, Bo
    Armour, Nicholas
    Ray, Sandip
    [J]. 27TH ASIA AND SOUTH PACIFIC DESIGN AUTOMATION CONFERENCE, ASP-DAC 2022, 2022, : 352 - 357
  • [44] Concolic Testing of Front-end Java']JavaScript
    Li, Zhe
    Xie, Fei
    [J]. FUNDAMENTAL APPROACHES TO SOFTWARE ENGINEERING, FASE 2023, 2023, 13991 : 67 - 87
  • [45] Concolic Testing for Models of State-Based Systems
    Ahmadi, Reza
    Dingel, Juergen
    [J]. ESEC/FSE'2019: PROCEEDINGS OF THE 2019 27TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, 2019, : 4 - 15
  • [46] Directed Test Generation using Concolic Testing on RTL models
    Ahmed, Alif
    Farahmandi, Farimah
    Mishra, Prahhat
    [J]. PROCEEDINGS OF THE 2018 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE), 2018, : 1538 - 1543
  • [47] Automated Unit Testing of Large Industrial Embedded Software using Concolic Testing
    Kim, Yunho
    Kim, Youil
    Kim, Taeksu
    Lee, Gunwoo
    Jang, Yoonkyu
    Kim, Moonzoo
    [J]. 2013 28TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE), 2013, : 519 - 528
  • [48] An SMT-Based Concolic Testing Tool for Logic Programs
    Fortz, Sophie
    Mesnard, Fred
    Payet, Etienne
    Perrouin, Gilles
    Vanhoof, Wim
    Vidal, German
    [J]. FUNCTIONAL AND LOGIC PROGRAMMING, FLOPS 2020, 2020, 12073 : 215 - 219
  • [49] Sound and Complete Concolic Testing for Higher-order Functions
    You, Shu-Hung
    Findler, Robert Bruce
    Dimoulas, Christos
    [J]. PROGRAMMING LANGUAGES AND SYSTEMS, ESOP 2021, 2021, 12648 : 635 - 663
  • [50] BATON: symphony of random testing and concolic testing through machine learning and taint analysis
    Chen, Bihuan
    Liu, Yang
    Peng, Xin
    Wu, Yijian
    Qin, Shengchao
    [J]. SCIENCE CHINA-INFORMATION SCIENCES, 2023, 66 (03)