Analysis of source code changes

US9262134B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-9262134-B2
Application numberUS-201414221707-A
CountryUS
Kind codeB2
Filing dateMar 21, 2014
Priority dateMar 21, 2014
Publication dateFeb 16, 2016
Grant dateFeb 16, 2016

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

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.

First claim

Opening claim text (preview).

What is claimed is: 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.

Assignees

Inventors

Classifications

  • G06F8/70Primary

    Software maintenance or management · CPC title

  • Syntactic analysis · CPC title

  • G06F8/40Primary

    Transformation of program code · CPC title

  • Version control (security arrangements therefor G06F21/57); Configuration management · CPC title

  • Structural analysis for program understanding · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US9262134B2 cover?
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.
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F8/70. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Feb 16 2016 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).