Generating Customised Control Flow Graphs for Legacy Languages with Semi-Parsing

Autor: Celine Deknop, Johan Fabry, Kim Mens, Vadim Zaytsev
Přispěvatelé: Formal Methods and Tools
Jazyk: angličtina
Rok vydání: 2022
Předmět:
Zdroj: Proceedings-2022 IEEE International Conference on Software Maintenance and Evolution, ICSME 2022, 523-532
STARTPAGE=523;ENDPAGE=532;TITLE=Proceedings-2022 IEEE International Conference on Software Maintenance and Evolution, ICSME 2022
DOI: 10.5281/zenodo.6806075
Popis: 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.
Databáze: OpenAIRE