US 11,726,779 B2
Code simplification system
Sebastian Mietke, Reilingen (DE)
Assigned to SAP SE, Walldorf (DE)
Filed by SAP SE, Walldorf (DE)
Filed on Nov. 3, 2021, as Appl. No. 17/518,113.
Prior Publication US 2023/0139119 A1, May 4, 2023
Int. Cl. G06F 8/72 (2018.01); G06F 8/20 (2018.01); G06F 8/75 (2018.01)
CPC G06F 8/72 (2013.01) [G06F 8/24 (2013.01); G06F 8/751 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method comprising:
receiving, by one or more processors, an identification of both a first code object and a second code object, wherein the first code object and the second code object are both directed to producing a similar result when executed by one or more processors;
determining that the first code object and the second code object each comprise a plurality of code subsets that together comprise the respective code object, wherein at least a first code subset of the first code object corresponds to a second code subset of the second code object;
identifying at least one or more differences between the plurality of code subsets of the first code object and the plurality of code subsets of the second code object, the one or more differences including at least one of: a different ordering of the plurality of code subsets between the first code object and the second code object, or an additional code subset in the first code object that is not included in the second code object;
identifying, by the one or more processors, duplicate code that exists in both the first code object and the second code object;
providing, via a user interface, a recommendation to create an inheritance between the first code object and the second code object and to delete the duplicate code that exists in either the first code object or the second code object;
receiving input via the user interface indicating at least one of the recommended actions to take with respect to either the first code object or the second code object; and
updating, by the one or more processors, either the first code object or the second code object in accordance with the input indicating at least one of the recommended actions to take and reducing the one or more differences between the plurality of code subsets responsive to the input.