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 条
  • [1] A decision procedure for string constraints with string/integer conversion and flat regular constraints
    Hao Wu
    Yu-Fang Chen
    Zhilin Wu
    Bican Xia
    Naijun Zhan
    Acta Informatica, 2024, 61 : 23 - 52
  • [2] A Decision Procedure for String Logic with Quadratic Equations, Regular Expressions and Length Constraints
    Quang Loc Le
    He, Mengda
    PROGRAMMING LANGUAGES AND SYSTEMS, APLAS 2018, 2018, 11275 : 350 - 372
  • [3] Improving the Performance of Interactive Configuration with Regular String Constraints
    Hansen, Esben Rune
    Tiedemann, Peter
    20TH IEEE INTERNATIONAL CONFERENCE ON TOOLS WITH ARTIFICIAL INTELLIGENCE, VOL 1, PROCEEDINGS, 2008, : 3 - 10
  • [4] A Decision Procedure for String to Code Point Conversion
    Reynolds, Andrew
    Notzli, Andres
    Barrett, Clark
    Tinelli, Cesare
    AUTOMATED REASONING, PT I, 2020, 12166 : 218 - 237
  • [5] AXION STRING CONSTRAINTS
    BATTYE, RA
    SHELLARD, EPS
    PHYSICAL REVIEW LETTERS, 1994, 73 (22) : 2954 - 2957
  • [6] Constraints on string cosmology
    Green, Stephen R.
    Martinec, Emil J.
    Quigley, Callum
    Sethi, Savdeep
    CLASSICAL AND QUANTUM GRAVITY, 2012, 29 (07)
  • [7] String Constraints for Verification
    Abdulla, Parosh Aziz
    Atig, Mohamed Faouzi
    Chen, Yu-Fang
    Holik, Lukas
    Rezine, Ahmed
    Rummer, Philipp
    Stenman, Jari
    COMPUTER AIDED VERIFICATION, CAV 2014, 2014, 8559 : 150 - 166
  • [8] STRING MATCHING WITH CONSTRAINTS
    CROCHEMORE, M
    LECTURE NOTES IN COMPUTER SCIENCE, 1988, 324 : 44 - 58
  • [9] Constraints on string resonance amplitudes
    Cheung, KM
    Liu, YF
    PHYSICAL REVIEW D, 2005, 72 (01): : 1 - 7
  • [10] Simple linear string constraints
    Fu, Xiang
    Powell, Michael C.
    Bantegui, Michael
    Li, Chung-Chih
    FORMAL ASPECTS OF COMPUTING, 2013, 25 (06) : 847 - 891