Specifica del comportamento del codice
R2026bPer ridurre i risultati falsi positivi e falsi negativi, fornire ulteriori informazioni sul codice. Ad esempio:
Specificare i vincoli relativi a elementi quali gli intervalli delle variabili e le dimensioni consentite dei buffer per i puntatori utilizzando l'opzione
Impostazione dei vincoli (-data-range-specifications).Mappare le funzioni del codice a funzioni note della libreria standard utilizzando
-code-behavior-specifications.Specificare gli identificatori o le macro vietati nel codice utilizzando
-code-behavior-specifications.Specificare i limiti del codice Assembly utilizzando l'opzione
-asm-begin -asm-end.Specificare il codice che deve essere analizzato in modo diverso utilizzando l'opzione
-code-behavior-specifications. Ad esempio, è possibile specificare il codice che contiene funzioni in tempo reale, funzioni di gestione della memoria, funzioni di gestione delle eccezioni o elementi di dati critici.Quando si analizza il codice generato da modelli di Simulink®, specificare i parametri, gli input e le funzioni di passo per modellare accuratamente il flusso dei dati.
Utilizzare le opzioni di analisi elencate in questa sezione per descrivere il codice Polyspace Bug Finder in modo più dettagliato, che può garantire una maggiore precisione e un'analisi più rapida.
Opzioni Polyspace
Argomenti
Specifica di ulteriori informazioni
- Modify Bug Finder Checkers Through Code Behavior Specifications
Change Polyspace interpretation of code elements such as functions by assigning code behaviors in XML or Datalog format. - Flag Deprecated or Unsafe Functions, Keywords, or Macros Using Bug Finder Checkers
Create a blocklist of functions, keywords and macros, and check for use of items from the list. - Extend Bug Finder Checkers for Standard Library Functions to Custom Libraries
Map custom library functions to equivalent Standard Library functions so that domain errors and other issues can be detected. - Extend Concurrency Defect Checkers to Unsupported Multithreading Environments
Find data races and other concurrency issues in multithreading environments that are not supported by default. - Extend Data Race Checkers to Atomic Operations
Find data races in operations that are assumed to be atomic by Bug Finder.
Specifica dei vincoli esterni
- Specify External Constraints for Polyspace Analysis
Constrain variable ranges and pointer specifications for more precise analysis. - External Constraints for Polyspace Analysis
Look up constraints that you can apply on global variables, function inputs and stubbed functions. - XML File Format for Polyspace Analysis Constraints
Look up specifications of the XML file for constraint specification, if you are editing the XML directly.