ConcoLixir:用于Python符号执行的响应式LLM发现预言
ConcoLixir: Reactive LLM Discovery Oracles for Python Concolic Testing
AI总结:
针对Python符号执行中库调用降级、语义操作难解和路径覆盖停滞问题,提出ConcoLixir,利用LLM作为发现预言生成种子、输入并引导覆盖,平均行覆盖率提升8.6-17.0个百分点,成本仅$1.63。
摘要:
符号执行结合了具体执行与符号约束求解,但Python程序暴露出反复出现的限制。库调用可能导致符号变量降级为具体值。正则表达式、校验和、解析器及其他语义操作可能难以求解,且探索可能在已覆盖路径上停滞。我们提出了ConcoLixir,一种用于Python符号执行的响应式LLM扩展。LLM充当发现预言,而非求解器的替代品或正确性预言。它生成初始种子,在求解器失败后提出具体输入,并在覆盖率停滞时针对未覆盖代码。每个候选输入都被符号执行,只有观察到的覆盖率和收集的路径约束指导后续探索。在合成、真实世界和库目标上,ConcoLixir将平均行覆盖率相比于无LLM预言的基线符号执行测试器分别提高了8.6、15.1和17.0个百分点。提升在语义障碍和库边界附近最为显著,完整评估的API费用为1.63美元。这些结果表明,有界的LLM发现可以补充符号推理,而无需替代它。
英文摘要:
Concolic testing combines concrete execution with symbolic constraint solving, but Python programs expose recurring limits. Library calls can cause symbolic variables to downgrade to concrete values. Regular expressions, checksums, parsers, and other semantic operations can be hard to solve, and exploration can plateau on already covered paths. We present ConcoLixir, a reactive LLM extension for Python concolic execution. The LLM acts as a discovery oracle, not a replacement for the solver or a correctness oracle. It generates initial seeds, proposes concrete inputs after solver failures, and targets uncovered code when coverage stalls. Each candidate is executed concolically, and only observed coverage and collected path constraints guide later exploration. Across synthetic, real-world, and library targets, ConcoLixir improves mean line coverage over the baseline concolic tester without an LLM oracle by 8.6, 15.1, and 17.0 percentage points. The gains are strongest near semantic barriers and library boundaries, and the full evaluation costs \$1.63 in API charges. These results show that bounded LLM discovery can complement symbolic reasoning without replacing it.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。