基于分解和模式的可信重构:一个复杂的案例研究
Trustworthy Refactoring via Decomposition and Schemes: A Complex Case Study
摘要:
广泛使用的复杂代码重构工具缺乏关于它们实现的转换的正确性的可靠推理,而对经证明的正确重构的兴趣正在不断增加,因为只有形式化验证才能在将工具自动化重构应用于工业规模代码时提供真正的信心。通过使用我们的战略重写为基础的重构规约语言,我们提出了一个复杂的转换分解成更小的步骤,可以表示为重构方案的实例,然后我们展示了半自动形式化验证的组件的基础上的语义的理论理解的程序设计语言。可扩展和可验证的重构定义可以在我们的解释器中执行,该解释器构建在静态分析器框架之上。
英文摘要:
Widely used complex code refactoring tools lack a solid reasoning about the correctness of the transformations they implement, whilst interest in proven correct refactoring is ever increasing as only formal verification can provide true confidence in applying tool-automated refactoring to industrial-scale code. By using our strategic rewriting based refactoring specification language, we present the decomposition of a complex transformation into smaller steps that can be expressed as instances of refactoring schemes, then we demonstrate the semi-automatic formal verification of the components based on a theoretical understanding of the semantics of the programming language. The extensible and verifiable refactoring definitions can be executed in our interpreter built on top of a static analyser framework.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。