Method for constructing a graph data structure
AssigneeHuawei Technologies Co., Ltd.
InventorsAlexander Vladimirovich Slesarenko, Anton Yurievich Orlov, Hongbo Zhang
Life of this patent
Estimating the term…
Loading patent…
AssigneeHuawei Technologies Co., Ltd.
InventorsAlexander Vladimirovich Slesarenko, Anton Yurievich Orlov, Hongbo Zhang
Estimating the term…
The disclosure relates to a method for constructing a graph data structure as an intermediate representation of source code for a compiler configured for compiling the source code into executable machine code running on a processor of a computer system, wherein program operations of the source code are represented in an object-oriented programming language by objects of classes that form a hierarchy growing from a base node class of the graph data structure, the method comprising: producing new nodes of the graph data structure by calling factory methods associated with existing nodes of the graph data structure based on a factory method design pattern implemented in the nodes of the graph data structure, wherein the nodes of the graph data structure are identified by symbols; and using the symbols as proxies of the nodes of the graph data structure according to a proxy design pattern.
A computer-implemented method for constructing a graph data structure as an intermediate representation of a source code, for a compiler configured for compiling the source code into executable machine code running on one or more processors, wherein the source code is represented in an object-oriented programming language by objects of classes, the method being implemented by one or more processors and comprising:
A computing device capable of compiling a source code into executable machine code running on one or more processors, the computing device comprising:
A non-transitory computer-readable medium storing computer instructions for implementing a method for constructing a graph data structure as an intermediate representation of source code for a compiler, that when executed by one or more processors, cause the one or more processors to compile the source code into executable machine code running on the one or more processors, wherein the source code is represented in an object-oriented programming language by objects of classes, the method comprising:
Dependencies are inferred from the claim text.