初始化函数 (-functions-called-before-loop)
指定生成的 main 在有环代码循环之前必须调用的函数
描述
如果从 Simulink® 或 MATLAB® 对生成的代码运行 Polyspace®,则会自动设置此选项。如果在 Simulink 或 MATLAB 之外对生成的代码运行 Polyspace,则请手动设置此选项。
指定生成的 main 在有环代码开始之前必须调用的函数。
设置
无默认值:如果您从 Simulink 外部运行分析。如果您从 Simulink 运行,则此选项默认使用生成的代码中的初始化函数。另请参阅How Polyspace Analysis of Generated Code Works。
点击
来添加一个字段。输入函数名称。
如果您使用作用域解析运算符指定特定命名空间中的函数,请输入完全限定名称,例如 myClass::init(int)。如果该函数没有参数,请使用空括号,例如 myClass::init()。
提示
如果您为
终止函数 (-functions-called-after-loop)选项指定了一个函数,则不能为此选项指定该函数。
命令行信息
参数:-functions-called-before-loop |
| 无默认值 |
值: |
示例 (Bug Finder):polyspace-bug-finder -sources |
示例 (Code Prover):polyspace-code-prover -sources |
示例 (Bug Finder Server):polyspace-bug-finder-server -sources |
示例 (Code Prover Server):polyspace-code-prover-server -sources |