26.09.2013 Views

Transformation of Applicative Specifications into Imperative ...

Transformation of Applicative Specifications into Imperative ...

Transformation of Applicative Specifications into Imperative ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

C.1. FORMAL SPECIFICATION OF THE TRANSFORMER<br />

ValueExprList(vel) →<br />

getAccessGenList(<br />

idset, vel,<br />

expTypeToExpTypeList(<br />

removeBrackets(et), len vel), func, trans),<br />

NoValueExprList → mk_AccessResult(〈〉, idset)<br />

end,<br />

/∗Returns an access list <strong>of</strong> the values <strong>of</strong> types<br />

<strong>of</strong> interest written to during evaluation <strong>of</strong> an<br />

optional value expression pair list.∗/<br />

/∗<br />

Arguments:<br />

=======<br />

idset: the functions already evaluated<br />

ovel: the optional value expression pair list<br />

Result:<br />

=======<br />

AccessResult: the corresponding access result<br />

∗/<br />

getAccessGenOptVEPL :<br />

Id-set × OptionalValueExprPairList × MapType ×<br />

FUNC × TRANS →<br />

AccessResult<br />

getAccessGenOptVEPL(idset, ovel, et, func, trans) ≡<br />

case ovel <strong>of</strong><br />

ValueExprPairList(vel) →<br />

getAccessGenListList(<br />

idset, pairListToList(vel),<br />

pairListToTypeList(vel, et), func, trans),<br />

NoValueExprPairList →<br />

mk_AccessResult(〈〉, idset)<br />

end,<br />

/∗Returns an access list <strong>of</strong> the values <strong>of</strong> types<br />

<strong>of</strong> interest read from during evaluation <strong>of</strong> a<br />

function.∗/<br />

/∗<br />

Arguments:<br />

=======<br />

idset: the functions already evaluated<br />

vel: the value expression list<br />

Result:<br />

=======<br />

269

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

Saved successfully!

Ooh no, something went wrong!