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 条
  • [31] An efficient SMT solver for string constraints
    Tianyi Liang
    Andrew Reynolds
    Nestan Tsiskaridze
    Cesare Tinelli
    Clark Barrett
    Morgan Deters
    Formal Methods in System Design, 2016, 48 : 206 - 234
  • [32] CONSTRAINTS ON STRING VACUA WITH SPACETIME SUPERSYMMETRY
    BANKS, T
    DIXON, LJ
    NUCLEAR PHYSICS B, 1988, 307 (01) : 93 - 108
  • [33] Automated String Constraints Solving for Programs Containing String Manipulation Functions
    Zhang, Xu-Zhou
    Gong, Yun-Zhan
    Wang, Ya-Wen
    Xing, Ying
    Zhang, Ming-Zhe
    JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2017, 32 (06) : 1125 - 1135
  • [34] Automated String Constraints Solving for Programs Containing String Manipulation Functions
    Xu-Zhou Zhang
    Yun-Zhan Gong
    Ya-Wen Wang
    Ying Xing
    Ming-Zhe Zhang
    Journal of Computer Science and Technology, 2017, 32 : 1125 - 1135
  • [35] Towards more efficient methods for solving regular-expression heavy string constraints
    Berzish, Murphy
    Day, Joel D.
    Ganesh, Vijay
    Kulczynski, Mitja
    Manea, Florin
    Mora, Federico
    Nowotka, Dirk
    THEORETICAL COMPUTER SCIENCE, 2023, 943 : 50 - 72
  • [36] Solving String Constraints with Nondeterministic Streaming String Transducers and Parikh Automata.
    Kamano M.
    Fukuda T.
    Minamide Y.
    Computer Software, 2023, 40 (01): : 117 - 136
  • [37] A Decision Procedure for Regular Membership and Length Constraints over Unbounded Strings
    Liang, Tianyi
    Tsiskaridze, Nestan
    Reynolds, Andrew
    Tinelli, Cesare
    Barrett, Clark
    FRONTIERS OF COMBINING SYSTEMS, FROCOS 2015, 2015, 9322 : 135 - 150
  • [38] Optimal string mining under frequency constraints
    Fischer, Johannes
    Heun, Volker
    Kramer, Stefan
    KNOWLEDGE DISCOVERY IN DATABASES: PKDD 2006, PROCEEDINGS, 2006, 4213 : 139 - 150
  • [39] Bosonic string theory with constraints linear in the momenta
    Montesinos, M
    Vergara, JD
    REVISTA MEXICANA DE FISICA, 2003, 49 : 53 - 60
  • [40] Observational constraints on axions as quintessence in string theory
    Gupta, Gaveshna
    Panda, Sudhakar
    Sen, Anjan A.
    PHYSICAL REVIEW D, 2012, 85 (02)