Towards automatic Maude specifications generation from C functions

  • fateh boutekkouk university of oum el bouaghi
Abstract views: 92 , PDF downloads: 125
Keywords: C programming language, Maude, Formal specification, Formal verification

Abstract

In this paper, we aim to contribute to the knowledge about how imperative C functions can be transformed to Maude functional and system modules respectively. Maude is a formal specification language characterized by simplicity, expressivity and good performance. It is a multi-paradigm meta-language based on rewriting logic and equational theories used to specify, simulate and formally verify concurrent and distributed systems. Maude has been used to define the operational semantics of many programming and specification languages. In particular, the addition of this paper is to close the gap between a subset of the C standard language and Maude relying on a transformational approach. 

References

[1] D. Beyer, “Software Verification: 10th Comparative Evaluation (SV-COMP 2021),” Groote, J.F., Larsen, K.G. (eds) Tools and Algorithms for the Construction and Analysis of Systems. TACAS 2021. Lecture Notes in Computer Science (vol. 12652). Springer, 2021, doi: 10.1007/978-3-030-72013-1_24.
[2] M. Bonger, Reasoning about C programs, PhD thesis, University of Queensland. 1998.
[3] F. Boutekkouk, “Maude Specification Generation from VHDL”, Das, V.V., Chaba, Y. (eds) Mobile Communication and Power Engineering. AIM 2012. Communications in Computer and Information Science 296, Springer, 2013, doi: 10.1007/978-3-642-35864-7_56
[4] M. Clavel, F. Duran, S. Eker, S. Escobar, P. Lincoln, N. Marti-Oliet, J. Meseguer, and C.Talcott, Maude Manual (Version 2.7.1), 2016.
[5] P. Cuoq, F. Kirchner, N. Kosmatov, V. Prevosto, J. Signoles, and B. Yakobowski, “Frama-C A Software Analysis Perspective,” Formal Aspects of Computing, 2012.
[6] C.M. Ellison, A Formal Semantics of C with Applications. PhD thesis, University of Illinois, 2012.
[7] J.A. Goguen and G. Malcolm, Algebraic Semantics of Imperative Programs (Book), MIT Press, ISBN: 9780262071727, 1996.
[8] P. Hartel and H. Muller, Functional C. Revision 6.8. 1999.
[9] D. Insa and J. Silva, “Automatic Transformation of Iterative Loops into Recursive Methods,” n: CoRR abs/1410.4956, 2014.
[10] ISO/IEC 9899:2018, Information technology — Programming languages — C, https://www.iso.org/standard/74528.html
[11] F. Ivancic, I. Shlyakhter, A. Gupta, M.K. Ganai, V. Kahlon, C. Wang and Z. Yang, “Model Checking C Programs Using F-SOFT,” International Conference on Computer Design 31 October, San Jose, CA, USA, 2005.
[12] K. Jiang, Model Checking C Programs by Translating C to Promela, Master thesis, Linkoping University, Sweden, 2009.
[13] R.J. Krebbers, The C standard formalized in Coq, PhD thesis, Radboud University Nijmegen, 2015.
[14] J.B. MacLennan, Functional Programming: Practice and Theory. Addison-Wesley, 1990.
[15] M. Norrish, C Formalised in HOL. PhD thesis, University of Cambridge, 1998.
[16] M. Sammler, R. Lepigre, and R. Krebbers, “RefjnedC: Automating the Foundational Verifjcation of C Code with Refjned Ownership Types, ” PLDI ’21, Canada, 2021.
[17] N. Schirmer, Verification of Sequential Imperative Programs in Isabelle/HOL. PhD thesis, Technische Universitat Munchen, 2005.
[18] A. Stefanescu, “MatchC: A Matching Logic Reachability Verifier Using the K Framework,” Electronic Notes in Theoretical Computer Science 304, pp. 183–198, 2014.
[19] Summary of C/C++ program verification tools - Programmer Sought, 20/07/2021 https://programmersought.com/article/90174848682/
[20] A. Verdejo and N. Martı-Oliet, “Executable Structural Operational Semantics in Maude,” The Journal of Logic and Algebraic Programming, 67, pp. 226–293, 2006.

PlumX Metrics

Published
2023-06-26