SymInfer:使用符号状态推断程序不变量
SymInfer: Inferring Program Invariants using Symbolic States
摘要:
我们介绍了一种新的技术,用于推断程序不变量,使用符号执行产生的符号状态。符号状态由路径条件和对局部变量的约束组成,是对具体程序状态集的一种简洁描述,可用于不变式推理和不变式验证。我们的技术使用了一个基于反例的算法,从符号状态创建具体的状态,从具体的状态推断候选不变量,然后使用符号状态验证或反驳候选不变量。反驳的情况下,产生具体的反例,防止虚假的结果,并允许技术,以获得更精确的不变量。当算法达到一个稳定的不变量集时,这个过程停止。我们提出了SymInfer,一个工具,实现这些想法,自动生成在Java程序中的任意位置的不变量。该工具从符号路径中获取符号状态,并使用现有的算法来推断复杂的(潜在的非线性)数值不变量。我们的初步结果表明,SymInfer是有效的使用符号状态生成精确和有用的不变量,证明程序的安全性和分析程序运行时的复杂性。我们还表明,SymInfer优于现有的不变生成系统。
英文摘要:
We introduce a new technique for inferring program invariants that uses symbolic states generated by symbolic execution. Symbolic states, which consist of path conditions and constraints on local variables, are a compact description of sets of concrete program states and they can be used for both invariant inference and invariant verification. Our technique uses a counterexample-based algorithm that creates concrete states from symbolic states, infers candidate invariants from concrete states, and then verifies or refutes candidate invariants using symbolic states. The refutation case produces concrete counterexamples that prevent spurious results and allow the technique to obtain more precise invariants. This process stops when the algorithm reaches a stable set of invariants. We present SymInfer, a tool that implements these ideas to automatically generate invariants at arbitrary locations in a Java program. The tool obtains symbolic states from Symbolic PathFinder and uses existing algorithms to infer complex (potentially nonlinear) numerical invariants. Our preliminary results show that SymInfer is effective in using symbolic states to generate precise and useful invariants for proving program safety and analyzing program runtime complexity. We also show that SymInfer outperforms existing invariant generation systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。