# US 2022/0035612 A1 · Conversion assistance program, conversion assistance method, and conversion assistance device

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

- Number: US 2022/0035612 A1
- Document ID: US20220035612A1
- Status: Published application
- Kind: A1
- Application number: 17/384,029
- Filed: 2021-07-23
- Published: 2022-02-03
- Earliest claimed: 2020-08-03
- Assignees: Fujitsu Limited
- Applicants: Fujitsu Limited
- Inventors: Takashi Ohata; Takamasa Uramoto; Takashi Yamamoto
- Web page: https://patentgrep.com/patent/US20220035612A1

## CPC

- G06F 8/423: {Preprocessors}
- G06F 8/51: Source to source
- G06F 8/73: Program documentation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A non-transitory computer-readable medium storing a conversion assistance program that causes at least one computer to execute a process, the process includes embedding an identifier that identifies a line position of a code line of a source code in the source code, in a form that does not affect a conversion result of a conversion tool that converts the source code; and generating relationship information that indicates whether or not there is a change from the code line of the source code to the code line of a post-conversion source code generated by converting a post-embedding source code, which is the source code after the identifier is embedded, using the conversion tool; an addition of the code line to the source code; or a deletion of the code line from the source code, based on the post-conversion source code and the source code.

## Claims

### Claim 1

A non-transitory computer-readable medium storing a conversion assistance program that causes at least one computer to execute a process, the process comprising:
embedding an identifier that identifies a line position of a code line of a source code in the source code, in a form that does not affect a conversion result of a conversion tool that converts the source code; and
generating relationship information based on the source code and a post-conversion source code generated by converting, using the conversion tool, a post-embedding source code which is the source code after the identifier is embedded, the relationship information indicating at least one of whether or not there is a change from the code line of the source code to the code line of the post-conversion source code and an addition of the code line to the source code and a deletion of the code line from the source code.

### Claim 2 (depends on 1)

The non-transitory computer-readable medium according to claim 1, wherein
based on a first code line that includes the identifier in the post-conversion source code and a second code line identified by the identifier in the source code, the generating includes generating the relationship information that indicates whether or not there is the change from the second code line to the first code line.

### Claim 3 (depends on 1)

The non-transitory computer-readable medium according to claim 1, wherein
when a third code line does not include the identifier in the post-conversion source code, the generating includes generating the relationship information that indicates that the third code line has been added to the source code.

### Claim 4 (depends on 1)

The non-transitory computer-readable medium according to claim 1, wherein
when the post-conversion source code does not include the identifier that identifies the line position of a fourth code line of the source code, the generating includes generating the relationship information that indicates that the fourth code line has been deleted from the source code.

### Claim 5 (depends on 2)

The non-transitory computer-readable medium according to claim 2, wherein the process further comprising:
inserting information regarding the line position of the second code line before the first code line, when the relationship information indicates that there is the change.

### Claim 6 (depends on 2)

The non-transitory computer-readable medium according to claim 2, wherein the process further comprising:
deleting the identifier from the post-conversion source code to generate a post-deletion source code; and
inserting the information regarding the line position of the second code line before the code line that corresponds to the first code line, in the post-deletion source code, when the relationship information indicates that there is the change.

### Claim 7 (depends on 1)

The non-transitory computer-readable medium according to claim 1, wherein the identifier embedded by the embedding includes a file identifier that identifies a file that stores the source code, and
when the file identifier contained in a fifth code line that includes the identifier in the post-conversion source code is different from the file identifier contained in a preceding code line, the generating generates the relationship information that indicates that the fifth cede line has been added from another source code.

### Claim 8

A conversion assistance method for at east one computer to execute a process comprising:
embedding an identifier that identifies a line position of a code line of a source code in the source code, in a form that does not affect a conversion result of a conversion tool that converts the source code; and
generating relationship information based on the source code and a post-conversion source code generated by converting, using the conversion tool, a post-embedding source code which is the source code after the identifier is embedded, the relationship information indicating at least one of whether or not there is a change from the code line of the source code to the code line of the post-conversion source code and an addition of the code line to the source code and a deletion of the code line from the source code.

### Claim 9 (depends on 8)

The conversion assistance method according to claim 8, wherein
based on a first code line that includes the identifier in the post-conversion source code and a second code line identified by the identifier in the source code, the generating includes generating the relationship information that indicates whether or not there is the change from the second code line to the first code line.

### Claim 10 (depends on 8)

The conversion assistance method according to claim 8, wherein
when a third code line does not include the identifier in the post-conversion source code, the generating includes generating the relationship information that indicates that the third code line has been added to the source code.

### Claim 11 (depends on 8)

The conversion assistance method according to claim 8, wherein
when the post-conversion source code does not include the identifier that identifies the line position of a fourth code line of the source code, the generating includes generating the relationship information that indicates that the fourth code line has been deleted from the source code.

### Claim 12 (depends on 9)

The conversion assistance method according to claim 9, wherein the process further comprising:
inserting information regarding the line position of the second code line before the first code line, when the relationship information indicates that there is the change.

### Claim 13 (depends on 9)

The conversion assistance method according to claim 9, wherein the process further comprising:
deleting the identifier from the post-conversion source code to generate a post-deletion source code; and
inserting the information regarding the line position of the second code line before the code line that corresponds to the first code line, in the post-deletion source code, when the relationship information indicates that there is the change.

### Claim 14 (depends on 8)

The conversion assistance method according to claim 8, wherein the identifier embedded by the embedding includes a file identifier that identifies a file that stores the source code, and
when the file identifier contained in a fifth code line that includes the identifier in the post-conversion source code is different from the file identifier contained in a preceding code line, the generating generates the relationship information that indicates that the fifth code line has been added from another source code.

### Claim 15

A conversion assistance device comprising:
one or more memories; and
one or more processors coupled to the one or more memories and the one or more processors configured to
embed an identifier that identifies a line position of a code line of a source code in the source code in a form that does not affect a conversion result of a conversion tool that converts the source code; and
generating relationship information based on the source code and a post-conversion source code generated by converting, using the conversion tool, a post-embedding source code which is the source code after the identifier is embedded, the relationship information indicating at least one of whether or not there is a change from the code line of the source code to the code line of the post-conversion source code and an addition of the code line to the source code and a deletion of the code line from the source code.

### Claim 16 (depends on 15)

The conversion assistance device according to claim 15, wherein
based on a first code line that includes the identifier in the post-conversion source code and a second code line identified by the identifier in the source code, the generating includes generating the relationship information that indicates whether or not there is the change from the second code line to the first code line.

### Claim 17 (depends on 15)

The conversion assistance device according to claim 15, wherein
when a third code line does not include the identifier in the post-conversion source code, the generating includes generating the relationship information that indicates that the third code line has been added to the source code.

### Claim 18 (depends on 15)

The conversion assistance device according to claim 15, wherein
when the post-conversion source code does not include the identifier that identifies the line position of a fourth code line of the source code, the generating includes generating the relationship information that indicates that the fourth code line has been deleted from the source code.

### Claim 19 (depends on 15)

The conversion assistance device according to claim 15, the one or more processors further configured to
insert information regarding the line position of the second code line before the first code line, when the relationship information indicates that there is the change.

### Claim 20 (depends on 15)

The conversion assistance device according to claim 15, the one or more processors further configured to
delete the identifier from the post-conversion source code to generate a post-deletion source code; and
insert the information regarding the line position of the second code line before the code line that corresponds to the first code line, in the post-deletion source code, when the relationship information indicates that there is the change.
