29.01.2014 Views

slides - Department of Computer Science

slides - Department of Computer Science

slides - Department of Computer Science

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Introduction to B and GSL (Cont.)<br />

• The developer write programs (machines) using Abstract Machine Notation<br />

(AMN) into the B-Toolkit.<br />

Simple machine written in AMN:<br />

VARIABLES xx, yy<br />

INVARIANT xx : NAT & yy : NAT<br />

INITIALISATION xx, yy := 0, 0<br />

OPERATIONS

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!