当前位置: X-MOL 学术Softw. Test. Verif. Reliab. › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
Integrating pattern matching and abstract interpretation for verifying cautions of microcontrollers
Software Testing, Verification and Reliability ( IF 1.5 ) Pub Date : 2021-08-19 , DOI: 10.1002/stvr.1788
Thuy Nguyen 1 , Takashi Tomita 1 , Junpei Endo 2 , Toshiaki Aoki 1
Affiliation  

Handling hardware-dependent properties at a low level is usually required in developing microcontroller-based applications. One of these hardware-dependent properties is cautions, which are described in microcontrollers hardware manuals. The process of verifying these cautions is performed manually, as there is currently no single tool that can directly handle this task. This research aims at automating the verification of these cautions. To obtain the typical cautions of microcontrollers, we investigate two sections which have a considerable number of required cautions in the hardware manual of a popular microcontroller. Subsequently, we analyse these cautions and categorize them into several groups. Based on this analysis, we propose a semi-automatic approach for verifying the cautions which integrates two static programme analysis techniques (i.e., pattern matching and abstract interpretation). To evaluate our approach, we conducted experiments with generated source code, benchmark source code, and industrial source code. The generated source code, which was created automatically based on several aspects of the C programme, was used to evaluate the performance of the approach based on these aspects. The benchmark and the industrial source code, which were provided by Aisin Software Co., Ltd., were used to assess the feasibility and applicability of the approach. The results show that all expected violations in the benchmark source code were detected. Unexpected but real violations in the benchmark programme were also detected. For the industrial source code, the approach successfully handled and detected most of the expected violations. These results show that the approach is promising in verifying the cautions.

中文翻译:

集成模式匹配和抽象解释以验证微控制器的注意事项

在开发基于微控制器的应用程序时,通常需要在低级别处理依赖于硬件的属性。这些与硬件相关的属性之一是注意事项,在微控制器硬件手册中对其进行了描述。验证这些注意事项的过程是手动执行的,因为目前没有可以直接处理此任务的单一工具。本研究旨在自动验证这些注意事项。为了获得微控制器的典型注意事项,我们调查了流行微控制器硬件手册中包含大量必需注意事项的两个部分。随后,我们分析这些注意事项并将它们分为几组。基于此分析,我们提出了一种半自动方法来验证警告,该方法集成了两种静态程序分析技术(即。例如,模式匹配和抽象解释)。为了评估我们的方法,我们对生成的源代码、基准源代码和工业源代码进行了实验。生成的源代码是基于 C 程序的几个方面自动创建的,用于评估基于这些方面的方法的性能。使用由爱信软件有限公司提供的基准和工业源代码来评估该方法的可行性和适用性。结果表明,检测到基准源代码中的所有预期违规行为。还检测到基准程序中意外但真实的违规行为。对于工业源代码,该方法成功处理并检测到大部分预期违规。
更新日期:2021-08-19
down
wechat
bug