# US 2017/0371664 A1 · Program information generation system, method, and computer program product

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

- Number: US 2017/0371664 A1
- Document ID: US20170371664A1
- Status: Published application
- Kind: A1
- Application number: 15/440,635
- Filed: 2017-02-23
- Published: 2017-12-28
- Earliest claimed: 2016-06-23
- Assignees: Kabushiki Kaisha Toshiba
- Applicants: Kabushiki Kaisha Toshiba
- Inventors: Mayuko KOEZUKA; Hidenori Matsuzaki; Akira Kuroda; Nobuaki Tojo
- Web page: https://patentgrep.com/patent/US20170371664A1

## CPC

- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 11/3604: Analysis of software for verifying properties of programs (testing of software G06F11/3668)
- G06F 9/30021: {Compare instructions, e.g. Greater-Than, Equal-To, MINMAX}
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 11/30: Monitoring
- G06F 11/36: Prevention of errors by analysis, debugging or testing of software
- G06F 11/3612: {by runtime analysis (performance monitoring G06F11/3466)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A program information generation system includes circuitry configured to acquire a program and operation information, the program including a plurality of instruction codes including a start instruction code for starting a critical section and an end instruction code for ending the critical section, the operation information indicating an execution order of the plurality of instruction codes; identify the instruction code included in a first section corresponding to the critical section from the operation information, on the basis of the start instruction code, the end instruction code, and the operation information; determine a second section, corresponding to the first section, within the program on the basis of the instruction code included in the first section; and generate classification information for allowing specification of the instruction code included in the critical section or the instruction code included in a non-critical section, on the basis of the second section.

## Claims

### Claim 1

A program information generation system comprising circuitry configured to:
acquire a program and operation information, the program including a plurality of instruction codes including a start instruction code for starting a critical section where an interrupt process is disabled and an end instruction code for ending the critical section, the operation information indicating an execution order of the plurality of instruction codes;
identify the instruction code included in a first section corresponding to the critical section from the operation information, on the basis of the start instruction code, the end instruction code, and the operation information;
determine a second section, corresponding to the first section, within the program on the basis of the instruction code included in the first section; and
generate classification information for allowing specification of the instruction code included in the critical section or the instruction code included in a non-critical section being a section other than the critical section, on the basis of the second section.

### Claim 2 (depends on 1)

The program information generation system according to claim 1, wherein the classification information allows specification of both of the instruction code included in the critical section and the instruction code included in the non-critical section.

### Claim 3 (depends on 1)

The program information generation system according to claim 1, wherein the circuitry is further configured to:
detect a start matching portion that matches the start instruction code and an end matching portion that matches the end instruction code from the plurality of instruction codes included in the operation information;
determine a section between the start matching portion and the end matching portion to be the first section; and
determine a section, matching a sequence of one or more instruction codes included in the first section, within the program to be the second section.

### Claim 4 (depends on 1)

The program information generation system according to claim 1, wherein
the program further includes an interrupt instruction code for executing the interrupt process, and
the circuitry is further configured to:
identify the instruction code corresponding to a first location indicating a location of occurrence of the interrupt process from the operation information, on the basis of the interrupt instruction code and the operation information;
determine a second location, corresponding to the first location, within the program, on the basis of the instruction code corresponding to the first location; and
generate the classification information further allows determination of whether or not the critical section includes the location of occurrence of the interrupt process, on the basis of the second location and the second section.

### Claim 5 (depends on 4)

The program information generation system according to claim 4, wherein the circuitry is further configured to:
detect an interrupt matching portion that matches the interrupt instruction code from the plurality of instruction codes included in the operation information;
detect an immediately preceding instruction code located immediately before the interrupt matching portion and an immediately following instruction code located immediately after the interrupt matching portion; and
determine a portion where the immediately preceding instruction code and the immediately following instruction code are sequential among the plurality of instruction codes included in the program to be the second location.

### Claim 6 (depends on 1)

The program information generation system according to claim 1, wherein the circuitry is further configured to control a display unit in such a manner as to display a display image indicating a relationship between the instruction code and the critical section, on the basis of the classification information.

### Claim 7 (depends on 4)

The program information generation system according to claim 4, wherein the circuitry is further configured to control a display unit in such a manner as to display a display image indicating a relationship between the instruction code, the critical section, and the location of occurrence of the interrupt process, on the basis of the classification information.

### Claim 8

A program information generation method comprising:
acquiring a program and operation information, the program including a plurality of instruction codes including a start instruction code for starting a critical section where an interrupt process is disabled and an end instruction code for ending the critical section, the operation information indicating an execution order of the plurality of instruction codes;
identifying the instruction code included in a first section corresponding to the critical section from the operation information, on the basis of the start instruction code, the end instruction code, and the operation information;
determining a second section, corresponding to the first section, within the program on the basis of the instruction code included in the first section; and
generating classification information for allowing specification of the instruction code included in the critical section or the instruction code included in a non-critical section being a section other than the critical section, on the basis of the second section.

### Claim 9

A computer program product having a non-transitory computer readable medium including programmed instructions, wherein the instructions, when executed by a computer, cause the computer to perform:
acquiring a program and operation information, the program including a plurality of instruction codes including a start instruction code for starting a critical section where an interrupt process is disabled and an end instruction code for ending the critical section, the operation information indicating an execution order of the plurality of instruction codes;
identifying the instruction code included in a first section corresponding to the critical section from the operation information, on the basis of the start instruction code, the end instruction code, and the operation information;
determining a second section, corresponding to the first section, within the program on the basis of the instruction code included in the first section; and
generating classification information for allowing specification of the instruction code included in the critical section or the instruction code included in a non-critical section being a section other than the critical section, on the basis of the second section.
