Main Content

Operator annotations

Include operator annotations for Polyspace in generated comments

Model Configuration Pane: Code Generation / Comments


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


  • This parameter only appears for ERT-based targets.

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

  • Include comments enables this parameter.


on (default) | off

Includes operator annotations in the generated code.


Does not include operator annotations in the generated code.


  • 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.

Recommended Settings

DebuggingNo impact
EfficiencyNo impact
Safety precaution

No recommendation

Programmatic Use

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

Version History

Introduced in R2012b