主要内容

通过 WindowsLinux 脚本进行 Code Prover 分析

使用批处理文件 (.bat) 或 shell 脚本 (.sh) 检查 C/C++ 代码中是否存在运行时错误

使用 Windows® 或 Linux® 脚本配置并运行 Polyspace® 分析。了解可用的系统命令,并学习如何从命令行使用这些命令来运行 Polyspace。

为免于键入命令的完整路径,请将路径 polyspaceroot\polyspace\bin 添加到您操作系统上的 Path 环境变量中。其中,polyspaceroot 是 Polyspace 的安装文件夹,例如 C:\Program Files\Polyspace\R2025b。另请参阅安装 Polyspace 桌面端产品

系统命令

polyspace-code-prover(DOS/UNIX) 从 WindowsLinux 或其他命令行运行 Code Prover 验证
polyspace-comments-import(System Command) Import review information from previous Polyspace analysis
polyspace-configure(System Command) Create Polyspace project from your build system at the DOS or UNIX command line
polyspace-report-generator(System Command) Generate reports from Polyspace analysis results stored locally or on Polyspace Access
polyspace-results-export(System Command) Export Polyspace results to external formats such as CSV or JSON

主题