About Reference Model

Directory reference_model contains reference models.
Those reference models should be created from the corresponding C model’s regression run environments.

For example, reference model calculator can be created from the regression run environment runCalculator in git_example_c_model.

In the WSL environment, change the directory to c_model/script/run/runCalculator,
then you can
  • create it with

    make create
    

    after which you will get

    ../_images/create0.png

    ../_images/create1.png

Existing Environments

Information on several existing reference models is listed below.

calculator

  • Function

    1. generate test vectors according to the information specified by
      parameter LIST_VECTOR (vector list), parameter CSTR_DIR_VECT (vector directory) and
      configuration file calculator.cfg
  • Pre-Request

    none

  • Content

    item

    description

    postscript

    runCalculator.sh

    run script

    calculator

    executable file

    calculator.cfg

    configuration file

    dump

    directory for generated vectors

    generated by command ./runCalculator.sh

  • Usage

    In the WSL environment, change the directory to reference_model/calculator,
    then you can
    1. complete the above functions with

      ./runCalculator.sh
      

      after which you will get

      ../_images/calculator_usage0.png

      ...

      ../_images/calculator_usage1.png

      ../_images/calculator_usage2.png

      More information about the executable file calculator can be found at https://example-c-model.readthedocs.io/en/latest/