Generating C# Programs from CSP# Models

Huiquan Zhu, Jin Song Dong, Bimlesh Wadhwa, Shang‐Wei Lin · 2013

Due to the inherent complexity of the concurrent behavior, it is difficult to ensure the program satisfies the concurrent properties. CSP#, as a formal language, is used to model the program and the properties can be verified on the CSP# model. It is desirable to have a transformation technique from the CSP# model to the implementation. We implement the CSP# operators in a C# library “PAT.Runtime”. Based on it, a code generation tool is developed in PAT framework to transform CSP# models to multi-threaded C# programs. We prove that the generated C# program and original CSP# model are equivalent on the traces semantics. The validated properties of the CSP# model preserve in the generated program.

Read the paper · More papers on PaperTik