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.

13211.11.Constraints<br />

ConstraintDenitions Thissimpletrackingofconstraintsisenoughformanypracticalpurposes. tracktheattributeNonNegative(a)throughsuccessorstatements NonNegative(a)isnotinthetypestate untileitheraismodied,orcontrolmergeswithapathinwhich NonNegative(a)succeeds.<br />

Aconstraintdenitionincludes:adeningoccurrenceofanattributename, asetofformalparameters,thetype<strong>and</strong>typestateoftheseformalparametersportedexactlyasaretypedenitions<br />

Example:<br />

Assert NonNegative:constraint(x:integer)is Interval:constraint(x:integer,y:integer)is Constraintattributedenitionsoccurindenitionsmodules<strong>and</strong>areim-<br />

finit(x)gx>=0;<br />

simple{statement finit(x),init(y)gx

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

Saved successfully!

Ooh no, something went wrong!