Main Content

Operator annotations


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

Category: Code Generation > Comments


Default: On


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.


  • 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

DebuggingNo impact
EfficiencyNo impact
Safety precaution

No recommendation

Related Topics