A trustworthy framework for resource-aware embedded programming
MetadataShow full item record
Systems with non-functional requirements, such as Energy, Time and Security (ETS), are of increasing importance due to the proliferation of embedded devices with limited resources such as drones, wireless sensors, and tablet computers. Currently, however, there are little to no programmer supported methodologies or frameworks to allow them to reason about ETS properties in their source code. Drive is one such existing framework supporting the developer by lifting non-functional properties to the source-level through the Contract Specification Language (CSL), allowing non-functional properties to be first-class citizens, and supporting programmer-written code-level contracts to guarantee the non-functional specifications of the program are met. In this paper, we extend the Drive system by providing rigorous implementations of the underlying proof-engine, modeling the specification of the annotations and assertions from CSL for a representative subset of C, called Imp. We define both an improved abstract interpretation that automatically derives proofs of assertions, and define inference algorithms for the derivation of both abstract interpretations and the context over which the interpretation is indexed. We use the dependently-typed programming language, Idris, to give a formal definition, and implementation, of our abstract interpretation. Finally, we show our well-formed abstract interpretation over some representative exemplars demonstrating provable assertions of ETS.
Barwell , A D & Brown , C M 2020 , A trustworthy framework for resource-aware embedded programming . in J Stutterheim & W N Chin (eds) , Proceedings of International Symposium on Implementation and Application of Functional Languages (IFL'19) . ACM , The 31st symposium on Implementation and Application of Functional Languages (IFL 2019) , Singapore , Singapore , 25/09/19 . https://doi.org/10.1145/1122445.1122456conference
Proceedings of International Symposium on Implementation and Application of Functional Languages (IFL'19)
DescriptionFunding: EU Horizon 2020 project, TeamPlay (https://www.teamplay-h2020.eu), grant number 779882; UK EPSRC Discovery, grant number EP/P020631/1.
Items in the St Andrews Research Repository are protected by copyright, with all rights reserved, unless otherwise indicated.