TY - CHAP
T1 - MiniZinc with strings
AU - Amadini, Roberto
AU - Flener, Pierre
AU - Pearson, Justin
AU - Scott, Joseph D.
AU - Stuckey, Peter J.
AU - Tack, Guido
PY - 2017
Y1 - 2017
N2 - Strings are extensively used in modern programming languages and constraints over strings of unknown length occur in a wide range of real-world applications such as software analysis and verification, testing, model checking, and web security. Nevertheless, practically no constraint programming solver natively supports string constraints. We introduce string variables and a suitable set of string constraints as builtin features of the MiniZinc modelling language. Furthermore, we define an interpreter for converting a MiniZinc model with strings into a FlatZinc instance relying only on integer variables. This conversion is obtained via rewrite rules, and does not require any extension of the existing FlatZinc specification. This provides a user-friendly interface for modelling combinatorial problems with strings, and enables both string and non-string solvers to actually solve such problems.
AB - Strings are extensively used in modern programming languages and constraints over strings of unknown length occur in a wide range of real-world applications such as software analysis and verification, testing, model checking, and web security. Nevertheless, practically no constraint programming solver natively supports string constraints. We introduce string variables and a suitable set of string constraints as builtin features of the MiniZinc modelling language. Furthermore, we define an interpreter for converting a MiniZinc model with strings into a FlatZinc instance relying only on integer variables. This conversion is obtained via rewrite rules, and does not require any extension of the existing FlatZinc specification. This provides a user-friendly interface for modelling combinatorial problems with strings, and enables both string and non-string solvers to actually solve such problems.
UR - https://www.scopus.com/pages/publications/85028328730
U2 - 10.1007/978-3-319-63139-4_4
DO - 10.1007/978-3-319-63139-4_4
M3 - Chapter (Book)
AN - SCOPUS:85028328730
SN - 9783319631387
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 59
EP - 75
BT - Logic-Based Program Synthesis and Transformation
A2 - Hermenegildo, Manuel V.
A2 - Lopez-Garcia, Pedro
PB - Springer
CY - Cham, Switzerland
T2 - International Symposium on Logic-Based Program Synthesis and Transformation 2016
Y2 - 6 September 2016 through 8 September 2016
ER -