# US 2021/0263841 A1 · Machine code analysis for identifying software defects

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

- Number: US 2021/0263841 A1
- Document ID: US20210263841A1
- Status: Published application
- Kind: A1
- Application number: 16/795,969
- Filed: 2020-02-20
- Published: 2021-08-26
- Earliest claimed: 2020-02-20
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: BRIAN MO; ANDREW C. M. HICKS; RYAN THOMAS RAWLINS; DALE E. BLUE
- Web page: https://patentgrep.com/patent/US20210263841A1

## CPC

- G06F 11/3692: {for test results analysis}
- G06F 11/079: {Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36)}
- G06F 11/3604: Analysis of software for verifying properties of programs (testing of software G06F11/3668)
- G06F 11/366: {using diagnostics (G06F11/0703 takes precedence)}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 5/04: Inference or reasoning models
- G06N 20/00: Machine learning
- G06F 8/53: Decompilation; Disassembly
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

According to one or more embodiments of the present invention, a computer-implemented method for machine code analysis includes executing a set of test cases associated with a software product. The method further includes determining a failing test case, from the set of test cases. The method further includes identifying a portion of a machine code of the software product, the portion of the machine code corresponding to the failing test case. The method further includes analyzing the portion of the machine code to identify a pattern of machine code causing the failing test case to fail. The method further includes searching the machine code of the software product to find the identified pattern of machine code.

## Claims

### Claim 1

A computer-implemented method for machine code analysis, the method comprising:
executing a set of test cases associated with a software product;
determining a failing test case, from the set of test cases;
identifying a portion of machine code of the software product, the portion of the machine code corresponding to the failing test case;
analyzing the portion of the machine code to identify a pattern of machine code causing the failing test case to fail; and
searching the machine code of the software product to find the identified pattern of machine code.

### Claim 2 (depends on 1)

The method of claim 1, further comprising identifying one or more lines of code in a high level computer program of the software product that are associated with the portion of machine code having the identified pattern.

### Claim 3 (depends on 2)

The method of claim 2, further comprising generating one or more test cases to test the one or more lines of code that are associated with the portion of machine code having the identified pattern.

### Claim 4 (depends on 2)

The method of claim 2, wherein the high level computer program comprises a first program in a first programming language and a second program in a second programming language.

### Claim 5 (depends on 4)

The method of claim 4, further comprising, identifying a first set of lines of code in the first program using a decompiler of the first programming language, and identifying a second set of lines of code in the second program using a decompiler of the second programming language.

### Claim 6 (depends on 1)

The method of claim 1, wherein analyzing the portion of machine code comprises analyzing machine code using a machine learning model.

### Claim 7 (depends on 6)

The method of claim 6, wherein analyzing the portion of the machine code further comprises generating a confidence value indicating a confidence level of the identified pattern causing the one or more test cases to fail to successfully execute.

### Claim 8

A system for machine code analysis, the system comprising:
at least one processor; and
at least one memory storing computer-executable instructions, wherein the at least one processor is configured to access the at least one memory and is configured to perform a method comprising:
executing a set of test cases associated with a software product;
determining a failing test case, from the set of test cases;
identifying a portion of machine code of the software product, the portion of the machine code corresponding to the failing test case;
analyzing the portion of the machine code to identify a pattern of machine code causing the failing test case to fail; and
searching the machine code of the software product to find the identified pattern of machine code.

### Claim 9 (depends on 8)

The system of claim 8, wherein the method further comprises identifying one or more lines of code in a high level computer program of the software product that are associated with the portion of machine code having the identified pattern.

### Claim 10 (depends on 9)

The system of claim 9, wherein the method further comprises generating one or more test cases to test the one or more lines of code that are associated with the portion of machine code having the identified pattern.

### Claim 11 (depends on 9)

The system of claim 9, wherein the high level computer program comprises a first program in a first programming language and a second program in a second programming language.

### Claim 12 (depends on 11)

The system of claim 11, wherein the method further comprises, identifying a first set of lines of code in the first program using a decompiler of the first programming language, and identifying a second set of lines of code in the second program using a decompiler of the second programming language.

### Claim 13 (depends on 8)

The system of claim 8, wherein analyzing the portion of machine code comprises analyzing machine code using a machine learning model.

### Claim 14 (depends on 13)

The system of claim 13, wherein analyzing the identified portion of the machine code further comprises generating a confidence value indicating a confidence level of the identified pattern causing the one or more test cases to fail to successfully execute.

### Claim 15

A computer program product for machine code analysis, the computer program product comprising a storage medium readable by a processing circuit, the storage medium storing instructions executable by the processing circuit to cause a method to be performed, the method comprising:
executing a set of test cases associated with a software product;
determining a failing test case, from the set of test cases;
identifying a portion of machine code of the software product, the portion of the machine code corresponding to the failing test case;
analyzing the portion of the machine code to identify a pattern of machine code causing the failing test case to fail; and
searching the machine code of the software product to find the identified pattern of machine code.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the method further comprises identifying one or more lines of code in a high level computer program of the software product that are associated with the portion of machine code having the identified pattern.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the method further comprises generating one or more test cases to test the one or more lines of code that are associated with the portion of machine code having the identified pattern.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein the high level computer program comprises a first program in a first programming language and a second program in a second programming language.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the method further comprises, identifying a first set of lines of code in the first program using a decompiler of the first programming language, and identifying a second set of lines of code in the second program using a decompiler of the second programming language.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein analyzing the portion of machine code comprises analyzing machine code using a machine learning model, by generating a confidence value indicating a confidence level of the identified pattern causing the one or more test cases to fail to successfully execute.
