IP Library Granted Patent US 11,928,447
Granted Patent B2
US 11,928,447 · App. 17/384,909 · Granted Mar 12, 2024

Configuration management through information and code injection at compile time

Inventor: Ulrich Drepper (Grasbrunn, DE)
Assignee: Red Hat, Inc.
G06F8/4435
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,928,447
App. No.
17/384,909
Granted
Mar 12, 2024
Kind
B2
Abstract

Systems and methods for configuration management through information and code injection at compile time. An example method comprises: receiving a source code comprising one or more references to a variable; receiving metadata associated with the source code, wherein the metadata specifies a range of values of the variable; and identifying, in view of the range of values of the variable, a reachable section of the source code.

Claims (41)

1. A method comprising:

receiving, by a processing device, a source code comprising one or more references to a run-time variable;

receiving metadata that specifies a range of run-time values of the run-time variable at a specific location in the source code;

identifying, at compile time, an unreachable section of the source code, wherein the unreachable section is defined by a comparison operation that fails based on a plurality of discrete run-time values of the run-time variable; and

excluding the unreachable section from a compilation scope of the source code.

2. The method of claim 1 , further comprising:

identifying, at compile time, a reachable section of the source code; and

compiling the reachable section of the source code.

3. The method of claim 1 , wherein the metadata is provided by a markup in the source code.

4. The method of claim 1 , wherein the metadata is provided by a preprocessor directive.

5. The method of claim 1 , wherein the metadata is provided by a configuration file.

6. The method of claim 1 , further comprising:

compiling the source code into an object code.

7. The method of claim 1 , wherein the metadata is provided by a configuration of an integrated development environment (IDE).

8. A system comprising:

a memory;

a processing device operatively coupled to the memory, the processing device to:

receive a source code comprising one or more references to a run-time variable;

receive metadata that specifies a range of run-time values of the run-time variable at a specific location in the source code;

identify, at compile time, an unreachable section of the source code, wherein the unreachable section is defined by a comparison operation that fails based on a plurality of discrete run-time values of the run-time variable; and

exclude the unreachable section from a compilation scope of the source code.

9. The system of claim 8 , wherein the processing device is further to:

identify, at compile time, a reachable section of the source code; and

compile the reachable section of the source code.

10. The system of claim 8 , wherein the metadata is provided by a markup in the source code.

11. The system of claim 8 , wherein the metadata is provided by a preprocessor directive.

12. The system of claim 8 , wherein the metadata is provided by a configuration file.

13. The system of claim 8 , wherein the processing device is further to:

compile the source code into an object code.

14. The system of claim 8 , wherein the metadata is provided by a configuration of an integrated development environment (IDE).

15. A non-transitory computer-readable storage medium comprising executable instructions that, when executed by a processing device, cause the processing device to:

receive a source code comprising one or more references to a run-time variable;

receive metadata that specifies a range of run-time values of the run-time variable at a specific location in the source code;

identify, at compile time, an unreachable section of the source code, wherein the unreachable section is defined by a comparison operation that fails based on a plurality of discrete run-time values of the run-time variable; and

exclude the unreachable section from a compilation scope of the source code.

16. The non-transitory computer-readable storage medium of claim 15 , wherein the metadata is provided by a markup in the source code.

17. The non-transitory computer-readable storage medium of claim 15 , wherein the metadata is provided by a preprocessor directive.

18. The non-transitory computer-readable storage medium of claim 15 , wherein the metadata is provided by a configuration file.

19. The non-transitory computer-readable storage medium of claim 15 , further comprising executable instructions that, when executed by the processing device, cause the processing device to:

compile the source code into an object code.

20. The non-transitory computer-readable storage medium of claim 15 , wherein the metadata is provided by a configuration of an integrated development environment (IDE).

Assignments (2)
CHANGE OF NAME Recorded Mar 3, 2026
From: RED HAT, INC.
To: RED HAT, LLC
Reel/Frame 074913/0759 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 27, 2021
From: DREPPER, ULRICH
To: RED HAT, INC.
Reel/Frame 056982/0931 →
Cited By (2)
US 12,699,553 US 12,699,554