US 12,254,299 B2
Automatic code reconfiguration based on function and subfunction analysis
Carmit Sahar, Tel Aviv (IL)
Assigned to Aurora Labs Ltd., Tel Aviv (IL)
Filed by Aurora Labs Ltd., Tel Aviv (IL)
Filed on Feb. 22, 2024, as Appl. No. 18/584,195.
Application 18/584,195 is a continuation of application No. 18/318,354, filed on May 16, 2023, granted, now 11,941,380.
Application 18/318,354 is a continuation of application No. 18/048,690, filed on Oct. 21, 2022, granted, now 11,693,635, issued on Jul. 4, 2023.
Prior Publication US 2024/0231776 A1, Jul. 11, 2024
This patent is subject to a terminal disclaimer.
Int. Cl. G06F 8/40 (2018.01); G06F 8/41 (2018.01)
CPC G06F 8/427 (2013.01) [G06F 8/436 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A non-transitory computer-readable medium including instructions that, when executed by at least one processor, cause the at least one processor to perform operations for automatically reconfiguring code based on function and subfunction analysis, the operations comprising:
determining, by parsing a code structure representing a plurality of functions, that at least one first function has a threshold degree of complexity based on the code structure;
identifying, in response to the determination, a plurality of subfunctions based on the at least one first function, the plurality of subfunctions having a commonality with the at least one first function, wherein:
identifying the subfunctions includes determining division indicators between portions of the at least one first function and generating at least one subfunction; and
generating the at least one subfunction comprises:
determining a subset of code of the at least one first function as the at least one subfunction; and
generating a code structure to hold the subset of code as a distinct subfunction;
forming a second function by reconfiguring the at least one first function to call at least one of the identified plurality of subfunctions; and
updating a code file to include the second function.