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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6 Test Generation Algorithms Based on Preorder Relations 157<br />

valid cont<strong>in</strong>uation of the output sequences lead<strong>in</strong>g to that state while the latter<br />

means that a is an <strong>in</strong>valid cont<strong>in</strong>uation. Moreover, transitions labeled with a null<br />

output go <strong>in</strong>to a s<strong>in</strong>k state, s Θ, that produces a null output for every <strong>in</strong>put. The<br />

FSM correspond<strong>in</strong>g to an LTS is called a Trace F<strong>in</strong>ite State Mach<strong>in</strong>e (TFSM).<br />

Def<strong>in</strong>ition 6.3.1 (TFSM: Trace F<strong>in</strong>ite State Mach<strong>in</strong>e) For an LTS M =<br />

(Q, L, →, q 0), letΠ = {q0 after σ | σ ∈ Traces(q0)}, its correspond<strong>in</strong>g TFSM is<br />

an FSM TraceFSM (M )=(S, L, L ∪{Θ}, h, s0) such that:<br />

• S is a f<strong>in</strong>ite set of states, conta<strong>in</strong><strong>in</strong>g the s<strong>in</strong>k state s Θ.<br />

• There exists a one-to-one mapp<strong>in</strong>g ψ : Π → S \{s Θ} and for all Qi ∈ Π<br />

and all a ∈ L:<br />

(ψ(Qj ), a) ∈ h(ψ(Qi ), a) iff Qi<br />

a<br />

⇒ Qj<br />

(α)<br />

(s Θ,Θ) ∈ h(ψ(Qi ), a) iff a ∈ L \ Out(Qi) (β)<br />

{(s Θ,Θ)} = h(s Θ, a) (γ)<br />

More <strong>in</strong>tuitively, an element of Π is a set of states reachable after a trace of<br />

M ,(α) means that there is a transition ψ(Qi) a/a<br />

−→ ψ(Qj )<strong>in</strong>TraceFSM (M )iff<br />

a<br />

−→ sΘ <strong>in</strong> TraceFSM (M )iffQi =⇒/ <strong>in</strong><br />

M . F<strong>in</strong>ally, (γ) states that sΘ is a s<strong>in</strong>k state. This def<strong>in</strong>ition can be seen as an<br />

algorithm for the construction of a correspond<strong>in</strong>g TFSM of an LTS. An example<br />

of TFSM is given <strong>in</strong> Fig. 6.3.<br />

a<br />

Qi ⇒ Qj <strong>in</strong> M .(β) meansthatψ(Qi) a/Θ<br />

a<br />

q2<br />

q4<br />

a<br />

q0<br />

q1<br />

τ b<br />

q3<br />

s2<br />

a/a<br />

s0<br />

s1<br />

a/a b/b<br />

b/Θ<br />

sΘ<br />

s3<br />

a, b/Θ a, b/Θ<br />

a, b/Θ<br />

Fig. 6.3. An LTS and its correspond<strong>in</strong>g TFSM [TPvB96]<br />

It was shown that the trace equivalence for LTSs corresponds to the FSM<br />

equivalence for the correspond<strong>in</strong>g TFSMs [TPvB96].<br />

Theorem 6.3.1 ([TPvB96]) For any given two LTSs I, S, andtheircorrespond<strong>in</strong>g<br />

TFSMs I ′ , S ′ : I =tr S iff I ′ ∼ S ′

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

Saved successfully!

Ooh no, something went wrong!