Solving String Split Constraints via Structural Relaxation
Rui Han, Ziheng Wang, Baoquan Cui, Yuhang Dong, Fuqi Jia, Feifei Ma, Jian Zhang
Key points
From the paper's conclusion- We evaluated our framework on 580 benchmarks using four leading string solvers.
Abstract
String operations are integral to program analysis, yet reasoning about the ubiquitous split operation remains a challenge. SMT solvers have difficulty with split because it transforms a string into a variable-length sequence, creating a structural mismatch that leads to uninterpreted abstractions or unsound bounded approximations. In this paper, we bridge this gap with a precise, SMT-LIB-compliant encoding. Our key insight is structural relaxation: exploiting the sparsity of real-world constraints, we decouple the split structure from strict length requirements, materializing segments only on demand. We further introduce position-aware constraints to handle complex regex-based delimiters without overlaps. We evaluated our framework on 580 benchmarks using four leading string solvers. Our encoding enables off-the-shelf solvers to handle split constraints, solving 157 out of 168 real-world benchmarks and outperforming current baselines. Notably, our framework involves complex string operations, revealing 12 previously unknown implementation bugs in mainstream solvers.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Breaking the Space Barrier and its Application to Language Model InferencearXiv · 2026
- Augmenting Multi-technique Static Analysis with Large Language Models: A Neuro-symbolic Approach to Smart Contract Vulnerability DetectionProceedings of the ACM on Software Engineering · 2026
- From Grammar Deltas to Token Masks: Incremental Constrained Decoding under Runtime Grammar EvolutionarXiv · 2026
- Super-Analysis for Aggressive yet Scalable Compiler OptimizationarXiv · 2026
- A Neuro-Symbolic Reasoning Engine for Compilation-Free Patch Presence TestingarXiv · 2026
- Defusing Logic Bombs in Symbolic Execution with LLM-Generated Ghost CodeProceedings of the ACM on software engineering. · 2026