|
|
||||||
|
|
Reachability Tests/ConversionNot all states in a generator G contribute to the languages it represents. The various notions related to reachability can be used to identify relevant states, depending on which particular languages L(G), Lm(G), B(G) or Bm(G) are of interest. Throughout this page, the below generator serves as an example. It does not satisfy any of the reachability properties discussed. IsAccessibleTests a generator for accessibility. Detailed description:
A generator is accessible, if every state can be accessed from some initial state via a sequence of transitions, i.e.:
The example generator fails to be accessible since the states s20 and s21 can not be reached from the initial state. AccessibleDelete non-accessible states and transitions. Detailed description:Convert a given generator G to an accessible generator by removing states that are not accessible. Non of the languages L(G), Lm(G), B(G) and Bm(G) are affected.
When applied on the above example, Accessible returns
the result:
IsCoaccessibleTests a generator for coaccessibility. Detailed description:
A generator is co-accessible, if every state is connected with some marked state via a sequence of transitions, i.e.
The example generator fails to be co-accessible since no marked state can be reached from either s6, s7, s8, s10 and s11. CoaccessibleDelete non-coaccessible states and transitions. Signature:Coaccessible(+InOut+ Generator G) Detailed description:Convert a given generator G to a co-accessible generator by removing states that are not co-accessible. The languages Lm(G) and Bm(G) are not affected.
When applied on the above example, Coaccessible returns
the result:
IsCompleteTest completeness of a generator. Signature:IsComplete(+In+ Generator G, +Out+ Boolean BRes) IsComplete(+In+ Generator G, +In+ EventSet SigmaO, +Out+ Boolean BRes) Detailed description:
A generator G is complete if it has no terminal states,
i.e., if all states have at least one transition to a successor state:
Completeness of G implies completeness of the
generated language L(G), i.e.
The example generator fails to be complete since the states s8, s10 and s11 have no successor.
For a generalisation of the completeness property,
consider an alphabet Sigma_o ⊆ Sigma.
Then, a generator G is said to be Sigma_o-complete
if, starting from any state, there exists a sequence of transitions
ending with an event from Sigma_o, i.e.
CompleteDelete states that evolve into a terminal state. Signature:Complete(+InOut+ Generator G) Complete(+In+ Generator G, +Out+ Generator GRes) Complete(+InOut+ Generator G, +In+ EventSet SigmaO) Complete(+In+ Generator G, +In+ EventSet SigmaO, +Out+ Generator GRes) Detailed description:
Convert a given generator G to a complete generator by iteratively
removing terminal states until a fixpoint is reached.
into a state that has no successor state; see also IsComplete.
The languages B(G) and Bm(G) are not affected.
The language generated by the result GRes is the supremal complete
sublanguage K↑ of L(G):
When applied on the above example, Complete returns
the result:
When invoking Complete with an alphabet Sigma_o ⊆ Sigma
specified, it refers to the more general notion of Sigma_o-completeness; see also IsComplete.
Here, the implementation first identifies target states which have an event from Sigma_o enabled,
and then performs a backward reachability analysis to obtain good states that can reach the target. An outer iteration
restricts the target states by requiring a transition to good states until a fixpoint is reached. Finally, the generator is
restricted to the set of good states.
The language generated by the result GRes is the supremal Sigma_o-complete
sublanguage K↑ of L(G):
When applied to the example with Sigma_o = {b},
Complete returns the result as above.
When applied with Sigma_o = {c}, one obtains:
IsTrimTests a generator for trimness. Detailed description:A generator G is trim if it is both accessible and co-accessible, i.e. if all states contribute to the marked language Lm(G). This function returns "true" if G is trim. Else it returns "false". The example generator fails to be trim since it is neither accessible nor co-accessible. TrimDelete non-coaccessible and non-accessible states and transitions. Detailed description:Convert a given generator G to a trim generator by removing states that are not accessible or not co-accessible. The languages Lm(G) and Bm(G) are not affected.
When applied on the above example, Trim returns
the result:
IsOmegaTrimTests a generator for omega trimness. Detailed description:A generator G is omega-trim if it is accessible, co-accessible, and complete; i.e. if all states contribute to the omega language Bm(G). This function returns "true" if G is omega-trim. Else it returns "false". The example generator fails to be trim since it is neither accessible nor co-accessible nor complete. Clearly, any state that is not accessible or not co-accessibe does contribute to Bm(G), neither does a state that is guaranteed to evolve into a state with no successor. Note, however, the states s3 and s4 do not fall into any of the latter cathegories but still don't conribute to Bm(G). This is because s3 and s4 can evolve into a marked state and they can be extended infinitely, but they can not be extended infinitely while passing marked states infinitely often. OmegaTrimDelete states to achieve omega-trimness. Detailed description:Convert a given generator G to an omega-trim generator by repeatedly removing states that are not accessible, not co-accessible, or have no successor state. The language Bm(G) is not affected.
When applied on the above example, OmegaTrim returns
the result:
libFAUDES 2.32f --- 2024.12.22 --- with "synthesis-observer-observability-diagnosis-hiosys-iosystem-multitasking-coordinationcontrol-timed-simulator-iodevice-luabindings-hybrid-example-pybindings" |