Home /Research /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

Year
2017
Citations
17
Access
Open access

Abstract

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.

Keywords

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

Related papers

Browse all OTHER papers