Abstract
Concurrent software state space explodes, which makes algorithm error detection difficult. This paper proposes a fine-coarse-grained automatic modeling method. Based on the JAVA concurrent program, we generate the HCPN (Hierarchical Coloured Petri Net) fine-coarse-grained model that in accordance with the behavior of the source program automatically. The goal is to detect the algorithm errors in the program through the model checking technology. We complete the modeling of interactive, property-related and specific structure statements through fine-grained method and complete the modeling of other statements through coarse-grained method. Avoid the state space explosion effectively under the premise of retaining the interaction behavior and the property-related behavior execution path. This paper verifies the effect of fine-coarse-grained automatic modeling method by comparing and analyzing the experimental results.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Holzmann, G.J., Smith, M.H.: Software model checking. In: Wu, J., Chanson, S.T., Gao, Q. (eds.) Formal Methods for Protocol Engineering and Distributed Systems. IAICT, vol. 28, pp. 481–497. Springer, Boston, MA (1999). https://doi.org/10.1007/978-0-387-35578-8_28
Ball, T., Levin, V., Rajamani, S.K.: A decade of software model checking with SLAM. Commun. ACM 54(7), 68–76 (2011)
Chaki, S., Clarke, E.M., Groce, A., Jha, S., Veith, H.: Modular verification of software components in C. IEEE Trans. Softw. Eng. 30(6), 388–402 (2004)
Beyer, D., Henzinger, T.A., Jhala, R., Majumdar, R.: The software model checker BLAST: applications to software engineering. Int. J. Softw. Tools Technol. Transf. 9(5), 505–525 (2007)
Sun, T., Liu, Y.Y.: A hierarchical CPN model automatically generating method aiming at multithreading program algorithm error detection. In: 17th IEEE International Symposium on Parallel and Distributed Processing with Applications. IEEE, Melbourne (2018)
Jensen, K., Kristensen, L.M.: Coloured Petri Nets: Modelling and Validation of Concurrent Systems. Springer, Heidelberg (2009). https://doi.org/10.1007/b95112
Jensen, K., Kristensen, L.M.: Formal definition of hierarchical coloured petri nets. In: Jensen, K., Kristensen, L.M. (eds.) Coloured Petri Nets, pp. 127–149. Springer, Heidelberg (2009). https://doi.org/10.1007/b95112_6
Huang, W., Hong, M., Yang, Q.H., et al.: C/C++ program memory leaked detection based on bounded model checking. Appl. Res. Comput. 33(06), 1762–1766 (2016)
Wei, O., Shi, Y.F., Xu, B.F., Huang, Z.Q., Chen, Z.: Abstract modeling formalisms in software model checking. J. Comp. Res. Dev. 52(7), 1580–1603 (2015)
Fehnker, A., Huuck, R.: Model checking driven static analysis for the real world: designing and tuning large scale bug detection. Innov. Syst. Softw. Eng. 9(1), 45–56 (2013)
Wang, B., Wu, T.W., Hu, P.P.: Research on software defect classification and analysis. Comput. Sci. 40(9), 16–20 (2013)
Acknowledgement
This work was supported by National Natural Science Foundation of China under Grant No. 61562064 and No. 61661041.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this paper
Cite this paper
Sun, T., Zhang, J., Zhong, W. (2020). Concurrent Software Fine-Coarse-Grained Automatic Modeling Method for Algorithm Error Detection. In: Wen, S., Zomaya, A., Yang, L.T. (eds) Algorithms and Architectures for Parallel Processing. ICA3PP 2019. Lecture Notes in Computer Science(), vol 11945. Springer, Cham. https://doi.org/10.1007/978-3-030-38961-1_52
Download citation
DOI: https://doi.org/10.1007/978-3-030-38961-1_52
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-38960-4
Online ISBN: 978-3-030-38961-1
eBook Packages: Computer ScienceComputer Science (R0)