US 12,379,905 B2
Transformation of legacy code for cloud environment
Riswan Lathif, Munich (DE); and Matthias Schneider, Munich (DE)
Assigned to SAP SE, Walldorf (DE)
Filed by SAP SE, Walldorf (DE)
Filed on Sep. 28, 2023, as Appl. No. 18/476,832.
Prior Publication US 2025/0110708 A1, Apr. 3, 2025
Int. Cl. G06F 15/16 (2006.01); G06F 8/35 (2018.01); G06F 8/51 (2018.01); G06F 8/60 (2018.01); G06F 9/445 (2018.01); G06F 9/455 (2018.01); G06F 9/48 (2006.01); G06F 9/50 (2006.01); H04L 12/741 (2013.01); H04L 29/08 (2006.01)
CPC G06F 8/35 (2013.01) [G06F 8/51 (2013.01); G06F 8/60 (2013.01)] 15 Claims
OG exemplary drawing
 
1. A system associated with a target runtime environment, the system comprising:
a memory storing processor-executable program code; and
at least one processing unit to execute the processor-executable program code to cause the system to:
receive first code associated with an on-premise runtime environment and a first programming language;
identify tokens associated with the first programming language in the first code;
remove state dependencies from the first code based on the identified tokens and on transformation data mapping one or more of the identified tokens to a respective code transformation, to generate second code;
execute performance transformations on the second code to generate third code;
execute functional tests on the third code;
in response to a determination that the functional tests were passed, separate the third code into functional units to generate fourth code;
apply a security function to one or more of the functional units to generate fifth code; and
deploy the fifth code to a cloud-based runtime environment.