Automatic Translation from Combined B and CSP Specification to Java Programs


A recent contribution to the formal specification and verification of concurrent systems is the integration of the stateand event-based approaches B and CSP, specifically in the ProB model checking tool. At the implementation end of the development, concurrent programming in Java remains a demanding and error-prone activity, because of the need to verify critical properties of safety and liveness as well as functional correctness. This work contributes to the automated development of concurrent Java programs from such integrated specifications. The JCSP package was originally designed as a proven clean Java concurrency vehicle for the implementation of certain CSP specifications. In the context of best current Java concurrent programming practice, we extend the original JCSP package to support the integrated B and CSP specification by implementing new channel classes. We propose rules for the automated translation of the integrated specification to multi-threaded Java using the extended JCSP channel classes. We briefly present a prototype translation tool which extends ProB, with a worked example, and conclude with a strategy for formally verifying the translation.

DOI: 10.1007/11955757_8

Extracted Key Phrases

9 Figures and Tables

Cite this paper

@inproceedings{Yang2007AutomaticTF, title={Automatic Translation from Combined B and CSP Specification to Java Programs}, author={Letu Yang and Michael Poppleton}, booktitle={B}, year={2007} }