Invention Grant
- Patent Title: Method and system for identifying and removing dead codes from a computer program
-
Application No.: US17511055Application Date: 2021-10-26
-
Publication No.: US11900104B2Publication Date: 2024-02-13
- Inventor: Doron Shem-Tov , Amir Rapson , Ori Saporta
- Applicant: vFunction, Inc.
- Applicant Address: US CA Menlo Park
- Assignee: VFUNCTION, INC.
- Current Assignee: VFUNCTION, INC.
- Current Assignee Address: US CA Menlo Park
- Agency: M&B IP Analysts, LLC
- Main IPC: G06F8/72
- IPC: G06F8/72 ; G06F8/75

Abstract:
A system and method for identifying and removing dead-code from a computer program of an independent service is provided. The method includes: retrieving information related to the code of the service, wherein the retrieved information includes at least static and dynamic dependencies information of classes of the service; constructing a static dependencies graph, wherein nodes of the static dependencies graph are classes, and directed edges depict static dependencies between classes; classifying classes based on the static dependencies; constructing a first subgraph to include classes classified as internal-pure-static (IPS) classes; detecting external-dead-class candidates by traversing the subgraph; adding external-dead-class candidates to a dead code cut (DCC) set; and removing at least one class included in the DCC set from the code of the service.
Public/Granted literature
- US20230126399A1 METHOD AND SYSTEM FOR IDENTIFYING AND REMOVING DEAD CODES FROM A COMPUTER PROGRAM Public/Granted day:2023-04-27
Information query