Computer Software
Print ISSN : 0289-6540
Solving String Constraints with Nondeterministic Streaming String Transducers and Parikh Automata
Masaki KAMANOTaiga FUKUDAYasuhiko MINAMIDE
Author information
JOURNAL FREE ACCESS

2023 Volume 40 Issue 1 Pages 1_117-1_136

Details
Abstract

String constraints are logical formulas with regular expressions and string manipulating functions, and emerge in analysis of string manipulating programs. We develop a procedure to check satisfiability of syntactically-restricted string constraints with transducers. A streaming string transducer (SST) is a variant of a string-to-string transducer that computes an output with a fixed number of string variables. We also employ a Parikh automaton (PA), a string acceptor which computes a vector of natural numbers for an input and accepts if the vector satisfies a given arithmetic formula. We first show construction of the pre-image of a PA under an SST. Then we apply the result to show decidability of string constraints that may contain string replace functions using regular expressions with capture groups, and substring functions. The decision procedure is implemented as an SMT solver for string theory, and compared with existing solvers through an experiment on several constriants.

Content from these authors
© 2023, Japan Society for Software Science and Technology
Previous article
feedback
Top