Enhancing the Capability of Testing-Based Formal Verification by Handling Operations in Software Packages

被引:2
|
作者
Liu, Ai [1 ]
Liu, Shaoying [1 ]
机构
[1] Hiroshima Univ, Grad Sch Adv Sci & Engn, Higashihiroshima 7398511, Japan
关键词
Testing; !text type='Java']Java[!/text; Input variables; Computer bugs; Software packages; Costs; Codes; Specification; testing; formal verification; Hoare logic; method invocation;
D O I
10.1109/TSE.2022.3150333
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Testing a program based on its specification is necessary to ensure that the program meets its desired functionality. Formal methods, based on some mathematical theories, are often used to enhance the quality of systems but suffer from difficulties in application. The Testing-Based Formal Verification (TBFV) is proposed as an alternative to ensure the correctness of all traversed program paths, but is limited and impractical due to the lack of the capability of dealing with operations (e.g., methods defined in classes) provided in software packages. In this paper, we provide an axiomatic approach to dealing with this problem so as to enhance the capability of the TBFV. In particular, we focus on the Vector, ArrayList, and LinkedList classes in Java. We present both an example to demonstrate how our approach works properly and two small experiments conducted to evaluate the performance of our approach by comparing it with the specification-based testing (SBT). The result shows that our approach is more than 30% superior to the SBT in bug detection.
引用
收藏
页码:304 / 324
页数:21
相关论文
共 50 条
  • [1] Enhancing the Capability of Testing-Based Formal Verification by Handling Operations in Software Packages
    Liu, Ai
    Liu, Shaoying
    [J]. IEEE Transactions on Software Engineering, 2023, 49 (01): : 304 - 324
  • [2] Testing-Based Formal Verification for Theorems and Its Application in Software Specification Verification
    Liu, Shaoying
    [J]. TESTS AND PROOFS, TAP 2016, 2016, 9762 : 112 - 129
  • [3] Testing-Based Formal Verification for Alogrithmic Function Theorems and Its Application to Software Verification and Validation
    Liu, Shaoying
    [J]. 2016 INTERNATIONAL SYMPOSIUM ON SYSTEM AND SOFTWARE RELIABILITY (ISSSR), 2016, : 1 - 6
  • [4] Verifying and Improving Neural Networks Using Testing-Based Formal Verification
    Liu, Haiyi
    Liu, Shaoying
    Liu, Ai
    Fang, Dingbang
    Xu, Guangquan
    [J]. STRUCTURED OBJECT-ORIENTED FORMAL LANGUAGE AND METHOD, SOFL+MSVL 2022, 2023, 13854 : 126 - 141
  • [5] A Fault Localization Approach Derived From Testing-based Formal Verification
    Wang, Rong
    Liu, Shaoying
    Sato, Yuji
    [J]. 2020 25TH INTERNATIONAL CONFERENCE ON ENGINEERING OF COMPLEX COMPUTER SYSTEMS (ICECCS 2020), 2020, : 165 - 170
  • [6] TBFV-SE: Testing-Based Formal Verification with Symbolic Execution
    Wang, Rong
    Liu, Shaoying
    [J]. 2018 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS 2018), 2018, : 59 - 66
  • [7] NNTBFV: Simplifying and Verifying Neural Networks Using Testing-Based Formal Verification
    Liu, Haiyi
    Liu, Shaoying
    Xu, Guangquan
    Liu, Ai
    Fang, Dingbang
    [J]. INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2024, 34 (02) : 273 - 300
  • [8] Branch Sequence Coverage Criterion for Testing-Based Formal Verification with Symbolic Execution
    Wang, Rong
    Liu, Shaoying
    [J]. 2019 COMPANION OF THE 19TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS-C 2019), 2019, : 205 - 212
  • [9] Validating Formal Specifications using Testing-Based Specification Animation
    Liu, Shaoying
    [J]. 2016 IEEE/ACM 4TH FME WORKSHOP ON FORMAL METHODS IN SOFTWARE ENGINEERING (FORMALISE), 2016, : 29 - 35
  • [10] Research on Testing-Based Software Credibility Measurement and Assessment
    Qian Hongbing
    Zhu Xiaojie
    Jin Maozhong
    [J]. 2009 WRI WORLD CONGRESS ON SOFTWARE ENGINEERING, VOL 4, PROCEEDINGS, 2009, : 59 - 64