Abstract
We propose a tool and underlying technique that uses semi-parsing to extract control flow graphs from legacy source code (i.e., COBOL). Obtaining such control flow graphs is relevant in the industrial setting of legacy modernisation, to quickly demonstrate to code owners that modernisation engineers did not break their business logic. They need to be convinced that a migration did not affect the flow around critical parts of their code such as database accesses. Focusing on the control flow around embedded SQL queries and confirming that the code logic has been preserved improves customers' trust and satisfaction in the modernisation. Our proposed algorithm and approach uses fuzzy parsing as opposed to full parsing to parse mainly the control flow constructs, while delegating the full parsing of embedded languages like SQL to an external parser, and produces a control flow graph directly while skipping over most of the input in linear time. Such a fuzzy parser is easier to construct and adapt to particular languages and needs than a full parser with a visitor to elicit control flow. Comparisons are made of the fuzzy parser to an industrial-strength full parser.
Original language | English |
---|---|
Title of host publication | Proceedings - 2022 IEEE International Conference on Software Maintenance and Evolution, ICSME 2022 |
Place of Publication | Piscataway, NJ |
Publisher | IEEE |
Pages | 523-532 |
Number of pages | 10 |
ISBN (Electronic) | 978-1-6654-7956-1 |
ISBN (Print) | 978-1-6654-7957-8 |
DOIs | |
Publication status | Published - 2022 |
Event | 39th IEEE International Conference on Software Maintenance and Evolution, ICSME 2022 - Limassol, Cyprus Duration: 2 Oct 2022 → 7 Oct 2022 Conference number: 39 |
Publication series
Name | Proceedings IEEE International Conference on Software Maintenance and Evolution (ICSME) |
---|---|
Publisher | IEEE |
Volume | 2022 |
ISSN (Print) | 1063-6773 |
ISSN (Electronic) | 2576-3148 |
Conference
Conference | 39th IEEE International Conference on Software Maintenance and Evolution, ICSME 2022 |
---|---|
Abbreviated title | ICSME 2022 |
Country/Territory | Cyprus |
City | Limassol |
Period | 2/10/22 → 7/10/22 |
Keywords
- 2023 OA procedure
- Control flow graph
- Fuzzy parsing
- IUndustrial use case
- Legacy modernisation
- Semi-parsing
- SQL
- COBOL