25.07.2014 Views

VDM-10 Language Manual

VDM-10 Language Manual

VDM-10 Language Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 12. Operation Definitions<br />

pre a > 0<br />

post b = 2 * a;<br />

Op2 () b : nat<br />

post b = 2;<br />

Op3 ()<br />

post true<br />

end A<br />

✡✝<br />

✆<br />

✞<br />

module B<br />

definitions<br />

operations<br />

Op1 (a : nat) b : nat<br />

pre a > 0<br />

post b = 2 * a;<br />

Op2 () b : nat<br />

post b = 2;<br />

Op3 ()<br />

post true<br />

end B<br />

✡✝<br />

✆<br />

For module A we could then quote the pre and post conditions defined in this specification<br />

as illustrated below<br />

93

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

Saved successfully!

Ooh no, something went wrong!