基于流的监控语言的自动优化
Automatic Optimizations for Stream-based Monitoring Languages
摘要:
与用标准程序设计语言编写的监视器相比,用基于流的监视语言指定的监视器更容易理解、维护和重用。由于它们的形式语义,这种规约语言也是安全关键应用程序的自然选择。然而,与标准程序设计语言不同,到目前为止,对自动代码优化的支持很少。在本文中,我们提出了基于流的监控语言RTLola的代码转换的第一个集合。我们表明,经典的编译器优化,如稀疏条件常数传播和常见的子表达式消除,可以适应监控规范。我们还开发了新的转换-起搏类型细化和过滤器细化-利用RTLola的特定模块化结构以及声明性规约语言提供的实现自由。我们展示了从无人机系统(UAS)的监测基准代码转换的重大影响。
英文摘要:
Runtime monitors that are specified in a stream-based monitoring language tend to be easier to understand, maintain, and reuse than those written in a standard programming language. Because of their formal semantics, such specification languages are also a natural choice for safety-critical applications. Unlike for standard programming languages, there is, however, so far very little support for automatic code optimization. In this paper, we present the first collection of code transformations for the stream-based monitoring language RTLola. We show that classic compiler optimizations, such as Sparse Conditional Constant Propagation and Common Subexpression Elimination, can be adapted to monitoring specifications. We also develop new transformations -- Pacing Type Refinement and Filter Refinement -- which exploit the specific modular structure of RTLola as well as the implementation freedom afforded by a declarative specification language. We demonstrate the significant impact of the code transformations on benchmarks from the monitoring of unmanned aircraft systems (UAS).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。