# US 2013/0212565 A1 · Application analysis method, analysis system and recording medium

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

- Number: US 2013/0212565 A1
- Document ID: US20130212565A1
- Status: Published application
- Kind: A1
- Application number: 13/699,151
- Filed: 2010-07-23
- Published: 2013-08-15
- Earliest claimed: 2010-06-02
- Assignees: Hitachi, Ltd.
- Inventors: Hiroyasu Nishiyama
- Web page: https://patentgrep.com/patent/US20130212565A1

## CPC

- G06F 11/3612: {by runtime analysis (performance monitoring G06F11/3466)}
- G06F 16/20: of structured data, e.g. relational data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed is a method for analyzing a program that includes database operation statements, said method including: a first procedure for analyzing control flow of a program and data used in the program, on the basis of the program and the execution result of the program; a second procedure for analyzing the dependency relationship among a plurality of database operation statements, in accordance with the analysis result of the first procedure and the operation details of the plurality of database operation statements; a third procedure for analyzing the propagation path of the incorrect operation in the opposite direction to the control flow, on the basis of the analysis result of the first procedure and the analysis result of the second procedure and taking as a starting point for analysis a predetermined program location which is operating incorrectly; and a fourth procedure for displaying program statements on the propagation path obtained by the third procedure.

## Claims

### Claim 1

An application program analysis method to be used by an analysis system that comprises a processor for executing a program and a memory for storing the program executed by the processor for analyzing an application program that comprises a database operation statement, the application program analysis method comprising:
a first step of analyzing, by the processor, a control flow of the application program and data used in the application program based on the application program and on an execution result of the application program;
a second step of analyzing, when the application program comprises a plurality of database operation statements, by the processor, a dependency relation among the plurality of database operation statements based on a result of the analysis of the first step and specifics of operations of the plurality of database operation statements;
a third step of analyzing, by the processor, based on the result of the analysis of the first step and a result of the analysis of the second step, a propagation route of an invalid operation of the application program by using, as an analysis start point, a given spot of the invalid operation in the application program and following the control flow backwards; and
a fourth step of presenting, by the processor, program statements on the propagation path obtained in the third step.

### Claim 2 (depends on 1)

The application program analysis method according to claim 1, wherein the third step comprises a step of limiting, by the processor, in number, program statements to be presented by removing program statements that are not to be presented from the program statements on the propagation route which have been obtained in the third step.

### Claim 3 (depends on 1)

The application program analysis method according to claim 1, wherein the fourth step comprises presenting, by the processor, a path set that indicates execution routes of the program statements on the propagation route which have been obtained in the third step.

### Claim 4 (depends on 1)

The application program analysis method according to claim 1, wherein the fourth step comprises presenting, by the processor, the program statements on the propagation route which have been obtained in the third step, in association with a program structure of the application program.

### Claim 5 (depends on 1)

The application program analysis method according to claim 1 further comprising, between the second step and the third step, a step of setting, by the processor, as the analysis start point, a spot specified by a user.

### Claim 6 (depends on 1)

The application program analysis method according to claim 1 further comprising, between the second step and the third step, a step of setting, by the processor, as the analysis start point, a spot where exception processing has occurred during execution of the application program.

### Claim 7

An analysis system that comprises a processor for executing a program and a memory for storing the program executed by the processor, for analyzing an application program that comprises a database operation statement,
the processor being configured to:
analyze a control flow of the application program and data used in the application program based on the application program and on an execution result of the application program;
analyze, when the application program comprises a plurality of database operation statements, a dependency relation among the plurality of database operation statements based on a result of the analysis on the application program and specifics of operations of the plurality of database operation statements;
analyze, based on the result of the analysis on the application program and a result of the analysis on the plurality of database operation statements, a propagation route of an invalid operation of the application program by using, as an analysis start point, a given spot of the invalid operation in the application program and following the control flow backwards; and
present program statements on the propagation path.

### Claim 8

A recording medium having stored thereon an analysis program to be used for an analysis system that comprises a processor for executing a program and a memory for storing the program executed by the processor, for analyzing an application program that comprises a database operation statement, the analysis program controlling the analysis system to execute:
a first step of analyzing a control flow of the application program and data used in the application program based on the application program and on an execution result of the application program;
a second step of analyzing, when the application program comprises a plurality of database operation statements, a dependency relation among the plurality of database operation statements based on a result of the analysis of the first step and specifics of operations of the plurality of database operation statements;
a third step of analyzing, based on the result of the analysis of the first step and a result of the analysis of the second step, a propagation route of an invalid operation of the application program by using, as an analysis start point, a given spot of the invalid operation in the application program, and following the control flow backwards; and
a fourth step of presenting program statements on the propagation path obtained in the third step.
