检查行为
修改运行时检查的默认行为
要修改运行时检查的默认行为,请使用检查行为选项。例如,默认情况下,溢出检查仅检测有符号整数计算中的溢出。您可以指定检查还必须检测无符号整数计算中的溢出。
Polyspace 选项
主题
修改运行时检查的默认行为
- 指定 Polyspace 分析选项
在 Polyspace® 用户界面、其他 IDE 或脚本中指定 Polyspace 分析选项。 - Modify or Disable Code Prover Run-Time Checks
Disable a subset of run-time checks in Code Prover.
- Detect Overflows in Buffer Size Computation
Detect overflows earlier during buffer size computation instead of later during buffer usage.
设置影响分析
- Prove Absence of Impact Between Objects in C/C++ Program
Set up impact analysis in Polyspace Code Prover™, define sources and sinks. - Source and Sink Specifications for Impact Analysis in Polyspace Code Prover
Look up XML syntax for designating variables and function arguments as sources and sinks. - Event and Memory Zone Specifications for Impact Analysis in Polyspace Code Prover
Look up XML syntax for specifying events and memory zones associated with impact sinks.