Patent ID: 11941380
Assignee: AURORA LABS LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 14:
15. A computer-implemented method for automatically reconfiguring code based on function and subfunction analysis, comprising:
determining, by parsing a code structure comprising an abstract syntax tree (AST) and representing a plurality of functions, that at least one first function has a threshold degree of complexity based on the AST, wherein the AST comprises a plurality of nodes having node types and the threshold degree of complexity is expressed as a size of an abstract syntax sub-tree;
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 the identifying is based on the node types; and
forming a second function by reconfiguring the first function to call at least one of the identified plurality of subfunctions.