Why does model coverage in Simulink Verification and Validation return uncovered conditions for temporal logic events in Stateflow charts?

5 views (last 30 days)
I am using Simulink Verification and Validation 1.1.1 (R14SP3) to analyze model coverage for a Stateflow chart. The chart uses the following temporal logic event:
after(a,tick)
The model coverage report indicates that the TICK event is an uncovered condition, i.e., it never evaluates as 'false'. However, this is an implicit Stateflow event that should not appear as an uncovered condition. To reproduce this issue, simulate the attached model "test.mdl".

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Jun 2011
This enhancement has been incorporated in Release 2011a (R2011a). For previous product releases, read below for any possible workarounds:
This is expected behavior in Simulink Verification and Validation. The temporal logic event syntax in Stateflow introduces unachievable coverage points, such as a TICK event that can never be 0 (i.e., false).
To work around this issue, replace the temporal logic event "after(a,tick)" with the following condition:
[after(a,tick)]
This temporal condition does not depend on an event and generates more efficient code.

More Answers (0)

Categories

Find more on Verification, Validation, and Test in Help Center and File Exchange

Products


Release

No release entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!