Java字节码的非终止性分析
Non-Termination Analysis of Java Bytecode
摘要:
本文介绍了一种全自动的静态分析,它以一个顺序Java字节码程序P为输入,试图证明P的无限执行。该技术包括将P编译成一个约束逻辑程序P_CLP,并证明P_CLP的非终止性;当P由被精确编译成约束的指令组成时,我们的方法可以处理方法调用;据我们所知,它是第一个静态的Java字节码方法,能够证明存在无限递归。我们已经在Julia分析器中实现了我们的技术。我们已经比较了Julia在一组113个程序上的结果与AProVE和Invel提供的结果,AProVE和Invel是我们所知道的唯一可与我们相比的免费使用的非终止分析器。只有Julia可以检测到无限递归的非终止性。
英文摘要:
We introduce a fully automated static analysis that takes a sequential Java bytecode program P as input and attempts to prove that there exists an infinite execution of P. The technique consists in compiling P into a constraint logic program P_CLP and in proving non-termination of P_CLP; when P consists of instructions that are exactly compiled into constraints, the non-termination of P_CLP entails that of P. Our approach can handle method calls; to the best of our knowledge, it is the first static approach for Java bytecode able to prove the existence of infinite recursions. We have implemented our technique inside the Julia analyser. We have compared the results of Julia on a set of 113 programs with those provided by AProVE and Invel, the only freely usable non-termination analysers comparable to ours that we are aware of. Only Julia could detect non-termination due to infinite recursion.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。