Lightweight detection of physical unit inconsistencies without program annotations
Lightweight detection of physical unit inconsistencies without program annotations
复制标题
轻量级检测物理单元不一致,无需程序注释
DOI:
10.1145/3092703.3092722
复制
发表时间:
2017
期刊:
影响因子:
--
通讯作者:
Elbaum, Sebastian
中科院分区:
文献类型:
--
作者:
Ore, John-Paul;Detweiler, Carrick;Elbaum, Sebastian
Systems interacting with the physical world operate on quantities measured with physical units. When unit operations in a program are inconsistent with the physical units' rules, those systems may suffer. Existing approaches to support unit consistency in programs can impose an unacceptable burden on developers. In this paper, we present a lightweight static analysis approach focused on physical unit inconsistency detection that requires no end-user program annotation, modification, or migration. It does so by capitalizing on existing shared libraries that handle standardized physical units, common in the cyber-physical domain, to link class attributes of shared libraries to physical units. Then, leveraging rules from dimensional analysis, the approach propagates and infers units in programs that use these shared libraries, and detects inconsistent unit usage. We implement and evaluate the approach in a tool, analyzing 213 open-source systems containing +900,000 LOC, finding inconsistencies in 11% of them, with an 87% true positive rate for a class of inconsistencies detected with high confidence. An initial survey of robot system developers finds that the unit inconsistencies detected by our tool are 'problematic', and we investigate how and when these inconsistencies occur.
登录
查看更多内容
影响因子:
4.6
作者:
M. Aeberhard;Thomas Kuhbeck;Bernhard Seidl
通讯作者:
Bernhard Seidl
影响因子:
--
作者:
Zerksis D. Umrigar
通讯作者:
Zerksis D. Umrigar
DOI:
10.1007/978-3-540-89076-8_12
发表时间:
2008
期刊:
18th IEEE International Conference on Automated Software Engineering, 2003. Proceedings.
影响因子:
--
作者:
N. Ando;T. Suehiro;T. Kotoku
通讯作者:
T. Kotoku
DOI:
10.1109/icse.2004.1317466
发表时间:
2004
期刊:
Proceedings. 26th International Conference on Software Engineering
影响因子:
--
作者:
Tudor Antoniu;P. Steckler;S. Krishnamurthi;E. Neuwirth;M. Felleisen
通讯作者:
M. Felleisen
DOI:
10.1016/0096-0551(77)90010-8
发表时间:
1977
期刊:
Comput. Lang.
影响因子:
--
作者:
N. Gehani
通讯作者:
N. Gehani