Previous Topic

Next Topic

Book Contents

Book Index

Validate the extended Server model

In this exercise we use the Telelogic Validator to perform automatic validation of our modified Server model.

  1. Run KLOCwork MSC to SDL Synthesizer to synthesize the SDL model from the updated HMSC model.
  2. Embedded JPEG 50%

  3. Select the synthesized SDL system symbol.
  4. Select the correct validation kernel. From the Organizer Generate menu, choose Make. The SDL Make window opens.
  5. Select the Use Standard Kernel option in the Compile & Link options panel and select the appropriate validation kernel from the pull-down list. (The kernel should match the C/C++ compiler installed at your machine.) Then, click the Set button.
  6. Embedded JPEG 50%

    Prepare the Telelogic Validator and start the Validator UI by selecting the synthesized SDL system symbol and clicking the Validate quick button in the Tau Organizer.

    Embedded JPEG 50%

    The Validator UI starts.

    Embedded JPEG 50%

  7. Click the Exhaustive button to start the exhaustive state space exploration of the InfoServer model.
  8. The Telelogic Validator tool analyzes the InfoServer model and produces validation reports. The reports are grouped into several categories. They include:

  9. To investigate the first report, expand the deadlock report and double click on the report symbol (saying Deadlock, Depth: 5). The Report Viewer tool starts the MSC Editor to show the trace of events, illustrating the abnormal behavior reported by the Validator.
  10. Embedded JPEG 50%

  11. Let's investigate the problems reported by the Validator. The first problem is a deadlock that happens when the User sends Init signal to the Server and then decides to enter the state A_LOOP_0, where it waits for a Failure signal (Failure scenario) from Server, while the Server at the same time enters the state A_LOOP_0, where it waits for Request or Done signals from the User instance. None of them are scheduled for transition.
  12. The second problem is a failed output that happens when the User sends Init signal to the Server and then tries to perform the Done request (Request_Done scenario), while the Server at the same time decides to fail and sends the Failure message to the User. From observing the input scenarios is obvious that the User is not prepared to handle the failure of the Server when it has already committed to the Request_Done scenario.

    Embedded JPEG 50%

    Embedded JPEG 50%

    Embedded JPEG 50%

    Embedded JPEG 50%

    Embedded JPEG 50%

Summary

In this exercise, we used the Telelogic Tau Validator to perform automatic validation of our modified Server model.

In the next exercise, we will fix the problem in the extended InfoServer model and perform another round of automatic validation.

See Also

Model: Information Server

Create MSC and HMSC diagrams in Telelogic Tau

Analyze MSCs

Simulate MSCs

Synthesize the SDL model

Inspect the synthesized SDL model

Simulate the synthesized SDL model

Extend the Server model

Fix the problem and revalidate the MSC model

Add simulation controls from the environment

Run real-time simulation

Simulate system slice