07.01.2013 Views

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

226 Laura Brandán Briones and Mathias Röhl<br />

(4) Normalize TTTS: Not observable events could not be tested. Therefor, silent<br />

events are elided and delays of these omitted events are added to their fol-<br />

d1,<strong>in</strong>p,τ,{}<br />

low<strong>in</strong>g visible events. Each transition sequence of the form q0 −−−−−−−−→<br />

d2,out,a,r<br />

d1+d2,out,a,r<br />

q1 −−−−−−−−→ q2 is replaced by q0 −−−−−−−−→ q2.<br />

Subsequently, the TTTS has to be re-transformed <strong>in</strong>to a determ<strong>in</strong>istic transition<br />

system, s<strong>in</strong>ce omitt<strong>in</strong>g events may have <strong>in</strong>troduced non-determ<strong>in</strong>ism.<br />

Note that, normalization is not allowed to remove cycles of silent actions. At<br />

least one of the actions on such a cycle has to be made visible, i.e. the test<br />

view V has to be changed, to get a proper TTTS.<br />

(5) M<strong>in</strong>imize TTTS: remove all states that are redundant, i.e. all but one that<br />

are <strong>in</strong> the same visible equivalence class and have the same set of traces.<br />

There might be states that are <strong>in</strong> the same visible equivalence class but do<br />

not have the same set of visible traces. Such states have to be kept.<br />

� �s0<br />

s0<br />

0, <strong>in</strong>p, on,<br />

{c := 0<br />

s Asw := s 1 }<br />

� �<br />

,c=0<br />

8, <strong>in</strong>p, τ,{}<br />

...<br />

� �s0<br />

s0<br />

� �<br />

,c=8<br />

0, <strong>in</strong>p, on,<br />

{c := 0,<br />

s Asw := s 1 } 0, <strong>in</strong>p, on, {c := 0, s Asw := s 1 }<br />

2, <strong>in</strong>p, τ,{}<br />

3, <strong>in</strong>p, τ,{}<br />

0, <strong>in</strong>p,<br />

on,<br />

{c := 0,<br />

1, <strong>in</strong>p,<br />

1, <strong>in</strong>p,<br />

��s1� � ��s1� � � τ, {}<br />

τ, {} �s1�<br />

,c=0 ,c=1 ,c=2<br />

s0<br />

s0<br />

s0<br />

0, <strong>in</strong>p, on, {c := 0, sAsw := s1 }<br />

1, <strong>in</strong>p,<br />

τ, {}<br />

sAsw := s1 }<br />

0, <strong>in</strong>p, on, {c := 0, sAsw := s1 }<br />

� � �s1<br />

0, <strong>in</strong>p, on, {c := 0, s Asw := s 1 }<br />

4, <strong>in</strong>p, τ,{}<br />

s0<br />

� ,c=3<br />

5, <strong>in</strong>p, τ,{}<br />

1, <strong>in</strong>p, � ��s1 τ, {}<br />

0, <strong>in</strong>p, on, {c := 0, s Asw := s 1 }<br />

s0<br />

� ,c=4<br />

0, <strong>in</strong>p, on, {c := 0, s Asw := s 1 }<br />

1, <strong>in</strong>p, τ,{}<br />

� �s0<br />

s0<br />

s0<br />

� �<br />

,c=−1<br />

0, out, off ,<br />

{c := −1<br />

s Asw := s 0 }<br />

1, <strong>in</strong>p, � ��s1� �<br />

τ, {}<br />

,c=5<br />

Fig. 8.11. A TTTS ga<strong>in</strong>ed from TTS Ms after digitization and label transformation<br />

Example. After digitization the TTS Ms is reduced to a TTTS with 15 states<br />

(cf. Figure 8.11).<br />

Let us now assume a test view V =(P ′ , Var ′ , C ′ , Ch ′ ), where P ′ = {pen},<br />

Var ′ = Var = ∅, C ′ = C = {c}, andCh ′ = Ch = {on, off }. S<strong>in</strong>ceP ′ ⊂ P<br />

does not conta<strong>in</strong> the name of the switch component psw , valuations and resets<br />

of the locations of the Switch become <strong>in</strong>visible. By us<strong>in</strong>g this view, and apply<strong>in</strong>g<br />

normalization the set of states can be reduced to conta<strong>in</strong> only 3 states. We get<br />

the TTTS Spec =(Q, L, −→, q0) ,where

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

Saved successfully!

Ooh no, something went wrong!