Configuration management through information and code injection at compile time
AssigneeRed Hat, Inc.
InventorUlrich Drepper
Life of this patent
Estimating the term…
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.
Claims20
A method comprising:
- receiving, by a processing device, 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;
- scanning the source code and the metadata, wherein scanning converts a sequence of characters in the source code into a sequence of tokens;
- parsing the source code and the metadata, wherein parsing converts the sequence of tokens in the source code into a parse tree;
- and
- identifying, using the parse tree, in view of the range of values of the variable, a reachable section of the source code.
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 variable;
- receive metadata associated with the source code, wherein the metadata specifies one or more values of the variable;
- scan the source code and the metadata, wherein scanning converts a sequence of characters in the source code into a sequence of tokens;
- parse the source code and the metadata, wherein parsing converts the sequence of tokens in the source code into a parse tree;
- and
- identify, using the parse tree, in view of the one or more values of the variable, a reachable section of the source code.
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 variable;
- receive metadata associated with the source code, wherein the metadata specifies a range of values of the variable;
- scan the source code and the metadata, wherein scanning converts a sequence of characters in the source code into a sequence of tokens;
- parse the source code and the metadata, wherein parsing converts the sequence of tokens in the source code into a parse tree;
- and
- identify, using the parse tree, in view of the range of values of the variable, a reachable section of the source code.
Dependencies are inferred from the claim text.