REAL

Static Analysis Possibilities for Regular Expressions in C++

Fürész, Tibor Teodor and Umann, Kristóf and Porkoláb, Zoltán (2026) Static Analysis Possibilities for Regular Expressions in C++. In: Proceedings of the 13th International Conference on Applied Informatics. Líceum Kiadó, Eger, pp. 96-106. ISBN 9789634963271

[img]
Preview
Text
ICAI2026-pp96-106.pdf - Published Version

Download (526kB) | Preview

Abstract

Most of the regular expression libraries in current programming languages utilize a dynamic constructor parameter to construct a state machine, which will be used later in the matching. When this constructor parameter does not fulfill the requirements of the correct regular expression syntax, a runtime error – usually an exception – occurs. It would be highly beneficial if we could catch this kind of problem at compile time with the help of static analysis. The prerequisite of such an analysis is that the constructor parameter is fully known at compile time. In this research, we investigate the extent to which this prerequisite holds true for open-source software projects. We measured 26 different popular open-source projects, and we found that in more than two-thirds of the time, constructors used hardcoded parameters. This result opens the possibility for the creation of an effective static analysis tool.

Item Type: Book Section
Subjects: Q Science / természettudomány > QA Mathematics / matematika > QA75 Electronic computers. Computer science / számítástechnika, számítógéptudomány
SWORD Depositor: MTMT SWORD
Depositing User: MTMT SWORD
Date Deposited: 25 Sep 2026 12:32
Last Modified: 25 Sep 2026 12:32
URI: https://real.mtak.hu/id/eprint/247692

Actions (login required)

View Item View Item