Transformation of Applicative Specifications into Imperative ...
Transformation of Applicative Specifications into Imperative ... Transformation of Applicative Specifications into Imperative ...
APPENDIX D. SPECIFICATION OF TRANSFORMER IN RSL1 getTRANSId( getMapValueTYPES( types, IdBinding(id)), trans), optid), types) else /∗The value expression is not of the type of interest. ∗/ mk_PATTERN_TYPES(p, types) end end, WildcardPattern → mk_PATTERN_TYPES(p, types), ProductPattern(pl) → mk_PATTERN_TYPES( ProductPattern( patternList( TRPatternList(pl, func, trans, types))), typesMap( TRPatternList(pl, func, trans, types))), RecordPattern(vn, pl) → mk_PATTERN_TYPES( RecordPattern( vn, patternList( TRPatternList(pl, func, trans, types))), typesMap( TRPatternList(pl, func, trans, types))), MakeListPattern(lp) → mk_PATTERN_TYPES( MakeListPattern( listPattern( TRListPattern(lp, func, trans, types))), typesMap( TRListPattern(lp, func, trans, types))) end, TRPatternList : Pattern ∗ × FUNC × TRANS × TYPES → PL_TYPES TRPatternList(pl, func, trans, types) ≡ if pl = 〈〉 then mk_PL_TYPES(〈〉, types) else mk_PL_TYPES( 〈getPattern( pattern( TRPattern(hd pl, func, trans, types)))〉 404
D.2. FORMAL SPECIFICATION OF THE TRANSFORMER IN RSL1 ) end, patternList( TRPatternList( tl pl, func, trans, typesMap( TRPattern(hd pl, func, trans, types)))), typesMap( TRPatternList( tl pl, func, trans, typesMap( TRPattern(hd pl, func, trans, types)))) TRListPattern : ListPattern × FUNC × TRANS × TYPES → LP_TYPES TRListPattern(lp, func, trans, types) ≡ case lp of Make_EnumeratedListPattern(elp) → mk_LP_TYPES( Make_EnumeratedListPattern( mk_EnumeratedListPattern( optInnerPattern( TROptInnerPattern( inner_pattern(elp), func, trans, types)))), typesMap( TROptInnerPattern( inner_pattern(elp), func, trans, types)) ), ConcatenatedListPattern(elp, p) → mk_LP_TYPES( ConcatenatedListPattern( mk_EnumeratedListPattern( optInnerPattern( TROptInnerPattern( inner_pattern(elp), func, trans, types))), pattern( TRPattern( p, func, trans, typesMap( TROptInnerPattern( inner_pattern(elp), func, trans, types))))), 405
- Page 370 and 371: APPENDIX D. SPECIFICATION OF TRANSF
- Page 372 and 373: APPENDIX D. SPECIFICATION OF TRANSF
- Page 374 and 375: APPENDIX D. SPECIFICATION OF TRANSF
- Page 376 and 377: APPENDIX D. SPECIFICATION OF TRANSF
- Page 378 and 379: APPENDIX D. SPECIFICATION OF TRANSF
- Page 380 and 381: APPENDIX D. SPECIFICATION OF TRANSF
- Page 382 and 383: APPENDIX D. SPECIFICATION OF TRANSF
- Page 384 and 385: APPENDIX D. SPECIFICATION OF TRANSF
- Page 386 and 387: APPENDIX D. SPECIFICATION OF TRANSF
- Page 388 and 389: APPENDIX D. SPECIFICATION OF TRANSF
- Page 390 and 391: APPENDIX D. SPECIFICATION OF TRANSF
- Page 392 and 393: APPENDIX D. SPECIFICATION OF TRANSF
- Page 394 and 395: APPENDIX D. SPECIFICATION OF TRANSF
- Page 396 and 397: APPENDIX D. SPECIFICATION OF TRANSF
- Page 398 and 399: APPENDIX D. SPECIFICATION OF TRANSF
- Page 400 and 401: APPENDIX D. SPECIFICATION OF TRANSF
- Page 402 and 403: APPENDIX D. SPECIFICATION OF TRANSF
- Page 404 and 405: APPENDIX D. SPECIFICATION OF TRANSF
- Page 406 and 407: APPENDIX D. SPECIFICATION OF TRANSF
- Page 408 and 409: APPENDIX D. SPECIFICATION OF TRANSF
- Page 410 and 411: APPENDIX D. SPECIFICATION OF TRANSF
- Page 412 and 413: APPENDIX D. SPECIFICATION OF TRANSF
- Page 414 and 415: APPENDIX D. SPECIFICATION OF TRANSF
- Page 416 and 417: APPENDIX D. SPECIFICATION OF TRANSF
- Page 418 and 419: APPENDIX D. SPECIFICATION OF TRANSF
- Page 422 and 423: APPENDIX D. SPECIFICATION OF TRANSF
- Page 424 and 425: APPENDIX D. SPECIFICATION OF TRANSF
- Page 426 and 427: APPENDIX D. SPECIFICATION OF TRANSF
- Page 428 and 429: APPENDIX D. SPECIFICATION OF TRANSF
- Page 430 and 431: APPENDIX D. SPECIFICATION OF TRANSF
- Page 432 and 433: APPENDIX D. SPECIFICATION OF TRANSF
- Page 434 and 435: APPENDIX D. SPECIFICATION OF TRANSF
- Page 436 and 437: APPENDIX D. SPECIFICATION OF TRANSF
- Page 438 and 439: APPENDIX D. SPECIFICATION OF TRANSF
- Page 440 and 441: APPENDIX D. SPECIFICATION OF TRANSF
- Page 442 and 443: APPENDIX D. SPECIFICATION OF TRANSF
- Page 444 and 445: APPENDIX D. SPECIFICATION OF TRANSF
- Page 446 and 447: APPENDIX D. SPECIFICATION OF TRANSF
- Page 448 and 449: APPENDIX D. SPECIFICATION OF TRANSF
- Page 450 and 451: APPENDIX D. SPECIFICATION OF TRANSF
- Page 452 and 453: APPENDIX D. SPECIFICATION OF TRANSF
- Page 454 and 455: APPENDIX D. SPECIFICATION OF TRANSF
- Page 456 and 457: APPENDIX D. SPECIFICATION OF TRANSF
- Page 458 and 459: APPENDIX D. SPECIFICATION OF TRANSF
- Page 460 and 461: APPENDIX D. SPECIFICATION OF TRANSF
- Page 462 and 463: APPENDIX D. SPECIFICATION OF TRANSF
- Page 464 and 465: APPENDIX D. SPECIFICATION OF TRANSF
- Page 466 and 467: APPENDIX D. SPECIFICATION OF TRANSF
- Page 468 and 469: APPENDIX D. SPECIFICATION OF TRANSF
D.2. FORMAL SPECIFICATION OF THE TRANSFORMER IN RSL1<br />
)<br />
end,<br />
patternList(<br />
TRPatternList(<br />
tl pl, func, trans,<br />
typesMap(<br />
TRPattern(hd pl, func, trans, types)))),<br />
typesMap(<br />
TRPatternList(<br />
tl pl, func, trans,<br />
typesMap(<br />
TRPattern(hd pl, func, trans, types))))<br />
TRListPattern :<br />
ListPattern × FUNC × TRANS × TYPES → LP_TYPES<br />
TRListPattern(lp, func, trans, types) ≡<br />
case lp <strong>of</strong><br />
Make_EnumeratedListPattern(elp) →<br />
mk_LP_TYPES(<br />
Make_EnumeratedListPattern(<br />
mk_EnumeratedListPattern(<br />
optInnerPattern(<br />
TROptInnerPattern(<br />
inner_pattern(elp), func, trans,<br />
types)))),<br />
typesMap(<br />
TROptInnerPattern(<br />
inner_pattern(elp), func, trans, types))<br />
),<br />
ConcatenatedListPattern(elp, p) →<br />
mk_LP_TYPES(<br />
ConcatenatedListPattern(<br />
mk_EnumeratedListPattern(<br />
optInnerPattern(<br />
TROptInnerPattern(<br />
inner_pattern(elp), func, trans,<br />
types))),<br />
pattern(<br />
TRPattern(<br />
p, func, trans,<br />
typesMap(<br />
TROptInnerPattern(<br />
inner_pattern(elp), func,<br />
trans, types))))),<br />
405