# US 2025/0061050 A1 · Instruction stream retrograding to enhance random test generation

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

- Number: US 2025/0061050 A1
- Document ID: US20250061050A1
- Status: Published application
- Kind: A1
- Application number: 18/450,615
- Filed: 2023-08-16
- Published: 2025-02-20
- Earliest claimed: 2023-08-16
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Bryan G. Hickerson; Craig Atherton; Michal Rimon; Avishai Moshe Fedida; Ofer Peled
- Web page: https://patentgrep.com/patent/US20250061050A1

## CPC

- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 9/3005: {to perform operations for flow control}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 9/462: {with multiple register sets}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 11/263: Generation of test inputs, e.g. test vectors, patterns or sequences {; with adaptation of the tested hardware for testability with external testers}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer system, computer readable storage medium, and computer-implemented method for retrograding an instruction stream to enhance random test generation. The method includes generating a test case for a design-under-test (DUT) comprising positioning one or more placeholder instructions in the test case. The method also includes identifying one or more benefiting instructions. The method further includes executing the test case by replacing the one or more placeholder instructions with one or more respective retrograding instructions. The one or more retrograding instructions influence the one or more benefiting instructions.

## Claims

### Claim 1

A computer system for retrograding an instruction stream to enhance random test generation comprising:
a random test generation system configured to:
generate a test case for a design-under-test (DUT) comprising:
position one or more placeholder instructions in the test case; and
identify one or more benefiting instructions; and
execute the test case, by replacing the one or more placeholder instructions into one or more respective retrograding instructions, wherein the one or more retrograding instructions influence the one or more benefiting instructions.

### Claim 2 (depends on 1)

The system of claim 1, the random test generation system is further configured to:
determine one or more requirements of the one or more benefiting instructions.

### Claim 3 (depends on 2)

The system of claim 2, the random test generation system is further configured to:
replace the one or more placeholder instructions with the one or more respective retrograding instructions that match the one or more requirements of the one or more benefiting instructions; and
replace the one or more placeholder instructions with one or more other instructions that are not the one or more respective retrograding instructions, when the one or more other instructions at least partially match the one or more requirements of the one or more benefiting instructions.

### Claim 4 (depends on 1)

The system of claim 1, wherein the one or more placeholder instructions comprise a plurality of placeholder instructions, the random test generation system is further configured to:
position one or more first placeholder instructions of the plurality of placeholder instructions in the test case; and
position one or more second placeholder instructions of the plurality of placeholder instructions in the test case comprising:
determine the one or more second placeholder instructions to position in the test case; and
generate the one or more second placeholder instructions for the test case.

### Claim 5 (depends on 1)

The system of claim 1, wherein the one or more retrograding instructions comprise one or more cache hint instructions, the random test generation system is further configured to:
generate one or more load instructions configured to identify one or more respective memory addresses that are to be accessed through the respective one or more retrograding instructions.

### Claim 6 (depends on 1)

The system of claim 1, wherein:
the one or more placeholder instructions are no-operation (NOP) instructions; and
the one or more retrograding instructions are one of:
a Data Cache Block Touch (DCBT) instruction; and
a Branch Prediction Relative Preload (BPRP) instruction.

### Claim 7 (depends on 1)

The system of claim 1, wherein:
at least a portion of the one or more placeholder instructions are one or more partially formed retrograding instructions, the random test generation system is further configured to:
replace the portion of the one or more placeholder instructions that are not partially formed retrograding instructions; and
modify the one or more partially formed retrograding instructions into fully formed retrograding instructions.

### Claim 8

A computer readable storage medium having computer executable instructions that when executed by at least one computing device for retrograding an instruction stream to enhance random test generation, comprising instructions to:
generate a test case for a design-under-test (DUT) comprising instructions to:
position one or more placeholder instructions in the test case; and
identify one or more benefiting instructions; and
execute the test case, by replacing the one or more placeholder instructions into one or more respective retrograding instructions, wherein the one or more retrograding instructions influence the one or more benefiting instructions.

### Claim 9 (depends on 8)

The computer readable storage medium of claim 8, further comprising instructions to:
determine one or more requirements of the one or more benefiting instructions.

### Claim 10 (depends on 9)

The computer readable storage medium of claim 9, further comprising instructions to:
replace the one or more placeholder instructions with the one or more respective retrograding instructions that match the one or more requirements of the one or more benefiting instructions; and
replace the one or more placeholder instructions with one or more other instructions that are not the one or more respective retrograding instructions, when the one or more other instructions at least partially match the one or more requirements of the one or more benefiting instructions.

### Claim 11 (depends on 8)

The computer readable storage medium of claim 8, wherein the one or more placeholder instructions comprise a plurality of placeholder instructions, the computer readable storage medium further comprising instructions to:
position one or more first placeholder instructions of the plurality of placeholder instructions in the test case; and
position one or more second placeholder instructions of the plurality of placeholder instructions in the test case comprising instructions to:
determine the one or more second placeholder instructions to position in the test case; and
generate the one or more second placeholder instructions for the test case.

### Claim 12 (depends on 8)

The computer readable storage medium of claim 8, wherein the one or more retrograding instructions comprise one or more cache hint instructions, the computer readable storage medium further comprising instructions to:
generate one or more load instructions configured to identify one or more respective memory addresses that are to be accessed through the respective one or more retrograding instructions.

### Claim 13 (depends on 8)

The computer readable storage medium of claim 8, wherein:
the one or more retrograding instructions comprise one or more cache hint instructions; and
at least a portion of the one or more placeholder instructions are one or more partially formed retrograding instructions, the computer readable storage medium further comprising instructions to:
replace the portion of the one or more placeholder instructions that are not partially formed retrograding instructions; and
modify the one or more partially formed retrograding instructions into fully formed retrograding instructions.

### Claim 14

A computer-implemented method for retrograding an instruction stream to enhance random test generation comprising:
generating a test case for a design-under-test (DUT) comprising:
positioning one or more placeholder instructions in the test case; and
identifying one or more benefiting instructions; and
executing the test case, by replacing the one or more placeholder instructions into one or more respective retrograding instructions, wherein the one or more retrograding instructions influence the one or more benefiting instructions.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
determining one or more requirements of the one or more benefiting instructions.

### Claim 16 (depends on 15)

The method of claim 15, wherein the one or more placeholder instructions comprises:
replacing the one or more placeholder instructions with the one or more respective retrograding instructions that match the one or more requirements of the one or more benefiting instructions; and
replacing the one or more placeholder instructions with one or more other instructions that are not the one or more respective retrograding instructions, when the one or more other instructions at least partially match the one or more requirements of the one or more benefiting instructions.

### Claim 17 (depends on 14)

The method of claim 14, wherein the one or more placeholder instructions comprise a plurality of placeholder instructions, and the positioning the one or more placeholder instructions in the test case comprises one or more of:
positioning one or more first placeholder instructions of the plurality of placeholder instructions in the test case; and
positioning one or more second placeholder instructions in the test case comprising:
determining the one or more second placeholder instructions to position in the test case;
generating the one or more second placeholder instructions for the test case.

### Claim 18 (depends on 14)

The method of claim 14, wherein the one or more retrograding instructions comprise one or more cache hint instructions, the method further comprising:
generating one or more load instructions configured to identify one or more respective memory addresses that are to be accessed through the respective one or more retrograding instructions.

### Claim 19 (depends on 14)

The method of claim 14, wherein:
the one or more placeholder instructions are no-operation (NOP) instructions; and
the one or more retrograding instructions are one of:
a Data Cache Block Touch (DCBT) instruction; and
a Branch Prediction Relative Preload (BPRP) instruction.

### Claim 20 (depends on 14)

The method of claim 14, wherein:
at least a portion of the one or more placeholder instructions are one or more partially formed retrograding instructions, wherein the method further comprises:
replacing the portion of the one or more placeholder instructions that are not partially formed retrograding instructions; and
modifying the one or more partially formed retrograding instructions into fully formed retrograding instructions.
