跳到主要导航 跳到搜索 跳到主要内容

AutoINF: Path-Sensitive Invariant Inference for Multipath Loops

  • Northwestern Polytechnical University Xian
  • Al-Imam Muhammad Ibn Saud Islamic University
  • Xidian University

科研成果: 期刊稿件 › 文章 › 同行评审

摘要

Loop invariant inference is fundamental to program verification, yet it remains particularly challenging for multipath loops, where different execution paths may exhibit incompatible behaviors across feasible executions. In such settings, invariants that are both sound and sufficiently precise often require disjunctive forms, whose automatic inference remains difficult. This paper presents an efficient, path-sensitive, counterexample-guided framework for automated loop invariant inference. Our approach leverages a Path Dependency Automaton (PDA) to systematically decompose the semantics of multipath loops by modeling feasible execution paths independently. Building on this decomposition, we introduce a localized, path-guided Counterexample-Guided Invariant Refinement (CEGIR) process that validates candidate invariants against individual path semantics and uses targeted counterexamples to refine disjunctive and nonlinear polynomial invariant templates only where violations occur. We implement the proposed framework in AutoINF, an automated invariant inference tool for C programs containing multipath loops. The experimental evaluation on a diverse benchmark suite, including programs with complex control flow and nonlinear arithmetic, demonstrates that AutoINF infers sound and expressive invariants for challenging multipath loops.

源语言英语
期刊论文编号35
期刊CMES - Computer Modeling in Engineering and Sciences
卷148
期1
DOI
出版状态已出版 - 2026

学术指纹

探究 'AutoINF: Path-Sensitive Invariant Inference for Multipath Loops' 的科研主题。它们共同构成独一无二的学术指纹。

引用此