Main Content

Operator annotations

Description

Specify whether to include operator annotations for Polyspace® in the generated code as comments.

Category: Code Generation > Comments

Settings

Default: On

On

Includes operator annotations in the generated code.

Off

Does not include operator annotations in the generated code.

Tips

  • These annotations help document overflow behavior that is due to the way the code generator implements an operation. These operators cannot be traced to an overflow in the design.

  • Justify operators that the Polyspace software cannot prove. When this option is enabled, if the code generator uses one of these operators, it adds annotations to the generated code to justify the operators for Polyspace.

  • The code generator cannot justify operators that result from the design.

Dependency

  • This parameter only appears for ERT-based targets.

  • This parameter requires an Embedded Coder® license when generating code.

  • Include comments enables this parameter.

Command-Line Information

Parameter: OperatorAnnotations
Type: character vector
Value: 'on' | 'off'
Default: 'on'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityOn
EfficiencyNo impact
Safety precaution

No recommendation

Related Topics