Inputs (-variables-written-in-loop)
Specify variables that the generated main must
initialize in the cyclic code loop
Description
This option is automatically set if you run Polyspace® from Simulink® or MATLAB® on generated code. If you run Polyspace on generated code outside Simulink or MATLAB, set this option manually.
Specify variables that the generated main must initialize at the beginning
of every iteration of the cyclic code loop. At the beginning of every loop iteration,
Polyspace considers these variables to have any value
allowed by their type.
Set Option
Set the option using one of these methods:
Polyspace user interface (desktop products only): In your project configuration, select the Code Prover Verification node and then select a value for this option. You see this option only if you open a project configuration from Simulink.
Command line and options file: Use the option
-variables-written-in-loop. See Command-Line Information.
Settings
Default: none
noneThe generated
maindoes not initialize variables.allThe generated
maininitializes all variables except those declared with keywordconst.customThe generated
mainonly initializes variables that you specify. Click
to add a field. Enter
variable name. For C++ class members, use the syntax className::variableName.
Command-Line Information
Parameter: -variables-written-in-loop |
Value: none | all | custom= |
Default: none |
Example (Bug Finder):
polyspace-bug-finder -sources |
Example (Code Prover): polyspace-code-prover
-sources |
Example (Bug Finder Server):
polyspace-bug-finder-server -sources |
Example (Code Prover
Server):
polyspace-code-prover-server -sources
|