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.

Chapter 5<br />

Transformability<br />

Not every specification in RSLA can be transformed using the transformation<br />

rules given in Chapter 6. The reason for this is discussed in this chapter.<br />

First an example <strong>of</strong> a concrete problem is <strong>of</strong>fered and then the conditions a<br />

specification has to fulfill such that it can be transformed are defined.<br />

5.1 Problems<br />

Problems can arise when transforming concrete applicative specifications<br />

within RSLA. One <strong>of</strong> the problems is illustrated in Example 5.1 in which<br />

an applicative specification is transformed according to the transformation<br />

rules which will be described in Chapter 6.<br />

Example 5.1 – Problematic transformation<br />

scheme A_SPEC =<br />

class<br />

type<br />

T = Int<br />

value<br />

f : T → Int<br />

f(x) ≡ g(x) + x,<br />

✄<br />

end<br />

g : T → T<br />

g(x) ≡ x + 1<br />

25

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

Saved successfully!

Ooh no, something went wrong!