Abstract
Software development is costly endeavors. In general, the cost can be reduced by checking whether the program meets the specification. Usually, software is composed of several modules so that by checking the correctness of each module, developers can find the causes of errors efficiently. Formal verification and specification-based testing are effective techniques to verify programs. Formal verification based on Hoare logic can establish the correctness of programs from the theoretical point of view. However, it is regarded as an impractical technique for realistic programs, due to some challenges, On the other hand, specification-based testing is able to detect errors, and it is easy to perform. Therefore, it is frequently used for realistic developments. However, in most cases, the testing cannot guarantee the correctness of programs. As we described above, both of these techniques cannot do satisfactory job alone. To solve this problem, a novel verification approach was suggested, which is called testing-based formal verification (TBFV). In this paper, we aim to automate application of Hoare logic to Java programs based on the previously proposed TBFV. At the same time, we try to reveal the feasibility of TBFV through developing a supporting tool for Java programs and conducting a case study. At the same time, to achieve an effective automatic verification, we add the function of automatic boundary testing in the result evaluation step in the supporting tool. As a result, our supporting tool has achieved a semi-formal automation of Hoare logic application, which can help reduce the cost of verification process.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Hoare, C.A.R.: An axiomatic basis for computer programming. Commun. ACM 12(10), 576–580 (1969)
Liu, D., Liu, Y., Zhang, X., Zhu, H., Bayley, I.: Automated testing of web services based on algebraic specifications. In: 2015 IEEE Symposium on Service-Oriented System Engineering (SOSE), San Francisco Bay, US, 30 March 30–3 April 2015 (2015)
Chupilko, M., Kamkin, A., Kotsynyak, A., Protsenko, A., Smolov, S., Tatarnikov, A.: Specification-based test program generation for arm vmsav8-64 memory management units. In: 2015 16th International on Workshop Microprocessor and SOC Test and Verification (MTV), Austin, US, 3–4 December (2015)
Liu, S.: Utilizing hoare logic to strengthen testing for error detection in programs. In: Proceedings of the Turing Centenary Conference, Manchester, UK, pp. 229–238 (2010)
Liu, S.: A decompositional approach to automatic test case generation base on formal specification. In: 4th IRRR International Conference on Secure Software Integration and Reliability Improvement (SSIRI 2010), 9–11 June 2010, pp. 147–155. IEEE CS Press, Singapore (2010)
Liu, S.: Formal Engineering for Industrial Software Development Using the SOFL Method. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-662-07287-5
Liu, S., Hayashi, T., Takahashi, K., Kimura, K., Nakayama, T., Nakajima, S.: Automatic transformation from formal specifications to functional scenario forms for automatic test case generation. In: 9th International Conference on Software Methodologies. Tools and Techniques (SoMet2010), Yokohama, Japan, 29 September–1 October 2010. IOS International Publisher (2010) (Page to appear)
Acknowledgments
I’m grateful to Kangli He for helping me edit this paper. And I thank East China Normal University for financial support to attend the conference. This work was supported by JSPS KEKENHI Grant Number 26240008 and Defense Industrial Technology Development Program JCKY 2016212B004-2.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Fukuoka, S., Chen, Y., Liu, S. (2018). Semi-formal Verification with Supporting Tool by Automatic Application of Hoare Logic. In: Yuan, H., Geng, J., Liu, C., Bian, F., Surapunt, T. (eds) Geo-Spatial Knowledge and Intelligence. GSKI 2017. Communications in Computer and Information Science, vol 848. Springer, Singapore. https://doi.org/10.1007/978-981-13-0893-2_10
Download citation
DOI: https://doi.org/10.1007/978-981-13-0893-2_10
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-13-0892-5
Online ISBN: 978-981-13-0893-2
eBook Packages: Computer ScienceComputer Science (R0)