Patent ID: 11960866
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 10:
11. The method of claim 7, further comprising:
removing all forwarding nodes contained within the two branch paths;
responsive to determining that a first branch path of the two branch paths terminates at a Switch node that is contained within a second branch path of the two branch paths, slicing the second branch path into a first slice and a second slice, wherein the first slice includes the Switch node and nodes preceding the Switch node, and the second slice contains nodes succeeding the Switch node, and replacing the second branch path with the second slice and discarding the first slice; and
storing the common intermediate representation branch in the extracted control flows data structure, wherein the common intermediate representation branch includes a branch predicate and the two branch paths, wherein the branch predicate is a first input to the Switch node if both the first branch path and the second branch path terminate at the Switch node.