• Keine Ergebnisse gefunden

Theorie reaktiver Systeme Refusals Failures Failures Semantik Test ¨Aquivalenz

N/A
N/A
Protected

Academic year: 2021

Aktie "Theorie reaktiver Systeme Refusals Failures Failures Semantik Test ¨Aquivalenz"

Copied!
10
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Theorie reaktiver Systeme

Refusals Failures

Failures Semantik Test ¨Aquivalenz

Korrigierte Fassung 23.02.2007

22.01.2007 Theorie reaktiver Systeme U. Hannemann

(2)

Refusals

Prozess P ist stabil:

stable(P) ⇔ ∀ e, P0 : Pe P0e 6= τ

X ⊆ Σ ist refusal von P:

P0.Ph i P0stable(P0) ∧ (∀ aX.a 6∈ first(P0))

(s, X) ist failure von P:

straces(P), stable(P/s), X ist Refusal von P/s [[P]]F = {(s, X) | (s, X) failure von P}

(3)

Eigenschaften der Failures-Semantik

• (s, X) ∈ [[P]]Fstraces(P)

• (s, X) ∈ [[P]]FX0X ⇒ (s, X0) ∈ [[P]]F.

• (s, X) ∈ [[P]]F ∧ ∀ aX0.sˆhai 6∈ traces(P) ⇒ (s, XX0) ∈ [[P]]F

sˆhXi ∈ traces(P) ⇒ (sˆhXi, X) ∈ [[P]]F

22.01.2007 Theorie reaktiver Systeme U. Hannemann

(4)

• (sˆs0, X) ∈ [[P]]F ⇒ (s, ∅) ∈ [[P]]F

• (s, X) ∈ [[P]]Fa ∈ Σ ⇒ (sˆhai, ∅) ∈ [[P]]F ∨ (s, X ∪ {a}) ∈ [[P]]F

(5)

CSP Prozesse

• [[STOP]]F = {(h i, X) | X ⊆ Σ ∪ {X}}

• [[SKIP]]F = {(h i, X) | X 6∈ X} ∪ {(hXi, X) | X ⊆ Σ ∪ {X}

• [[aP]]F = {(h i, X) | a 6∈ X} ∪ {(has, X) | (s, X) ∈ [[P]]F}

• [[P1 2 P2]]F = {(h i, X) | (h i, X) ∈ [[P1]]F ∩ [[P2]]F}

∪{(s, X) | s 6= h i ∧ (s, X) ∈ [[P1]]F ∪ [[P2]]F}

22.01.2007 Theorie reaktiver Systeme U. Hannemann

(6)

• [[P1 u P2]]F = [[P1]]F ∪ [[P2]]F

• . . .

[Schneider 2000], Kapitel 6.

(7)

Aquivalenz und Refinement¨

PF Q ⇔ [[P]]F = [[Q]]F

P vF Qtraces(Q) ⊆ traces(P)

failures(Q) ⊆ failures(P)

22.01.2007 Theorie reaktiver Systeme U. Hannemann

(8)

Zusammenhang mit Tests

P/s = Q

iI(2 a : Bi.aQi(a))

Ref (P/s) = {M ⊆ Σ | ∃i.BiM = ∅}

(s, A) ∈ [[P]]F ⇒ ¬(P must Uc(s, A))

(9)

Testing ¨Aquivalenz

PTE Q

P must US(s, a) ⇒ Q must US(s, a) P may UR(s) ⇒ Q may UR(s)

P must UC(s, A) ⇔ Q must UC(s, A)

P must US(s, a) ⇔ Q must US(s, a) P must UC(s, A) ⇔ Q must UC(s, A)

22.01.2007 Theorie reaktiver Systeme U. Hannemann

(10)

Zusammenhang mit Tests

[[P]]F = [[Q]]FPTE Q

Referenzen

ÄHNLICHE DOKUMENTE

Eingabe – Verarbeitung – Ausgabe – Terminierung Reaktive Systeme:. • st¨ andige Interaktion mit

Theorie reaktiver

Zerlege S iterativ in disjunkte Teilmengen, bis eine Partitionierung entsteht, die nicht weiter zerlegt

Ziel: Alle Testf¨ alle k¨ onnen alleine auf Grundlage der Spezifika- tion P konstruiert werden, um die ¨ Aquivalenz (hier: ∼ TE ) zwischen P und Implementierung Q

Requirement Coverage Tests Robustness Tests. Test

Theorie reaktiver Systeme. Zeitbehaftete

Timed CSP Berechnungen Timed Traces.

Diese Formelsammlung basiert auf der Vorlesung“Formale Grundlagen der Informatik - 3”von Prof.. Christoph Walther an der Technischen Universit¨at Darmstadt im