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 Condition | Recommended 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
See Also
Topics
- Check Your Model Using the Model Advisor
- Address Model Check Results
- Save and View Model Advisor Check Reports
- Improve Simulation Performance Using Performance Advisor
- Upgrade Models Using Upgrade Advisor
- Use Model Advisor Configuration Editor to Customize Model Advisor
- Exclude Blocks from Model Advisor Check Analysis
- Justify Model Advisor Violations from Check Analysis
- Check Model Compliance Using Edit-Time Checking
- Model Configuration Parameters: Comments (Simulink Coder)
- Model Configuration Parameters: Code Generation Identifiers (Simulink Coder)
- Model Configuration Parameters: Code Generation Interface (Simulink Coder)
- Model Configuration Parameters: Code Style (Embedded Coder)