主要内容

对 AUTOSAR 代码进行 Code Prover 分析

验证 AUTOSAR 软件组件的代码实现。

如果您使用 AUTOSAR 方法进行软件开发,则可以重用 AUTOSAR 规范(ARXML 文件)来设置您的 Polyspace® 分析并验证 AUTOSAR 软件组件的代码实现。或者,您也可以运行可感知 AUTOSAR 的集成分析。

验证会检查特定于 AUTOSAR 的问题和其他运行时错误,如溢出和除以零。

Polyspace 选项

使用的库 (-library)Specify libraries that you use in your program (自 R2021a 起)

函数

polyspaceAutosarRun Polyspace Code Prover on code implementation of AUTOSAR software components using MATLAB scripts

系统命令

polyspace-autosar(System Command) Run Polyspace Code Prover on code implementation of AUTOSAR software components

Polyspace 结果

未实现的 AUTOSAR 可运行实体Function implementing AUTOSAR runnable is not found
无效的 AUTOSAR 可运行实体实现结果Return value or output arguments violate AUTOSAR specifications
无效的 AUTOSAR 运行时环境函数使用RTE function argument violates AUTOSAR specifications
不符合 AUTOSAR 规范RTE API function is used with arguments that violate the AUTOSAR standard specification (自 R2021a 起)

主题