Experiments in Formal Modelling of a Deadlock Avoidance Algorithm for a CBTC System

  • Franco Mazzanti
  • Alessio Ferrari
  • Giorgio O. Spagnolo
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 9953)


This paper presents a set of experiments in formal modelling and verification of a deadlock avoidance algorithm of an Automatic Train Supervision System (ATS). The algorithm is modelled and verified using four formal environment, namely UMC, Promela/SPIN, NuSMV, and mCRL2. The experience gained in this multiple modelling/verification experiments is described. We show that the algorithm design, structured as a set of concurrent activities cooperating through a shared memory, can be replicated in all the formal frameworks taken into consideration with relative effort. In addition, we highlight specific peculiarities of the various tools and languages, which emerged along our experience.


Model checking Formal design NuSMV SPIN UMC mCRL2 Comparison of model checkers CBTC Deadlock avoidance Railways 


  1. 1.
    Accellera, Property Specification Language - Reference Manual - Version 1.01, April 2003. http://www.eda.org/vfv/docs/psllrm-1.01.pdf
  2. 2.
    ter Beek, M.H., Gnesi, S., Mazzanti, F.: From EU projects to a family of model checkers. In: Nicola, R., Hennicker, R. (eds.) Software, Services, and Systems. LNCS, vol. 8950, pp. 312–328. Springer, Heidelberg (2015). doi: 10.1007/978-3-319-15545-6_20 Google Scholar
  3. 3.
  4. 4.
    ter Beek, M.H., Fantechi, A., Gnesi, S., Mazzanti, F.: A state/event-based model-checking approach for the analysis of abstract system properties. Sci. Comput. Program. 76(2), 119–135 (2011)CrossRefMATHGoogle Scholar
  5. 5.
  6. 6.
    Fantechi, A., Gnesi, S., Lapadula, A., Mazzanti, F., Pugliese, R., Tiezzi, F.: A logical verification methodology for service-oriented computing. ACM Trans. Softw. Eng. Methodol. 21(3), 16:01–16:46 (2012)CrossRefGoogle Scholar
  7. 7.
    Gnesi, S., Mazzanti, F.: An abstract, on the fly framework for the verification of service-oriented systems. In: Wirsing, M., Hölzl, M. (eds.) SENSORIA Project. LNCS, vol. 6582, pp. 390–407. Springer, Heidelberg (2011). doi: 10.1007/978-3-642-20401-2_18 CrossRefGoogle Scholar
  8. 8.
    Mazzanti, F., Spagnolo, G.O., Della Longa, S., Ferrari, A.: Deadlock avoidance in train scheduling: a model checking approach. In: Lang, F., Flammini, F. (eds.) FMICS 2014. LNCS, vol. 8718, pp. 109–123. Springer, Heidelberg (2014). doi: 10.1007/978-3-319-10702-8_8 Google Scholar
  9. 9.
    Mazzanti, F., Spagnolo, G.O., Ferrari, A.: Designing a deadlock-free train scheduler: a model checking approach. In: Badger, J.M., Rozier, K.Y. (eds.) NFM 2014. LNCS, vol. 8430, pp. 264–269. Springer, Heidelberg (2014). doi: 10.1007/978-3-319-06200-6_22 CrossRefGoogle Scholar
  10. 10.
    Mazzanti, F.: An experience in ada multicore programming: parallelisation of a model checking engine. In: Bertogna, M., Pinho, L.M., Quiñones, E. (eds.) Ada-Europe 2016. LNCS, vol. 9695, pp. 94–109. Springer, Heidelberg (2016). doi: 10.1007/978-3-319-39083-3_7 CrossRefGoogle Scholar
  11. 11.
    Holzmann, G.H.: The SPIN Model Checker. Addison-Wesley Pearson Education (2003). ISBN 0-321-22862-6Google Scholar
  12. 12.
    Verifying Multi-threaded Software with Spin. http://spinroot.com
  13. 13.
    Cimatti, A., Clarke, E., Giunchiglia, E., Giunchiglia, F., Pistore, M., Roveri, M., Sebastiani, R., Tacchella, A.: NuSMV 2: an opensource tool for symbolic model checking. In: Proceedings of Computer Aided Verification (CAV 2002) (2002)Google Scholar
  14. 14.
    NuSMV: a new symbolic model checker. http://nusmv.fbk.eu/
  15. 15.
    Groote, J.F., Mousavi, M.R.: Modeling and Analysis of Communicating Systems. MIT Press, Cambridge (2014). ISBN: 9780262027717Google Scholar
  16. 16.
    MCRL2 analysing system behavior. http://www.mcrl2.org/
  17. 17.
    Ferrari, A., Spagnolo, G.O., Martelli, G., Menabeni, S.: From commercial documents to system requirements: an approach for the engineering of novel CBTC solutions. STTT 16(6), 647–667 (2014)CrossRefGoogle Scholar

Copyright information

© Springer International Publishing AG 2016

Authors and Affiliations

  • Franco Mazzanti
    • 1
  • Alessio Ferrari
    • 1
  • Giorgio O. Spagnolo
    • 1
  1. 1.Istituto di Scienza e Tecnologie dell’Informazione “A. Faedo”, Consiglio Nazionale delle Ricerche, ISTI-CNRPisaItaly

Personalised recommendations