arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1710.07430cs.SE
收藏

自适应静态分析

Self-adaptive static analysis

Eric Bodden

摘要:

静态代码分析是一种强大的方法来检测质量缺陷,如性能瓶颈,安全违规或安全漏洞已经在软件系统的实施。然而,随着当前软件系统的持续增长,当前的静态分析系统更频繁地面临可扩展性不足的问题。我们认为,这主要是由于这样一个事实,即目前的静态分析是完全手动实现的,通常在通用程序设计语言,如Java或C,或声明性语言,如Datasheet。此设计选择预定义了静态分析的计算方式,并限制了静态分析设计人员可以应用的优化和扩展。为了将可扩展性提升到一个新的水平,我们建议将静态分析与即时优化技术相融合,首次引入受管理且具有内在自适应性的静态分析。这些分析会自动调整自身,以产生相对于所分析的软件系统和分析本身而言最优的性能/精度权衡。自适应性是由设计一个专用的中间表示,而不是为分析程序,但分析本身的新颖的想法。这种表示允许分析代码的自动优化和适配,既可以提前(通过静态分析的静态分析),也可以在分析执行期间即时(just-in-time),类似于即时编译器。

英文摘要:

Static code analysis is a powerful approach to detect quality deficiencies such as performance bottlenecks, safety violations or security vulnerabilities already during a software system's implementation. Yet, as current software systems continue to grow, current static-analysis systems more frequently face the problem of insufficient scalability. We argue that this is mainly due to the fact that current static analyses are implemented fully manually, often in general-purpose programming languages such as Java or C, or in declarative languages such as Datalog. This design choice predefines the way in which the static analysis evaluates, and limits the optimizations and extensions static-analysis designers can apply. To boost scalability to a new level, we propose to fuse static-analysis with just-in-time-optimization technology, introducing for the first time static analyses that are managed and inherently self-adaptive. Those analyses automatically adapt themselves to yield a performance/precision tradeoff that is optimal with respect to the analyzed software system and to the analysis itself. Self-adaptivity is enabled by the novel idea of designing a dedicated intermediate representation, not for the analyzed program but for the analysis itself. This representation allows for an automatic optimization and adaptation of the analysis code, both ahead-of-time (through static analysis of the static analysis) as well as just-in-time during the analysis' execution, similar to just-in-time compilers.

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

↑