Main Content

Check safety-related code generation identifier settings

mathworks.hism.hisl_0049

Dependencies: Simulink® Check™

Usage: High-Integrity System Modeling

Guideline: hisl_0049: Configuration Parameters > Code Generation > Identifiers

Description

This check verifies that a code generation identifier setting is set optimally for a safety-related application.

Recommended Actions and Results

Review the violations that are flagged by the check and the recommended action for fixing the issue. After applying the changes, save the model and rerun the check analysis.

If you consider the flagged violation to either not be relevant or not feasible for your design, use the Justify button to provide rationale as to why the violation is either not relevant or not feasible for your design.

You can use the Fix button to allow the Model Advisor to fix all flagged violations. For this check, the Model Advisor configures model code generation settings that can impact safety.

Modeling ConditionRecommended Action
The minimum number of characters specified for generating name mangling strings is less than four. You can use this option to minimize the likelihood that parameter and signal names will change during code generation when the model changes. Using this option assists with minimizing code differences between file versions, reducing the effort needed to perform code reviews.Set model configuration parameter Minimum mangle length (Embedded Coder) or the parameter MangleLength to a value of 4 or greater.

Capabilities and Limitations

  • Does not require model compilation

  • Does not run on library models

  • Does not allow exclusions of blocks or charts

  • Does not highlight parameter names in Model Advisor report without Embedded Coder®

Version History

Introduced in R2020a