A Decision Procedure for String Logic with Quadratic Equations, Regular Expressions and Length Constraints

被引:12
作者
Quang Loc Le [1 ]
He, Mengda [1 ]
机构
[1] Teesside Univ, Middlesbrough, Cleveland, England
来源
PROGRAMMING LANGUAGES AND SYSTEMS, APLAS 2018 | 2018年 / 11275卷
关键词
WORD EQUATIONS; SMT SOLVER; SATISFIABILITY;
D O I
10.1007/978-3-030-02768-1_19
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
In this work, we consider the satisfiability problem in a logic that combines word equations over string variables denoting words of unbounded lengths, regular languages to which words belong and Presburger constraints on the length of words. We present a novel decision procedure over two decidable fragments that include quadratic word equations (i.e., each string variable occurs at most twice). The proposed procedure reduces the problem to solving the satisfiability in the Presburger arithmetic. The procedure combines two main components: (i) an algorithm to derive a complete set of all solutions of conjunctions of word equations and regular expressions; and (ii) two methods to precisely compute relational constraints over string lengths implied by the set of all solutions. We have implemented a prototype tool and evaluated it over a set of satisfiability problems in the logic. The experimental results show that the tool is effective and efficient.
引用
收藏
页码:350 / 372
页数:23
相关论文
共 52 条
  • [1] Abdulla PA, 2017, ACM SIGPLAN NOTICES, V52, P602, DOI [10.1145/3062341.3062384, 10.1145/3140587.3062384]
  • [2] Norn: An SMT Solver for String Constraints
    Abdulla, Parosh Aziz
    Atig, Mohamed Faouzi
    Chen, Yu-Fang
    Holik, Lukas
    Rezine, Ahmed
    Rummer, Philipp
    Stenman, Jari
    [J]. COMPUTER AIDED VERIFICATION, PT I, 2015, 9206 : 462 - 469
  • [3] Abdulla PA, 2014, LECT NOTES COMPUT SC, V8559, P150, DOI 10.1007/978-3-319-08867-9_10
  • [4] [Anonymous], CVC4 1 5
  • [5] Berzish M, 2017, PROCEEDINGS OF THE 17TH CONFERENCE ON FORMAL METHODS IN COMPUTER AIDED DESIGN (FMCAD 2017), P55, DOI 10.23919/FMCAD.2017.8102241
  • [6] Brotherston J, 2005, LECT NOTES ARTIF INT, V3702, P78
  • [7] Buchi J. R., 1990, COLLECTED WORKS JR B, P671
  • [8] Chen T., 2018, POPL
  • [9] Solution Sets for Equations over Free Groups are EDT0L Languages
    Ciobanu, Laura
    Diekert, Volker
    Elder, Murray
    [J]. AUTOMATA, LANGUAGES, AND PROGRAMMING, PT II, 2015, 9135 : 134 - 145
  • [10] Z3: An efficient SMT solver
    de Moura, Leonardo
    Bjorner, Nikolaj
    [J]. TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, 2008, 4963 : 337 - 340