# US 2013/0254745 A1 · Identifying deprecated external routines invoked by a software application implementing subtype polymorphism

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0254745 A1
- Document ID: US20130254745A1
- Status: Published application
- Kind: A1
- Application number: 13/426,605
- Filed: 2012-03-22
- Published: 2013-09-26
- Earliest claimed: 2012-03-22
- Assignees: Oracle International Corporation
- Inventors: PRANEET TIWARI
- Web page: https://patentgrep.com/patent/US20130254745A1

## CPC

- G06F 8/75: Structural analysis for program understanding
- G06F 11/3604: Analysis of software for verifying properties of programs (testing of software G06F11/3668)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An aspect of the present invention identifies deprecated routines invoked by a software application implementing subtype polymorphism by examination of the software application, without having to execute the software instructions. In one embodiment, upon receiving software instructions constituting the software application, the polymorphic data types, variables of the data types, and a corresponding set of assignments for each variable are identified in the received software instructions. The specific instructions containing invocations of routines associated with the identified variables are also found. In response to finding the invocations, the routines that are invoked corresponding to the specific instructions are determined. The specific (determined) routines that are deprecated are ascertained and a report is thereafter generated indicating the specific routines.

## Claims

### Claim 1

A method of identifying deprecated routines invoked by a software application implementing subtype polymorphism, said method comprising:
receiving software instructions constituting said software application;
identifying, in said software application, a set of polymorphic data types, a plurality of variables of said set of polymorphic data types and a corresponding set of assignments for each of said plurality of variables;
finding, in said software application, a first set of instructions, with each of said first set of instructions containing an invocation of a routine associated with one of said plurality of variables;
determining, based on said corresponding set of assignments, a first plurality of routines that would be caused to be invoked for the invocation specified in said first set of instructions;
ascertaining a first set of the routines of said first plurality of routines which are deprecated; and
generating a report indicating the instructions causing invocation of said first set of routines,
wherein said identifying and said finding are performed by examination of said software instructions, without having to execute said software instructions.

### Claim 2 (depends on 1)

The method of claim 1, further comprising maintaining a database indicating a second plurality of routines as being deprecated,
wherein said ascertaining includes a routine in said first set of routines only if said routine is contained in said second plurality of routines.

### Claim 3 (depends on 2)

The method of claim 2, wherein said maintaining also maintains in said database for each of said second plurality of routines, a corresponding severity, a corresponding set of possible fixes and a corresponding set of suggestions,
wherein said generating further includes said corresponding severity, said corresponding set of possible fixes and said corresponding set of suggestions for each of said first set of routines in said report.

### Claim 4 (depends on 1)

The method of claim 1, wherein said first set of instructions includes a first instruction containing an invocation of a routine associated with a first variable of said plurality of variables,
wherein said determining determines based on a last assignment in said set of assignments corresponding to said first variable that said first variable holds a value of a first data type prior to said invocation of said routine,
wherein a first routine specified in said first data type is determined to be the routine invoked corresponding to said first instruction, and accordingly included in said first plurality of routines.

### Claim 5 (depends on 4)

The method of claim 4, if said first routine is not found in said first data type, said determining further comprising searching a set of data types that are ancestors to said first data type,
wherein said searching identifies a second routine specified in a second data type of said set of data types to be the routine invoked corresponding to said first instruction, and accordingly includes said second routine in said first set of routines.

### Claim 6 (depends on 5)

The method of claim 5, wherein said identifying said and said finding are performed during multiple passes, each pass representing an examination of said software instructions,
wherein said identifying of said set of polymorphic data types is performed during a first pass, said identifying of said plurality of variables and said corresponding set of assignments is performed during a second pass, and said finding of said first set of instructions is performed during a third pass.

### Claim 7 (depends on 6)

The method of claim 6, wherein said identifying generates as an output of said first pass, a first data set indicating the ancestors of each of said polymorphic data types,
wherein said searching identifies said second routine and said second data type based on said output of said first pass.

### Claim 8 (depends on 7)

The method of claim 7, wherein said software instructions constituting said software application are specified according to a programming language, wherein said identifying and said finding are performed according to the syntax and semantics of said programming language.

### Claim 9

A machine readable medium storing one or more sequences of instructions for causing a system to identify deprecated routines invoked by a software application implementing subtype polymorphism, wherein execution of said one or more sequences of instructions by said one or more processors contained in said system causes said system to perform the actions of:
receiving software instructions constituting said software application;
identifying, in said software application, a set of polymorphic data types, a plurality of variables of said set of polymorphic data types and a corresponding set of assignments for each of said plurality of variables;
finding, in said software application, a first set of instructions, with each of said first set of instructions containing an invocation of a routine associated with one of said plurality of variables;
determining, based on said corresponding set of assignments, a first plurality of routines that would be caused to be invoked for the invocation specified in said first set of instructions;
ascertaining a first set of the routines of said first plurality of routines which are deprecated; and
generating a report indicating the instructions causing invocation of said first set of routines,
wherein said identifying and said finding are performed by examination of said software instructions, without having to execute said software instructions.

### Claim 10 (depends on 9)

The machine readable medium of claim 9, further comprising one or more instructions for maintaining a database indicating a second plurality of routines as being deprecated,
wherein said ascertaining includes a routine in said first set of routines only if said routine is contained in said second plurality of routines.

### Claim 11 (depends on 10)

The machine readable medium of claim 10, wherein said maintaining also maintains in said database for each of said second plurality of routines, a corresponding severity, a corresponding set of possible fixes and a corresponding set of suggestions,
wherein said generating further includes said corresponding severity, said corresponding set of possible fixes and said corresponding set of suggestions for each of said first set of routines in said report.

### Claim 12 (depends on 9)

The machine readable medium of claim 9, wherein said first set of instructions includes a first instruction containing an invocation of a routine associated with a first variable of said plurality of variables,
wherein said determining determines based on a last assignment in said set of assignments corresponding to said first variable that said first variable holds a value of a first data type prior to said invocation of said routine,
wherein a first routine specified in said first data type is determined to be the routine invoked corresponding to said first instruction, and accordingly included in said first plurality of routines.

### Claim 13 (depends on 12)

The machine readable medium of claim 12, if said first routine is not found in said first data type, said determining further comprising one or more instructions for searching a set of data types that are ancestors to said first data type,
wherein said searching identifies a second routine specified in a second data type of said set of data types to be the routine invoked corresponding to said first instruction, and accordingly includes said second routine in said first set of routines.

### Claim 14 (depends on 13)

The machine readable medium of claim 13, wherein said software instructions constituting said software application are specified according to a programming language, wherein said identifying and said finding are performed according to the syntax and semantics of said programming language.

### Claim 15

A digital processing system comprising:
a processor;
a random access memory (RAM);
a machine readable medium to store a first plurality of instructions and a second plurality of instructions, wherein said first plurality of instructions constitutes a software application implementing subtype polymorphism, wherein said second plurality of instructions when retrieved into said RAM and executed by said processor forms an analysis tool designed to identify deprecated routines invoked by said software application, said analysis tool performing the actions of:
identifying, in said software application, a set of polymorphic data types, a plurality of variables of said set of polymorphic data types and a corresponding set of assignments for each of said plurality of variables;
finding, in said software application, a first set of instructions, with each of said first set of instructions containing an invocation of a routine associated with one of said plurality of variables;
determining, based on said corresponding set of assignments, a first plurality of routines that would be caused to be invoked for the invocation specified in said first set of instructions;
ascertaining a first set of the routines of said first plurality of routines which are deprecated; and
generating a report indicating the instructions causing invocation of said first set of routines,
wherein said identifying and said finding are performed by examination of said software instructions, without having to execute said software instructions.

### Claim 16 (depends on 15)

The digital processing system of claim 15, wherein said analysis tool further performs the actions of maintaining a database indicating a second plurality of routines as being deprecated,
wherein said ascertaining includes a routine in said first set of routines only if said routine is contained in said second plurality of routines.

### Claim 17 (depends on 16)

The digital processing system of claim 16, wherein said analysis tool also maintains in said database for each of said second plurality of routines, a corresponding severity, a corresponding set of possible fixes and a corresponding set of suggestions,
wherein said generating further includes said corresponding severity, said corresponding set of possible fixes and said corresponding set of suggestions for each of said first set of routines in said report.

### Claim 18 (depends on 15)

The digital processing system of claim 15, wherein said first set of instructions includes a first instruction containing an invocation of a routine associated with a first variable of said plurality of variables,
wherein said determining determines based on a last assignment in said set of assignments corresponding to said first variable that said first variable holds a value of a first data type prior to said invocation of said routine,
wherein a first routine specified in said first data type is determined to be the routine invoked corresponding to said first instruction, and accordingly included in said first plurality of routines.

### Claim 19 (depends on 18)

The digital processing system of claim 18, if said first routine is not found in said first data type, said determining further comprising searching a set of data types that are ancestors to said first data type,
wherein said searching identifies a second routine specified in a second data type of said set of data types to be the routine invoked corresponding to said first instruction, and accordingly includes said second routine in said first set of routines.

### Claim 20 (depends on 19)

The digital processing system of claim 19, wherein said software instructions constituting said software application are specified according to a programming language, wherein said identifying and said finding are performed according to the syntax and semantics of said programming language.
