利用多种抽象调用模式优化运行时检查
Exploiting Multiple Abstract Call Patterns for Optimizing Run-Time Checks
AI总结:
本文通过将断言属性的运行时语义集成到多变量、自顶向下、目标导向的抽象解释算法中,并利用多种推断的调用模式减少运行时检查的属性数量,从而降低开销,在Ciao系统中实现并验证了优于先前技术的性能。
摘要:
在强类型语言中,类型在编译时被验证,而动态类型语言(如Prolog)则完全在运行时进行类型一致性检查。通过断言扩展动态语言可以表达经典类型和更一般的属性,提供了高表达能力,但代价是运行时开销。抽象解释允许在编译时安全地近似这些程序属性,已被用于减少需要运行时检查的属性数量,同时仍然报告未验证的属性,以指导进一步的静态分析、测试或领域细化。在这项工作中,我们首先研究如何将断言属性的运行时语义选择性地集成到多变量、自顶向下、目标导向的抽象解释算法中。然后,我们展示了如何利用多种推断的调用模式来减少必须在运行时检查的属性数量,从而最小化开销。最后,我们报告了在Ciao系统中实现的方法,并提供了性能结果,支持比先前报告的技术获得更好的结果。
英文摘要:
In strongly-typed languages, types are verified at compile time, while dynamically typed languages, such as Prolog, perform type consistency checks entirely at run-time. Extending dynamic languages with assertions allows expressing both classical types and more general properties, providing high expressiveness, but at the cost of run-time overhead. Abstract interpretation allows safely approximating such program properties at compile time, which has been used to reduce the number of properties that require run-time checks, while still reporting unverified properties that can guide further static analyses, testing, or domain refinement. In this work, we first study how to selectively integrate the run-time semantics of assertion properties into a multivariant, top-down, goal-directed abstract interpretation algorithm. We then show how multiple inferred calling patterns can be exploited to reduce the number of properties that must be checked at run-time, thus minimizing the overhead. Finally, we report on an implementation of our approach in the Ciao system and provide performance results supporting that better results can be obtained than with the previously reported techniques.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。