【AUTOSAR】AUTOSAR开发工具链(五)----polyspace-bug-finder 简单操作说明

该文指导如何使用PolyspaceBugFinder工具新建工程,添加源文件,配置检测级别,导入规则,生成测试报告,并重点处理高和中等级别的错误。用户可查看错误详情及变量信息。
ACE-Step

ACE-Step

音乐合成
ACE-Step

ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言

1、打开polyspace-bug-finder,新建工程文件:File      New Project,命名,选择保存路径,然后点击Next。

 

2、找到需要检测的文件,然后点击“Add Source Files”     Finish

 

3、在Configuration左边窗口点击“Bug Finder Analysis”选项,然后将“default”改为“all”,其他选项采用默认值。

 

4、导入代码检测规则:在“Configuration”窗口中,打开“Environment Settings”设置项,导入.h文件,如图:

 

5、自动生成测试报告:在“Configuration”窗口中,打开“Reporting”设置项,勾选“Generate report”,选择报告格式等,如图:

 

6、点击运行,等待结果,整理测试报告,详见测试报告示例。

 

7、一般着重“High”和“Medium”类型的错误,点击具体的某项错误,可以看到此代码对应的位置,及错误原因描述。另外,鼠标放在代码中对应的变量上,即可看到其数据类型、范围。

 

 

您可能感兴趣的与本文相关的镜像

ACE-Step

ACE-Step

音乐合成
ACE-Step

ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言

error #error directive: "Unknown compiler specified! Pragmas for mapping into specific sections not yet implemented for your compiler." Brs_MemMap.h 54 ;information Option -float-rounding-mode has no effect in Polyspace Bug Finder ; information Option -O3 has no effect in Polyspace Bug Finder ;information Option -main-generator-calls has no effect in Polyspace Bug Finder ;information Option -main-generator-writes-variables has no effect in Polyspace Bug ;information Option -check-subnormal has no effect in Polyspace Bug Finder ;information Option -detect-pointer-escape has no effect in Polyspace Bug Finder ;information Option -permissive-function-pointer has no effect in Polyspace Bug ;information Option -allow-ptr-arith-on-struct has no effect in Polyspace Bug Finder ;information Option -size-in-bytes has no effect in Polyspace Bug Finder ;information Option -uncalled-function-checks has no effect in Polyspace Bug Finder ;warning Checkers not available with '-allow-non-finite-floats' option: FLOAT_ZERO_DIV, FLOAT_CONV_OVFL, FLOAT_OVFL, FLOAT_STD_LIB ;information By default, some results are not generated for headers. ;warning MISRA C:2012 checker: the rule 17.3 has been disabled because it applies to the C90 standard and the selected standard is C99. ;warning MISRA C:2012 checker: the rule 8.1 has been disabled because it applies to the C90 standard and the selected standard is C99. ;information 16 core(s) detected. The verification creates 16 process(es). ;information The generated default DRS XML file "drs-template.xml" can be found in <result_dir> folder. ;
最新发布
11-09
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大道生

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值