# US 2017/0364457 A1 · Methods and Apparatus for Dynamically Selecting an Instruction Set

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

- Number: US 2017/0364457 A1
- Document ID: US20170364457A1
- Status: Published application
- Kind: A1
- Application number: 15/485,441
- Filed: 2017-04-12
- Published: 2017-12-21
- Earliest claimed: 2016-06-20
- Assignees: Telefonaktiebolaget LM Ericsson (publ)
- Applicants: Telefonaktiebolaget LM Ericsson (publ)
- Inventors: Ola Angelsmark; Per Persson
- Web page: https://patentgrep.com/patent/US20170364457A1

## CPC

- G06F 13/102: {where the program performs an interfacing function, e.g. device driver (G06F13/105 takes precedence; contention policies within device drivers G06F9/4881; scheduling within device drivers G06F9/52)}
- G06F 9/44536: {Selecting among different versions}
- G06F 11/1487: using N-version programming
- G06F 16/24578: {using ranking}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and apparatus for dynamic instruction set selection for producing an output parameter based on one or more available input parameters are presented. In an example method, a device selects, from different candidate instruction sets that are each configured to produce a same output parameter, an instruction set that requires one or more input parameters that are each available at the device. In addition, in the example method, the device obtains the output parameter by executing the selected instruction set using the input parameters required by that instruction set. In some examples where more than one candidate instruction sets could be selected based on the available input parameters, the device may select the highest-ranking instruction set for execution.

## Claims

### Claim 1

A method for instruction set selection by a device, comprising:
selecting, from different candidate instruction sets that are each configured to produce a same output parameter, an instruction set that requires one or more input parameters that are each available to the device; and
obtaining the output parameter by executing the selected instruction set using the input parameters required by that instruction set.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
determining the input parameters that are available to the device; and
identifying one or more of the different candidate instruction sets that require the one or more input parameters that are each available to the device,
wherein selecting the instruction set comprises selecting the instruction set from the identified one or more different candidate instruction sets.

### Claim 3 (depends on 1)

The method of claim 1, wherein selecting the instruction set comprises:
obtaining a ranking of the different candidate instruction sets;
determining that multiple instruction sets of the different candidate instruction sets each require input parameters that are available at the device; and
selecting a highest-ranking instruction set of the multiple instruction sets as the instruction set to be executed to obtain the output parameter.

### Claim 4 (depends on 3)

The method of claim 3, wherein obtaining the ranking comprises executing a ranking algorithm, wherein the ranking algorithm ranks the candidate instruction sets based on one or more parameters.

### Claim 5 (depends on 4)

The method of claim 4, wherein the one or more parameters comprise one or more of channel conditions of a link with an input parameter source device, a length of time since an input parameter was unavailable, a number of input parameters required by a candidate instruction set, and/or a required time and/or resources required to compute the output parameter using a particular candidate instruction set.

### Claim 6 (depends on 1)

The method of claim 1, further comprising identifying input parameters that are available to the device.

### Claim 7 (depends on 6)

The method of claim 6, further comprising obtaining the input parameters that are available to the device from one or more input parameter source devices.

### Claim 8 (depends on 7)

The method of claim 7, wherein each of the one or more input parameter source devices reports at least one of the required input parameters to the device.

### Claim 9 (depends on 7)

The method of claim 7, wherein at least one of the one or more input parameter source devices comprises an Internet-of-Things (IoT) device.

### Claim 10 (depends on 7)

The method of claim 7, wherein at least one of the one or more input parameter sources comprises a sensor.

### Claim 11 (depends on 1)

The method of claim 1, further comprising sending the output parameter to a client device or client module.

### Claim 12

A device configured for instruction set selection, the device comprising:
one or more processing circuits and a memory, the memory containing executable instructions, that when executed by the one or more processing circuits, cause the device to:
select, from different candidate instruction sets that are each configured to produce a same output parameter, an instruction set that requires one or more input parameters that are each available to the device; and
obtain the output parameter by executing the selected instruction set using the input parameters required by that instruction set.

### Claim 13 (depends on 12)

The device of claim 12, the memory further containing executable instructions, that when executed by the one or more processing circuits, cause the device to:
determine the input parameters that are available to the device; and
identify one or more of the different candidate instruction sets that require the one or more input parameters that are each available to the device,
wherein selecting the instruction set comprises selecting the instruction set from the identified one or more different candidate instruction sets.

### Claim 14 (depends on 12)

The device of claim 12, wherein the instructions to select the instruction set further comprise instructions, that when executed by the one or more processing circuits, cause the device to:
obtain a ranking of the different candidate instruction sets;
determine that multiple instruction sets of the different candidate instruction sets each require input parameters that are available at the device; and
select a highest-ranking instruction set of the multiple instruction sets as the instruction set to be executed to obtain the output parameter.

### Claim 15 (depends on 14)

The device of claim 14, wherein the instructions to obtain the ranking comprise instructions to execute a ranking algorithm, wherein the ranking algorithm ranks the candidate instruction sets based on one or more parameters.

### Claim 16 (depends on 15)

The device of claim 15, wherein the one or more parameters comprise one or more of channel conditions of a link with an input parameter source device, a length of time since an input parameter was unavailable, a number of input parameters required by a candidate instruction set, and/or a required time and/or resources required to compute the output parameter using a particular candidate instruction set.

### Claim 17 (depends on 12)

The device of claim 12, wherein the instructions further comprise identifying input parameters that are available to the device.

### Claim 18 (depends on 17)

The device of claim 17, wherein the instructions further comprise instructions to obtain the input parameters that are available to the device from one or more input parameter source devices.

### Claim 19 (depends on 18)

The device of claim 18, wherein each of the one or more input parameter source devices reports at least one of the required input parameters to the device.

### Claim 20 (depends on 18)

The device of claim 18, wherein at least one of the one or more input parameter source devices comprises an Internet-of-Things (IoT) device.

### Claim 21 (depends on 18)

The device of claim 18, wherein at least one of the one or more input parameter sources comprises a sensor.

### Claim 22 (depends on 12)

The device of claim 12, wherein the instructions further comprise instructions to send the output parameter to a client device or client module.

### Claim 23

A computer program product stored on a computer readable medium and comprising computer readable code, which when executed by a device, causes the device to:
select, from different candidate instruction sets that are each configured to produce a same output parameter, an instruction set that requires one or more input parameters that are each available to the device; and
obtain the output parameter by executing the selected instruction set using the input parameters required by that instruction set.

### Claim 24 (depends on 23)

The computer program product of claim 23, the memory further containing executable instructions, that when executed by the device, cause the device to:
determine the input parameters that are available to the device; and
identify one or more of the different candidate instruction sets that require the one or more input parameters that are each available to the device,
wherein selecting the instruction set comprises selecting the instruction set from the identified one or more different candidate instruction sets.

### Claim 25 (depends on 23)

The computer program product of claim 23, wherein the instructions to select the instruction set further comprise instructions, that when executed by the one or more processing circuits, cause the device to:
obtain a ranking of the different candidate instruction sets;
determine that multiple instruction sets of the different candidate instruction sets each require input parameters that are available at the device; and
select a highest-ranking instruction set of the multiple instruction sets as the instruction set to be executed to obtain the output parameter.

### Claim 26 (depends on 25)

The computer program product of claim 25, wherein the instructions to obtain the ranking comprise instructions to execute a ranking algorithm, wherein the ranking algorithm ranks the candidate instruction sets based on one or more parameters.

### Claim 27 (depends on 26)

The computer program product of claim 26, wherein the one or more parameters comprise one or more of channel conditions of a link with an input parameter source device, a length of time since an input parameter was unavailable, a number of input parameters required by a candidate instruction set, and/or a required time and/or resources required to compute the output parameter using a particular candidate instruction set.

### Claim 28 (depends on 23)

The computer program product of claim 23, wherein the instructions further comprise identifying input parameters that are available to the device.

### Claim 29 (depends on 28)

The device of claim 28, wherein the instructions further comprise instructions to obtain the input parameters that are available to the device from one or more Internet-of-Things (IoT) devices.

### Claim 30 (depends on 23)

The computer program product of claim 23, wherein the instructions further comprise instructions to send the output parameter to a client device or client module.
