A decision procedure for string constraints with string/integer conversion and flat regular constraints

被引:1
|
作者
Wu, Hao [1 ,2 ]
Chen, Yu-Fang [3 ]
Wu, Zhilin [1 ,2 ]
Xia, Bican [4 ]
Zhan, Naijun [1 ,2 ]
机构
[1] Chinese Acad Sci, State Key Lab Comp Sci, Inst Software, Beijing, Peoples R China
[2] Univ Chinese Acad Sci, Beijing, Peoples R China
[3] Acad Sinica, Inst Informat Sci, Taipei, Taiwan
[4] Peking Univ, Sch Math Sci, Beijing, Peoples R China
关键词
26;
D O I
10.1007/s00236-023-00446-4
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
String constraint solving is the core of various testing and verification approaches for scripting languages. Among algorithms for solving string constraints, flattening is a well-known approach that is particularly useful in handling satisfiable instances. As string/integer conversion is an important function appearing in almost all scripting languages, Abdulla et al. extended the flattening approach to this function recently. However, their approach supports only a special flattening pattern and leaves the support of the general flat regular constraints as an open problem. In this paper, we fill the gap by proposing a complete flattening approach for the string/integer conversion. The approach is built upon a new quantifier elimination procedure for the linear-exponential arithmetic (namely, the extension of Presburger arithmetic with exponential functions, denoted by ExpPA) improved from the one proposed by Cherlin and Point in 1986. We analyze the complexity of our quantifier elimination procedure and show that the decision problem for existential ExpPA formulas is in 3-EXPTIME. Up to our knowledge, this is the first elementary complexity upper bound for this problem. While the quantifier elimination procedure is too expensive to be implemented efficiently, we propose various optimizations and provide a prototypical implementation. We evaluate the performance of our implementation on the benchmarks that are generated from the string hash functions as well as randomly. The experimental results show that our implementation outperforms the state-of-the-art solvers.
引用
收藏
页码:23 / 52
页数:30
相关论文
共 50 条
  • [21] Chain-Free String Constraints
    Abdulla, Parosh Aziz
    Atig, Mohamed Faouzi
    Bui Phi Diep
    Holik, Lukas
    Janku, Petr
    AUTOMATED TECHNOLOGY FOR VERIFICATION AND ANALYSIS (ATVA 2019), 2019, 11781 : 277 - 293
  • [22] Solving String Constraints with Lengths by Stabilization
    Chen, Yu-Fang
    Chocholaty, David
    Havlena, Vojtech
    Holik, Lukas
    Lengal, Ondrej
    Sic, Juraj
    PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2023, 7 (OOPSLA):
  • [23] STRSOLVE: solving string constraints lazily
    Hooimeijer, Pieter
    Weimer, Westley
    AUTOMATED SOFTWARE ENGINEERING, 2012, 19 (04) : 531 - 559
  • [24] Updated constraints on the cosmic string tension
    Battye, Richard
    Moss, Adam
    PHYSICAL REVIEW D, 2010, 82 (02):
  • [25] An efficient SMT solver for string constraints
    Liang, Tianyi
    Reynolds, Andrew
    Tsiskaridze, Nestan
    Tinelli, Cesare
    Barrett, Clark
    Deters, Morgan
    FORMAL METHODS IN SYSTEM DESIGN, 2016, 48 (03) : 206 - 234
  • [26] String Submodular Functions With Curvature Constraints
    Zhang, Zhenliang
    Chong, Edwin K. P.
    Pezeshki, Ali
    Moran, William
    IEEE TRANSACTIONS ON AUTOMATIC CONTROL, 2016, 61 (03) : 601 - 616
  • [27] Norn: An SMT Solver for String Constraints
    Abdulla, Parosh Aziz
    Atig, Mohamed Faouzi
    Chen, Yu-Fang
    Holik, Lukas
    Rezine, Ahmed
    Rummer, Philipp
    Stenman, Jari
    COMPUTER AIDED VERIFICATION, PT I, 2015, 9206 : 462 - 469
  • [28] Solving String Constraints Using SAT
    Lotz, Kevin
    Goel, Amit
    Dutertre, Bruno
    Kiesl-Reiter, Benjamin
    Kong, Soonho
    Majumdar, Rupak
    Nowotka, Dirk
    COMPUTER AIDED VERIFICATION, CAV 2023, PT II, 2023, 13965 : 187 - 208
  • [29] StrSolve: solving string constraints lazily
    Pieter Hooimeijer
    Westley Weimer
    Automated Software Engineering, 2012, 19 : 531 - 559
  • [30] STRING EDITING UNDER A COMBINATION OF CONSTRAINTS
    PETROVIC, SV
    GOLIC, JD
    INFORMATION SCIENCES, 1993, 74 (1-2) : 151 - 163