IP Library › Granted Patent US 9,262,134
Granted Patent B2
US 9,262,134 · App. 14/221,707 · Granted Feb 16, 2016

Analysis of source code changes

Inventors: Rohit D. Kelapure (Morrisville, NC); Paul Komar (Lexington, MA); Maneesh Mehra (Westford, MA); Dana L. Price (Cary, NC)
Assignee: International Business Machines Corporation
G06F8/40G06F8/42
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,262,134
App. No.
14/221,707
Filed
Mar 21, 2014
Granted
Feb 16, 2016
Kind
B2
Examiner
KANG, INSUN
Art Unit
2193
USPC
717/112
Abstract

A code base, including a code base history, is searched for code term(s) and change(s) that have been made to the code term(s). The code base includes, but is not limited to, multiple: (i) instances of code; (ii) product releases; (iii) code components; and/or (iv) code drafting projects.

Claims (51)

1. A method comprising:

receiving a static analysis rule and a corresponding dynamic analysis rule associated with a first proposed code change to a first code segment;

applying the static analysis rule to a code set to identify a set of code segments of potential interest; and

applying the dynamic analysis rule to code segments within the identified set of code segments of potential interest to determine an identity of a set of code segments of interest that are related to the first code segment with respect to the advisability of making the first proposed code change in a member of the group consisting of: (i) the first code segment, and (ii) at least one of the code segments of potential interest;

wherein:

the static analysis rule includes a code snippet for matching with code segments within the code set to identify the set of code segments of potential interest; and

the dynamic analysis rule includes target change data to determine related code segments within the identified set of code segments of potential interest, the related code segments forming, at least in part, the set of code segments of interest.

2. The method of claim 1 further comprising:

determining the static analysis rule and the corresponding dynamic analysis rule, based, at least in part, upon the first proposed code change.

3. The method of claim 2 wherein the determining the static analysis rule and the corresponding dynamic analysis rule is performed using programming language syntax awareness.

4. The method of claim 2 wherein the static analysis rule and the corresponding dynamic analysis rule are selected from a set of code rules.

5. The method of claim 1 further comprising:

presenting the identity of the code segments of interest and respectively corresponding change history in human readable form and format.

6. The method of claim 5 wherein the presenting is performed automatically and in real time.

7. The method of claim 1 further comprising:

proposing a second proposed code change to a code segment of potential interest automatically and without substantial human intervention based, at least in part, upon the advisability of making the first proposed code change.

8. The method of claim 1 further comprising:

indexing the identity of the code segments of interest and their respectively corresponding change history.

9. A computer program product comprising a non-transitory computer readable storage medium having stored thereon:

first program instructions programmed to receive a static analysis rule and a corresponding dynamic analysis rule associated with a first proposed code change to a first code segment;

second program instructions programmed to apply the static analysis rule to a code set to identify a set of code segments of potential interest; and

third program instructions programmed to apply the dynamic analysis rule to code segments within the identified set of code segments of potential interest to determine an identity of a set of code segments of interest that are related to the first code segment with respect to the advisability of making the first proposed code change in a member of the group consisting of: (i) the first code segment, and (ii) at least one of the code segments of potential interest;

wherein:

the static analysis rule includes a code snippet for matching with code segments within the code set to identify the set of code segments of potential interest; and

the dynamic analysis rule includes target change data to determine related code segments within the identified set of code segments of potential interest, the related code segments forming, at least in part, the set of code segments of interest.

10. The computer program product of claim 9 further comprising the non-transitory computer readable storage medium having stored thereon:

fourth program instructions programmed to determine the static analysis rule and the corresponding dynamic analysis rule, based, at least in part, upon the first proposed code change.

11. The computer program product of claim 10 wherein determining the static analysis rule and the corresponding dynamic analysis rule is performed using programming language syntax awareness.

12. The computer program product of claim 10 wherein the static analysis rule and the corresponding dynamic analysis rule are selected from a set of code rules.

13. The computer program product of claim 9 further comprising the non-transitory computer readable storage medium having stored thereon:

fourth program instructions programmed to present the identity of the code segments of interest and respectively corresponding change history in human readable form and format.

14. The computer program product of claim 13 wherein presenting the identity of the code segments of interest is performed automatically and in real time.

15. A computer system comprising:

a hardware processor set; and

a computer readable storage medium;

wherein:

the hardware processor set is structured, located, connected and/or programmed to run program instructions stored on the computer readable storage medium; and

the program instructions include:

first program instructions programmed to receive a static analysis rule and a corresponding dynamic analysis rule associated with a first proposed code change to a first code segment;

second program instructions programmed to apply the static analysis rule to a code set to identify a set of code segments of potential interest; and

third program instructions programmed to apply the dynamic analysis rule to code segments within the identified set of code segments of potential interest to determine an identity of a set of code segments of interest that are related to the first code segment with respect to the advisability of making the first proposed code change in a member of the group consisting of: (i) the first code segment, and (ii) at least one of the code segments of potential interest;

wherein:

the static analysis rule includes a code snippet for matching with code segments within the code set to identify the set of code segments of potential interest; and

the dynamic analysis rule includes target change data to determine related code segments within the identified set of code segments of potential interest, the related code segments forming, at least in part, the set of code segments of interest.

16. The computer system of claim 15 wherein the program instructions further include:

fourth program instructions programmed to determine the static analysis rule and the corresponding dynamic analysis rule, based, at least in part, upon the first proposed code change.

17. The computer system of claim 16 wherein determining the static analysis rule and the corresponding dynamic analysis rule is performed using programming language syntax awareness.

18. The computer system of claim 16 wherein the static analysis rule and the corresponding dynamic analysis rule are selected from a set of code rules.

19. The computer system of claim 15 wherein the program instructions further include:

fourth program instructions programmed to present the identity of the code segments of interest and respectively corresponding change history in human readable form and format.

20. The computer system of claim 19 wherein presenting the identity of the code segments of interest is performed automatically and in real time.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 21, 2014
From: KELAPURE, ROHIT D.; KOMAR, PAUL; MEHRA, MANEESH; PRICE, DANA L.
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 032496/0586 →
Continuity (1)
Related Publication 20150268939A1 · Sep 24, 2015