Main Content

Command-Line Only Options

Command-line only options, advanced options

These analysis options are used at the DOS or UNIX® command-line with the function polyspace-bug-finder. If you want to use some the advanced settings with a project in the user interface, use the Other configuration option.

Polyspace Options

expand all

-authorSpecify project author
-cSpecify path of license file used by the product
-consider-switch-as-single-decisionCompute cyclomatic complexity assuming a switch-case statement to be a single decision point
-checkers-activation-fileActivate a custom combination of defects and coding rules for a Polyspace Bug Finder analysis (Since R2021a)
-dateSpecify date of analysis
-doc | -documentationDisplay Polyspace documentation in web browser
-h | -helpDisplay list of possible options
-ISpecify include folder for compilation
-import-commentsImport review information from previous analysis
-list-all-valuesDisplay valid option arguments for a given command-line option (Since R2020a)
-options-fileRun Polyspace using list of options
-progSpecify name of project
-report-output-nameSpecify name of report
-results-dirSpecify the results folder
-schedulerSpecify cluster or job scheduler
-sourcesSpecify source files
-sources-list-fileSpecify file containing list of sources
-start-level-from-oneStart counting the call level or nesting level from one.
-verDisplay system information for Polyspace products
-verif-versionAssign a version identifier
-v | -versionDisplay Polyspace version number
-asm-begin -asm-endExclude compiler-specific asm functions from analysis
-classificationControl precisely which files to include in Polyspace Bug Finder analysis and how to analyze them (Since R2023a)
-code-behavior-specificationsAssociate behaviors with code elements such as functions
-consider-analysis-perimeter-as-trust-boundaryConsider the analysis perimeter as trust boundary so that data coming from outside the current analysis perimeter is considered tainted (Since R2020b)
-create-checkersCreate new checkers for Polyspace Bug Finder analysis (Since R2023b)
-custom-targetCreate a custom target processor with specific data type sizes
-disable-concurrency-detectionDisable automatic detection of multitasking functions
-detect-atomic-data-raceEnable detecting data race with atomic operation
-detect-bad-float-op-on-zeroDetect floating point comparison with equality operator when one of the operand is 0.0
-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 (Since R2022a)
-incrementalEnable incremental compilation during an analysis (Since R2022a)
-max-processesSpecify maximum number of processors for analysis
-non-preemptable-tasksSpecify functions that represent nonpreemptable tasks
-no-credentials-checkDisable credential check when running Polyspace Bug Finder or Polyspace Code Prover analysis on a remote cluster
-options-for-sourcesSpecify analysis options specific to a source file
-preemptable-interruptsSpecify functions that represent preemptable interrupts
-regex-replace-rgx -regex-replace-fmtMake replacements in preprocessor directives
-submit-job-from-previous-compilation-resultsSpecify that the analysis job must be resubmitted without recompilation
-termination-functionsSpecify process termination functions
-tmp-dir-in-results-dirKeep temporary files in results folder
-wchar-t-isSpecify the nature of type specifier wchar_t for your compiler
-xml-annotations-descriptionApply custom code annotations to Polyspace analysis results