The invention relates to a method for
functional analysis of a
source system (1), wherein a
syntax tree model (3) is generated from the
program code data of the
source system (1). In order to propose a method for
functional analysis of a
source system (1), in particular with extensive
program code data, which method makes it possible to better identify interrelated functional units and, with high result quality and at the same time
low resource requirements, to improve further
processing by means of a large
language model, the invention provides that a
syntax analysis unit (4) generates a
syntax embedding model by decomposing the syntax tree model (3) into individual syntax element embeddings (5), each representing a syntax element, and stores said syntax embedding model in a syntax embedding model memory (6), and that a
language analysis unit (8) generates a language embedding model by decomposing the
program code data into individual language element embeddings (9), each representing a language element, and stores said language embedding model in a language embedding model memory (10), whereupon, by means of a query unit (12), at least one query embedding (13) is generated from a query (11) representing a functional element of the source
system (1) and those syntax element embeddings (5) and language element embeddings (9) which lie within a predefined range of similarity to the query embedding (13) are retrieved from the syntax embedding model memory (6) and the language embedding model memory (10), whereupon the syntax elements represented by the retrieved syntax element embeddings (5) and the language elements represented by the retrieved language element embeddings (9) are transferred as result elements (14) to an output unit (15), which generates therefrom a
functional description dataset (16) and outputs the latter.