This directory contains an example of the external model checking capability
in RTDS.

In order to use it, you must have installed the IF toolkit from Verimag
(http://www-if.imag.fr). On Windows, you must also have a working version of
the cygwin environment installed (http://www.cygwin.com).

Then the following operations should be done:
- Open the RTDS preferences and go to the 'Ext. tools' tab.
- Check the 'External checker support' check box.
- Fill in the fields:
  Format for export: IF
  Path to external checker:
  . On Unix/Linux: $RTDS_HOME/share/3rdparty/IFx/ifChecker.sh
  . On Windows:    %RTDS_HOME%\share\3rdparty\IFx\ifChecker.bat
  Socket port number: 49500
  NB:
  . You may have to replace $RTDS_HOME by its actual value.
  . Any unused socket port number is valid.
- Validate the dialog.
A new menu called 'Tools' should now appear in the project manager, containing
the item 'External model checker'.

To use the example, run RTDS and open one of the server_test projects in
$RTDS_HOME/examples/SDL/IF/projects, sub-directories server_test-ko or
server_test-ok. Once the project is opened, you can run the checker just by
selecting the 'External model checker' item in the 'Tools' menu. A window
should open, showing the trace of the IF compilation and system simulation.
Then another window listing the errors should open. The errors are shown as
numbers (which are the internal representation of the error states in the
Verimag IF toolkit). If the list is empty, no errors have been detected. If
it isn't, selecting one of the numbers and clicking the 'Generate MSC' button
will generate a MSC trace for the scenario leading to the error.

