主要内容

仅可在命令行使用的选项

仅可在命令行中使用的选项的说明

命令行上的选项直接对应于用户界面中 窗格上的选项。以下选项是此规则的例外情况。基本选项对应于用户界面中其他位置的菜单项和字段。高级选项不会出现在用户界面中。在 窗格中,您必须在 其他 字段中指定这些选项的命令行形式。

Polyspace 选项

全部展开

-author指定工程作者
-cSpecify path of license file used by the product
-date指定分析日期
-doc | -documentation在 Web 浏览器中显示 Polyspace 文档
-h | -helpDisplay list of possible options
-I指定用于编译的包含文件夹
-import-comments从以前的分析导入审查信息
-list-all-valuesDisplay valid option arguments for a given command-line option
-options-file使用选项列表运行 Polyspace
-prog指定工程的名称
-report-output-nameSpecify name of report
-results-dirSpecify the results folder
-scheduler指定集群或作业调度器
-sources指定源文件
-sources-list-file指定包含源文件列表的文件
-ver显示 Polyspace 产品的系统信息
-verif-version分配版本标识符
-v | -versionDisplay Polyspace version number
-asm-begin -asm-endExclude compiler-specific asm functions from analysis
-code-behavior-specificationsAssociate behaviors with code elements such as functions
-consider-external-array-access-unsafeRemove the default assumption that external arrays of unspecified size can be safely accessed at any index
-custom-targetCreate a custom target processor with specific data type sizes
-classificationControl precisely which files to include in Polyspace analysis and how to analyze them (自 R2025a 起)
-dump-preprocessing-infoShow all macros implicitly defined during a particular analysis
-ignore-code-annotationsIgnore C/C++ code annotations justifying Polyspace results and show all results as unreviewed (自 R2022a 起)
-improve-pointer-analysis-precisionEnable more precise pointer analysis mode in Code Prover (自 R2022a 起)
-main-generator-bounded-loopGenerate a main that calls functions in a loop with a specific number of iterations (自 R2022a 起)
-max-processesSpecify maximum number of processors for analysis
-no-assumption-on-absolute-addressesRemove assumption that absolute address usage is valid
-no-credentials-checkDisable credential check when running Polyspace Bug Finder or Polyspace Code Prover analysis on a remote cluster
-non-preemptable-tasksSpecify functions that represent nonpreemptable tasks
-options-for-sourcesSpecify analysis options specific to a source file
-preemptable-interrupts指定表示可抢占中断的函数
-pstunit-testOption to specify a test the input of which is used for static analysis
-regex-replace-rgx -regex-replace-fmtMake replacements in preprocessor directives
-show-similar-overflows以绕回模式显示所有溢出
-submit-job-from-previous-compilation-resultsSpecify that the analysis job must be resubmitted without recompilation
-tmp-dir-in-results-dir将临时文件保留在结果文件夹中
-wchar-t-isSpecify the nature of type specifier wchar_t for your compiler
-xml-annotations-descriptionApply custom code annotations to Polyspace analysis results