首页 /研究 /Phriky-units: a lightweight, annotation-free physical unit inconsistency detection tool
OTHER

Phriky-units: a lightweight, annotation-free physical unit inconsistency detection tool

John‐Paul Ore, Carrick Detweiler, Sebastian Elbaum

发表年份
2017
引用次数
17
访问权限
开放获取

摘要

Systems that interact with the physical world use software that represents and manipulates physical quantities. To operate correctly, these systems must obey the rules of how quantities with physical units can be combined, compared, and manipulated. Incorrectly manipulating physical quantities can cause faults that go undetected by the type system, likely manifesting later as incorrect behavior. Existing approaches for inconsistency detection require code annotation, physical unit libraries, or specialized programming languages. We introduce Phriky-Units, a static analysis tool that detects physical unit inconsistencies in robotic software without developer annotations. 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. In this work, we describe how Phriky-Units works, provide details of the implementation, and explain how Phriky-Units can be used. Finally we present a summary of an empirical evaluation showing it has an 87% true positive rate for a class of inconsistencies we detect with high-confidence.

关键词

Computer scienceCyber-physical systemUnit testingSoftwareClass (philosophy)Physical systemAnnotationDomain (mathematical analysis)Code (set theory)Programming language

相关论文

查看 OTHER 分类全部论文