28.01.2015 Views

Hermes: A Tutorial and Reference Manual - Researcher - IBM

Hermes: A Tutorial and Reference Manual - Researcher - IBM

Hermes: A Tutorial and Reference Manual - Researcher - IBM

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.

184B.6.OperationDescriptions real{literal(result) TypeRules: Preconditions: Description:Interpretthecharacterstringstoredintheinstructionqualierasarealnumber,<strong>and</strong>storethevalueinresult.<br />

result2integer var(result) Postconditions: makeinit(result) Exceptions:Depletion<br />

Qualier:literal rem(result,source1,source2)Exceptions:Depletion,DivideByZero TypeRules: Preconditions: source12numeric result2numeric resultsource1source2 source22numericSeex11.4,p.104<br />

Description:Letabethevalueofsource1,<strong>and</strong>bbethevalueofsource2. var(result) init(source2) init(source1) Postconditions:<br />

Qualier:absent thatofb,<strong>and</strong>satisfyingtheequationa=nb+cforsomeintegern, Thevaluechavingthesamesignasa,withabsolutevaluelessthan isstoredinresult. makeinit(result)<br />

receive(message,inport) TypeRules: Preconditions: inport2inport<br />

messagetypeof(inport) Exceptions:Depletion,Disconnected Seex11.4,p.104<br />

Description:Dequeuetherstavailablemessagefrominport<strong>and</strong>store Qualier:absent var(message) init(inport) itinmessage.Ifnomessageisavailable,waitforonetoarrive. var(inport) Postconditions: moveentryts(inport,message) Seex11.8,p.123

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

Saved successfully!

Ooh no, something went wrong!