arXiv:2608.24391cs.PLAug 2026

Manuscript Offprint

arXiv:2608.24391

IncSFS: Incremental Full-Sparse Flow-Sensitive Pointer Analysis for C/C++

Kunlin Liu, Zhenbang Chen, Piyi Zu, Yide Du, Ji Wang

Kunlin Liu ∗^{*}

College of Computer Science and Technology,

National University of Defense Technology

Changsha, China

klliu18@nudt.edu.cn

Zhenbang Chen ∗^{*} †^{\dagger}

College of Computer Science and Technology,

National University of Defense Technology

Changsha, China

zbchen@nudt.edu.cn

Piyi Zu ∗^{*}

College of Computer Science and Technology,

National University of Defense Technology

Changsha, China

piyizu@nudt.edu.cn

Yide Du ∗^{*}

College of Computer Science and Technology,

National University of Defense Technology

Changsha, China

dyd1024@nudt.edu.cn

Abstract

Pointer analysis is the fundamental technique for compiler optimization and program analysis. Flow sensitive pointer analysis provides high precision but hard to scale to large-size projects. Tailored for rapid iteration scenarios where software evolves continuously, we introduce IncSFS, the first incremental full-sparse flow-sensitive pointer analysis algorithm for C/C++ programs. The algorithm contains two main steps. It first transforms the value-flow graph of a program into a constraint graph, on which a strongly-connected component detection is performed to ensure precision. It then propagates increases and decreases in points-to set in an interleaving manner to support both code deletion and insertion within a single analysis pass. IncSFS is guaranteed to terminate and compute the least fixed point when point-to relation during the analysis is object-acyclic. Experimental results on six large-scale real-world projects show that IncSFS is both precise and efficient, achieving average speedups of 9.60x over full flow-sensitive pointer analysis and of 5.84x over the traditional reset-recompute incremental approach. Furthermore, IncSFS improves efficiency by 15.8% compared with state-of-the-art incremental pointer analysis algorithms that also propagate changes in points-to sets.

CCS Concepts

• Software and its engineering → Automated static analysis.

Ji Wang ∗^{*}

College of Computer Science and Technology,

National University of Defense Technology

Changsha, China

wj@nudt.edu.cn

Keywords

Full-sparse Flow-sensitive Pointer Analysis, Incremental Analysis, Constraint Graph

ACM Reference Format:

Kunlin Liu, Zhenbang Chen, Piyi Zu, Yide Du, and Ji Wang. 2026. IncSFS: Incremental Full-Sparse Flow-Sensitive Pointer Analysis for C/C++. In Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering (ASE '26), October 12–16, 2026, Munich, Germany. ACM, New York, NY, USA, 16 pages. https://doi.org/10.1145/3832783.3837496

References (24)