The following examples are illustrated in the book:
The source code of the examples is distributed under the conditions of the MIT License. Basically, you are free of doing whatever you want with the examples. The code comes with no warranties whatsoever.
The following reference can be used to acknowledge the source of the examples:
@book{Bozzano:2010ly, Author = {Marco Bozzano and Adolfo Villafiorita}, Publisher = {CRC Press (Taylor and Francis), an Auerbach Book}, Title = {Design and Safety Assessment of Critical Systems}, Year = {2010}, }