arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1803.04451cs.PLcs.LO
收藏

基于区间的Horn子句资源使用验证及其在能耗中的应用

Interval-based Resource Usage Verification by Translation into Horn Clauses and an Application to Energy Consumption

Pedro Lopez-Garcia, Luthfi Darmawan, Maximiliano Klemen, Umer Liqat, Francisco Bueno, Manuel V. Hermenegildo

摘要:

许多应用程序需要符合规范,约束资源的使用,如执行时间,能源,带宽等,我们已经提出了一个可配置的框架,静态资源使用验证规范可以包括下限和上限,数据大小相关的资源使用功能。为了静态地检查这些规范,我们的框架推断出相同类型的资源使用函数,这些函数安全地近似于程序的实际资源使用,并将它们与规范进行比较。我们回顾这个框架如何支持几种语言和编译输出格式,通过将它们翻译成基于Horn子句的中间表示,并使用该框架的可配置性来描述输入语言的资源语义。我们提供了一个更详细的形式化和扩展的框架,使资源使用规范和分析/验证输出可以包括前提条件表达区间的输入数据大小的断言是适用的,证明,或反驳。最重要的是,我们还扩展了可以检查的函数类。我们提供的Ciao/CiaoPP框架内的实施结果,并报告通过实例化这个框架的能源消耗规范的验证命令/嵌入式程序的工具。这篇论文正在考虑发表在《逻辑程序设计理论与实践》(TPLP)上。

英文摘要:

Many applications require conformance with specifications that constrain the use of resources, such as execution time, energy, bandwidth, etc. We have presented a configurable framework for static resource usage verification where specifications can include lower and upper bound, data size-dependent resource usage functions. To statically check such specifications, our framework infers the same type of resource usage functions, which safely approximate the actual resource usage of the program, and compares them against the specification. We review how this framework supports several languages and compilation output formats by translating them to an intermediate representation based on Horn clauses and using the configurability of the framework to describe the resource semantics of the input language. We provide a more detailed formalization and extend the framework so that both resource usage specification and analysis/verification output can include preconditions expressing intervals for the input data sizes for which assertions are applicable, proved, or disproved. Most importantly, we also extend the classes of functions that can be checked. We provide results from an implementation within the Ciao/CiaoPP framework, and report on a tool built by instantiating this framework for the verification of energy consumption specifications for imperative/embedded programs. This paper is under consideration for publication in Theory and Practice of Logic Programming (TPLP).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑